xref: /vim-8.2.3635/src/auto/configure (revision 3577c6fa)
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-selinux	  Don't check for SELinux support.
849  --disable-xsmp          Disable XSMP session management
850  --disable-xsmp-interact Disable XSMP interaction
851  --enable-mzschemeinterp   Include MzScheme interpreter.
852  --enable-perlinterp     Include Perl interpreter.
853  --enable-pythoninterp   Include Python interpreter.
854  --enable-tclinterp      Include Tcl interpreter.
855  --enable-rubyinterp     Include Ruby interpreter.
856  --enable-cscope         Include cscope interface.
857  --enable-workshop       Include Sun Visual Workshop support.
858  --disable-netbeans      Disable NetBeans integration support.
859  --enable-sniff          Include Sniff interface.
860  --enable-multibyte      Include multibyte editing support.
861  --enable-hangulinput    Include Hangul input support.
862  --enable-xim            Include XIM input support.
863  --enable-fontset        Include X fontset output support.
864  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
865  --enable-gtk-check      If auto-select GUI, check for GTK default=yes
866  --enable-gtk2-check     If GTK GUI, check for GTK+ 2 default=yes
867  --enable-gnome-check    If GTK GUI, check for GNOME default=no
868  --enable-motif-check    If auto-select GUI, check for Motif default=yes
869  --enable-athena-check   If auto-select GUI, check for Athena default=yes
870  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
871  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
872  --disable-gtktest       Do not try to compile and run a test GTK program
873  --disable-acl           Don't check for ACL support.
874  --disable-gpm           Don't use gpm (Linux mouse daemon).
875  --disable-nls           Don't support NLS (gettext()).
876
877Optional Packages:
878  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
879  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
880  --with-mac-arch=ARCH    current, intel, ppc or both
881  --with-vim-name=NAME    what to call the Vim executable
882  --with-ex-name=NAME     what to call the Ex executable
883  --with-view-name=NAME   what to call the View executable
884  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
885  --with-modified-by=NAME       name of who modified a release version
886  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
887  --with-compiledby=NAME  name to show in :version message
888  --with-plthome=PLTHOME   Use PLTHOME.
889  --with-python-config-dir=PATH  Python's config directory
890  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
891  --with-x                use the X Window System
892  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
893  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
894  --with-gnome-includes=DIR Specify location of GNOME headers
895  --with-gnome-libs=DIR   Specify location of GNOME libs
896  --with-gnome            Specify prefix for GNOME files
897  --with-motif-lib=STRING   Library for Motif
898  --with-tlib=library     terminal library to be used
899
900Some influential environment variables:
901  CC          C compiler command
902  CFLAGS      C compiler flags
903  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
904              nonstandard directory <lib dir>
905  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
906              headers in a nonstandard directory <include dir>
907  CPP         C preprocessor
908
909Use these variables to override the choices made by `configure' or to help
910it to find libraries and programs with nonstandard names/locations.
911
912_ACEOF
913fi
914
915if test "$ac_init_help" = "recursive"; then
916  # If there are subdirs, report their specific --help.
917  ac_popdir=`pwd`
918  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
919    test -d $ac_dir || continue
920    ac_builddir=.
921
922if test "$ac_dir" != .; then
923  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
924  # A "../" for each directory in $ac_dir_suffix.
925  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
926else
927  ac_dir_suffix= ac_top_builddir=
928fi
929
930case $srcdir in
931  .)  # No --srcdir option.  We are building in place.
932    ac_srcdir=.
933    if test -z "$ac_top_builddir"; then
934       ac_top_srcdir=.
935    else
936       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937    fi ;;
938  [\\/]* | ?:[\\/]* )  # Absolute path.
939    ac_srcdir=$srcdir$ac_dir_suffix;
940    ac_top_srcdir=$srcdir ;;
941  *) # Relative path.
942    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
943    ac_top_srcdir=$ac_top_builddir$srcdir ;;
944esac
945
946# Do not use `cd foo && pwd` to compute absolute paths, because
947# the directories may not exist.
948case `pwd` in
949.) ac_abs_builddir="$ac_dir";;
950*)
951  case "$ac_dir" in
952  .) ac_abs_builddir=`pwd`;;
953  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
954  *) ac_abs_builddir=`pwd`/"$ac_dir";;
955  esac;;
956esac
957case $ac_abs_builddir in
958.) ac_abs_top_builddir=${ac_top_builddir}.;;
959*)
960  case ${ac_top_builddir}. in
961  .) ac_abs_top_builddir=$ac_abs_builddir;;
962  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
963  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
964  esac;;
965esac
966case $ac_abs_builddir in
967.) ac_abs_srcdir=$ac_srcdir;;
968*)
969  case $ac_srcdir in
970  .) ac_abs_srcdir=$ac_abs_builddir;;
971  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
972  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
973  esac;;
974esac
975case $ac_abs_builddir in
976.) ac_abs_top_srcdir=$ac_top_srcdir;;
977*)
978  case $ac_top_srcdir in
979  .) ac_abs_top_srcdir=$ac_abs_builddir;;
980  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
981  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982  esac;;
983esac
984
985    cd $ac_dir
986    # Check for guested configure; otherwise get Cygnus style configure.
987    if test -f $ac_srcdir/configure.gnu; then
988      echo
989      $SHELL $ac_srcdir/configure.gnu  --help=recursive
990    elif test -f $ac_srcdir/configure; then
991      echo
992      $SHELL $ac_srcdir/configure  --help=recursive
993    elif test -f $ac_srcdir/configure.ac ||
994	   test -f $ac_srcdir/configure.in; then
995      echo
996      $ac_configure --help
997    else
998      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
999    fi
1000    cd $ac_popdir
1001  done
1002fi
1003
1004test -n "$ac_init_help" && exit 0
1005if $ac_init_version; then
1006  cat <<\_ACEOF
1007
1008Copyright (C) 2003 Free Software Foundation, Inc.
1009This configure script is free software; the Free Software Foundation
1010gives unlimited permission to copy, distribute and modify it.
1011_ACEOF
1012  exit 0
1013fi
1014exec 5>auto/config.log
1015cat >&5 <<_ACEOF
1016This file contains any messages produced by compilers while
1017running configure, to aid debugging if configure makes a mistake.
1018
1019It was created by $as_me, which was
1020generated by GNU Autoconf 2.59.  Invocation command line was
1021
1022  $ $0 $@
1023
1024_ACEOF
1025{
1026cat <<_ASUNAME
1027## --------- ##
1028## Platform. ##
1029## --------- ##
1030
1031hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1032uname -m = `(uname -m) 2>/dev/null || echo unknown`
1033uname -r = `(uname -r) 2>/dev/null || echo unknown`
1034uname -s = `(uname -s) 2>/dev/null || echo unknown`
1035uname -v = `(uname -v) 2>/dev/null || echo unknown`
1036
1037/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1038/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1039
1040/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1041/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1042/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1043hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1044/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1045/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1046/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1047
1048_ASUNAME
1049
1050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1051for as_dir in $PATH
1052do
1053  IFS=$as_save_IFS
1054  test -z "$as_dir" && as_dir=.
1055  echo "PATH: $as_dir"
1056done
1057
1058} >&5
1059
1060cat >&5 <<_ACEOF
1061
1062
1063## ----------- ##
1064## Core tests. ##
1065## ----------- ##
1066
1067_ACEOF
1068
1069
1070# Keep a trace of the command line.
1071# Strip out --no-create and --no-recursion so they do not pile up.
1072# Strip out --silent because we don't want to record it for future runs.
1073# Also quote any args containing shell meta-characters.
1074# Make two passes to allow for proper duplicate-argument suppression.
1075ac_configure_args=
1076ac_configure_args0=
1077ac_configure_args1=
1078ac_sep=
1079ac_must_keep_next=false
1080for ac_pass in 1 2
1081do
1082  for ac_arg
1083  do
1084    case $ac_arg in
1085    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1086    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087    | -silent | --silent | --silen | --sile | --sil)
1088      continue ;;
1089    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1090      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1091    esac
1092    case $ac_pass in
1093    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1094    2)
1095      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1096      if test $ac_must_keep_next = true; then
1097	ac_must_keep_next=false # Got value, back to normal.
1098      else
1099	case $ac_arg in
1100	  *=* | --config-cache | -C | -disable-* | --disable-* \
1101	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1102	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1103	  | -with-* | --with-* | -without-* | --without-* | --x)
1104	    case "$ac_configure_args0 " in
1105	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1106	    esac
1107	    ;;
1108	  -* ) ac_must_keep_next=true ;;
1109	esac
1110      fi
1111      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1112      # Get rid of the leading space.
1113      ac_sep=" "
1114      ;;
1115    esac
1116  done
1117done
1118$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1119$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1120
1121# When interrupted or exit'd, cleanup temporary files, and complete
1122# config.log.  We remove comments because anyway the quotes in there
1123# would cause problems or look ugly.
1124# WARNING: Be sure not to use single quotes in there, as some shells,
1125# such as our DU 5.0 friend, will then `close' the trap.
1126trap 'exit_status=$?
1127  # Save into config.log some information that might help in debugging.
1128  {
1129    echo
1130
1131    cat <<\_ASBOX
1132## ---------------- ##
1133## Cache variables. ##
1134## ---------------- ##
1135_ASBOX
1136    echo
1137    # The following way of writing the cache mishandles newlines in values,
1138{
1139  (set) 2>&1 |
1140    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1141    *ac_space=\ *)
1142      sed -n \
1143	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1144	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1145      ;;
1146    *)
1147      sed -n \
1148	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1149      ;;
1150    esac;
1151}
1152    echo
1153
1154    cat <<\_ASBOX
1155## ----------------- ##
1156## Output variables. ##
1157## ----------------- ##
1158_ASBOX
1159    echo
1160    for ac_var in $ac_subst_vars
1161    do
1162      eval ac_val=$`echo $ac_var`
1163      echo "$ac_var='"'"'$ac_val'"'"'"
1164    done | sort
1165    echo
1166
1167    if test -n "$ac_subst_files"; then
1168      cat <<\_ASBOX
1169## ------------- ##
1170## Output files. ##
1171## ------------- ##
1172_ASBOX
1173      echo
1174      for ac_var in $ac_subst_files
1175      do
1176	eval ac_val=$`echo $ac_var`
1177	echo "$ac_var='"'"'$ac_val'"'"'"
1178      done | sort
1179      echo
1180    fi
1181
1182    if test -s confdefs.h; then
1183      cat <<\_ASBOX
1184## ----------- ##
1185## confdefs.h. ##
1186## ----------- ##
1187_ASBOX
1188      echo
1189      sed "/^$/d" confdefs.h | sort
1190      echo
1191    fi
1192    test "$ac_signal" != 0 &&
1193      echo "$as_me: caught signal $ac_signal"
1194    echo "$as_me: exit $exit_status"
1195  } >&5
1196  rm -f core *.core &&
1197  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1198    exit $exit_status
1199     ' 0
1200for ac_signal in 1 2 13 15; do
1201  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1202done
1203ac_signal=0
1204
1205# confdefs.h avoids OS command line length limits that DEFS can exceed.
1206rm -rf conftest* confdefs.h
1207# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1208echo >confdefs.h
1209
1210# Predefined preprocessor variables.
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_NAME "$PACKAGE_NAME"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_VERSION "$PACKAGE_VERSION"
1224_ACEOF
1225
1226
1227cat >>confdefs.h <<_ACEOF
1228#define PACKAGE_STRING "$PACKAGE_STRING"
1229_ACEOF
1230
1231
1232cat >>confdefs.h <<_ACEOF
1233#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1234_ACEOF
1235
1236
1237# Let the site file select an alternate cache file if it wants to.
1238# Prefer explicitly selected file to automatically selected ones.
1239if test -z "$CONFIG_SITE"; then
1240  if test "x$prefix" != xNONE; then
1241    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1242  else
1243    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1244  fi
1245fi
1246for ac_site_file in $CONFIG_SITE; do
1247  if test -r "$ac_site_file"; then
1248    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1249echo "$as_me: loading site script $ac_site_file" >&6;}
1250    sed 's/^/| /' "$ac_site_file" >&5
1251    . "$ac_site_file"
1252  fi
1253done
1254
1255if test -r "$cache_file"; then
1256  # Some versions of bash will fail to source /dev/null (special
1257  # files actually), so we avoid doing that.
1258  if test -f "$cache_file"; then
1259    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1260echo "$as_me: loading cache $cache_file" >&6;}
1261    case $cache_file in
1262      [\\/]* | ?:[\\/]* ) . $cache_file;;
1263      *)                      . ./$cache_file;;
1264    esac
1265  fi
1266else
1267  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1268echo "$as_me: creating cache $cache_file" >&6;}
1269  >$cache_file
1270fi
1271
1272# Check that the precious variables saved in the cache have kept the same
1273# value.
1274ac_cache_corrupted=false
1275for ac_var in `(set) 2>&1 |
1276	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1277  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1278  eval ac_new_set=\$ac_env_${ac_var}_set
1279  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1280  eval ac_new_val="\$ac_env_${ac_var}_value"
1281  case $ac_old_set,$ac_new_set in
1282    set,)
1283      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1284echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1285      ac_cache_corrupted=: ;;
1286    ,set)
1287      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1288echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1289      ac_cache_corrupted=: ;;
1290    ,);;
1291    *)
1292      if test "x$ac_old_val" != "x$ac_new_val"; then
1293	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1294echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1295	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1296echo "$as_me:   former value:  $ac_old_val" >&2;}
1297	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1298echo "$as_me:   current value: $ac_new_val" >&2;}
1299	ac_cache_corrupted=:
1300      fi;;
1301  esac
1302  # Pass precious variables to config.status.
1303  if test "$ac_new_set" = set; then
1304    case $ac_new_val in
1305    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1306      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1307    *) ac_arg=$ac_var=$ac_new_val ;;
1308    esac
1309    case " $ac_configure_args " in
1310      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1311      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1312    esac
1313  fi
1314done
1315if $ac_cache_corrupted; then
1316  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1317echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1318  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1319echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1320   { (exit 1); exit 1; }; }
1321fi
1322
1323ac_ext=c
1324ac_cpp='$CPP $CPPFLAGS'
1325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1327ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347          ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1348
1349
1350cat >>confdefs.h <<\_ACEOF
1351#define UNIX 1
1352_ACEOF
1353
1354echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1355echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1356set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1357if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1358  echo $ECHO_N "(cached) $ECHO_C" >&6
1359else
1360  cat >conftest.make <<\_ACEOF
1361all:
1362	@echo 'ac_maketemp="$(MAKE)"'
1363_ACEOF
1364# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1365eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1366if test -n "$ac_maketemp"; then
1367  eval ac_cv_prog_make_${ac_make}_set=yes
1368else
1369  eval ac_cv_prog_make_${ac_make}_set=no
1370fi
1371rm -f conftest.make
1372fi
1373if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1374  echo "$as_me:$LINENO: result: yes" >&5
1375echo "${ECHO_T}yes" >&6
1376  SET_MAKE=
1377else
1378  echo "$as_me:$LINENO: result: no" >&5
1379echo "${ECHO_T}no" >&6
1380  SET_MAKE="MAKE=${MAKE-make}"
1381fi
1382
1383
1384ac_ext=c
1385ac_cpp='$CPP $CPPFLAGS'
1386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1388ac_compiler_gnu=$ac_cv_c_compiler_gnu
1389if test -n "$ac_tool_prefix"; then
1390  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1391set dummy ${ac_tool_prefix}gcc; ac_word=$2
1392echo "$as_me:$LINENO: checking for $ac_word" >&5
1393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394if test "${ac_cv_prog_CC+set}" = set; then
1395  echo $ECHO_N "(cached) $ECHO_C" >&6
1396else
1397  if test -n "$CC"; then
1398  ac_cv_prog_CC="$CC" # Let the user override the test.
1399else
1400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401for as_dir in $PATH
1402do
1403  IFS=$as_save_IFS
1404  test -z "$as_dir" && as_dir=.
1405  for ac_exec_ext in '' $ac_executable_extensions; do
1406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1409    break 2
1410  fi
1411done
1412done
1413
1414fi
1415fi
1416CC=$ac_cv_prog_CC
1417if test -n "$CC"; then
1418  echo "$as_me:$LINENO: result: $CC" >&5
1419echo "${ECHO_T}$CC" >&6
1420else
1421  echo "$as_me:$LINENO: result: no" >&5
1422echo "${ECHO_T}no" >&6
1423fi
1424
1425fi
1426if test -z "$ac_cv_prog_CC"; then
1427  ac_ct_CC=$CC
1428  # Extract the first word of "gcc", so it can be a program name with args.
1429set dummy gcc; ac_word=$2
1430echo "$as_me:$LINENO: checking for $ac_word" >&5
1431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433  echo $ECHO_N "(cached) $ECHO_C" >&6
1434else
1435  if test -n "$ac_ct_CC"; then
1436  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1437else
1438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439for as_dir in $PATH
1440do
1441  IFS=$as_save_IFS
1442  test -z "$as_dir" && as_dir=.
1443  for ac_exec_ext in '' $ac_executable_extensions; do
1444  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445    ac_cv_prog_ac_ct_CC="gcc"
1446    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447    break 2
1448  fi
1449done
1450done
1451
1452fi
1453fi
1454ac_ct_CC=$ac_cv_prog_ac_ct_CC
1455if test -n "$ac_ct_CC"; then
1456  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457echo "${ECHO_T}$ac_ct_CC" >&6
1458else
1459  echo "$as_me:$LINENO: result: no" >&5
1460echo "${ECHO_T}no" >&6
1461fi
1462
1463  CC=$ac_ct_CC
1464else
1465  CC="$ac_cv_prog_CC"
1466fi
1467
1468if test -z "$CC"; then
1469  if test -n "$ac_tool_prefix"; then
1470  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1471set dummy ${ac_tool_prefix}cc; ac_word=$2
1472echo "$as_me:$LINENO: checking for $ac_word" >&5
1473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474if test "${ac_cv_prog_CC+set}" = set; then
1475  echo $ECHO_N "(cached) $ECHO_C" >&6
1476else
1477  if test -n "$CC"; then
1478  ac_cv_prog_CC="$CC" # Let the user override the test.
1479else
1480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481for as_dir in $PATH
1482do
1483  IFS=$as_save_IFS
1484  test -z "$as_dir" && as_dir=.
1485  for ac_exec_ext in '' $ac_executable_extensions; do
1486  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487    ac_cv_prog_CC="${ac_tool_prefix}cc"
1488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489    break 2
1490  fi
1491done
1492done
1493
1494fi
1495fi
1496CC=$ac_cv_prog_CC
1497if test -n "$CC"; then
1498  echo "$as_me:$LINENO: result: $CC" >&5
1499echo "${ECHO_T}$CC" >&6
1500else
1501  echo "$as_me:$LINENO: result: no" >&5
1502echo "${ECHO_T}no" >&6
1503fi
1504
1505fi
1506if test -z "$ac_cv_prog_CC"; then
1507  ac_ct_CC=$CC
1508  # Extract the first word of "cc", so it can be a program name with args.
1509set dummy cc; ac_word=$2
1510echo "$as_me:$LINENO: checking for $ac_word" >&5
1511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513  echo $ECHO_N "(cached) $ECHO_C" >&6
1514else
1515  if test -n "$ac_ct_CC"; then
1516  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517else
1518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519for as_dir in $PATH
1520do
1521  IFS=$as_save_IFS
1522  test -z "$as_dir" && as_dir=.
1523  for ac_exec_ext in '' $ac_executable_extensions; do
1524  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525    ac_cv_prog_ac_ct_CC="cc"
1526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527    break 2
1528  fi
1529done
1530done
1531
1532fi
1533fi
1534ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535if test -n "$ac_ct_CC"; then
1536  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537echo "${ECHO_T}$ac_ct_CC" >&6
1538else
1539  echo "$as_me:$LINENO: result: no" >&5
1540echo "${ECHO_T}no" >&6
1541fi
1542
1543  CC=$ac_ct_CC
1544else
1545  CC="$ac_cv_prog_CC"
1546fi
1547
1548fi
1549if test -z "$CC"; then
1550  # Extract the first word of "cc", so it can be a program name with args.
1551set dummy cc; ac_word=$2
1552echo "$as_me:$LINENO: checking for $ac_word" >&5
1553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554if test "${ac_cv_prog_CC+set}" = set; then
1555  echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
1557  if test -n "$CC"; then
1558  ac_cv_prog_CC="$CC" # Let the user override the test.
1559else
1560  ac_prog_rejected=no
1561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562for as_dir in $PATH
1563do
1564  IFS=$as_save_IFS
1565  test -z "$as_dir" && as_dir=.
1566  for ac_exec_ext in '' $ac_executable_extensions; do
1567  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1569       ac_prog_rejected=yes
1570       continue
1571     fi
1572    ac_cv_prog_CC="cc"
1573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574    break 2
1575  fi
1576done
1577done
1578
1579if test $ac_prog_rejected = yes; then
1580  # We found a bogon in the path, so make sure we never use it.
1581  set dummy $ac_cv_prog_CC
1582  shift
1583  if test $# != 0; then
1584    # We chose a different compiler from the bogus one.
1585    # However, it has the same basename, so the bogon will be chosen
1586    # first if we set CC to just the basename; use the full file name.
1587    shift
1588    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1589  fi
1590fi
1591fi
1592fi
1593CC=$ac_cv_prog_CC
1594if test -n "$CC"; then
1595  echo "$as_me:$LINENO: result: $CC" >&5
1596echo "${ECHO_T}$CC" >&6
1597else
1598  echo "$as_me:$LINENO: result: no" >&5
1599echo "${ECHO_T}no" >&6
1600fi
1601
1602fi
1603if test -z "$CC"; then
1604  if test -n "$ac_tool_prefix"; then
1605  for ac_prog in cl
1606  do
1607    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1609echo "$as_me:$LINENO: checking for $ac_word" >&5
1610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611if test "${ac_cv_prog_CC+set}" = set; then
1612  echo $ECHO_N "(cached) $ECHO_C" >&6
1613else
1614  if test -n "$CC"; then
1615  ac_cv_prog_CC="$CC" # Let the user override the test.
1616else
1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618for as_dir in $PATH
1619do
1620  IFS=$as_save_IFS
1621  test -z "$as_dir" && as_dir=.
1622  for ac_exec_ext in '' $ac_executable_extensions; do
1623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626    break 2
1627  fi
1628done
1629done
1630
1631fi
1632fi
1633CC=$ac_cv_prog_CC
1634if test -n "$CC"; then
1635  echo "$as_me:$LINENO: result: $CC" >&5
1636echo "${ECHO_T}$CC" >&6
1637else
1638  echo "$as_me:$LINENO: result: no" >&5
1639echo "${ECHO_T}no" >&6
1640fi
1641
1642    test -n "$CC" && break
1643  done
1644fi
1645if test -z "$CC"; then
1646  ac_ct_CC=$CC
1647  for ac_prog in cl
1648do
1649  # Extract the first word of "$ac_prog", so it can be a program name with args.
1650set dummy $ac_prog; ac_word=$2
1651echo "$as_me:$LINENO: checking for $ac_word" >&5
1652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654  echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656  if test -n "$ac_ct_CC"; then
1657  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1658else
1659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660for as_dir in $PATH
1661do
1662  IFS=$as_save_IFS
1663  test -z "$as_dir" && as_dir=.
1664  for ac_exec_ext in '' $ac_executable_extensions; do
1665  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666    ac_cv_prog_ac_ct_CC="$ac_prog"
1667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668    break 2
1669  fi
1670done
1671done
1672
1673fi
1674fi
1675ac_ct_CC=$ac_cv_prog_ac_ct_CC
1676if test -n "$ac_ct_CC"; then
1677  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678echo "${ECHO_T}$ac_ct_CC" >&6
1679else
1680  echo "$as_me:$LINENO: result: no" >&5
1681echo "${ECHO_T}no" >&6
1682fi
1683
1684  test -n "$ac_ct_CC" && break
1685done
1686
1687  CC=$ac_ct_CC
1688fi
1689
1690fi
1691
1692
1693test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1694See \`config.log' for more details." >&5
1695echo "$as_me: error: no acceptable C compiler found in \$PATH
1696See \`config.log' for more details." >&2;}
1697   { (exit 1); exit 1; }; }
1698
1699# Provide some information about the compiler.
1700echo "$as_me:$LINENO:" \
1701     "checking for C compiler version" >&5
1702ac_compiler=`set X $ac_compile; echo $2`
1703{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1704  (eval $ac_compiler --version </dev/null >&5) 2>&5
1705  ac_status=$?
1706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1707  (exit $ac_status); }
1708{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1709  (eval $ac_compiler -v </dev/null >&5) 2>&5
1710  ac_status=$?
1711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1712  (exit $ac_status); }
1713{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1714  (eval $ac_compiler -V </dev/null >&5) 2>&5
1715  ac_status=$?
1716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717  (exit $ac_status); }
1718
1719cat >conftest.$ac_ext <<_ACEOF
1720/* confdefs.h.  */
1721_ACEOF
1722cat confdefs.h >>conftest.$ac_ext
1723cat >>conftest.$ac_ext <<_ACEOF
1724/* end confdefs.h.  */
1725
1726int
1727main ()
1728{
1729
1730  ;
1731  return 0;
1732}
1733_ACEOF
1734ac_clean_files_save=$ac_clean_files
1735ac_clean_files="$ac_clean_files a.out a.exe b.out"
1736# Try to create an executable without -o first, disregard a.out.
1737# It will help us diagnose broken compilers, and finding out an intuition
1738# of exeext.
1739echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1740echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1741ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1742if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1743  (eval $ac_link_default) 2>&5
1744  ac_status=$?
1745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746  (exit $ac_status); }; then
1747  # Find the output, starting from the most likely.  This scheme is
1748# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1749# resort.
1750
1751# Be careful to initialize this variable, since it used to be cached.
1752# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1753ac_cv_exeext=
1754# b.out is created by i960 compilers.
1755for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1756do
1757  test -f "$ac_file" || continue
1758  case $ac_file in
1759    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1760	;;
1761    conftest.$ac_ext )
1762	# This is the source file.
1763	;;
1764    [ab].out )
1765	# We found the default executable, but exeext='' is most
1766	# certainly right.
1767	break;;
1768    *.* )
1769	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1770	# FIXME: I believe we export ac_cv_exeext for Libtool,
1771	# but it would be cool to find out if it's true.  Does anybody
1772	# maintain Libtool? --akim.
1773	export ac_cv_exeext
1774	break;;
1775    * )
1776	break;;
1777  esac
1778done
1779else
1780  echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1784See \`config.log' for more details." >&5
1785echo "$as_me: error: C compiler cannot create executables
1786See \`config.log' for more details." >&2;}
1787   { (exit 77); exit 77; }; }
1788fi
1789
1790ac_exeext=$ac_cv_exeext
1791echo "$as_me:$LINENO: result: $ac_file" >&5
1792echo "${ECHO_T}$ac_file" >&6
1793
1794# Check the compiler produces executables we can run.  If not, either
1795# the compiler is broken, or we cross compile.
1796echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1797echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1798# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1799# If not cross compiling, check that we can run a simple program.
1800if test "$cross_compiling" != yes; then
1801  if { ac_try='./$ac_file'
1802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1803  (eval $ac_try) 2>&5
1804  ac_status=$?
1805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806  (exit $ac_status); }; }; then
1807    cross_compiling=no
1808  else
1809    if test "$cross_compiling" = maybe; then
1810	cross_compiling=yes
1811    else
1812	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1813If you meant to cross compile, use \`--host'.
1814See \`config.log' for more details." >&5
1815echo "$as_me: error: cannot run C compiled programs.
1816If you meant to cross compile, use \`--host'.
1817See \`config.log' for more details." >&2;}
1818   { (exit 1); exit 1; }; }
1819    fi
1820  fi
1821fi
1822echo "$as_me:$LINENO: result: yes" >&5
1823echo "${ECHO_T}yes" >&6
1824
1825rm -f a.out a.exe conftest$ac_cv_exeext b.out
1826ac_clean_files=$ac_clean_files_save
1827# Check the compiler produces executables we can run.  If not, either
1828# the compiler is broken, or we cross compile.
1829echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1830echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1831echo "$as_me:$LINENO: result: $cross_compiling" >&5
1832echo "${ECHO_T}$cross_compiling" >&6
1833
1834echo "$as_me:$LINENO: checking for suffix of executables" >&5
1835echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1837  (eval $ac_link) 2>&5
1838  ac_status=$?
1839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840  (exit $ac_status); }; then
1841  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1842# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1843# work properly (i.e., refer to `conftest.exe'), while it won't with
1844# `rm'.
1845for ac_file in conftest.exe conftest conftest.*; do
1846  test -f "$ac_file" || continue
1847  case $ac_file in
1848    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1849    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1850	  export ac_cv_exeext
1851	  break;;
1852    * ) break;;
1853  esac
1854done
1855else
1856  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1857See \`config.log' for more details." >&5
1858echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1859See \`config.log' for more details." >&2;}
1860   { (exit 1); exit 1; }; }
1861fi
1862
1863rm -f conftest$ac_cv_exeext
1864echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1865echo "${ECHO_T}$ac_cv_exeext" >&6
1866
1867rm -f conftest.$ac_ext
1868EXEEXT=$ac_cv_exeext
1869ac_exeext=$EXEEXT
1870echo "$as_me:$LINENO: checking for suffix of object files" >&5
1871echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1872if test "${ac_cv_objext+set}" = set; then
1873  echo $ECHO_N "(cached) $ECHO_C" >&6
1874else
1875  cat >conftest.$ac_ext <<_ACEOF
1876/* confdefs.h.  */
1877_ACEOF
1878cat confdefs.h >>conftest.$ac_ext
1879cat >>conftest.$ac_ext <<_ACEOF
1880/* end confdefs.h.  */
1881
1882int
1883main ()
1884{
1885
1886  ;
1887  return 0;
1888}
1889_ACEOF
1890rm -f conftest.o conftest.obj
1891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1892  (eval $ac_compile) 2>&5
1893  ac_status=$?
1894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895  (exit $ac_status); }; then
1896  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1897  case $ac_file in
1898    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1899    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1900       break;;
1901  esac
1902done
1903else
1904  echo "$as_me: failed program was:" >&5
1905sed 's/^/| /' conftest.$ac_ext >&5
1906
1907{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1908See \`config.log' for more details." >&5
1909echo "$as_me: error: cannot compute suffix of object files: cannot compile
1910See \`config.log' for more details." >&2;}
1911   { (exit 1); exit 1; }; }
1912fi
1913
1914rm -f conftest.$ac_cv_objext conftest.$ac_ext
1915fi
1916echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1917echo "${ECHO_T}$ac_cv_objext" >&6
1918OBJEXT=$ac_cv_objext
1919ac_objext=$OBJEXT
1920echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1921echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1922if test "${ac_cv_c_compiler_gnu+set}" = set; then
1923  echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925  cat >conftest.$ac_ext <<_ACEOF
1926/* confdefs.h.  */
1927_ACEOF
1928cat confdefs.h >>conftest.$ac_ext
1929cat >>conftest.$ac_ext <<_ACEOF
1930/* end confdefs.h.  */
1931
1932int
1933main ()
1934{
1935#ifndef __GNUC__
1936       choke me
1937#endif
1938
1939  ;
1940  return 0;
1941}
1942_ACEOF
1943rm -f conftest.$ac_objext
1944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1945  (eval $ac_compile) 2>conftest.er1
1946  ac_status=$?
1947  grep -v '^ *+' conftest.er1 >conftest.err
1948  rm -f conftest.er1
1949  cat conftest.err >&5
1950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951  (exit $ac_status); } &&
1952	 { ac_try='test -z "$ac_c_werror_flag"
1953			 || test ! -s conftest.err'
1954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1955  (eval $ac_try) 2>&5
1956  ac_status=$?
1957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958  (exit $ac_status); }; } &&
1959	 { ac_try='test -s conftest.$ac_objext'
1960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1961  (eval $ac_try) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }; }; then
1965  ac_compiler_gnu=yes
1966else
1967  echo "$as_me: failed program was:" >&5
1968sed 's/^/| /' conftest.$ac_ext >&5
1969
1970ac_compiler_gnu=no
1971fi
1972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1973ac_cv_c_compiler_gnu=$ac_compiler_gnu
1974
1975fi
1976echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1977echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1978GCC=`test $ac_compiler_gnu = yes && echo yes`
1979ac_test_CFLAGS=${CFLAGS+set}
1980ac_save_CFLAGS=$CFLAGS
1981CFLAGS="-g"
1982echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1983echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1984if test "${ac_cv_prog_cc_g+set}" = set; then
1985  echo $ECHO_N "(cached) $ECHO_C" >&6
1986else
1987  cat >conftest.$ac_ext <<_ACEOF
1988/* confdefs.h.  */
1989_ACEOF
1990cat confdefs.h >>conftest.$ac_ext
1991cat >>conftest.$ac_ext <<_ACEOF
1992/* end confdefs.h.  */
1993
1994int
1995main ()
1996{
1997
1998  ;
1999  return 0;
2000}
2001_ACEOF
2002rm -f conftest.$ac_objext
2003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2004  (eval $ac_compile) 2>conftest.er1
2005  ac_status=$?
2006  grep -v '^ *+' conftest.er1 >conftest.err
2007  rm -f conftest.er1
2008  cat conftest.err >&5
2009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010  (exit $ac_status); } &&
2011	 { ac_try='test -z "$ac_c_werror_flag"
2012			 || test ! -s conftest.err'
2013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014  (eval $ac_try) 2>&5
2015  ac_status=$?
2016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017  (exit $ac_status); }; } &&
2018	 { ac_try='test -s conftest.$ac_objext'
2019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020  (eval $ac_try) 2>&5
2021  ac_status=$?
2022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023  (exit $ac_status); }; }; then
2024  ac_cv_prog_cc_g=yes
2025else
2026  echo "$as_me: failed program was:" >&5
2027sed 's/^/| /' conftest.$ac_ext >&5
2028
2029ac_cv_prog_cc_g=no
2030fi
2031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2034echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2035if test "$ac_test_CFLAGS" = set; then
2036  CFLAGS=$ac_save_CFLAGS
2037elif test $ac_cv_prog_cc_g = yes; then
2038  if test "$GCC" = yes; then
2039    CFLAGS="-g -O2"
2040  else
2041    CFLAGS="-g"
2042  fi
2043else
2044  if test "$GCC" = yes; then
2045    CFLAGS="-O2"
2046  else
2047    CFLAGS=
2048  fi
2049fi
2050echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2051echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2052if test "${ac_cv_prog_cc_stdc+set}" = set; then
2053  echo $ECHO_N "(cached) $ECHO_C" >&6
2054else
2055  ac_cv_prog_cc_stdc=no
2056ac_save_CC=$CC
2057cat >conftest.$ac_ext <<_ACEOF
2058/* confdefs.h.  */
2059_ACEOF
2060cat confdefs.h >>conftest.$ac_ext
2061cat >>conftest.$ac_ext <<_ACEOF
2062/* end confdefs.h.  */
2063#include <stdarg.h>
2064#include <stdio.h>
2065#include <sys/types.h>
2066#include <sys/stat.h>
2067/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2068struct buf { int x; };
2069FILE * (*rcsopen) (struct buf *, struct stat *, int);
2070static char *e (p, i)
2071     char **p;
2072     int i;
2073{
2074  return p[i];
2075}
2076static char *f (char * (*g) (char **, int), char **p, ...)
2077{
2078  char *s;
2079  va_list v;
2080  va_start (v,p);
2081  s = g (p, va_arg (v,int));
2082  va_end (v);
2083  return s;
2084}
2085
2086/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2087   function prototypes and stuff, but not '\xHH' hex character constants.
2088   These don't provoke an error unfortunately, instead are silently treated
2089   as 'x'.  The following induces an error, until -std1 is added to get
2090   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2091   array size at least.  It's necessary to write '\x00'==0 to get something
2092   that's true only with -std1.  */
2093int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2094
2095int test (int i, double x);
2096struct s1 {int (*f) (int a);};
2097struct s2 {int (*f) (double a);};
2098int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2099int argc;
2100char **argv;
2101int
2102main ()
2103{
2104return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2105  ;
2106  return 0;
2107}
2108_ACEOF
2109# Don't try gcc -ansi; that turns off useful extensions and
2110# breaks some systems' header files.
2111# AIX			-qlanglvl=ansi
2112# Ultrix and OSF/1	-std1
2113# HP-UX 10.20 and later	-Ae
2114# HP-UX older versions	-Aa -D_HPUX_SOURCE
2115# SVR4			-Xc -D__EXTENSIONS__
2116for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2117do
2118  CC="$ac_save_CC $ac_arg"
2119  rm -f conftest.$ac_objext
2120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121  (eval $ac_compile) 2>conftest.er1
2122  ac_status=$?
2123  grep -v '^ *+' conftest.er1 >conftest.err
2124  rm -f conftest.er1
2125  cat conftest.err >&5
2126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127  (exit $ac_status); } &&
2128	 { ac_try='test -z "$ac_c_werror_flag"
2129			 || test ! -s conftest.err'
2130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131  (eval $ac_try) 2>&5
2132  ac_status=$?
2133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134  (exit $ac_status); }; } &&
2135	 { ac_try='test -s conftest.$ac_objext'
2136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137  (eval $ac_try) 2>&5
2138  ac_status=$?
2139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140  (exit $ac_status); }; }; then
2141  ac_cv_prog_cc_stdc=$ac_arg
2142break
2143else
2144  echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147fi
2148rm -f conftest.err conftest.$ac_objext
2149done
2150rm -f conftest.$ac_ext conftest.$ac_objext
2151CC=$ac_save_CC
2152
2153fi
2154
2155case "x$ac_cv_prog_cc_stdc" in
2156  x|xno)
2157    echo "$as_me:$LINENO: result: none needed" >&5
2158echo "${ECHO_T}none needed" >&6 ;;
2159  *)
2160    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2161echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2162    CC="$CC $ac_cv_prog_cc_stdc" ;;
2163esac
2164
2165# Some people use a C++ compiler to compile C.  Since we use `exit',
2166# in C++ we need to declare it.  In case someone uses the same compiler
2167# for both compiling C and C++ we need to have the C++ compiler decide
2168# the declaration of exit, since it's the most demanding environment.
2169cat >conftest.$ac_ext <<_ACEOF
2170#ifndef __cplusplus
2171  choke me
2172#endif
2173_ACEOF
2174rm -f conftest.$ac_objext
2175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176  (eval $ac_compile) 2>conftest.er1
2177  ac_status=$?
2178  grep -v '^ *+' conftest.er1 >conftest.err
2179  rm -f conftest.er1
2180  cat conftest.err >&5
2181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182  (exit $ac_status); } &&
2183	 { ac_try='test -z "$ac_c_werror_flag"
2184			 || test ! -s conftest.err'
2185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186  (eval $ac_try) 2>&5
2187  ac_status=$?
2188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189  (exit $ac_status); }; } &&
2190	 { ac_try='test -s conftest.$ac_objext'
2191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192  (eval $ac_try) 2>&5
2193  ac_status=$?
2194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195  (exit $ac_status); }; }; then
2196  for ac_declaration in \
2197   '' \
2198   'extern "C" void std::exit (int) throw (); using std::exit;' \
2199   'extern "C" void std::exit (int); using std::exit;' \
2200   'extern "C" void exit (int) throw ();' \
2201   'extern "C" void exit (int);' \
2202   'void exit (int);'
2203do
2204  cat >conftest.$ac_ext <<_ACEOF
2205/* confdefs.h.  */
2206_ACEOF
2207cat confdefs.h >>conftest.$ac_ext
2208cat >>conftest.$ac_ext <<_ACEOF
2209/* end confdefs.h.  */
2210$ac_declaration
2211#include <stdlib.h>
2212int
2213main ()
2214{
2215exit (42);
2216  ;
2217  return 0;
2218}
2219_ACEOF
2220rm -f conftest.$ac_objext
2221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222  (eval $ac_compile) 2>conftest.er1
2223  ac_status=$?
2224  grep -v '^ *+' conftest.er1 >conftest.err
2225  rm -f conftest.er1
2226  cat conftest.err >&5
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); } &&
2229	 { ac_try='test -z "$ac_c_werror_flag"
2230			 || test ! -s conftest.err'
2231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232  (eval $ac_try) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }; } &&
2236	 { ac_try='test -s conftest.$ac_objext'
2237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238  (eval $ac_try) 2>&5
2239  ac_status=$?
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); }; }; then
2242  :
2243else
2244  echo "$as_me: failed program was:" >&5
2245sed 's/^/| /' conftest.$ac_ext >&5
2246
2247continue
2248fi
2249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250  cat >conftest.$ac_ext <<_ACEOF
2251/* confdefs.h.  */
2252_ACEOF
2253cat confdefs.h >>conftest.$ac_ext
2254cat >>conftest.$ac_ext <<_ACEOF
2255/* end confdefs.h.  */
2256$ac_declaration
2257int
2258main ()
2259{
2260exit (42);
2261  ;
2262  return 0;
2263}
2264_ACEOF
2265rm -f conftest.$ac_objext
2266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267  (eval $ac_compile) 2>conftest.er1
2268  ac_status=$?
2269  grep -v '^ *+' conftest.er1 >conftest.err
2270  rm -f conftest.er1
2271  cat conftest.err >&5
2272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273  (exit $ac_status); } &&
2274	 { ac_try='test -z "$ac_c_werror_flag"
2275			 || test ! -s conftest.err'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; } &&
2281	 { ac_try='test -s conftest.$ac_objext'
2282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283  (eval $ac_try) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; }; then
2287  break
2288else
2289  echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292fi
2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294done
2295rm -f conftest*
2296if test -n "$ac_declaration"; then
2297  echo '#ifdef __cplusplus' >>confdefs.h
2298  echo $ac_declaration      >>confdefs.h
2299  echo '#endif'             >>confdefs.h
2300fi
2301
2302else
2303  echo "$as_me: failed program was:" >&5
2304sed 's/^/| /' conftest.$ac_ext >&5
2305
2306fi
2307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2308ac_ext=c
2309ac_cpp='$CPP $CPPFLAGS'
2310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313	ac_ext=c
2314ac_cpp='$CPP $CPPFLAGS'
2315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2319echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2320# On Suns, sometimes $CPP names a directory.
2321if test -n "$CPP" && test -d "$CPP"; then
2322  CPP=
2323fi
2324if test -z "$CPP"; then
2325  if test "${ac_cv_prog_CPP+set}" = set; then
2326  echo $ECHO_N "(cached) $ECHO_C" >&6
2327else
2328      # Double quotes because CPP needs to be expanded
2329    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2330    do
2331      ac_preproc_ok=false
2332for ac_c_preproc_warn_flag in '' yes
2333do
2334  # Use a header file that comes with gcc, so configuring glibc
2335  # with a fresh cross-compiler works.
2336  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2337  # <limits.h> exists even on freestanding compilers.
2338  # On the NeXT, cc -E runs the code through the compiler's parser,
2339  # not just through cpp. "Syntax error" is here to catch this case.
2340  cat >conftest.$ac_ext <<_ACEOF
2341/* confdefs.h.  */
2342_ACEOF
2343cat confdefs.h >>conftest.$ac_ext
2344cat >>conftest.$ac_ext <<_ACEOF
2345/* end confdefs.h.  */
2346#ifdef __STDC__
2347# include <limits.h>
2348#else
2349# include <assert.h>
2350#endif
2351		     Syntax error
2352_ACEOF
2353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2354  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2355  ac_status=$?
2356  grep -v '^ *+' conftest.er1 >conftest.err
2357  rm -f conftest.er1
2358  cat conftest.err >&5
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); } >/dev/null; then
2361  if test -s conftest.err; then
2362    ac_cpp_err=$ac_c_preproc_warn_flag
2363    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2364  else
2365    ac_cpp_err=
2366  fi
2367else
2368  ac_cpp_err=yes
2369fi
2370if test -z "$ac_cpp_err"; then
2371  :
2372else
2373  echo "$as_me: failed program was:" >&5
2374sed 's/^/| /' conftest.$ac_ext >&5
2375
2376  # Broken: fails on valid input.
2377continue
2378fi
2379rm -f conftest.err conftest.$ac_ext
2380
2381  # OK, works on sane cases.  Now check whether non-existent headers
2382  # can be detected and how.
2383  cat >conftest.$ac_ext <<_ACEOF
2384/* confdefs.h.  */
2385_ACEOF
2386cat confdefs.h >>conftest.$ac_ext
2387cat >>conftest.$ac_ext <<_ACEOF
2388/* end confdefs.h.  */
2389#include <ac_nonexistent.h>
2390_ACEOF
2391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2392  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2393  ac_status=$?
2394  grep -v '^ *+' conftest.er1 >conftest.err
2395  rm -f conftest.er1
2396  cat conftest.err >&5
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); } >/dev/null; then
2399  if test -s conftest.err; then
2400    ac_cpp_err=$ac_c_preproc_warn_flag
2401    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2402  else
2403    ac_cpp_err=
2404  fi
2405else
2406  ac_cpp_err=yes
2407fi
2408if test -z "$ac_cpp_err"; then
2409  # Broken: success on invalid input.
2410continue
2411else
2412  echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415  # Passes both tests.
2416ac_preproc_ok=:
2417break
2418fi
2419rm -f conftest.err conftest.$ac_ext
2420
2421done
2422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2423rm -f conftest.err conftest.$ac_ext
2424if $ac_preproc_ok; then
2425  break
2426fi
2427
2428    done
2429    ac_cv_prog_CPP=$CPP
2430
2431fi
2432  CPP=$ac_cv_prog_CPP
2433else
2434  ac_cv_prog_CPP=$CPP
2435fi
2436echo "$as_me:$LINENO: result: $CPP" >&5
2437echo "${ECHO_T}$CPP" >&6
2438ac_preproc_ok=false
2439for ac_c_preproc_warn_flag in '' yes
2440do
2441  # Use a header file that comes with gcc, so configuring glibc
2442  # with a fresh cross-compiler works.
2443  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2444  # <limits.h> exists even on freestanding compilers.
2445  # On the NeXT, cc -E runs the code through the compiler's parser,
2446  # not just through cpp. "Syntax error" is here to catch this case.
2447  cat >conftest.$ac_ext <<_ACEOF
2448/* confdefs.h.  */
2449_ACEOF
2450cat confdefs.h >>conftest.$ac_ext
2451cat >>conftest.$ac_ext <<_ACEOF
2452/* end confdefs.h.  */
2453#ifdef __STDC__
2454# include <limits.h>
2455#else
2456# include <assert.h>
2457#endif
2458		     Syntax error
2459_ACEOF
2460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2461  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2462  ac_status=$?
2463  grep -v '^ *+' conftest.er1 >conftest.err
2464  rm -f conftest.er1
2465  cat conftest.err >&5
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); } >/dev/null; then
2468  if test -s conftest.err; then
2469    ac_cpp_err=$ac_c_preproc_warn_flag
2470    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2471  else
2472    ac_cpp_err=
2473  fi
2474else
2475  ac_cpp_err=yes
2476fi
2477if test -z "$ac_cpp_err"; then
2478  :
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483  # Broken: fails on valid input.
2484continue
2485fi
2486rm -f conftest.err conftest.$ac_ext
2487
2488  # OK, works on sane cases.  Now check whether non-existent headers
2489  # can be detected and how.
2490  cat >conftest.$ac_ext <<_ACEOF
2491/* confdefs.h.  */
2492_ACEOF
2493cat confdefs.h >>conftest.$ac_ext
2494cat >>conftest.$ac_ext <<_ACEOF
2495/* end confdefs.h.  */
2496#include <ac_nonexistent.h>
2497_ACEOF
2498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2499  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2500  ac_status=$?
2501  grep -v '^ *+' conftest.er1 >conftest.err
2502  rm -f conftest.er1
2503  cat conftest.err >&5
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); } >/dev/null; then
2506  if test -s conftest.err; then
2507    ac_cpp_err=$ac_c_preproc_warn_flag
2508    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2509  else
2510    ac_cpp_err=
2511  fi
2512else
2513  ac_cpp_err=yes
2514fi
2515if test -z "$ac_cpp_err"; then
2516  # Broken: success on invalid input.
2517continue
2518else
2519  echo "$as_me: failed program was:" >&5
2520sed 's/^/| /' conftest.$ac_ext >&5
2521
2522  # Passes both tests.
2523ac_preproc_ok=:
2524break
2525fi
2526rm -f conftest.err conftest.$ac_ext
2527
2528done
2529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2530rm -f conftest.err conftest.$ac_ext
2531if $ac_preproc_ok; then
2532  :
2533else
2534  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2535See \`config.log' for more details." >&5
2536echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2537See \`config.log' for more details." >&2;}
2538   { (exit 1); exit 1; }; }
2539fi
2540
2541ac_ext=c
2542ac_cpp='$CPP $CPPFLAGS'
2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546
2547
2548echo "$as_me:$LINENO: checking for egrep" >&5
2549echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2550if test "${ac_cv_prog_egrep+set}" = set; then
2551  echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2554    then ac_cv_prog_egrep='grep -E'
2555    else ac_cv_prog_egrep='egrep'
2556    fi
2557fi
2558echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2559echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2560 EGREP=$ac_cv_prog_egrep
2561
2562
2563cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h.  */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h.  */
2569
2570_ACEOF
2571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2572  $EGREP "" >/dev/null 2>&1; then
2573  :
2574fi
2575rm -f conftest*
2576 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2577echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2578if test "${ac_cv_search_strerror+set}" = set; then
2579  echo $ECHO_N "(cached) $ECHO_C" >&6
2580else
2581  ac_func_search_save_LIBS=$LIBS
2582ac_cv_search_strerror=no
2583cat >conftest.$ac_ext <<_ACEOF
2584/* confdefs.h.  */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h.  */
2589
2590/* Override any gcc2 internal prototype to avoid an error.  */
2591#ifdef __cplusplus
2592extern "C"
2593#endif
2594/* We use char because int might match the return type of a gcc2
2595   builtin and then its argument prototype would still apply.  */
2596char strerror ();
2597int
2598main ()
2599{
2600strerror ();
2601  ;
2602  return 0;
2603}
2604_ACEOF
2605rm -f conftest.$ac_objext conftest$ac_exeext
2606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607  (eval $ac_link) 2>conftest.er1
2608  ac_status=$?
2609  grep -v '^ *+' conftest.er1 >conftest.err
2610  rm -f conftest.er1
2611  cat conftest.err >&5
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); } &&
2614	 { ac_try='test -z "$ac_c_werror_flag"
2615			 || test ! -s conftest.err'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; } &&
2621	 { ac_try='test -s conftest$ac_exeext'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; }; then
2627  ac_cv_search_strerror="none required"
2628else
2629  echo "$as_me: failed program was:" >&5
2630sed 's/^/| /' conftest.$ac_ext >&5
2631
2632fi
2633rm -f conftest.err conftest.$ac_objext \
2634      conftest$ac_exeext conftest.$ac_ext
2635if test "$ac_cv_search_strerror" = no; then
2636  for ac_lib in cposix; do
2637    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2638    cat >conftest.$ac_ext <<_ACEOF
2639/* confdefs.h.  */
2640_ACEOF
2641cat confdefs.h >>conftest.$ac_ext
2642cat >>conftest.$ac_ext <<_ACEOF
2643/* end confdefs.h.  */
2644
2645/* Override any gcc2 internal prototype to avoid an error.  */
2646#ifdef __cplusplus
2647extern "C"
2648#endif
2649/* We use char because int might match the return type of a gcc2
2650   builtin and then its argument prototype would still apply.  */
2651char strerror ();
2652int
2653main ()
2654{
2655strerror ();
2656  ;
2657  return 0;
2658}
2659_ACEOF
2660rm -f conftest.$ac_objext conftest$ac_exeext
2661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2662  (eval $ac_link) 2>conftest.er1
2663  ac_status=$?
2664  grep -v '^ *+' conftest.er1 >conftest.err
2665  rm -f conftest.er1
2666  cat conftest.err >&5
2667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668  (exit $ac_status); } &&
2669	 { ac_try='test -z "$ac_c_werror_flag"
2670			 || test ! -s conftest.err'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; } &&
2676	 { ac_try='test -s conftest$ac_exeext'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; }; then
2682  ac_cv_search_strerror="-l$ac_lib"
2683break
2684else
2685  echo "$as_me: failed program was:" >&5
2686sed 's/^/| /' conftest.$ac_ext >&5
2687
2688fi
2689rm -f conftest.err conftest.$ac_objext \
2690      conftest$ac_exeext conftest.$ac_ext
2691  done
2692fi
2693LIBS=$ac_func_search_save_LIBS
2694fi
2695echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2696echo "${ECHO_T}$ac_cv_search_strerror" >&6
2697if test "$ac_cv_search_strerror" != no; then
2698  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2699
2700fi
2701	for ac_prog in gawk mawk nawk awk
2702do
2703  # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
2705echo "$as_me:$LINENO: checking for $ac_word" >&5
2706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2707if test "${ac_cv_prog_AWK+set}" = set; then
2708  echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710  if test -n "$AWK"; then
2711  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716  IFS=$as_save_IFS
2717  test -z "$as_dir" && as_dir=.
2718  for ac_exec_ext in '' $ac_executable_extensions; do
2719  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720    ac_cv_prog_AWK="$ac_prog"
2721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722    break 2
2723  fi
2724done
2725done
2726
2727fi
2728fi
2729AWK=$ac_cv_prog_AWK
2730if test -n "$AWK"; then
2731  echo "$as_me:$LINENO: result: $AWK" >&5
2732echo "${ECHO_T}$AWK" >&6
2733else
2734  echo "$as_me:$LINENO: result: no" >&5
2735echo "${ECHO_T}no" >&6
2736fi
2737
2738  test -n "$AWK" && break
2739done
2740
2741# Extract the first word of "strip", so it can be a program name with args.
2742set dummy strip; ac_word=$2
2743echo "$as_me:$LINENO: checking for $ac_word" >&5
2744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745if test "${ac_cv_prog_STRIP+set}" = set; then
2746  echo $ECHO_N "(cached) $ECHO_C" >&6
2747else
2748  if test -n "$STRIP"; then
2749  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2750else
2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH
2753do
2754  IFS=$as_save_IFS
2755  test -z "$as_dir" && as_dir=.
2756  for ac_exec_ext in '' $ac_executable_extensions; do
2757  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758    ac_cv_prog_STRIP="strip"
2759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760    break 2
2761  fi
2762done
2763done
2764
2765  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2766fi
2767fi
2768STRIP=$ac_cv_prog_STRIP
2769if test -n "$STRIP"; then
2770  echo "$as_me:$LINENO: result: $STRIP" >&5
2771echo "${ECHO_T}$STRIP" >&6
2772else
2773  echo "$as_me:$LINENO: result: no" >&5
2774echo "${ECHO_T}no" >&6
2775fi
2776
2777
2778
2779
2780if test -z "$CFLAGS"; then
2781  CFLAGS="-O"
2782  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
2783fi
2784if test "$GCC" = yes; then
2785    gccversion=`"$CC" -dumpversion`
2786  if test "x$gccversion" = "x"; then
2787        gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
2788  fi
2789    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
2790    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
2791    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2792  else
2793    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2794      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2795      CFLAGS="$CFLAGS -fno-strength-reduce"
2796    fi
2797  fi
2798fi
2799
2800if test "$cross_compiling" = yes; then
2801  { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2802  (cross compiling doesn't work)" >&5
2803echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2804  (cross compiling doesn't work)" >&2;}
2805   { (exit 1); exit 1; }; }
2806fi
2807
2808test "$GCC" = yes && CPP_MM=M;
2809
2810if test -f ./toolcheck; then
2811  { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2812echo "$as_me: checking for buggy tools..." >&6;}
2813  sh ./toolcheck 1>&6
2814fi
2815
2816OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2817
2818echo "$as_me:$LINENO: checking for BeOS" >&5
2819echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
2820case `uname` in
2821    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
2822		BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2823echo "${ECHO_T}yes" >&6;;
2824    *)		BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2825echo "${ECHO_T}no" >&6;;
2826esac
2827
2828echo "$as_me:$LINENO: checking for QNX" >&5
2829echo $ECHO_N "checking for QNX... $ECHO_C" >&6
2830case `uname` in
2831    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2832		test -z "$with_x" && with_x=no
2833		QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2834echo "${ECHO_T}yes" >&6;;
2835    *)		QNX=no; echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6;;
2837esac
2838
2839echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2840echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
2841if test "`(uname) 2>/dev/null`" = Darwin; then
2842  echo "$as_me:$LINENO: result: yes" >&5
2843echo "${ECHO_T}yes" >&6
2844
2845  echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2846echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
2847  # Check whether --enable-darwin or --disable-darwin was given.
2848if test "${enable_darwin+set}" = set; then
2849  enableval="$enable_darwin"
2850
2851else
2852  enable_darwin="yes"
2853fi;
2854  if test "$enable_darwin" = "yes"; then
2855    echo "$as_me:$LINENO: result: no" >&5
2856echo "${ECHO_T}no" >&6
2857    echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2858echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
2859    if test -f os_macosx.c; then
2860      echo "$as_me:$LINENO: result: yes" >&5
2861echo "${ECHO_T}yes" >&6
2862    else
2863      echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2864echo "${ECHO_T}no, Darwin support disabled" >&6
2865      enable_darwin=no
2866    fi
2867  else
2868    echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2869echo "${ECHO_T}yes, Darwin support excluded" >&6
2870  fi
2871
2872  echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2873echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2874
2875# Check whether --with-mac-arch or --without-mac-arch was given.
2876if test "${with_mac_arch+set}" = set; then
2877  withval="$with_mac_arch"
2878  MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2879echo "${ECHO_T}$MACARCH" >&6
2880else
2881  MACARCH="current"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
2882echo "${ECHO_T}defaulting to $MACARCH" >&6
2883fi;
2884
2885  if test "x$MACARCH" = "xboth"; then
2886    echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
2887echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6
2888                            save_cppflags="$CPPFLAGS"
2889    save_cflags="$CFLAGS"
2890    save_ldflags="$LDFLAGS"
2891    CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
2892    cat >conftest.$ac_ext <<_ACEOF
2893/* confdefs.h.  */
2894_ACEOF
2895cat confdefs.h >>conftest.$ac_ext
2896cat >>conftest.$ac_ext <<_ACEOF
2897/* end confdefs.h.  */
2898
2899int
2900main ()
2901{
2902
2903  ;
2904  return 0;
2905}
2906_ACEOF
2907rm -f conftest.$ac_objext conftest$ac_exeext
2908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2909  (eval $ac_link) 2>conftest.er1
2910  ac_status=$?
2911  grep -v '^ *+' conftest.er1 >conftest.err
2912  rm -f conftest.er1
2913  cat conftest.err >&5
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); } &&
2916	 { ac_try='test -z "$ac_c_werror_flag"
2917			 || test ! -s conftest.err'
2918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919  (eval $ac_try) 2>&5
2920  ac_status=$?
2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922  (exit $ac_status); }; } &&
2923	 { ac_try='test -s conftest$ac_exeext'
2924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925  (eval $ac_try) 2>&5
2926  ac_status=$?
2927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928  (exit $ac_status); }; }; then
2929  echo "$as_me:$LINENO: result: found" >&5
2930echo "${ECHO_T}found" >&6
2931else
2932  echo "$as_me: failed program was:" >&5
2933sed 's/^/| /' conftest.$ac_ext >&5
2934
2935echo "$as_me:$LINENO: result: not found" >&5
2936echo "${ECHO_T}not found" >&6
2937	CFLAGS="$save_cflags"
2938	echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
2939echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
2940	CPPFLAGS="$CPPFLAGS -arch i386"
2941	LDFLAGS="$save_ldflags -arch i386"
2942	cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h.  */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h.  */
2948
2949int
2950main ()
2951{
2952
2953  ;
2954  return 0;
2955}
2956_ACEOF
2957rm -f conftest.$ac_objext conftest$ac_exeext
2958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2959  (eval $ac_link) 2>conftest.er1
2960  ac_status=$?
2961  grep -v '^ *+' conftest.er1 >conftest.err
2962  rm -f conftest.er1
2963  cat conftest.err >&5
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); } &&
2966	 { ac_try='test -z "$ac_c_werror_flag"
2967			 || test ! -s conftest.err'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; } &&
2973	 { ac_try='test -s conftest$ac_exeext'
2974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975  (eval $ac_try) 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; }; then
2979  echo "$as_me:$LINENO: result: yes" >&5
2980echo "${ECHO_T}yes" >&6; MACARCH="intel"
2981else
2982  echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985echo "$as_me:$LINENO: result: no" >&5
2986echo "${ECHO_T}no" >&6
2987		MACARCH="ppc"
2988		CPPFLAGS="$save_cppflags -arch ppc"
2989		LDFLAGS="$save_ldflags -arch ppc"
2990fi
2991rm -f conftest.err conftest.$ac_objext \
2992      conftest$ac_exeext conftest.$ac_ext
2993fi
2994rm -f conftest.err conftest.$ac_objext \
2995      conftest$ac_exeext conftest.$ac_ext
2996  elif test "x$MACARCH" = "xintel"; then
2997    CPPFLAGS="$CPPFLAGS -arch intel"
2998    LDFLAGS="$LDFLAGS -arch intel"
2999  elif test "x$MACARCH" = "xppc"; then
3000    CPPFLAGS="$CPPFLAGS -arch ppc"
3001    LDFLAGS="$LDFLAGS -arch ppc"
3002  fi
3003
3004  if test "$enable_darwin" = "yes"; then
3005    MACOSX=yes
3006    OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3007    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3008        CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3009    if test "x$MACARCH" = "xboth"; then
3010      CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3011    else
3012      CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3013    fi
3014
3015                echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3016echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3017if test "${ac_cv_header_stdc+set}" = set; then
3018  echo $ECHO_N "(cached) $ECHO_C" >&6
3019else
3020  cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h.  */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h.  */
3026#include <stdlib.h>
3027#include <stdarg.h>
3028#include <string.h>
3029#include <float.h>
3030
3031int
3032main ()
3033{
3034
3035  ;
3036  return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext
3040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041  (eval $ac_compile) 2>conftest.er1
3042  ac_status=$?
3043  grep -v '^ *+' conftest.er1 >conftest.err
3044  rm -f conftest.er1
3045  cat conftest.err >&5
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); } &&
3048	 { ac_try='test -z "$ac_c_werror_flag"
3049			 || test ! -s conftest.err'
3050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051  (eval $ac_try) 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; } &&
3055	 { ac_try='test -s conftest.$ac_objext'
3056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057  (eval $ac_try) 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; }; then
3061  ac_cv_header_stdc=yes
3062else
3063  echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066ac_cv_header_stdc=no
3067fi
3068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3069
3070if test $ac_cv_header_stdc = yes; then
3071  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3072  cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h.  */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h.  */
3078#include <string.h>
3079
3080_ACEOF
3081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3082  $EGREP "memchr" >/dev/null 2>&1; then
3083  :
3084else
3085  ac_cv_header_stdc=no
3086fi
3087rm -f conftest*
3088
3089fi
3090
3091if test $ac_cv_header_stdc = yes; then
3092  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3093  cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h.  */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h.  */
3099#include <stdlib.h>
3100
3101_ACEOF
3102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3103  $EGREP "free" >/dev/null 2>&1; then
3104  :
3105else
3106  ac_cv_header_stdc=no
3107fi
3108rm -f conftest*
3109
3110fi
3111
3112if test $ac_cv_header_stdc = yes; then
3113  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3114  if test "$cross_compiling" = yes; then
3115  :
3116else
3117  cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123#include <ctype.h>
3124#if ((' ' & 0x0FF) == 0x020)
3125# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3126# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3127#else
3128# define ISLOWER(c) \
3129		   (('a' <= (c) && (c) <= 'i') \
3130		     || ('j' <= (c) && (c) <= 'r') \
3131		     || ('s' <= (c) && (c) <= 'z'))
3132# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3133#endif
3134
3135#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3136int
3137main ()
3138{
3139  int i;
3140  for (i = 0; i < 256; i++)
3141    if (XOR (islower (i), ISLOWER (i))
3142	|| toupper (i) != TOUPPER (i))
3143      exit(2);
3144  exit (0);
3145}
3146_ACEOF
3147rm -f conftest$ac_exeext
3148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3149  (eval $ac_link) 2>&5
3150  ac_status=$?
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154  (eval $ac_try) 2>&5
3155  ac_status=$?
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); }; }; then
3158  :
3159else
3160  echo "$as_me: program exited with status $ac_status" >&5
3161echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164( exit $ac_status )
3165ac_cv_header_stdc=no
3166fi
3167rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3168fi
3169fi
3170fi
3171echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3172echo "${ECHO_T}$ac_cv_header_stdc" >&6
3173if test $ac_cv_header_stdc = yes; then
3174
3175cat >>confdefs.h <<\_ACEOF
3176#define STDC_HEADERS 1
3177_ACEOF
3178
3179fi
3180
3181# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3192		  inttypes.h stdint.h unistd.h
3193do
3194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3195echo "$as_me:$LINENO: checking for $ac_header" >&5
3196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3197if eval "test \"\${$as_ac_Header+set}\" = set"; then
3198  echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
3200  cat >conftest.$ac_ext <<_ACEOF
3201/* confdefs.h.  */
3202_ACEOF
3203cat confdefs.h >>conftest.$ac_ext
3204cat >>conftest.$ac_ext <<_ACEOF
3205/* end confdefs.h.  */
3206$ac_includes_default
3207
3208#include <$ac_header>
3209_ACEOF
3210rm -f conftest.$ac_objext
3211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212  (eval $ac_compile) 2>conftest.er1
3213  ac_status=$?
3214  grep -v '^ *+' conftest.er1 >conftest.err
3215  rm -f conftest.er1
3216  cat conftest.err >&5
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); } &&
3219	 { ac_try='test -z "$ac_c_werror_flag"
3220			 || test ! -s conftest.err'
3221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222  (eval $ac_try) 2>&5
3223  ac_status=$?
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }; } &&
3226	 { ac_try='test -s conftest.$ac_objext'
3227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228  (eval $ac_try) 2>&5
3229  ac_status=$?
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); }; }; then
3232  eval "$as_ac_Header=yes"
3233else
3234  echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237eval "$as_ac_Header=no"
3238fi
3239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
3241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3243if test `eval echo '${'$as_ac_Header'}'` = yes; then
3244  cat >>confdefs.h <<_ACEOF
3245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3246_ACEOF
3247
3248fi
3249
3250done
3251
3252
3253if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3254  echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3255echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3256if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3257  echo $ECHO_N "(cached) $ECHO_C" >&6
3258fi
3259echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3260echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3261else
3262  # Is the header compilable?
3263echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3264echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3265cat >conftest.$ac_ext <<_ACEOF
3266/* confdefs.h.  */
3267_ACEOF
3268cat confdefs.h >>conftest.$ac_ext
3269cat >>conftest.$ac_ext <<_ACEOF
3270/* end confdefs.h.  */
3271$ac_includes_default
3272#include <Carbon/Carbon.h>
3273_ACEOF
3274rm -f conftest.$ac_objext
3275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276  (eval $ac_compile) 2>conftest.er1
3277  ac_status=$?
3278  grep -v '^ *+' conftest.er1 >conftest.err
3279  rm -f conftest.er1
3280  cat conftest.err >&5
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); } &&
3283	 { ac_try='test -z "$ac_c_werror_flag"
3284			 || test ! -s conftest.err'
3285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286  (eval $ac_try) 2>&5
3287  ac_status=$?
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); }; } &&
3290	 { ac_try='test -s conftest.$ac_objext'
3291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292  (eval $ac_try) 2>&5
3293  ac_status=$?
3294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295  (exit $ac_status); }; }; then
3296  ac_header_compiler=yes
3297else
3298  echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301ac_header_compiler=no
3302fi
3303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3305echo "${ECHO_T}$ac_header_compiler" >&6
3306
3307# Is the header present?
3308echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3309echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3310cat >conftest.$ac_ext <<_ACEOF
3311/* confdefs.h.  */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h.  */
3316#include <Carbon/Carbon.h>
3317_ACEOF
3318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3320  ac_status=$?
3321  grep -v '^ *+' conftest.er1 >conftest.err
3322  rm -f conftest.er1
3323  cat conftest.err >&5
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); } >/dev/null; then
3326  if test -s conftest.err; then
3327    ac_cpp_err=$ac_c_preproc_warn_flag
3328    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329  else
3330    ac_cpp_err=
3331  fi
3332else
3333  ac_cpp_err=yes
3334fi
3335if test -z "$ac_cpp_err"; then
3336  ac_header_preproc=yes
3337else
3338  echo "$as_me: failed program was:" >&5
3339sed 's/^/| /' conftest.$ac_ext >&5
3340
3341  ac_header_preproc=no
3342fi
3343rm -f conftest.err conftest.$ac_ext
3344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3345echo "${ECHO_T}$ac_header_preproc" >&6
3346
3347# So?  What about this header?
3348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3349  yes:no: )
3350    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3351echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3352    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3353echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3354    ac_header_preproc=yes
3355    ;;
3356  no:yes:* )
3357    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3358echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3359    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
3360echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
3361    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3362echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3363    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
3364echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3365    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3366echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3367    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3368echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3369    (
3370      cat <<\_ASBOX
3371## ------------------------------------------ ##
3372## Report this to the AC_PACKAGE_NAME lists.  ##
3373## ------------------------------------------ ##
3374_ASBOX
3375    ) |
3376      sed "s/^/$as_me: WARNING:     /" >&2
3377    ;;
3378esac
3379echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3380echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3381if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3382  echo $ECHO_N "(cached) $ECHO_C" >&6
3383else
3384  ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3385fi
3386echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3387echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3388
3389fi
3390if test $ac_cv_header_Carbon_Carbon_h = yes; then
3391  CARBON=yes
3392fi
3393
3394
3395    if test "x$CARBON" = "xyes"; then
3396      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
3397	with_x=no
3398      fi
3399    fi
3400  fi
3401
3402        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
3403    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3404  fi
3405
3406else
3407  echo "$as_me:$LINENO: result: no" >&5
3408echo "${ECHO_T}no" >&6
3409fi
3410
3411
3412
3413
3414have_local_include=''
3415have_local_lib=''
3416if test "$GCC" = yes; then
3417  echo 'void f(){}' > conftest.c
3418    have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3419  have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3420  rm -f conftest.c conftest.o
3421fi
3422if test -z "$have_local_lib" -a -d /usr/local/lib; then
3423  tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3424  if test "$tt" = "$LDFLAGS"; then
3425    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3426  fi
3427fi
3428if test -z "$have_local_include" -a -d /usr/local/include; then
3429  tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3430  if test "$tt" = "$CPPFLAGS"; then
3431    CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3432  fi
3433fi
3434
3435echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3436echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3437
3438# Check whether --with-vim-name or --without-vim-name was given.
3439if test "${with_vim_name+set}" = set; then
3440  withval="$with_vim_name"
3441  VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3442echo "${ECHO_T}$VIMNAME" >&6
3443else
3444  VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
3445echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3446fi;
3447
3448echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3449echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
3450
3451# Check whether --with-ex-name or --without-ex-name was given.
3452if test "${with_ex_name+set}" = set; then
3453  withval="$with_ex_name"
3454  EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3455echo "${ECHO_T}$EXNAME" >&6
3456else
3457  EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3458echo "${ECHO_T}Defaulting to ex" >&6
3459fi;
3460
3461echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3462echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
3463
3464# Check whether --with-view-name or --without-view-name was given.
3465if test "${with_view_name+set}" = set; then
3466  withval="$with_view_name"
3467  VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3468echo "${ECHO_T}$VIEWNAME" >&6
3469else
3470  VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3471echo "${ECHO_T}Defaulting to view" >&6
3472fi;
3473
3474
3475echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3476echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
3477
3478# Check whether --with-global-runtime or --without-global-runtime was given.
3479if test "${with_global_runtime+set}" = set; then
3480  withval="$with_global_runtime"
3481  echo "$as_me:$LINENO: result: $withval" >&5
3482echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3483#define RUNTIME_GLOBAL "$withval"
3484_ACEOF
3485
3486else
3487  echo "$as_me:$LINENO: result: no" >&5
3488echo "${ECHO_T}no" >&6
3489fi;
3490
3491echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3492echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
3493
3494# Check whether --with-modified-by or --without-modified-by was given.
3495if test "${with_modified_by+set}" = set; then
3496  withval="$with_modified_by"
3497  echo "$as_me:$LINENO: result: $withval" >&5
3498echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3499#define MODIFIED_BY "$withval"
3500_ACEOF
3501
3502else
3503  echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505fi;
3506
3507echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3508echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3509cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h.  */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h.  */
3515
3516int
3517main ()
3518{
3519 /* TryCompile function for CharSet.
3520   Treat any failure as ASCII for compatibility with existing art.
3521   Use compile-time rather than run-time tests for cross-compiler
3522   tolerance.  */
3523#if '0'!=240
3524make an error "Character set is not EBCDIC"
3525#endif
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530rm -f conftest.$ac_objext
3531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532  (eval $ac_compile) 2>conftest.er1
3533  ac_status=$?
3534  grep -v '^ *+' conftest.er1 >conftest.err
3535  rm -f conftest.er1
3536  cat conftest.err >&5
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); } &&
3539	 { ac_try='test -z "$ac_c_werror_flag"
3540			 || test ! -s conftest.err'
3541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542  (eval $ac_try) 2>&5
3543  ac_status=$?
3544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545  (exit $ac_status); }; } &&
3546	 { ac_try='test -s conftest.$ac_objext'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; }; then
3552   # TryCompile action if true
3553cf_cv_ebcdic=yes
3554else
3555  echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 # TryCompile action if false
3559cf_cv_ebcdic=no
3560fi
3561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3562# end of TryCompile ])
3563# end of CacheVal CvEbcdic
3564echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3565echo "${ECHO_T}$cf_cv_ebcdic" >&6
3566case "$cf_cv_ebcdic" in  #(vi
3567    yes)	cat >>confdefs.h <<\_ACEOF
3568#define EBCDIC 1
3569_ACEOF
3570
3571		line_break='"\\n"'
3572		;;
3573    *)		line_break='"\\012"';;
3574esac
3575
3576
3577if test "$cf_cv_ebcdic" = "yes"; then
3578echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3579echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3580case `uname` in
3581    OS/390)	OS390Unix="yes";
3582										if test "$CC" = "cc"; then
3583		  ccm="$_CC_CCMODE"
3584		  ccn="CC"
3585		else
3586		  if test "$CC" = "c89"; then
3587		    ccm="$_CC_C89MODE"
3588		    ccn="C89"
3589		  else
3590		    ccm=1
3591		  fi
3592		fi
3593		if test "$ccm" != "1"; then
3594		  echo ""
3595		  echo "------------------------------------------"
3596		  echo " On OS/390 Unix, the environment variable"
3597		  echo " __CC_${ccn}MODE must be set to \"1\"!"
3598		  echo " Do:"
3599		  echo "    export _CC_${ccn}MODE=1"
3600		  echo " and then call configure again."
3601		  echo "------------------------------------------"
3602		  exit 1
3603		fi
3604		CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
3605		echo "$as_me:$LINENO: result: yes" >&5
3606echo "${ECHO_T}yes" >&6
3607		;;
3608    *)		OS390Unix="no";
3609		echo "$as_me:$LINENO: result: no" >&5
3610echo "${ECHO_T}no" >&6
3611		;;
3612esac
3613fi
3614
3615echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
3616echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6
3617# Check whether --enable-selinux or --disable-selinux was given.
3618if test "${enable_selinux+set}" = set; then
3619  enableval="$enable_selinux"
3620
3621else
3622  enable_selinux="yes"
3623fi;
3624if test "$enable_selinux" = "yes"; then
3625  echo "$as_me:$LINENO: result: no" >&5
3626echo "${ECHO_T}no" >&6
3627  echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
3628echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
3629if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
3630  echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632  ac_check_lib_save_LIBS=$LIBS
3633LIBS="-lselinux  $LIBS"
3634cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h.  */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h.  */
3640
3641/* Override any gcc2 internal prototype to avoid an error.  */
3642#ifdef __cplusplus
3643extern "C"
3644#endif
3645/* We use char because int might match the return type of a gcc2
3646   builtin and then its argument prototype would still apply.  */
3647char is_selinux_enabled ();
3648int
3649main ()
3650{
3651is_selinux_enabled ();
3652  ;
3653  return 0;
3654}
3655_ACEOF
3656rm -f conftest.$ac_objext conftest$ac_exeext
3657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3658  (eval $ac_link) 2>conftest.er1
3659  ac_status=$?
3660  grep -v '^ *+' conftest.er1 >conftest.err
3661  rm -f conftest.er1
3662  cat conftest.err >&5
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); } &&
3665	 { ac_try='test -z "$ac_c_werror_flag"
3666			 || test ! -s conftest.err'
3667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668  (eval $ac_try) 2>&5
3669  ac_status=$?
3670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); }; } &&
3672	 { ac_try='test -s conftest$ac_exeext'
3673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674  (eval $ac_try) 2>&5
3675  ac_status=$?
3676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677  (exit $ac_status); }; }; then
3678  ac_cv_lib_selinux_is_selinux_enabled=yes
3679else
3680  echo "$as_me: failed program was:" >&5
3681sed 's/^/| /' conftest.$ac_ext >&5
3682
3683ac_cv_lib_selinux_is_selinux_enabled=no
3684fi
3685rm -f conftest.err conftest.$ac_objext \
3686      conftest$ac_exeext conftest.$ac_ext
3687LIBS=$ac_check_lib_save_LIBS
3688fi
3689echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
3690echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
3691if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
3692  LIBS="$LIBS -lselinux"
3693	   cat >>confdefs.h <<\_ACEOF
3694#define HAVE_SELINUX 1
3695_ACEOF
3696
3697fi
3698
3699else
3700   echo "$as_me:$LINENO: result: yes" >&5
3701echo "${ECHO_T}yes" >&6
3702fi
3703
3704
3705echo "$as_me:$LINENO: checking --with-features argument" >&5
3706echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3707
3708# Check whether --with-features or --without-features was given.
3709if test "${with_features+set}" = set; then
3710  withval="$with_features"
3711  features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3712echo "${ECHO_T}$features" >&6
3713else
3714  features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3715echo "${ECHO_T}Defaulting to normal" >&6
3716fi;
3717
3718dovimdiff=""
3719dogvimdiff=""
3720case "$features" in
3721  tiny)		cat >>confdefs.h <<\_ACEOF
3722#define FEAT_TINY 1
3723_ACEOF
3724 ;;
3725  small)	cat >>confdefs.h <<\_ACEOF
3726#define FEAT_SMALL 1
3727_ACEOF
3728 ;;
3729  normal)	cat >>confdefs.h <<\_ACEOF
3730#define FEAT_NORMAL 1
3731_ACEOF
3732 dovimdiff="installvimdiff";
3733			dogvimdiff="installgvimdiff" ;;
3734  big)		cat >>confdefs.h <<\_ACEOF
3735#define FEAT_BIG 1
3736_ACEOF
3737 dovimdiff="installvimdiff";
3738			dogvimdiff="installgvimdiff" ;;
3739  huge)		cat >>confdefs.h <<\_ACEOF
3740#define FEAT_HUGE 1
3741_ACEOF
3742 dovimdiff="installvimdiff";
3743			dogvimdiff="installgvimdiff" ;;
3744  *)		echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3745echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
3746esac
3747
3748
3749
3750
3751echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3752echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3753
3754# Check whether --with-compiledby or --without-compiledby was given.
3755if test "${with_compiledby+set}" = set; then
3756  withval="$with_compiledby"
3757  compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3758echo "${ECHO_T}$withval" >&6
3759else
3760  compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3761echo "${ECHO_T}no" >&6
3762fi;
3763
3764
3765echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3766echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
3767# Check whether --enable-xsmp or --disable-xsmp was given.
3768if test "${enable_xsmp+set}" = set; then
3769  enableval="$enable_xsmp"
3770
3771else
3772  enable_xsmp="yes"
3773fi;
3774
3775if test "$enable_xsmp" = "yes"; then
3776  echo "$as_me:$LINENO: result: no" >&5
3777echo "${ECHO_T}no" >&6
3778  echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3779echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
3780  # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3781if test "${enable_xsmp_interact+set}" = set; then
3782  enableval="$enable_xsmp_interact"
3783
3784else
3785  enable_xsmp_interact="yes"
3786fi;
3787  if test "$enable_xsmp_interact" = "yes"; then
3788    echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6
3790    cat >>confdefs.h <<\_ACEOF
3791#define USE_XSMP_INTERACT 1
3792_ACEOF
3793
3794  else
3795    echo "$as_me:$LINENO: result: yes" >&5
3796echo "${ECHO_T}yes" >&6
3797  fi
3798else
3799  echo "$as_me:$LINENO: result: yes" >&5
3800echo "${ECHO_T}yes" >&6
3801fi
3802
3803echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3804echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
3805# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3806if test "${enable_mzschemeinterp+set}" = set; then
3807  enableval="$enable_mzschemeinterp"
3808
3809else
3810  enable_mzschemeinterp="no"
3811fi;
3812echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3813echo "${ECHO_T}$enable_mzschemeinterp" >&6
3814
3815if test "$enable_mzschemeinterp" = "yes"; then
3816
3817
3818  echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3819echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3820
3821# Check whether --with-plthome or --without-plthome was given.
3822if test "${with_plthome+set}" = set; then
3823  withval="$with_plthome"
3824  with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3825echo "${ECHO_T}$with_plthome" >&6
3826else
3827  with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3828echo "${ECHO_T}\"no\"" >&6
3829fi;
3830
3831  if test "X$with_plthome" != "X"; then
3832       vi_cv_path_mzscheme_pfx="$with_plthome"
3833  else
3834    echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3835echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
3836    if test "X$PLTHOME" != "X"; then
3837	echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3838echo "${ECHO_T}\"$PLTHOME\"" >&6
3839	vi_cv_path_mzscheme_pfx="$PLTHOME"
3840    else
3841	echo "$as_me:$LINENO: result: \"not set\"" >&5
3842echo "${ECHO_T}\"not set\"" >&6
3843		# Extract the first word of "mzscheme", so it can be a program name with args.
3844set dummy mzscheme; ac_word=$2
3845echo "$as_me:$LINENO: checking for $ac_word" >&5
3846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3848  echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
3850  case $vi_cv_path_mzscheme in
3851  [\\/]* | ?:[\\/]*)
3852  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3853  ;;
3854  *)
3855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH
3857do
3858  IFS=$as_save_IFS
3859  test -z "$as_dir" && as_dir=.
3860  for ac_exec_ext in '' $ac_executable_extensions; do
3861  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864    break 2
3865  fi
3866done
3867done
3868
3869  ;;
3870esac
3871fi
3872vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3873
3874if test -n "$vi_cv_path_mzscheme"; then
3875  echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3876echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
3877else
3878  echo "$as_me:$LINENO: result: no" >&5
3879echo "${ECHO_T}no" >&6
3880fi
3881
3882
3883			if test "X$vi_cv_path_mzscheme" != "X"; then
3884	  lsout=`ls -l $vi_cv_path_mzscheme`
3885	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3886	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3887	  fi
3888	fi
3889
3890	if test "X$vi_cv_path_mzscheme" != "X"; then
3891	    	    echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3892echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3893if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3894  echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896   vi_cv_path_mzscheme_pfx=`
3897	    ${vi_cv_path_mzscheme} -evm \
3898	    "(display (simplify-path		\
3899	       (build-path (call-with-values	\
3900		(lambda () (split-path (find-system-path (quote exec-file)))) \
3901		(lambda (base name must-be-dir?) base)) (quote up))))"`
3902fi
3903echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3904echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
3905	    	    vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3906	fi
3907    fi
3908  fi
3909
3910  SCHEME_INC=
3911  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3912    echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3913echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6
3914    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
3915      echo "$as_me:$LINENO: result: \"yes\"" >&5
3916echo "${ECHO_T}\"yes\"" >&6
3917    else
3918      echo "$as_me:$LINENO: result: \"no\"" >&5
3919echo "${ECHO_T}\"no\"" >&6
3920      echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
3921echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... $ECHO_C" >&6
3922      if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
3923	echo "$as_me:$LINENO: result: \"yes\"" >&5
3924echo "${ECHO_T}\"yes\"" >&6
3925	SCHEME_INC=/plt
3926      else
3927	echo "$as_me:$LINENO: result: \"no\"" >&5
3928echo "${ECHO_T}\"no\"" >&6
3929	vi_cv_path_mzscheme_pfx=
3930      fi
3931    fi
3932  fi
3933
3934  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3935    if test "x$MACOSX" = "xyes"; then
3936      MZSCHEME_LIBS="-framework PLT_MzScheme"
3937    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3938      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
3939    else
3940      MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
3941      if test "$GCC" = yes; then
3942			MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
3943      elif test "`(uname) 2>/dev/null`" = SunOS &&
3944			       uname -r | grep '^5' >/dev/null; then
3945	MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
3946      fi
3947    fi
3948    if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
3949      SCHEME_COLLECTS=lib/plt/
3950    fi
3951    MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC}   \
3952      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
3953    MZSCHEME_SRC="if_mzsch.c"
3954    MZSCHEME_OBJ="objects/if_mzsch.o"
3955    MZSCHEME_PRO="if_mzsch.pro"
3956    cat >>confdefs.h <<\_ACEOF
3957#define FEAT_MZSCHEME 1
3958_ACEOF
3959
3960  fi
3961
3962
3963
3964
3965
3966fi
3967
3968
3969echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3970echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
3971# Check whether --enable-perlinterp or --disable-perlinterp was given.
3972if test "${enable_perlinterp+set}" = set; then
3973  enableval="$enable_perlinterp"
3974
3975else
3976  enable_perlinterp="no"
3977fi;
3978echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3979echo "${ECHO_T}$enable_perlinterp" >&6
3980if test "$enable_perlinterp" = "yes"; then
3981
3982  # Extract the first word of "perl", so it can be a program name with args.
3983set dummy perl; ac_word=$2
3984echo "$as_me:$LINENO: checking for $ac_word" >&5
3985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3987  echo $ECHO_N "(cached) $ECHO_C" >&6
3988else
3989  case $vi_cv_path_perl in
3990  [\\/]* | ?:[\\/]*)
3991  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3992  ;;
3993  *)
3994  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH
3996do
3997  IFS=$as_save_IFS
3998  test -z "$as_dir" && as_dir=.
3999  for ac_exec_ext in '' $ac_executable_extensions; do
4000  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003    break 2
4004  fi
4005done
4006done
4007
4008  ;;
4009esac
4010fi
4011vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4012
4013if test -n "$vi_cv_path_perl"; then
4014  echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4015echo "${ECHO_T}$vi_cv_path_perl" >&6
4016else
4017  echo "$as_me:$LINENO: result: no" >&5
4018echo "${ECHO_T}no" >&6
4019fi
4020
4021  if test "X$vi_cv_path_perl" != "X"; then
4022    echo "$as_me:$LINENO: checking Perl version" >&5
4023echo $ECHO_N "checking Perl version... $ECHO_C" >&6
4024    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4025     eval `$vi_cv_path_perl -V:usethreads`
4026     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4027       badthreads=no
4028     else
4029       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4030	 eval `$vi_cv_path_perl -V:use5005threads`
4031	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4032	   badthreads=no
4033	 else
4034	   badthreads=yes
4035	   echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4036echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
4037	 fi
4038       else
4039	 badthreads=yes
4040	 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4041echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
4042       fi
4043     fi
4044     if test $badthreads = no; then
4045      echo "$as_me:$LINENO: result: OK" >&5
4046echo "${ECHO_T}OK" >&6
4047      eval `$vi_cv_path_perl -V:shrpenv`
4048      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4049	shrpenv=""
4050      fi
4051      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4052
4053            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4054	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4055            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4056		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4057			-e 's/-bE:perl.exp//' -e 's/-lc //'`
4058                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4059		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4060
4061                  echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4062echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
4063      cflags_save=$CFLAGS
4064      libs_save=$LIBS
4065      ldflags_save=$LDFLAGS
4066      CFLAGS="$CFLAGS $perlcppflags"
4067      LIBS="$LIBS $perllibs"
4068      LDFLAGS="$perlldflags $LDFLAGS"
4069      cat >conftest.$ac_ext <<_ACEOF
4070/* confdefs.h.  */
4071_ACEOF
4072cat confdefs.h >>conftest.$ac_ext
4073cat >>conftest.$ac_ext <<_ACEOF
4074/* end confdefs.h.  */
4075
4076int
4077main ()
4078{
4079
4080  ;
4081  return 0;
4082}
4083_ACEOF
4084rm -f conftest.$ac_objext conftest$ac_exeext
4085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4086  (eval $ac_link) 2>conftest.er1
4087  ac_status=$?
4088  grep -v '^ *+' conftest.er1 >conftest.err
4089  rm -f conftest.er1
4090  cat conftest.err >&5
4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); } &&
4093	 { ac_try='test -z "$ac_c_werror_flag"
4094			 || test ! -s conftest.err'
4095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096  (eval $ac_try) 2>&5
4097  ac_status=$?
4098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099  (exit $ac_status); }; } &&
4100	 { ac_try='test -s conftest$ac_exeext'
4101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102  (eval $ac_try) 2>&5
4103  ac_status=$?
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); }; }; then
4106  echo "$as_me:$LINENO: result: yes" >&5
4107echo "${ECHO_T}yes" >&6; perl_ok=yes
4108else
4109  echo "$as_me: failed program was:" >&5
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
4112echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4113echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
4114fi
4115rm -f conftest.err conftest.$ac_objext \
4116      conftest$ac_exeext conftest.$ac_ext
4117      CFLAGS=$cflags_save
4118      LIBS=$libs_save
4119      LDFLAGS=$ldflags_save
4120      if test $perl_ok = yes; then
4121	if test "X$perlcppflags" != "X"; then
4122	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4123	fi
4124	if test "X$perlldflags" != "X"; then
4125	  LDFLAGS="$perlldflags $LDFLAGS"
4126	fi
4127	PERL_LIBS=$perllibs
4128	PERL_SRC="auto/if_perl.c if_perlsfio.c"
4129	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4130	PERL_PRO="if_perl.pro if_perlsfio.pro"
4131	cat >>confdefs.h <<\_ACEOF
4132#define FEAT_PERL 1
4133_ACEOF
4134
4135      fi
4136     fi
4137    else
4138      echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4139echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
4140    fi
4141  fi
4142
4143  if test "x$MACOSX" = "xyes"; then
4144        dir=/System/Library/Perl
4145    darwindir=$dir/darwin
4146    if test -d $darwindir; then
4147      PERL=/usr/bin/perl
4148    else
4149            dir=/System/Library/Perl/5.8.1
4150      darwindir=$dir/darwin-thread-multi-2level
4151      if test -d $darwindir; then
4152	PERL=/usr/bin/perl
4153      fi
4154    fi
4155    if test -n "$PERL"; then
4156      PERL_DIR="$dir"
4157      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4158      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4159      PERL_LIBS="-L$darwindir/CORE -lperl"
4160    fi
4161  fi
4162fi
4163
4164
4165
4166
4167
4168
4169
4170echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4171echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
4172# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4173if test "${enable_pythoninterp+set}" = set; then
4174  enableval="$enable_pythoninterp"
4175
4176else
4177  enable_pythoninterp="no"
4178fi;
4179echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4180echo "${ECHO_T}$enable_pythoninterp" >&6
4181if test "$enable_pythoninterp" = "yes"; then
4182    # Extract the first word of "python", so it can be a program name with args.
4183set dummy python; ac_word=$2
4184echo "$as_me:$LINENO: checking for $ac_word" >&5
4185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4187  echo $ECHO_N "(cached) $ECHO_C" >&6
4188else
4189  case $vi_cv_path_python in
4190  [\\/]* | ?:[\\/]*)
4191  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4192  ;;
4193  *)
4194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197  IFS=$as_save_IFS
4198  test -z "$as_dir" && as_dir=.
4199  for ac_exec_ext in '' $ac_executable_extensions; do
4200  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203    break 2
4204  fi
4205done
4206done
4207
4208  ;;
4209esac
4210fi
4211vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4212
4213if test -n "$vi_cv_path_python"; then
4214  echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4215echo "${ECHO_T}$vi_cv_path_python" >&6
4216else
4217  echo "$as_me:$LINENO: result: no" >&5
4218echo "${ECHO_T}no" >&6
4219fi
4220
4221  if test "X$vi_cv_path_python" != "X"; then
4222
4223        echo "$as_me:$LINENO: checking Python version" >&5
4224echo $ECHO_N "checking Python version... $ECHO_C" >&6
4225if test "${vi_cv_var_python_version+set}" = set; then
4226  echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228  vi_cv_var_python_version=`
4229	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
4230
4231fi
4232echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4233echo "${ECHO_T}$vi_cv_var_python_version" >&6
4234
4235        echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4236echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
4237    if ${vi_cv_path_python} -c \
4238	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4239    then
4240      echo "$as_me:$LINENO: result: yep" >&5
4241echo "${ECHO_T}yep" >&6
4242
4243            echo "$as_me:$LINENO: checking Python's install prefix" >&5
4244echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4245if test "${vi_cv_path_python_pfx+set}" = set; then
4246  echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248   vi_cv_path_python_pfx=`
4249	    ${vi_cv_path_python} -c \
4250		"import sys; print sys.prefix"`
4251fi
4252echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4253echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
4254
4255            echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4256echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4257if test "${vi_cv_path_python_epfx+set}" = set; then
4258  echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260   vi_cv_path_python_epfx=`
4261	    ${vi_cv_path_python} -c \
4262		"import sys; print sys.exec_prefix"`
4263fi
4264echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4265echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
4266
4267
4268      if test "${vi_cv_path_pythonpath+set}" = set; then
4269  echo $ECHO_N "(cached) $ECHO_C" >&6
4270else
4271   vi_cv_path_pythonpath=`
4272	    unset PYTHONPATH;
4273	    ${vi_cv_path_python} -c \
4274		"import sys, string; print string.join(sys.path,':')"`
4275fi
4276
4277
4278
4279
4280# Check whether --with-python-config-dir or --without-python-config-dir was given.
4281if test "${with_python_config_dir+set}" = set; then
4282  withval="$with_python_config_dir"
4283   vi_cv_path_python_conf="${withval}"
4284fi;
4285
4286      echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4287echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4288if test "${vi_cv_path_python_conf+set}" = set; then
4289  echo $ECHO_N "(cached) $ECHO_C" >&6
4290else
4291
4292	vi_cv_path_python_conf=
4293	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4294	  for subdir in lib share; do
4295	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4296	    if test -d "$d" && test -f "$d/config.c"; then
4297	      vi_cv_path_python_conf="$d"
4298	    fi
4299	  done
4300	done
4301
4302fi
4303echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4304echo "${ECHO_T}$vi_cv_path_python_conf" >&6
4305
4306      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4307
4308      if test "X$PYTHON_CONFDIR" = "X"; then
4309	echo "$as_me:$LINENO: result: can't find it!" >&5
4310echo "${ECHO_T}can't find it!" >&6
4311      else
4312
4313			if test "${vi_cv_path_python_plibs+set}" = set; then
4314  echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316
4317	    tmp_mkf="/tmp/Makefile-conf$$"
4318	    cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4319__:
4320	@echo "python_MODLIBS='$(MODLIBS)'"
4321	@echo "python_LIBS='$(LIBS)'"
4322	@echo "python_SYSLIBS='$(SYSLIBS)'"
4323	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4324eof
4325	    	    eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4326	    rm -f ${tmp_mkf}
4327	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4328		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4329	      vi_cv_path_python_plibs="-framework Python"
4330	    else
4331	      if test "${vi_cv_var_python_version}" = "1.4"; then
4332		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4333	      else
4334		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4335	      fi
4336	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4337	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4338	    fi
4339
4340fi
4341
4342
4343	PYTHON_LIBS="${vi_cv_path_python_plibs}"
4344	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4345	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4346	else
4347	  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}"
4348	fi
4349	PYTHON_SRC="if_python.c"
4350		if test "x$MACOSX" = "xyes"; then
4351	  PYTHON_OBJ="objects/if_python.o"
4352	else
4353	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4354	fi
4355	if test "${vi_cv_var_python_version}" = "1.4"; then
4356	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4357	fi
4358	PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4359
4360								echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4361echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
4362	threadsafe_flag=
4363	thread_lib=
4364	        if test "`(uname) 2>/dev/null`" != Darwin; then
4365	  test "$GCC" = yes && threadsafe_flag="-pthread"
4366	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
4367	    threadsafe_flag="-D_THREAD_SAFE"
4368	    thread_lib="-pthread"
4369	  fi
4370	fi
4371	libs_save_old=$LIBS
4372	if test -n "$threadsafe_flag"; then
4373	  cflags_save=$CFLAGS
4374	  CFLAGS="$CFLAGS $threadsafe_flag"
4375	  LIBS="$LIBS $thread_lib"
4376	  cat >conftest.$ac_ext <<_ACEOF
4377/* confdefs.h.  */
4378_ACEOF
4379cat confdefs.h >>conftest.$ac_ext
4380cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h.  */
4382
4383int
4384main ()
4385{
4386
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391rm -f conftest.$ac_objext conftest$ac_exeext
4392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393  (eval $ac_link) 2>conftest.er1
4394  ac_status=$?
4395  grep -v '^ *+' conftest.er1 >conftest.err
4396  rm -f conftest.er1
4397  cat conftest.err >&5
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); } &&
4400	 { ac_try='test -z "$ac_c_werror_flag"
4401			 || test ! -s conftest.err'
4402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403  (eval $ac_try) 2>&5
4404  ac_status=$?
4405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406  (exit $ac_status); }; } &&
4407	 { ac_try='test -s conftest$ac_exeext'
4408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409  (eval $ac_try) 2>&5
4410  ac_status=$?
4411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412  (exit $ac_status); }; }; then
4413  echo "$as_me:$LINENO: result: yes" >&5
4414echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
4415else
4416  echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419echo "$as_me:$LINENO: result: no" >&5
4420echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4421
4422fi
4423rm -f conftest.err conftest.$ac_objext \
4424      conftest$ac_exeext conftest.$ac_ext
4425	  CFLAGS=$cflags_save
4426	else
4427	  echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6
4429	fi
4430
4431			echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4432echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
4433	cflags_save=$CFLAGS
4434	libs_save=$LIBS
4435	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4436	LIBS="$LIBS $PYTHON_LIBS"
4437	cat >conftest.$ac_ext <<_ACEOF
4438/* confdefs.h.  */
4439_ACEOF
4440cat confdefs.h >>conftest.$ac_ext
4441cat >>conftest.$ac_ext <<_ACEOF
4442/* end confdefs.h.  */
4443
4444int
4445main ()
4446{
4447
4448  ;
4449  return 0;
4450}
4451_ACEOF
4452rm -f conftest.$ac_objext conftest$ac_exeext
4453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4454  (eval $ac_link) 2>conftest.er1
4455  ac_status=$?
4456  grep -v '^ *+' conftest.er1 >conftest.err
4457  rm -f conftest.er1
4458  cat conftest.err >&5
4459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); } &&
4461	 { ac_try='test -z "$ac_c_werror_flag"
4462			 || test ! -s conftest.err'
4463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464  (eval $ac_try) 2>&5
4465  ac_status=$?
4466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467  (exit $ac_status); }; } &&
4468	 { ac_try='test -s conftest$ac_exeext'
4469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470  (eval $ac_try) 2>&5
4471  ac_status=$?
4472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473  (exit $ac_status); }; }; then
4474  echo "$as_me:$LINENO: result: yes" >&5
4475echo "${ECHO_T}yes" >&6; python_ok=yes
4476else
4477  echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4481echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
4482fi
4483rm -f conftest.err conftest.$ac_objext \
4484      conftest$ac_exeext conftest.$ac_ext
4485	CFLAGS=$cflags_save
4486	LIBS=$libs_save
4487	if test $python_ok = yes; then
4488	  cat >>confdefs.h <<\_ACEOF
4489#define FEAT_PYTHON 1
4490_ACEOF
4491
4492	else
4493	  LIBS=$libs_save_old
4494	  PYTHON_SRC=
4495	  PYTHON_OBJ=
4496	  PYTHON_LIBS=
4497	  PYTHON_CFLAGS=
4498	fi
4499
4500      fi
4501    else
4502      echo "$as_me:$LINENO: result: too old" >&5
4503echo "${ECHO_T}too old" >&6
4504    fi
4505  fi
4506fi
4507
4508
4509
4510
4511
4512
4513
4514echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4515echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
4516# Check whether --enable-tclinterp or --disable-tclinterp was given.
4517if test "${enable_tclinterp+set}" = set; then
4518  enableval="$enable_tclinterp"
4519
4520else
4521  enable_tclinterp="no"
4522fi;
4523echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4524echo "${ECHO_T}$enable_tclinterp" >&6
4525
4526if test "$enable_tclinterp" = "yes"; then
4527
4528    echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4529echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4530
4531# Check whether --with-tclsh or --without-tclsh was given.
4532if test "${with_tclsh+set}" = set; then
4533  withval="$with_tclsh"
4534  tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4535echo "${ECHO_T}$tclsh_name" >&6
4536else
4537  tclsh_name="tclsh8.5"; echo "$as_me:$LINENO: result: no" >&5
4538echo "${ECHO_T}no" >&6
4539fi;
4540  # Extract the first word of "$tclsh_name", so it can be a program name with args.
4541set dummy $tclsh_name; ac_word=$2
4542echo "$as_me:$LINENO: checking for $ac_word" >&5
4543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4545  echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547  case $vi_cv_path_tcl in
4548  [\\/]* | ?:[\\/]*)
4549  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4550  ;;
4551  *)
4552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555  IFS=$as_save_IFS
4556  test -z "$as_dir" && as_dir=.
4557  for ac_exec_ext in '' $ac_executable_extensions; do
4558  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561    break 2
4562  fi
4563done
4564done
4565
4566  ;;
4567esac
4568fi
4569vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4570
4571if test -n "$vi_cv_path_tcl"; then
4572  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4573echo "${ECHO_T}$vi_cv_path_tcl" >&6
4574else
4575  echo "$as_me:$LINENO: result: no" >&5
4576echo "${ECHO_T}no" >&6
4577fi
4578
4579
4580
4581    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
4582    tclsh_name="tclsh8.4"
4583    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4584set dummy $tclsh_name; ac_word=$2
4585echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4588  echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590  case $vi_cv_path_tcl in
4591  [\\/]* | ?:[\\/]*)
4592  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4593  ;;
4594  *)
4595  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598  IFS=$as_save_IFS
4599  test -z "$as_dir" && as_dir=.
4600  for ac_exec_ext in '' $ac_executable_extensions; do
4601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604    break 2
4605  fi
4606done
4607done
4608
4609  ;;
4610esac
4611fi
4612vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4613
4614if test -n "$vi_cv_path_tcl"; then
4615  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4616echo "${ECHO_T}$vi_cv_path_tcl" >&6
4617else
4618  echo "$as_me:$LINENO: result: no" >&5
4619echo "${ECHO_T}no" >&6
4620fi
4621
4622  fi
4623  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
4624    tclsh_name="tclsh8.2"
4625    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4626set dummy $tclsh_name; ac_word=$2
4627echo "$as_me:$LINENO: checking for $ac_word" >&5
4628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4630  echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632  case $vi_cv_path_tcl in
4633  [\\/]* | ?:[\\/]*)
4634  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4635  ;;
4636  *)
4637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640  IFS=$as_save_IFS
4641  test -z "$as_dir" && as_dir=.
4642  for ac_exec_ext in '' $ac_executable_extensions; do
4643  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646    break 2
4647  fi
4648done
4649done
4650
4651  ;;
4652esac
4653fi
4654vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4655
4656if test -n "$vi_cv_path_tcl"; then
4657  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4658echo "${ECHO_T}$vi_cv_path_tcl" >&6
4659else
4660  echo "$as_me:$LINENO: result: no" >&5
4661echo "${ECHO_T}no" >&6
4662fi
4663
4664  fi
4665  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4666    tclsh_name="tclsh8.0"
4667    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4668set dummy $tclsh_name; ac_word=$2
4669echo "$as_me:$LINENO: checking for $ac_word" >&5
4670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4671if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4672  echo $ECHO_N "(cached) $ECHO_C" >&6
4673else
4674  case $vi_cv_path_tcl in
4675  [\\/]* | ?:[\\/]*)
4676  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4677  ;;
4678  *)
4679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680for as_dir in $PATH
4681do
4682  IFS=$as_save_IFS
4683  test -z "$as_dir" && as_dir=.
4684  for ac_exec_ext in '' $ac_executable_extensions; do
4685  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688    break 2
4689  fi
4690done
4691done
4692
4693  ;;
4694esac
4695fi
4696vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4697
4698if test -n "$vi_cv_path_tcl"; then
4699  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4700echo "${ECHO_T}$vi_cv_path_tcl" >&6
4701else
4702  echo "$as_me:$LINENO: result: no" >&5
4703echo "${ECHO_T}no" >&6
4704fi
4705
4706  fi
4707    if test "X$vi_cv_path_tcl" = "X"; then
4708    tclsh_name="tclsh"
4709    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4710set dummy $tclsh_name; ac_word=$2
4711echo "$as_me:$LINENO: checking for $ac_word" >&5
4712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4713if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4714  echo $ECHO_N "(cached) $ECHO_C" >&6
4715else
4716  case $vi_cv_path_tcl in
4717  [\\/]* | ?:[\\/]*)
4718  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4719  ;;
4720  *)
4721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722for as_dir in $PATH
4723do
4724  IFS=$as_save_IFS
4725  test -z "$as_dir" && as_dir=.
4726  for ac_exec_ext in '' $ac_executable_extensions; do
4727  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730    break 2
4731  fi
4732done
4733done
4734
4735  ;;
4736esac
4737fi
4738vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4739
4740if test -n "$vi_cv_path_tcl"; then
4741  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4742echo "${ECHO_T}$vi_cv_path_tcl" >&6
4743else
4744  echo "$as_me:$LINENO: result: no" >&5
4745echo "${ECHO_T}no" >&6
4746fi
4747
4748  fi
4749  if test "X$vi_cv_path_tcl" != "X"; then
4750    echo "$as_me:$LINENO: checking Tcl version" >&5
4751echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
4752    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4753      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
4754      echo "$as_me:$LINENO: result: $tclver - OK" >&5
4755echo "${ECHO_T}$tclver - OK" >&6;
4756      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 -`
4757
4758      echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4759echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
4760      if test "x$MACOSX" != "xyes"; then
4761	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include /usr/include/tcl$tclver"
4762      else
4763		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4764      fi
4765      TCL_INC=
4766      for try in $tclinc; do
4767	if test -f "$try/tcl.h"; then
4768	  echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4769echo "${ECHO_T}$try/tcl.h" >&6
4770	  TCL_INC=$try
4771	  break
4772	fi
4773      done
4774      if test -z "$TCL_INC"; then
4775	echo "$as_me:$LINENO: result: <not found>" >&5
4776echo "${ECHO_T}<not found>" >&6
4777	SKIP_TCL=YES
4778      fi
4779      if test -z "$SKIP_TCL"; then
4780	echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4781echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
4782	if test "x$MACOSX" != "xyes"; then
4783	  tclcnf=`echo $tclinc | sed s/include/lib/g`
4784	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
4785	else
4786	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
4787	fi
4788	for try in $tclcnf; do
4789	  if test -f $try/tclConfig.sh; then
4790	    echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4791echo "${ECHO_T}$try/tclConfig.sh" >&6
4792	    . $try/tclConfig.sh
4793	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
4794	    	    	    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'`
4795	    break
4796	  fi
4797	done
4798	if test -z "$TCL_LIBS"; then
4799	  echo "$as_me:$LINENO: result: <not found>" >&5
4800echo "${ECHO_T}<not found>" >&6
4801	  echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4802echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
4803	  tcllib=`echo $tclinc | sed s/include/lib/g`
4804	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
4805	  for ext in .so .a ; do
4806	    for ver in "" $tclver ; do
4807	      for try in $tcllib ; do
4808		trylib=tcl$ver$ext
4809		if test -f $try/lib$trylib ; then
4810		  echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4811echo "${ECHO_T}$try/lib$trylib" >&6
4812		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4813		  if test "`(uname) 2>/dev/null`" = SunOS &&
4814					 uname -r | grep '^5' >/dev/null; then
4815		    TCL_LIBS="$TCL_LIBS -R $try"
4816		  fi
4817		  break 3
4818		fi
4819	      done
4820	    done
4821	  done
4822	  if test -z "$TCL_LIBS"; then
4823	    echo "$as_me:$LINENO: result: <not found>" >&5
4824echo "${ECHO_T}<not found>" >&6
4825	    SKIP_TCL=YES
4826	  fi
4827	fi
4828	if test -z "$SKIP_TCL"; then
4829	  cat >>confdefs.h <<\_ACEOF
4830#define FEAT_TCL 1
4831_ACEOF
4832
4833	  TCL_SRC=if_tcl.c
4834	  TCL_OBJ=objects/if_tcl.o
4835	  TCL_PRO=if_tcl.pro
4836	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4837	fi
4838      fi
4839    else
4840      echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4841echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
4842    fi
4843  fi
4844fi
4845
4846
4847
4848
4849
4850
4851echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4852echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
4853# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4854if test "${enable_rubyinterp+set}" = set; then
4855  enableval="$enable_rubyinterp"
4856
4857else
4858  enable_rubyinterp="no"
4859fi;
4860echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4861echo "${ECHO_T}$enable_rubyinterp" >&6
4862if test "$enable_rubyinterp" = "yes"; then
4863
4864  # Extract the first word of "ruby", so it can be a program name with args.
4865set dummy ruby; ac_word=$2
4866echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  case $vi_cv_path_ruby in
4872  [\\/]* | ?:[\\/]*)
4873  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4874  ;;
4875  *)
4876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879  IFS=$as_save_IFS
4880  test -z "$as_dir" && as_dir=.
4881  for ac_exec_ext in '' $ac_executable_extensions; do
4882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885    break 2
4886  fi
4887done
4888done
4889
4890  ;;
4891esac
4892fi
4893vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4894
4895if test -n "$vi_cv_path_ruby"; then
4896  echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4897echo "${ECHO_T}$vi_cv_path_ruby" >&6
4898else
4899  echo "$as_me:$LINENO: result: no" >&5
4900echo "${ECHO_T}no" >&6
4901fi
4902
4903  if test "X$vi_cv_path_ruby" != "X"; then
4904    echo "$as_me:$LINENO: checking Ruby version" >&5
4905echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
4906    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
4907      echo "$as_me:$LINENO: result: OK" >&5
4908echo "${ECHO_T}OK" >&6
4909      echo "$as_me:$LINENO: checking Ruby header files" >&5
4910echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
4911      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4912      if test "X$rubyhdrdir" != "X"; then
4913	echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4914echo "${ECHO_T}$rubyhdrdir" >&6
4915	RUBY_CFLAGS="-I$rubyhdrdir"
4916	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4917	if test "X$rubylibs" != "X"; then
4918	  RUBY_LIBS="$rubylibs"
4919	fi
4920	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4921	if test -f "$rubyhdrdir/$librubyarg"; then
4922	  librubyarg="$rubyhdrdir/$librubyarg"
4923	else
4924	  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4925	  if test -f "$rubylibdir/$librubyarg"; then
4926	    librubyarg="$rubylibdir/$librubyarg"
4927	  elif test "$librubyarg" = "libruby.a"; then
4928	    	    librubyarg="-lruby"
4929	  else
4930	    librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4931	  fi
4932	fi
4933
4934	if test "X$librubyarg" != "X"; then
4935	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
4936	fi
4937	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4938	if test "X$rubyldflags" != "X"; then
4939	  LDFLAGS="$rubyldflags $LDFLAGS"
4940	fi
4941	RUBY_SRC="if_ruby.c"
4942	RUBY_OBJ="objects/if_ruby.o"
4943	RUBY_PRO="if_ruby.pro"
4944	cat >>confdefs.h <<\_ACEOF
4945#define FEAT_RUBY 1
4946_ACEOF
4947
4948      else
4949	echo "$as_me:$LINENO: result: not found" >&5
4950echo "${ECHO_T}not found" >&6
4951      fi
4952    else
4953      echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4954echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
4955    fi
4956  fi
4957fi
4958
4959
4960
4961
4962
4963
4964echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4965echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
4966# Check whether --enable-cscope or --disable-cscope was given.
4967if test "${enable_cscope+set}" = set; then
4968  enableval="$enable_cscope"
4969
4970else
4971  enable_cscope="no"
4972fi;
4973echo "$as_me:$LINENO: result: $enable_cscope" >&5
4974echo "${ECHO_T}$enable_cscope" >&6
4975if test "$enable_cscope" = "yes"; then
4976  cat >>confdefs.h <<\_ACEOF
4977#define FEAT_CSCOPE 1
4978_ACEOF
4979
4980fi
4981
4982echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4983echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
4984# Check whether --enable-workshop or --disable-workshop was given.
4985if test "${enable_workshop+set}" = set; then
4986  enableval="$enable_workshop"
4987
4988else
4989  enable_workshop="no"
4990fi;
4991echo "$as_me:$LINENO: result: $enable_workshop" >&5
4992echo "${ECHO_T}$enable_workshop" >&6
4993if test "$enable_workshop" = "yes"; then
4994  cat >>confdefs.h <<\_ACEOF
4995#define FEAT_SUN_WORKSHOP 1
4996_ACEOF
4997
4998  WORKSHOP_SRC="workshop.c integration.c"
4999
5000  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5001
5002  if test "${enable_gui-xxx}" = xxx; then
5003    enable_gui=motif
5004  fi
5005fi
5006
5007echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5008echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
5009# Check whether --enable-netbeans or --disable-netbeans was given.
5010if test "${enable_netbeans+set}" = set; then
5011  enableval="$enable_netbeans"
5012
5013else
5014  enable_netbeans="yes"
5015fi;
5016if test "$enable_netbeans" = "yes"; then
5017  echo "$as_me:$LINENO: result: no" >&5
5018echo "${ECHO_T}no" >&6
5019
5020echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5021echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5022if test "${ac_cv_lib_socket_socket+set}" = set; then
5023  echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025  ac_check_lib_save_LIBS=$LIBS
5026LIBS="-lsocket  $LIBS"
5027cat >conftest.$ac_ext <<_ACEOF
5028/* confdefs.h.  */
5029_ACEOF
5030cat confdefs.h >>conftest.$ac_ext
5031cat >>conftest.$ac_ext <<_ACEOF
5032/* end confdefs.h.  */
5033
5034/* Override any gcc2 internal prototype to avoid an error.  */
5035#ifdef __cplusplus
5036extern "C"
5037#endif
5038/* We use char because int might match the return type of a gcc2
5039   builtin and then its argument prototype would still apply.  */
5040char socket ();
5041int
5042main ()
5043{
5044socket ();
5045  ;
5046  return 0;
5047}
5048_ACEOF
5049rm -f conftest.$ac_objext conftest$ac_exeext
5050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5051  (eval $ac_link) 2>conftest.er1
5052  ac_status=$?
5053  grep -v '^ *+' conftest.er1 >conftest.err
5054  rm -f conftest.er1
5055  cat conftest.err >&5
5056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057  (exit $ac_status); } &&
5058	 { ac_try='test -z "$ac_c_werror_flag"
5059			 || test ! -s conftest.err'
5060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061  (eval $ac_try) 2>&5
5062  ac_status=$?
5063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064  (exit $ac_status); }; } &&
5065	 { ac_try='test -s conftest$ac_exeext'
5066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067  (eval $ac_try) 2>&5
5068  ac_status=$?
5069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070  (exit $ac_status); }; }; then
5071  ac_cv_lib_socket_socket=yes
5072else
5073  echo "$as_me: failed program was:" >&5
5074sed 's/^/| /' conftest.$ac_ext >&5
5075
5076ac_cv_lib_socket_socket=no
5077fi
5078rm -f conftest.err conftest.$ac_objext \
5079      conftest$ac_exeext conftest.$ac_ext
5080LIBS=$ac_check_lib_save_LIBS
5081fi
5082echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5083echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5084if test $ac_cv_lib_socket_socket = yes; then
5085  cat >>confdefs.h <<_ACEOF
5086#define HAVE_LIBSOCKET 1
5087_ACEOF
5088
5089  LIBS="-lsocket $LIBS"
5090
5091fi
5092
5093
5094echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5095echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5096if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5097  echo $ECHO_N "(cached) $ECHO_C" >&6
5098else
5099  ac_check_lib_save_LIBS=$LIBS
5100LIBS="-lnsl  $LIBS"
5101cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h.  */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h.  */
5107
5108/* Override any gcc2 internal prototype to avoid an error.  */
5109#ifdef __cplusplus
5110extern "C"
5111#endif
5112/* We use char because int might match the return type of a gcc2
5113   builtin and then its argument prototype would still apply.  */
5114char gethostbyname ();
5115int
5116main ()
5117{
5118gethostbyname ();
5119  ;
5120  return 0;
5121}
5122_ACEOF
5123rm -f conftest.$ac_objext conftest$ac_exeext
5124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125  (eval $ac_link) 2>conftest.er1
5126  ac_status=$?
5127  grep -v '^ *+' conftest.er1 >conftest.err
5128  rm -f conftest.er1
5129  cat conftest.err >&5
5130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131  (exit $ac_status); } &&
5132	 { ac_try='test -z "$ac_c_werror_flag"
5133			 || test ! -s conftest.err'
5134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135  (eval $ac_try) 2>&5
5136  ac_status=$?
5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138  (exit $ac_status); }; } &&
5139	 { ac_try='test -s conftest$ac_exeext'
5140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141  (eval $ac_try) 2>&5
5142  ac_status=$?
5143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144  (exit $ac_status); }; }; then
5145  ac_cv_lib_nsl_gethostbyname=yes
5146else
5147  echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150ac_cv_lib_nsl_gethostbyname=no
5151fi
5152rm -f conftest.err conftest.$ac_objext \
5153      conftest$ac_exeext conftest.$ac_ext
5154LIBS=$ac_check_lib_save_LIBS
5155fi
5156echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5157echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5158if test $ac_cv_lib_nsl_gethostbyname = yes; then
5159  cat >>confdefs.h <<_ACEOF
5160#define HAVE_LIBNSL 1
5161_ACEOF
5162
5163  LIBS="-lnsl $LIBS"
5164
5165fi
5166
5167  echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5168echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5169  cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h.  */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h.  */
5175
5176#include <stdio.h>
5177#include <stdlib.h>
5178#include <stdarg.h>
5179#include <fcntl.h>
5180#include <netdb.h>
5181#include <netinet/in.h>
5182#include <errno.h>
5183#include <sys/types.h>
5184#include <sys/socket.h>
5185	/* Check bitfields */
5186	struct nbbuf {
5187	unsigned int  initDone:1;
5188	ushort signmaplen;
5189	};
5190
5191int
5192main ()
5193{
5194
5195		/* Check creating a socket. */
5196		struct sockaddr_in server;
5197		(void)socket(AF_INET, SOCK_STREAM, 0);
5198		(void)htons(100);
5199		(void)gethostbyname("microsoft.com");
5200		if (errno == ECONNREFUSED)
5201		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
5202
5203  ;
5204  return 0;
5205}
5206_ACEOF
5207rm -f conftest.$ac_objext conftest$ac_exeext
5208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5209  (eval $ac_link) 2>conftest.er1
5210  ac_status=$?
5211  grep -v '^ *+' conftest.er1 >conftest.err
5212  rm -f conftest.er1
5213  cat conftest.err >&5
5214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215  (exit $ac_status); } &&
5216	 { ac_try='test -z "$ac_c_werror_flag"
5217			 || test ! -s conftest.err'
5218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219  (eval $ac_try) 2>&5
5220  ac_status=$?
5221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222  (exit $ac_status); }; } &&
5223	 { ac_try='test -s conftest$ac_exeext'
5224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225  (eval $ac_try) 2>&5
5226  ac_status=$?
5227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228  (exit $ac_status); }; }; then
5229  echo "$as_me:$LINENO: result: yes" >&5
5230echo "${ECHO_T}yes" >&6
5231else
5232  echo "$as_me: failed program was:" >&5
5233sed 's/^/| /' conftest.$ac_ext >&5
5234
5235echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6; enable_netbeans="no"
5237fi
5238rm -f conftest.err conftest.$ac_objext \
5239      conftest$ac_exeext conftest.$ac_ext
5240else
5241  echo "$as_me:$LINENO: result: yes" >&5
5242echo "${ECHO_T}yes" >&6
5243fi
5244if test "$enable_netbeans" = "yes"; then
5245  cat >>confdefs.h <<\_ACEOF
5246#define FEAT_NETBEANS_INTG 1
5247_ACEOF
5248
5249  NETBEANS_SRC="netbeans.c"
5250
5251  NETBEANS_OBJ="objects/netbeans.o"
5252
5253fi
5254
5255echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5256echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
5257# Check whether --enable-sniff or --disable-sniff was given.
5258if test "${enable_sniff+set}" = set; then
5259  enableval="$enable_sniff"
5260
5261else
5262  enable_sniff="no"
5263fi;
5264echo "$as_me:$LINENO: result: $enable_sniff" >&5
5265echo "${ECHO_T}$enable_sniff" >&6
5266if test "$enable_sniff" = "yes"; then
5267  cat >>confdefs.h <<\_ACEOF
5268#define FEAT_SNIFF 1
5269_ACEOF
5270
5271  SNIFF_SRC="if_sniff.c"
5272
5273  SNIFF_OBJ="objects/if_sniff.o"
5274
5275fi
5276
5277echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5278echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
5279# Check whether --enable-multibyte or --disable-multibyte was given.
5280if test "${enable_multibyte+set}" = set; then
5281  enableval="$enable_multibyte"
5282
5283else
5284  enable_multibyte="no"
5285fi;
5286echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5287echo "${ECHO_T}$enable_multibyte" >&6
5288if test "$enable_multibyte" = "yes"; then
5289  cat >>confdefs.h <<\_ACEOF
5290#define FEAT_MBYTE 1
5291_ACEOF
5292
5293fi
5294
5295echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5296echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
5297# Check whether --enable-hangulinput or --disable-hangulinput was given.
5298if test "${enable_hangulinput+set}" = set; then
5299  enableval="$enable_hangulinput"
5300
5301else
5302  enable_hangulinput="no"
5303fi;
5304echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5305echo "${ECHO_T}$enable_hangulinput" >&6
5306
5307echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5308echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
5309# Check whether --enable-xim or --disable-xim was given.
5310if test "${enable_xim+set}" = set; then
5311  enableval="$enable_xim"
5312  echo "$as_me:$LINENO: result: $enable_xim" >&5
5313echo "${ECHO_T}$enable_xim" >&6
5314else
5315  enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5316echo "${ECHO_T}defaulting to auto" >&6
5317fi;
5318
5319echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5320echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
5321# Check whether --enable-fontset or --disable-fontset was given.
5322if test "${enable_fontset+set}" = set; then
5323  enableval="$enable_fontset"
5324
5325else
5326  enable_fontset="no"
5327fi;
5328echo "$as_me:$LINENO: result: $enable_fontset" >&5
5329echo "${ECHO_T}$enable_fontset" >&6
5330
5331test -z "$with_x" && with_x=yes
5332test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5333if test "$with_x" = no; then
5334  echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5335echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
5336else
5337
5338  # Extract the first word of "xmkmf", so it can be a program name with args.
5339set dummy xmkmf; ac_word=$2
5340echo "$as_me:$LINENO: checking for $ac_word" >&5
5341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342if test "${ac_cv_path_xmkmfpath+set}" = set; then
5343  echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345  case $xmkmfpath in
5346  [\\/]* | ?:[\\/]*)
5347  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5348  ;;
5349  *)
5350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353  IFS=$as_save_IFS
5354  test -z "$as_dir" && as_dir=.
5355  for ac_exec_ext in '' $ac_executable_extensions; do
5356  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359    break 2
5360  fi
5361done
5362done
5363
5364  ;;
5365esac
5366fi
5367xmkmfpath=$ac_cv_path_xmkmfpath
5368
5369if test -n "$xmkmfpath"; then
5370  echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5371echo "${ECHO_T}$xmkmfpath" >&6
5372else
5373  echo "$as_me:$LINENO: result: no" >&5
5374echo "${ECHO_T}no" >&6
5375fi
5376
5377
5378  echo "$as_me:$LINENO: checking for X" >&5
5379echo $ECHO_N "checking for X... $ECHO_C" >&6
5380
5381
5382# Check whether --with-x or --without-x was given.
5383if test "${with_x+set}" = set; then
5384  withval="$with_x"
5385
5386fi;
5387# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5388if test "x$with_x" = xno; then
5389  # The user explicitly disabled X.
5390  have_x=disabled
5391else
5392  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5393    # Both variables are already set.
5394    have_x=yes
5395  else
5396    if test "${ac_cv_have_x+set}" = set; then
5397  echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399  # One or both of the vars are not set, and there is no cached value.
5400ac_x_includes=no ac_x_libraries=no
5401rm -fr conftest.dir
5402if mkdir conftest.dir; then
5403  cd conftest.dir
5404  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5405  cat >Imakefile <<'_ACEOF'
5406acfindx:
5407	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5408_ACEOF
5409  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5410    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5411    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5412    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5413    for ac_extension in a so sl; do
5414      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5415	 test -f $ac_im_libdir/libX11.$ac_extension; then
5416	ac_im_usrlibdir=$ac_im_libdir; break
5417      fi
5418    done
5419    # Screen out bogus values from the imake configuration.  They are
5420    # bogus both because they are the default anyway, and because
5421    # using them would break gcc on systems where it needs fixed includes.
5422    case $ac_im_incroot in
5423	/usr/include) ;;
5424	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5425    esac
5426    case $ac_im_usrlibdir in
5427	/usr/lib | /lib) ;;
5428	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5429    esac
5430  fi
5431  cd ..
5432  rm -fr conftest.dir
5433fi
5434
5435# Standard set of common directories for X headers.
5436# Check X11 before X11Rn because it is often a symlink to the current release.
5437ac_x_header_dirs='
5438/usr/X11/include
5439/usr/X11R6/include
5440/usr/X11R5/include
5441/usr/X11R4/include
5442
5443/usr/include/X11
5444/usr/include/X11R6
5445/usr/include/X11R5
5446/usr/include/X11R4
5447
5448/usr/local/X11/include
5449/usr/local/X11R6/include
5450/usr/local/X11R5/include
5451/usr/local/X11R4/include
5452
5453/usr/local/include/X11
5454/usr/local/include/X11R6
5455/usr/local/include/X11R5
5456/usr/local/include/X11R4
5457
5458/usr/X386/include
5459/usr/x386/include
5460/usr/XFree86/include/X11
5461
5462/usr/include
5463/usr/local/include
5464/usr/unsupported/include
5465/usr/athena/include
5466/usr/local/x11r5/include
5467/usr/lpp/Xamples/include
5468
5469/usr/openwin/include
5470/usr/openwin/share/include'
5471
5472if test "$ac_x_includes" = no; then
5473  # Guess where to find include files, by looking for Intrinsic.h.
5474  # First, try using that file with no special directory specified.
5475  cat >conftest.$ac_ext <<_ACEOF
5476/* confdefs.h.  */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h.  */
5481#include <X11/Intrinsic.h>
5482_ACEOF
5483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5484  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5485  ac_status=$?
5486  grep -v '^ *+' conftest.er1 >conftest.err
5487  rm -f conftest.er1
5488  cat conftest.err >&5
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); } >/dev/null; then
5491  if test -s conftest.err; then
5492    ac_cpp_err=$ac_c_preproc_warn_flag
5493    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5494  else
5495    ac_cpp_err=
5496  fi
5497else
5498  ac_cpp_err=yes
5499fi
5500if test -z "$ac_cpp_err"; then
5501  # We can compile using X headers with no special include directory.
5502ac_x_includes=
5503else
5504  echo "$as_me: failed program was:" >&5
5505sed 's/^/| /' conftest.$ac_ext >&5
5506
5507  for ac_dir in $ac_x_header_dirs; do
5508  if test -r "$ac_dir/X11/Intrinsic.h"; then
5509    ac_x_includes=$ac_dir
5510    break
5511  fi
5512done
5513fi
5514rm -f conftest.err conftest.$ac_ext
5515fi # $ac_x_includes = no
5516
5517if test "$ac_x_libraries" = no; then
5518  # Check for the libraries.
5519  # See if we find them without any special options.
5520  # Don't add to $LIBS permanently.
5521  ac_save_LIBS=$LIBS
5522  LIBS="-lXt $LIBS"
5523  cat >conftest.$ac_ext <<_ACEOF
5524/* confdefs.h.  */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h.  */
5529#include <X11/Intrinsic.h>
5530int
5531main ()
5532{
5533XtMalloc (0)
5534  ;
5535  return 0;
5536}
5537_ACEOF
5538rm -f conftest.$ac_objext conftest$ac_exeext
5539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5540  (eval $ac_link) 2>conftest.er1
5541  ac_status=$?
5542  grep -v '^ *+' conftest.er1 >conftest.err
5543  rm -f conftest.er1
5544  cat conftest.err >&5
5545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546  (exit $ac_status); } &&
5547	 { ac_try='test -z "$ac_c_werror_flag"
5548			 || test ! -s conftest.err'
5549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550  (eval $ac_try) 2>&5
5551  ac_status=$?
5552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553  (exit $ac_status); }; } &&
5554	 { ac_try='test -s conftest$ac_exeext'
5555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556  (eval $ac_try) 2>&5
5557  ac_status=$?
5558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559  (exit $ac_status); }; }; then
5560  LIBS=$ac_save_LIBS
5561# We can link X programs with no special library path.
5562ac_x_libraries=
5563else
5564  echo "$as_me: failed program was:" >&5
5565sed 's/^/| /' conftest.$ac_ext >&5
5566
5567LIBS=$ac_save_LIBS
5568for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5569do
5570  # Don't even attempt the hair of trying to link an X program!
5571  for ac_extension in a so sl; do
5572    if test -r $ac_dir/libXt.$ac_extension; then
5573      ac_x_libraries=$ac_dir
5574      break 2
5575    fi
5576  done
5577done
5578fi
5579rm -f conftest.err conftest.$ac_objext \
5580      conftest$ac_exeext conftest.$ac_ext
5581fi # $ac_x_libraries = no
5582
5583if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5584  # Didn't find X anywhere.  Cache the known absence of X.
5585  ac_cv_have_x="have_x=no"
5586else
5587  # Record where we found X for the cache.
5588  ac_cv_have_x="have_x=yes \
5589		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5590fi
5591fi
5592
5593  fi
5594  eval "$ac_cv_have_x"
5595fi # $with_x != no
5596
5597if test "$have_x" != yes; then
5598  echo "$as_me:$LINENO: result: $have_x" >&5
5599echo "${ECHO_T}$have_x" >&6
5600  no_x=yes
5601else
5602  # If each of the values was on the command line, it overrides each guess.
5603  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5604  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5605  # Update the cache value to reflect the command line values.
5606  ac_cv_have_x="have_x=yes \
5607		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5608  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5609echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5610fi
5611
5612if test "$no_x" = yes; then
5613  # Not all programs may use this symbol, but it does not hurt to define it.
5614
5615cat >>confdefs.h <<\_ACEOF
5616#define X_DISPLAY_MISSING 1
5617_ACEOF
5618
5619  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5620else
5621  if test -n "$x_includes"; then
5622    X_CFLAGS="$X_CFLAGS -I$x_includes"
5623  fi
5624
5625  # It would also be nice to do this for all -L options, not just this one.
5626  if test -n "$x_libraries"; then
5627    X_LIBS="$X_LIBS -L$x_libraries"
5628    # For Solaris; some versions of Sun CC require a space after -R and
5629    # others require no space.  Words are not sufficient . . . .
5630    case `(uname -sr) 2>/dev/null` in
5631    "SunOS 5"*)
5632      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5633echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5634      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5635      cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h.  */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h.  */
5641
5642int
5643main ()
5644{
5645
5646  ;
5647  return 0;
5648}
5649_ACEOF
5650rm -f conftest.$ac_objext conftest$ac_exeext
5651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5652  (eval $ac_link) 2>conftest.er1
5653  ac_status=$?
5654  grep -v '^ *+' conftest.er1 >conftest.err
5655  rm -f conftest.er1
5656  cat conftest.err >&5
5657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658  (exit $ac_status); } &&
5659	 { ac_try='test -z "$ac_c_werror_flag"
5660			 || test ! -s conftest.err'
5661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662  (eval $ac_try) 2>&5
5663  ac_status=$?
5664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665  (exit $ac_status); }; } &&
5666	 { ac_try='test -s conftest$ac_exeext'
5667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668  (eval $ac_try) 2>&5
5669  ac_status=$?
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); }; }; then
5672  ac_R_nospace=yes
5673else
5674  echo "$as_me: failed program was:" >&5
5675sed 's/^/| /' conftest.$ac_ext >&5
5676
5677ac_R_nospace=no
5678fi
5679rm -f conftest.err conftest.$ac_objext \
5680      conftest$ac_exeext conftest.$ac_ext
5681      if test $ac_R_nospace = yes; then
5682	echo "$as_me:$LINENO: result: no" >&5
5683echo "${ECHO_T}no" >&6
5684	X_LIBS="$X_LIBS -R$x_libraries"
5685      else
5686	LIBS="$ac_xsave_LIBS -R $x_libraries"
5687	cat >conftest.$ac_ext <<_ACEOF
5688/* confdefs.h.  */
5689_ACEOF
5690cat confdefs.h >>conftest.$ac_ext
5691cat >>conftest.$ac_ext <<_ACEOF
5692/* end confdefs.h.  */
5693
5694int
5695main ()
5696{
5697
5698  ;
5699  return 0;
5700}
5701_ACEOF
5702rm -f conftest.$ac_objext conftest$ac_exeext
5703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704  (eval $ac_link) 2>conftest.er1
5705  ac_status=$?
5706  grep -v '^ *+' conftest.er1 >conftest.err
5707  rm -f conftest.er1
5708  cat conftest.err >&5
5709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710  (exit $ac_status); } &&
5711	 { ac_try='test -z "$ac_c_werror_flag"
5712			 || test ! -s conftest.err'
5713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714  (eval $ac_try) 2>&5
5715  ac_status=$?
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); }; } &&
5718	 { ac_try='test -s conftest$ac_exeext'
5719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720  (eval $ac_try) 2>&5
5721  ac_status=$?
5722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723  (exit $ac_status); }; }; then
5724  ac_R_space=yes
5725else
5726  echo "$as_me: failed program was:" >&5
5727sed 's/^/| /' conftest.$ac_ext >&5
5728
5729ac_R_space=no
5730fi
5731rm -f conftest.err conftest.$ac_objext \
5732      conftest$ac_exeext conftest.$ac_ext
5733	if test $ac_R_space = yes; then
5734	  echo "$as_me:$LINENO: result: yes" >&5
5735echo "${ECHO_T}yes" >&6
5736	  X_LIBS="$X_LIBS -R $x_libraries"
5737	else
5738	  echo "$as_me:$LINENO: result: neither works" >&5
5739echo "${ECHO_T}neither works" >&6
5740	fi
5741      fi
5742      LIBS=$ac_xsave_LIBS
5743    esac
5744  fi
5745
5746  # Check for system-dependent libraries X programs must link with.
5747  # Do this before checking for the system-independent R6 libraries
5748  # (-lICE), since we may need -lsocket or whatever for X linking.
5749
5750  if test "$ISC" = yes; then
5751    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5752  else
5753    # Martyn Johnson says this is needed for Ultrix, if the X
5754    # libraries were built with DECnet support.  And Karl Berry says
5755    # the Alpha needs dnet_stub (dnet does not exist).
5756    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5757    cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h.  */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h.  */
5763
5764/* Override any gcc2 internal prototype to avoid an error.  */
5765#ifdef __cplusplus
5766extern "C"
5767#endif
5768/* We use char because int might match the return type of a gcc2
5769   builtin and then its argument prototype would still apply.  */
5770char XOpenDisplay ();
5771int
5772main ()
5773{
5774XOpenDisplay ();
5775  ;
5776  return 0;
5777}
5778_ACEOF
5779rm -f conftest.$ac_objext conftest$ac_exeext
5780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781  (eval $ac_link) 2>conftest.er1
5782  ac_status=$?
5783  grep -v '^ *+' conftest.er1 >conftest.err
5784  rm -f conftest.er1
5785  cat conftest.err >&5
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); } &&
5788	 { ac_try='test -z "$ac_c_werror_flag"
5789			 || test ! -s conftest.err'
5790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791  (eval $ac_try) 2>&5
5792  ac_status=$?
5793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794  (exit $ac_status); }; } &&
5795	 { ac_try='test -s conftest$ac_exeext'
5796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797  (eval $ac_try) 2>&5
5798  ac_status=$?
5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); }; }; then
5801  :
5802else
5803  echo "$as_me: failed program was:" >&5
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5807echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5808if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5809  echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811  ac_check_lib_save_LIBS=$LIBS
5812LIBS="-ldnet  $LIBS"
5813cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h.  */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h.  */
5819
5820/* Override any gcc2 internal prototype to avoid an error.  */
5821#ifdef __cplusplus
5822extern "C"
5823#endif
5824/* We use char because int might match the return type of a gcc2
5825   builtin and then its argument prototype would still apply.  */
5826char dnet_ntoa ();
5827int
5828main ()
5829{
5830dnet_ntoa ();
5831  ;
5832  return 0;
5833}
5834_ACEOF
5835rm -f conftest.$ac_objext conftest$ac_exeext
5836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837  (eval $ac_link) 2>conftest.er1
5838  ac_status=$?
5839  grep -v '^ *+' conftest.er1 >conftest.err
5840  rm -f conftest.er1
5841  cat conftest.err >&5
5842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); } &&
5844	 { ac_try='test -z "$ac_c_werror_flag"
5845			 || test ! -s conftest.err'
5846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847  (eval $ac_try) 2>&5
5848  ac_status=$?
5849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850  (exit $ac_status); }; } &&
5851	 { ac_try='test -s conftest$ac_exeext'
5852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853  (eval $ac_try) 2>&5
5854  ac_status=$?
5855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856  (exit $ac_status); }; }; then
5857  ac_cv_lib_dnet_dnet_ntoa=yes
5858else
5859  echo "$as_me: failed program was:" >&5
5860sed 's/^/| /' conftest.$ac_ext >&5
5861
5862ac_cv_lib_dnet_dnet_ntoa=no
5863fi
5864rm -f conftest.err conftest.$ac_objext \
5865      conftest$ac_exeext conftest.$ac_ext
5866LIBS=$ac_check_lib_save_LIBS
5867fi
5868echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5869echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5870if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5871  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5872fi
5873
5874    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5875      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5876echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5877if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5878  echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880  ac_check_lib_save_LIBS=$LIBS
5881LIBS="-ldnet_stub  $LIBS"
5882cat >conftest.$ac_ext <<_ACEOF
5883/* confdefs.h.  */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h.  */
5888
5889/* Override any gcc2 internal prototype to avoid an error.  */
5890#ifdef __cplusplus
5891extern "C"
5892#endif
5893/* We use char because int might match the return type of a gcc2
5894   builtin and then its argument prototype would still apply.  */
5895char dnet_ntoa ();
5896int
5897main ()
5898{
5899dnet_ntoa ();
5900  ;
5901  return 0;
5902}
5903_ACEOF
5904rm -f conftest.$ac_objext conftest$ac_exeext
5905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5906  (eval $ac_link) 2>conftest.er1
5907  ac_status=$?
5908  grep -v '^ *+' conftest.er1 >conftest.err
5909  rm -f conftest.er1
5910  cat conftest.err >&5
5911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912  (exit $ac_status); } &&
5913	 { ac_try='test -z "$ac_c_werror_flag"
5914			 || test ! -s conftest.err'
5915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916  (eval $ac_try) 2>&5
5917  ac_status=$?
5918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919  (exit $ac_status); }; } &&
5920	 { ac_try='test -s conftest$ac_exeext'
5921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922  (eval $ac_try) 2>&5
5923  ac_status=$?
5924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925  (exit $ac_status); }; }; then
5926  ac_cv_lib_dnet_stub_dnet_ntoa=yes
5927else
5928  echo "$as_me: failed program was:" >&5
5929sed 's/^/| /' conftest.$ac_ext >&5
5930
5931ac_cv_lib_dnet_stub_dnet_ntoa=no
5932fi
5933rm -f conftest.err conftest.$ac_objext \
5934      conftest$ac_exeext conftest.$ac_ext
5935LIBS=$ac_check_lib_save_LIBS
5936fi
5937echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5938echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5939if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5940  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5941fi
5942
5943    fi
5944fi
5945rm -f conftest.err conftest.$ac_objext \
5946      conftest$ac_exeext conftest.$ac_ext
5947    LIBS="$ac_xsave_LIBS"
5948
5949    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5950    # to get the SysV transport functions.
5951    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5952    # needs -lnsl.
5953    # The nsl library prevents programs from opening the X display
5954    # on Irix 5.2, according to T.E. Dickey.
5955    # The functions gethostbyname, getservbyname, and inet_addr are
5956    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5957    echo "$as_me:$LINENO: checking for gethostbyname" >&5
5958echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5959if test "${ac_cv_func_gethostbyname+set}" = set; then
5960  echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962  cat >conftest.$ac_ext <<_ACEOF
5963/* confdefs.h.  */
5964_ACEOF
5965cat confdefs.h >>conftest.$ac_ext
5966cat >>conftest.$ac_ext <<_ACEOF
5967/* end confdefs.h.  */
5968/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5969   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5970#define gethostbyname innocuous_gethostbyname
5971
5972/* System header to define __stub macros and hopefully few prototypes,
5973    which can conflict with char gethostbyname (); below.
5974    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5975    <limits.h> exists even on freestanding compilers.  */
5976
5977#ifdef __STDC__
5978# include <limits.h>
5979#else
5980# include <assert.h>
5981#endif
5982
5983#undef gethostbyname
5984
5985/* Override any gcc2 internal prototype to avoid an error.  */
5986#ifdef __cplusplus
5987extern "C"
5988{
5989#endif
5990/* We use char because int might match the return type of a gcc2
5991   builtin and then its argument prototype would still apply.  */
5992char gethostbyname ();
5993/* The GNU C library defines this for functions which it implements
5994    to always fail with ENOSYS.  Some functions are actually named
5995    something starting with __ and the normal name is an alias.  */
5996#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5997choke me
5998#else
5999char (*f) () = gethostbyname;
6000#endif
6001#ifdef __cplusplus
6002}
6003#endif
6004
6005int
6006main ()
6007{
6008return f != gethostbyname;
6009  ;
6010  return 0;
6011}
6012_ACEOF
6013rm -f conftest.$ac_objext conftest$ac_exeext
6014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015  (eval $ac_link) 2>conftest.er1
6016  ac_status=$?
6017  grep -v '^ *+' conftest.er1 >conftest.err
6018  rm -f conftest.er1
6019  cat conftest.err >&5
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); } &&
6022	 { ac_try='test -z "$ac_c_werror_flag"
6023			 || test ! -s conftest.err'
6024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025  (eval $ac_try) 2>&5
6026  ac_status=$?
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); }; } &&
6029	 { ac_try='test -s conftest$ac_exeext'
6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031  (eval $ac_try) 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; }; then
6035  ac_cv_func_gethostbyname=yes
6036else
6037  echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040ac_cv_func_gethostbyname=no
6041fi
6042rm -f conftest.err conftest.$ac_objext \
6043      conftest$ac_exeext conftest.$ac_ext
6044fi
6045echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6046echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6047
6048    if test $ac_cv_func_gethostbyname = no; then
6049      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6050echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6051if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6052  echo $ECHO_N "(cached) $ECHO_C" >&6
6053else
6054  ac_check_lib_save_LIBS=$LIBS
6055LIBS="-lnsl  $LIBS"
6056cat >conftest.$ac_ext <<_ACEOF
6057/* confdefs.h.  */
6058_ACEOF
6059cat confdefs.h >>conftest.$ac_ext
6060cat >>conftest.$ac_ext <<_ACEOF
6061/* end confdefs.h.  */
6062
6063/* Override any gcc2 internal prototype to avoid an error.  */
6064#ifdef __cplusplus
6065extern "C"
6066#endif
6067/* We use char because int might match the return type of a gcc2
6068   builtin and then its argument prototype would still apply.  */
6069char gethostbyname ();
6070int
6071main ()
6072{
6073gethostbyname ();
6074  ;
6075  return 0;
6076}
6077_ACEOF
6078rm -f conftest.$ac_objext conftest$ac_exeext
6079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080  (eval $ac_link) 2>conftest.er1
6081  ac_status=$?
6082  grep -v '^ *+' conftest.er1 >conftest.err
6083  rm -f conftest.er1
6084  cat conftest.err >&5
6085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086  (exit $ac_status); } &&
6087	 { ac_try='test -z "$ac_c_werror_flag"
6088			 || test ! -s conftest.err'
6089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090  (eval $ac_try) 2>&5
6091  ac_status=$?
6092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093  (exit $ac_status); }; } &&
6094	 { ac_try='test -s conftest$ac_exeext'
6095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096  (eval $ac_try) 2>&5
6097  ac_status=$?
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); }; }; then
6100  ac_cv_lib_nsl_gethostbyname=yes
6101else
6102  echo "$as_me: failed program was:" >&5
6103sed 's/^/| /' conftest.$ac_ext >&5
6104
6105ac_cv_lib_nsl_gethostbyname=no
6106fi
6107rm -f conftest.err conftest.$ac_objext \
6108      conftest$ac_exeext conftest.$ac_ext
6109LIBS=$ac_check_lib_save_LIBS
6110fi
6111echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6112echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6113if test $ac_cv_lib_nsl_gethostbyname = yes; then
6114  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6115fi
6116
6117      if test $ac_cv_lib_nsl_gethostbyname = no; then
6118	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6119echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6120if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6121  echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123  ac_check_lib_save_LIBS=$LIBS
6124LIBS="-lbsd  $LIBS"
6125cat >conftest.$ac_ext <<_ACEOF
6126/* confdefs.h.  */
6127_ACEOF
6128cat confdefs.h >>conftest.$ac_ext
6129cat >>conftest.$ac_ext <<_ACEOF
6130/* end confdefs.h.  */
6131
6132/* Override any gcc2 internal prototype to avoid an error.  */
6133#ifdef __cplusplus
6134extern "C"
6135#endif
6136/* We use char because int might match the return type of a gcc2
6137   builtin and then its argument prototype would still apply.  */
6138char gethostbyname ();
6139int
6140main ()
6141{
6142gethostbyname ();
6143  ;
6144  return 0;
6145}
6146_ACEOF
6147rm -f conftest.$ac_objext conftest$ac_exeext
6148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6149  (eval $ac_link) 2>conftest.er1
6150  ac_status=$?
6151  grep -v '^ *+' conftest.er1 >conftest.err
6152  rm -f conftest.er1
6153  cat conftest.err >&5
6154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155  (exit $ac_status); } &&
6156	 { ac_try='test -z "$ac_c_werror_flag"
6157			 || test ! -s conftest.err'
6158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159  (eval $ac_try) 2>&5
6160  ac_status=$?
6161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162  (exit $ac_status); }; } &&
6163	 { ac_try='test -s conftest$ac_exeext'
6164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165  (eval $ac_try) 2>&5
6166  ac_status=$?
6167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168  (exit $ac_status); }; }; then
6169  ac_cv_lib_bsd_gethostbyname=yes
6170else
6171  echo "$as_me: failed program was:" >&5
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
6174ac_cv_lib_bsd_gethostbyname=no
6175fi
6176rm -f conftest.err conftest.$ac_objext \
6177      conftest$ac_exeext conftest.$ac_ext
6178LIBS=$ac_check_lib_save_LIBS
6179fi
6180echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6181echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6182if test $ac_cv_lib_bsd_gethostbyname = yes; then
6183  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6184fi
6185
6186      fi
6187    fi
6188
6189    # [email protected] says without -lsocket,
6190    # socket/setsockopt and other routines are undefined under SCO ODT
6191    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6192    # on later versions), says Simon Leinen: it contains gethostby*
6193    # variants that don't use the name server (or something).  -lsocket
6194    # must be given before -lnsl if both are needed.  We assume that
6195    # if connect needs -lnsl, so does gethostbyname.
6196    echo "$as_me:$LINENO: checking for connect" >&5
6197echo $ECHO_N "checking for connect... $ECHO_C" >&6
6198if test "${ac_cv_func_connect+set}" = set; then
6199  echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201  cat >conftest.$ac_ext <<_ACEOF
6202/* confdefs.h.  */
6203_ACEOF
6204cat confdefs.h >>conftest.$ac_ext
6205cat >>conftest.$ac_ext <<_ACEOF
6206/* end confdefs.h.  */
6207/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6208   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6209#define connect innocuous_connect
6210
6211/* System header to define __stub macros and hopefully few prototypes,
6212    which can conflict with char connect (); below.
6213    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6214    <limits.h> exists even on freestanding compilers.  */
6215
6216#ifdef __STDC__
6217# include <limits.h>
6218#else
6219# include <assert.h>
6220#endif
6221
6222#undef connect
6223
6224/* Override any gcc2 internal prototype to avoid an error.  */
6225#ifdef __cplusplus
6226extern "C"
6227{
6228#endif
6229/* We use char because int might match the return type of a gcc2
6230   builtin and then its argument prototype would still apply.  */
6231char connect ();
6232/* The GNU C library defines this for functions which it implements
6233    to always fail with ENOSYS.  Some functions are actually named
6234    something starting with __ and the normal name is an alias.  */
6235#if defined (__stub_connect) || defined (__stub___connect)
6236choke me
6237#else
6238char (*f) () = connect;
6239#endif
6240#ifdef __cplusplus
6241}
6242#endif
6243
6244int
6245main ()
6246{
6247return f != connect;
6248  ;
6249  return 0;
6250}
6251_ACEOF
6252rm -f conftest.$ac_objext conftest$ac_exeext
6253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6254  (eval $ac_link) 2>conftest.er1
6255  ac_status=$?
6256  grep -v '^ *+' conftest.er1 >conftest.err
6257  rm -f conftest.er1
6258  cat conftest.err >&5
6259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260  (exit $ac_status); } &&
6261	 { ac_try='test -z "$ac_c_werror_flag"
6262			 || test ! -s conftest.err'
6263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264  (eval $ac_try) 2>&5
6265  ac_status=$?
6266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267  (exit $ac_status); }; } &&
6268	 { ac_try='test -s conftest$ac_exeext'
6269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270  (eval $ac_try) 2>&5
6271  ac_status=$?
6272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273  (exit $ac_status); }; }; then
6274  ac_cv_func_connect=yes
6275else
6276  echo "$as_me: failed program was:" >&5
6277sed 's/^/| /' conftest.$ac_ext >&5
6278
6279ac_cv_func_connect=no
6280fi
6281rm -f conftest.err conftest.$ac_objext \
6282      conftest$ac_exeext conftest.$ac_ext
6283fi
6284echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6285echo "${ECHO_T}$ac_cv_func_connect" >&6
6286
6287    if test $ac_cv_func_connect = no; then
6288      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6289echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6290if test "${ac_cv_lib_socket_connect+set}" = set; then
6291  echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293  ac_check_lib_save_LIBS=$LIBS
6294LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6295cat >conftest.$ac_ext <<_ACEOF
6296/* confdefs.h.  */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h.  */
6301
6302/* Override any gcc2 internal prototype to avoid an error.  */
6303#ifdef __cplusplus
6304extern "C"
6305#endif
6306/* We use char because int might match the return type of a gcc2
6307   builtin and then its argument prototype would still apply.  */
6308char connect ();
6309int
6310main ()
6311{
6312connect ();
6313  ;
6314  return 0;
6315}
6316_ACEOF
6317rm -f conftest.$ac_objext conftest$ac_exeext
6318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6319  (eval $ac_link) 2>conftest.er1
6320  ac_status=$?
6321  grep -v '^ *+' conftest.er1 >conftest.err
6322  rm -f conftest.er1
6323  cat conftest.err >&5
6324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325  (exit $ac_status); } &&
6326	 { ac_try='test -z "$ac_c_werror_flag"
6327			 || test ! -s conftest.err'
6328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329  (eval $ac_try) 2>&5
6330  ac_status=$?
6331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332  (exit $ac_status); }; } &&
6333	 { ac_try='test -s conftest$ac_exeext'
6334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335  (eval $ac_try) 2>&5
6336  ac_status=$?
6337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338  (exit $ac_status); }; }; then
6339  ac_cv_lib_socket_connect=yes
6340else
6341  echo "$as_me: failed program was:" >&5
6342sed 's/^/| /' conftest.$ac_ext >&5
6343
6344ac_cv_lib_socket_connect=no
6345fi
6346rm -f conftest.err conftest.$ac_objext \
6347      conftest$ac_exeext conftest.$ac_ext
6348LIBS=$ac_check_lib_save_LIBS
6349fi
6350echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6351echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6352if test $ac_cv_lib_socket_connect = yes; then
6353  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6354fi
6355
6356    fi
6357
6358    # Guillermo Gomez says -lposix is necessary on A/UX.
6359    echo "$as_me:$LINENO: checking for remove" >&5
6360echo $ECHO_N "checking for remove... $ECHO_C" >&6
6361if test "${ac_cv_func_remove+set}" = set; then
6362  echo $ECHO_N "(cached) $ECHO_C" >&6
6363else
6364  cat >conftest.$ac_ext <<_ACEOF
6365/* confdefs.h.  */
6366_ACEOF
6367cat confdefs.h >>conftest.$ac_ext
6368cat >>conftest.$ac_ext <<_ACEOF
6369/* end confdefs.h.  */
6370/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6371   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6372#define remove innocuous_remove
6373
6374/* System header to define __stub macros and hopefully few prototypes,
6375    which can conflict with char remove (); below.
6376    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6377    <limits.h> exists even on freestanding compilers.  */
6378
6379#ifdef __STDC__
6380# include <limits.h>
6381#else
6382# include <assert.h>
6383#endif
6384
6385#undef remove
6386
6387/* Override any gcc2 internal prototype to avoid an error.  */
6388#ifdef __cplusplus
6389extern "C"
6390{
6391#endif
6392/* We use char because int might match the return type of a gcc2
6393   builtin and then its argument prototype would still apply.  */
6394char remove ();
6395/* The GNU C library defines this for functions which it implements
6396    to always fail with ENOSYS.  Some functions are actually named
6397    something starting with __ and the normal name is an alias.  */
6398#if defined (__stub_remove) || defined (__stub___remove)
6399choke me
6400#else
6401char (*f) () = remove;
6402#endif
6403#ifdef __cplusplus
6404}
6405#endif
6406
6407int
6408main ()
6409{
6410return f != remove;
6411  ;
6412  return 0;
6413}
6414_ACEOF
6415rm -f conftest.$ac_objext conftest$ac_exeext
6416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417  (eval $ac_link) 2>conftest.er1
6418  ac_status=$?
6419  grep -v '^ *+' conftest.er1 >conftest.err
6420  rm -f conftest.er1
6421  cat conftest.err >&5
6422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423  (exit $ac_status); } &&
6424	 { ac_try='test -z "$ac_c_werror_flag"
6425			 || test ! -s conftest.err'
6426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427  (eval $ac_try) 2>&5
6428  ac_status=$?
6429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430  (exit $ac_status); }; } &&
6431	 { ac_try='test -s conftest$ac_exeext'
6432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433  (eval $ac_try) 2>&5
6434  ac_status=$?
6435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436  (exit $ac_status); }; }; then
6437  ac_cv_func_remove=yes
6438else
6439  echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442ac_cv_func_remove=no
6443fi
6444rm -f conftest.err conftest.$ac_objext \
6445      conftest$ac_exeext conftest.$ac_ext
6446fi
6447echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6448echo "${ECHO_T}$ac_cv_func_remove" >&6
6449
6450    if test $ac_cv_func_remove = no; then
6451      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6452echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6453if test "${ac_cv_lib_posix_remove+set}" = set; then
6454  echo $ECHO_N "(cached) $ECHO_C" >&6
6455else
6456  ac_check_lib_save_LIBS=$LIBS
6457LIBS="-lposix  $LIBS"
6458cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h.  */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h.  */
6464
6465/* Override any gcc2 internal prototype to avoid an error.  */
6466#ifdef __cplusplus
6467extern "C"
6468#endif
6469/* We use char because int might match the return type of a gcc2
6470   builtin and then its argument prototype would still apply.  */
6471char remove ();
6472int
6473main ()
6474{
6475remove ();
6476  ;
6477  return 0;
6478}
6479_ACEOF
6480rm -f conftest.$ac_objext conftest$ac_exeext
6481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6482  (eval $ac_link) 2>conftest.er1
6483  ac_status=$?
6484  grep -v '^ *+' conftest.er1 >conftest.err
6485  rm -f conftest.er1
6486  cat conftest.err >&5
6487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488  (exit $ac_status); } &&
6489	 { ac_try='test -z "$ac_c_werror_flag"
6490			 || test ! -s conftest.err'
6491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492  (eval $ac_try) 2>&5
6493  ac_status=$?
6494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495  (exit $ac_status); }; } &&
6496	 { ac_try='test -s conftest$ac_exeext'
6497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498  (eval $ac_try) 2>&5
6499  ac_status=$?
6500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501  (exit $ac_status); }; }; then
6502  ac_cv_lib_posix_remove=yes
6503else
6504  echo "$as_me: failed program was:" >&5
6505sed 's/^/| /' conftest.$ac_ext >&5
6506
6507ac_cv_lib_posix_remove=no
6508fi
6509rm -f conftest.err conftest.$ac_objext \
6510      conftest$ac_exeext conftest.$ac_ext
6511LIBS=$ac_check_lib_save_LIBS
6512fi
6513echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6514echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6515if test $ac_cv_lib_posix_remove = yes; then
6516  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6517fi
6518
6519    fi
6520
6521    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6522    echo "$as_me:$LINENO: checking for shmat" >&5
6523echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6524if test "${ac_cv_func_shmat+set}" = set; then
6525  echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527  cat >conftest.$ac_ext <<_ACEOF
6528/* confdefs.h.  */
6529_ACEOF
6530cat confdefs.h >>conftest.$ac_ext
6531cat >>conftest.$ac_ext <<_ACEOF
6532/* end confdefs.h.  */
6533/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6534   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6535#define shmat innocuous_shmat
6536
6537/* System header to define __stub macros and hopefully few prototypes,
6538    which can conflict with char shmat (); below.
6539    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6540    <limits.h> exists even on freestanding compilers.  */
6541
6542#ifdef __STDC__
6543# include <limits.h>
6544#else
6545# include <assert.h>
6546#endif
6547
6548#undef shmat
6549
6550/* Override any gcc2 internal prototype to avoid an error.  */
6551#ifdef __cplusplus
6552extern "C"
6553{
6554#endif
6555/* We use char because int might match the return type of a gcc2
6556   builtin and then its argument prototype would still apply.  */
6557char shmat ();
6558/* The GNU C library defines this for functions which it implements
6559    to always fail with ENOSYS.  Some functions are actually named
6560    something starting with __ and the normal name is an alias.  */
6561#if defined (__stub_shmat) || defined (__stub___shmat)
6562choke me
6563#else
6564char (*f) () = shmat;
6565#endif
6566#ifdef __cplusplus
6567}
6568#endif
6569
6570int
6571main ()
6572{
6573return f != shmat;
6574  ;
6575  return 0;
6576}
6577_ACEOF
6578rm -f conftest.$ac_objext conftest$ac_exeext
6579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580  (eval $ac_link) 2>conftest.er1
6581  ac_status=$?
6582  grep -v '^ *+' conftest.er1 >conftest.err
6583  rm -f conftest.er1
6584  cat conftest.err >&5
6585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); } &&
6587	 { ac_try='test -z "$ac_c_werror_flag"
6588			 || test ! -s conftest.err'
6589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590  (eval $ac_try) 2>&5
6591  ac_status=$?
6592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593  (exit $ac_status); }; } &&
6594	 { ac_try='test -s conftest$ac_exeext'
6595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596  (eval $ac_try) 2>&5
6597  ac_status=$?
6598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); }; }; then
6600  ac_cv_func_shmat=yes
6601else
6602  echo "$as_me: failed program was:" >&5
6603sed 's/^/| /' conftest.$ac_ext >&5
6604
6605ac_cv_func_shmat=no
6606fi
6607rm -f conftest.err conftest.$ac_objext \
6608      conftest$ac_exeext conftest.$ac_ext
6609fi
6610echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6611echo "${ECHO_T}$ac_cv_func_shmat" >&6
6612
6613    if test $ac_cv_func_shmat = no; then
6614      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6615echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6616if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6617  echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619  ac_check_lib_save_LIBS=$LIBS
6620LIBS="-lipc  $LIBS"
6621cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h.  */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h.  */
6627
6628/* Override any gcc2 internal prototype to avoid an error.  */
6629#ifdef __cplusplus
6630extern "C"
6631#endif
6632/* We use char because int might match the return type of a gcc2
6633   builtin and then its argument prototype would still apply.  */
6634char shmat ();
6635int
6636main ()
6637{
6638shmat ();
6639  ;
6640  return 0;
6641}
6642_ACEOF
6643rm -f conftest.$ac_objext conftest$ac_exeext
6644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6645  (eval $ac_link) 2>conftest.er1
6646  ac_status=$?
6647  grep -v '^ *+' conftest.er1 >conftest.err
6648  rm -f conftest.er1
6649  cat conftest.err >&5
6650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651  (exit $ac_status); } &&
6652	 { ac_try='test -z "$ac_c_werror_flag"
6653			 || test ! -s conftest.err'
6654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655  (eval $ac_try) 2>&5
6656  ac_status=$?
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); }; } &&
6659	 { ac_try='test -s conftest$ac_exeext'
6660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661  (eval $ac_try) 2>&5
6662  ac_status=$?
6663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664  (exit $ac_status); }; }; then
6665  ac_cv_lib_ipc_shmat=yes
6666else
6667  echo "$as_me: failed program was:" >&5
6668sed 's/^/| /' conftest.$ac_ext >&5
6669
6670ac_cv_lib_ipc_shmat=no
6671fi
6672rm -f conftest.err conftest.$ac_objext \
6673      conftest$ac_exeext conftest.$ac_ext
6674LIBS=$ac_check_lib_save_LIBS
6675fi
6676echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6677echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6678if test $ac_cv_lib_ipc_shmat = yes; then
6679  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6680fi
6681
6682    fi
6683  fi
6684
6685  # Check for libraries that X11R6 Xt/Xaw programs need.
6686  ac_save_LDFLAGS=$LDFLAGS
6687  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6688  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6689  # check for ICE first), but we must link in the order -lSM -lICE or
6690  # we get undefined symbols.  So assume we have SM if we have ICE.
6691  # These have to be linked with before -lX11, unlike the other
6692  # libraries we check for below, so use a different variable.
6693  # John Interrante, Karl Berry
6694  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6695echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6696if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6697  echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699  ac_check_lib_save_LIBS=$LIBS
6700LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6701cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h.  */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h.  */
6707
6708/* Override any gcc2 internal prototype to avoid an error.  */
6709#ifdef __cplusplus
6710extern "C"
6711#endif
6712/* We use char because int might match the return type of a gcc2
6713   builtin and then its argument prototype would still apply.  */
6714char IceConnectionNumber ();
6715int
6716main ()
6717{
6718IceConnectionNumber ();
6719  ;
6720  return 0;
6721}
6722_ACEOF
6723rm -f conftest.$ac_objext conftest$ac_exeext
6724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6725  (eval $ac_link) 2>conftest.er1
6726  ac_status=$?
6727  grep -v '^ *+' conftest.er1 >conftest.err
6728  rm -f conftest.er1
6729  cat conftest.err >&5
6730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731  (exit $ac_status); } &&
6732	 { ac_try='test -z "$ac_c_werror_flag"
6733			 || test ! -s conftest.err'
6734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735  (eval $ac_try) 2>&5
6736  ac_status=$?
6737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738  (exit $ac_status); }; } &&
6739	 { ac_try='test -s conftest$ac_exeext'
6740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741  (eval $ac_try) 2>&5
6742  ac_status=$?
6743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744  (exit $ac_status); }; }; then
6745  ac_cv_lib_ICE_IceConnectionNumber=yes
6746else
6747  echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
6750ac_cv_lib_ICE_IceConnectionNumber=no
6751fi
6752rm -f conftest.err conftest.$ac_objext \
6753      conftest$ac_exeext conftest.$ac_ext
6754LIBS=$ac_check_lib_save_LIBS
6755fi
6756echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6757echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6758if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6759  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6760fi
6761
6762  LDFLAGS=$ac_save_LDFLAGS
6763
6764fi
6765
6766
6767        if test "$OS390Unix" = "yes"; then
6768    CFLAGS="$CFLAGS -W c,dll"
6769    LDFLAGS="$LDFLAGS -W l,dll"
6770    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6771  fi
6772
6773
6774  if test -d "$x_includes" && test ! -d "$x_libraries"; then
6775    x_libraries=`echo "$x_includes" | sed s/include/lib/`
6776    echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6777echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
6778    X_LIBS="$X_LIBS -L$x_libraries"
6779    if test "`(uname) 2>/dev/null`" = SunOS &&
6780					 uname -r | grep '^5' >/dev/null; then
6781      X_LIBS="$X_LIBS -R $x_libraries"
6782    fi
6783  fi
6784
6785  if test -d "$x_libraries" && test ! -d "$x_includes"; then
6786    x_includes=`echo "$x_libraries" | sed s/lib/include/`
6787    echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6788echo "${ECHO_T}Corrected X includes to $x_includes" >&6
6789    X_CFLAGS="$X_CFLAGS -I$x_includes"
6790  fi
6791
6792    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
6793    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
6794    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6795
6796
6797      echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6798echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
6799  cflags_save=$CFLAGS
6800  CFLAGS="$CFLAGS $X_CFLAGS"
6801  cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h.  */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h.  */
6807#include <X11/Xlib.h>
6808int
6809main ()
6810{
6811
6812  ;
6813  return 0;
6814}
6815_ACEOF
6816rm -f conftest.$ac_objext
6817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818  (eval $ac_compile) 2>conftest.er1
6819  ac_status=$?
6820  grep -v '^ *+' conftest.er1 >conftest.err
6821  rm -f conftest.er1
6822  cat conftest.err >&5
6823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824  (exit $ac_status); } &&
6825	 { ac_try='test -z "$ac_c_werror_flag"
6826			 || test ! -s conftest.err'
6827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828  (eval $ac_try) 2>&5
6829  ac_status=$?
6830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831  (exit $ac_status); }; } &&
6832	 { ac_try='test -s conftest.$ac_objext'
6833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834  (eval $ac_try) 2>&5
6835  ac_status=$?
6836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837  (exit $ac_status); }; }; then
6838  echo "$as_me:$LINENO: result: yes" >&5
6839echo "${ECHO_T}yes" >&6
6840else
6841  echo "$as_me: failed program was:" >&5
6842sed 's/^/| /' conftest.$ac_ext >&5
6843
6844echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6; no_x=yes
6846fi
6847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6848  CFLAGS=$cflags_save
6849
6850  if test "${no_x-no}" = yes; then
6851    with_x=no
6852  else
6853    cat >>confdefs.h <<\_ACEOF
6854#define HAVE_X11 1
6855_ACEOF
6856
6857    X_LIB="-lXt -lX11";
6858
6859
6860    ac_save_LDFLAGS="$LDFLAGS"
6861    LDFLAGS="-L$x_libraries $LDFLAGS"
6862
6863            echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6864echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6865if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6866  echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868  ac_check_lib_save_LIBS=$LIBS
6869LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
6870cat >conftest.$ac_ext <<_ACEOF
6871/* confdefs.h.  */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h.  */
6876
6877/* Override any gcc2 internal prototype to avoid an error.  */
6878#ifdef __cplusplus
6879extern "C"
6880#endif
6881/* We use char because int might match the return type of a gcc2
6882   builtin and then its argument prototype would still apply.  */
6883char _XdmcpAuthDoIt ();
6884int
6885main ()
6886{
6887_XdmcpAuthDoIt ();
6888  ;
6889  return 0;
6890}
6891_ACEOF
6892rm -f conftest.$ac_objext conftest$ac_exeext
6893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894  (eval $ac_link) 2>conftest.er1
6895  ac_status=$?
6896  grep -v '^ *+' conftest.er1 >conftest.err
6897  rm -f conftest.er1
6898  cat conftest.err >&5
6899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900  (exit $ac_status); } &&
6901	 { ac_try='test -z "$ac_c_werror_flag"
6902			 || test ! -s conftest.err'
6903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904  (eval $ac_try) 2>&5
6905  ac_status=$?
6906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907  (exit $ac_status); }; } &&
6908	 { ac_try='test -s conftest$ac_exeext'
6909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910  (eval $ac_try) 2>&5
6911  ac_status=$?
6912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913  (exit $ac_status); }; }; then
6914  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
6915else
6916  echo "$as_me: failed program was:" >&5
6917sed 's/^/| /' conftest.$ac_ext >&5
6918
6919ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
6920fi
6921rm -f conftest.err conftest.$ac_objext \
6922      conftest$ac_exeext conftest.$ac_ext
6923LIBS=$ac_check_lib_save_LIBS
6924fi
6925echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6926echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6927if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
6928  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
6929fi
6930
6931
6932                    echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6933echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6934if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6935  echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937  ac_check_lib_save_LIBS=$LIBS
6938LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6939cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h.  */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h.  */
6945
6946/* Override any gcc2 internal prototype to avoid an error.  */
6947#ifdef __cplusplus
6948extern "C"
6949#endif
6950/* We use char because int might match the return type of a gcc2
6951   builtin and then its argument prototype would still apply.  */
6952char IceOpenConnection ();
6953int
6954main ()
6955{
6956IceOpenConnection ();
6957  ;
6958  return 0;
6959}
6960_ACEOF
6961rm -f conftest.$ac_objext conftest$ac_exeext
6962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6963  (eval $ac_link) 2>conftest.er1
6964  ac_status=$?
6965  grep -v '^ *+' conftest.er1 >conftest.err
6966  rm -f conftest.er1
6967  cat conftest.err >&5
6968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969  (exit $ac_status); } &&
6970	 { ac_try='test -z "$ac_c_werror_flag"
6971			 || test ! -s conftest.err'
6972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973  (eval $ac_try) 2>&5
6974  ac_status=$?
6975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976  (exit $ac_status); }; } &&
6977	 { ac_try='test -s conftest$ac_exeext'
6978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979  (eval $ac_try) 2>&5
6980  ac_status=$?
6981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982  (exit $ac_status); }; }; then
6983  ac_cv_lib_ICE_IceOpenConnection=yes
6984else
6985  echo "$as_me: failed program was:" >&5
6986sed 's/^/| /' conftest.$ac_ext >&5
6987
6988ac_cv_lib_ICE_IceOpenConnection=no
6989fi
6990rm -f conftest.err conftest.$ac_objext \
6991      conftest$ac_exeext conftest.$ac_ext
6992LIBS=$ac_check_lib_save_LIBS
6993fi
6994echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6995echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6996if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
6997  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
6998fi
6999
7000
7001        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7002    echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7003echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
7004if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7005  echo $ECHO_N "(cached) $ECHO_C" >&6
7006else
7007  ac_check_lib_save_LIBS=$LIBS
7008LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7009cat >conftest.$ac_ext <<_ACEOF
7010/* confdefs.h.  */
7011_ACEOF
7012cat confdefs.h >>conftest.$ac_ext
7013cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h.  */
7015
7016/* Override any gcc2 internal prototype to avoid an error.  */
7017#ifdef __cplusplus
7018extern "C"
7019#endif
7020/* We use char because int might match the return type of a gcc2
7021   builtin and then its argument prototype would still apply.  */
7022char XpmCreatePixmapFromData ();
7023int
7024main ()
7025{
7026XpmCreatePixmapFromData ();
7027  ;
7028  return 0;
7029}
7030_ACEOF
7031rm -f conftest.$ac_objext conftest$ac_exeext
7032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033  (eval $ac_link) 2>conftest.er1
7034  ac_status=$?
7035  grep -v '^ *+' conftest.er1 >conftest.err
7036  rm -f conftest.er1
7037  cat conftest.err >&5
7038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039  (exit $ac_status); } &&
7040	 { ac_try='test -z "$ac_c_werror_flag"
7041			 || test ! -s conftest.err'
7042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043  (eval $ac_try) 2>&5
7044  ac_status=$?
7045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046  (exit $ac_status); }; } &&
7047	 { ac_try='test -s conftest$ac_exeext'
7048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049  (eval $ac_try) 2>&5
7050  ac_status=$?
7051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052  (exit $ac_status); }; }; then
7053  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7054else
7055  echo "$as_me: failed program was:" >&5
7056sed 's/^/| /' conftest.$ac_ext >&5
7057
7058ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7059fi
7060rm -f conftest.err conftest.$ac_objext \
7061      conftest$ac_exeext conftest.$ac_ext
7062LIBS=$ac_check_lib_save_LIBS
7063fi
7064echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7065echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
7066if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7067  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7068fi
7069
7070
7071        echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7072echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
7073    cflags_save=$CFLAGS
7074    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7075    cat >conftest.$ac_ext <<_ACEOF
7076/* confdefs.h.  */
7077_ACEOF
7078cat confdefs.h >>conftest.$ac_ext
7079cat >>conftest.$ac_ext <<_ACEOF
7080/* end confdefs.h.  */
7081#include <X11/Xlib.h>
7082int
7083main ()
7084{
7085
7086  ;
7087  return 0;
7088}
7089_ACEOF
7090rm -f conftest.$ac_objext
7091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092  (eval $ac_compile) 2>conftest.er1
7093  ac_status=$?
7094  grep -v '^ *+' conftest.er1 >conftest.err
7095  rm -f conftest.er1
7096  cat conftest.err >&5
7097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098  (exit $ac_status); } &&
7099	 { ac_try='test -z "$ac_c_werror_flag"
7100			 || test ! -s conftest.err'
7101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102  (eval $ac_try) 2>&5
7103  ac_status=$?
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); }; } &&
7106	 { ac_try='test -s conftest.$ac_objext'
7107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108  (eval $ac_try) 2>&5
7109  ac_status=$?
7110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111  (exit $ac_status); }; }; then
7112  echo "$as_me:$LINENO: result: no" >&5
7113echo "${ECHO_T}no" >&6
7114else
7115  echo "$as_me: failed program was:" >&5
7116sed 's/^/| /' conftest.$ac_ext >&5
7117
7118CFLAGS="$CFLAGS -Wno-implicit-int"
7119	cat >conftest.$ac_ext <<_ACEOF
7120/* confdefs.h.  */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h.  */
7125#include <X11/Xlib.h>
7126int
7127main ()
7128{
7129
7130  ;
7131  return 0;
7132}
7133_ACEOF
7134rm -f conftest.$ac_objext
7135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136  (eval $ac_compile) 2>conftest.er1
7137  ac_status=$?
7138  grep -v '^ *+' conftest.er1 >conftest.err
7139  rm -f conftest.er1
7140  cat conftest.err >&5
7141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142  (exit $ac_status); } &&
7143	 { ac_try='test -z "$ac_c_werror_flag"
7144			 || test ! -s conftest.err'
7145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146  (eval $ac_try) 2>&5
7147  ac_status=$?
7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149  (exit $ac_status); }; } &&
7150	 { ac_try='test -s conftest.$ac_objext'
7151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152  (eval $ac_try) 2>&5
7153  ac_status=$?
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); }; }; then
7156  echo "$as_me:$LINENO: result: yes" >&5
7157echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
7158else
7159  echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
7162echo "$as_me:$LINENO: result: test failed" >&5
7163echo "${ECHO_T}test failed" >&6
7164
7165fi
7166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7167
7168fi
7169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7170    CFLAGS=$cflags_save
7171
7172    LDFLAGS="$ac_save_LDFLAGS"
7173
7174  fi
7175fi
7176
7177test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7178
7179echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7180echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
7181# Check whether --enable-gui or --disable-gui was given.
7182if test "${enable_gui+set}" = set; then
7183  enableval="$enable_gui"
7184
7185else
7186  enable_gui="auto"
7187fi;
7188
7189enable_gui_canon=`echo "_$enable_gui" | \
7190	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7191
7192SKIP_GTK=YES
7193SKIP_GTK2=YES
7194SKIP_GNOME=YES
7195SKIP_MOTIF=YES
7196SKIP_ATHENA=YES
7197SKIP_NEXTAW=YES
7198SKIP_PHOTON=YES
7199SKIP_CARBON=YES
7200GUITYPE=NONE
7201
7202if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7203  SKIP_PHOTON=
7204  case "$enable_gui_canon" in
7205    no)		echo "$as_me:$LINENO: result: no GUI support" >&5
7206echo "${ECHO_T}no GUI support" >&6
7207		SKIP_PHOTON=YES ;;
7208    yes|"")	echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7209echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7210    auto)	echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7211echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7212    photon)	echo "$as_me:$LINENO: result: Photon GUI support" >&5
7213echo "${ECHO_T}Photon GUI support" >&6 ;;
7214    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7215echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7216		SKIP_PHOTON=YES ;;
7217  esac
7218
7219elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7220  SKIP_CARBON=
7221  case "$enable_gui_canon" in
7222    no)		echo "$as_me:$LINENO: result: no GUI support" >&5
7223echo "${ECHO_T}no GUI support" >&6
7224		SKIP_CARBON=YES ;;
7225    yes|"")	echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7226echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7227    auto)	echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7228echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7229    carbon)	echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7230echo "${ECHO_T}Carbon GUI support" >&6 ;;
7231    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7232echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7233		SKIP_CARBON=YES ;;
7234  esac
7235
7236else
7237
7238  case "$enable_gui_canon" in
7239    no|none)	echo "$as_me:$LINENO: result: no GUI support" >&5
7240echo "${ECHO_T}no GUI support" >&6 ;;
7241    yes|""|auto)	echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7242echo "${ECHO_T}yes/auto - automatic GUI support" >&6
7243		SKIP_GTK=
7244		SKIP_GTK2=
7245		SKIP_GNOME=
7246		SKIP_MOTIF=
7247		SKIP_ATHENA=
7248		SKIP_NEXTAW=
7249		SKIP_CARBON=;;
7250    gtk)	echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7251echo "${ECHO_T}GTK+ 1.x GUI support" >&6
7252		SKIP_GTK=;;
7253    gtk2)	echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7254echo "${ECHO_T}GTK+ 2.x GUI support" >&6
7255		SKIP_GTK=
7256		SKIP_GTK2=;;
7257    gnome)	echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7258echo "${ECHO_T}GNOME 1.x GUI support" >&6
7259		SKIP_GNOME=
7260		SKIP_GTK=;;
7261    gnome2)	echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7262echo "${ECHO_T}GNOME 2.x GUI support" >&6
7263		SKIP_GNOME=
7264		SKIP_GTK=
7265		SKIP_GTK2=;;
7266    motif)	echo "$as_me:$LINENO: result: Motif GUI support" >&5
7267echo "${ECHO_T}Motif GUI support" >&6
7268		SKIP_MOTIF=;;
7269    athena)	echo "$as_me:$LINENO: result: Athena GUI support" >&5
7270echo "${ECHO_T}Athena GUI support" >&6
7271		SKIP_ATHENA=;;
7272    nextaw)	echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7273echo "${ECHO_T}neXtaw GUI support" >&6
7274		SKIP_NEXTAW=;;
7275    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7276echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
7277  esac
7278
7279fi
7280
7281if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
7282  echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7283echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
7284  # Check whether --enable-gtk-check or --disable-gtk-check was given.
7285if test "${enable_gtk_check+set}" = set; then
7286  enableval="$enable_gtk_check"
7287
7288else
7289  enable_gtk_check="yes"
7290fi;
7291  echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7292echo "${ECHO_T}$enable_gtk_check" >&6
7293  if test "x$enable_gtk_check" = "xno"; then
7294    SKIP_GTK=YES
7295    SKIP_GNOME=YES
7296  fi
7297fi
7298
7299if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7300				-a "$enable_gui_canon" != "gnome2"; then
7301  echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7302echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
7303  # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7304if test "${enable_gtk2_check+set}" = set; then
7305  enableval="$enable_gtk2_check"
7306
7307else
7308  enable_gtk2_check="yes"
7309fi;
7310  echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7311echo "${ECHO_T}$enable_gtk2_check" >&6
7312  if test "x$enable_gtk2_check" = "xno"; then
7313    SKIP_GTK2=YES
7314  fi
7315fi
7316
7317if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7318				 -a "$enable_gui_canon" != "gnome2"; then
7319  echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7320echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
7321  # Check whether --enable-gnome-check or --disable-gnome-check was given.
7322if test "${enable_gnome_check+set}" = set; then
7323  enableval="$enable_gnome_check"
7324
7325else
7326  enable_gnome_check="no"
7327fi;
7328  echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7329echo "${ECHO_T}$enable_gnome_check" >&6
7330  if test "x$enable_gnome_check" = "xno"; then
7331    SKIP_GNOME=YES
7332  fi
7333fi
7334
7335if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
7336  echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7337echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
7338  # Check whether --enable-motif-check or --disable-motif-check was given.
7339if test "${enable_motif_check+set}" = set; then
7340  enableval="$enable_motif_check"
7341
7342else
7343  enable_motif_check="yes"
7344fi;
7345  echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7346echo "${ECHO_T}$enable_motif_check" >&6
7347  if test "x$enable_motif_check" = "xno"; then
7348    SKIP_MOTIF=YES
7349  fi
7350fi
7351
7352if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
7353  echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7354echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
7355  # Check whether --enable-athena-check or --disable-athena-check was given.
7356if test "${enable_athena_check+set}" = set; then
7357  enableval="$enable_athena_check"
7358
7359else
7360  enable_athena_check="yes"
7361fi;
7362  echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7363echo "${ECHO_T}$enable_athena_check" >&6
7364  if test "x$enable_athena_check" = "xno"; then
7365    SKIP_ATHENA=YES
7366  fi
7367fi
7368
7369if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
7370  echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7371echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
7372  # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7373if test "${enable_nextaw_check+set}" = set; then
7374  enableval="$enable_nextaw_check"
7375
7376else
7377  enable_nextaw_check="yes"
7378fi;
7379  echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7380echo "${ECHO_T}$enable_nextaw_check" >&6;
7381  if test "x$enable_nextaw_check" = "xno"; then
7382    SKIP_NEXTAW=YES
7383  fi
7384fi
7385
7386if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
7387  echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7388echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
7389  # Check whether --enable-carbon-check or --disable-carbon-check was given.
7390if test "${enable_carbon_check+set}" = set; then
7391  enableval="$enable_carbon_check"
7392
7393else
7394  enable_carbon_check="yes"
7395fi;
7396  echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7397echo "${ECHO_T}$enable_carbon_check" >&6;
7398  if test "x$enable_carbon_check" = "xno"; then
7399    SKIP_CARBON=YES
7400  fi
7401fi
7402
7403
7404if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
7405  echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7406echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7407    echo "$as_me:$LINENO: result: yes" >&5
7408echo "${ECHO_T}yes" >&6;
7409  GUITYPE=CARBONGUI
7410  if test "$VIMNAME" = "vim"; then
7411    VIMNAME=Vim
7412  fi
7413
7414    if test x$prefix = xNONE; then
7415    prefix=/Applications
7416  fi
7417
7418    datadir='${prefix}/Vim.app/Contents/Resources'
7419
7420    SKIP_GTK=YES;
7421  SKIP_GTK2=YES;
7422  SKIP_GNOME=YES;
7423  SKIP_MOTIF=YES;
7424  SKIP_ATHENA=YES;
7425  SKIP_NEXTAW=YES;
7426  SKIP_PHOTON=YES;
7427  SKIP_CARBON=YES
7428fi
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438if test -z "$SKIP_GTK"; then
7439
7440  echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7441echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7442
7443# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7444if test "${with_gtk_prefix+set}" = set; then
7445  withval="$with_gtk_prefix"
7446  gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7447echo "${ECHO_T}$gtk_config_prefix" >&6
7448else
7449  gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7450echo "${ECHO_T}no" >&6
7451fi;
7452
7453  echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7454echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
7455
7456# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7457if test "${with_gtk_exec_prefix+set}" = set; then
7458  withval="$with_gtk_exec_prefix"
7459  gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7460echo "${ECHO_T}$gtk_config_prefix" >&6
7461else
7462  gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7463echo "${ECHO_T}no" >&6
7464fi;
7465
7466  echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7467echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
7468  # Check whether --enable-gtktest or --disable-gtktest was given.
7469if test "${enable_gtktest+set}" = set; then
7470  enableval="$enable_gtktest"
7471
7472else
7473  enable_gtktest=yes
7474fi;
7475  if test "x$enable_gtktest" = "xyes" ; then
7476    echo "$as_me:$LINENO: result: gtk test enabled" >&5
7477echo "${ECHO_T}gtk test enabled" >&6
7478  else
7479    echo "$as_me:$LINENO: result: gtk test disabled" >&5
7480echo "${ECHO_T}gtk test disabled" >&6
7481  fi
7482
7483  if test "x$gtk_config_prefix" != "x" ; then
7484    gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7485    GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7486  fi
7487  if test "x$gtk_config_exec_prefix" != "x" ; then
7488    gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7489    GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7490  fi
7491  if test "X$GTK_CONFIG" = "X"; then
7492    # Extract the first word of "gtk-config", so it can be a program name with args.
7493set dummy gtk-config; ac_word=$2
7494echo "$as_me:$LINENO: checking for $ac_word" >&5
7495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7496if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7497  echo $ECHO_N "(cached) $ECHO_C" >&6
7498else
7499  case $GTK_CONFIG in
7500  [\\/]* | ?:[\\/]*)
7501  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7502  ;;
7503  *)
7504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507  IFS=$as_save_IFS
7508  test -z "$as_dir" && as_dir=.
7509  for ac_exec_ext in '' $ac_executable_extensions; do
7510  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513    break 2
7514  fi
7515done
7516done
7517
7518  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7519  ;;
7520esac
7521fi
7522GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7523
7524if test -n "$GTK_CONFIG"; then
7525  echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7526echo "${ECHO_T}$GTK_CONFIG" >&6
7527else
7528  echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6
7530fi
7531
7532    if test "X$GTK_CONFIG" = "Xno"; then
7533            # Extract the first word of "gtk12-config", so it can be a program name with args.
7534set dummy gtk12-config; ac_word=$2
7535echo "$as_me:$LINENO: checking for $ac_word" >&5
7536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7537if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7538  echo $ECHO_N "(cached) $ECHO_C" >&6
7539else
7540  case $GTK12_CONFIG in
7541  [\\/]* | ?:[\\/]*)
7542  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7543  ;;
7544  *)
7545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548  IFS=$as_save_IFS
7549  test -z "$as_dir" && as_dir=.
7550  for ac_exec_ext in '' $ac_executable_extensions; do
7551  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552    ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7553    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554    break 2
7555  fi
7556done
7557done
7558
7559  test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7560  ;;
7561esac
7562fi
7563GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7564
7565if test -n "$GTK12_CONFIG"; then
7566  echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7567echo "${ECHO_T}$GTK12_CONFIG" >&6
7568else
7569  echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6
7571fi
7572
7573      GTK_CONFIG="$GTK12_CONFIG"
7574    fi
7575  else
7576    echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7577echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
7578  fi
7579  if test "X$PKG_CONFIG" = "X"; then
7580    # Extract the first word of "pkg-config", so it can be a program name with args.
7581set dummy pkg-config; ac_word=$2
7582echo "$as_me:$LINENO: checking for $ac_word" >&5
7583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7584if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7585  echo $ECHO_N "(cached) $ECHO_C" >&6
7586else
7587  case $PKG_CONFIG in
7588  [\\/]* | ?:[\\/]*)
7589  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7590  ;;
7591  *)
7592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595  IFS=$as_save_IFS
7596  test -z "$as_dir" && as_dir=.
7597  for ac_exec_ext in '' $ac_executable_extensions; do
7598  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7600    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601    break 2
7602  fi
7603done
7604done
7605
7606  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7607  ;;
7608esac
7609fi
7610PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7611
7612if test -n "$PKG_CONFIG"; then
7613  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7614echo "${ECHO_T}$PKG_CONFIG" >&6
7615else
7616  echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6
7618fi
7619
7620  fi
7621
7622  if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7623            if test "X$SKIP_GTK2" != "XYES"; then
7624
7625  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7626  {
7627    min_gtk_version=2.2.0
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      GUI_LIB_LOC="$GTK_LIBDIR"
7742		   GTK_LIBNAME="$GTK_LIBS"
7743		  GUI_INC_LOC="$GTK_CFLAGS"
7744    else
7745    {
7746      echo "$as_me:$LINENO: result: no" >&5
7747echo "${ECHO_T}no" >&6
7748      GTK_CFLAGS=""
7749      GTK_LIBS=""
7750      :
7751    }
7752    fi
7753  }
7754  else
7755    GTK_CFLAGS=""
7756    GTK_LIBS=""
7757    :
7758  fi
7759
7760
7761  rm -f conf.gtktest
7762
7763      if test "x$GTK_CFLAGS" != "x"; then
7764	SKIP_ATHENA=YES
7765	SKIP_NEXTAW=YES
7766	SKIP_MOTIF=YES
7767	GUITYPE=GTK
7768
7769      fi
7770    fi
7771
7772                if test "x$GUITYPE" != "xGTK"; then
7773      SKIP_GTK2=YES
7774
7775  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7776  {
7777    min_gtk_version=1.1.16
7778    echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7779echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7780    no_gtk=""
7781    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7782	  && $PKG_CONFIG --exists gtk+-2.0; then
7783    {
7784                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7785      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7786      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7787      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7788	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7789      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7790	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7791      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7792	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7793    }
7794    elif test "X$GTK_CONFIG" != "Xno"; then
7795    {
7796      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7797      GTK_LIBDIR=
7798      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7799      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7800	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7801      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7802	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7803      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7804	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7805    }
7806    else
7807      no_gtk=yes
7808    fi
7809
7810    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7811    {
7812      ac_save_CFLAGS="$CFLAGS"
7813      ac_save_LIBS="$LIBS"
7814      CFLAGS="$CFLAGS $GTK_CFLAGS"
7815      LIBS="$LIBS $GTK_LIBS"
7816
7817                              rm -f conf.gtktest
7818      if test "$cross_compiling" = yes; then
7819  echo $ac_n "cross compiling; assumed OK... $ac_c"
7820else
7821  cat >conftest.$ac_ext <<_ACEOF
7822/* confdefs.h.  */
7823_ACEOF
7824cat confdefs.h >>conftest.$ac_ext
7825cat >>conftest.$ac_ext <<_ACEOF
7826/* end confdefs.h.  */
7827
7828#include <gtk/gtk.h>
7829#include <stdio.h>
7830
7831int
7832main ()
7833{
7834int major, minor, micro;
7835char *tmp_version;
7836
7837system ("touch conf.gtktest");
7838
7839/* HP/UX 9 (%@#!) writes to sscanf strings */
7840tmp_version = g_strdup("$min_gtk_version");
7841if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7842   printf("%s, bad version string\n", "$min_gtk_version");
7843   exit(1);
7844 }
7845
7846if ((gtk_major_version > major) ||
7847    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7848    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7849				     (gtk_micro_version >= micro)))
7850{
7851    return 0;
7852}
7853return 1;
7854}
7855
7856_ACEOF
7857rm -f conftest$ac_exeext
7858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7859  (eval $ac_link) 2>&5
7860  ac_status=$?
7861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864  (eval $ac_try) 2>&5
7865  ac_status=$?
7866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867  (exit $ac_status); }; }; then
7868  :
7869else
7870  echo "$as_me: program exited with status $ac_status" >&5
7871echo "$as_me: failed program was:" >&5
7872sed 's/^/| /' conftest.$ac_ext >&5
7873
7874( exit $ac_status )
7875no_gtk=yes
7876fi
7877rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7878fi
7879      CFLAGS="$ac_save_CFLAGS"
7880      LIBS="$ac_save_LIBS"
7881    }
7882    fi
7883    if test "x$no_gtk" = x ; then
7884      if test "x$enable_gtktest" = "xyes"; then
7885	echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7886echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7887      else
7888	echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7889echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7890      fi
7891      GTK_LIBNAME="$GTK_LIBS"
7892		  GUI_INC_LOC="$GTK_CFLAGS"
7893    else
7894    {
7895      echo "$as_me:$LINENO: result: no" >&5
7896echo "${ECHO_T}no" >&6
7897      GTK_CFLAGS=""
7898      GTK_LIBS=""
7899      :
7900    }
7901    fi
7902  }
7903  else
7904    GTK_CFLAGS=""
7905    GTK_LIBS=""
7906    :
7907  fi
7908
7909
7910  rm -f conf.gtktest
7911
7912      if test "x$GTK_CFLAGS" != "x"; then
7913	SKIP_ATHENA=YES
7914	SKIP_NEXTAW=YES
7915	SKIP_MOTIF=YES
7916	GUITYPE=GTK
7917
7918      fi
7919    fi
7920  fi
7921    if test "x$GUITYPE" = "xGTK"; then
7922    if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7923	 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
7924      echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7925echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
7926    else
7927    {
7928      if test "0$gtk_major_version" -ge 2; then
7929	cat >>confdefs.h <<\_ACEOF
7930#define HAVE_GTK2 1
7931_ACEOF
7932
7933	if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7934		|| test "0$gtk_minor_version" -ge 2 \
7935		|| test "0$gtk_major_version" -gt 2; then
7936	  cat >>confdefs.h <<\_ACEOF
7937#define HAVE_GTK_MULTIHEAD 1
7938_ACEOF
7939
7940	fi
7941      fi
7942                        if test -z "$SKIP_GNOME"; then
7943      {
7944
7945
7946
7947
7948
7949
7950# Check whether --with-gnome-includes or --without-gnome-includes was given.
7951if test "${with_gnome_includes+set}" = set; then
7952  withval="$with_gnome_includes"
7953  CFLAGS="$CFLAGS -I$withval"
7954
7955fi;
7956
7957
7958# Check whether --with-gnome-libs or --without-gnome-libs was given.
7959if test "${with_gnome_libs+set}" = set; then
7960  withval="$with_gnome_libs"
7961  LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
7962
7963fi;
7964
7965
7966# Check whether --with-gnome or --without-gnome was given.
7967if test "${with_gnome+set}" = set; then
7968  withval="$with_gnome"
7969  if test x$withval = xyes; then
7970      want_gnome=yes
7971      have_gnome=yes
7972    else
7973      if test "x$withval" = xno; then
7974	want_gnome=no
7975      else
7976	want_gnome=yes
7977	LDFLAGS="$LDFLAGS -L$withval/lib"
7978	CFLAGS="$CFLAGS -I$withval/include"
7979	gnome_prefix=$withval/lib
7980      fi
7981    fi
7982else
7983  want_gnome=yes
7984fi;
7985
7986  if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7987  {
7988    echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7989echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
7990    if $PKG_CONFIG --exists libgnomeui-2.0; then
7991      echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6
7993      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7994      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7995      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
7996
7997                  echo "$as_me:$LINENO: checking for FreeBSD" >&5
7998echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7999      if test "`(uname) 2>/dev/null`" = FreeBSD; then
8000	echo "$as_me:$LINENO: result: yes" >&5
8001echo "${ECHO_T}yes" >&6
8002	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8003	GNOME_LIBS="$GNOME_LIBS -pthread"
8004      else
8005	echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6
8007      fi
8008      have_gnome=yes
8009    else
8010      echo "$as_me:$LINENO: result: not found" >&5
8011echo "${ECHO_T}not found" >&6
8012      if test "x" = xfail; then
8013	{ { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8014echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8015   { (exit 1); exit 1; }; }
8016      fi
8017    fi
8018  }
8019  elif test "x$want_gnome" = xyes; then
8020  {
8021    # Extract the first word of "gnome-config", so it can be a program name with args.
8022set dummy gnome-config; ac_word=$2
8023echo "$as_me:$LINENO: checking for $ac_word" >&5
8024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8025if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8026  echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028  case $GNOME_CONFIG in
8029  [\\/]* | ?:[\\/]*)
8030  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8031  ;;
8032  *)
8033  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034for as_dir in $PATH
8035do
8036  IFS=$as_save_IFS
8037  test -z "$as_dir" && as_dir=.
8038  for ac_exec_ext in '' $ac_executable_extensions; do
8039  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040    ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8041    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8042    break 2
8043  fi
8044done
8045done
8046
8047  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8048  ;;
8049esac
8050fi
8051GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8052
8053if test -n "$GNOME_CONFIG"; then
8054  echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8055echo "${ECHO_T}$GNOME_CONFIG" >&6
8056else
8057  echo "$as_me:$LINENO: result: no" >&5
8058echo "${ECHO_T}no" >&6
8059fi
8060
8061    if test "$GNOME_CONFIG" = "no"; then
8062      no_gnome_config="yes"
8063    else
8064      echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8065echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
8066      if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8067	echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069	GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8070	GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8071	GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8072	have_gnome=yes
8073      else
8074	echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6
8076	no_gnome_config="yes"
8077      fi
8078    fi
8079
8080    if test x$exec_prefix = xNONE; then
8081      if test x$prefix = xNONE; then
8082	gnome_prefix=$ac_default_prefix/lib
8083      else
8084	gnome_prefix=$prefix/lib
8085      fi
8086    else
8087      gnome_prefix=`eval echo \`echo $libdir\``
8088    fi
8089
8090    if test "$no_gnome_config" = "yes"; then
8091      echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8092echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
8093      if test -f $gnome_prefix/gnomeConf.sh; then
8094	echo "$as_me:$LINENO: result: found" >&5
8095echo "${ECHO_T}found" >&6
8096	echo "loading gnome configuration from" \
8097	  "$gnome_prefix/gnomeConf.sh"
8098	. $gnome_prefix/gnomeConf.sh
8099	have_gnome=yes
8100      else
8101	echo "$as_me:$LINENO: result: not found" >&5
8102echo "${ECHO_T}not found" >&6
8103	if test x = xfail; then
8104	  { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8105echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8106   { (exit 1); exit 1; }; }
8107	fi
8108      fi
8109    fi
8110  }
8111  fi
8112
8113	if test x$have_gnome = xyes ; then
8114	  cat >>confdefs.h <<\_ACEOF
8115#define FEAT_GUI_GNOME 1
8116_ACEOF
8117
8118	  GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8119	  GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8120	fi
8121      }
8122      fi
8123    }
8124    fi
8125  fi
8126fi
8127
8128
8129if test -z "$SKIP_MOTIF"; then
8130  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"
8131    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8132
8133  echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8134echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
8135  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8136  GUI_INC_LOC=
8137  for try in $gui_includes; do
8138    if test -f "$try/Xm/Xm.h"; then
8139      GUI_INC_LOC=$try
8140    fi
8141  done
8142  if test -n "$GUI_INC_LOC"; then
8143    if test "$GUI_INC_LOC" = /usr/include; then
8144      GUI_INC_LOC=
8145      echo "$as_me:$LINENO: result: in default path" >&5
8146echo "${ECHO_T}in default path" >&6
8147    else
8148      echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8149echo "${ECHO_T}$GUI_INC_LOC" >&6
8150    fi
8151  else
8152    echo "$as_me:$LINENO: result: <not found>" >&5
8153echo "${ECHO_T}<not found>" >&6
8154    SKIP_MOTIF=YES
8155  fi
8156fi
8157
8158
8159if test -z "$SKIP_MOTIF"; then
8160  echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8161echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8162
8163# Check whether --with-motif-lib or --without-motif-lib was given.
8164if test "${with_motif_lib+set}" = set; then
8165  withval="$with_motif_lib"
8166   MOTIF_LIBNAME="${withval}"
8167fi;
8168
8169  if test -n "$MOTIF_LIBNAME"; then
8170    echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8171echo "${ECHO_T}$MOTIF_LIBNAME" >&6
8172    GUI_LIB_LOC=
8173  else
8174    echo "$as_me:$LINENO: result: no" >&5
8175echo "${ECHO_T}no" >&6
8176
8177        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8178
8179    echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8180echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
8181    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"
8182    GUI_LIB_LOC=
8183    for try in $gui_libs; do
8184      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
8185	if test -f "$libtry"; then
8186	  GUI_LIB_LOC=$try
8187	fi
8188      done
8189    done
8190    if test -n "$GUI_LIB_LOC"; then
8191            if test "$GUI_LIB_LOC" = /usr/lib; then
8192	GUI_LIB_LOC=
8193	echo "$as_me:$LINENO: result: in default path" >&5
8194echo "${ECHO_T}in default path" >&6
8195      else
8196	if test -n "$GUI_LIB_LOC"; then
8197	  echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8198echo "${ECHO_T}$GUI_LIB_LOC" >&6
8199	  if test "`(uname) 2>/dev/null`" = SunOS &&
8200					 uname -r | grep '^5' >/dev/null; then
8201	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8202	  fi
8203	fi
8204      fi
8205      MOTIF_LIBNAME=-lXm
8206    else
8207      echo "$as_me:$LINENO: result: <not found>" >&5
8208echo "${ECHO_T}<not found>" >&6
8209      SKIP_MOTIF=YES
8210    fi
8211  fi
8212fi
8213
8214if test -z "$SKIP_MOTIF"; then
8215  SKIP_ATHENA=YES
8216  SKIP_NEXTAW=YES
8217  GUITYPE=MOTIF
8218
8219fi
8220
8221
8222GUI_X_LIBS=
8223
8224if test -z "$SKIP_ATHENA"; then
8225  echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8226echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
8227  cflags_save=$CFLAGS
8228  CFLAGS="$CFLAGS $X_CFLAGS"
8229  cat >conftest.$ac_ext <<_ACEOF
8230/* confdefs.h.  */
8231_ACEOF
8232cat confdefs.h >>conftest.$ac_ext
8233cat >>conftest.$ac_ext <<_ACEOF
8234/* end confdefs.h.  */
8235
8236#include <X11/Intrinsic.h>
8237#include <X11/Xaw/Paned.h>
8238int
8239main ()
8240{
8241
8242  ;
8243  return 0;
8244}
8245_ACEOF
8246rm -f conftest.$ac_objext
8247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248  (eval $ac_compile) 2>conftest.er1
8249  ac_status=$?
8250  grep -v '^ *+' conftest.er1 >conftest.err
8251  rm -f conftest.er1
8252  cat conftest.err >&5
8253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254  (exit $ac_status); } &&
8255	 { ac_try='test -z "$ac_c_werror_flag"
8256			 || test ! -s conftest.err'
8257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258  (eval $ac_try) 2>&5
8259  ac_status=$?
8260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261  (exit $ac_status); }; } &&
8262	 { ac_try='test -s conftest.$ac_objext'
8263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264  (eval $ac_try) 2>&5
8265  ac_status=$?
8266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267  (exit $ac_status); }; }; then
8268  echo "$as_me:$LINENO: result: yes" >&5
8269echo "${ECHO_T}yes" >&6
8270else
8271  echo "$as_me: failed program was:" >&5
8272sed 's/^/| /' conftest.$ac_ext >&5
8273
8274echo "$as_me:$LINENO: result: no" >&5
8275echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
8276fi
8277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8278  CFLAGS=$cflags_save
8279fi
8280
8281if test -z "$SKIP_ATHENA"; then
8282  GUITYPE=ATHENA
8283fi
8284
8285if test -z "$SKIP_NEXTAW"; then
8286  echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8287echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
8288  cflags_save=$CFLAGS
8289  CFLAGS="$CFLAGS $X_CFLAGS"
8290  cat >conftest.$ac_ext <<_ACEOF
8291/* confdefs.h.  */
8292_ACEOF
8293cat confdefs.h >>conftest.$ac_ext
8294cat >>conftest.$ac_ext <<_ACEOF
8295/* end confdefs.h.  */
8296
8297#include <X11/Intrinsic.h>
8298#include <X11/neXtaw/Paned.h>
8299int
8300main ()
8301{
8302
8303  ;
8304  return 0;
8305}
8306_ACEOF
8307rm -f conftest.$ac_objext
8308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309  (eval $ac_compile) 2>conftest.er1
8310  ac_status=$?
8311  grep -v '^ *+' conftest.er1 >conftest.err
8312  rm -f conftest.er1
8313  cat conftest.err >&5
8314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315  (exit $ac_status); } &&
8316	 { ac_try='test -z "$ac_c_werror_flag"
8317			 || test ! -s conftest.err'
8318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319  (eval $ac_try) 2>&5
8320  ac_status=$?
8321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322  (exit $ac_status); }; } &&
8323	 { ac_try='test -s conftest.$ac_objext'
8324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325  (eval $ac_try) 2>&5
8326  ac_status=$?
8327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328  (exit $ac_status); }; }; then
8329  echo "$as_me:$LINENO: result: yes" >&5
8330echo "${ECHO_T}yes" >&6
8331else
8332  echo "$as_me: failed program was:" >&5
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
8335echo "$as_me:$LINENO: result: no" >&5
8336echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
8337fi
8338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8339  CFLAGS=$cflags_save
8340fi
8341
8342if test -z "$SKIP_NEXTAW"; then
8343  GUITYPE=NEXTAW
8344fi
8345
8346if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8347      if test -n "$GUI_INC_LOC"; then
8348    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8349  fi
8350  if test -n "$GUI_LIB_LOC"; then
8351    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8352  fi
8353
8354    ldflags_save=$LDFLAGS
8355  LDFLAGS="$X_LIBS $LDFLAGS"
8356  echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8357echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8358if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8359  echo $ECHO_N "(cached) $ECHO_C" >&6
8360else
8361  ac_check_lib_save_LIBS=$LIBS
8362LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8363cat >conftest.$ac_ext <<_ACEOF
8364/* confdefs.h.  */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h.  */
8369
8370/* Override any gcc2 internal prototype to avoid an error.  */
8371#ifdef __cplusplus
8372extern "C"
8373#endif
8374/* We use char because int might match the return type of a gcc2
8375   builtin and then its argument prototype would still apply.  */
8376char XShapeQueryExtension ();
8377int
8378main ()
8379{
8380XShapeQueryExtension ();
8381  ;
8382  return 0;
8383}
8384_ACEOF
8385rm -f conftest.$ac_objext conftest$ac_exeext
8386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387  (eval $ac_link) 2>conftest.er1
8388  ac_status=$?
8389  grep -v '^ *+' conftest.er1 >conftest.err
8390  rm -f conftest.er1
8391  cat conftest.err >&5
8392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393  (exit $ac_status); } &&
8394	 { ac_try='test -z "$ac_c_werror_flag"
8395			 || test ! -s conftest.err'
8396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397  (eval $ac_try) 2>&5
8398  ac_status=$?
8399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400  (exit $ac_status); }; } &&
8401	 { ac_try='test -s conftest$ac_exeext'
8402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403  (eval $ac_try) 2>&5
8404  ac_status=$?
8405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406  (exit $ac_status); }; }; then
8407  ac_cv_lib_Xext_XShapeQueryExtension=yes
8408else
8409  echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
8412ac_cv_lib_Xext_XShapeQueryExtension=no
8413fi
8414rm -f conftest.err conftest.$ac_objext \
8415      conftest$ac_exeext conftest.$ac_ext
8416LIBS=$ac_check_lib_save_LIBS
8417fi
8418echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8419echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8420if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8421  GUI_X_LIBS="-lXext"
8422fi
8423
8424    echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8425echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8426if test "${ac_cv_lib_w_wslen+set}" = set; then
8427  echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429  ac_check_lib_save_LIBS=$LIBS
8430LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8431cat >conftest.$ac_ext <<_ACEOF
8432/* confdefs.h.  */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h.  */
8437
8438/* Override any gcc2 internal prototype to avoid an error.  */
8439#ifdef __cplusplus
8440extern "C"
8441#endif
8442/* We use char because int might match the return type of a gcc2
8443   builtin and then its argument prototype would still apply.  */
8444char wslen ();
8445int
8446main ()
8447{
8448wslen ();
8449  ;
8450  return 0;
8451}
8452_ACEOF
8453rm -f conftest.$ac_objext conftest$ac_exeext
8454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455  (eval $ac_link) 2>conftest.er1
8456  ac_status=$?
8457  grep -v '^ *+' conftest.er1 >conftest.err
8458  rm -f conftest.er1
8459  cat conftest.err >&5
8460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461  (exit $ac_status); } &&
8462	 { ac_try='test -z "$ac_c_werror_flag"
8463			 || test ! -s conftest.err'
8464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465  (eval $ac_try) 2>&5
8466  ac_status=$?
8467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468  (exit $ac_status); }; } &&
8469	 { ac_try='test -s conftest$ac_exeext'
8470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471  (eval $ac_try) 2>&5
8472  ac_status=$?
8473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474  (exit $ac_status); }; }; then
8475  ac_cv_lib_w_wslen=yes
8476else
8477  echo "$as_me: failed program was:" >&5
8478sed 's/^/| /' conftest.$ac_ext >&5
8479
8480ac_cv_lib_w_wslen=no
8481fi
8482rm -f conftest.err conftest.$ac_objext \
8483      conftest$ac_exeext conftest.$ac_ext
8484LIBS=$ac_check_lib_save_LIBS
8485fi
8486echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8487echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8488if test $ac_cv_lib_w_wslen = yes; then
8489  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
8490fi
8491
8492  echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8493echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8494if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8495  echo $ECHO_N "(cached) $ECHO_C" >&6
8496else
8497  ac_check_lib_save_LIBS=$LIBS
8498LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8499cat >conftest.$ac_ext <<_ACEOF
8500/* confdefs.h.  */
8501_ACEOF
8502cat confdefs.h >>conftest.$ac_ext
8503cat >>conftest.$ac_ext <<_ACEOF
8504/* end confdefs.h.  */
8505
8506/* Override any gcc2 internal prototype to avoid an error.  */
8507#ifdef __cplusplus
8508extern "C"
8509#endif
8510/* We use char because int might match the return type of a gcc2
8511   builtin and then its argument prototype would still apply.  */
8512char dlsym ();
8513int
8514main ()
8515{
8516dlsym ();
8517  ;
8518  return 0;
8519}
8520_ACEOF
8521rm -f conftest.$ac_objext conftest$ac_exeext
8522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523  (eval $ac_link) 2>conftest.er1
8524  ac_status=$?
8525  grep -v '^ *+' conftest.er1 >conftest.err
8526  rm -f conftest.er1
8527  cat conftest.err >&5
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); } &&
8530	 { ac_try='test -z "$ac_c_werror_flag"
8531			 || test ! -s conftest.err'
8532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533  (eval $ac_try) 2>&5
8534  ac_status=$?
8535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536  (exit $ac_status); }; } &&
8537	 { ac_try='test -s conftest$ac_exeext'
8538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539  (eval $ac_try) 2>&5
8540  ac_status=$?
8541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542  (exit $ac_status); }; }; then
8543  ac_cv_lib_dl_dlsym=yes
8544else
8545  echo "$as_me: failed program was:" >&5
8546sed 's/^/| /' conftest.$ac_ext >&5
8547
8548ac_cv_lib_dl_dlsym=no
8549fi
8550rm -f conftest.err conftest.$ac_objext \
8551      conftest$ac_exeext conftest.$ac_ext
8552LIBS=$ac_check_lib_save_LIBS
8553fi
8554echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8555echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8556if test $ac_cv_lib_dl_dlsym = yes; then
8557  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
8558fi
8559
8560  echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8561echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8562if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8563  echo $ECHO_N "(cached) $ECHO_C" >&6
8564else
8565  ac_check_lib_save_LIBS=$LIBS
8566LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8567cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h.  */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h.  */
8573
8574/* Override any gcc2 internal prototype to avoid an error.  */
8575#ifdef __cplusplus
8576extern "C"
8577#endif
8578/* We use char because int might match the return type of a gcc2
8579   builtin and then its argument prototype would still apply.  */
8580char XmuCreateStippledPixmap ();
8581int
8582main ()
8583{
8584XmuCreateStippledPixmap ();
8585  ;
8586  return 0;
8587}
8588_ACEOF
8589rm -f conftest.$ac_objext conftest$ac_exeext
8590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8591  (eval $ac_link) 2>conftest.er1
8592  ac_status=$?
8593  grep -v '^ *+' conftest.er1 >conftest.err
8594  rm -f conftest.er1
8595  cat conftest.err >&5
8596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597  (exit $ac_status); } &&
8598	 { ac_try='test -z "$ac_c_werror_flag"
8599			 || test ! -s conftest.err'
8600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601  (eval $ac_try) 2>&5
8602  ac_status=$?
8603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604  (exit $ac_status); }; } &&
8605	 { ac_try='test -s conftest$ac_exeext'
8606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607  (eval $ac_try) 2>&5
8608  ac_status=$?
8609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610  (exit $ac_status); }; }; then
8611  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
8612else
8613  echo "$as_me: failed program was:" >&5
8614sed 's/^/| /' conftest.$ac_ext >&5
8615
8616ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
8617fi
8618rm -f conftest.err conftest.$ac_objext \
8619      conftest$ac_exeext conftest.$ac_ext
8620LIBS=$ac_check_lib_save_LIBS
8621fi
8622echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8623echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8624if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
8625  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
8626fi
8627
8628  if test -z "$SKIP_MOTIF"; then
8629    echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8630echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8631if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8632  echo $ECHO_N "(cached) $ECHO_C" >&6
8633else
8634  ac_check_lib_save_LIBS=$LIBS
8635LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8636cat >conftest.$ac_ext <<_ACEOF
8637/* confdefs.h.  */
8638_ACEOF
8639cat confdefs.h >>conftest.$ac_ext
8640cat >>conftest.$ac_ext <<_ACEOF
8641/* end confdefs.h.  */
8642
8643/* Override any gcc2 internal prototype to avoid an error.  */
8644#ifdef __cplusplus
8645extern "C"
8646#endif
8647/* We use char because int might match the return type of a gcc2
8648   builtin and then its argument prototype would still apply.  */
8649char XpEndJob ();
8650int
8651main ()
8652{
8653XpEndJob ();
8654  ;
8655  return 0;
8656}
8657_ACEOF
8658rm -f conftest.$ac_objext conftest$ac_exeext
8659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660  (eval $ac_link) 2>conftest.er1
8661  ac_status=$?
8662  grep -v '^ *+' conftest.er1 >conftest.err
8663  rm -f conftest.er1
8664  cat conftest.err >&5
8665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666  (exit $ac_status); } &&
8667	 { ac_try='test -z "$ac_c_werror_flag"
8668			 || test ! -s conftest.err'
8669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670  (eval $ac_try) 2>&5
8671  ac_status=$?
8672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673  (exit $ac_status); }; } &&
8674	 { ac_try='test -s conftest$ac_exeext'
8675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676  (eval $ac_try) 2>&5
8677  ac_status=$?
8678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679  (exit $ac_status); }; }; then
8680  ac_cv_lib_Xp_XpEndJob=yes
8681else
8682  echo "$as_me: failed program was:" >&5
8683sed 's/^/| /' conftest.$ac_ext >&5
8684
8685ac_cv_lib_Xp_XpEndJob=no
8686fi
8687rm -f conftest.err conftest.$ac_objext \
8688      conftest$ac_exeext conftest.$ac_ext
8689LIBS=$ac_check_lib_save_LIBS
8690fi
8691echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8692echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8693if test $ac_cv_lib_Xp_XpEndJob = yes; then
8694  GUI_X_LIBS="-lXp $GUI_X_LIBS"
8695fi
8696
8697  fi
8698  LDFLAGS=$ldflags_save
8699
8700    echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8701echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
8702  NARROW_PROTO=
8703  rm -fr conftestdir
8704  if mkdir conftestdir; then
8705    cd conftestdir
8706    cat > Imakefile <<'EOF'
8707acfindx:
8708	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8709EOF
8710    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8711      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8712    fi
8713    cd ..
8714    rm -fr conftestdir
8715  fi
8716  if test -z "$NARROW_PROTO"; then
8717    echo "$as_me:$LINENO: result: no" >&5
8718echo "${ECHO_T}no" >&6
8719  else
8720    echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8721echo "${ECHO_T}$NARROW_PROTO" >&6
8722  fi
8723
8724fi
8725
8726if test "$enable_xsmp" = "yes"; then
8727  cppflags_save=$CPPFLAGS
8728  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8729
8730for ac_header in X11/SM/SMlib.h
8731do
8732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8733if eval "test \"\${$as_ac_Header+set}\" = set"; then
8734  echo "$as_me:$LINENO: checking for $ac_header" >&5
8735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8736if eval "test \"\${$as_ac_Header+set}\" = set"; then
8737  echo $ECHO_N "(cached) $ECHO_C" >&6
8738fi
8739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8741else
8742  # Is the header compilable?
8743echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8745cat >conftest.$ac_ext <<_ACEOF
8746/* confdefs.h.  */
8747_ACEOF
8748cat confdefs.h >>conftest.$ac_ext
8749cat >>conftest.$ac_ext <<_ACEOF
8750/* end confdefs.h.  */
8751$ac_includes_default
8752#include <$ac_header>
8753_ACEOF
8754rm -f conftest.$ac_objext
8755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8756  (eval $ac_compile) 2>conftest.er1
8757  ac_status=$?
8758  grep -v '^ *+' conftest.er1 >conftest.err
8759  rm -f conftest.er1
8760  cat conftest.err >&5
8761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762  (exit $ac_status); } &&
8763	 { ac_try='test -z "$ac_c_werror_flag"
8764			 || test ! -s conftest.err'
8765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766  (eval $ac_try) 2>&5
8767  ac_status=$?
8768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769  (exit $ac_status); }; } &&
8770	 { ac_try='test -s conftest.$ac_objext'
8771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772  (eval $ac_try) 2>&5
8773  ac_status=$?
8774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775  (exit $ac_status); }; }; then
8776  ac_header_compiler=yes
8777else
8778  echo "$as_me: failed program was:" >&5
8779sed 's/^/| /' conftest.$ac_ext >&5
8780
8781ac_header_compiler=no
8782fi
8783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8785echo "${ECHO_T}$ac_header_compiler" >&6
8786
8787# Is the header present?
8788echo "$as_me:$LINENO: checking $ac_header presence" >&5
8789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8790cat >conftest.$ac_ext <<_ACEOF
8791/* confdefs.h.  */
8792_ACEOF
8793cat confdefs.h >>conftest.$ac_ext
8794cat >>conftest.$ac_ext <<_ACEOF
8795/* end confdefs.h.  */
8796#include <$ac_header>
8797_ACEOF
8798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8799  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8800  ac_status=$?
8801  grep -v '^ *+' conftest.er1 >conftest.err
8802  rm -f conftest.er1
8803  cat conftest.err >&5
8804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805  (exit $ac_status); } >/dev/null; then
8806  if test -s conftest.err; then
8807    ac_cpp_err=$ac_c_preproc_warn_flag
8808    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8809  else
8810    ac_cpp_err=
8811  fi
8812else
8813  ac_cpp_err=yes
8814fi
8815if test -z "$ac_cpp_err"; then
8816  ac_header_preproc=yes
8817else
8818  echo "$as_me: failed program was:" >&5
8819sed 's/^/| /' conftest.$ac_ext >&5
8820
8821  ac_header_preproc=no
8822fi
8823rm -f conftest.err conftest.$ac_ext
8824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8825echo "${ECHO_T}$ac_header_preproc" >&6
8826
8827# So?  What about this header?
8828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8829  yes:no: )
8830    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8832    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8834    ac_header_preproc=yes
8835    ;;
8836  no:yes:* )
8837    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8839    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8840echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8841    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8843    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8844echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8845    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8847    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8849    (
8850      cat <<\_ASBOX
8851## ------------------------------------------ ##
8852## Report this to the AC_PACKAGE_NAME lists.  ##
8853## ------------------------------------------ ##
8854_ASBOX
8855    ) |
8856      sed "s/^/$as_me: WARNING:     /" >&2
8857    ;;
8858esac
8859echo "$as_me:$LINENO: checking for $ac_header" >&5
8860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8861if eval "test \"\${$as_ac_Header+set}\" = set"; then
8862  echo $ECHO_N "(cached) $ECHO_C" >&6
8863else
8864  eval "$as_ac_Header=\$ac_header_preproc"
8865fi
8866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8868
8869fi
8870if test `eval echo '${'$as_ac_Header'}'` = yes; then
8871  cat >>confdefs.h <<_ACEOF
8872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8873_ACEOF
8874
8875fi
8876
8877done
8878
8879  CPPFLAGS=$cppflags_save
8880fi
8881
8882
8883if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8884    cppflags_save=$CPPFLAGS
8885  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8886
8887
8888for ac_header in X11/xpm.h X11/Sunkeysym.h
8889do
8890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892  echo "$as_me:$LINENO: checking for $ac_header" >&5
8893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895  echo $ECHO_N "(cached) $ECHO_C" >&6
8896fi
8897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8899else
8900  # Is the header compilable?
8901echo "$as_me:$LINENO: checking $ac_header usability" >&5
8902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8903cat >conftest.$ac_ext <<_ACEOF
8904/* confdefs.h.  */
8905_ACEOF
8906cat confdefs.h >>conftest.$ac_ext
8907cat >>conftest.$ac_ext <<_ACEOF
8908/* end confdefs.h.  */
8909$ac_includes_default
8910#include <$ac_header>
8911_ACEOF
8912rm -f conftest.$ac_objext
8913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914  (eval $ac_compile) 2>conftest.er1
8915  ac_status=$?
8916  grep -v '^ *+' conftest.er1 >conftest.err
8917  rm -f conftest.er1
8918  cat conftest.err >&5
8919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920  (exit $ac_status); } &&
8921	 { ac_try='test -z "$ac_c_werror_flag"
8922			 || test ! -s conftest.err'
8923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924  (eval $ac_try) 2>&5
8925  ac_status=$?
8926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927  (exit $ac_status); }; } &&
8928	 { ac_try='test -s conftest.$ac_objext'
8929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930  (eval $ac_try) 2>&5
8931  ac_status=$?
8932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933  (exit $ac_status); }; }; then
8934  ac_header_compiler=yes
8935else
8936  echo "$as_me: failed program was:" >&5
8937sed 's/^/| /' conftest.$ac_ext >&5
8938
8939ac_header_compiler=no
8940fi
8941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8942echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8943echo "${ECHO_T}$ac_header_compiler" >&6
8944
8945# Is the header present?
8946echo "$as_me:$LINENO: checking $ac_header presence" >&5
8947echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8948cat >conftest.$ac_ext <<_ACEOF
8949/* confdefs.h.  */
8950_ACEOF
8951cat confdefs.h >>conftest.$ac_ext
8952cat >>conftest.$ac_ext <<_ACEOF
8953/* end confdefs.h.  */
8954#include <$ac_header>
8955_ACEOF
8956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8957  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8958  ac_status=$?
8959  grep -v '^ *+' conftest.er1 >conftest.err
8960  rm -f conftest.er1
8961  cat conftest.err >&5
8962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963  (exit $ac_status); } >/dev/null; then
8964  if test -s conftest.err; then
8965    ac_cpp_err=$ac_c_preproc_warn_flag
8966    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8967  else
8968    ac_cpp_err=
8969  fi
8970else
8971  ac_cpp_err=yes
8972fi
8973if test -z "$ac_cpp_err"; then
8974  ac_header_preproc=yes
8975else
8976  echo "$as_me: failed program was:" >&5
8977sed 's/^/| /' conftest.$ac_ext >&5
8978
8979  ac_header_preproc=no
8980fi
8981rm -f conftest.err conftest.$ac_ext
8982echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8983echo "${ECHO_T}$ac_header_preproc" >&6
8984
8985# So?  What about this header?
8986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8987  yes:no: )
8988    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8990    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8992    ac_header_preproc=yes
8993    ;;
8994  no:yes:* )
8995    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8997    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8998echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8999    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9001    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9002echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9003    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9005    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9007    (
9008      cat <<\_ASBOX
9009## ------------------------------------------ ##
9010## Report this to the AC_PACKAGE_NAME lists.  ##
9011## ------------------------------------------ ##
9012_ASBOX
9013    ) |
9014      sed "s/^/$as_me: WARNING:     /" >&2
9015    ;;
9016esac
9017echo "$as_me:$LINENO: checking for $ac_header" >&5
9018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9019if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020  echo $ECHO_N "(cached) $ECHO_C" >&6
9021else
9022  eval "$as_ac_Header=\$ac_header_preproc"
9023fi
9024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9026
9027fi
9028if test `eval echo '${'$as_ac_Header'}'` = yes; then
9029  cat >>confdefs.h <<_ACEOF
9030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031_ACEOF
9032
9033fi
9034
9035done
9036
9037
9038    if test ! "$enable_xim" = "no"; then
9039    echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9040echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
9041    cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h.  */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h.  */
9047#include <X11/Xlib.h>
9048_ACEOF
9049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9050  $EGREP "XIMText" >/dev/null 2>&1; then
9051  echo "$as_me:$LINENO: result: yes" >&5
9052echo "${ECHO_T}yes" >&6
9053else
9054  echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9055echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
9056fi
9057rm -f conftest*
9058
9059  fi
9060  CPPFLAGS=$cppflags_save
9061
9062    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9063		-a "x$GUITYPE" != "xNONE" ; then
9064    echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9065echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
9066    enable_xim="yes"
9067  fi
9068fi
9069
9070if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9071  cppflags_save=$CPPFLAGS
9072  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9073  echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9074echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
9075  cat >conftest.$ac_ext <<_ACEOF
9076/* confdefs.h.  */
9077_ACEOF
9078cat confdefs.h >>conftest.$ac_ext
9079cat >>conftest.$ac_ext <<_ACEOF
9080/* end confdefs.h.  */
9081
9082#include <X11/Intrinsic.h>
9083#include <X11/Xmu/Editres.h>
9084int
9085main ()
9086{
9087int i; i = 0;
9088  ;
9089  return 0;
9090}
9091_ACEOF
9092rm -f conftest.$ac_objext
9093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094  (eval $ac_compile) 2>conftest.er1
9095  ac_status=$?
9096  grep -v '^ *+' conftest.er1 >conftest.err
9097  rm -f conftest.er1
9098  cat conftest.err >&5
9099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100  (exit $ac_status); } &&
9101	 { ac_try='test -z "$ac_c_werror_flag"
9102			 || test ! -s conftest.err'
9103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104  (eval $ac_try) 2>&5
9105  ac_status=$?
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); }; } &&
9108	 { ac_try='test -s conftest.$ac_objext'
9109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110  (eval $ac_try) 2>&5
9111  ac_status=$?
9112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113  (exit $ac_status); }; }; then
9114  echo "$as_me:$LINENO: result: yes" >&5
9115echo "${ECHO_T}yes" >&6
9116		      cat >>confdefs.h <<\_ACEOF
9117#define HAVE_X11_XMU_EDITRES_H 1
9118_ACEOF
9119
9120else
9121  echo "$as_me: failed program was:" >&5
9122sed 's/^/| /' conftest.$ac_ext >&5
9123
9124echo "$as_me:$LINENO: result: no" >&5
9125echo "${ECHO_T}no" >&6
9126fi
9127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128  CPPFLAGS=$cppflags_save
9129fi
9130
9131if test -z "$SKIP_MOTIF"; then
9132  cppflags_save=$CPPFLAGS
9133  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9134
9135
9136
9137
9138
9139
9140
9141for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9142		   Xm/UnhighlightT.h Xm/Notebook.h
9143do
9144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9145if eval "test \"\${$as_ac_Header+set}\" = set"; then
9146  echo "$as_me:$LINENO: checking for $ac_header" >&5
9147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9148if eval "test \"\${$as_ac_Header+set}\" = set"; then
9149  echo $ECHO_N "(cached) $ECHO_C" >&6
9150fi
9151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9153else
9154  # Is the header compilable?
9155echo "$as_me:$LINENO: checking $ac_header usability" >&5
9156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9157cat >conftest.$ac_ext <<_ACEOF
9158/* confdefs.h.  */
9159_ACEOF
9160cat confdefs.h >>conftest.$ac_ext
9161cat >>conftest.$ac_ext <<_ACEOF
9162/* end confdefs.h.  */
9163$ac_includes_default
9164#include <$ac_header>
9165_ACEOF
9166rm -f conftest.$ac_objext
9167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168  (eval $ac_compile) 2>conftest.er1
9169  ac_status=$?
9170  grep -v '^ *+' conftest.er1 >conftest.err
9171  rm -f conftest.er1
9172  cat conftest.err >&5
9173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174  (exit $ac_status); } &&
9175	 { ac_try='test -z "$ac_c_werror_flag"
9176			 || test ! -s conftest.err'
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); }; } &&
9182	 { ac_try='test -s conftest.$ac_objext'
9183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184  (eval $ac_try) 2>&5
9185  ac_status=$?
9186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187  (exit $ac_status); }; }; then
9188  ac_header_compiler=yes
9189else
9190  echo "$as_me: failed program was:" >&5
9191sed 's/^/| /' conftest.$ac_ext >&5
9192
9193ac_header_compiler=no
9194fi
9195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9196echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9197echo "${ECHO_T}$ac_header_compiler" >&6
9198
9199# Is the header present?
9200echo "$as_me:$LINENO: checking $ac_header presence" >&5
9201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9202cat >conftest.$ac_ext <<_ACEOF
9203/* confdefs.h.  */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
9207/* end confdefs.h.  */
9208#include <$ac_header>
9209_ACEOF
9210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9211  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9212  ac_status=$?
9213  grep -v '^ *+' conftest.er1 >conftest.err
9214  rm -f conftest.er1
9215  cat conftest.err >&5
9216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217  (exit $ac_status); } >/dev/null; then
9218  if test -s conftest.err; then
9219    ac_cpp_err=$ac_c_preproc_warn_flag
9220    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9221  else
9222    ac_cpp_err=
9223  fi
9224else
9225  ac_cpp_err=yes
9226fi
9227if test -z "$ac_cpp_err"; then
9228  ac_header_preproc=yes
9229else
9230  echo "$as_me: failed program was:" >&5
9231sed 's/^/| /' conftest.$ac_ext >&5
9232
9233  ac_header_preproc=no
9234fi
9235rm -f conftest.err conftest.$ac_ext
9236echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9237echo "${ECHO_T}$ac_header_preproc" >&6
9238
9239# So?  What about this header?
9240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9241  yes:no: )
9242    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9243echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9244    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9245echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9246    ac_header_preproc=yes
9247    ;;
9248  no:yes:* )
9249    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9250echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9251    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9252echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9253    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9254echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9255    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9256echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9257    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9259    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9260echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9261    (
9262      cat <<\_ASBOX
9263## ------------------------------------------ ##
9264## Report this to the AC_PACKAGE_NAME lists.  ##
9265## ------------------------------------------ ##
9266_ASBOX
9267    ) |
9268      sed "s/^/$as_me: WARNING:     /" >&2
9269    ;;
9270esac
9271echo "$as_me:$LINENO: checking for $ac_header" >&5
9272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9273if eval "test \"\${$as_ac_Header+set}\" = set"; then
9274  echo $ECHO_N "(cached) $ECHO_C" >&6
9275else
9276  eval "$as_ac_Header=\$ac_header_preproc"
9277fi
9278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9280
9281fi
9282if test `eval echo '${'$as_ac_Header'}'` = yes; then
9283  cat >>confdefs.h <<_ACEOF
9284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9285_ACEOF
9286
9287fi
9288
9289done
9290
9291
9292  if test $ac_cv_header_Xm_XpmP_h = yes; then
9293        echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9294echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9295    cat >conftest.$ac_ext <<_ACEOF
9296/* confdefs.h.  */
9297_ACEOF
9298cat confdefs.h >>conftest.$ac_ext
9299cat >>conftest.$ac_ext <<_ACEOF
9300/* end confdefs.h.  */
9301#include <Xm/XpmP.h>
9302int
9303main ()
9304{
9305XpmAttributes_21 attr;
9306  ;
9307  return 0;
9308}
9309_ACEOF
9310rm -f conftest.$ac_objext
9311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312  (eval $ac_compile) 2>conftest.er1
9313  ac_status=$?
9314  grep -v '^ *+' conftest.er1 >conftest.err
9315  rm -f conftest.er1
9316  cat conftest.err >&5
9317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318  (exit $ac_status); } &&
9319	 { ac_try='test -z "$ac_c_werror_flag"
9320			 || test ! -s conftest.err'
9321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322  (eval $ac_try) 2>&5
9323  ac_status=$?
9324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325  (exit $ac_status); }; } &&
9326	 { ac_try='test -s conftest.$ac_objext'
9327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328  (eval $ac_try) 2>&5
9329  ac_status=$?
9330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331  (exit $ac_status); }; }; then
9332  echo "$as_me:$LINENO: result: yes" >&5
9333echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9334#define XPMATTRIBUTES_TYPE XpmAttributes_21
9335_ACEOF
9336
9337else
9338  echo "$as_me: failed program was:" >&5
9339sed 's/^/| /' conftest.$ac_ext >&5
9340
9341echo "$as_me:$LINENO: result: no" >&5
9342echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
9343#define XPMATTRIBUTES_TYPE XpmAttributes
9344_ACEOF
9345
9346
9347fi
9348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9349  else
9350    cat >>confdefs.h <<\_ACEOF
9351#define XPMATTRIBUTES_TYPE XpmAttributes
9352_ACEOF
9353
9354  fi
9355  CPPFLAGS=$cppflags_save
9356fi
9357
9358if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
9359  echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9360echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
9361  enable_xim="no"
9362fi
9363if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
9364  echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9365echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
9366  enable_fontset="no"
9367fi
9368if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
9369  echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9370echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
9371  enable_fontset="no"
9372fi
9373
9374if test -z "$SKIP_PHOTON"; then
9375  GUITYPE=PHOTONGUI
9376fi
9377
9378
9379
9380
9381
9382
9383if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
9384  { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9385echo "$as_me: error: cannot use workshop without Motif" >&2;}
9386   { (exit 1); exit 1; }; }
9387fi
9388
9389if test "$enable_xim" = "yes"; then
9390  cat >>confdefs.h <<\_ACEOF
9391#define FEAT_XIM 1
9392_ACEOF
9393
9394fi
9395if test "$enable_fontset" = "yes"; then
9396  cat >>confdefs.h <<\_ACEOF
9397#define FEAT_XFONTSET 1
9398_ACEOF
9399
9400fi
9401
9402
9403
9404
9405if test "$enable_hangulinput" = "yes"; then
9406  if test "x$GUITYPE" = "xNONE"; then
9407    echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9408echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
9409    enable_hangulinput=no
9410  else
9411    cat >>confdefs.h <<\_ACEOF
9412#define FEAT_HANGULIN 1
9413_ACEOF
9414
9415    HANGULIN_SRC=hangulin.c
9416
9417    HANGULIN_OBJ=objects/hangulin.o
9418
9419  fi
9420fi
9421
9422
9423echo "$as_me:$LINENO: checking quality of toupper" >&5
9424echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
9425if test "$cross_compiling" = yes; then
9426  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9427echo "$as_me: error: failed to compile test program" >&2;}
9428   { (exit 1); exit 1; }; }
9429else
9430  cat >conftest.$ac_ext <<_ACEOF
9431/* confdefs.h.  */
9432_ACEOF
9433cat confdefs.h >>conftest.$ac_ext
9434cat >>conftest.$ac_ext <<_ACEOF
9435/* end confdefs.h.  */
9436#include <ctype.h>
9437main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
9438_ACEOF
9439rm -f conftest$ac_exeext
9440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9441  (eval $ac_link) 2>&5
9442  ac_status=$?
9443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446  (eval $ac_try) 2>&5
9447  ac_status=$?
9448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449  (exit $ac_status); }; }; then
9450  cat >>confdefs.h <<\_ACEOF
9451#define BROKEN_TOUPPER 1
9452_ACEOF
9453 echo "$as_me:$LINENO: result: bad" >&5
9454echo "${ECHO_T}bad" >&6
9455else
9456  echo "$as_me: program exited with status $ac_status" >&5
9457echo "$as_me: failed program was:" >&5
9458sed 's/^/| /' conftest.$ac_ext >&5
9459
9460( exit $ac_status )
9461echo "$as_me:$LINENO: result: good" >&5
9462echo "${ECHO_T}good" >&6
9463fi
9464rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9465fi
9466
9467echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9468echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9469cat >conftest.$ac_ext <<_ACEOF
9470/* confdefs.h.  */
9471_ACEOF
9472cat confdefs.h >>conftest.$ac_ext
9473cat >>conftest.$ac_ext <<_ACEOF
9474/* end confdefs.h.  */
9475
9476int
9477main ()
9478{
9479printf("(" __DATE__ " " __TIME__ ")");
9480  ;
9481  return 0;
9482}
9483_ACEOF
9484rm -f conftest.$ac_objext
9485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486  (eval $ac_compile) 2>conftest.er1
9487  ac_status=$?
9488  grep -v '^ *+' conftest.er1 >conftest.err
9489  rm -f conftest.er1
9490  cat conftest.err >&5
9491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492  (exit $ac_status); } &&
9493	 { ac_try='test -z "$ac_c_werror_flag"
9494			 || test ! -s conftest.err'
9495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496  (eval $ac_try) 2>&5
9497  ac_status=$?
9498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499  (exit $ac_status); }; } &&
9500	 { ac_try='test -s conftest.$ac_objext'
9501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502  (eval $ac_try) 2>&5
9503  ac_status=$?
9504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505  (exit $ac_status); }; }; then
9506  echo "$as_me:$LINENO: result: yes" >&5
9507echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9508#define HAVE_DATE_TIME 1
9509_ACEOF
9510
9511else
9512  echo "$as_me: failed program was:" >&5
9513sed 's/^/| /' conftest.$ac_ext >&5
9514
9515echo "$as_me:$LINENO: result: no" >&5
9516echo "${ECHO_T}no" >&6
9517fi
9518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9519
9520if test "${ac_cv_header_elf_h+set}" = set; then
9521  echo "$as_me:$LINENO: checking for elf.h" >&5
9522echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9523if test "${ac_cv_header_elf_h+set}" = set; then
9524  echo $ECHO_N "(cached) $ECHO_C" >&6
9525fi
9526echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9527echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9528else
9529  # Is the header compilable?
9530echo "$as_me:$LINENO: checking elf.h usability" >&5
9531echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9532cat >conftest.$ac_ext <<_ACEOF
9533/* confdefs.h.  */
9534_ACEOF
9535cat confdefs.h >>conftest.$ac_ext
9536cat >>conftest.$ac_ext <<_ACEOF
9537/* end confdefs.h.  */
9538$ac_includes_default
9539#include <elf.h>
9540_ACEOF
9541rm -f conftest.$ac_objext
9542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9543  (eval $ac_compile) 2>conftest.er1
9544  ac_status=$?
9545  grep -v '^ *+' conftest.er1 >conftest.err
9546  rm -f conftest.er1
9547  cat conftest.err >&5
9548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549  (exit $ac_status); } &&
9550	 { ac_try='test -z "$ac_c_werror_flag"
9551			 || test ! -s conftest.err'
9552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553  (eval $ac_try) 2>&5
9554  ac_status=$?
9555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556  (exit $ac_status); }; } &&
9557	 { ac_try='test -s conftest.$ac_objext'
9558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559  (eval $ac_try) 2>&5
9560  ac_status=$?
9561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562  (exit $ac_status); }; }; then
9563  ac_header_compiler=yes
9564else
9565  echo "$as_me: failed program was:" >&5
9566sed 's/^/| /' conftest.$ac_ext >&5
9567
9568ac_header_compiler=no
9569fi
9570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9572echo "${ECHO_T}$ac_header_compiler" >&6
9573
9574# Is the header present?
9575echo "$as_me:$LINENO: checking elf.h presence" >&5
9576echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9577cat >conftest.$ac_ext <<_ACEOF
9578/* confdefs.h.  */
9579_ACEOF
9580cat confdefs.h >>conftest.$ac_ext
9581cat >>conftest.$ac_ext <<_ACEOF
9582/* end confdefs.h.  */
9583#include <elf.h>
9584_ACEOF
9585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9586  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9587  ac_status=$?
9588  grep -v '^ *+' conftest.er1 >conftest.err
9589  rm -f conftest.er1
9590  cat conftest.err >&5
9591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592  (exit $ac_status); } >/dev/null; then
9593  if test -s conftest.err; then
9594    ac_cpp_err=$ac_c_preproc_warn_flag
9595    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9596  else
9597    ac_cpp_err=
9598  fi
9599else
9600  ac_cpp_err=yes
9601fi
9602if test -z "$ac_cpp_err"; then
9603  ac_header_preproc=yes
9604else
9605  echo "$as_me: failed program was:" >&5
9606sed 's/^/| /' conftest.$ac_ext >&5
9607
9608  ac_header_preproc=no
9609fi
9610rm -f conftest.err conftest.$ac_ext
9611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9612echo "${ECHO_T}$ac_header_preproc" >&6
9613
9614# So?  What about this header?
9615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9616  yes:no: )
9617    { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9618echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9619    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9620echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9621    ac_header_preproc=yes
9622    ;;
9623  no:yes:* )
9624    { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9625echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9626    { echo "$as_me:$LINENO: WARNING: elf.h:     check for missing prerequisite headers?" >&5
9627echo "$as_me: WARNING: elf.h:     check for missing prerequisite headers?" >&2;}
9628    { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9629echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9630    { echo "$as_me:$LINENO: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&5
9631echo "$as_me: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9632    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9633echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9634    { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9635echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9636    (
9637      cat <<\_ASBOX
9638## ------------------------------------------ ##
9639## Report this to the AC_PACKAGE_NAME lists.  ##
9640## ------------------------------------------ ##
9641_ASBOX
9642    ) |
9643      sed "s/^/$as_me: WARNING:     /" >&2
9644    ;;
9645esac
9646echo "$as_me:$LINENO: checking for elf.h" >&5
9647echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9648if test "${ac_cv_header_elf_h+set}" = set; then
9649  echo $ECHO_N "(cached) $ECHO_C" >&6
9650else
9651  ac_cv_header_elf_h=$ac_header_preproc
9652fi
9653echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9654echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9655
9656fi
9657if test $ac_cv_header_elf_h = yes; then
9658  HAS_ELF=1
9659fi
9660
9661
9662if test "$HAS_ELF" = 1; then
9663
9664echo "$as_me:$LINENO: checking for main in -lelf" >&5
9665echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9666if test "${ac_cv_lib_elf_main+set}" = set; then
9667  echo $ECHO_N "(cached) $ECHO_C" >&6
9668else
9669  ac_check_lib_save_LIBS=$LIBS
9670LIBS="-lelf  $LIBS"
9671cat >conftest.$ac_ext <<_ACEOF
9672/* confdefs.h.  */
9673_ACEOF
9674cat confdefs.h >>conftest.$ac_ext
9675cat >>conftest.$ac_ext <<_ACEOF
9676/* end confdefs.h.  */
9677
9678
9679int
9680main ()
9681{
9682main ();
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_lib_elf_main=yes
9710else
9711  echo "$as_me: failed program was:" >&5
9712sed 's/^/| /' conftest.$ac_ext >&5
9713
9714ac_cv_lib_elf_main=no
9715fi
9716rm -f conftest.err conftest.$ac_objext \
9717      conftest$ac_exeext conftest.$ac_ext
9718LIBS=$ac_check_lib_save_LIBS
9719fi
9720echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9721echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9722if test $ac_cv_lib_elf_main = yes; then
9723  cat >>confdefs.h <<_ACEOF
9724#define HAVE_LIBELF 1
9725_ACEOF
9726
9727  LIBS="-lelf $LIBS"
9728
9729fi
9730
9731fi
9732
9733
9734
9735
9736
9737
9738ac_header_dirent=no
9739for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9740  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9741echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9742echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9743if eval "test \"\${$as_ac_Header+set}\" = set"; then
9744  echo $ECHO_N "(cached) $ECHO_C" >&6
9745else
9746  cat >conftest.$ac_ext <<_ACEOF
9747/* confdefs.h.  */
9748_ACEOF
9749cat confdefs.h >>conftest.$ac_ext
9750cat >>conftest.$ac_ext <<_ACEOF
9751/* end confdefs.h.  */
9752#include <sys/types.h>
9753#include <$ac_hdr>
9754
9755int
9756main ()
9757{
9758if ((DIR *) 0)
9759return 0;
9760  ;
9761  return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext
9765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9766  (eval $ac_compile) 2>conftest.er1
9767  ac_status=$?
9768  grep -v '^ *+' conftest.er1 >conftest.err
9769  rm -f conftest.er1
9770  cat conftest.err >&5
9771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772  (exit $ac_status); } &&
9773	 { ac_try='test -z "$ac_c_werror_flag"
9774			 || test ! -s conftest.err'
9775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776  (eval $ac_try) 2>&5
9777  ac_status=$?
9778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779  (exit $ac_status); }; } &&
9780	 { ac_try='test -s conftest.$ac_objext'
9781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782  (eval $ac_try) 2>&5
9783  ac_status=$?
9784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785  (exit $ac_status); }; }; then
9786  eval "$as_ac_Header=yes"
9787else
9788  echo "$as_me: failed program was:" >&5
9789sed 's/^/| /' conftest.$ac_ext >&5
9790
9791eval "$as_ac_Header=no"
9792fi
9793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9794fi
9795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9797if test `eval echo '${'$as_ac_Header'}'` = yes; then
9798  cat >>confdefs.h <<_ACEOF
9799#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9800_ACEOF
9801
9802ac_header_dirent=$ac_hdr; break
9803fi
9804
9805done
9806# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9807if test $ac_header_dirent = dirent.h; then
9808  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9809echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9810if test "${ac_cv_search_opendir+set}" = set; then
9811  echo $ECHO_N "(cached) $ECHO_C" >&6
9812else
9813  ac_func_search_save_LIBS=$LIBS
9814ac_cv_search_opendir=no
9815cat >conftest.$ac_ext <<_ACEOF
9816/* confdefs.h.  */
9817_ACEOF
9818cat confdefs.h >>conftest.$ac_ext
9819cat >>conftest.$ac_ext <<_ACEOF
9820/* end confdefs.h.  */
9821
9822/* Override any gcc2 internal prototype to avoid an error.  */
9823#ifdef __cplusplus
9824extern "C"
9825#endif
9826/* We use char because int might match the return type of a gcc2
9827   builtin and then its argument prototype would still apply.  */
9828char opendir ();
9829int
9830main ()
9831{
9832opendir ();
9833  ;
9834  return 0;
9835}
9836_ACEOF
9837rm -f conftest.$ac_objext conftest$ac_exeext
9838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839  (eval $ac_link) 2>conftest.er1
9840  ac_status=$?
9841  grep -v '^ *+' conftest.er1 >conftest.err
9842  rm -f conftest.er1
9843  cat conftest.err >&5
9844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845  (exit $ac_status); } &&
9846	 { ac_try='test -z "$ac_c_werror_flag"
9847			 || test ! -s conftest.err'
9848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849  (eval $ac_try) 2>&5
9850  ac_status=$?
9851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852  (exit $ac_status); }; } &&
9853	 { ac_try='test -s conftest$ac_exeext'
9854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855  (eval $ac_try) 2>&5
9856  ac_status=$?
9857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858  (exit $ac_status); }; }; then
9859  ac_cv_search_opendir="none required"
9860else
9861  echo "$as_me: failed program was:" >&5
9862sed 's/^/| /' conftest.$ac_ext >&5
9863
9864fi
9865rm -f conftest.err conftest.$ac_objext \
9866      conftest$ac_exeext conftest.$ac_ext
9867if test "$ac_cv_search_opendir" = no; then
9868  for ac_lib in dir; do
9869    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9870    cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h.  */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h.  */
9876
9877/* Override any gcc2 internal prototype to avoid an error.  */
9878#ifdef __cplusplus
9879extern "C"
9880#endif
9881/* We use char because int might match the return type of a gcc2
9882   builtin and then its argument prototype would still apply.  */
9883char opendir ();
9884int
9885main ()
9886{
9887opendir ();
9888  ;
9889  return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext conftest$ac_exeext
9893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9894  (eval $ac_link) 2>conftest.er1
9895  ac_status=$?
9896  grep -v '^ *+' conftest.er1 >conftest.err
9897  rm -f conftest.er1
9898  cat conftest.err >&5
9899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900  (exit $ac_status); } &&
9901	 { ac_try='test -z "$ac_c_werror_flag"
9902			 || test ! -s conftest.err'
9903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904  (eval $ac_try) 2>&5
9905  ac_status=$?
9906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907  (exit $ac_status); }; } &&
9908	 { ac_try='test -s conftest$ac_exeext'
9909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910  (eval $ac_try) 2>&5
9911  ac_status=$?
9912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913  (exit $ac_status); }; }; then
9914  ac_cv_search_opendir="-l$ac_lib"
9915break
9916else
9917  echo "$as_me: failed program was:" >&5
9918sed 's/^/| /' conftest.$ac_ext >&5
9919
9920fi
9921rm -f conftest.err conftest.$ac_objext \
9922      conftest$ac_exeext conftest.$ac_ext
9923  done
9924fi
9925LIBS=$ac_func_search_save_LIBS
9926fi
9927echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9928echo "${ECHO_T}$ac_cv_search_opendir" >&6
9929if test "$ac_cv_search_opendir" != no; then
9930  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9931
9932fi
9933
9934else
9935  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9936echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9937if test "${ac_cv_search_opendir+set}" = set; then
9938  echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940  ac_func_search_save_LIBS=$LIBS
9941ac_cv_search_opendir=no
9942cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h.  */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h.  */
9948
9949/* Override any gcc2 internal prototype to avoid an error.  */
9950#ifdef __cplusplus
9951extern "C"
9952#endif
9953/* We use char because int might match the return type of a gcc2
9954   builtin and then its argument prototype would still apply.  */
9955char opendir ();
9956int
9957main ()
9958{
9959opendir ();
9960  ;
9961  return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext conftest$ac_exeext
9965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966  (eval $ac_link) 2>conftest.er1
9967  ac_status=$?
9968  grep -v '^ *+' conftest.er1 >conftest.err
9969  rm -f conftest.er1
9970  cat conftest.err >&5
9971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); } &&
9973	 { ac_try='test -z "$ac_c_werror_flag"
9974			 || test ! -s conftest.err'
9975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976  (eval $ac_try) 2>&5
9977  ac_status=$?
9978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979  (exit $ac_status); }; } &&
9980	 { ac_try='test -s conftest$ac_exeext'
9981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982  (eval $ac_try) 2>&5
9983  ac_status=$?
9984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985  (exit $ac_status); }; }; then
9986  ac_cv_search_opendir="none required"
9987else
9988  echo "$as_me: failed program was:" >&5
9989sed 's/^/| /' conftest.$ac_ext >&5
9990
9991fi
9992rm -f conftest.err conftest.$ac_objext \
9993      conftest$ac_exeext conftest.$ac_ext
9994if test "$ac_cv_search_opendir" = no; then
9995  for ac_lib in x; do
9996    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9997    cat >conftest.$ac_ext <<_ACEOF
9998/* confdefs.h.  */
9999_ACEOF
10000cat confdefs.h >>conftest.$ac_ext
10001cat >>conftest.$ac_ext <<_ACEOF
10002/* end confdefs.h.  */
10003
10004/* Override any gcc2 internal prototype to avoid an error.  */
10005#ifdef __cplusplus
10006extern "C"
10007#endif
10008/* We use char because int might match the return type of a gcc2
10009   builtin and then its argument prototype would still apply.  */
10010char opendir ();
10011int
10012main ()
10013{
10014opendir ();
10015  ;
10016  return 0;
10017}
10018_ACEOF
10019rm -f conftest.$ac_objext conftest$ac_exeext
10020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021  (eval $ac_link) 2>conftest.er1
10022  ac_status=$?
10023  grep -v '^ *+' conftest.er1 >conftest.err
10024  rm -f conftest.er1
10025  cat conftest.err >&5
10026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027  (exit $ac_status); } &&
10028	 { ac_try='test -z "$ac_c_werror_flag"
10029			 || test ! -s conftest.err'
10030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031  (eval $ac_try) 2>&5
10032  ac_status=$?
10033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034  (exit $ac_status); }; } &&
10035	 { ac_try='test -s conftest$ac_exeext'
10036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037  (eval $ac_try) 2>&5
10038  ac_status=$?
10039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040  (exit $ac_status); }; }; then
10041  ac_cv_search_opendir="-l$ac_lib"
10042break
10043else
10044  echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
10047fi
10048rm -f conftest.err conftest.$ac_objext \
10049      conftest$ac_exeext conftest.$ac_ext
10050  done
10051fi
10052LIBS=$ac_func_search_save_LIBS
10053fi
10054echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10055echo "${ECHO_T}$ac_cv_search_opendir" >&6
10056if test "$ac_cv_search_opendir" != no; then
10057  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10058
10059fi
10060
10061fi
10062
10063
10064echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10065echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10066if test "${ac_cv_header_stdc+set}" = set; then
10067  echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069  cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h.  */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
10074/* end confdefs.h.  */
10075#include <stdlib.h>
10076#include <stdarg.h>
10077#include <string.h>
10078#include <float.h>
10079
10080int
10081main ()
10082{
10083
10084  ;
10085  return 0;
10086}
10087_ACEOF
10088rm -f conftest.$ac_objext
10089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090  (eval $ac_compile) 2>conftest.er1
10091  ac_status=$?
10092  grep -v '^ *+' conftest.er1 >conftest.err
10093  rm -f conftest.er1
10094  cat conftest.err >&5
10095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096  (exit $ac_status); } &&
10097	 { ac_try='test -z "$ac_c_werror_flag"
10098			 || test ! -s conftest.err'
10099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100  (eval $ac_try) 2>&5
10101  ac_status=$?
10102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103  (exit $ac_status); }; } &&
10104	 { ac_try='test -s conftest.$ac_objext'
10105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106  (eval $ac_try) 2>&5
10107  ac_status=$?
10108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109  (exit $ac_status); }; }; then
10110  ac_cv_header_stdc=yes
10111else
10112  echo "$as_me: failed program was:" >&5
10113sed 's/^/| /' conftest.$ac_ext >&5
10114
10115ac_cv_header_stdc=no
10116fi
10117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10118
10119if test $ac_cv_header_stdc = yes; then
10120  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10121  cat >conftest.$ac_ext <<_ACEOF
10122/* confdefs.h.  */
10123_ACEOF
10124cat confdefs.h >>conftest.$ac_ext
10125cat >>conftest.$ac_ext <<_ACEOF
10126/* end confdefs.h.  */
10127#include <string.h>
10128
10129_ACEOF
10130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10131  $EGREP "memchr" >/dev/null 2>&1; then
10132  :
10133else
10134  ac_cv_header_stdc=no
10135fi
10136rm -f conftest*
10137
10138fi
10139
10140if test $ac_cv_header_stdc = yes; then
10141  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10142  cat >conftest.$ac_ext <<_ACEOF
10143/* confdefs.h.  */
10144_ACEOF
10145cat confdefs.h >>conftest.$ac_ext
10146cat >>conftest.$ac_ext <<_ACEOF
10147/* end confdefs.h.  */
10148#include <stdlib.h>
10149
10150_ACEOF
10151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10152  $EGREP "free" >/dev/null 2>&1; then
10153  :
10154else
10155  ac_cv_header_stdc=no
10156fi
10157rm -f conftest*
10158
10159fi
10160
10161if test $ac_cv_header_stdc = yes; then
10162  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10163  if test "$cross_compiling" = yes; then
10164  :
10165else
10166  cat >conftest.$ac_ext <<_ACEOF
10167/* confdefs.h.  */
10168_ACEOF
10169cat confdefs.h >>conftest.$ac_ext
10170cat >>conftest.$ac_ext <<_ACEOF
10171/* end confdefs.h.  */
10172#include <ctype.h>
10173#if ((' ' & 0x0FF) == 0x020)
10174# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10175# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10176#else
10177# define ISLOWER(c) \
10178		   (('a' <= (c) && (c) <= 'i') \
10179		     || ('j' <= (c) && (c) <= 'r') \
10180		     || ('s' <= (c) && (c) <= 'z'))
10181# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10182#endif
10183
10184#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10185int
10186main ()
10187{
10188  int i;
10189  for (i = 0; i < 256; i++)
10190    if (XOR (islower (i), ISLOWER (i))
10191	|| toupper (i) != TOUPPER (i))
10192      exit(2);
10193  exit (0);
10194}
10195_ACEOF
10196rm -f conftest$ac_exeext
10197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10198  (eval $ac_link) 2>&5
10199  ac_status=$?
10200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203  (eval $ac_try) 2>&5
10204  ac_status=$?
10205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206  (exit $ac_status); }; }; then
10207  :
10208else
10209  echo "$as_me: program exited with status $ac_status" >&5
10210echo "$as_me: failed program was:" >&5
10211sed 's/^/| /' conftest.$ac_ext >&5
10212
10213( exit $ac_status )
10214ac_cv_header_stdc=no
10215fi
10216rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10217fi
10218fi
10219fi
10220echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10221echo "${ECHO_T}$ac_cv_header_stdc" >&6
10222if test $ac_cv_header_stdc = yes; then
10223
10224cat >>confdefs.h <<\_ACEOF
10225#define STDC_HEADERS 1
10226_ACEOF
10227
10228fi
10229
10230echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10231echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10232if test "${ac_cv_header_sys_wait_h+set}" = set; then
10233  echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235  cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h.  */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h.  */
10241#include <sys/types.h>
10242#include <sys/wait.h>
10243#ifndef WEXITSTATUS
10244# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10245#endif
10246#ifndef WIFEXITED
10247# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10248#endif
10249
10250int
10251main ()
10252{
10253  int s;
10254  wait (&s);
10255  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10256  ;
10257  return 0;
10258}
10259_ACEOF
10260rm -f conftest.$ac_objext
10261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262  (eval $ac_compile) 2>conftest.er1
10263  ac_status=$?
10264  grep -v '^ *+' conftest.er1 >conftest.err
10265  rm -f conftest.er1
10266  cat conftest.err >&5
10267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268  (exit $ac_status); } &&
10269	 { ac_try='test -z "$ac_c_werror_flag"
10270			 || test ! -s conftest.err'
10271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272  (eval $ac_try) 2>&5
10273  ac_status=$?
10274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275  (exit $ac_status); }; } &&
10276	 { ac_try='test -s conftest.$ac_objext'
10277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278  (eval $ac_try) 2>&5
10279  ac_status=$?
10280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281  (exit $ac_status); }; }; then
10282  ac_cv_header_sys_wait_h=yes
10283else
10284  echo "$as_me: failed program was:" >&5
10285sed 's/^/| /' conftest.$ac_ext >&5
10286
10287ac_cv_header_sys_wait_h=no
10288fi
10289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10290fi
10291echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10292echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10293if test $ac_cv_header_sys_wait_h = yes; then
10294
10295cat >>confdefs.h <<\_ACEOF
10296#define HAVE_SYS_WAIT_H 1
10297_ACEOF
10298
10299fi
10300
10301
10302if test $ac_cv_header_sys_wait_h = no; then
10303  echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10304echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10305  cat >conftest.$ac_ext <<_ACEOF
10306/* confdefs.h.  */
10307_ACEOF
10308cat confdefs.h >>conftest.$ac_ext
10309cat >>conftest.$ac_ext <<_ACEOF
10310/* end confdefs.h.  */
10311#include <sys/wait.h>
10312int
10313main ()
10314{
10315union wait xx, yy; xx = yy
10316  ;
10317  return 0;
10318}
10319_ACEOF
10320rm -f conftest.$ac_objext
10321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322  (eval $ac_compile) 2>conftest.er1
10323  ac_status=$?
10324  grep -v '^ *+' conftest.er1 >conftest.err
10325  rm -f conftest.er1
10326  cat conftest.err >&5
10327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328  (exit $ac_status); } &&
10329	 { ac_try='test -z "$ac_c_werror_flag"
10330			 || test ! -s conftest.err'
10331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332  (eval $ac_try) 2>&5
10333  ac_status=$?
10334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335  (exit $ac_status); }; } &&
10336	 { ac_try='test -s conftest.$ac_objext'
10337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338  (eval $ac_try) 2>&5
10339  ac_status=$?
10340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341  (exit $ac_status); }; }; then
10342  echo "$as_me:$LINENO: result: yes" >&5
10343echo "${ECHO_T}yes" >&6
10344			cat >>confdefs.h <<\_ACEOF
10345#define HAVE_SYS_WAIT_H 1
10346_ACEOF
10347
10348			cat >>confdefs.h <<\_ACEOF
10349#define HAVE_UNION_WAIT 1
10350_ACEOF
10351
10352else
10353  echo "$as_me: failed program was:" >&5
10354sed 's/^/| /' conftest.$ac_ext >&5
10355
10356echo "$as_me:$LINENO: result: no" >&5
10357echo "${ECHO_T}no" >&6
10358fi
10359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10360fi
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10404	termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10405	iconv.h langinfo.h unistd.h stropts.h errno.h \
10406	sys/resource.h sys/systeminfo.h locale.h \
10407	sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10408	poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10409	libgen.h util/debug.h util/msg18n.h frame.h \
10410	sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10411do
10412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10413if eval "test \"\${$as_ac_Header+set}\" = set"; then
10414  echo "$as_me:$LINENO: checking for $ac_header" >&5
10415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10416if eval "test \"\${$as_ac_Header+set}\" = set"; then
10417  echo $ECHO_N "(cached) $ECHO_C" >&6
10418fi
10419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10421else
10422  # Is the header compilable?
10423echo "$as_me:$LINENO: checking $ac_header usability" >&5
10424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10425cat >conftest.$ac_ext <<_ACEOF
10426/* confdefs.h.  */
10427_ACEOF
10428cat confdefs.h >>conftest.$ac_ext
10429cat >>conftest.$ac_ext <<_ACEOF
10430/* end confdefs.h.  */
10431$ac_includes_default
10432#include <$ac_header>
10433_ACEOF
10434rm -f conftest.$ac_objext
10435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436  (eval $ac_compile) 2>conftest.er1
10437  ac_status=$?
10438  grep -v '^ *+' conftest.er1 >conftest.err
10439  rm -f conftest.er1
10440  cat conftest.err >&5
10441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442  (exit $ac_status); } &&
10443	 { ac_try='test -z "$ac_c_werror_flag"
10444			 || test ! -s conftest.err'
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); }; } &&
10450	 { ac_try='test -s conftest.$ac_objext'
10451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452  (eval $ac_try) 2>&5
10453  ac_status=$?
10454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455  (exit $ac_status); }; }; then
10456  ac_header_compiler=yes
10457else
10458  echo "$as_me: failed program was:" >&5
10459sed 's/^/| /' conftest.$ac_ext >&5
10460
10461ac_header_compiler=no
10462fi
10463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10465echo "${ECHO_T}$ac_header_compiler" >&6
10466
10467# Is the header present?
10468echo "$as_me:$LINENO: checking $ac_header presence" >&5
10469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10470cat >conftest.$ac_ext <<_ACEOF
10471/* confdefs.h.  */
10472_ACEOF
10473cat confdefs.h >>conftest.$ac_ext
10474cat >>conftest.$ac_ext <<_ACEOF
10475/* end confdefs.h.  */
10476#include <$ac_header>
10477_ACEOF
10478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10479  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10480  ac_status=$?
10481  grep -v '^ *+' conftest.er1 >conftest.err
10482  rm -f conftest.er1
10483  cat conftest.err >&5
10484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485  (exit $ac_status); } >/dev/null; then
10486  if test -s conftest.err; then
10487    ac_cpp_err=$ac_c_preproc_warn_flag
10488    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10489  else
10490    ac_cpp_err=
10491  fi
10492else
10493  ac_cpp_err=yes
10494fi
10495if test -z "$ac_cpp_err"; then
10496  ac_header_preproc=yes
10497else
10498  echo "$as_me: failed program was:" >&5
10499sed 's/^/| /' conftest.$ac_ext >&5
10500
10501  ac_header_preproc=no
10502fi
10503rm -f conftest.err conftest.$ac_ext
10504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10505echo "${ECHO_T}$ac_header_preproc" >&6
10506
10507# So?  What about this header?
10508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10509  yes:no: )
10510    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10512    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10514    ac_header_preproc=yes
10515    ;;
10516  no:yes:* )
10517    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10519    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10520echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10521    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10523    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10524echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10525    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10527    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10529    (
10530      cat <<\_ASBOX
10531## ------------------------------------------ ##
10532## Report this to the AC_PACKAGE_NAME lists.  ##
10533## ------------------------------------------ ##
10534_ASBOX
10535    ) |
10536      sed "s/^/$as_me: WARNING:     /" >&2
10537    ;;
10538esac
10539echo "$as_me:$LINENO: checking for $ac_header" >&5
10540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10541if eval "test \"\${$as_ac_Header+set}\" = set"; then
10542  echo $ECHO_N "(cached) $ECHO_C" >&6
10543else
10544  eval "$as_ac_Header=\$ac_header_preproc"
10545fi
10546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10548
10549fi
10550if test `eval echo '${'$as_ac_Header'}'` = yes; then
10551  cat >>confdefs.h <<_ACEOF
10552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10553_ACEOF
10554
10555fi
10556
10557done
10558
10559
10560echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10561echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10562cat >conftest.$ac_ext <<_ACEOF
10563/* confdefs.h.  */
10564_ACEOF
10565cat confdefs.h >>conftest.$ac_ext
10566cat >>conftest.$ac_ext <<_ACEOF
10567/* end confdefs.h.  */
10568
10569#include <pthread.h>
10570#include <pthread_np.h>
10571int
10572main ()
10573{
10574int i; i = 0;
10575  ;
10576  return 0;
10577}
10578_ACEOF
10579rm -f conftest.$ac_objext
10580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581  (eval $ac_compile) 2>conftest.er1
10582  ac_status=$?
10583  grep -v '^ *+' conftest.er1 >conftest.err
10584  rm -f conftest.er1
10585  cat conftest.err >&5
10586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587  (exit $ac_status); } &&
10588	 { ac_try='test -z "$ac_c_werror_flag"
10589			 || test ! -s conftest.err'
10590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591  (eval $ac_try) 2>&5
10592  ac_status=$?
10593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594  (exit $ac_status); }; } &&
10595	 { ac_try='test -s conftest.$ac_objext'
10596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597  (eval $ac_try) 2>&5
10598  ac_status=$?
10599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600  (exit $ac_status); }; }; then
10601  echo "$as_me:$LINENO: result: yes" >&5
10602echo "${ECHO_T}yes" >&6
10603		      cat >>confdefs.h <<\_ACEOF
10604#define HAVE_PTHREAD_NP_H 1
10605_ACEOF
10606
10607else
10608  echo "$as_me: failed program was:" >&5
10609sed 's/^/| /' conftest.$ac_ext >&5
10610
10611echo "$as_me:$LINENO: result: no" >&5
10612echo "${ECHO_T}no" >&6
10613fi
10614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10615
10616
10617for ac_header in strings.h
10618do
10619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10620if eval "test \"\${$as_ac_Header+set}\" = set"; then
10621  echo "$as_me:$LINENO: checking for $ac_header" >&5
10622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10623if eval "test \"\${$as_ac_Header+set}\" = set"; then
10624  echo $ECHO_N "(cached) $ECHO_C" >&6
10625fi
10626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10628else
10629  # Is the header compilable?
10630echo "$as_me:$LINENO: checking $ac_header usability" >&5
10631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10632cat >conftest.$ac_ext <<_ACEOF
10633/* confdefs.h.  */
10634_ACEOF
10635cat confdefs.h >>conftest.$ac_ext
10636cat >>conftest.$ac_ext <<_ACEOF
10637/* end confdefs.h.  */
10638$ac_includes_default
10639#include <$ac_header>
10640_ACEOF
10641rm -f conftest.$ac_objext
10642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643  (eval $ac_compile) 2>conftest.er1
10644  ac_status=$?
10645  grep -v '^ *+' conftest.er1 >conftest.err
10646  rm -f conftest.er1
10647  cat conftest.err >&5
10648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649  (exit $ac_status); } &&
10650	 { ac_try='test -z "$ac_c_werror_flag"
10651			 || test ! -s conftest.err'
10652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653  (eval $ac_try) 2>&5
10654  ac_status=$?
10655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656  (exit $ac_status); }; } &&
10657	 { ac_try='test -s conftest.$ac_objext'
10658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659  (eval $ac_try) 2>&5
10660  ac_status=$?
10661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662  (exit $ac_status); }; }; then
10663  ac_header_compiler=yes
10664else
10665  echo "$as_me: failed program was:" >&5
10666sed 's/^/| /' conftest.$ac_ext >&5
10667
10668ac_header_compiler=no
10669fi
10670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10672echo "${ECHO_T}$ac_header_compiler" >&6
10673
10674# Is the header present?
10675echo "$as_me:$LINENO: checking $ac_header presence" >&5
10676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10677cat >conftest.$ac_ext <<_ACEOF
10678/* confdefs.h.  */
10679_ACEOF
10680cat confdefs.h >>conftest.$ac_ext
10681cat >>conftest.$ac_ext <<_ACEOF
10682/* end confdefs.h.  */
10683#include <$ac_header>
10684_ACEOF
10685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10686  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10687  ac_status=$?
10688  grep -v '^ *+' conftest.er1 >conftest.err
10689  rm -f conftest.er1
10690  cat conftest.err >&5
10691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692  (exit $ac_status); } >/dev/null; then
10693  if test -s conftest.err; then
10694    ac_cpp_err=$ac_c_preproc_warn_flag
10695    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10696  else
10697    ac_cpp_err=
10698  fi
10699else
10700  ac_cpp_err=yes
10701fi
10702if test -z "$ac_cpp_err"; then
10703  ac_header_preproc=yes
10704else
10705  echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
10708  ac_header_preproc=no
10709fi
10710rm -f conftest.err conftest.$ac_ext
10711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10712echo "${ECHO_T}$ac_header_preproc" >&6
10713
10714# So?  What about this header?
10715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10716  yes:no: )
10717    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10719    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10721    ac_header_preproc=yes
10722    ;;
10723  no:yes:* )
10724    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10726    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10727echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10728    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10730    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10731echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10732    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10734    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10736    (
10737      cat <<\_ASBOX
10738## ------------------------------------------ ##
10739## Report this to the AC_PACKAGE_NAME lists.  ##
10740## ------------------------------------------ ##
10741_ASBOX
10742    ) |
10743      sed "s/^/$as_me: WARNING:     /" >&2
10744    ;;
10745esac
10746echo "$as_me:$LINENO: checking for $ac_header" >&5
10747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10748if eval "test \"\${$as_ac_Header+set}\" = set"; then
10749  echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751  eval "$as_ac_Header=\$ac_header_preproc"
10752fi
10753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10755
10756fi
10757if test `eval echo '${'$as_ac_Header'}'` = yes; then
10758  cat >>confdefs.h <<_ACEOF
10759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10760_ACEOF
10761
10762fi
10763
10764done
10765
10766if test "x$MACOSX" = "xyes"; then
10767    cat >>confdefs.h <<\_ACEOF
10768#define NO_STRINGS_WITH_STRING_H 1
10769_ACEOF
10770
10771else
10772
10773echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10774echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
10775cppflags_save=$CPPFLAGS
10776CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10777cat >conftest.$ac_ext <<_ACEOF
10778/* confdefs.h.  */
10779_ACEOF
10780cat confdefs.h >>conftest.$ac_ext
10781cat >>conftest.$ac_ext <<_ACEOF
10782/* end confdefs.h.  */
10783
10784#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10785# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
10786			/* but don't do it on AIX 5.1 (Uribarri) */
10787#endif
10788#ifdef HAVE_XM_XM_H
10789# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
10790#endif
10791#ifdef HAVE_STRING_H
10792# include <string.h>
10793#endif
10794#if defined(HAVE_STRINGS_H)
10795# include <strings.h>
10796#endif
10797
10798int
10799main ()
10800{
10801int i; i = 0;
10802  ;
10803  return 0;
10804}
10805_ACEOF
10806rm -f conftest.$ac_objext
10807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808  (eval $ac_compile) 2>conftest.er1
10809  ac_status=$?
10810  grep -v '^ *+' conftest.er1 >conftest.err
10811  rm -f conftest.er1
10812  cat conftest.err >&5
10813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814  (exit $ac_status); } &&
10815	 { ac_try='test -z "$ac_c_werror_flag"
10816			 || test ! -s conftest.err'
10817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818  (eval $ac_try) 2>&5
10819  ac_status=$?
10820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821  (exit $ac_status); }; } &&
10822	 { ac_try='test -s conftest.$ac_objext'
10823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824  (eval $ac_try) 2>&5
10825  ac_status=$?
10826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827  (exit $ac_status); }; }; then
10828  echo "$as_me:$LINENO: result: yes" >&5
10829echo "${ECHO_T}yes" >&6
10830else
10831  echo "$as_me: failed program was:" >&5
10832sed 's/^/| /' conftest.$ac_ext >&5
10833
10834cat >>confdefs.h <<\_ACEOF
10835#define NO_STRINGS_WITH_STRING_H 1
10836_ACEOF
10837
10838		echo "$as_me:$LINENO: result: no" >&5
10839echo "${ECHO_T}no" >&6
10840fi
10841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10842CPPFLAGS=$cppflags_save
10843fi
10844
10845if test $ac_cv_c_compiler_gnu = yes; then
10846    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10847echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10848if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10849  echo $ECHO_N "(cached) $ECHO_C" >&6
10850else
10851    ac_pattern="Autoconf.*'x'"
10852  cat >conftest.$ac_ext <<_ACEOF
10853/* confdefs.h.  */
10854_ACEOF
10855cat confdefs.h >>conftest.$ac_ext
10856cat >>conftest.$ac_ext <<_ACEOF
10857/* end confdefs.h.  */
10858#include <sgtty.h>
10859Autoconf TIOCGETP
10860_ACEOF
10861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10862  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10863  ac_cv_prog_gcc_traditional=yes
10864else
10865  ac_cv_prog_gcc_traditional=no
10866fi
10867rm -f conftest*
10868
10869
10870  if test $ac_cv_prog_gcc_traditional = no; then
10871    cat >conftest.$ac_ext <<_ACEOF
10872/* confdefs.h.  */
10873_ACEOF
10874cat confdefs.h >>conftest.$ac_ext
10875cat >>conftest.$ac_ext <<_ACEOF
10876/* end confdefs.h.  */
10877#include <termio.h>
10878Autoconf TCGETA
10879_ACEOF
10880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10881  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10882  ac_cv_prog_gcc_traditional=yes
10883fi
10884rm -f conftest*
10885
10886  fi
10887fi
10888echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10889echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10890  if test $ac_cv_prog_gcc_traditional = yes; then
10891    CC="$CC -traditional"
10892  fi
10893fi
10894
10895echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10896echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10897if test "${ac_cv_c_const+set}" = set; then
10898  echo $ECHO_N "(cached) $ECHO_C" >&6
10899else
10900  cat >conftest.$ac_ext <<_ACEOF
10901/* confdefs.h.  */
10902_ACEOF
10903cat confdefs.h >>conftest.$ac_ext
10904cat >>conftest.$ac_ext <<_ACEOF
10905/* end confdefs.h.  */
10906
10907int
10908main ()
10909{
10910/* FIXME: Include the comments suggested by Paul. */
10911#ifndef __cplusplus
10912  /* Ultrix mips cc rejects this.  */
10913  typedef int charset[2];
10914  const charset x;
10915  /* SunOS 4.1.1 cc rejects this.  */
10916  char const *const *ccp;
10917  char **p;
10918  /* NEC SVR4.0.2 mips cc rejects this.  */
10919  struct point {int x, y;};
10920  static struct point const zero = {0,0};
10921  /* AIX XL C 1.02.0.0 rejects this.
10922     It does not let you subtract one const X* pointer from another in
10923     an arm of an if-expression whose if-part is not a constant
10924     expression */
10925  const char *g = "string";
10926  ccp = &g + (g ? g-g : 0);
10927  /* HPUX 7.0 cc rejects these. */
10928  ++ccp;
10929  p = (char**) ccp;
10930  ccp = (char const *const *) p;
10931  { /* SCO 3.2v4 cc rejects this.  */
10932    char *t;
10933    char const *s = 0 ? (char *) 0 : (char const *) 0;
10934
10935    *t++ = 0;
10936  }
10937  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10938    int x[] = {25, 17};
10939    const int *foo = &x[0];
10940    ++foo;
10941  }
10942  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10943    typedef const int *iptr;
10944    iptr p = 0;
10945    ++p;
10946  }
10947  { /* AIX XL C 1.02.0.0 rejects this saying
10948       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10949    struct s { int j; const int *ap[3]; };
10950    struct s *b; b->j = 5;
10951  }
10952  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10953    const int foo = 10;
10954  }
10955#endif
10956
10957  ;
10958  return 0;
10959}
10960_ACEOF
10961rm -f conftest.$ac_objext
10962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10963  (eval $ac_compile) 2>conftest.er1
10964  ac_status=$?
10965  grep -v '^ *+' conftest.er1 >conftest.err
10966  rm -f conftest.er1
10967  cat conftest.err >&5
10968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969  (exit $ac_status); } &&
10970	 { ac_try='test -z "$ac_c_werror_flag"
10971			 || test ! -s conftest.err'
10972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973  (eval $ac_try) 2>&5
10974  ac_status=$?
10975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976  (exit $ac_status); }; } &&
10977	 { ac_try='test -s conftest.$ac_objext'
10978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979  (eval $ac_try) 2>&5
10980  ac_status=$?
10981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982  (exit $ac_status); }; }; then
10983  ac_cv_c_const=yes
10984else
10985  echo "$as_me: failed program was:" >&5
10986sed 's/^/| /' conftest.$ac_ext >&5
10987
10988ac_cv_c_const=no
10989fi
10990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10991fi
10992echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10993echo "${ECHO_T}$ac_cv_c_const" >&6
10994if test $ac_cv_c_const = no; then
10995
10996cat >>confdefs.h <<\_ACEOF
10997#define const
10998_ACEOF
10999
11000fi
11001
11002echo "$as_me:$LINENO: checking for mode_t" >&5
11003echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11004if test "${ac_cv_type_mode_t+set}" = set; then
11005  echo $ECHO_N "(cached) $ECHO_C" >&6
11006else
11007  cat >conftest.$ac_ext <<_ACEOF
11008/* confdefs.h.  */
11009_ACEOF
11010cat confdefs.h >>conftest.$ac_ext
11011cat >>conftest.$ac_ext <<_ACEOF
11012/* end confdefs.h.  */
11013$ac_includes_default
11014int
11015main ()
11016{
11017if ((mode_t *) 0)
11018  return 0;
11019if (sizeof (mode_t))
11020  return 0;
11021  ;
11022  return 0;
11023}
11024_ACEOF
11025rm -f conftest.$ac_objext
11026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11027  (eval $ac_compile) 2>conftest.er1
11028  ac_status=$?
11029  grep -v '^ *+' conftest.er1 >conftest.err
11030  rm -f conftest.er1
11031  cat conftest.err >&5
11032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033  (exit $ac_status); } &&
11034	 { ac_try='test -z "$ac_c_werror_flag"
11035			 || test ! -s conftest.err'
11036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11037  (eval $ac_try) 2>&5
11038  ac_status=$?
11039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040  (exit $ac_status); }; } &&
11041	 { ac_try='test -s conftest.$ac_objext'
11042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043  (eval $ac_try) 2>&5
11044  ac_status=$?
11045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046  (exit $ac_status); }; }; then
11047  ac_cv_type_mode_t=yes
11048else
11049  echo "$as_me: failed program was:" >&5
11050sed 's/^/| /' conftest.$ac_ext >&5
11051
11052ac_cv_type_mode_t=no
11053fi
11054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11055fi
11056echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11057echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11058if test $ac_cv_type_mode_t = yes; then
11059  :
11060else
11061
11062cat >>confdefs.h <<_ACEOF
11063#define mode_t int
11064_ACEOF
11065
11066fi
11067
11068echo "$as_me:$LINENO: checking for off_t" >&5
11069echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11070if test "${ac_cv_type_off_t+set}" = set; then
11071  echo $ECHO_N "(cached) $ECHO_C" >&6
11072else
11073  cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h.  */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
11078/* end confdefs.h.  */
11079$ac_includes_default
11080int
11081main ()
11082{
11083if ((off_t *) 0)
11084  return 0;
11085if (sizeof (off_t))
11086  return 0;
11087  ;
11088  return 0;
11089}
11090_ACEOF
11091rm -f conftest.$ac_objext
11092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11093  (eval $ac_compile) 2>conftest.er1
11094  ac_status=$?
11095  grep -v '^ *+' conftest.er1 >conftest.err
11096  rm -f conftest.er1
11097  cat conftest.err >&5
11098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099  (exit $ac_status); } &&
11100	 { ac_try='test -z "$ac_c_werror_flag"
11101			 || test ! -s conftest.err'
11102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103  (eval $ac_try) 2>&5
11104  ac_status=$?
11105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106  (exit $ac_status); }; } &&
11107	 { ac_try='test -s conftest.$ac_objext'
11108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109  (eval $ac_try) 2>&5
11110  ac_status=$?
11111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112  (exit $ac_status); }; }; then
11113  ac_cv_type_off_t=yes
11114else
11115  echo "$as_me: failed program was:" >&5
11116sed 's/^/| /' conftest.$ac_ext >&5
11117
11118ac_cv_type_off_t=no
11119fi
11120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11121fi
11122echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11123echo "${ECHO_T}$ac_cv_type_off_t" >&6
11124if test $ac_cv_type_off_t = yes; then
11125  :
11126else
11127
11128cat >>confdefs.h <<_ACEOF
11129#define off_t long
11130_ACEOF
11131
11132fi
11133
11134echo "$as_me:$LINENO: checking for pid_t" >&5
11135echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11136if test "${ac_cv_type_pid_t+set}" = set; then
11137  echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
11139  cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h.  */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h.  */
11145$ac_includes_default
11146int
11147main ()
11148{
11149if ((pid_t *) 0)
11150  return 0;
11151if (sizeof (pid_t))
11152  return 0;
11153  ;
11154  return 0;
11155}
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159  (eval $ac_compile) 2>conftest.er1
11160  ac_status=$?
11161  grep -v '^ *+' conftest.er1 >conftest.err
11162  rm -f conftest.er1
11163  cat conftest.err >&5
11164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165  (exit $ac_status); } &&
11166	 { ac_try='test -z "$ac_c_werror_flag"
11167			 || test ! -s conftest.err'
11168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169  (eval $ac_try) 2>&5
11170  ac_status=$?
11171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172  (exit $ac_status); }; } &&
11173	 { ac_try='test -s conftest.$ac_objext'
11174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175  (eval $ac_try) 2>&5
11176  ac_status=$?
11177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178  (exit $ac_status); }; }; then
11179  ac_cv_type_pid_t=yes
11180else
11181  echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
11184ac_cv_type_pid_t=no
11185fi
11186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11187fi
11188echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11189echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11190if test $ac_cv_type_pid_t = yes; then
11191  :
11192else
11193
11194cat >>confdefs.h <<_ACEOF
11195#define pid_t int
11196_ACEOF
11197
11198fi
11199
11200echo "$as_me:$LINENO: checking for size_t" >&5
11201echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11202if test "${ac_cv_type_size_t+set}" = set; then
11203  echo $ECHO_N "(cached) $ECHO_C" >&6
11204else
11205  cat >conftest.$ac_ext <<_ACEOF
11206/* confdefs.h.  */
11207_ACEOF
11208cat confdefs.h >>conftest.$ac_ext
11209cat >>conftest.$ac_ext <<_ACEOF
11210/* end confdefs.h.  */
11211$ac_includes_default
11212int
11213main ()
11214{
11215if ((size_t *) 0)
11216  return 0;
11217if (sizeof (size_t))
11218  return 0;
11219  ;
11220  return 0;
11221}
11222_ACEOF
11223rm -f conftest.$ac_objext
11224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225  (eval $ac_compile) 2>conftest.er1
11226  ac_status=$?
11227  grep -v '^ *+' conftest.er1 >conftest.err
11228  rm -f conftest.er1
11229  cat conftest.err >&5
11230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231  (exit $ac_status); } &&
11232	 { ac_try='test -z "$ac_c_werror_flag"
11233			 || test ! -s conftest.err'
11234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235  (eval $ac_try) 2>&5
11236  ac_status=$?
11237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238  (exit $ac_status); }; } &&
11239	 { ac_try='test -s conftest.$ac_objext'
11240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241  (eval $ac_try) 2>&5
11242  ac_status=$?
11243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244  (exit $ac_status); }; }; then
11245  ac_cv_type_size_t=yes
11246else
11247  echo "$as_me: failed program was:" >&5
11248sed 's/^/| /' conftest.$ac_ext >&5
11249
11250ac_cv_type_size_t=no
11251fi
11252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11253fi
11254echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11255echo "${ECHO_T}$ac_cv_type_size_t" >&6
11256if test $ac_cv_type_size_t = yes; then
11257  :
11258else
11259
11260cat >>confdefs.h <<_ACEOF
11261#define size_t unsigned
11262_ACEOF
11263
11264fi
11265
11266echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11267echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11268if test "${ac_cv_type_uid_t+set}" = set; then
11269  echo $ECHO_N "(cached) $ECHO_C" >&6
11270else
11271  cat >conftest.$ac_ext <<_ACEOF
11272/* confdefs.h.  */
11273_ACEOF
11274cat confdefs.h >>conftest.$ac_ext
11275cat >>conftest.$ac_ext <<_ACEOF
11276/* end confdefs.h.  */
11277#include <sys/types.h>
11278
11279_ACEOF
11280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11281  $EGREP "uid_t" >/dev/null 2>&1; then
11282  ac_cv_type_uid_t=yes
11283else
11284  ac_cv_type_uid_t=no
11285fi
11286rm -f conftest*
11287
11288fi
11289echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11290echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11291if test $ac_cv_type_uid_t = no; then
11292
11293cat >>confdefs.h <<\_ACEOF
11294#define uid_t int
11295_ACEOF
11296
11297
11298cat >>confdefs.h <<\_ACEOF
11299#define gid_t int
11300_ACEOF
11301
11302fi
11303
11304echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11305echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11306if test "${ac_cv_header_time+set}" = set; then
11307  echo $ECHO_N "(cached) $ECHO_C" >&6
11308else
11309  cat >conftest.$ac_ext <<_ACEOF
11310/* confdefs.h.  */
11311_ACEOF
11312cat confdefs.h >>conftest.$ac_ext
11313cat >>conftest.$ac_ext <<_ACEOF
11314/* end confdefs.h.  */
11315#include <sys/types.h>
11316#include <sys/time.h>
11317#include <time.h>
11318
11319int
11320main ()
11321{
11322if ((struct tm *) 0)
11323return 0;
11324  ;
11325  return 0;
11326}
11327_ACEOF
11328rm -f conftest.$ac_objext
11329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330  (eval $ac_compile) 2>conftest.er1
11331  ac_status=$?
11332  grep -v '^ *+' conftest.er1 >conftest.err
11333  rm -f conftest.er1
11334  cat conftest.err >&5
11335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336  (exit $ac_status); } &&
11337	 { ac_try='test -z "$ac_c_werror_flag"
11338			 || test ! -s conftest.err'
11339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340  (eval $ac_try) 2>&5
11341  ac_status=$?
11342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343  (exit $ac_status); }; } &&
11344	 { ac_try='test -s conftest.$ac_objext'
11345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346  (eval $ac_try) 2>&5
11347  ac_status=$?
11348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349  (exit $ac_status); }; }; then
11350  ac_cv_header_time=yes
11351else
11352  echo "$as_me: failed program was:" >&5
11353sed 's/^/| /' conftest.$ac_ext >&5
11354
11355ac_cv_header_time=no
11356fi
11357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11358fi
11359echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11360echo "${ECHO_T}$ac_cv_header_time" >&6
11361if test $ac_cv_header_time = yes; then
11362
11363cat >>confdefs.h <<\_ACEOF
11364#define TIME_WITH_SYS_TIME 1
11365_ACEOF
11366
11367fi
11368
11369echo "$as_me:$LINENO: checking for ino_t" >&5
11370echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11371if test "${ac_cv_type_ino_t+set}" = set; then
11372  echo $ECHO_N "(cached) $ECHO_C" >&6
11373else
11374  cat >conftest.$ac_ext <<_ACEOF
11375/* confdefs.h.  */
11376_ACEOF
11377cat confdefs.h >>conftest.$ac_ext
11378cat >>conftest.$ac_ext <<_ACEOF
11379/* end confdefs.h.  */
11380$ac_includes_default
11381int
11382main ()
11383{
11384if ((ino_t *) 0)
11385  return 0;
11386if (sizeof (ino_t))
11387  return 0;
11388  ;
11389  return 0;
11390}
11391_ACEOF
11392rm -f conftest.$ac_objext
11393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394  (eval $ac_compile) 2>conftest.er1
11395  ac_status=$?
11396  grep -v '^ *+' conftest.er1 >conftest.err
11397  rm -f conftest.er1
11398  cat conftest.err >&5
11399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400  (exit $ac_status); } &&
11401	 { ac_try='test -z "$ac_c_werror_flag"
11402			 || test ! -s conftest.err'
11403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404  (eval $ac_try) 2>&5
11405  ac_status=$?
11406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407  (exit $ac_status); }; } &&
11408	 { ac_try='test -s conftest.$ac_objext'
11409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410  (eval $ac_try) 2>&5
11411  ac_status=$?
11412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413  (exit $ac_status); }; }; then
11414  ac_cv_type_ino_t=yes
11415else
11416  echo "$as_me: failed program was:" >&5
11417sed 's/^/| /' conftest.$ac_ext >&5
11418
11419ac_cv_type_ino_t=no
11420fi
11421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11422fi
11423echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11424echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11425if test $ac_cv_type_ino_t = yes; then
11426  :
11427else
11428
11429cat >>confdefs.h <<_ACEOF
11430#define ino_t long
11431_ACEOF
11432
11433fi
11434
11435echo "$as_me:$LINENO: checking for dev_t" >&5
11436echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11437if test "${ac_cv_type_dev_t+set}" = set; then
11438  echo $ECHO_N "(cached) $ECHO_C" >&6
11439else
11440  cat >conftest.$ac_ext <<_ACEOF
11441/* confdefs.h.  */
11442_ACEOF
11443cat confdefs.h >>conftest.$ac_ext
11444cat >>conftest.$ac_ext <<_ACEOF
11445/* end confdefs.h.  */
11446$ac_includes_default
11447int
11448main ()
11449{
11450if ((dev_t *) 0)
11451  return 0;
11452if (sizeof (dev_t))
11453  return 0;
11454  ;
11455  return 0;
11456}
11457_ACEOF
11458rm -f conftest.$ac_objext
11459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460  (eval $ac_compile) 2>conftest.er1
11461  ac_status=$?
11462  grep -v '^ *+' conftest.er1 >conftest.err
11463  rm -f conftest.er1
11464  cat conftest.err >&5
11465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466  (exit $ac_status); } &&
11467	 { ac_try='test -z "$ac_c_werror_flag"
11468			 || test ! -s conftest.err'
11469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470  (eval $ac_try) 2>&5
11471  ac_status=$?
11472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473  (exit $ac_status); }; } &&
11474	 { ac_try='test -s conftest.$ac_objext'
11475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476  (eval $ac_try) 2>&5
11477  ac_status=$?
11478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479  (exit $ac_status); }; }; then
11480  ac_cv_type_dev_t=yes
11481else
11482  echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
11485ac_cv_type_dev_t=no
11486fi
11487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11488fi
11489echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11490echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11491if test $ac_cv_type_dev_t = yes; then
11492  :
11493else
11494
11495cat >>confdefs.h <<_ACEOF
11496#define dev_t unsigned
11497_ACEOF
11498
11499fi
11500
11501
11502echo "$as_me:$LINENO: checking for rlim_t" >&5
11503echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11504if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11505  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11506echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11507else
11508  cat >conftest.$ac_ext <<_ACEOF
11509/* confdefs.h.  */
11510_ACEOF
11511cat confdefs.h >>conftest.$ac_ext
11512cat >>conftest.$ac_ext <<_ACEOF
11513/* end confdefs.h.  */
11514
11515#include <sys/types.h>
11516#if STDC_HEADERS
11517#include <stdlib.h>
11518#include <stddef.h>
11519#endif
11520#ifdef HAVE_SYS_RESOURCE_H
11521#include <sys/resource.h>
11522#endif
11523
11524_ACEOF
11525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11526  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11527  ac_cv_type_rlim_t=yes
11528else
11529  ac_cv_type_rlim_t=no
11530fi
11531rm -f conftest*
11532
11533	  echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11534echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
11535fi
11536if test $ac_cv_type_rlim_t = no; then
11537  cat >> confdefs.h <<\EOF
11538#define rlim_t unsigned long
11539EOF
11540fi
11541
11542echo "$as_me:$LINENO: checking for stack_t" >&5
11543echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11544if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11545  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11546echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
11547else
11548  cat >conftest.$ac_ext <<_ACEOF
11549/* confdefs.h.  */
11550_ACEOF
11551cat confdefs.h >>conftest.$ac_ext
11552cat >>conftest.$ac_ext <<_ACEOF
11553/* end confdefs.h.  */
11554
11555#include <sys/types.h>
11556#if STDC_HEADERS
11557#include <stdlib.h>
11558#include <stddef.h>
11559#endif
11560#include <signal.h>
11561
11562_ACEOF
11563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11564  $EGREP "stack_t" >/dev/null 2>&1; then
11565  ac_cv_type_stack_t=yes
11566else
11567  ac_cv_type_stack_t=no
11568fi
11569rm -f conftest*
11570
11571	  echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11572echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11573fi
11574if test $ac_cv_type_stack_t = no; then
11575  cat >> confdefs.h <<\EOF
11576#define stack_t struct sigaltstack
11577EOF
11578fi
11579
11580echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11581echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11582cat >conftest.$ac_ext <<_ACEOF
11583/* confdefs.h.  */
11584_ACEOF
11585cat confdefs.h >>conftest.$ac_ext
11586cat >>conftest.$ac_ext <<_ACEOF
11587/* end confdefs.h.  */
11588
11589#include <sys/types.h>
11590#if STDC_HEADERS
11591#include <stdlib.h>
11592#include <stddef.h>
11593#endif
11594#include <signal.h>
11595#include "confdefs.h"
11596
11597int
11598main ()
11599{
11600stack_t sigstk; sigstk.ss_base = 0;
11601  ;
11602  return 0;
11603}
11604_ACEOF
11605rm -f conftest.$ac_objext
11606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11607  (eval $ac_compile) 2>conftest.er1
11608  ac_status=$?
11609  grep -v '^ *+' conftest.er1 >conftest.err
11610  rm -f conftest.er1
11611  cat conftest.err >&5
11612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613  (exit $ac_status); } &&
11614	 { ac_try='test -z "$ac_c_werror_flag"
11615			 || test ! -s conftest.err'
11616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617  (eval $ac_try) 2>&5
11618  ac_status=$?
11619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620  (exit $ac_status); }; } &&
11621	 { ac_try='test -s conftest.$ac_objext'
11622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623  (eval $ac_try) 2>&5
11624  ac_status=$?
11625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626  (exit $ac_status); }; }; then
11627  echo "$as_me:$LINENO: result: yes" >&5
11628echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11629#define HAVE_SS_BASE 1
11630_ACEOF
11631
11632else
11633  echo "$as_me: failed program was:" >&5
11634sed 's/^/| /' conftest.$ac_ext >&5
11635
11636echo "$as_me:$LINENO: result: no" >&5
11637echo "${ECHO_T}no" >&6
11638fi
11639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11640
11641olibs="$LIBS"
11642echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11643echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11644
11645# Check whether --with-tlib or --without-tlib was given.
11646if test "${with_tlib+set}" = set; then
11647  withval="$with_tlib"
11648
11649fi;
11650if test -n "$with_tlib"; then
11651  echo "$as_me:$LINENO: result: $with_tlib" >&5
11652echo "${ECHO_T}$with_tlib" >&6
11653  LIBS="$LIBS -l$with_tlib"
11654  echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11655echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11656  cat >conftest.$ac_ext <<_ACEOF
11657/* confdefs.h.  */
11658_ACEOF
11659cat confdefs.h >>conftest.$ac_ext
11660cat >>conftest.$ac_ext <<_ACEOF
11661/* end confdefs.h.  */
11662
11663int
11664main ()
11665{
11666
11667  ;
11668  return 0;
11669}
11670_ACEOF
11671rm -f conftest.$ac_objext conftest$ac_exeext
11672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673  (eval $ac_link) 2>conftest.er1
11674  ac_status=$?
11675  grep -v '^ *+' conftest.er1 >conftest.err
11676  rm -f conftest.er1
11677  cat conftest.err >&5
11678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679  (exit $ac_status); } &&
11680	 { ac_try='test -z "$ac_c_werror_flag"
11681			 || test ! -s conftest.err'
11682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683  (eval $ac_try) 2>&5
11684  ac_status=$?
11685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686  (exit $ac_status); }; } &&
11687	 { ac_try='test -s conftest$ac_exeext'
11688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689  (eval $ac_try) 2>&5
11690  ac_status=$?
11691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692  (exit $ac_status); }; }; then
11693  echo "$as_me:$LINENO: result: OK" >&5
11694echo "${ECHO_T}OK" >&6
11695else
11696  echo "$as_me: failed program was:" >&5
11697sed 's/^/| /' conftest.$ac_ext >&5
11698
11699{ { echo "$as_me:$LINENO: error: FAILED" >&5
11700echo "$as_me: error: FAILED" >&2;}
11701   { (exit 1); exit 1; }; }
11702fi
11703rm -f conftest.err conftest.$ac_objext \
11704      conftest$ac_exeext conftest.$ac_ext
11705    olibs="$LIBS"
11706else
11707  echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11708echo "${ECHO_T}empty: automatic terminal library selection" >&6
11709              case "`uname -s 2>/dev/null`" in
11710	OSF1|SCO_SV)	tlibs="ncurses curses termlib termcap";;
11711	*)	tlibs="ncurses termlib termcap curses";;
11712  esac
11713  for libname in $tlibs; do
11714
11715as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11716echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11717echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11718if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11719  echo $ECHO_N "(cached) $ECHO_C" >&6
11720else
11721  ac_check_lib_save_LIBS=$LIBS
11722LIBS="-l${libname}  $LIBS"
11723cat >conftest.$ac_ext <<_ACEOF
11724/* confdefs.h.  */
11725_ACEOF
11726cat confdefs.h >>conftest.$ac_ext
11727cat >>conftest.$ac_ext <<_ACEOF
11728/* end confdefs.h.  */
11729
11730/* Override any gcc2 internal prototype to avoid an error.  */
11731#ifdef __cplusplus
11732extern "C"
11733#endif
11734/* We use char because int might match the return type of a gcc2
11735   builtin and then its argument prototype would still apply.  */
11736char tgetent ();
11737int
11738main ()
11739{
11740tgetent ();
11741  ;
11742  return 0;
11743}
11744_ACEOF
11745rm -f conftest.$ac_objext conftest$ac_exeext
11746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11747  (eval $ac_link) 2>conftest.er1
11748  ac_status=$?
11749  grep -v '^ *+' conftest.er1 >conftest.err
11750  rm -f conftest.er1
11751  cat conftest.err >&5
11752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753  (exit $ac_status); } &&
11754	 { ac_try='test -z "$ac_c_werror_flag"
11755			 || test ! -s conftest.err'
11756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757  (eval $ac_try) 2>&5
11758  ac_status=$?
11759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760  (exit $ac_status); }; } &&
11761	 { ac_try='test -s conftest$ac_exeext'
11762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763  (eval $ac_try) 2>&5
11764  ac_status=$?
11765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766  (exit $ac_status); }; }; then
11767  eval "$as_ac_Lib=yes"
11768else
11769  echo "$as_me: failed program was:" >&5
11770sed 's/^/| /' conftest.$ac_ext >&5
11771
11772eval "$as_ac_Lib=no"
11773fi
11774rm -f conftest.err conftest.$ac_objext \
11775      conftest$ac_exeext conftest.$ac_ext
11776LIBS=$ac_check_lib_save_LIBS
11777fi
11778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11779echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11780if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11781  cat >>confdefs.h <<_ACEOF
11782#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11783_ACEOF
11784
11785  LIBS="-l${libname} $LIBS"
11786
11787fi
11788
11789    if test "x$olibs" != "x$LIBS"; then
11790                        if test "$cross_compiling" = yes; then
11791  res="FAIL"
11792else
11793  cat >conftest.$ac_ext <<_ACEOF
11794/* confdefs.h.  */
11795_ACEOF
11796cat confdefs.h >>conftest.$ac_ext
11797cat >>conftest.$ac_ext <<_ACEOF
11798/* end confdefs.h.  */
11799
11800#ifdef HAVE_TERMCAP_H
11801# include <termcap.h>
11802#endif
11803main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11804_ACEOF
11805rm -f conftest$ac_exeext
11806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807  (eval $ac_link) 2>&5
11808  ac_status=$?
11809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812  (eval $ac_try) 2>&5
11813  ac_status=$?
11814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815  (exit $ac_status); }; }; then
11816  res="OK"
11817else
11818  echo "$as_me: program exited with status $ac_status" >&5
11819echo "$as_me: failed program was:" >&5
11820sed 's/^/| /' conftest.$ac_ext >&5
11821
11822( exit $ac_status )
11823res="FAIL"
11824fi
11825rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11826fi
11827      if test "$res" = "OK"; then
11828	break
11829      fi
11830      echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11831echo "${ECHO_T}$libname library is not usable" >&6
11832      LIBS="$olibs"
11833    fi
11834  done
11835  if test "x$olibs" = "x$LIBS"; then
11836    echo "$as_me:$LINENO: result: no terminal library found" >&5
11837echo "${ECHO_T}no terminal library found" >&6
11838  fi
11839fi
11840
11841if test "x$olibs" = "x$LIBS"; then
11842  echo "$as_me:$LINENO: checking for tgetent()" >&5
11843echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11844  cat >conftest.$ac_ext <<_ACEOF
11845/* confdefs.h.  */
11846_ACEOF
11847cat confdefs.h >>conftest.$ac_ext
11848cat >>conftest.$ac_ext <<_ACEOF
11849/* end confdefs.h.  */
11850
11851int
11852main ()
11853{
11854char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11855  ;
11856  return 0;
11857}
11858_ACEOF
11859rm -f conftest.$ac_objext conftest$ac_exeext
11860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11861  (eval $ac_link) 2>conftest.er1
11862  ac_status=$?
11863  grep -v '^ *+' conftest.er1 >conftest.err
11864  rm -f conftest.er1
11865  cat conftest.err >&5
11866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867  (exit $ac_status); } &&
11868	 { ac_try='test -z "$ac_c_werror_flag"
11869			 || test ! -s conftest.err'
11870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871  (eval $ac_try) 2>&5
11872  ac_status=$?
11873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874  (exit $ac_status); }; } &&
11875	 { ac_try='test -s conftest$ac_exeext'
11876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877  (eval $ac_try) 2>&5
11878  ac_status=$?
11879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880  (exit $ac_status); }; }; then
11881  echo "$as_me:$LINENO: result: yes" >&5
11882echo "${ECHO_T}yes" >&6
11883else
11884  echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
11887{ { echo "$as_me:$LINENO: error: NOT FOUND!
11888      You need to install a terminal library; for example ncurses.
11889      Or specify the name of the library with --with-tlib." >&5
11890echo "$as_me: error: NOT FOUND!
11891      You need to install a terminal library; for example ncurses.
11892      Or specify the name of the library with --with-tlib." >&2;}
11893   { (exit 1); exit 1; }; }
11894fi
11895rm -f conftest.err conftest.$ac_objext \
11896      conftest$ac_exeext conftest.$ac_ext
11897fi
11898
11899echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11900echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
11901if test "$cross_compiling" = yes; then
11902  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11903echo "$as_me: error: failed to compile test program." >&2;}
11904   { (exit 1); exit 1; }; }
11905else
11906  cat >conftest.$ac_ext <<_ACEOF
11907/* confdefs.h.  */
11908_ACEOF
11909cat confdefs.h >>conftest.$ac_ext
11910cat >>conftest.$ac_ext <<_ACEOF
11911/* end confdefs.h.  */
11912
11913#ifdef HAVE_TERMCAP_H
11914# include <termcap.h>
11915#endif
11916main()
11917{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11918_ACEOF
11919rm -f conftest$ac_exeext
11920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921  (eval $ac_link) 2>&5
11922  ac_status=$?
11923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926  (eval $ac_try) 2>&5
11927  ac_status=$?
11928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929  (exit $ac_status); }; }; then
11930  echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11931echo "${ECHO_T}no -- we are in termcap land" >&6
11932else
11933  echo "$as_me: program exited with status $ac_status" >&5
11934echo "$as_me: failed program was:" >&5
11935sed 's/^/| /' conftest.$ac_ext >&5
11936
11937( exit $ac_status )
11938echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11939echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
11940#define TERMINFO 1
11941_ACEOF
11942
11943fi
11944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11945fi
11946
11947if test "x$olibs" != "x$LIBS"; then
11948  echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11949echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
11950  if test "$cross_compiling" = yes; then
11951  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11952echo "$as_me: error: failed to compile test program." >&2;}
11953   { (exit 1); exit 1; }; }
11954else
11955  cat >conftest.$ac_ext <<_ACEOF
11956/* confdefs.h.  */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h.  */
11961
11962#ifdef HAVE_TERMCAP_H
11963# include <termcap.h>
11964#endif
11965main()
11966{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
11967_ACEOF
11968rm -f conftest$ac_exeext
11969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970  (eval $ac_link) 2>&5
11971  ac_status=$?
11972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975  (eval $ac_try) 2>&5
11976  ac_status=$?
11977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978  (exit $ac_status); }; }; then
11979  echo "$as_me:$LINENO: result: zero" >&5
11980echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
11981#define TGETENT_ZERO_ERR 0
11982_ACEOF
11983
11984else
11985  echo "$as_me: program exited with status $ac_status" >&5
11986echo "$as_me: failed program was:" >&5
11987sed 's/^/| /' conftest.$ac_ext >&5
11988
11989( exit $ac_status )
11990echo "$as_me:$LINENO: result: non-zero" >&5
11991echo "${ECHO_T}non-zero" >&6
11992fi
11993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11994fi
11995fi
11996
11997echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11998echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11999cat >conftest.$ac_ext <<_ACEOF
12000/* confdefs.h.  */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h.  */
12005
12006#ifdef HAVE_TERMCAP_H
12007# include <termcap.h>
12008#endif
12009
12010int
12011main ()
12012{
12013ospeed = 20000
12014  ;
12015  return 0;
12016}
12017_ACEOF
12018rm -f conftest.$ac_objext conftest$ac_exeext
12019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12020  (eval $ac_link) 2>conftest.er1
12021  ac_status=$?
12022  grep -v '^ *+' conftest.er1 >conftest.err
12023  rm -f conftest.er1
12024  cat conftest.err >&5
12025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026  (exit $ac_status); } &&
12027	 { ac_try='test -z "$ac_c_werror_flag"
12028			 || test ! -s conftest.err'
12029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030  (eval $ac_try) 2>&5
12031  ac_status=$?
12032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033  (exit $ac_status); }; } &&
12034	 { ac_try='test -s conftest$ac_exeext'
12035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036  (eval $ac_try) 2>&5
12037  ac_status=$?
12038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039  (exit $ac_status); }; }; then
12040  echo "$as_me:$LINENO: result: yes" >&5
12041echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12042#define HAVE_OSPEED 1
12043_ACEOF
12044
12045else
12046  echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5
12048
12049echo "$as_me:$LINENO: result: no" >&5
12050echo "${ECHO_T}no" >&6
12051	echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12052echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
12053	cat >conftest.$ac_ext <<_ACEOF
12054/* confdefs.h.  */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h.  */
12059
12060#ifdef HAVE_TERMCAP_H
12061# include <termcap.h>
12062#endif
12063extern short ospeed;
12064
12065int
12066main ()
12067{
12068ospeed = 20000
12069  ;
12070  return 0;
12071}
12072_ACEOF
12073rm -f conftest.$ac_objext conftest$ac_exeext
12074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075  (eval $ac_link) 2>conftest.er1
12076  ac_status=$?
12077  grep -v '^ *+' conftest.er1 >conftest.err
12078  rm -f conftest.er1
12079  cat conftest.err >&5
12080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081  (exit $ac_status); } &&
12082	 { ac_try='test -z "$ac_c_werror_flag"
12083			 || test ! -s conftest.err'
12084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085  (eval $ac_try) 2>&5
12086  ac_status=$?
12087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088  (exit $ac_status); }; } &&
12089	 { ac_try='test -s conftest$ac_exeext'
12090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091  (eval $ac_try) 2>&5
12092  ac_status=$?
12093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094  (exit $ac_status); }; }; then
12095  echo "$as_me:$LINENO: result: yes" >&5
12096echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12097#define OSPEED_EXTERN 1
12098_ACEOF
12099
12100else
12101  echo "$as_me: failed program was:" >&5
12102sed 's/^/| /' conftest.$ac_ext >&5
12103
12104echo "$as_me:$LINENO: result: no" >&5
12105echo "${ECHO_T}no" >&6
12106fi
12107rm -f conftest.err conftest.$ac_objext \
12108      conftest$ac_exeext conftest.$ac_ext
12109
12110fi
12111rm -f conftest.err conftest.$ac_objext \
12112      conftest$ac_exeext conftest.$ac_ext
12113
12114echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12115echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
12116cat >conftest.$ac_ext <<_ACEOF
12117/* confdefs.h.  */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h.  */
12122
12123#ifdef HAVE_TERMCAP_H
12124# include <termcap.h>
12125#endif
12126
12127int
12128main ()
12129{
12130if (UP == 0 && BC == 0) PC = 1
12131  ;
12132  return 0;
12133}
12134_ACEOF
12135rm -f conftest.$ac_objext conftest$ac_exeext
12136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12137  (eval $ac_link) 2>conftest.er1
12138  ac_status=$?
12139  grep -v '^ *+' conftest.er1 >conftest.err
12140  rm -f conftest.er1
12141  cat conftest.err >&5
12142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143  (exit $ac_status); } &&
12144	 { ac_try='test -z "$ac_c_werror_flag"
12145			 || test ! -s conftest.err'
12146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147  (eval $ac_try) 2>&5
12148  ac_status=$?
12149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150  (exit $ac_status); }; } &&
12151	 { ac_try='test -s conftest$ac_exeext'
12152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153  (eval $ac_try) 2>&5
12154  ac_status=$?
12155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156  (exit $ac_status); }; }; then
12157  echo "$as_me:$LINENO: result: yes" >&5
12158echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12159#define HAVE_UP_BC_PC 1
12160_ACEOF
12161
12162else
12163  echo "$as_me: failed program was:" >&5
12164sed 's/^/| /' conftest.$ac_ext >&5
12165
12166echo "$as_me:$LINENO: result: no" >&5
12167echo "${ECHO_T}no" >&6
12168	echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12169echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12170	cat >conftest.$ac_ext <<_ACEOF
12171/* confdefs.h.  */
12172_ACEOF
12173cat confdefs.h >>conftest.$ac_ext
12174cat >>conftest.$ac_ext <<_ACEOF
12175/* end confdefs.h.  */
12176
12177#ifdef HAVE_TERMCAP_H
12178# include <termcap.h>
12179#endif
12180extern char *UP, *BC, PC;
12181
12182int
12183main ()
12184{
12185if (UP == 0 && BC == 0) PC = 1
12186  ;
12187  return 0;
12188}
12189_ACEOF
12190rm -f conftest.$ac_objext conftest$ac_exeext
12191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192  (eval $ac_link) 2>conftest.er1
12193  ac_status=$?
12194  grep -v '^ *+' conftest.er1 >conftest.err
12195  rm -f conftest.er1
12196  cat conftest.err >&5
12197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198  (exit $ac_status); } &&
12199	 { ac_try='test -z "$ac_c_werror_flag"
12200			 || test ! -s conftest.err'
12201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202  (eval $ac_try) 2>&5
12203  ac_status=$?
12204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205  (exit $ac_status); }; } &&
12206	 { ac_try='test -s conftest$ac_exeext'
12207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208  (eval $ac_try) 2>&5
12209  ac_status=$?
12210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211  (exit $ac_status); }; }; then
12212  echo "$as_me:$LINENO: result: yes" >&5
12213echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12214#define UP_BC_PC_EXTERN 1
12215_ACEOF
12216
12217else
12218  echo "$as_me: failed program was:" >&5
12219sed 's/^/| /' conftest.$ac_ext >&5
12220
12221echo "$as_me:$LINENO: result: no" >&5
12222echo "${ECHO_T}no" >&6
12223fi
12224rm -f conftest.err conftest.$ac_objext \
12225      conftest$ac_exeext conftest.$ac_ext
12226
12227fi
12228rm -f conftest.err conftest.$ac_objext \
12229      conftest$ac_exeext conftest.$ac_ext
12230
12231echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12232echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12233cat >conftest.$ac_ext <<_ACEOF
12234/* confdefs.h.  */
12235_ACEOF
12236cat confdefs.h >>conftest.$ac_ext
12237cat >>conftest.$ac_ext <<_ACEOF
12238/* end confdefs.h.  */
12239
12240#ifdef HAVE_TERMCAP_H
12241# include <termcap.h>
12242#endif
12243
12244int
12245main ()
12246{
12247extern int xx(); tputs("test", 1, (outfuntype)xx)
12248  ;
12249  return 0;
12250}
12251_ACEOF
12252rm -f conftest.$ac_objext
12253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254  (eval $ac_compile) 2>conftest.er1
12255  ac_status=$?
12256  grep -v '^ *+' conftest.er1 >conftest.err
12257  rm -f conftest.er1
12258  cat conftest.err >&5
12259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260  (exit $ac_status); } &&
12261	 { ac_try='test -z "$ac_c_werror_flag"
12262			 || test ! -s conftest.err'
12263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264  (eval $ac_try) 2>&5
12265  ac_status=$?
12266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267  (exit $ac_status); }; } &&
12268	 { ac_try='test -s conftest.$ac_objext'
12269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270  (eval $ac_try) 2>&5
12271  ac_status=$?
12272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273  (exit $ac_status); }; }; then
12274  echo "$as_me:$LINENO: result: yes" >&5
12275echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12276#define HAVE_OUTFUNTYPE 1
12277_ACEOF
12278
12279else
12280  echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
12283echo "$as_me:$LINENO: result: no" >&5
12284echo "${ECHO_T}no" >&6
12285fi
12286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12287
12288echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12289echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12290cat >conftest.$ac_ext <<_ACEOF
12291/* confdefs.h.  */
12292_ACEOF
12293cat confdefs.h >>conftest.$ac_ext
12294cat >>conftest.$ac_ext <<_ACEOF
12295/* end confdefs.h.  */
12296
12297#include <sys/types.h>
12298#include <sys/time.h>
12299#include <sys/select.h>
12300int
12301main ()
12302{
12303
12304  ;
12305  return 0;
12306}
12307_ACEOF
12308rm -f conftest.$ac_objext
12309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310  (eval $ac_compile) 2>conftest.er1
12311  ac_status=$?
12312  grep -v '^ *+' conftest.er1 >conftest.err
12313  rm -f conftest.er1
12314  cat conftest.err >&5
12315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316  (exit $ac_status); } &&
12317	 { ac_try='test -z "$ac_c_werror_flag"
12318			 || test ! -s conftest.err'
12319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320  (eval $ac_try) 2>&5
12321  ac_status=$?
12322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323  (exit $ac_status); }; } &&
12324	 { ac_try='test -s conftest.$ac_objext'
12325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326  (eval $ac_try) 2>&5
12327  ac_status=$?
12328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329  (exit $ac_status); }; }; then
12330  echo "$as_me:$LINENO: result: yes" >&5
12331echo "${ECHO_T}yes" >&6
12332			cat >>confdefs.h <<\_ACEOF
12333#define SYS_SELECT_WITH_SYS_TIME 1
12334_ACEOF
12335
12336else
12337  echo "$as_me: failed program was:" >&5
12338sed 's/^/| /' conftest.$ac_ext >&5
12339
12340echo "$as_me:$LINENO: result: no" >&5
12341echo "${ECHO_T}no" >&6
12342fi
12343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12344
12345
12346echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12347echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12348if test -r /dev/ptc; then
12349  cat >>confdefs.h <<\_ACEOF
12350#define HAVE_DEV_PTC 1
12351_ACEOF
12352
12353  echo "$as_me:$LINENO: result: yes" >&5
12354echo "${ECHO_T}yes" >&6
12355else
12356  echo "$as_me:$LINENO: result: no" >&5
12357echo "${ECHO_T}no" >&6
12358fi
12359
12360echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12361echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
12362if test -c /dev/ptmx ; then
12363  cat >conftest.$ac_ext <<_ACEOF
12364/* confdefs.h.  */
12365_ACEOF
12366cat confdefs.h >>conftest.$ac_ext
12367cat >>conftest.$ac_ext <<_ACEOF
12368/* end confdefs.h.  */
12369
12370int
12371main ()
12372{
12373ptsname(0);grantpt(0);unlockpt(0);
12374  ;
12375  return 0;
12376}
12377_ACEOF
12378rm -f conftest.$ac_objext conftest$ac_exeext
12379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380  (eval $ac_link) 2>conftest.er1
12381  ac_status=$?
12382  grep -v '^ *+' conftest.er1 >conftest.err
12383  rm -f conftest.er1
12384  cat conftest.err >&5
12385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386  (exit $ac_status); } &&
12387	 { ac_try='test -z "$ac_c_werror_flag"
12388			 || test ! -s conftest.err'
12389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390  (eval $ac_try) 2>&5
12391  ac_status=$?
12392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393  (exit $ac_status); }; } &&
12394	 { ac_try='test -s conftest$ac_exeext'
12395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396  (eval $ac_try) 2>&5
12397  ac_status=$?
12398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399  (exit $ac_status); }; }; then
12400  echo "$as_me:$LINENO: result: yes" >&5
12401echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12402#define HAVE_SVR4_PTYS 1
12403_ACEOF
12404
12405else
12406  echo "$as_me: failed program was:" >&5
12407sed 's/^/| /' conftest.$ac_ext >&5
12408
12409echo "$as_me:$LINENO: result: no" >&5
12410echo "${ECHO_T}no" >&6
12411fi
12412rm -f conftest.err conftest.$ac_objext \
12413      conftest$ac_exeext conftest.$ac_ext
12414else
12415  echo "$as_me:$LINENO: result: no" >&5
12416echo "${ECHO_T}no" >&6
12417fi
12418
12419echo "$as_me:$LINENO: checking for ptyranges" >&5
12420echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
12421if test -d /dev/ptym ; then
12422  pdir='/dev/ptym'
12423else
12424  pdir='/dev'
12425fi
12426cat >conftest.$ac_ext <<_ACEOF
12427/* confdefs.h.  */
12428_ACEOF
12429cat confdefs.h >>conftest.$ac_ext
12430cat >>conftest.$ac_ext <<_ACEOF
12431/* end confdefs.h.  */
12432#ifdef M_UNIX
12433   yes;
12434#endif
12435
12436_ACEOF
12437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12438  $EGREP "yes" >/dev/null 2>&1; then
12439  ptys=`echo /dev/ptyp??`
12440else
12441  ptys=`echo $pdir/pty??`
12442fi
12443rm -f conftest*
12444
12445if test "$ptys" != "$pdir/pty??" ; then
12446  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12447  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12448  cat >>confdefs.h <<_ACEOF
12449#define PTYRANGE0 "$p0"
12450_ACEOF
12451
12452  cat >>confdefs.h <<_ACEOF
12453#define PTYRANGE1 "$p1"
12454_ACEOF
12455
12456  echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12457echo "${ECHO_T}$p0 / $p1" >&6
12458else
12459  echo "$as_me:$LINENO: result: don't know" >&5
12460echo "${ECHO_T}don't know" >&6
12461fi
12462
12463echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12464echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
12465rm -f conftest_grp
12466if test "$cross_compiling" = yes; then
12467  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12468echo "$as_me: error: failed to compile test program" >&2;}
12469   { (exit 1); exit 1; }; }
12470else
12471  cat >conftest.$ac_ext <<_ACEOF
12472/* confdefs.h.  */
12473_ACEOF
12474cat confdefs.h >>conftest.$ac_ext
12475cat >>conftest.$ac_ext <<_ACEOF
12476/* end confdefs.h.  */
12477
12478#include <sys/types.h>
12479#include <sys/stat.h>
12480#include <stdio.h>
12481main()
12482{
12483  struct stat sb;
12484  char *x,*ttyname();
12485  int om, m;
12486  FILE *fp;
12487
12488  if (!(x = ttyname(0))) exit(1);
12489  if (stat(x, &sb)) exit(1);
12490  om = sb.st_mode;
12491  if (om & 002) exit(0);
12492  m = system("mesg y");
12493  if (m == -1 || m == 127) exit(1);
12494  if (stat(x, &sb)) exit(1);
12495  m = sb.st_mode;
12496  if (chmod(x, om)) exit(1);
12497  if (m & 002) exit(0);
12498  if (sb.st_gid == getgid()) exit(1);
12499  if (!(fp=fopen("conftest_grp", "w")))
12500    exit(1);
12501  fprintf(fp, "%d\n", sb.st_gid);
12502  fclose(fp);
12503  exit(0);
12504}
12505
12506_ACEOF
12507rm -f conftest$ac_exeext
12508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509  (eval $ac_link) 2>&5
12510  ac_status=$?
12511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514  (eval $ac_try) 2>&5
12515  ac_status=$?
12516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517  (exit $ac_status); }; }; then
12518
12519    if test -f conftest_grp; then
12520	ptygrp=`cat conftest_grp`
12521	echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12522echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12523	cat >>confdefs.h <<\_ACEOF
12524#define PTYMODE 0620
12525_ACEOF
12526
12527	cat >>confdefs.h <<_ACEOF
12528#define PTYGROUP $ptygrp
12529_ACEOF
12530
12531    else
12532	echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12533echo "${ECHO_T}ptys are world accessable" >&6
12534    fi
12535
12536else
12537  echo "$as_me: program exited with status $ac_status" >&5
12538echo "$as_me: failed program was:" >&5
12539sed 's/^/| /' conftest.$ac_ext >&5
12540
12541( exit $ac_status )
12542echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12543echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12544fi
12545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12546fi
12547rm -f conftest_grp
12548
12549
12550echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12551echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12552if test "${ac_cv_type_signal+set}" = set; then
12553  echo $ECHO_N "(cached) $ECHO_C" >&6
12554else
12555  cat >conftest.$ac_ext <<_ACEOF
12556/* confdefs.h.  */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h.  */
12561#include <sys/types.h>
12562#include <signal.h>
12563#ifdef signal
12564# undef signal
12565#endif
12566#ifdef __cplusplus
12567extern "C" void (*signal (int, void (*)(int)))(int);
12568#else
12569void (*signal ()) ();
12570#endif
12571
12572int
12573main ()
12574{
12575int i;
12576  ;
12577  return 0;
12578}
12579_ACEOF
12580rm -f conftest.$ac_objext
12581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12582  (eval $ac_compile) 2>conftest.er1
12583  ac_status=$?
12584  grep -v '^ *+' conftest.er1 >conftest.err
12585  rm -f conftest.er1
12586  cat conftest.err >&5
12587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588  (exit $ac_status); } &&
12589	 { ac_try='test -z "$ac_c_werror_flag"
12590			 || test ! -s conftest.err'
12591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592  (eval $ac_try) 2>&5
12593  ac_status=$?
12594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595  (exit $ac_status); }; } &&
12596	 { ac_try='test -s conftest.$ac_objext'
12597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598  (eval $ac_try) 2>&5
12599  ac_status=$?
12600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601  (exit $ac_status); }; }; then
12602  ac_cv_type_signal=void
12603else
12604  echo "$as_me: failed program was:" >&5
12605sed 's/^/| /' conftest.$ac_ext >&5
12606
12607ac_cv_type_signal=int
12608fi
12609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12610fi
12611echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12612echo "${ECHO_T}$ac_cv_type_signal" >&6
12613
12614cat >>confdefs.h <<_ACEOF
12615#define RETSIGTYPE $ac_cv_type_signal
12616_ACEOF
12617
12618
12619
12620if test $ac_cv_type_signal = void; then
12621  cat >>confdefs.h <<\_ACEOF
12622#define SIGRETURN return
12623_ACEOF
12624
12625else
12626  cat >>confdefs.h <<\_ACEOF
12627#define SIGRETURN return 0
12628_ACEOF
12629
12630fi
12631
12632echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12633echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12634cat >conftest.$ac_ext <<_ACEOF
12635/* confdefs.h.  */
12636_ACEOF
12637cat confdefs.h >>conftest.$ac_ext
12638cat >>conftest.$ac_ext <<_ACEOF
12639/* end confdefs.h.  */
12640
12641#include <signal.h>
12642test_sig()
12643{
12644    struct sigcontext *scont;
12645    scont = (struct sigcontext *)0;
12646    return 1;
12647}
12648int
12649main ()
12650{
12651
12652  ;
12653  return 0;
12654}
12655_ACEOF
12656rm -f conftest.$ac_objext
12657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658  (eval $ac_compile) 2>conftest.er1
12659  ac_status=$?
12660  grep -v '^ *+' conftest.er1 >conftest.err
12661  rm -f conftest.er1
12662  cat conftest.err >&5
12663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664  (exit $ac_status); } &&
12665	 { ac_try='test -z "$ac_c_werror_flag"
12666			 || test ! -s conftest.err'
12667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668  (eval $ac_try) 2>&5
12669  ac_status=$?
12670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671  (exit $ac_status); }; } &&
12672	 { ac_try='test -s conftest.$ac_objext'
12673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674  (eval $ac_try) 2>&5
12675  ac_status=$?
12676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677  (exit $ac_status); }; }; then
12678  echo "$as_me:$LINENO: result: yes" >&5
12679echo "${ECHO_T}yes" >&6
12680		cat >>confdefs.h <<\_ACEOF
12681#define HAVE_SIGCONTEXT 1
12682_ACEOF
12683
12684else
12685  echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688echo "$as_me:$LINENO: result: no" >&5
12689echo "${ECHO_T}no" >&6
12690fi
12691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12692
12693echo "$as_me:$LINENO: checking getcwd implementation" >&5
12694echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
12695if test "$cross_compiling" = yes; then
12696  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12697echo "$as_me: error: failed to compile test program" >&2;}
12698   { (exit 1); exit 1; }; }
12699else
12700  cat >conftest.$ac_ext <<_ACEOF
12701/* confdefs.h.  */
12702_ACEOF
12703cat confdefs.h >>conftest.$ac_ext
12704cat >>conftest.$ac_ext <<_ACEOF
12705/* end confdefs.h.  */
12706
12707char *dagger[] = { "IFS=pwd", 0 };
12708main()
12709{
12710  char buffer[500];
12711  extern char **environ;
12712  environ = dagger;
12713  return getcwd(buffer, 500) ? 0 : 1;
12714}
12715_ACEOF
12716rm -f conftest$ac_exeext
12717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12718  (eval $ac_link) 2>&5
12719  ac_status=$?
12720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721  (exit $ac_status); } && { ac_try='./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  echo "$as_me:$LINENO: result: it is usable" >&5
12728echo "${ECHO_T}it is usable" >&6
12729else
12730  echo "$as_me: program exited with status $ac_status" >&5
12731echo "$as_me: failed program was:" >&5
12732sed 's/^/| /' conftest.$ac_ext >&5
12733
12734( exit $ac_status )
12735echo "$as_me:$LINENO: result: it stinks" >&5
12736echo "${ECHO_T}it stinks" >&6
12737		cat >>confdefs.h <<\_ACEOF
12738#define BAD_GETCWD 1
12739_ACEOF
12740
12741fi
12742rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12743fi
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12792	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12793	memset nanosleep opendir putenv qsort readlink select setenv \
12794	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12795	sigvec strcasecmp strerror strftime stricmp strncasecmp \
12796	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12797	usleep utime utimes
12798do
12799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800echo "$as_me:$LINENO: checking for $ac_func" >&5
12801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12802if eval "test \"\${$as_ac_var+set}\" = set"; then
12803  echo $ECHO_N "(cached) $ECHO_C" >&6
12804else
12805  cat >conftest.$ac_ext <<_ACEOF
12806/* confdefs.h.  */
12807_ACEOF
12808cat confdefs.h >>conftest.$ac_ext
12809cat >>conftest.$ac_ext <<_ACEOF
12810/* end confdefs.h.  */
12811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12812   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12813#define $ac_func innocuous_$ac_func
12814
12815/* System header to define __stub macros and hopefully few prototypes,
12816    which can conflict with char $ac_func (); below.
12817    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818    <limits.h> exists even on freestanding compilers.  */
12819
12820#ifdef __STDC__
12821# include <limits.h>
12822#else
12823# include <assert.h>
12824#endif
12825
12826#undef $ac_func
12827
12828/* Override any gcc2 internal prototype to avoid an error.  */
12829#ifdef __cplusplus
12830extern "C"
12831{
12832#endif
12833/* We use char because int might match the return type of a gcc2
12834   builtin and then its argument prototype would still apply.  */
12835char $ac_func ();
12836/* The GNU C library defines this for functions which it implements
12837    to always fail with ENOSYS.  Some functions are actually named
12838    something starting with __ and the normal name is an alias.  */
12839#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12840choke me
12841#else
12842char (*f) () = $ac_func;
12843#endif
12844#ifdef __cplusplus
12845}
12846#endif
12847
12848int
12849main ()
12850{
12851return f != $ac_func;
12852  ;
12853  return 0;
12854}
12855_ACEOF
12856rm -f conftest.$ac_objext conftest$ac_exeext
12857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858  (eval $ac_link) 2>conftest.er1
12859  ac_status=$?
12860  grep -v '^ *+' conftest.er1 >conftest.err
12861  rm -f conftest.er1
12862  cat conftest.err >&5
12863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864  (exit $ac_status); } &&
12865	 { ac_try='test -z "$ac_c_werror_flag"
12866			 || test ! -s conftest.err'
12867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868  (eval $ac_try) 2>&5
12869  ac_status=$?
12870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871  (exit $ac_status); }; } &&
12872	 { ac_try='test -s conftest$ac_exeext'
12873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874  (eval $ac_try) 2>&5
12875  ac_status=$?
12876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877  (exit $ac_status); }; }; then
12878  eval "$as_ac_var=yes"
12879else
12880  echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883eval "$as_ac_var=no"
12884fi
12885rm -f conftest.err conftest.$ac_objext \
12886      conftest$ac_exeext conftest.$ac_ext
12887fi
12888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12889echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12890if test `eval echo '${'$as_ac_var'}'` = yes; then
12891  cat >>confdefs.h <<_ACEOF
12892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12893_ACEOF
12894
12895fi
12896done
12897
12898
12899echo "$as_me:$LINENO: checking for st_blksize" >&5
12900echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12901cat >conftest.$ac_ext <<_ACEOF
12902/* confdefs.h.  */
12903_ACEOF
12904cat confdefs.h >>conftest.$ac_ext
12905cat >>conftest.$ac_ext <<_ACEOF
12906/* end confdefs.h.  */
12907#include <sys/types.h>
12908#include <sys/stat.h>
12909int
12910main ()
12911{
12912	struct stat st;
12913	int n;
12914
12915	stat("/", &st);
12916	n = (int)st.st_blksize;
12917  ;
12918  return 0;
12919}
12920_ACEOF
12921rm -f conftest.$ac_objext
12922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923  (eval $ac_compile) 2>conftest.er1
12924  ac_status=$?
12925  grep -v '^ *+' conftest.er1 >conftest.err
12926  rm -f conftest.er1
12927  cat conftest.err >&5
12928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929  (exit $ac_status); } &&
12930	 { ac_try='test -z "$ac_c_werror_flag"
12931			 || test ! -s conftest.err'
12932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933  (eval $ac_try) 2>&5
12934  ac_status=$?
12935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936  (exit $ac_status); }; } &&
12937	 { ac_try='test -s conftest.$ac_objext'
12938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939  (eval $ac_try) 2>&5
12940  ac_status=$?
12941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942  (exit $ac_status); }; }; then
12943  echo "$as_me:$LINENO: result: yes" >&5
12944echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12945#define HAVE_ST_BLKSIZE 1
12946_ACEOF
12947
12948else
12949  echo "$as_me: failed program was:" >&5
12950sed 's/^/| /' conftest.$ac_ext >&5
12951
12952echo "$as_me:$LINENO: result: no" >&5
12953echo "${ECHO_T}no" >&6
12954fi
12955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12956
12957echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12958echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
12959if test "$cross_compiling" = yes; then
12960  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12961echo "$as_me: error: failed to compile test program" >&2;}
12962   { (exit 1); exit 1; }; }
12963else
12964  cat >conftest.$ac_ext <<_ACEOF
12965/* confdefs.h.  */
12966_ACEOF
12967cat confdefs.h >>conftest.$ac_ext
12968cat >>conftest.$ac_ext <<_ACEOF
12969/* end confdefs.h.  */
12970#include <sys/types.h>
12971#include <sys/stat.h>
12972main() {struct stat st;  exit(stat("configure/", &st) != 0); }
12973_ACEOF
12974rm -f conftest$ac_exeext
12975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12976  (eval $ac_link) 2>&5
12977  ac_status=$?
12978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981  (eval $ac_try) 2>&5
12982  ac_status=$?
12983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984  (exit $ac_status); }; }; then
12985  echo "$as_me:$LINENO: result: yes" >&5
12986echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12987#define STAT_IGNORES_SLASH 1
12988_ACEOF
12989
12990else
12991  echo "$as_me: program exited with status $ac_status" >&5
12992echo "$as_me: failed program was:" >&5
12993sed 's/^/| /' conftest.$ac_ext >&5
12994
12995( exit $ac_status )
12996echo "$as_me:$LINENO: result: no" >&5
12997echo "${ECHO_T}no" >&6
12998fi
12999rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13000fi
13001
13002echo "$as_me:$LINENO: checking for iconv_open()" >&5
13003echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
13004save_LIBS="$LIBS"
13005LIBS="$LIBS -liconv"
13006cat >conftest.$ac_ext <<_ACEOF
13007/* confdefs.h.  */
13008_ACEOF
13009cat confdefs.h >>conftest.$ac_ext
13010cat >>conftest.$ac_ext <<_ACEOF
13011/* end confdefs.h.  */
13012
13013#ifdef HAVE_ICONV_H
13014# include <iconv.h>
13015#endif
13016
13017int
13018main ()
13019{
13020iconv_open("fr", "to");
13021  ;
13022  return 0;
13023}
13024_ACEOF
13025rm -f conftest.$ac_objext conftest$ac_exeext
13026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13027  (eval $ac_link) 2>conftest.er1
13028  ac_status=$?
13029  grep -v '^ *+' conftest.er1 >conftest.err
13030  rm -f conftest.er1
13031  cat conftest.err >&5
13032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033  (exit $ac_status); } &&
13034	 { ac_try='test -z "$ac_c_werror_flag"
13035			 || test ! -s conftest.err'
13036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037  (eval $ac_try) 2>&5
13038  ac_status=$?
13039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040  (exit $ac_status); }; } &&
13041	 { ac_try='test -s conftest$ac_exeext'
13042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043  (eval $ac_try) 2>&5
13044  ac_status=$?
13045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046  (exit $ac_status); }; }; then
13047  echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13048echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
13049#define HAVE_ICONV 1
13050_ACEOF
13051
13052else
13053  echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
13056LIBS="$save_LIBS"
13057    cat >conftest.$ac_ext <<_ACEOF
13058/* confdefs.h.  */
13059_ACEOF
13060cat confdefs.h >>conftest.$ac_ext
13061cat >>conftest.$ac_ext <<_ACEOF
13062/* end confdefs.h.  */
13063
13064#ifdef HAVE_ICONV_H
13065# include <iconv.h>
13066#endif
13067
13068int
13069main ()
13070{
13071iconv_open("fr", "to");
13072  ;
13073  return 0;
13074}
13075_ACEOF
13076rm -f conftest.$ac_objext conftest$ac_exeext
13077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13078  (eval $ac_link) 2>conftest.er1
13079  ac_status=$?
13080  grep -v '^ *+' conftest.er1 >conftest.err
13081  rm -f conftest.er1
13082  cat conftest.err >&5
13083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084  (exit $ac_status); } &&
13085	 { ac_try='test -z "$ac_c_werror_flag"
13086			 || test ! -s conftest.err'
13087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088  (eval $ac_try) 2>&5
13089  ac_status=$?
13090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091  (exit $ac_status); }; } &&
13092	 { ac_try='test -s conftest$ac_exeext'
13093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094  (eval $ac_try) 2>&5
13095  ac_status=$?
13096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097  (exit $ac_status); }; }; then
13098  echo "$as_me:$LINENO: result: yes" >&5
13099echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13100#define HAVE_ICONV 1
13101_ACEOF
13102
13103else
13104  echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
13107echo "$as_me:$LINENO: result: no" >&5
13108echo "${ECHO_T}no" >&6
13109fi
13110rm -f conftest.err conftest.$ac_objext \
13111      conftest$ac_exeext conftest.$ac_ext
13112fi
13113rm -f conftest.err conftest.$ac_objext \
13114      conftest$ac_exeext conftest.$ac_ext
13115
13116
13117echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13118echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
13119cat >conftest.$ac_ext <<_ACEOF
13120/* confdefs.h.  */
13121_ACEOF
13122cat confdefs.h >>conftest.$ac_ext
13123cat >>conftest.$ac_ext <<_ACEOF
13124/* end confdefs.h.  */
13125
13126#ifdef HAVE_LANGINFO_H
13127# include <langinfo.h>
13128#endif
13129
13130int
13131main ()
13132{
13133char *cs = nl_langinfo(CODESET);
13134  ;
13135  return 0;
13136}
13137_ACEOF
13138rm -f conftest.$ac_objext conftest$ac_exeext
13139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13140  (eval $ac_link) 2>conftest.er1
13141  ac_status=$?
13142  grep -v '^ *+' conftest.er1 >conftest.err
13143  rm -f conftest.er1
13144  cat conftest.err >&5
13145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146  (exit $ac_status); } &&
13147	 { ac_try='test -z "$ac_c_werror_flag"
13148			 || test ! -s conftest.err'
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); }; } &&
13154	 { ac_try='test -s conftest$ac_exeext'
13155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156  (eval $ac_try) 2>&5
13157  ac_status=$?
13158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159  (exit $ac_status); }; }; then
13160  echo "$as_me:$LINENO: result: yes" >&5
13161echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13162#define HAVE_NL_LANGINFO_CODESET 1
13163_ACEOF
13164
13165else
13166  echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169echo "$as_me:$LINENO: result: no" >&5
13170echo "${ECHO_T}no" >&6
13171fi
13172rm -f conftest.err conftest.$ac_objext \
13173      conftest$ac_exeext conftest.$ac_ext
13174
13175echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13176echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
13177# Check whether --enable-acl or --disable-acl was given.
13178if test "${enable_acl+set}" = set; then
13179  enableval="$enable_acl"
13180
13181else
13182  enable_acl="yes"
13183fi;
13184if test "$enable_acl" = "yes"; then
13185echo "$as_me:$LINENO: result: no" >&5
13186echo "${ECHO_T}no" >&6
13187echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13188echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13189if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13190  echo $ECHO_N "(cached) $ECHO_C" >&6
13191else
13192  ac_check_lib_save_LIBS=$LIBS
13193LIBS="-lposix1e  $LIBS"
13194cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h.  */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h.  */
13200
13201/* Override any gcc2 internal prototype to avoid an error.  */
13202#ifdef __cplusplus
13203extern "C"
13204#endif
13205/* We use char because int might match the return type of a gcc2
13206   builtin and then its argument prototype would still apply.  */
13207char acl_get_file ();
13208int
13209main ()
13210{
13211acl_get_file ();
13212  ;
13213  return 0;
13214}
13215_ACEOF
13216rm -f conftest.$ac_objext conftest$ac_exeext
13217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218  (eval $ac_link) 2>conftest.er1
13219  ac_status=$?
13220  grep -v '^ *+' conftest.er1 >conftest.err
13221  rm -f conftest.er1
13222  cat conftest.err >&5
13223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224  (exit $ac_status); } &&
13225	 { ac_try='test -z "$ac_c_werror_flag"
13226			 || test ! -s conftest.err'
13227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228  (eval $ac_try) 2>&5
13229  ac_status=$?
13230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231  (exit $ac_status); }; } &&
13232	 { ac_try='test -s conftest$ac_exeext'
13233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234  (eval $ac_try) 2>&5
13235  ac_status=$?
13236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237  (exit $ac_status); }; }; then
13238  ac_cv_lib_posix1e_acl_get_file=yes
13239else
13240  echo "$as_me: failed program was:" >&5
13241sed 's/^/| /' conftest.$ac_ext >&5
13242
13243ac_cv_lib_posix1e_acl_get_file=no
13244fi
13245rm -f conftest.err conftest.$ac_objext \
13246      conftest$ac_exeext conftest.$ac_ext
13247LIBS=$ac_check_lib_save_LIBS
13248fi
13249echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13250echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13251if test $ac_cv_lib_posix1e_acl_get_file = yes; then
13252  LIBS="$LIBS -lposix1e"
13253else
13254  echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13255echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13256if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13257  echo $ECHO_N "(cached) $ECHO_C" >&6
13258else
13259  ac_check_lib_save_LIBS=$LIBS
13260LIBS="-lacl  $LIBS"
13261cat >conftest.$ac_ext <<_ACEOF
13262/* confdefs.h.  */
13263_ACEOF
13264cat confdefs.h >>conftest.$ac_ext
13265cat >>conftest.$ac_ext <<_ACEOF
13266/* end confdefs.h.  */
13267
13268/* Override any gcc2 internal prototype to avoid an error.  */
13269#ifdef __cplusplus
13270extern "C"
13271#endif
13272/* We use char because int might match the return type of a gcc2
13273   builtin and then its argument prototype would still apply.  */
13274char acl_get_file ();
13275int
13276main ()
13277{
13278acl_get_file ();
13279  ;
13280  return 0;
13281}
13282_ACEOF
13283rm -f conftest.$ac_objext conftest$ac_exeext
13284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13285  (eval $ac_link) 2>conftest.er1
13286  ac_status=$?
13287  grep -v '^ *+' conftest.er1 >conftest.err
13288  rm -f conftest.er1
13289  cat conftest.err >&5
13290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291  (exit $ac_status); } &&
13292	 { ac_try='test -z "$ac_c_werror_flag"
13293			 || test ! -s conftest.err'
13294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295  (eval $ac_try) 2>&5
13296  ac_status=$?
13297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298  (exit $ac_status); }; } &&
13299	 { ac_try='test -s conftest$ac_exeext'
13300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301  (eval $ac_try) 2>&5
13302  ac_status=$?
13303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304  (exit $ac_status); }; }; then
13305  ac_cv_lib_acl_acl_get_file=yes
13306else
13307  echo "$as_me: failed program was:" >&5
13308sed 's/^/| /' conftest.$ac_ext >&5
13309
13310ac_cv_lib_acl_acl_get_file=no
13311fi
13312rm -f conftest.err conftest.$ac_objext \
13313      conftest$ac_exeext conftest.$ac_ext
13314LIBS=$ac_check_lib_save_LIBS
13315fi
13316echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13317echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13318if test $ac_cv_lib_acl_acl_get_file = yes; then
13319  LIBS="$LIBS -lacl"
13320		  echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13321echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13322if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13323  echo $ECHO_N "(cached) $ECHO_C" >&6
13324else
13325  ac_check_lib_save_LIBS=$LIBS
13326LIBS="-lattr  $LIBS"
13327cat >conftest.$ac_ext <<_ACEOF
13328/* confdefs.h.  */
13329_ACEOF
13330cat confdefs.h >>conftest.$ac_ext
13331cat >>conftest.$ac_ext <<_ACEOF
13332/* end confdefs.h.  */
13333
13334/* Override any gcc2 internal prototype to avoid an error.  */
13335#ifdef __cplusplus
13336extern "C"
13337#endif
13338/* We use char because int might match the return type of a gcc2
13339   builtin and then its argument prototype would still apply.  */
13340char fgetxattr ();
13341int
13342main ()
13343{
13344fgetxattr ();
13345  ;
13346  return 0;
13347}
13348_ACEOF
13349rm -f conftest.$ac_objext conftest$ac_exeext
13350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13351  (eval $ac_link) 2>conftest.er1
13352  ac_status=$?
13353  grep -v '^ *+' conftest.er1 >conftest.err
13354  rm -f conftest.er1
13355  cat conftest.err >&5
13356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357  (exit $ac_status); } &&
13358	 { ac_try='test -z "$ac_c_werror_flag"
13359			 || test ! -s conftest.err'
13360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361  (eval $ac_try) 2>&5
13362  ac_status=$?
13363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364  (exit $ac_status); }; } &&
13365	 { ac_try='test -s conftest$ac_exeext'
13366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367  (eval $ac_try) 2>&5
13368  ac_status=$?
13369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370  (exit $ac_status); }; }; then
13371  ac_cv_lib_attr_fgetxattr=yes
13372else
13373  echo "$as_me: failed program was:" >&5
13374sed 's/^/| /' conftest.$ac_ext >&5
13375
13376ac_cv_lib_attr_fgetxattr=no
13377fi
13378rm -f conftest.err conftest.$ac_objext \
13379      conftest$ac_exeext conftest.$ac_ext
13380LIBS=$ac_check_lib_save_LIBS
13381fi
13382echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13383echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13384if test $ac_cv_lib_attr_fgetxattr = yes; then
13385  LIBS="$LIBS -lattr"
13386fi
13387
13388fi
13389
13390fi
13391
13392
13393echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13394echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13395cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h.  */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h.  */
13401
13402#include <sys/types.h>
13403#ifdef HAVE_SYS_ACL_H
13404# include <sys/acl.h>
13405#endif
13406acl_t acl;
13407int
13408main ()
13409{
13410acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13411	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13412	acl_free(acl);
13413  ;
13414  return 0;
13415}
13416_ACEOF
13417rm -f conftest.$ac_objext conftest$ac_exeext
13418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419  (eval $ac_link) 2>conftest.er1
13420  ac_status=$?
13421  grep -v '^ *+' conftest.er1 >conftest.err
13422  rm -f conftest.er1
13423  cat conftest.err >&5
13424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425  (exit $ac_status); } &&
13426	 { ac_try='test -z "$ac_c_werror_flag"
13427			 || test ! -s conftest.err'
13428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429  (eval $ac_try) 2>&5
13430  ac_status=$?
13431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432  (exit $ac_status); }; } &&
13433	 { ac_try='test -s conftest$ac_exeext'
13434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435  (eval $ac_try) 2>&5
13436  ac_status=$?
13437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438  (exit $ac_status); }; }; then
13439  echo "$as_me:$LINENO: result: yes" >&5
13440echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13441#define HAVE_POSIX_ACL 1
13442_ACEOF
13443
13444else
13445  echo "$as_me: failed program was:" >&5
13446sed 's/^/| /' conftest.$ac_ext >&5
13447
13448echo "$as_me:$LINENO: result: no" >&5
13449echo "${ECHO_T}no" >&6
13450fi
13451rm -f conftest.err conftest.$ac_objext \
13452      conftest$ac_exeext conftest.$ac_ext
13453
13454echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13455echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13456cat >conftest.$ac_ext <<_ACEOF
13457/* confdefs.h.  */
13458_ACEOF
13459cat confdefs.h >>conftest.$ac_ext
13460cat >>conftest.$ac_ext <<_ACEOF
13461/* end confdefs.h.  */
13462
13463#ifdef HAVE_SYS_ACL_H
13464# include <sys/acl.h>
13465#endif
13466int
13467main ()
13468{
13469acl("foo", GETACLCNT, 0, NULL);
13470
13471  ;
13472  return 0;
13473}
13474_ACEOF
13475rm -f conftest.$ac_objext conftest$ac_exeext
13476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13477  (eval $ac_link) 2>conftest.er1
13478  ac_status=$?
13479  grep -v '^ *+' conftest.er1 >conftest.err
13480  rm -f conftest.er1
13481  cat conftest.err >&5
13482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483  (exit $ac_status); } &&
13484	 { ac_try='test -z "$ac_c_werror_flag"
13485			 || test ! -s conftest.err'
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); }; } &&
13491	 { ac_try='test -s conftest$ac_exeext'
13492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493  (eval $ac_try) 2>&5
13494  ac_status=$?
13495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496  (exit $ac_status); }; }; then
13497  echo "$as_me:$LINENO: result: yes" >&5
13498echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13499#define HAVE_SOLARIS_ACL 1
13500_ACEOF
13501
13502else
13503  echo "$as_me: failed program was:" >&5
13504sed 's/^/| /' conftest.$ac_ext >&5
13505
13506echo "$as_me:$LINENO: result: no" >&5
13507echo "${ECHO_T}no" >&6
13508fi
13509rm -f conftest.err conftest.$ac_objext \
13510      conftest$ac_exeext conftest.$ac_ext
13511
13512echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13513echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13514cat >conftest.$ac_ext <<_ACEOF
13515/* confdefs.h.  */
13516_ACEOF
13517cat confdefs.h >>conftest.$ac_ext
13518cat >>conftest.$ac_ext <<_ACEOF
13519/* end confdefs.h.  */
13520
13521#ifdef HAVE_SYS_ACL_H
13522# include <sys/acl.h>
13523#endif
13524#ifdef HAVE_SYS_ACCESS_H
13525# include <sys/access.h>
13526#endif
13527#define _ALL_SOURCE
13528
13529#include <sys/stat.h>
13530
13531int aclsize;
13532struct acl *aclent;
13533int
13534main ()
13535{
13536aclsize = sizeof(struct acl);
13537	aclent = (void *)malloc(aclsize);
13538	statacl("foo", STX_NORMAL, aclent, aclsize);
13539
13540  ;
13541  return 0;
13542}
13543_ACEOF
13544rm -f conftest.$ac_objext conftest$ac_exeext
13545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13546  (eval $ac_link) 2>conftest.er1
13547  ac_status=$?
13548  grep -v '^ *+' conftest.er1 >conftest.err
13549  rm -f conftest.er1
13550  cat conftest.err >&5
13551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552  (exit $ac_status); } &&
13553	 { ac_try='test -z "$ac_c_werror_flag"
13554			 || test ! -s conftest.err'
13555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556  (eval $ac_try) 2>&5
13557  ac_status=$?
13558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559  (exit $ac_status); }; } &&
13560	 { ac_try='test -s conftest$ac_exeext'
13561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562  (eval $ac_try) 2>&5
13563  ac_status=$?
13564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565  (exit $ac_status); }; }; then
13566  echo "$as_me:$LINENO: result: yes" >&5
13567echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13568#define HAVE_AIX_ACL 1
13569_ACEOF
13570
13571else
13572  echo "$as_me: failed program was:" >&5
13573sed 's/^/| /' conftest.$ac_ext >&5
13574
13575echo "$as_me:$LINENO: result: no" >&5
13576echo "${ECHO_T}no" >&6
13577fi
13578rm -f conftest.err conftest.$ac_objext \
13579      conftest$ac_exeext conftest.$ac_ext
13580else
13581  echo "$as_me:$LINENO: result: yes" >&5
13582echo "${ECHO_T}yes" >&6
13583fi
13584
13585echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13586echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
13587# Check whether --enable-gpm or --disable-gpm was given.
13588if test "${enable_gpm+set}" = set; then
13589  enableval="$enable_gpm"
13590
13591else
13592  enable_gpm="yes"
13593fi;
13594
13595if test "$enable_gpm" = "yes"; then
13596  echo "$as_me:$LINENO: result: no" >&5
13597echo "${ECHO_T}no" >&6
13598    echo "$as_me:$LINENO: checking for gpm" >&5
13599echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13600if test "${vi_cv_have_gpm+set}" = set; then
13601  echo $ECHO_N "(cached) $ECHO_C" >&6
13602else
13603  olibs="$LIBS" ; LIBS="-lgpm"
13604	cat >conftest.$ac_ext <<_ACEOF
13605/* confdefs.h.  */
13606_ACEOF
13607cat confdefs.h >>conftest.$ac_ext
13608cat >>conftest.$ac_ext <<_ACEOF
13609/* end confdefs.h.  */
13610#include <gpm.h>
13611	    #include <linux/keyboard.h>
13612int
13613main ()
13614{
13615Gpm_GetLibVersion(NULL);
13616  ;
13617  return 0;
13618}
13619_ACEOF
13620rm -f conftest.$ac_objext conftest$ac_exeext
13621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13622  (eval $ac_link) 2>conftest.er1
13623  ac_status=$?
13624  grep -v '^ *+' conftest.er1 >conftest.err
13625  rm -f conftest.er1
13626  cat conftest.err >&5
13627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628  (exit $ac_status); } &&
13629	 { ac_try='test -z "$ac_c_werror_flag"
13630			 || test ! -s conftest.err'
13631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632  (eval $ac_try) 2>&5
13633  ac_status=$?
13634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635  (exit $ac_status); }; } &&
13636	 { ac_try='test -s conftest$ac_exeext'
13637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638  (eval $ac_try) 2>&5
13639  ac_status=$?
13640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641  (exit $ac_status); }; }; then
13642  	    	    vi_cv_have_gpm=yes
13643else
13644  echo "$as_me: failed program was:" >&5
13645sed 's/^/| /' conftest.$ac_ext >&5
13646
13647vi_cv_have_gpm=no
13648fi
13649rm -f conftest.err conftest.$ac_objext \
13650      conftest$ac_exeext conftest.$ac_ext
13651	LIBS="$olibs"
13652
13653fi
13654echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13655echo "${ECHO_T}$vi_cv_have_gpm" >&6
13656  if test $vi_cv_have_gpm = yes; then
13657    LIBS="$LIBS -lgpm"
13658    cat >>confdefs.h <<\_ACEOF
13659#define HAVE_GPM 1
13660_ACEOF
13661
13662  fi
13663else
13664  echo "$as_me:$LINENO: result: yes" >&5
13665echo "${ECHO_T}yes" >&6
13666fi
13667
13668echo "$as_me:$LINENO: checking for rename" >&5
13669echo $ECHO_N "checking for rename... $ECHO_C" >&6
13670cat >conftest.$ac_ext <<_ACEOF
13671/* confdefs.h.  */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h.  */
13676#include <stdio.h>
13677int
13678main ()
13679{
13680rename("this", "that")
13681  ;
13682  return 0;
13683}
13684_ACEOF
13685rm -f conftest.$ac_objext conftest$ac_exeext
13686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13687  (eval $ac_link) 2>conftest.er1
13688  ac_status=$?
13689  grep -v '^ *+' conftest.er1 >conftest.err
13690  rm -f conftest.er1
13691  cat conftest.err >&5
13692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693  (exit $ac_status); } &&
13694	 { ac_try='test -z "$ac_c_werror_flag"
13695			 || test ! -s conftest.err'
13696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697  (eval $ac_try) 2>&5
13698  ac_status=$?
13699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700  (exit $ac_status); }; } &&
13701	 { ac_try='test -s conftest$ac_exeext'
13702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703  (eval $ac_try) 2>&5
13704  ac_status=$?
13705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706  (exit $ac_status); }; }; then
13707  echo "$as_me:$LINENO: result: yes" >&5
13708echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13709#define HAVE_RENAME 1
13710_ACEOF
13711
13712else
13713  echo "$as_me: failed program was:" >&5
13714sed 's/^/| /' conftest.$ac_ext >&5
13715
13716echo "$as_me:$LINENO: result: no" >&5
13717echo "${ECHO_T}no" >&6
13718fi
13719rm -f conftest.err conftest.$ac_objext \
13720      conftest$ac_exeext conftest.$ac_ext
13721
13722echo "$as_me:$LINENO: checking for sysctl" >&5
13723echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13724cat >conftest.$ac_ext <<_ACEOF
13725/* confdefs.h.  */
13726_ACEOF
13727cat confdefs.h >>conftest.$ac_ext
13728cat >>conftest.$ac_ext <<_ACEOF
13729/* end confdefs.h.  */
13730#include <sys/types.h>
13731#include <sys/sysctl.h>
13732int
13733main ()
13734{
13735	int mib[2], r;
13736	size_t len;
13737
13738	mib[0] = CTL_HW;
13739	mib[1] = HW_USERMEM;
13740	len = sizeof(r);
13741	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13742
13743  ;
13744  return 0;
13745}
13746_ACEOF
13747rm -f conftest.$ac_objext
13748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749  (eval $ac_compile) 2>conftest.er1
13750  ac_status=$?
13751  grep -v '^ *+' conftest.er1 >conftest.err
13752  rm -f conftest.er1
13753  cat conftest.err >&5
13754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755  (exit $ac_status); } &&
13756	 { ac_try='test -z "$ac_c_werror_flag"
13757			 || test ! -s conftest.err'
13758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759  (eval $ac_try) 2>&5
13760  ac_status=$?
13761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762  (exit $ac_status); }; } &&
13763	 { ac_try='test -s conftest.$ac_objext'
13764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765  (eval $ac_try) 2>&5
13766  ac_status=$?
13767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768  (exit $ac_status); }; }; then
13769  echo "$as_me:$LINENO: result: yes" >&5
13770echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13771#define HAVE_SYSCTL 1
13772_ACEOF
13773
13774else
13775  echo "$as_me: failed program was:" >&5
13776sed 's/^/| /' conftest.$ac_ext >&5
13777
13778echo "$as_me:$LINENO: result: not usable" >&5
13779echo "${ECHO_T}not usable" >&6
13780fi
13781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13782
13783echo "$as_me:$LINENO: checking for sysinfo" >&5
13784echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13785cat >conftest.$ac_ext <<_ACEOF
13786/* confdefs.h.  */
13787_ACEOF
13788cat confdefs.h >>conftest.$ac_ext
13789cat >>conftest.$ac_ext <<_ACEOF
13790/* end confdefs.h.  */
13791#include <sys/types.h>
13792#include <sys/sysinfo.h>
13793int
13794main ()
13795{
13796	struct sysinfo sinfo;
13797	int t;
13798
13799	(void)sysinfo(&sinfo);
13800	t = sinfo.totalram;
13801
13802  ;
13803  return 0;
13804}
13805_ACEOF
13806rm -f conftest.$ac_objext
13807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808  (eval $ac_compile) 2>conftest.er1
13809  ac_status=$?
13810  grep -v '^ *+' conftest.er1 >conftest.err
13811  rm -f conftest.er1
13812  cat conftest.err >&5
13813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814  (exit $ac_status); } &&
13815	 { ac_try='test -z "$ac_c_werror_flag"
13816			 || test ! -s conftest.err'
13817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818  (eval $ac_try) 2>&5
13819  ac_status=$?
13820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821  (exit $ac_status); }; } &&
13822	 { ac_try='test -s conftest.$ac_objext'
13823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824  (eval $ac_try) 2>&5
13825  ac_status=$?
13826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827  (exit $ac_status); }; }; then
13828  echo "$as_me:$LINENO: result: yes" >&5
13829echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13830#define HAVE_SYSINFO 1
13831_ACEOF
13832
13833else
13834  echo "$as_me: failed program was:" >&5
13835sed 's/^/| /' conftest.$ac_ext >&5
13836
13837echo "$as_me:$LINENO: result: not usable" >&5
13838echo "${ECHO_T}not usable" >&6
13839fi
13840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13841
13842echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
13843echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6
13844cat >conftest.$ac_ext <<_ACEOF
13845/* confdefs.h.  */
13846_ACEOF
13847cat confdefs.h >>conftest.$ac_ext
13848cat >>conftest.$ac_ext <<_ACEOF
13849/* end confdefs.h.  */
13850#include <sys/types.h>
13851#include <sys/sysinfo.h>
13852int
13853main ()
13854{
13855	struct sysinfo sinfo;
13856 	sinfo.mem_unit = 1;
13857
13858  ;
13859  return 0;
13860}
13861_ACEOF
13862rm -f conftest.$ac_objext
13863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13864  (eval $ac_compile) 2>conftest.er1
13865  ac_status=$?
13866  grep -v '^ *+' conftest.er1 >conftest.err
13867  rm -f conftest.er1
13868  cat conftest.err >&5
13869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870  (exit $ac_status); } &&
13871	 { ac_try='test -z "$ac_c_werror_flag"
13872			 || test ! -s conftest.err'
13873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874  (eval $ac_try) 2>&5
13875  ac_status=$?
13876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877  (exit $ac_status); }; } &&
13878	 { ac_try='test -s conftest.$ac_objext'
13879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880  (eval $ac_try) 2>&5
13881  ac_status=$?
13882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883  (exit $ac_status); }; }; then
13884  echo "$as_me:$LINENO: result: yes" >&5
13885echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13886#define HAVE_SYSINFO_MEM_UNIT 1
13887_ACEOF
13888
13889else
13890  echo "$as_me: failed program was:" >&5
13891sed 's/^/| /' conftest.$ac_ext >&5
13892
13893echo "$as_me:$LINENO: result: no" >&5
13894echo "${ECHO_T}no" >&6
13895fi
13896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13897
13898echo "$as_me:$LINENO: checking for sysconf" >&5
13899echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13900cat >conftest.$ac_ext <<_ACEOF
13901/* confdefs.h.  */
13902_ACEOF
13903cat confdefs.h >>conftest.$ac_ext
13904cat >>conftest.$ac_ext <<_ACEOF
13905/* end confdefs.h.  */
13906#include <unistd.h>
13907int
13908main ()
13909{
13910	(void)sysconf(_SC_PAGESIZE);
13911	(void)sysconf(_SC_PHYS_PAGES);
13912
13913  ;
13914  return 0;
13915}
13916_ACEOF
13917rm -f conftest.$ac_objext
13918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13919  (eval $ac_compile) 2>conftest.er1
13920  ac_status=$?
13921  grep -v '^ *+' conftest.er1 >conftest.err
13922  rm -f conftest.er1
13923  cat conftest.err >&5
13924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925  (exit $ac_status); } &&
13926	 { ac_try='test -z "$ac_c_werror_flag"
13927			 || test ! -s conftest.err'
13928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929  (eval $ac_try) 2>&5
13930  ac_status=$?
13931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932  (exit $ac_status); }; } &&
13933	 { ac_try='test -s conftest.$ac_objext'
13934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935  (eval $ac_try) 2>&5
13936  ac_status=$?
13937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938  (exit $ac_status); }; }; then
13939  echo "$as_me:$LINENO: result: yes" >&5
13940echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13941#define HAVE_SYSCONF 1
13942_ACEOF
13943
13944else
13945  echo "$as_me: failed program was:" >&5
13946sed 's/^/| /' conftest.$ac_ext >&5
13947
13948echo "$as_me:$LINENO: result: not usable" >&5
13949echo "${ECHO_T}not usable" >&6
13950fi
13951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13952
13953
13954echo "$as_me:$LINENO: checking size of int" >&5
13955echo $ECHO_N "checking size of int... $ECHO_C" >&6
13956if test "${ac_cv_sizeof_int+set}" = set; then
13957  echo $ECHO_N "(cached) $ECHO_C" >&6
13958else
13959  if test "$cross_compiling" = yes; then
13960  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13961echo "$as_me: error: failed to compile test program" >&2;}
13962   { (exit 1); exit 1; }; }
13963else
13964  cat >conftest.$ac_ext <<_ACEOF
13965/* confdefs.h.  */
13966_ACEOF
13967cat confdefs.h >>conftest.$ac_ext
13968cat >>conftest.$ac_ext <<_ACEOF
13969/* end confdefs.h.  */
13970#include <stdio.h>
13971		main()
13972		{
13973		  FILE *f=fopen("conftestval", "w");
13974		  if (!f) exit(1);
13975		  fprintf(f, "%d\n", (int)sizeof(int));
13976		  exit(0);
13977		}
13978_ACEOF
13979rm -f conftest$ac_exeext
13980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13981  (eval $ac_link) 2>&5
13982  ac_status=$?
13983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986  (eval $ac_try) 2>&5
13987  ac_status=$?
13988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989  (exit $ac_status); }; }; then
13990  ac_cv_sizeof_int=`cat conftestval`
13991else
13992  echo "$as_me: program exited with status $ac_status" >&5
13993echo "$as_me: failed program was:" >&5
13994sed 's/^/| /' conftest.$ac_ext >&5
13995
13996( exit $ac_status )
13997ac_cv_sizeof_int=0
13998fi
13999rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14000fi
14001fi
14002
14003echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14004echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14005cat >>confdefs.h <<_ACEOF
14006#define SIZEOF_INT $ac_cv_sizeof_int
14007_ACEOF
14008
14009
14010echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
14011echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
14012bcopy_test_prog='
14013main() {
14014  char buf[10];
14015  strcpy(buf, "abcdefghi");
14016  mch_memmove(buf, buf + 2, 3);
14017  if (strncmp(buf, "ababcf", 6))
14018    exit(1);
14019  strcpy(buf, "abcdefghi");
14020  mch_memmove(buf + 2, buf, 3);
14021  if (strncmp(buf, "cdedef", 6))
14022    exit(1);
14023  exit(0); /* libc version works properly.  */
14024}'
14025
14026
14027if test "$cross_compiling" = yes; then
14028  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14029echo "$as_me: error: failed to compile test program" >&2;}
14030   { (exit 1); exit 1; }; }
14031else
14032  cat >conftest.$ac_ext <<_ACEOF
14033/* confdefs.h.  */
14034_ACEOF
14035cat confdefs.h >>conftest.$ac_ext
14036cat >>conftest.$ac_ext <<_ACEOF
14037/* end confdefs.h.  */
14038#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14039_ACEOF
14040rm -f conftest$ac_exeext
14041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14042  (eval $ac_link) 2>&5
14043  ac_status=$?
14044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047  (eval $ac_try) 2>&5
14048  ac_status=$?
14049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050  (exit $ac_status); }; }; then
14051  cat >>confdefs.h <<\_ACEOF
14052#define USEMEMMOVE 1
14053_ACEOF
14054 echo "$as_me:$LINENO: result: memmove does" >&5
14055echo "${ECHO_T}memmove does" >&6
14056else
14057  echo "$as_me: program exited with status $ac_status" >&5
14058echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
14061( exit $ac_status )
14062if test "$cross_compiling" = yes; then
14063  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14064echo "$as_me: error: failed to compile test program" >&2;}
14065   { (exit 1); exit 1; }; }
14066else
14067  cat >conftest.$ac_ext <<_ACEOF
14068/* confdefs.h.  */
14069_ACEOF
14070cat confdefs.h >>conftest.$ac_ext
14071cat >>conftest.$ac_ext <<_ACEOF
14072/* end confdefs.h.  */
14073#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14074_ACEOF
14075rm -f conftest$ac_exeext
14076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14077  (eval $ac_link) 2>&5
14078  ac_status=$?
14079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082  (eval $ac_try) 2>&5
14083  ac_status=$?
14084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085  (exit $ac_status); }; }; then
14086  cat >>confdefs.h <<\_ACEOF
14087#define USEBCOPY 1
14088_ACEOF
14089 echo "$as_me:$LINENO: result: bcopy does" >&5
14090echo "${ECHO_T}bcopy does" >&6
14091else
14092  echo "$as_me: program exited with status $ac_status" >&5
14093echo "$as_me: failed program was:" >&5
14094sed 's/^/| /' conftest.$ac_ext >&5
14095
14096( exit $ac_status )
14097if test "$cross_compiling" = yes; then
14098  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14099echo "$as_me: error: failed to compile test program" >&2;}
14100   { (exit 1); exit 1; }; }
14101else
14102  cat >conftest.$ac_ext <<_ACEOF
14103/* confdefs.h.  */
14104_ACEOF
14105cat confdefs.h >>conftest.$ac_ext
14106cat >>conftest.$ac_ext <<_ACEOF
14107/* end confdefs.h.  */
14108#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14109_ACEOF
14110rm -f conftest$ac_exeext
14111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112  (eval $ac_link) 2>&5
14113  ac_status=$?
14114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117  (eval $ac_try) 2>&5
14118  ac_status=$?
14119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120  (exit $ac_status); }; }; then
14121  cat >>confdefs.h <<\_ACEOF
14122#define USEMEMCPY 1
14123_ACEOF
14124 echo "$as_me:$LINENO: result: memcpy does" >&5
14125echo "${ECHO_T}memcpy does" >&6
14126else
14127  echo "$as_me: program exited with status $ac_status" >&5
14128echo "$as_me: failed program was:" >&5
14129sed 's/^/| /' conftest.$ac_ext >&5
14130
14131( exit $ac_status )
14132echo "$as_me:$LINENO: result: no" >&5
14133echo "${ECHO_T}no" >&6
14134fi
14135rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14136fi
14137fi
14138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14139fi
14140fi
14141rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14142fi
14143
14144
14145if test "$enable_multibyte" = "yes"; then
14146  cflags_save=$CFLAGS
14147  ldflags_save=$LDFLAGS
14148  if test -n "$x_includes" ; then
14149    CFLAGS="$CFLAGS -I$x_includes"
14150    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
14151    echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
14152echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
14153    cat >conftest.$ac_ext <<_ACEOF
14154/* confdefs.h.  */
14155_ACEOF
14156cat confdefs.h >>conftest.$ac_ext
14157cat >>conftest.$ac_ext <<_ACEOF
14158/* end confdefs.h.  */
14159#include <X11/Xlocale.h>
14160int
14161main ()
14162{
14163
14164  ;
14165  return 0;
14166}
14167_ACEOF
14168rm -f conftest.$ac_objext
14169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170  (eval $ac_compile) 2>conftest.er1
14171  ac_status=$?
14172  grep -v '^ *+' conftest.er1 >conftest.err
14173  rm -f conftest.er1
14174  cat conftest.err >&5
14175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176  (exit $ac_status); } &&
14177	 { ac_try='test -z "$ac_c_werror_flag"
14178			 || test ! -s conftest.err'
14179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180  (eval $ac_try) 2>&5
14181  ac_status=$?
14182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183  (exit $ac_status); }; } &&
14184	 { ac_try='test -s conftest.$ac_objext'
14185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186  (eval $ac_try) 2>&5
14187  ac_status=$?
14188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189  (exit $ac_status); }; }; then
14190  cat >conftest.$ac_ext <<_ACEOF
14191/* confdefs.h.  */
14192_ACEOF
14193cat confdefs.h >>conftest.$ac_ext
14194cat >>conftest.$ac_ext <<_ACEOF
14195/* end confdefs.h.  */
14196
14197/* Override any gcc2 internal prototype to avoid an error.  */
14198#ifdef __cplusplus
14199extern "C"
14200#endif
14201/* We use char because int might match the return type of a gcc2
14202   builtin and then its argument prototype would still apply.  */
14203char _Xsetlocale ();
14204int
14205main ()
14206{
14207_Xsetlocale ();
14208  ;
14209  return 0;
14210}
14211_ACEOF
14212rm -f conftest.$ac_objext conftest$ac_exeext
14213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14214  (eval $ac_link) 2>conftest.er1
14215  ac_status=$?
14216  grep -v '^ *+' conftest.er1 >conftest.err
14217  rm -f conftest.er1
14218  cat conftest.err >&5
14219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220  (exit $ac_status); } &&
14221	 { ac_try='test -z "$ac_c_werror_flag"
14222			 || test ! -s conftest.err'
14223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224  (eval $ac_try) 2>&5
14225  ac_status=$?
14226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227  (exit $ac_status); }; } &&
14228	 { ac_try='test -s conftest$ac_exeext'
14229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230  (eval $ac_try) 2>&5
14231  ac_status=$?
14232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233  (exit $ac_status); }; }; then
14234  echo "$as_me:$LINENO: result: yes" >&5
14235echo "${ECHO_T}yes" >&6
14236		cat >>confdefs.h <<\_ACEOF
14237#define X_LOCALE 1
14238_ACEOF
14239
14240else
14241  echo "$as_me: failed program was:" >&5
14242sed 's/^/| /' conftest.$ac_ext >&5
14243
14244echo "$as_me:$LINENO: result: no" >&5
14245echo "${ECHO_T}no" >&6
14246fi
14247rm -f conftest.err conftest.$ac_objext \
14248      conftest$ac_exeext conftest.$ac_ext
14249else
14250  echo "$as_me: failed program was:" >&5
14251sed 's/^/| /' conftest.$ac_ext >&5
14252
14253echo "$as_me:$LINENO: result: no" >&5
14254echo "${ECHO_T}no" >&6
14255fi
14256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14257  fi
14258  CFLAGS=$cflags_save
14259  LDFLAGS=$ldflags_save
14260fi
14261
14262echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14263echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14264if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14265  echo $ECHO_N "(cached) $ECHO_C" >&6
14266else
14267  ac_check_lib_save_LIBS=$LIBS
14268LIBS="-lxpg4  $LIBS"
14269cat >conftest.$ac_ext <<_ACEOF
14270/* confdefs.h.  */
14271_ACEOF
14272cat confdefs.h >>conftest.$ac_ext
14273cat >>conftest.$ac_ext <<_ACEOF
14274/* end confdefs.h.  */
14275
14276/* Override any gcc2 internal prototype to avoid an error.  */
14277#ifdef __cplusplus
14278extern "C"
14279#endif
14280/* We use char because int might match the return type of a gcc2
14281   builtin and then its argument prototype would still apply.  */
14282char _xpg4_setrunelocale ();
14283int
14284main ()
14285{
14286_xpg4_setrunelocale ();
14287  ;
14288  return 0;
14289}
14290_ACEOF
14291rm -f conftest.$ac_objext conftest$ac_exeext
14292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293  (eval $ac_link) 2>conftest.er1
14294  ac_status=$?
14295  grep -v '^ *+' conftest.er1 >conftest.err
14296  rm -f conftest.er1
14297  cat conftest.err >&5
14298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299  (exit $ac_status); } &&
14300	 { ac_try='test -z "$ac_c_werror_flag"
14301			 || test ! -s conftest.err'
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); }; } &&
14307	 { ac_try='test -s conftest$ac_exeext'
14308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309  (eval $ac_try) 2>&5
14310  ac_status=$?
14311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312  (exit $ac_status); }; }; then
14313  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14314else
14315  echo "$as_me: failed program was:" >&5
14316sed 's/^/| /' conftest.$ac_ext >&5
14317
14318ac_cv_lib_xpg4__xpg4_setrunelocale=no
14319fi
14320rm -f conftest.err conftest.$ac_objext \
14321      conftest$ac_exeext conftest.$ac_ext
14322LIBS=$ac_check_lib_save_LIBS
14323fi
14324echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14325echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14326if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
14327  LIBS="$LIBS -lxpg4"
14328fi
14329
14330
14331echo "$as_me:$LINENO: checking how to create tags" >&5
14332echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
14333test -f tags && mv tags tags.save
14334if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14335  TAGPRG="ctags -I INIT+ --fields=+S"
14336else
14337  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14338  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14339  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14340  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14341  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14342  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14343  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14344fi
14345test -f tags.save && mv tags.save tags
14346echo "$as_me:$LINENO: result: $TAGPRG" >&5
14347echo "${ECHO_T}$TAGPRG" >&6
14348
14349echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14350echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
14351MANDEF="man"
14352(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14353echo "$as_me:$LINENO: result: $MANDEF" >&5
14354echo "${ECHO_T}$MANDEF" >&6
14355if test "$MANDEF" = "man -s"; then
14356  cat >>confdefs.h <<\_ACEOF
14357#define USEMAN_S 1
14358_ACEOF
14359
14360fi
14361
14362echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14363echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
14364# Check whether --enable-nls or --disable-nls was given.
14365if test "${enable_nls+set}" = set; then
14366  enableval="$enable_nls"
14367
14368else
14369  enable_nls="yes"
14370fi;
14371
14372if test "$enable_nls" = "yes"; then
14373  echo "$as_me:$LINENO: result: no" >&5
14374echo "${ECHO_T}no" >&6
14375
14376  INSTALL_LANGS=install-languages
14377
14378  INSTALL_TOOL_LANGS=install-tool-languages
14379
14380
14381  # Extract the first word of "msgfmt", so it can be a program name with args.
14382set dummy msgfmt; ac_word=$2
14383echo "$as_me:$LINENO: checking for $ac_word" >&5
14384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14385if test "${ac_cv_prog_MSGFMT+set}" = set; then
14386  echo $ECHO_N "(cached) $ECHO_C" >&6
14387else
14388  if test -n "$MSGFMT"; then
14389  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14390else
14391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392for as_dir in $PATH
14393do
14394  IFS=$as_save_IFS
14395  test -z "$as_dir" && as_dir=.
14396  for ac_exec_ext in '' $ac_executable_extensions; do
14397  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14398    ac_cv_prog_MSGFMT="msgfmt"
14399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14400    break 2
14401  fi
14402done
14403done
14404
14405fi
14406fi
14407MSGFMT=$ac_cv_prog_MSGFMT
14408if test -n "$MSGFMT"; then
14409  echo "$as_me:$LINENO: result: $MSGFMT" >&5
14410echo "${ECHO_T}$MSGFMT" >&6
14411else
14412  echo "$as_me:$LINENO: result: no" >&5
14413echo "${ECHO_T}no" >&6
14414fi
14415
14416  echo "$as_me:$LINENO: checking for NLS" >&5
14417echo $ECHO_N "checking for NLS... $ECHO_C" >&6
14418  if test -f po/Makefile; then
14419    have_gettext="no"
14420    if test -n "$MSGFMT"; then
14421      cat >conftest.$ac_ext <<_ACEOF
14422/* confdefs.h.  */
14423_ACEOF
14424cat confdefs.h >>conftest.$ac_ext
14425cat >>conftest.$ac_ext <<_ACEOF
14426/* end confdefs.h.  */
14427#include <libintl.h>
14428int
14429main ()
14430{
14431gettext("Test");
14432  ;
14433  return 0;
14434}
14435_ACEOF
14436rm -f conftest.$ac_objext conftest$ac_exeext
14437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438  (eval $ac_link) 2>conftest.er1
14439  ac_status=$?
14440  grep -v '^ *+' conftest.er1 >conftest.err
14441  rm -f conftest.er1
14442  cat conftest.err >&5
14443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444  (exit $ac_status); } &&
14445	 { ac_try='test -z "$ac_c_werror_flag"
14446			 || test ! -s conftest.err'
14447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448  (eval $ac_try) 2>&5
14449  ac_status=$?
14450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451  (exit $ac_status); }; } &&
14452	 { ac_try='test -s conftest$ac_exeext'
14453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454  (eval $ac_try) 2>&5
14455  ac_status=$?
14456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457  (exit $ac_status); }; }; then
14458  echo "$as_me:$LINENO: result: gettext() works" >&5
14459echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
14460else
14461  echo "$as_me: failed program was:" >&5
14462sed 's/^/| /' conftest.$ac_ext >&5
14463
14464olibs=$LIBS
14465	  LIBS="$LIBS -lintl"
14466	  cat >conftest.$ac_ext <<_ACEOF
14467/* confdefs.h.  */
14468_ACEOF
14469cat confdefs.h >>conftest.$ac_ext
14470cat >>conftest.$ac_ext <<_ACEOF
14471/* end confdefs.h.  */
14472#include <libintl.h>
14473int
14474main ()
14475{
14476gettext("Test");
14477  ;
14478  return 0;
14479}
14480_ACEOF
14481rm -f conftest.$ac_objext conftest$ac_exeext
14482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14483  (eval $ac_link) 2>conftest.er1
14484  ac_status=$?
14485  grep -v '^ *+' conftest.er1 >conftest.err
14486  rm -f conftest.er1
14487  cat conftest.err >&5
14488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489  (exit $ac_status); } &&
14490	 { ac_try='test -z "$ac_c_werror_flag"
14491			 || test ! -s conftest.err'
14492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493  (eval $ac_try) 2>&5
14494  ac_status=$?
14495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496  (exit $ac_status); }; } &&
14497	 { ac_try='test -s conftest$ac_exeext'
14498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499  (eval $ac_try) 2>&5
14500  ac_status=$?
14501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502  (exit $ac_status); }; }; then
14503  echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14504echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
14505else
14506  echo "$as_me: failed program was:" >&5
14507sed 's/^/| /' conftest.$ac_ext >&5
14508
14509echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14510echo "${ECHO_T}gettext() doesn't work" >&6;
14511	      LIBS=$olibs
14512fi
14513rm -f conftest.err conftest.$ac_objext \
14514      conftest$ac_exeext conftest.$ac_ext
14515fi
14516rm -f conftest.err conftest.$ac_objext \
14517      conftest$ac_exeext conftest.$ac_ext
14518    else
14519      echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14520echo "${ECHO_T}msgfmt not found - disabled" >&6;
14521    fi
14522    if test $have_gettext = "yes"; then
14523      cat >>confdefs.h <<\_ACEOF
14524#define HAVE_GETTEXT 1
14525_ACEOF
14526
14527      MAKEMO=yes
14528
14529
14530for ac_func in bind_textdomain_codeset
14531do
14532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14533echo "$as_me:$LINENO: checking for $ac_func" >&5
14534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14535if eval "test \"\${$as_ac_var+set}\" = set"; then
14536  echo $ECHO_N "(cached) $ECHO_C" >&6
14537else
14538  cat >conftest.$ac_ext <<_ACEOF
14539/* confdefs.h.  */
14540_ACEOF
14541cat confdefs.h >>conftest.$ac_ext
14542cat >>conftest.$ac_ext <<_ACEOF
14543/* end confdefs.h.  */
14544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14545   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14546#define $ac_func innocuous_$ac_func
14547
14548/* System header to define __stub macros and hopefully few prototypes,
14549    which can conflict with char $ac_func (); below.
14550    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14551    <limits.h> exists even on freestanding compilers.  */
14552
14553#ifdef __STDC__
14554# include <limits.h>
14555#else
14556# include <assert.h>
14557#endif
14558
14559#undef $ac_func
14560
14561/* Override any gcc2 internal prototype to avoid an error.  */
14562#ifdef __cplusplus
14563extern "C"
14564{
14565#endif
14566/* We use char because int might match the return type of a gcc2
14567   builtin and then its argument prototype would still apply.  */
14568char $ac_func ();
14569/* The GNU C library defines this for functions which it implements
14570    to always fail with ENOSYS.  Some functions are actually named
14571    something starting with __ and the normal name is an alias.  */
14572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14573choke me
14574#else
14575char (*f) () = $ac_func;
14576#endif
14577#ifdef __cplusplus
14578}
14579#endif
14580
14581int
14582main ()
14583{
14584return f != $ac_func;
14585  ;
14586  return 0;
14587}
14588_ACEOF
14589rm -f conftest.$ac_objext conftest$ac_exeext
14590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14591  (eval $ac_link) 2>conftest.er1
14592  ac_status=$?
14593  grep -v '^ *+' conftest.er1 >conftest.err
14594  rm -f conftest.er1
14595  cat conftest.err >&5
14596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597  (exit $ac_status); } &&
14598	 { ac_try='test -z "$ac_c_werror_flag"
14599			 || test ! -s conftest.err'
14600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601  (eval $ac_try) 2>&5
14602  ac_status=$?
14603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604  (exit $ac_status); }; } &&
14605	 { ac_try='test -s conftest$ac_exeext'
14606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607  (eval $ac_try) 2>&5
14608  ac_status=$?
14609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610  (exit $ac_status); }; }; then
14611  eval "$as_ac_var=yes"
14612else
14613  echo "$as_me: failed program was:" >&5
14614sed 's/^/| /' conftest.$ac_ext >&5
14615
14616eval "$as_ac_var=no"
14617fi
14618rm -f conftest.err conftest.$ac_objext \
14619      conftest$ac_exeext conftest.$ac_ext
14620fi
14621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14622echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14623if test `eval echo '${'$as_ac_var'}'` = yes; then
14624  cat >>confdefs.h <<_ACEOF
14625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14626_ACEOF
14627
14628fi
14629done
14630
14631            echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14632echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14633      cat >conftest.$ac_ext <<_ACEOF
14634/* confdefs.h.  */
14635_ACEOF
14636cat confdefs.h >>conftest.$ac_ext
14637cat >>conftest.$ac_ext <<_ACEOF
14638/* end confdefs.h.  */
14639#include <libintl.h>
14640		extern int _nl_msg_cat_cntr;
14641int
14642main ()
14643{
14644++_nl_msg_cat_cntr;
14645  ;
14646  return 0;
14647}
14648_ACEOF
14649rm -f conftest.$ac_objext conftest$ac_exeext
14650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651  (eval $ac_link) 2>conftest.er1
14652  ac_status=$?
14653  grep -v '^ *+' conftest.er1 >conftest.err
14654  rm -f conftest.er1
14655  cat conftest.err >&5
14656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657  (exit $ac_status); } &&
14658	 { ac_try='test -z "$ac_c_werror_flag"
14659			 || test ! -s conftest.err'
14660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661  (eval $ac_try) 2>&5
14662  ac_status=$?
14663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664  (exit $ac_status); }; } &&
14665	 { ac_try='test -s conftest$ac_exeext'
14666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667  (eval $ac_try) 2>&5
14668  ac_status=$?
14669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670  (exit $ac_status); }; }; then
14671  echo "$as_me:$LINENO: result: yes" >&5
14672echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
14673#define HAVE_NL_MSG_CAT_CNTR 1
14674_ACEOF
14675
14676else
14677  echo "$as_me: failed program was:" >&5
14678sed 's/^/| /' conftest.$ac_ext >&5
14679
14680echo "$as_me:$LINENO: result: no" >&5
14681echo "${ECHO_T}no" >&6
14682fi
14683rm -f conftest.err conftest.$ac_objext \
14684      conftest$ac_exeext conftest.$ac_ext
14685    fi
14686  else
14687    echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14688echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
14689  fi
14690else
14691  echo "$as_me:$LINENO: result: yes" >&5
14692echo "${ECHO_T}yes" >&6
14693fi
14694
14695if test "${ac_cv_header_dlfcn_h+set}" = set; then
14696  echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14697echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14698if test "${ac_cv_header_dlfcn_h+set}" = set; then
14699  echo $ECHO_N "(cached) $ECHO_C" >&6
14700fi
14701echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14702echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14703else
14704  # Is the header compilable?
14705echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14706echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14707cat >conftest.$ac_ext <<_ACEOF
14708/* confdefs.h.  */
14709_ACEOF
14710cat confdefs.h >>conftest.$ac_ext
14711cat >>conftest.$ac_ext <<_ACEOF
14712/* end confdefs.h.  */
14713$ac_includes_default
14714#include <dlfcn.h>
14715_ACEOF
14716rm -f conftest.$ac_objext
14717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14718  (eval $ac_compile) 2>conftest.er1
14719  ac_status=$?
14720  grep -v '^ *+' conftest.er1 >conftest.err
14721  rm -f conftest.er1
14722  cat conftest.err >&5
14723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724  (exit $ac_status); } &&
14725	 { ac_try='test -z "$ac_c_werror_flag"
14726			 || test ! -s conftest.err'
14727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728  (eval $ac_try) 2>&5
14729  ac_status=$?
14730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731  (exit $ac_status); }; } &&
14732	 { ac_try='test -s conftest.$ac_objext'
14733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734  (eval $ac_try) 2>&5
14735  ac_status=$?
14736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737  (exit $ac_status); }; }; then
14738  ac_header_compiler=yes
14739else
14740  echo "$as_me: failed program was:" >&5
14741sed 's/^/| /' conftest.$ac_ext >&5
14742
14743ac_header_compiler=no
14744fi
14745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14747echo "${ECHO_T}$ac_header_compiler" >&6
14748
14749# Is the header present?
14750echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14751echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14752cat >conftest.$ac_ext <<_ACEOF
14753/* confdefs.h.  */
14754_ACEOF
14755cat confdefs.h >>conftest.$ac_ext
14756cat >>conftest.$ac_ext <<_ACEOF
14757/* end confdefs.h.  */
14758#include <dlfcn.h>
14759_ACEOF
14760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14761  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14762  ac_status=$?
14763  grep -v '^ *+' conftest.er1 >conftest.err
14764  rm -f conftest.er1
14765  cat conftest.err >&5
14766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767  (exit $ac_status); } >/dev/null; then
14768  if test -s conftest.err; then
14769    ac_cpp_err=$ac_c_preproc_warn_flag
14770    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14771  else
14772    ac_cpp_err=
14773  fi
14774else
14775  ac_cpp_err=yes
14776fi
14777if test -z "$ac_cpp_err"; then
14778  ac_header_preproc=yes
14779else
14780  echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783  ac_header_preproc=no
14784fi
14785rm -f conftest.err conftest.$ac_ext
14786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14787echo "${ECHO_T}$ac_header_preproc" >&6
14788
14789# So?  What about this header?
14790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14791  yes:no: )
14792    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14793echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14794    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14795echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14796    ac_header_preproc=yes
14797    ;;
14798  no:yes:* )
14799    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14800echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14801    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
14802echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
14803    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14804echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14805    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
14806echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14807    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14808echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14809    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14810echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14811    (
14812      cat <<\_ASBOX
14813## ------------------------------------------ ##
14814## Report this to the AC_PACKAGE_NAME lists.  ##
14815## ------------------------------------------ ##
14816_ASBOX
14817    ) |
14818      sed "s/^/$as_me: WARNING:     /" >&2
14819    ;;
14820esac
14821echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14822echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14823if test "${ac_cv_header_dlfcn_h+set}" = set; then
14824  echo $ECHO_N "(cached) $ECHO_C" >&6
14825else
14826  ac_cv_header_dlfcn_h=$ac_header_preproc
14827fi
14828echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14829echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14830
14831fi
14832if test $ac_cv_header_dlfcn_h = yes; then
14833  DLL=dlfcn.h
14834else
14835  if test "${ac_cv_header_dl_h+set}" = set; then
14836  echo "$as_me:$LINENO: checking for dl.h" >&5
14837echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14838if test "${ac_cv_header_dl_h+set}" = set; then
14839  echo $ECHO_N "(cached) $ECHO_C" >&6
14840fi
14841echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14842echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14843else
14844  # Is the header compilable?
14845echo "$as_me:$LINENO: checking dl.h usability" >&5
14846echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14847cat >conftest.$ac_ext <<_ACEOF
14848/* confdefs.h.  */
14849_ACEOF
14850cat confdefs.h >>conftest.$ac_ext
14851cat >>conftest.$ac_ext <<_ACEOF
14852/* end confdefs.h.  */
14853$ac_includes_default
14854#include <dl.h>
14855_ACEOF
14856rm -f conftest.$ac_objext
14857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858  (eval $ac_compile) 2>conftest.er1
14859  ac_status=$?
14860  grep -v '^ *+' conftest.er1 >conftest.err
14861  rm -f conftest.er1
14862  cat conftest.err >&5
14863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864  (exit $ac_status); } &&
14865	 { ac_try='test -z "$ac_c_werror_flag"
14866			 || test ! -s conftest.err'
14867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868  (eval $ac_try) 2>&5
14869  ac_status=$?
14870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871  (exit $ac_status); }; } &&
14872	 { ac_try='test -s conftest.$ac_objext'
14873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874  (eval $ac_try) 2>&5
14875  ac_status=$?
14876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877  (exit $ac_status); }; }; then
14878  ac_header_compiler=yes
14879else
14880  echo "$as_me: failed program was:" >&5
14881sed 's/^/| /' conftest.$ac_ext >&5
14882
14883ac_header_compiler=no
14884fi
14885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14886echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14887echo "${ECHO_T}$ac_header_compiler" >&6
14888
14889# Is the header present?
14890echo "$as_me:$LINENO: checking dl.h presence" >&5
14891echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14892cat >conftest.$ac_ext <<_ACEOF
14893/* confdefs.h.  */
14894_ACEOF
14895cat confdefs.h >>conftest.$ac_ext
14896cat >>conftest.$ac_ext <<_ACEOF
14897/* end confdefs.h.  */
14898#include <dl.h>
14899_ACEOF
14900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14901  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14902  ac_status=$?
14903  grep -v '^ *+' conftest.er1 >conftest.err
14904  rm -f conftest.er1
14905  cat conftest.err >&5
14906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907  (exit $ac_status); } >/dev/null; then
14908  if test -s conftest.err; then
14909    ac_cpp_err=$ac_c_preproc_warn_flag
14910    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14911  else
14912    ac_cpp_err=
14913  fi
14914else
14915  ac_cpp_err=yes
14916fi
14917if test -z "$ac_cpp_err"; then
14918  ac_header_preproc=yes
14919else
14920  echo "$as_me: failed program was:" >&5
14921sed 's/^/| /' conftest.$ac_ext >&5
14922
14923  ac_header_preproc=no
14924fi
14925rm -f conftest.err conftest.$ac_ext
14926echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14927echo "${ECHO_T}$ac_header_preproc" >&6
14928
14929# So?  What about this header?
14930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14931  yes:no: )
14932    { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14933echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14934    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14935echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14936    ac_header_preproc=yes
14937    ;;
14938  no:yes:* )
14939    { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14940echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14941    { echo "$as_me:$LINENO: WARNING: dl.h:     check for missing prerequisite headers?" >&5
14942echo "$as_me: WARNING: dl.h:     check for missing prerequisite headers?" >&2;}
14943    { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14944echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14945    { echo "$as_me:$LINENO: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&5
14946echo "$as_me: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14947    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14948echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14949    { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14950echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14951    (
14952      cat <<\_ASBOX
14953## ------------------------------------------ ##
14954## Report this to the AC_PACKAGE_NAME lists.  ##
14955## ------------------------------------------ ##
14956_ASBOX
14957    ) |
14958      sed "s/^/$as_me: WARNING:     /" >&2
14959    ;;
14960esac
14961echo "$as_me:$LINENO: checking for dl.h" >&5
14962echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14963if test "${ac_cv_header_dl_h+set}" = set; then
14964  echo $ECHO_N "(cached) $ECHO_C" >&6
14965else
14966  ac_cv_header_dl_h=$ac_header_preproc
14967fi
14968echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14969echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14970
14971fi
14972if test $ac_cv_header_dl_h = yes; then
14973  DLL=dl.h
14974fi
14975
14976
14977fi
14978
14979
14980if test x${DLL} = xdlfcn.h; then
14981
14982cat >>confdefs.h <<\_ACEOF
14983#define HAVE_DLFCN_H 1
14984_ACEOF
14985
14986  echo "$as_me:$LINENO: checking for dlopen()" >&5
14987echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14988  cat >conftest.$ac_ext <<_ACEOF
14989/* confdefs.h.  */
14990_ACEOF
14991cat confdefs.h >>conftest.$ac_ext
14992cat >>conftest.$ac_ext <<_ACEOF
14993/* end confdefs.h.  */
14994
14995int
14996main ()
14997{
14998
14999		extern void* dlopen();
15000		dlopen();
15001
15002  ;
15003  return 0;
15004}
15005_ACEOF
15006rm -f conftest.$ac_objext conftest$ac_exeext
15007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15008  (eval $ac_link) 2>conftest.er1
15009  ac_status=$?
15010  grep -v '^ *+' conftest.er1 >conftest.err
15011  rm -f conftest.er1
15012  cat conftest.err >&5
15013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014  (exit $ac_status); } &&
15015	 { ac_try='test -z "$ac_c_werror_flag"
15016			 || test ! -s conftest.err'
15017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018  (eval $ac_try) 2>&5
15019  ac_status=$?
15020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021  (exit $ac_status); }; } &&
15022	 { ac_try='test -s conftest$ac_exeext'
15023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024  (eval $ac_try) 2>&5
15025  ac_status=$?
15026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027  (exit $ac_status); }; }; then
15028  echo "$as_me:$LINENO: result: yes" >&5
15029echo "${ECHO_T}yes" >&6;
15030
15031cat >>confdefs.h <<\_ACEOF
15032#define HAVE_DLOPEN 1
15033_ACEOF
15034
15035else
15036  echo "$as_me: failed program was:" >&5
15037sed 's/^/| /' conftest.$ac_ext >&5
15038
15039echo "$as_me:$LINENO: result: no" >&5
15040echo "${ECHO_T}no" >&6;
15041	      echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
15042echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
15043	      olibs=$LIBS
15044	      LIBS="$LIBS -ldl"
15045	      cat >conftest.$ac_ext <<_ACEOF
15046/* confdefs.h.  */
15047_ACEOF
15048cat confdefs.h >>conftest.$ac_ext
15049cat >>conftest.$ac_ext <<_ACEOF
15050/* end confdefs.h.  */
15051
15052int
15053main ()
15054{
15055
15056				extern void* dlopen();
15057				dlopen();
15058
15059  ;
15060  return 0;
15061}
15062_ACEOF
15063rm -f conftest.$ac_objext conftest$ac_exeext
15064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15065  (eval $ac_link) 2>conftest.er1
15066  ac_status=$?
15067  grep -v '^ *+' conftest.er1 >conftest.err
15068  rm -f conftest.er1
15069  cat conftest.err >&5
15070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071  (exit $ac_status); } &&
15072	 { ac_try='test -z "$ac_c_werror_flag"
15073			 || test ! -s conftest.err'
15074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075  (eval $ac_try) 2>&5
15076  ac_status=$?
15077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078  (exit $ac_status); }; } &&
15079	 { ac_try='test -s conftest$ac_exeext'
15080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081  (eval $ac_try) 2>&5
15082  ac_status=$?
15083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084  (exit $ac_status); }; }; then
15085  echo "$as_me:$LINENO: result: yes" >&5
15086echo "${ECHO_T}yes" >&6;
15087
15088cat >>confdefs.h <<\_ACEOF
15089#define HAVE_DLOPEN 1
15090_ACEOF
15091
15092else
15093  echo "$as_me: failed program was:" >&5
15094sed 's/^/| /' conftest.$ac_ext >&5
15095
15096echo "$as_me:$LINENO: result: no" >&5
15097echo "${ECHO_T}no" >&6;
15098			  LIBS=$olibs
15099fi
15100rm -f conftest.err conftest.$ac_objext \
15101      conftest$ac_exeext conftest.$ac_ext
15102fi
15103rm -f conftest.err conftest.$ac_objext \
15104      conftest$ac_exeext conftest.$ac_ext
15105      echo "$as_me:$LINENO: checking for dlsym()" >&5
15106echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
15107  cat >conftest.$ac_ext <<_ACEOF
15108/* confdefs.h.  */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h.  */
15113
15114int
15115main ()
15116{
15117
15118		extern void* dlsym();
15119		dlsym();
15120
15121  ;
15122  return 0;
15123}
15124_ACEOF
15125rm -f conftest.$ac_objext conftest$ac_exeext
15126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15127  (eval $ac_link) 2>conftest.er1
15128  ac_status=$?
15129  grep -v '^ *+' conftest.er1 >conftest.err
15130  rm -f conftest.er1
15131  cat conftest.err >&5
15132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133  (exit $ac_status); } &&
15134	 { ac_try='test -z "$ac_c_werror_flag"
15135			 || test ! -s conftest.err'
15136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137  (eval $ac_try) 2>&5
15138  ac_status=$?
15139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140  (exit $ac_status); }; } &&
15141	 { ac_try='test -s conftest$ac_exeext'
15142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143  (eval $ac_try) 2>&5
15144  ac_status=$?
15145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146  (exit $ac_status); }; }; then
15147  echo "$as_me:$LINENO: result: yes" >&5
15148echo "${ECHO_T}yes" >&6;
15149
15150cat >>confdefs.h <<\_ACEOF
15151#define HAVE_DLSYM 1
15152_ACEOF
15153
15154else
15155  echo "$as_me: failed program was:" >&5
15156sed 's/^/| /' conftest.$ac_ext >&5
15157
15158echo "$as_me:$LINENO: result: no" >&5
15159echo "${ECHO_T}no" >&6;
15160	      echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
15161echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
15162	      olibs=$LIBS
15163	      LIBS="$LIBS -ldl"
15164	      cat >conftest.$ac_ext <<_ACEOF
15165/* confdefs.h.  */
15166_ACEOF
15167cat confdefs.h >>conftest.$ac_ext
15168cat >>conftest.$ac_ext <<_ACEOF
15169/* end confdefs.h.  */
15170
15171int
15172main ()
15173{
15174
15175				extern void* dlsym();
15176				dlsym();
15177
15178  ;
15179  return 0;
15180}
15181_ACEOF
15182rm -f conftest.$ac_objext conftest$ac_exeext
15183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15184  (eval $ac_link) 2>conftest.er1
15185  ac_status=$?
15186  grep -v '^ *+' conftest.er1 >conftest.err
15187  rm -f conftest.er1
15188  cat conftest.err >&5
15189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190  (exit $ac_status); } &&
15191	 { ac_try='test -z "$ac_c_werror_flag"
15192			 || test ! -s conftest.err'
15193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194  (eval $ac_try) 2>&5
15195  ac_status=$?
15196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197  (exit $ac_status); }; } &&
15198	 { ac_try='test -s conftest$ac_exeext'
15199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200  (eval $ac_try) 2>&5
15201  ac_status=$?
15202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203  (exit $ac_status); }; }; then
15204  echo "$as_me:$LINENO: result: yes" >&5
15205echo "${ECHO_T}yes" >&6;
15206
15207cat >>confdefs.h <<\_ACEOF
15208#define HAVE_DLSYM 1
15209_ACEOF
15210
15211else
15212  echo "$as_me: failed program was:" >&5
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
15215echo "$as_me:$LINENO: result: no" >&5
15216echo "${ECHO_T}no" >&6;
15217			  LIBS=$olibs
15218fi
15219rm -f conftest.err conftest.$ac_objext \
15220      conftest$ac_exeext conftest.$ac_ext
15221fi
15222rm -f conftest.err conftest.$ac_objext \
15223      conftest$ac_exeext conftest.$ac_ext
15224elif test x${DLL} = xdl.h; then
15225
15226cat >>confdefs.h <<\_ACEOF
15227#define HAVE_DL_H 1
15228_ACEOF
15229
15230  echo "$as_me:$LINENO: checking for shl_load()" >&5
15231echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15232  cat >conftest.$ac_ext <<_ACEOF
15233/* confdefs.h.  */
15234_ACEOF
15235cat confdefs.h >>conftest.$ac_ext
15236cat >>conftest.$ac_ext <<_ACEOF
15237/* end confdefs.h.  */
15238
15239int
15240main ()
15241{
15242
15243		extern void* shl_load();
15244		shl_load();
15245
15246  ;
15247  return 0;
15248}
15249_ACEOF
15250rm -f conftest.$ac_objext conftest$ac_exeext
15251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252  (eval $ac_link) 2>conftest.er1
15253  ac_status=$?
15254  grep -v '^ *+' conftest.er1 >conftest.err
15255  rm -f conftest.er1
15256  cat conftest.err >&5
15257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258  (exit $ac_status); } &&
15259	 { ac_try='test -z "$ac_c_werror_flag"
15260			 || test ! -s conftest.err'
15261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262  (eval $ac_try) 2>&5
15263  ac_status=$?
15264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265  (exit $ac_status); }; } &&
15266	 { ac_try='test -s conftest$ac_exeext'
15267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268  (eval $ac_try) 2>&5
15269  ac_status=$?
15270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271  (exit $ac_status); }; }; then
15272  echo "$as_me:$LINENO: result: yes" >&5
15273echo "${ECHO_T}yes" >&6;
15274
15275cat >>confdefs.h <<\_ACEOF
15276#define HAVE_SHL_LOAD 1
15277_ACEOF
15278
15279else
15280  echo "$as_me: failed program was:" >&5
15281sed 's/^/| /' conftest.$ac_ext >&5
15282
15283echo "$as_me:$LINENO: result: no" >&5
15284echo "${ECHO_T}no" >&6;
15285	  echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15286echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
15287	  olibs=$LIBS
15288	  LIBS="$LIBS -ldld"
15289	  cat >conftest.$ac_ext <<_ACEOF
15290/* confdefs.h.  */
15291_ACEOF
15292cat confdefs.h >>conftest.$ac_ext
15293cat >>conftest.$ac_ext <<_ACEOF
15294/* end confdefs.h.  */
15295
15296int
15297main ()
15298{
15299
15300			extern void* shl_load();
15301			shl_load();
15302
15303  ;
15304  return 0;
15305}
15306_ACEOF
15307rm -f conftest.$ac_objext conftest$ac_exeext
15308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15309  (eval $ac_link) 2>conftest.er1
15310  ac_status=$?
15311  grep -v '^ *+' conftest.er1 >conftest.err
15312  rm -f conftest.er1
15313  cat conftest.err >&5
15314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315  (exit $ac_status); } &&
15316	 { ac_try='test -z "$ac_c_werror_flag"
15317			 || test ! -s conftest.err'
15318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319  (eval $ac_try) 2>&5
15320  ac_status=$?
15321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322  (exit $ac_status); }; } &&
15323	 { ac_try='test -s conftest$ac_exeext'
15324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325  (eval $ac_try) 2>&5
15326  ac_status=$?
15327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328  (exit $ac_status); }; }; then
15329  echo "$as_me:$LINENO: result: yes" >&5
15330echo "${ECHO_T}yes" >&6;
15331
15332cat >>confdefs.h <<\_ACEOF
15333#define HAVE_SHL_LOAD 1
15334_ACEOF
15335
15336else
15337  echo "$as_me: failed program was:" >&5
15338sed 's/^/| /' conftest.$ac_ext >&5
15339
15340echo "$as_me:$LINENO: result: no" >&5
15341echo "${ECHO_T}no" >&6;
15342		  LIBS=$olibs
15343fi
15344rm -f conftest.err conftest.$ac_objext \
15345      conftest$ac_exeext conftest.$ac_ext
15346fi
15347rm -f conftest.err conftest.$ac_objext \
15348      conftest$ac_exeext conftest.$ac_ext
15349fi
15350
15351for ac_header in setjmp.h
15352do
15353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354if eval "test \"\${$as_ac_Header+set}\" = set"; then
15355  echo "$as_me:$LINENO: checking for $ac_header" >&5
15356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15357if eval "test \"\${$as_ac_Header+set}\" = set"; then
15358  echo $ECHO_N "(cached) $ECHO_C" >&6
15359fi
15360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15362else
15363  # Is the header compilable?
15364echo "$as_me:$LINENO: checking $ac_header usability" >&5
15365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15366cat >conftest.$ac_ext <<_ACEOF
15367/* confdefs.h.  */
15368_ACEOF
15369cat confdefs.h >>conftest.$ac_ext
15370cat >>conftest.$ac_ext <<_ACEOF
15371/* end confdefs.h.  */
15372$ac_includes_default
15373#include <$ac_header>
15374_ACEOF
15375rm -f conftest.$ac_objext
15376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377  (eval $ac_compile) 2>conftest.er1
15378  ac_status=$?
15379  grep -v '^ *+' conftest.er1 >conftest.err
15380  rm -f conftest.er1
15381  cat conftest.err >&5
15382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383  (exit $ac_status); } &&
15384	 { ac_try='test -z "$ac_c_werror_flag"
15385			 || test ! -s conftest.err'
15386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387  (eval $ac_try) 2>&5
15388  ac_status=$?
15389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390  (exit $ac_status); }; } &&
15391	 { ac_try='test -s conftest.$ac_objext'
15392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393  (eval $ac_try) 2>&5
15394  ac_status=$?
15395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396  (exit $ac_status); }; }; then
15397  ac_header_compiler=yes
15398else
15399  echo "$as_me: failed program was:" >&5
15400sed 's/^/| /' conftest.$ac_ext >&5
15401
15402ac_header_compiler=no
15403fi
15404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15406echo "${ECHO_T}$ac_header_compiler" >&6
15407
15408# Is the header present?
15409echo "$as_me:$LINENO: checking $ac_header presence" >&5
15410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15411cat >conftest.$ac_ext <<_ACEOF
15412/* confdefs.h.  */
15413_ACEOF
15414cat confdefs.h >>conftest.$ac_ext
15415cat >>conftest.$ac_ext <<_ACEOF
15416/* end confdefs.h.  */
15417#include <$ac_header>
15418_ACEOF
15419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15420  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15421  ac_status=$?
15422  grep -v '^ *+' conftest.er1 >conftest.err
15423  rm -f conftest.er1
15424  cat conftest.err >&5
15425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426  (exit $ac_status); } >/dev/null; then
15427  if test -s conftest.err; then
15428    ac_cpp_err=$ac_c_preproc_warn_flag
15429    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15430  else
15431    ac_cpp_err=
15432  fi
15433else
15434  ac_cpp_err=yes
15435fi
15436if test -z "$ac_cpp_err"; then
15437  ac_header_preproc=yes
15438else
15439  echo "$as_me: failed program was:" >&5
15440sed 's/^/| /' conftest.$ac_ext >&5
15441
15442  ac_header_preproc=no
15443fi
15444rm -f conftest.err conftest.$ac_ext
15445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15446echo "${ECHO_T}$ac_header_preproc" >&6
15447
15448# So?  What about this header?
15449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15450  yes:no: )
15451    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15453    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15455    ac_header_preproc=yes
15456    ;;
15457  no:yes:* )
15458    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15460    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15461echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15462    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15464    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15465echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15466    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15468    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15470    (
15471      cat <<\_ASBOX
15472## ------------------------------------------ ##
15473## Report this to the AC_PACKAGE_NAME lists.  ##
15474## ------------------------------------------ ##
15475_ASBOX
15476    ) |
15477      sed "s/^/$as_me: WARNING:     /" >&2
15478    ;;
15479esac
15480echo "$as_me:$LINENO: checking for $ac_header" >&5
15481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15482if eval "test \"\${$as_ac_Header+set}\" = set"; then
15483  echo $ECHO_N "(cached) $ECHO_C" >&6
15484else
15485  eval "$as_ac_Header=\$ac_header_preproc"
15486fi
15487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15489
15490fi
15491if test `eval echo '${'$as_ac_Header'}'` = yes; then
15492  cat >>confdefs.h <<_ACEOF
15493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15494_ACEOF
15495
15496fi
15497
15498done
15499
15500
15501if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15502    if echo $LIBS | grep -e '-ldl' >/dev/null; then
15503    LIBS=`echo $LIBS | sed s/-ldl//`
15504    PERL_LIBS="$PERL_LIBS -ldl"
15505  fi
15506fi
15507
15508if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15509	&& test "x$GUITYPE" != "xCARBONGUI"; then
15510  echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15511echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
15512    if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
15513	|| test "x$features" = "xhuge"; then
15514    LIBS="$LIBS -framework Carbon"
15515    echo "$as_me:$LINENO: result: yes" >&5
15516echo "${ECHO_T}yes" >&6
15517  else
15518    echo "$as_me:$LINENO: result: no" >&5
15519echo "${ECHO_T}no" >&6
15520  fi
15521fi
15522if test "x$MACARCH" = "xboth"; then
15523  LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15524fi
15525
15526echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15527echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
15528DEPEND_CFLAGS_FILTER=
15529if test "$GCC" = yes; then
15530  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
15531  if test "$gccmajor" -gt "2"; then
15532    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15533  fi
15534fi
15535if test "$DEPEND_CFLAGS_FILTER" = ""; then
15536  echo "$as_me:$LINENO: result: no" >&5
15537echo "${ECHO_T}no" >&6
15538else
15539  echo "$as_me:$LINENO: result: yes" >&5
15540echo "${ECHO_T}yes" >&6
15541fi
15542
15543
15544          ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15545cat >confcache <<\_ACEOF
15546# This file is a shell script that caches the results of configure
15547# tests run on this system so they can be shared between configure
15548# scripts and configure runs, see configure's option --config-cache.
15549# It is not useful on other systems.  If it contains results you don't
15550# want to keep, you may remove or edit it.
15551#
15552# config.status only pays attention to the cache file if you give it
15553# the --recheck option to rerun configure.
15554#
15555# `ac_cv_env_foo' variables (set or unset) will be overridden when
15556# loading this file, other *unset* `ac_cv_foo' will be assigned the
15557# following values.
15558
15559_ACEOF
15560
15561# The following way of writing the cache mishandles newlines in values,
15562# but we know of no workaround that is simple, portable, and efficient.
15563# So, don't put newlines in cache variables' values.
15564# Ultrix sh set writes to stderr and can't be redirected directly,
15565# and sets the high bit in the cache file unless we assign to the vars.
15566{
15567  (set) 2>&1 |
15568    case `(ac_space=' '; set | grep ac_space) 2>&1` in
15569    *ac_space=\ *)
15570      # `set' does not quote correctly, so add quotes (double-quote
15571      # substitution turns \\\\ into \\, and sed turns \\ into \).
15572      sed -n \
15573	"s/'/'\\\\''/g;
15574	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15575      ;;
15576    *)
15577      # `set' quotes correctly as required by POSIX, so do not add quotes.
15578      sed -n \
15579	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15580      ;;
15581    esac;
15582} |
15583  sed '
15584     t clear
15585     : clear
15586     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15587     t end
15588     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15589     : end' >>confcache
15590if diff $cache_file confcache >/dev/null 2>&1; then :; else
15591  if test -w $cache_file; then
15592    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15593    cat confcache >$cache_file
15594  else
15595    echo "not updating unwritable cache $cache_file"
15596  fi
15597fi
15598rm -f confcache
15599
15600test "x$prefix" = xNONE && prefix=$ac_default_prefix
15601# Let make expand exec_prefix.
15602test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15603
15604# VPATH may cause trouble with some makes, so we remove $(srcdir),
15605# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15606# trailing colons and then remove the whole line if VPATH becomes empty
15607# (actually we leave an empty line to preserve line numbers).
15608if test "x$srcdir" = x.; then
15609  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15610s/:*\$(srcdir):*/:/;
15611s/:*\${srcdir}:*/:/;
15612s/:*@srcdir@:*/:/;
15613s/^\([^=]*=[	 ]*\):*/\1/;
15614s/:*$//;
15615s/^[^=]*=[	 ]*$//;
15616}'
15617fi
15618
15619DEFS=-DHAVE_CONFIG_H
15620
15621ac_libobjs=
15622ac_ltlibobjs=
15623for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15624  # 1. Remove the extension, and $U if already installed.
15625  ac_i=`echo "$ac_i" |
15626	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15627  # 2. Add them.
15628  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15629  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15630done
15631LIBOBJS=$ac_libobjs
15632
15633LTLIBOBJS=$ac_ltlibobjs
15634
15635
15636
15637: ${CONFIG_STATUS=./config.status}
15638ac_clean_files_save=$ac_clean_files
15639ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15640{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15641echo "$as_me: creating $CONFIG_STATUS" >&6;}
15642cat >$CONFIG_STATUS <<_ACEOF
15643#! $SHELL
15644# Generated by $as_me.
15645# Run this file to recreate the current configuration.
15646# Compiler output produced by configure, useful for debugging
15647# configure, is in config.log if it exists.
15648
15649debug=false
15650ac_cs_recheck=false
15651ac_cs_silent=false
15652SHELL=\${CONFIG_SHELL-$SHELL}
15653_ACEOF
15654
15655cat >>$CONFIG_STATUS <<\_ACEOF
15656## --------------------- ##
15657## M4sh Initialization.  ##
15658## --------------------- ##
15659
15660# Be Bourne compatible
15661if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15662  emulate sh
15663  NULLCMD=:
15664  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15665  # is contrary to our usage.  Disable this feature.
15666  alias -g '${1+"$@"}'='"$@"'
15667elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15668  set -o posix
15669fi
15670DUALCASE=1; export DUALCASE # for MKS sh
15671
15672# Support unset when possible.
15673if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15674  as_unset=unset
15675else
15676  as_unset=false
15677fi
15678
15679
15680# Work around bugs in pre-3.0 UWIN ksh.
15681$as_unset ENV MAIL MAILPATH
15682PS1='$ '
15683PS2='> '
15684PS4='+ '
15685
15686# NLS nuisances.
15687for as_var in \
15688  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15689  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15690  LC_TELEPHONE LC_TIME
15691do
15692  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15693    eval $as_var=C; export $as_var
15694  else
15695    $as_unset $as_var
15696  fi
15697done
15698
15699# Required to use basename.
15700if expr a : '\(a\)' >/dev/null 2>&1; then
15701  as_expr=expr
15702else
15703  as_expr=false
15704fi
15705
15706if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15707  as_basename=basename
15708else
15709  as_basename=false
15710fi
15711
15712
15713# Name of the executable.
15714as_me=`$as_basename "$0" ||
15715$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15716	 X"$0" : 'X\(//\)$' \| \
15717	 X"$0" : 'X\(/\)$' \| \
15718	 .     : '\(.\)' 2>/dev/null ||
15719echo X/"$0" |
15720    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15721  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
15722  	  /^X\/\(\/\).*/{ s//\1/; q; }
15723  	  s/.*/./; q'`
15724
15725
15726# PATH needs CR, and LINENO needs CR and PATH.
15727# Avoid depending upon Character Ranges.
15728as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15729as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15730as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15731as_cr_digits='0123456789'
15732as_cr_alnum=$as_cr_Letters$as_cr_digits
15733
15734# The user is always right.
15735if test "${PATH_SEPARATOR+set}" != set; then
15736  echo "#! /bin/sh" >conf$$.sh
15737  echo  "exit 0"   >>conf$$.sh
15738  chmod +x conf$$.sh
15739  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15740    PATH_SEPARATOR=';'
15741  else
15742    PATH_SEPARATOR=:
15743  fi
15744  rm -f conf$$.sh
15745fi
15746
15747
15748  as_lineno_1=$LINENO
15749  as_lineno_2=$LINENO
15750  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15751  test "x$as_lineno_1" != "x$as_lineno_2" &&
15752  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15753  # Find who we are.  Look in the path if we contain no path at all
15754  # relative or not.
15755  case $0 in
15756    *[\\/]* ) as_myself=$0 ;;
15757    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758for as_dir in $PATH
15759do
15760  IFS=$as_save_IFS
15761  test -z "$as_dir" && as_dir=.
15762  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15763done
15764
15765       ;;
15766  esac
15767  # We did not find ourselves, most probably we were run as `sh COMMAND'
15768  # in which case we are not to be found in the path.
15769  if test "x$as_myself" = x; then
15770    as_myself=$0
15771  fi
15772  if test ! -f "$as_myself"; then
15773    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15774echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15775   { (exit 1); exit 1; }; }
15776  fi
15777  case $CONFIG_SHELL in
15778  '')
15779    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15780for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15781do
15782  IFS=$as_save_IFS
15783  test -z "$as_dir" && as_dir=.
15784  for as_base in sh bash ksh sh5; do
15785	 case $as_dir in
15786	 /*)
15787	   if ("$as_dir/$as_base" -c '
15788  as_lineno_1=$LINENO
15789  as_lineno_2=$LINENO
15790  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15791  test "x$as_lineno_1" != "x$as_lineno_2" &&
15792  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15793	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15794	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15795	     CONFIG_SHELL=$as_dir/$as_base
15796	     export CONFIG_SHELL
15797	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15798	   fi;;
15799	 esac
15800       done
15801done
15802;;
15803  esac
15804
15805  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15806  # uniformly replaced by the line number.  The first 'sed' inserts a
15807  # line-number line before each line; the second 'sed' does the real
15808  # work.  The second script uses 'N' to pair each line-number line
15809  # with the numbered line, and appends trailing '-' during
15810  # substitution so that $LINENO is not a special case at line end.
15811  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15812  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15813  sed '=' <$as_myself |
15814    sed '
15815      N
15816      s,$,-,
15817      : loop
15818      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15819      t loop
15820      s,-$,,
15821      s,^['$as_cr_digits']*\n,,
15822    ' >$as_me.lineno &&
15823  chmod +x $as_me.lineno ||
15824    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15825echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15826   { (exit 1); exit 1; }; }
15827
15828  # Don't try to exec as it changes $[0], causing all sort of problems
15829  # (the dirname of $[0] is not the place where we might find the
15830  # original and so on.  Autoconf is especially sensible to this).
15831  . ./$as_me.lineno
15832  # Exit status is that of the last command.
15833  exit
15834}
15835
15836
15837case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15838  *c*,-n*) ECHO_N= ECHO_C='
15839' ECHO_T='	' ;;
15840  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15841  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15842esac
15843
15844if expr a : '\(a\)' >/dev/null 2>&1; then
15845  as_expr=expr
15846else
15847  as_expr=false
15848fi
15849
15850rm -f conf$$ conf$$.exe conf$$.file
15851echo >conf$$.file
15852if ln -s conf$$.file conf$$ 2>/dev/null; then
15853  # We could just check for DJGPP; but this test a) works b) is more generic
15854  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15855  if test -f conf$$.exe; then
15856    # Don't use ln at all; we don't have any links
15857    as_ln_s='cp -p'
15858  else
15859    as_ln_s='ln -s'
15860  fi
15861elif ln conf$$.file conf$$ 2>/dev/null; then
15862  as_ln_s=ln
15863else
15864  as_ln_s='cp -p'
15865fi
15866rm -f conf$$ conf$$.exe conf$$.file
15867
15868if mkdir -p . 2>/dev/null; then
15869  as_mkdir_p=:
15870else
15871  test -d ./-p && rmdir ./-p
15872  as_mkdir_p=false
15873fi
15874
15875as_executable_p="test -f"
15876
15877# Sed expression to map a string onto a valid CPP name.
15878as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15879
15880# Sed expression to map a string onto a valid variable name.
15881as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15882
15883
15884# IFS
15885# We need space, tab and new line, in precisely that order.
15886as_nl='
15887'
15888IFS=" 	$as_nl"
15889
15890# CDPATH.
15891$as_unset CDPATH
15892
15893exec 6>&1
15894
15895# Open the log real soon, to keep \$[0] and so on meaningful, and to
15896# report actual input values of CONFIG_FILES etc. instead of their
15897# values after options handling.  Logging --version etc. is OK.
15898exec 5>>auto/config.log
15899{
15900  echo
15901  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15902## Running $as_me. ##
15903_ASBOX
15904} >&5
15905cat >&5 <<_CSEOF
15906
15907This file was extended by $as_me, which was
15908generated by GNU Autoconf 2.59.  Invocation command line was
15909
15910  CONFIG_FILES    = $CONFIG_FILES
15911  CONFIG_HEADERS  = $CONFIG_HEADERS
15912  CONFIG_LINKS    = $CONFIG_LINKS
15913  CONFIG_COMMANDS = $CONFIG_COMMANDS
15914  $ $0 $@
15915
15916_CSEOF
15917echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15918echo >&5
15919_ACEOF
15920
15921# Files that config.status was made for.
15922if test -n "$ac_config_files"; then
15923  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15924fi
15925
15926if test -n "$ac_config_headers"; then
15927  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15928fi
15929
15930if test -n "$ac_config_links"; then
15931  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15932fi
15933
15934if test -n "$ac_config_commands"; then
15935  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15936fi
15937
15938cat >>$CONFIG_STATUS <<\_ACEOF
15939
15940ac_cs_usage="\
15941\`$as_me' instantiates files from templates according to the
15942current configuration.
15943
15944Usage: $0 [OPTIONS] [FILE]...
15945
15946  -h, --help       print this help, then exit
15947  -V, --version    print version number, then exit
15948  -q, --quiet      do not print progress messages
15949  -d, --debug      don't remove temporary files
15950      --recheck    update $as_me by reconfiguring in the same conditions
15951  --file=FILE[:TEMPLATE]
15952		   instantiate the configuration file FILE
15953  --header=FILE[:TEMPLATE]
15954		   instantiate the configuration header FILE
15955
15956Configuration files:
15957$config_files
15958
15959Configuration headers:
15960$config_headers
15961
15962Report bugs to <[email protected]>."
15963_ACEOF
15964
15965cat >>$CONFIG_STATUS <<_ACEOF
15966ac_cs_version="\\
15967config.status
15968configured by $0, generated by GNU Autoconf 2.59,
15969  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15970
15971Copyright (C) 2003 Free Software Foundation, Inc.
15972This config.status script is free software; the Free Software Foundation
15973gives unlimited permission to copy, distribute and modify it."
15974srcdir=$srcdir
15975_ACEOF
15976
15977cat >>$CONFIG_STATUS <<\_ACEOF
15978# If no file are specified by the user, then we need to provide default
15979# value.  By we need to know if files were specified by the user.
15980ac_need_defaults=:
15981while test $# != 0
15982do
15983  case $1 in
15984  --*=*)
15985    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15986    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15987    ac_shift=:
15988    ;;
15989  -*)
15990    ac_option=$1
15991    ac_optarg=$2
15992    ac_shift=shift
15993    ;;
15994  *) # This is not an option, so the user has probably given explicit
15995     # arguments.
15996     ac_option=$1
15997     ac_need_defaults=false;;
15998  esac
15999
16000  case $ac_option in
16001  # Handling of the options.
16002_ACEOF
16003cat >>$CONFIG_STATUS <<\_ACEOF
16004  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16005    ac_cs_recheck=: ;;
16006  --version | --vers* | -V )
16007    echo "$ac_cs_version"; exit 0 ;;
16008  --he | --h)
16009    # Conflict between --help and --header
16010    { { echo "$as_me:$LINENO: error: ambiguous option: $1
16011Try \`$0 --help' for more information." >&5
16012echo "$as_me: error: ambiguous option: $1
16013Try \`$0 --help' for more information." >&2;}
16014   { (exit 1); exit 1; }; };;
16015  --help | --hel | -h )
16016    echo "$ac_cs_usage"; exit 0 ;;
16017  --debug | --d* | -d )
16018    debug=: ;;
16019  --file | --fil | --fi | --f )
16020    $ac_shift
16021    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16022    ac_need_defaults=false;;
16023  --header | --heade | --head | --hea )
16024    $ac_shift
16025    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16026    ac_need_defaults=false;;
16027  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16028  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16029    ac_cs_silent=: ;;
16030
16031  # This is an error.
16032  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16033Try \`$0 --help' for more information." >&5
16034echo "$as_me: error: unrecognized option: $1
16035Try \`$0 --help' for more information." >&2;}
16036   { (exit 1); exit 1; }; } ;;
16037
16038  *) ac_config_targets="$ac_config_targets $1" ;;
16039
16040  esac
16041  shift
16042done
16043
16044ac_configure_extra_args=
16045
16046if $ac_cs_silent; then
16047  exec 6>/dev/null
16048  ac_configure_extra_args="$ac_configure_extra_args --silent"
16049fi
16050
16051_ACEOF
16052cat >>$CONFIG_STATUS <<_ACEOF
16053if \$ac_cs_recheck; then
16054  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16055  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16056fi
16057
16058_ACEOF
16059
16060
16061
16062
16063
16064cat >>$CONFIG_STATUS <<\_ACEOF
16065for ac_config_target in $ac_config_targets
16066do
16067  case "$ac_config_target" in
16068  # Handling of arguments.
16069  "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
16070  "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
16071  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16072echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16073   { (exit 1); exit 1; }; };;
16074  esac
16075done
16076
16077# If the user did not use the arguments to specify the items to instantiate,
16078# then the envvar interface is used.  Set only those that are not.
16079# We use the long form for the default assignment because of an extremely
16080# bizarre bug on SunOS 4.1.3.
16081if $ac_need_defaults; then
16082  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16083  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16084fi
16085
16086# Have a temporary directory for convenience.  Make it in the build tree
16087# simply because there is no reason to put it here, and in addition,
16088# creating and moving files from /tmp can sometimes cause problems.
16089# Create a temporary directory, and hook for its removal unless debugging.
16090$debug ||
16091{
16092  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16093  trap '{ (exit 1); exit 1; }' 1 2 13 15
16094}
16095
16096# Create a (secure) tmp directory for tmp files.
16097
16098{
16099  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16100  test -n "$tmp" && test -d "$tmp"
16101}  ||
16102{
16103  tmp=./confstat$$-$RANDOM
16104  (umask 077 && mkdir $tmp)
16105} ||
16106{
16107   echo "$me: cannot create a temporary directory in ." >&2
16108   { (exit 1); exit 1; }
16109}
16110
16111_ACEOF
16112
16113cat >>$CONFIG_STATUS <<_ACEOF
16114
16115#
16116# CONFIG_FILES section.
16117#
16118
16119# No need to generate the scripts if there are no CONFIG_FILES.
16120# This happens for instance when ./config.status config.h
16121if test -n "\$CONFIG_FILES"; then
16122  # Protect against being on the right side of a sed subst in config.status.
16123  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16124   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16125s,@SHELL@,$SHELL,;t t
16126s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16127s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16128s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16129s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16130s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16131s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16132s,@exec_prefix@,$exec_prefix,;t t
16133s,@prefix@,$prefix,;t t
16134s,@program_transform_name@,$program_transform_name,;t t
16135s,@bindir@,$bindir,;t t
16136s,@sbindir@,$sbindir,;t t
16137s,@libexecdir@,$libexecdir,;t t
16138s,@datadir@,$datadir,;t t
16139s,@sysconfdir@,$sysconfdir,;t t
16140s,@sharedstatedir@,$sharedstatedir,;t t
16141s,@localstatedir@,$localstatedir,;t t
16142s,@libdir@,$libdir,;t t
16143s,@includedir@,$includedir,;t t
16144s,@oldincludedir@,$oldincludedir,;t t
16145s,@infodir@,$infodir,;t t
16146s,@mandir@,$mandir,;t t
16147s,@build_alias@,$build_alias,;t t
16148s,@host_alias@,$host_alias,;t t
16149s,@target_alias@,$target_alias,;t t
16150s,@DEFS@,$DEFS,;t t
16151s,@ECHO_C@,$ECHO_C,;t t
16152s,@ECHO_N@,$ECHO_N,;t t
16153s,@ECHO_T@,$ECHO_T,;t t
16154s,@LIBS@,$LIBS,;t t
16155s,@SET_MAKE@,$SET_MAKE,;t t
16156s,@CC@,$CC,;t t
16157s,@CFLAGS@,$CFLAGS,;t t
16158s,@LDFLAGS@,$LDFLAGS,;t t
16159s,@CPPFLAGS@,$CPPFLAGS,;t t
16160s,@ac_ct_CC@,$ac_ct_CC,;t t
16161s,@EXEEXT@,$EXEEXT,;t t
16162s,@OBJEXT@,$OBJEXT,;t t
16163s,@CPP@,$CPP,;t t
16164s,@EGREP@,$EGREP,;t t
16165s,@AWK@,$AWK,;t t
16166s,@STRIP@,$STRIP,;t t
16167s,@CPP_MM@,$CPP_MM,;t t
16168s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
16169s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
16170s,@VIMNAME@,$VIMNAME,;t t
16171s,@EXNAME@,$EXNAME,;t t
16172s,@VIEWNAME@,$VIEWNAME,;t t
16173s,@line_break@,$line_break,;t t
16174s,@dovimdiff@,$dovimdiff,;t t
16175s,@dogvimdiff@,$dogvimdiff,;t t
16176s,@compiledby@,$compiledby,;t t
16177s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
16178s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
16179s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
16180s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
16181s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
16182s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
16183s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
16184s,@vi_cv_perllib@,$vi_cv_perllib,;t t
16185s,@shrpenv@,$shrpenv,;t t
16186s,@PERL_SRC@,$PERL_SRC,;t t
16187s,@PERL_OBJ@,$PERL_OBJ,;t t
16188s,@PERL_PRO@,$PERL_PRO,;t t
16189s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
16190s,@PERL_LIBS@,$PERL_LIBS,;t t
16191s,@vi_cv_path_python@,$vi_cv_path_python,;t t
16192s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
16193s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
16194s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
16195s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
16196s,@PYTHON_SRC@,$PYTHON_SRC,;t t
16197s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
16198s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
16199s,@TCL_SRC@,$TCL_SRC,;t t
16200s,@TCL_OBJ@,$TCL_OBJ,;t t
16201s,@TCL_PRO@,$TCL_PRO,;t t
16202s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
16203s,@TCL_LIBS@,$TCL_LIBS,;t t
16204s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
16205s,@RUBY_SRC@,$RUBY_SRC,;t t
16206s,@RUBY_OBJ@,$RUBY_OBJ,;t t
16207s,@RUBY_PRO@,$RUBY_PRO,;t t
16208s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16209s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16210s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16211s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16212s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16213s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16214s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16215s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16216s,@xmkmfpath@,$xmkmfpath,;t t
16217s,@X_CFLAGS@,$X_CFLAGS,;t t
16218s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16219s,@X_LIBS@,$X_LIBS,;t t
16220s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16221s,@X_LIB@,$X_LIB,;t t
16222s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16223s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16224s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16225s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16226s,@GTK_LIBS@,$GTK_LIBS,;t t
16227s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16228s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16229s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16230s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16231s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16232s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16233s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16234s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16235s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16236s,@GUITYPE@,$GUITYPE,;t t
16237s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16238s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16239s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16240s,@TAGPRG@,$TAGPRG,;t t
16241s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16242s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
16243s,@MSGFMT@,$MSGFMT,;t t
16244s,@MAKEMO@,$MAKEMO,;t t
16245s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
16246s,@LIBOBJS@,$LIBOBJS,;t t
16247s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16248CEOF
16249
16250_ACEOF
16251
16252  cat >>$CONFIG_STATUS <<\_ACEOF
16253  # Split the substitutions into bite-sized pieces for seds with
16254  # small command number limits, like on Digital OSF/1 and HP-UX.
16255  ac_max_sed_lines=48
16256  ac_sed_frag=1 # Number of current file.
16257  ac_beg=1 # First line for current file.
16258  ac_end=$ac_max_sed_lines # Line after last line for current file.
16259  ac_more_lines=:
16260  ac_sed_cmds=
16261  while $ac_more_lines; do
16262    if test $ac_beg -gt 1; then
16263      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16264    else
16265      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16266    fi
16267    if test ! -s $tmp/subs.frag; then
16268      ac_more_lines=false
16269    else
16270      # The purpose of the label and of the branching condition is to
16271      # speed up the sed processing (if there are no `@' at all, there
16272      # is no need to browse any of the substitutions).
16273      # These are the two extra sed commands mentioned above.
16274      (echo ':t
16275  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16276      if test -z "$ac_sed_cmds"; then
16277	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16278      else
16279	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16280      fi
16281      ac_sed_frag=`expr $ac_sed_frag + 1`
16282      ac_beg=$ac_end
16283      ac_end=`expr $ac_end + $ac_max_sed_lines`
16284    fi
16285  done
16286  if test -z "$ac_sed_cmds"; then
16287    ac_sed_cmds=cat
16288  fi
16289fi # test -n "$CONFIG_FILES"
16290
16291_ACEOF
16292cat >>$CONFIG_STATUS <<\_ACEOF
16293for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16294  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16295  case $ac_file in
16296  - | *:- | *:-:* ) # input from stdin
16297	cat >$tmp/stdin
16298	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16299	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16300  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16301	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16302  * )   ac_file_in=$ac_file.in ;;
16303  esac
16304
16305  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16306  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16307$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16308	 X"$ac_file" : 'X\(//\)[^/]' \| \
16309	 X"$ac_file" : 'X\(//\)$' \| \
16310	 X"$ac_file" : 'X\(/\)' \| \
16311	 .     : '\(.\)' 2>/dev/null ||
16312echo X"$ac_file" |
16313    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16314  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16315  	  /^X\(\/\/\)$/{ s//\1/; q; }
16316  	  /^X\(\/\).*/{ s//\1/; q; }
16317  	  s/.*/./; q'`
16318  { if $as_mkdir_p; then
16319    mkdir -p "$ac_dir"
16320  else
16321    as_dir="$ac_dir"
16322    as_dirs=
16323    while test ! -d "$as_dir"; do
16324      as_dirs="$as_dir $as_dirs"
16325      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16327	 X"$as_dir" : 'X\(//\)[^/]' \| \
16328	 X"$as_dir" : 'X\(//\)$' \| \
16329	 X"$as_dir" : 'X\(/\)' \| \
16330	 .     : '\(.\)' 2>/dev/null ||
16331echo X"$as_dir" |
16332    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16333  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16334  	  /^X\(\/\/\)$/{ s//\1/; q; }
16335  	  /^X\(\/\).*/{ s//\1/; q; }
16336  	  s/.*/./; q'`
16337    done
16338    test ! -n "$as_dirs" || mkdir $as_dirs
16339  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16340echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16341   { (exit 1); exit 1; }; }; }
16342
16343  ac_builddir=.
16344
16345if test "$ac_dir" != .; then
16346  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16347  # A "../" for each directory in $ac_dir_suffix.
16348  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16349else
16350  ac_dir_suffix= ac_top_builddir=
16351fi
16352
16353case $srcdir in
16354  .)  # No --srcdir option.  We are building in place.
16355    ac_srcdir=.
16356    if test -z "$ac_top_builddir"; then
16357       ac_top_srcdir=.
16358    else
16359       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16360    fi ;;
16361  [\\/]* | ?:[\\/]* )  # Absolute path.
16362    ac_srcdir=$srcdir$ac_dir_suffix;
16363    ac_top_srcdir=$srcdir ;;
16364  *) # Relative path.
16365    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16366    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16367esac
16368
16369# Do not use `cd foo && pwd` to compute absolute paths, because
16370# the directories may not exist.
16371case `pwd` in
16372.) ac_abs_builddir="$ac_dir";;
16373*)
16374  case "$ac_dir" in
16375  .) ac_abs_builddir=`pwd`;;
16376  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16377  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16378  esac;;
16379esac
16380case $ac_abs_builddir in
16381.) ac_abs_top_builddir=${ac_top_builddir}.;;
16382*)
16383  case ${ac_top_builddir}. in
16384  .) ac_abs_top_builddir=$ac_abs_builddir;;
16385  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16386  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16387  esac;;
16388esac
16389case $ac_abs_builddir in
16390.) ac_abs_srcdir=$ac_srcdir;;
16391*)
16392  case $ac_srcdir in
16393  .) ac_abs_srcdir=$ac_abs_builddir;;
16394  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16395  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16396  esac;;
16397esac
16398case $ac_abs_builddir in
16399.) ac_abs_top_srcdir=$ac_top_srcdir;;
16400*)
16401  case $ac_top_srcdir in
16402  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16403  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16404  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16405  esac;;
16406esac
16407
16408
16409
16410  if test x"$ac_file" != x-; then
16411    { echo "$as_me:$LINENO: creating $ac_file" >&5
16412echo "$as_me: creating $ac_file" >&6;}
16413    rm -f "$ac_file"
16414  fi
16415  # Let's still pretend it is `configure' which instantiates (i.e., don't
16416  # use $as_me), people would be surprised to read:
16417  #    /* config.h.  Generated by config.status.  */
16418  if test x"$ac_file" = x-; then
16419    configure_input=
16420  else
16421    configure_input="$ac_file.  "
16422  fi
16423  configure_input=$configure_input"Generated from `echo $ac_file_in |
16424				     sed 's,.*/,,'` by configure."
16425
16426  # First look for the input files in the build tree, otherwise in the
16427  # src tree.
16428  ac_file_inputs=`IFS=:
16429    for f in $ac_file_in; do
16430      case $f in
16431      -) echo $tmp/stdin ;;
16432      [\\/$]*)
16433	 # Absolute (can't be DOS-style, as IFS=:)
16434	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16435echo "$as_me: error: cannot find input file: $f" >&2;}
16436   { (exit 1); exit 1; }; }
16437	 echo "$f";;
16438      *) # Relative
16439	 if test -f "$f"; then
16440	   # Build tree
16441	   echo "$f"
16442	 elif test -f "$srcdir/$f"; then
16443	   # Source tree
16444	   echo "$srcdir/$f"
16445	 else
16446	   # /dev/null tree
16447	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16448echo "$as_me: error: cannot find input file: $f" >&2;}
16449   { (exit 1); exit 1; }; }
16450	 fi;;
16451      esac
16452    done` || { (exit 1); exit 1; }
16453_ACEOF
16454cat >>$CONFIG_STATUS <<_ACEOF
16455  sed "$ac_vpsub
16456$extrasub
16457_ACEOF
16458cat >>$CONFIG_STATUS <<\_ACEOF
16459:t
16460/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16461s,@configure_input@,$configure_input,;t t
16462s,@srcdir@,$ac_srcdir,;t t
16463s,@abs_srcdir@,$ac_abs_srcdir,;t t
16464s,@top_srcdir@,$ac_top_srcdir,;t t
16465s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16466s,@builddir@,$ac_builddir,;t t
16467s,@abs_builddir@,$ac_abs_builddir,;t t
16468s,@top_builddir@,$ac_top_builddir,;t t
16469s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16470" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16471  rm -f $tmp/stdin
16472  if test x"$ac_file" != x-; then
16473    mv $tmp/out $ac_file
16474  else
16475    cat $tmp/out
16476    rm -f $tmp/out
16477  fi
16478
16479done
16480_ACEOF
16481cat >>$CONFIG_STATUS <<\_ACEOF
16482
16483#
16484# CONFIG_HEADER section.
16485#
16486
16487# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16488# NAME is the cpp macro being defined and VALUE is the value it is being given.
16489#
16490# ac_d sets the value in "#define NAME VALUE" lines.
16491ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
16492ac_dB='[	 ].*$,\1#\2'
16493ac_dC=' '
16494ac_dD=',;t'
16495# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16496ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
16497ac_uB='$,\1#\2define\3'
16498ac_uC=' '
16499ac_uD=',;t'
16500
16501for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16502  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16503  case $ac_file in
16504  - | *:- | *:-:* ) # input from stdin
16505	cat >$tmp/stdin
16506	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16507	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16508  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16509	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16510  * )   ac_file_in=$ac_file.in ;;
16511  esac
16512
16513  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16514echo "$as_me: creating $ac_file" >&6;}
16515
16516  # First look for the input files in the build tree, otherwise in the
16517  # src tree.
16518  ac_file_inputs=`IFS=:
16519    for f in $ac_file_in; do
16520      case $f in
16521      -) echo $tmp/stdin ;;
16522      [\\/$]*)
16523	 # Absolute (can't be DOS-style, as IFS=:)
16524	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16525echo "$as_me: error: cannot find input file: $f" >&2;}
16526   { (exit 1); exit 1; }; }
16527	 # Do quote $f, to prevent DOS paths from being IFS'd.
16528	 echo "$f";;
16529      *) # Relative
16530	 if test -f "$f"; then
16531	   # Build tree
16532	   echo "$f"
16533	 elif test -f "$srcdir/$f"; then
16534	   # Source tree
16535	   echo "$srcdir/$f"
16536	 else
16537	   # /dev/null tree
16538	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16539echo "$as_me: error: cannot find input file: $f" >&2;}
16540   { (exit 1); exit 1; }; }
16541	 fi;;
16542      esac
16543    done` || { (exit 1); exit 1; }
16544  # Remove the trailing spaces.
16545  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
16546
16547_ACEOF
16548
16549# Transform confdefs.h into two sed scripts, `conftest.defines' and
16550# `conftest.undefs', that substitutes the proper values into
16551# config.h.in to produce config.h.  The first handles `#define'
16552# templates, and the second `#undef' templates.
16553# And first: Protect against being on the right side of a sed subst in
16554# config.status.  Protect against being in an unquoted here document
16555# in config.status.
16556rm -f conftest.defines conftest.undefs
16557# Using a here document instead of a string reduces the quoting nightmare.
16558# Putting comments in sed scripts is not portable.
16559#
16560# `end' is used to avoid that the second main sed command (meant for
16561# 0-ary CPP macros) applies to n-ary macro definitions.
16562# See the Autoconf documentation for `clear'.
16563cat >confdef2sed.sed <<\_ACEOF
16564s/[\\&,]/\\&/g
16565s,[\\$`],\\&,g
16566t clear
16567: clear
16568s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16569t end
16570s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16571: end
16572_ACEOF
16573# If some macros were called several times there might be several times
16574# the same #defines, which is useless.  Nevertheless, we may not want to
16575# sort them, since we want the *last* AC-DEFINE to be honored.
16576uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16577sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16578rm -f confdef2sed.sed
16579
16580# This sed command replaces #undef with comments.  This is necessary, for
16581# example, in the case of _POSIX_SOURCE, which is predefined and required
16582# on some systems where configure will not decide to define it.
16583cat >>conftest.undefs <<\_ACEOF
16584s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16585_ACEOF
16586
16587# Break up conftest.defines because some shells have a limit on the size
16588# of here documents, and old seds have small limits too (100 cmds).
16589echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16590echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16591echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16592echo '  :' >>$CONFIG_STATUS
16593rm -f conftest.tail
16594while grep . conftest.defines >/dev/null
16595do
16596  # Write a limited-size here document to $tmp/defines.sed.
16597  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16598  # Speed up: don't consider the non `#define' lines.
16599  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
16600  # Work around the forget-to-reset-the-flag bug.
16601  echo 't clr' >>$CONFIG_STATUS
16602  echo ': clr' >>$CONFIG_STATUS
16603  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16604  echo 'CEOF
16605  sed -f $tmp/defines.sed $tmp/in >$tmp/out
16606  rm -f $tmp/in
16607  mv $tmp/out $tmp/in
16608' >>$CONFIG_STATUS
16609  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16610  rm -f conftest.defines
16611  mv conftest.tail conftest.defines
16612done
16613rm -f conftest.defines
16614echo '  fi # grep' >>$CONFIG_STATUS
16615echo >>$CONFIG_STATUS
16616
16617# Break up conftest.undefs because some shells have a limit on the size
16618# of here documents, and old seds have small limits too (100 cmds).
16619echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16620rm -f conftest.tail
16621while grep . conftest.undefs >/dev/null
16622do
16623  # Write a limited-size here document to $tmp/undefs.sed.
16624  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16625  # Speed up: don't consider the non `#undef'
16626  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
16627  # Work around the forget-to-reset-the-flag bug.
16628  echo 't clr' >>$CONFIG_STATUS
16629  echo ': clr' >>$CONFIG_STATUS
16630  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16631  echo 'CEOF
16632  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16633  rm -f $tmp/in
16634  mv $tmp/out $tmp/in
16635' >>$CONFIG_STATUS
16636  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16637  rm -f conftest.undefs
16638  mv conftest.tail conftest.undefs
16639done
16640rm -f conftest.undefs
16641
16642cat >>$CONFIG_STATUS <<\_ACEOF
16643  # Let's still pretend it is `configure' which instantiates (i.e., don't
16644  # use $as_me), people would be surprised to read:
16645  #    /* config.h.  Generated by config.status.  */
16646  if test x"$ac_file" = x-; then
16647    echo "/* Generated by configure.  */" >$tmp/config.h
16648  else
16649    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16650  fi
16651  cat $tmp/in >>$tmp/config.h
16652  rm -f $tmp/in
16653  if test x"$ac_file" != x-; then
16654    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16655      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16656echo "$as_me: $ac_file is unchanged" >&6;}
16657    else
16658      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16659$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16660	 X"$ac_file" : 'X\(//\)[^/]' \| \
16661	 X"$ac_file" : 'X\(//\)$' \| \
16662	 X"$ac_file" : 'X\(/\)' \| \
16663	 .     : '\(.\)' 2>/dev/null ||
16664echo X"$ac_file" |
16665    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16666  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16667  	  /^X\(\/\/\)$/{ s//\1/; q; }
16668  	  /^X\(\/\).*/{ s//\1/; q; }
16669  	  s/.*/./; q'`
16670      { if $as_mkdir_p; then
16671    mkdir -p "$ac_dir"
16672  else
16673    as_dir="$ac_dir"
16674    as_dirs=
16675    while test ! -d "$as_dir"; do
16676      as_dirs="$as_dir $as_dirs"
16677      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16678$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16679	 X"$as_dir" : 'X\(//\)[^/]' \| \
16680	 X"$as_dir" : 'X\(//\)$' \| \
16681	 X"$as_dir" : 'X\(/\)' \| \
16682	 .     : '\(.\)' 2>/dev/null ||
16683echo X"$as_dir" |
16684    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16685  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16686  	  /^X\(\/\/\)$/{ s//\1/; q; }
16687  	  /^X\(\/\).*/{ s//\1/; q; }
16688  	  s/.*/./; q'`
16689    done
16690    test ! -n "$as_dirs" || mkdir $as_dirs
16691  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16692echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16693   { (exit 1); exit 1; }; }; }
16694
16695      rm -f $ac_file
16696      mv $tmp/config.h $ac_file
16697    fi
16698  else
16699    cat $tmp/config.h
16700    rm -f $tmp/config.h
16701  fi
16702done
16703_ACEOF
16704
16705cat >>$CONFIG_STATUS <<\_ACEOF
16706
16707{ (exit 0); exit 0; }
16708_ACEOF
16709chmod +x $CONFIG_STATUS
16710ac_clean_files=$ac_clean_files_save
16711
16712
16713# configure is writing to config.log, and then calls config.status.
16714# config.status does its own redirection, appending to config.log.
16715# Unfortunately, on DOS this fails, as config.log is still kept open
16716# by configure, so config.status won't be able to write to it; its
16717# output is simply discarded.  So we exec the FD to /dev/null,
16718# effectively closing config.log, so it can be properly (re)opened and
16719# appended to by config.status.  When coming back to configure, we
16720# need to make the FD available again.
16721if test "$no_create" != yes; then
16722  ac_cs_success=:
16723  ac_config_status_args=
16724  test "$silent" = yes &&
16725    ac_config_status_args="$ac_config_status_args --quiet"
16726  exec 5>/dev/null
16727  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16728  exec 5>>auto/config.log
16729  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16730  # would make configure fail if this is the last instruction.
16731  $ac_cs_success || { (exit 1); exit 1; }
16732fi
16733
16734
16735