xref: /vim-8.2.3635/src/auto/configure (revision 10c56952)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="vim.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK STRIP CPP_MM OS_EXTRA_SRC OS_EXTRA_OBJ VIMNAME EXNAME VIEWNAME line_break dovimdiff dogvimdiff compiledby vi_cv_path_mzscheme MZSCHEME_SRC MZSCHEME_OBJ MZSCHEME_PRO MZSCHEME_LIBS MZSCHEME_CFLAGS vi_cv_path_perl vi_cv_perllib shrpenv PERL_SRC PERL_OBJ PERL_PRO PERL_CFLAGS PERL_LIBS vi_cv_path_python PYTHON_CONFDIR PYTHON_LIBS PYTHON_GETPATH_CFLAGS PYTHON_CFLAGS PYTHON_SRC PYTHON_OBJ vi_cv_path_tcl TCL_SRC TCL_OBJ TCL_PRO TCL_CFLAGS TCL_LIBS vi_cv_path_ruby RUBY_SRC RUBY_OBJ RUBY_PRO RUBY_CFLAGS RUBY_LIBS WORKSHOP_SRC WORKSHOP_OBJ NETBEANS_SRC NETBEANS_OBJ SNIFF_SRC SNIFF_OBJ xmkmfpath X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIB GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG INSTALL_LANGS INSTALL_TOOL_LANGS MSGFMT MAKEMO DEPEND_CFLAGS_FILTER LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834X features:
835  --x-includes=DIR    X include files are in DIR
836  --x-libraries=DIR   X library files are in DIR
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842  cat <<\_ACEOF
843
844Optional Features:
845  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847  --disable-darwin        Disable Darwin (Mac OS X) support.
848  --disable-xsmp          Disable XSMP session management
849  --disable-xsmp-interact Disable XSMP interaction
850  --enable-mzschemeinterp   Include MzScheme interpreter.
851  --enable-perlinterp     Include Perl interpreter.
852  --enable-pythoninterp   Include Python interpreter.
853  --enable-tclinterp      Include Tcl interpreter.
854  --enable-rubyinterp     Include Ruby interpreter.
855  --enable-cscope         Include cscope interface.
856  --enable-workshop       Include Sun Visual Workshop support.
857  --disable-netbeans      Disable NetBeans integration support.
858  --enable-sniff          Include Sniff interface.
859  --enable-multibyte      Include multibyte editing support.
860  --enable-hangulinput    Include Hangul input support.
861  --enable-xim            Include XIM input support.
862  --enable-fontset        Include X fontset output support.
863  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
864  --enable-gtk-check      If auto-select GUI, check for GTK default=yes
865  --enable-gtk2-check     If GTK GUI, check for GTK+ 2 default=yes
866  --enable-gnome-check    If GTK GUI, check for GNOME default=no
867  --enable-motif-check    If auto-select GUI, check for Motif default=yes
868  --enable-athena-check   If auto-select GUI, check for Athena default=yes
869  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
870  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
871  --disable-gtktest       Do not try to compile and run a test GTK program
872  --disable-acl           Don't check for ACL support.
873  --disable-gpm           Don't use gpm (Linux mouse daemon).
874  --disable-nls           Don't support NLS (gettext()).
875
876Optional Packages:
877  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879  --with-mac-arch=ARCH    current, intel, ppc or both
880  --with-vim-name=NAME    what to call the Vim executable
881  --with-ex-name=NAME     what to call the Ex executable
882  --with-view-name=NAME   what to call the View executable
883  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
884  --with-modified-by=NAME       name of who modified a release version
885  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
886  --with-compiledby=NAME  name to show in :version message
887  --with-plthome=PLTHOME   Use PLTHOME.
888  --with-python-config-dir=PATH  Python's config directory
889  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
890  --with-x                use the X Window System
891  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
892  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
893  --with-gnome-includes=DIR Specify location of GNOME headers
894  --with-gnome-libs=DIR   Specify location of GNOME libs
895  --with-gnome            Specify prefix for GNOME files
896  --with-motif-lib=STRING   Library for Motif
897  --with-tlib=library     terminal library to be used
898
899Some influential environment variables:
900  CC          C compiler command
901  CFLAGS      C compiler flags
902  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
903              nonstandard directory <lib dir>
904  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
905              headers in a nonstandard directory <include dir>
906  CPP         C preprocessor
907
908Use these variables to override the choices made by `configure' or to help
909it to find libraries and programs with nonstandard names/locations.
910
911_ACEOF
912fi
913
914if test "$ac_init_help" = "recursive"; then
915  # If there are subdirs, report their specific --help.
916  ac_popdir=`pwd`
917  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918    test -d $ac_dir || continue
919    ac_builddir=.
920
921if test "$ac_dir" != .; then
922  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923  # A "../" for each directory in $ac_dir_suffix.
924  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925else
926  ac_dir_suffix= ac_top_builddir=
927fi
928
929case $srcdir in
930  .)  # No --srcdir option.  We are building in place.
931    ac_srcdir=.
932    if test -z "$ac_top_builddir"; then
933       ac_top_srcdir=.
934    else
935       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936    fi ;;
937  [\\/]* | ?:[\\/]* )  # Absolute path.
938    ac_srcdir=$srcdir$ac_dir_suffix;
939    ac_top_srcdir=$srcdir ;;
940  *) # Relative path.
941    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942    ac_top_srcdir=$ac_top_builddir$srcdir ;;
943esac
944
945# Do not use `cd foo && pwd` to compute absolute paths, because
946# the directories may not exist.
947case `pwd` in
948.) ac_abs_builddir="$ac_dir";;
949*)
950  case "$ac_dir" in
951  .) ac_abs_builddir=`pwd`;;
952  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
953  *) ac_abs_builddir=`pwd`/"$ac_dir";;
954  esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_builddir=${ac_top_builddir}.;;
958*)
959  case ${ac_top_builddir}. in
960  .) ac_abs_top_builddir=$ac_abs_builddir;;
961  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
962  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
963  esac;;
964esac
965case $ac_abs_builddir in
966.) ac_abs_srcdir=$ac_srcdir;;
967*)
968  case $ac_srcdir in
969  .) ac_abs_srcdir=$ac_abs_builddir;;
970  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
971  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
972  esac;;
973esac
974case $ac_abs_builddir in
975.) ac_abs_top_srcdir=$ac_top_srcdir;;
976*)
977  case $ac_top_srcdir in
978  .) ac_abs_top_srcdir=$ac_abs_builddir;;
979  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
980  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
981  esac;;
982esac
983
984    cd $ac_dir
985    # Check for guested configure; otherwise get Cygnus style configure.
986    if test -f $ac_srcdir/configure.gnu; then
987      echo
988      $SHELL $ac_srcdir/configure.gnu  --help=recursive
989    elif test -f $ac_srcdir/configure; then
990      echo
991      $SHELL $ac_srcdir/configure  --help=recursive
992    elif test -f $ac_srcdir/configure.ac ||
993	   test -f $ac_srcdir/configure.in; then
994      echo
995      $ac_configure --help
996    else
997      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998    fi
999    cd $ac_popdir
1000  done
1001fi
1002
1003test -n "$ac_init_help" && exit 0
1004if $ac_init_version; then
1005  cat <<\_ACEOF
1006
1007Copyright (C) 2003 Free Software Foundation, Inc.
1008This configure script is free software; the Free Software Foundation
1009gives unlimited permission to copy, distribute and modify it.
1010_ACEOF
1011  exit 0
1012fi
1013exec 5>auto/config.log
1014cat >&5 <<_ACEOF
1015This file contains any messages produced by compilers while
1016running configure, to aid debugging if configure makes a mistake.
1017
1018It was created by $as_me, which was
1019generated by GNU Autoconf 2.59.  Invocation command line was
1020
1021  $ $0 $@
1022
1023_ACEOF
1024{
1025cat <<_ASUNAME
1026## --------- ##
1027## Platform. ##
1028## --------- ##
1029
1030hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035
1036/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1038
1039/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1040/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1041/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1043/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1044/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1045/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1046
1047_ASUNAME
1048
1049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050for as_dir in $PATH
1051do
1052  IFS=$as_save_IFS
1053  test -z "$as_dir" && as_dir=.
1054  echo "PATH: $as_dir"
1055done
1056
1057} >&5
1058
1059cat >&5 <<_ACEOF
1060
1061
1062## ----------- ##
1063## Core tests. ##
1064## ----------- ##
1065
1066_ACEOF
1067
1068
1069# Keep a trace of the command line.
1070# Strip out --no-create and --no-recursion so they do not pile up.
1071# Strip out --silent because we don't want to record it for future runs.
1072# Also quote any args containing shell meta-characters.
1073# Make two passes to allow for proper duplicate-argument suppression.
1074ac_configure_args=
1075ac_configure_args0=
1076ac_configure_args1=
1077ac_sep=
1078ac_must_keep_next=false
1079for ac_pass in 1 2
1080do
1081  for ac_arg
1082  do
1083    case $ac_arg in
1084    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086    | -silent | --silent | --silen | --sile | --sil)
1087      continue ;;
1088    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090    esac
1091    case $ac_pass in
1092    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093    2)
1094      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095      if test $ac_must_keep_next = true; then
1096	ac_must_keep_next=false # Got value, back to normal.
1097      else
1098	case $ac_arg in
1099	  *=* | --config-cache | -C | -disable-* | --disable-* \
1100	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102	  | -with-* | --with-* | -without-* | --without-* | --x)
1103	    case "$ac_configure_args0 " in
1104	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105	    esac
1106	    ;;
1107	  -* ) ac_must_keep_next=true ;;
1108	esac
1109      fi
1110      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111      # Get rid of the leading space.
1112      ac_sep=" "
1113      ;;
1114    esac
1115  done
1116done
1117$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119
1120# When interrupted or exit'd, cleanup temporary files, and complete
1121# config.log.  We remove comments because anyway the quotes in there
1122# would cause problems or look ugly.
1123# WARNING: Be sure not to use single quotes in there, as some shells,
1124# such as our DU 5.0 friend, will then `close' the trap.
1125trap 'exit_status=$?
1126  # Save into config.log some information that might help in debugging.
1127  {
1128    echo
1129
1130    cat <<\_ASBOX
1131## ---------------- ##
1132## Cache variables. ##
1133## ---------------- ##
1134_ASBOX
1135    echo
1136    # The following way of writing the cache mishandles newlines in values,
1137{
1138  (set) 2>&1 |
1139    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140    *ac_space=\ *)
1141      sed -n \
1142	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144      ;;
1145    *)
1146      sed -n \
1147	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148      ;;
1149    esac;
1150}
1151    echo
1152
1153    cat <<\_ASBOX
1154## ----------------- ##
1155## Output variables. ##
1156## ----------------- ##
1157_ASBOX
1158    echo
1159    for ac_var in $ac_subst_vars
1160    do
1161      eval ac_val=$`echo $ac_var`
1162      echo "$ac_var='"'"'$ac_val'"'"'"
1163    done | sort
1164    echo
1165
1166    if test -n "$ac_subst_files"; then
1167      cat <<\_ASBOX
1168## ------------- ##
1169## Output files. ##
1170## ------------- ##
1171_ASBOX
1172      echo
1173      for ac_var in $ac_subst_files
1174      do
1175	eval ac_val=$`echo $ac_var`
1176	echo "$ac_var='"'"'$ac_val'"'"'"
1177      done | sort
1178      echo
1179    fi
1180
1181    if test -s confdefs.h; then
1182      cat <<\_ASBOX
1183## ----------- ##
1184## confdefs.h. ##
1185## ----------- ##
1186_ASBOX
1187      echo
1188      sed "/^$/d" confdefs.h | sort
1189      echo
1190    fi
1191    test "$ac_signal" != 0 &&
1192      echo "$as_me: caught signal $ac_signal"
1193    echo "$as_me: exit $exit_status"
1194  } >&5
1195  rm -f core *.core &&
1196  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197    exit $exit_status
1198     ' 0
1199for ac_signal in 1 2 13 15; do
1200  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201done
1202ac_signal=0
1203
1204# confdefs.h avoids OS command line length limits that DEFS can exceed.
1205rm -rf conftest* confdefs.h
1206# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207echo >confdefs.h
1208
1209# Predefined preprocessor variables.
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_NAME "$PACKAGE_NAME"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_VERSION "$PACKAGE_VERSION"
1223_ACEOF
1224
1225
1226cat >>confdefs.h <<_ACEOF
1227#define PACKAGE_STRING "$PACKAGE_STRING"
1228_ACEOF
1229
1230
1231cat >>confdefs.h <<_ACEOF
1232#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233_ACEOF
1234
1235
1236# Let the site file select an alternate cache file if it wants to.
1237# Prefer explicitly selected file to automatically selected ones.
1238if test -z "$CONFIG_SITE"; then
1239  if test "x$prefix" != xNONE; then
1240    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241  else
1242    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243  fi
1244fi
1245for ac_site_file in $CONFIG_SITE; do
1246  if test -r "$ac_site_file"; then
1247    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248echo "$as_me: loading site script $ac_site_file" >&6;}
1249    sed 's/^/| /' "$ac_site_file" >&5
1250    . "$ac_site_file"
1251  fi
1252done
1253
1254if test -r "$cache_file"; then
1255  # Some versions of bash will fail to source /dev/null (special
1256  # files actually), so we avoid doing that.
1257  if test -f "$cache_file"; then
1258    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259echo "$as_me: loading cache $cache_file" >&6;}
1260    case $cache_file in
1261      [\\/]* | ?:[\\/]* ) . $cache_file;;
1262      *)                      . ./$cache_file;;
1263    esac
1264  fi
1265else
1266  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267echo "$as_me: creating cache $cache_file" >&6;}
1268  >$cache_file
1269fi
1270
1271# Check that the precious variables saved in the cache have kept the same
1272# value.
1273ac_cache_corrupted=false
1274for ac_var in `(set) 2>&1 |
1275	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277  eval ac_new_set=\$ac_env_${ac_var}_set
1278  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279  eval ac_new_val="\$ac_env_${ac_var}_value"
1280  case $ac_old_set,$ac_new_set in
1281    set,)
1282      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284      ac_cache_corrupted=: ;;
1285    ,set)
1286      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288      ac_cache_corrupted=: ;;
1289    ,);;
1290    *)
1291      if test "x$ac_old_val" != "x$ac_new_val"; then
1292	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1295echo "$as_me:   former value:  $ac_old_val" >&2;}
1296	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1297echo "$as_me:   current value: $ac_new_val" >&2;}
1298	ac_cache_corrupted=:
1299      fi;;
1300  esac
1301  # Pass precious variables to config.status.
1302  if test "$ac_new_set" = set; then
1303    case $ac_new_val in
1304    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306    *) ac_arg=$ac_var=$ac_new_val ;;
1307    esac
1308    case " $ac_configure_args " in
1309      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1310      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311    esac
1312  fi
1313done
1314if $ac_cache_corrupted; then
1315  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319   { (exit 1); exit 1; }; }
1320fi
1321
1322ac_ext=c
1323ac_cpp='$CPP $CPPFLAGS'
1324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346          ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1347
1348
1349cat >>confdefs.h <<\_ACEOF
1350#define UNIX 1
1351_ACEOF
1352
1353echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1354echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1355set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1356if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1357  echo $ECHO_N "(cached) $ECHO_C" >&6
1358else
1359  cat >conftest.make <<\_ACEOF
1360all:
1361	@echo 'ac_maketemp="$(MAKE)"'
1362_ACEOF
1363# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1364eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1365if test -n "$ac_maketemp"; then
1366  eval ac_cv_prog_make_${ac_make}_set=yes
1367else
1368  eval ac_cv_prog_make_${ac_make}_set=no
1369fi
1370rm -f conftest.make
1371fi
1372if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1373  echo "$as_me:$LINENO: result: yes" >&5
1374echo "${ECHO_T}yes" >&6
1375  SET_MAKE=
1376else
1377  echo "$as_me:$LINENO: result: no" >&5
1378echo "${ECHO_T}no" >&6
1379  SET_MAKE="MAKE=${MAKE-make}"
1380fi
1381
1382
1383ac_ext=c
1384ac_cpp='$CPP $CPPFLAGS'
1385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1387ac_compiler_gnu=$ac_cv_c_compiler_gnu
1388if test -n "$ac_tool_prefix"; then
1389  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1390set dummy ${ac_tool_prefix}gcc; ac_word=$2
1391echo "$as_me:$LINENO: checking for $ac_word" >&5
1392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393if test "${ac_cv_prog_CC+set}" = set; then
1394  echo $ECHO_N "(cached) $ECHO_C" >&6
1395else
1396  if test -n "$CC"; then
1397  ac_cv_prog_CC="$CC" # Let the user override the test.
1398else
1399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400for as_dir in $PATH
1401do
1402  IFS=$as_save_IFS
1403  test -z "$as_dir" && as_dir=.
1404  for ac_exec_ext in '' $ac_executable_extensions; do
1405  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1406    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408    break 2
1409  fi
1410done
1411done
1412
1413fi
1414fi
1415CC=$ac_cv_prog_CC
1416if test -n "$CC"; then
1417  echo "$as_me:$LINENO: result: $CC" >&5
1418echo "${ECHO_T}$CC" >&6
1419else
1420  echo "$as_me:$LINENO: result: no" >&5
1421echo "${ECHO_T}no" >&6
1422fi
1423
1424fi
1425if test -z "$ac_cv_prog_CC"; then
1426  ac_ct_CC=$CC
1427  # Extract the first word of "gcc", so it can be a program name with args.
1428set dummy gcc; ac_word=$2
1429echo "$as_me:$LINENO: checking for $ac_word" >&5
1430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1432  echo $ECHO_N "(cached) $ECHO_C" >&6
1433else
1434  if test -n "$ac_ct_CC"; then
1435  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1436else
1437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438for as_dir in $PATH
1439do
1440  IFS=$as_save_IFS
1441  test -z "$as_dir" && as_dir=.
1442  for ac_exec_ext in '' $ac_executable_extensions; do
1443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444    ac_cv_prog_ac_ct_CC="gcc"
1445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446    break 2
1447  fi
1448done
1449done
1450
1451fi
1452fi
1453ac_ct_CC=$ac_cv_prog_ac_ct_CC
1454if test -n "$ac_ct_CC"; then
1455  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1456echo "${ECHO_T}$ac_ct_CC" >&6
1457else
1458  echo "$as_me:$LINENO: result: no" >&5
1459echo "${ECHO_T}no" >&6
1460fi
1461
1462  CC=$ac_ct_CC
1463else
1464  CC="$ac_cv_prog_CC"
1465fi
1466
1467if test -z "$CC"; then
1468  if test -n "$ac_tool_prefix"; then
1469  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1470set dummy ${ac_tool_prefix}cc; ac_word=$2
1471echo "$as_me:$LINENO: checking for $ac_word" >&5
1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473if test "${ac_cv_prog_CC+set}" = set; then
1474  echo $ECHO_N "(cached) $ECHO_C" >&6
1475else
1476  if test -n "$CC"; then
1477  ac_cv_prog_CC="$CC" # Let the user override the test.
1478else
1479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480for as_dir in $PATH
1481do
1482  IFS=$as_save_IFS
1483  test -z "$as_dir" && as_dir=.
1484  for ac_exec_ext in '' $ac_executable_extensions; do
1485  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486    ac_cv_prog_CC="${ac_tool_prefix}cc"
1487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488    break 2
1489  fi
1490done
1491done
1492
1493fi
1494fi
1495CC=$ac_cv_prog_CC
1496if test -n "$CC"; then
1497  echo "$as_me:$LINENO: result: $CC" >&5
1498echo "${ECHO_T}$CC" >&6
1499else
1500  echo "$as_me:$LINENO: result: no" >&5
1501echo "${ECHO_T}no" >&6
1502fi
1503
1504fi
1505if test -z "$ac_cv_prog_CC"; then
1506  ac_ct_CC=$CC
1507  # Extract the first word of "cc", so it can be a program name with args.
1508set dummy cc; ac_word=$2
1509echo "$as_me:$LINENO: checking for $ac_word" >&5
1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512  echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514  if test -n "$ac_ct_CC"; then
1515  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516else
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520  IFS=$as_save_IFS
1521  test -z "$as_dir" && as_dir=.
1522  for ac_exec_ext in '' $ac_executable_extensions; do
1523  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524    ac_cv_prog_ac_ct_CC="cc"
1525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526    break 2
1527  fi
1528done
1529done
1530
1531fi
1532fi
1533ac_ct_CC=$ac_cv_prog_ac_ct_CC
1534if test -n "$ac_ct_CC"; then
1535  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1536echo "${ECHO_T}$ac_ct_CC" >&6
1537else
1538  echo "$as_me:$LINENO: result: no" >&5
1539echo "${ECHO_T}no" >&6
1540fi
1541
1542  CC=$ac_ct_CC
1543else
1544  CC="$ac_cv_prog_CC"
1545fi
1546
1547fi
1548if test -z "$CC"; then
1549  # Extract the first word of "cc", so it can be a program name with args.
1550set dummy cc; ac_word=$2
1551echo "$as_me:$LINENO: checking for $ac_word" >&5
1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553if test "${ac_cv_prog_CC+set}" = set; then
1554  echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556  if test -n "$CC"; then
1557  ac_cv_prog_CC="$CC" # Let the user override the test.
1558else
1559  ac_prog_rejected=no
1560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561for as_dir in $PATH
1562do
1563  IFS=$as_save_IFS
1564  test -z "$as_dir" && as_dir=.
1565  for ac_exec_ext in '' $ac_executable_extensions; do
1566  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1568       ac_prog_rejected=yes
1569       continue
1570     fi
1571    ac_cv_prog_CC="cc"
1572    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573    break 2
1574  fi
1575done
1576done
1577
1578if test $ac_prog_rejected = yes; then
1579  # We found a bogon in the path, so make sure we never use it.
1580  set dummy $ac_cv_prog_CC
1581  shift
1582  if test $# != 0; then
1583    # We chose a different compiler from the bogus one.
1584    # However, it has the same basename, so the bogon will be chosen
1585    # first if we set CC to just the basename; use the full file name.
1586    shift
1587    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1588  fi
1589fi
1590fi
1591fi
1592CC=$ac_cv_prog_CC
1593if test -n "$CC"; then
1594  echo "$as_me:$LINENO: result: $CC" >&5
1595echo "${ECHO_T}$CC" >&6
1596else
1597  echo "$as_me:$LINENO: result: no" >&5
1598echo "${ECHO_T}no" >&6
1599fi
1600
1601fi
1602if test -z "$CC"; then
1603  if test -n "$ac_tool_prefix"; then
1604  for ac_prog in cl
1605  do
1606    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1608echo "$as_me:$LINENO: checking for $ac_word" >&5
1609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610if test "${ac_cv_prog_CC+set}" = set; then
1611  echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613  if test -n "$CC"; then
1614  ac_cv_prog_CC="$CC" # Let the user override the test.
1615else
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619  IFS=$as_save_IFS
1620  test -z "$as_dir" && as_dir=.
1621  for ac_exec_ext in '' $ac_executable_extensions; do
1622  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625    break 2
1626  fi
1627done
1628done
1629
1630fi
1631fi
1632CC=$ac_cv_prog_CC
1633if test -n "$CC"; then
1634  echo "$as_me:$LINENO: result: $CC" >&5
1635echo "${ECHO_T}$CC" >&6
1636else
1637  echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
1639fi
1640
1641    test -n "$CC" && break
1642  done
1643fi
1644if test -z "$CC"; then
1645  ac_ct_CC=$CC
1646  for ac_prog in cl
1647do
1648  # Extract the first word of "$ac_prog", so it can be a program name with args.
1649set dummy $ac_prog; ac_word=$2
1650echo "$as_me:$LINENO: checking for $ac_word" >&5
1651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1653  echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655  if test -n "$ac_ct_CC"; then
1656  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657else
1658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659for as_dir in $PATH
1660do
1661  IFS=$as_save_IFS
1662  test -z "$as_dir" && as_dir=.
1663  for ac_exec_ext in '' $ac_executable_extensions; do
1664  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665    ac_cv_prog_ac_ct_CC="$ac_prog"
1666    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667    break 2
1668  fi
1669done
1670done
1671
1672fi
1673fi
1674ac_ct_CC=$ac_cv_prog_ac_ct_CC
1675if test -n "$ac_ct_CC"; then
1676  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1677echo "${ECHO_T}$ac_ct_CC" >&6
1678else
1679  echo "$as_me:$LINENO: result: no" >&5
1680echo "${ECHO_T}no" >&6
1681fi
1682
1683  test -n "$ac_ct_CC" && break
1684done
1685
1686  CC=$ac_ct_CC
1687fi
1688
1689fi
1690
1691
1692test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1693See \`config.log' for more details." >&5
1694echo "$as_me: error: no acceptable C compiler found in \$PATH
1695See \`config.log' for more details." >&2;}
1696   { (exit 1); exit 1; }; }
1697
1698# Provide some information about the compiler.
1699echo "$as_me:$LINENO:" \
1700     "checking for C compiler version" >&5
1701ac_compiler=`set X $ac_compile; echo $2`
1702{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1703  (eval $ac_compiler --version </dev/null >&5) 2>&5
1704  ac_status=$?
1705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706  (exit $ac_status); }
1707{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1708  (eval $ac_compiler -v </dev/null >&5) 2>&5
1709  ac_status=$?
1710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711  (exit $ac_status); }
1712{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1713  (eval $ac_compiler -V </dev/null >&5) 2>&5
1714  ac_status=$?
1715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716  (exit $ac_status); }
1717
1718cat >conftest.$ac_ext <<_ACEOF
1719/* confdefs.h.  */
1720_ACEOF
1721cat confdefs.h >>conftest.$ac_ext
1722cat >>conftest.$ac_ext <<_ACEOF
1723/* end confdefs.h.  */
1724
1725int
1726main ()
1727{
1728
1729  ;
1730  return 0;
1731}
1732_ACEOF
1733ac_clean_files_save=$ac_clean_files
1734ac_clean_files="$ac_clean_files a.out a.exe b.out"
1735# Try to create an executable without -o first, disregard a.out.
1736# It will help us diagnose broken compilers, and finding out an intuition
1737# of exeext.
1738echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1739echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1740ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1741if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1742  (eval $ac_link_default) 2>&5
1743  ac_status=$?
1744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745  (exit $ac_status); }; then
1746  # Find the output, starting from the most likely.  This scheme is
1747# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1748# resort.
1749
1750# Be careful to initialize this variable, since it used to be cached.
1751# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1752ac_cv_exeext=
1753# b.out is created by i960 compilers.
1754for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1755do
1756  test -f "$ac_file" || continue
1757  case $ac_file in
1758    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1759	;;
1760    conftest.$ac_ext )
1761	# This is the source file.
1762	;;
1763    [ab].out )
1764	# We found the default executable, but exeext='' is most
1765	# certainly right.
1766	break;;
1767    *.* )
1768	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1769	# FIXME: I believe we export ac_cv_exeext for Libtool,
1770	# but it would be cool to find out if it's true.  Does anybody
1771	# maintain Libtool? --akim.
1772	export ac_cv_exeext
1773	break;;
1774    * )
1775	break;;
1776  esac
1777done
1778else
1779  echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1783See \`config.log' for more details." >&5
1784echo "$as_me: error: C compiler cannot create executables
1785See \`config.log' for more details." >&2;}
1786   { (exit 77); exit 77; }; }
1787fi
1788
1789ac_exeext=$ac_cv_exeext
1790echo "$as_me:$LINENO: result: $ac_file" >&5
1791echo "${ECHO_T}$ac_file" >&6
1792
1793# Check the compiler produces executables we can run.  If not, either
1794# the compiler is broken, or we cross compile.
1795echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1796echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1797# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1798# If not cross compiling, check that we can run a simple program.
1799if test "$cross_compiling" != yes; then
1800  if { ac_try='./$ac_file'
1801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1802  (eval $ac_try) 2>&5
1803  ac_status=$?
1804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805  (exit $ac_status); }; }; then
1806    cross_compiling=no
1807  else
1808    if test "$cross_compiling" = maybe; then
1809	cross_compiling=yes
1810    else
1811	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1812If you meant to cross compile, use \`--host'.
1813See \`config.log' for more details." >&5
1814echo "$as_me: error: cannot run C compiled programs.
1815If you meant to cross compile, use \`--host'.
1816See \`config.log' for more details." >&2;}
1817   { (exit 1); exit 1; }; }
1818    fi
1819  fi
1820fi
1821echo "$as_me:$LINENO: result: yes" >&5
1822echo "${ECHO_T}yes" >&6
1823
1824rm -f a.out a.exe conftest$ac_cv_exeext b.out
1825ac_clean_files=$ac_clean_files_save
1826# Check the compiler produces executables we can run.  If not, either
1827# the compiler is broken, or we cross compile.
1828echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1829echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1830echo "$as_me:$LINENO: result: $cross_compiling" >&5
1831echo "${ECHO_T}$cross_compiling" >&6
1832
1833echo "$as_me:$LINENO: checking for suffix of executables" >&5
1834echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1836  (eval $ac_link) 2>&5
1837  ac_status=$?
1838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839  (exit $ac_status); }; then
1840  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1841# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1842# work properly (i.e., refer to `conftest.exe'), while it won't with
1843# `rm'.
1844for ac_file in conftest.exe conftest conftest.*; do
1845  test -f "$ac_file" || continue
1846  case $ac_file in
1847    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1848    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1849	  export ac_cv_exeext
1850	  break;;
1851    * ) break;;
1852  esac
1853done
1854else
1855  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1856See \`config.log' for more details." >&5
1857echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1858See \`config.log' for more details." >&2;}
1859   { (exit 1); exit 1; }; }
1860fi
1861
1862rm -f conftest$ac_cv_exeext
1863echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1864echo "${ECHO_T}$ac_cv_exeext" >&6
1865
1866rm -f conftest.$ac_ext
1867EXEEXT=$ac_cv_exeext
1868ac_exeext=$EXEEXT
1869echo "$as_me:$LINENO: checking for suffix of object files" >&5
1870echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1871if test "${ac_cv_objext+set}" = set; then
1872  echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874  cat >conftest.$ac_ext <<_ACEOF
1875/* confdefs.h.  */
1876_ACEOF
1877cat confdefs.h >>conftest.$ac_ext
1878cat >>conftest.$ac_ext <<_ACEOF
1879/* end confdefs.h.  */
1880
1881int
1882main ()
1883{
1884
1885  ;
1886  return 0;
1887}
1888_ACEOF
1889rm -f conftest.o conftest.obj
1890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1891  (eval $ac_compile) 2>&5
1892  ac_status=$?
1893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894  (exit $ac_status); }; then
1895  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1896  case $ac_file in
1897    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1898    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1899       break;;
1900  esac
1901done
1902else
1903  echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1907See \`config.log' for more details." >&5
1908echo "$as_me: error: cannot compute suffix of object files: cannot compile
1909See \`config.log' for more details." >&2;}
1910   { (exit 1); exit 1; }; }
1911fi
1912
1913rm -f conftest.$ac_cv_objext conftest.$ac_ext
1914fi
1915echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1916echo "${ECHO_T}$ac_cv_objext" >&6
1917OBJEXT=$ac_cv_objext
1918ac_objext=$OBJEXT
1919echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1920echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1921if test "${ac_cv_c_compiler_gnu+set}" = set; then
1922  echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924  cat >conftest.$ac_ext <<_ACEOF
1925/* confdefs.h.  */
1926_ACEOF
1927cat confdefs.h >>conftest.$ac_ext
1928cat >>conftest.$ac_ext <<_ACEOF
1929/* end confdefs.h.  */
1930
1931int
1932main ()
1933{
1934#ifndef __GNUC__
1935       choke me
1936#endif
1937
1938  ;
1939  return 0;
1940}
1941_ACEOF
1942rm -f conftest.$ac_objext
1943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944  (eval $ac_compile) 2>conftest.er1
1945  ac_status=$?
1946  grep -v '^ *+' conftest.er1 >conftest.err
1947  rm -f conftest.er1
1948  cat conftest.err >&5
1949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950  (exit $ac_status); } &&
1951	 { ac_try='test -z "$ac_c_werror_flag"
1952			 || test ! -s conftest.err'
1953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954  (eval $ac_try) 2>&5
1955  ac_status=$?
1956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957  (exit $ac_status); }; } &&
1958	 { ac_try='test -s conftest.$ac_objext'
1959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960  (eval $ac_try) 2>&5
1961  ac_status=$?
1962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963  (exit $ac_status); }; }; then
1964  ac_compiler_gnu=yes
1965else
1966  echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969ac_compiler_gnu=no
1970fi
1971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1972ac_cv_c_compiler_gnu=$ac_compiler_gnu
1973
1974fi
1975echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1976echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1977GCC=`test $ac_compiler_gnu = yes && echo yes`
1978ac_test_CFLAGS=${CFLAGS+set}
1979ac_save_CFLAGS=$CFLAGS
1980CFLAGS="-g"
1981echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1982echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1983if test "${ac_cv_prog_cc_g+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  cat >conftest.$ac_ext <<_ACEOF
1987/* confdefs.h.  */
1988_ACEOF
1989cat confdefs.h >>conftest.$ac_ext
1990cat >>conftest.$ac_ext <<_ACEOF
1991/* end confdefs.h.  */
1992
1993int
1994main ()
1995{
1996
1997  ;
1998  return 0;
1999}
2000_ACEOF
2001rm -f conftest.$ac_objext
2002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2003  (eval $ac_compile) 2>conftest.er1
2004  ac_status=$?
2005  grep -v '^ *+' conftest.er1 >conftest.err
2006  rm -f conftest.er1
2007  cat conftest.err >&5
2008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009  (exit $ac_status); } &&
2010	 { ac_try='test -z "$ac_c_werror_flag"
2011			 || test ! -s conftest.err'
2012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013  (eval $ac_try) 2>&5
2014  ac_status=$?
2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016  (exit $ac_status); }; } &&
2017	 { ac_try='test -s conftest.$ac_objext'
2018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019  (eval $ac_try) 2>&5
2020  ac_status=$?
2021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022  (exit $ac_status); }; }; then
2023  ac_cv_prog_cc_g=yes
2024else
2025  echo "$as_me: failed program was:" >&5
2026sed 's/^/| /' conftest.$ac_ext >&5
2027
2028ac_cv_prog_cc_g=no
2029fi
2030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2033echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2034if test "$ac_test_CFLAGS" = set; then
2035  CFLAGS=$ac_save_CFLAGS
2036elif test $ac_cv_prog_cc_g = yes; then
2037  if test "$GCC" = yes; then
2038    CFLAGS="-g -O2"
2039  else
2040    CFLAGS="-g"
2041  fi
2042else
2043  if test "$GCC" = yes; then
2044    CFLAGS="-O2"
2045  else
2046    CFLAGS=
2047  fi
2048fi
2049echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2050echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2051if test "${ac_cv_prog_cc_stdc+set}" = set; then
2052  echo $ECHO_N "(cached) $ECHO_C" >&6
2053else
2054  ac_cv_prog_cc_stdc=no
2055ac_save_CC=$CC
2056cat >conftest.$ac_ext <<_ACEOF
2057/* confdefs.h.  */
2058_ACEOF
2059cat confdefs.h >>conftest.$ac_ext
2060cat >>conftest.$ac_ext <<_ACEOF
2061/* end confdefs.h.  */
2062#include <stdarg.h>
2063#include <stdio.h>
2064#include <sys/types.h>
2065#include <sys/stat.h>
2066/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2067struct buf { int x; };
2068FILE * (*rcsopen) (struct buf *, struct stat *, int);
2069static char *e (p, i)
2070     char **p;
2071     int i;
2072{
2073  return p[i];
2074}
2075static char *f (char * (*g) (char **, int), char **p, ...)
2076{
2077  char *s;
2078  va_list v;
2079  va_start (v,p);
2080  s = g (p, va_arg (v,int));
2081  va_end (v);
2082  return s;
2083}
2084
2085/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2086   function prototypes and stuff, but not '\xHH' hex character constants.
2087   These don't provoke an error unfortunately, instead are silently treated
2088   as 'x'.  The following induces an error, until -std1 is added to get
2089   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2090   array size at least.  It's necessary to write '\x00'==0 to get something
2091   that's true only with -std1.  */
2092int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2093
2094int test (int i, double x);
2095struct s1 {int (*f) (int a);};
2096struct s2 {int (*f) (double a);};
2097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2098int argc;
2099char **argv;
2100int
2101main ()
2102{
2103return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2104  ;
2105  return 0;
2106}
2107_ACEOF
2108# Don't try gcc -ansi; that turns off useful extensions and
2109# breaks some systems' header files.
2110# AIX			-qlanglvl=ansi
2111# Ultrix and OSF/1	-std1
2112# HP-UX 10.20 and later	-Ae
2113# HP-UX older versions	-Aa -D_HPUX_SOURCE
2114# SVR4			-Xc -D__EXTENSIONS__
2115for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2116do
2117  CC="$ac_save_CC $ac_arg"
2118  rm -f conftest.$ac_objext
2119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2120  (eval $ac_compile) 2>conftest.er1
2121  ac_status=$?
2122  grep -v '^ *+' conftest.er1 >conftest.err
2123  rm -f conftest.er1
2124  cat conftest.err >&5
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); } &&
2127	 { ac_try='test -z "$ac_c_werror_flag"
2128			 || test ! -s conftest.err'
2129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130  (eval $ac_try) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }; } &&
2134	 { ac_try='test -s conftest.$ac_objext'
2135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136  (eval $ac_try) 2>&5
2137  ac_status=$?
2138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139  (exit $ac_status); }; }; then
2140  ac_cv_prog_cc_stdc=$ac_arg
2141break
2142else
2143  echo "$as_me: failed program was:" >&5
2144sed 's/^/| /' conftest.$ac_ext >&5
2145
2146fi
2147rm -f conftest.err conftest.$ac_objext
2148done
2149rm -f conftest.$ac_ext conftest.$ac_objext
2150CC=$ac_save_CC
2151
2152fi
2153
2154case "x$ac_cv_prog_cc_stdc" in
2155  x|xno)
2156    echo "$as_me:$LINENO: result: none needed" >&5
2157echo "${ECHO_T}none needed" >&6 ;;
2158  *)
2159    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2160echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2161    CC="$CC $ac_cv_prog_cc_stdc" ;;
2162esac
2163
2164# Some people use a C++ compiler to compile C.  Since we use `exit',
2165# in C++ we need to declare it.  In case someone uses the same compiler
2166# for both compiling C and C++ we need to have the C++ compiler decide
2167# the declaration of exit, since it's the most demanding environment.
2168cat >conftest.$ac_ext <<_ACEOF
2169#ifndef __cplusplus
2170  choke me
2171#endif
2172_ACEOF
2173rm -f conftest.$ac_objext
2174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175  (eval $ac_compile) 2>conftest.er1
2176  ac_status=$?
2177  grep -v '^ *+' conftest.er1 >conftest.err
2178  rm -f conftest.er1
2179  cat conftest.err >&5
2180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181  (exit $ac_status); } &&
2182	 { ac_try='test -z "$ac_c_werror_flag"
2183			 || test ! -s conftest.err'
2184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185  (eval $ac_try) 2>&5
2186  ac_status=$?
2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188  (exit $ac_status); }; } &&
2189	 { ac_try='test -s conftest.$ac_objext'
2190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191  (eval $ac_try) 2>&5
2192  ac_status=$?
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); }; }; then
2195  for ac_declaration in \
2196   '' \
2197   'extern "C" void std::exit (int) throw (); using std::exit;' \
2198   'extern "C" void std::exit (int); using std::exit;' \
2199   'extern "C" void exit (int) throw ();' \
2200   'extern "C" void exit (int);' \
2201   'void exit (int);'
2202do
2203  cat >conftest.$ac_ext <<_ACEOF
2204/* confdefs.h.  */
2205_ACEOF
2206cat confdefs.h >>conftest.$ac_ext
2207cat >>conftest.$ac_ext <<_ACEOF
2208/* end confdefs.h.  */
2209$ac_declaration
2210#include <stdlib.h>
2211int
2212main ()
2213{
2214exit (42);
2215  ;
2216  return 0;
2217}
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221  (eval $ac_compile) 2>conftest.er1
2222  ac_status=$?
2223  grep -v '^ *+' conftest.er1 >conftest.err
2224  rm -f conftest.er1
2225  cat conftest.err >&5
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); } &&
2228	 { ac_try='test -z "$ac_c_werror_flag"
2229			 || test ! -s conftest.err'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; } &&
2235	 { ac_try='test -s conftest.$ac_objext'
2236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237  (eval $ac_try) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; }; then
2241  :
2242else
2243  echo "$as_me: failed program was:" >&5
2244sed 's/^/| /' conftest.$ac_ext >&5
2245
2246continue
2247fi
2248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2249  cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h.  */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h.  */
2255$ac_declaration
2256int
2257main ()
2258{
2259exit (42);
2260  ;
2261  return 0;
2262}
2263_ACEOF
2264rm -f conftest.$ac_objext
2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266  (eval $ac_compile) 2>conftest.er1
2267  ac_status=$?
2268  grep -v '^ *+' conftest.er1 >conftest.err
2269  rm -f conftest.er1
2270  cat conftest.err >&5
2271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272  (exit $ac_status); } &&
2273	 { ac_try='test -z "$ac_c_werror_flag"
2274			 || test ! -s conftest.err'
2275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276  (eval $ac_try) 2>&5
2277  ac_status=$?
2278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279  (exit $ac_status); }; } &&
2280	 { ac_try='test -s conftest.$ac_objext'
2281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282  (eval $ac_try) 2>&5
2283  ac_status=$?
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); }; }; then
2286  break
2287else
2288  echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291fi
2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293done
2294rm -f conftest*
2295if test -n "$ac_declaration"; then
2296  echo '#ifdef __cplusplus' >>confdefs.h
2297  echo $ac_declaration      >>confdefs.h
2298  echo '#endif'             >>confdefs.h
2299fi
2300
2301else
2302  echo "$as_me: failed program was:" >&5
2303sed 's/^/| /' conftest.$ac_ext >&5
2304
2305fi
2306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312	ac_ext=c
2313ac_cpp='$CPP $CPPFLAGS'
2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2318echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2319# On Suns, sometimes $CPP names a directory.
2320if test -n "$CPP" && test -d "$CPP"; then
2321  CPP=
2322fi
2323if test -z "$CPP"; then
2324  if test "${ac_cv_prog_CPP+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327      # Double quotes because CPP needs to be expanded
2328    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2329    do
2330      ac_preproc_ok=false
2331for ac_c_preproc_warn_flag in '' yes
2332do
2333  # Use a header file that comes with gcc, so configuring glibc
2334  # with a fresh cross-compiler works.
2335  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2336  # <limits.h> exists even on freestanding compilers.
2337  # On the NeXT, cc -E runs the code through the compiler's parser,
2338  # not just through cpp. "Syntax error" is here to catch this case.
2339  cat >conftest.$ac_ext <<_ACEOF
2340/* confdefs.h.  */
2341_ACEOF
2342cat confdefs.h >>conftest.$ac_ext
2343cat >>conftest.$ac_ext <<_ACEOF
2344/* end confdefs.h.  */
2345#ifdef __STDC__
2346# include <limits.h>
2347#else
2348# include <assert.h>
2349#endif
2350		     Syntax error
2351_ACEOF
2352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2353  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2354  ac_status=$?
2355  grep -v '^ *+' conftest.er1 >conftest.err
2356  rm -f conftest.er1
2357  cat conftest.err >&5
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); } >/dev/null; then
2360  if test -s conftest.err; then
2361    ac_cpp_err=$ac_c_preproc_warn_flag
2362    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2363  else
2364    ac_cpp_err=
2365  fi
2366else
2367  ac_cpp_err=yes
2368fi
2369if test -z "$ac_cpp_err"; then
2370  :
2371else
2372  echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375  # Broken: fails on valid input.
2376continue
2377fi
2378rm -f conftest.err conftest.$ac_ext
2379
2380  # OK, works on sane cases.  Now check whether non-existent headers
2381  # can be detected and how.
2382  cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h.  */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h.  */
2388#include <ac_nonexistent.h>
2389_ACEOF
2390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2391  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } >/dev/null; then
2398  if test -s conftest.err; then
2399    ac_cpp_err=$ac_c_preproc_warn_flag
2400    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2401  else
2402    ac_cpp_err=
2403  fi
2404else
2405  ac_cpp_err=yes
2406fi
2407if test -z "$ac_cpp_err"; then
2408  # Broken: success on invalid input.
2409continue
2410else
2411  echo "$as_me: failed program was:" >&5
2412sed 's/^/| /' conftest.$ac_ext >&5
2413
2414  # Passes both tests.
2415ac_preproc_ok=:
2416break
2417fi
2418rm -f conftest.err conftest.$ac_ext
2419
2420done
2421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2422rm -f conftest.err conftest.$ac_ext
2423if $ac_preproc_ok; then
2424  break
2425fi
2426
2427    done
2428    ac_cv_prog_CPP=$CPP
2429
2430fi
2431  CPP=$ac_cv_prog_CPP
2432else
2433  ac_cv_prog_CPP=$CPP
2434fi
2435echo "$as_me:$LINENO: result: $CPP" >&5
2436echo "${ECHO_T}$CPP" >&6
2437ac_preproc_ok=false
2438for ac_c_preproc_warn_flag in '' yes
2439do
2440  # Use a header file that comes with gcc, so configuring glibc
2441  # with a fresh cross-compiler works.
2442  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2443  # <limits.h> exists even on freestanding compilers.
2444  # On the NeXT, cc -E runs the code through the compiler's parser,
2445  # not just through cpp. "Syntax error" is here to catch this case.
2446  cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h.  */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
2451/* end confdefs.h.  */
2452#ifdef __STDC__
2453# include <limits.h>
2454#else
2455# include <assert.h>
2456#endif
2457		     Syntax error
2458_ACEOF
2459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2460  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2461  ac_status=$?
2462  grep -v '^ *+' conftest.er1 >conftest.err
2463  rm -f conftest.er1
2464  cat conftest.err >&5
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); } >/dev/null; then
2467  if test -s conftest.err; then
2468    ac_cpp_err=$ac_c_preproc_warn_flag
2469    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2470  else
2471    ac_cpp_err=
2472  fi
2473else
2474  ac_cpp_err=yes
2475fi
2476if test -z "$ac_cpp_err"; then
2477  :
2478else
2479  echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482  # Broken: fails on valid input.
2483continue
2484fi
2485rm -f conftest.err conftest.$ac_ext
2486
2487  # OK, works on sane cases.  Now check whether non-existent headers
2488  # can be detected and how.
2489  cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h.  */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
2494/* end confdefs.h.  */
2495#include <ac_nonexistent.h>
2496_ACEOF
2497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2498  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2499  ac_status=$?
2500  grep -v '^ *+' conftest.er1 >conftest.err
2501  rm -f conftest.er1
2502  cat conftest.err >&5
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); } >/dev/null; then
2505  if test -s conftest.err; then
2506    ac_cpp_err=$ac_c_preproc_warn_flag
2507    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2508  else
2509    ac_cpp_err=
2510  fi
2511else
2512  ac_cpp_err=yes
2513fi
2514if test -z "$ac_cpp_err"; then
2515  # Broken: success on invalid input.
2516continue
2517else
2518  echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
2520
2521  # Passes both tests.
2522ac_preproc_ok=:
2523break
2524fi
2525rm -f conftest.err conftest.$ac_ext
2526
2527done
2528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2529rm -f conftest.err conftest.$ac_ext
2530if $ac_preproc_ok; then
2531  :
2532else
2533  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2534See \`config.log' for more details." >&5
2535echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2536See \`config.log' for more details." >&2;}
2537   { (exit 1); exit 1; }; }
2538fi
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545
2546
2547echo "$as_me:$LINENO: checking for egrep" >&5
2548echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2549if test "${ac_cv_prog_egrep+set}" = set; then
2550  echo $ECHO_N "(cached) $ECHO_C" >&6
2551else
2552  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2553    then ac_cv_prog_egrep='grep -E'
2554    else ac_cv_prog_egrep='egrep'
2555    fi
2556fi
2557echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2558echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2559 EGREP=$ac_cv_prog_egrep
2560
2561
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h.  */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h.  */
2568
2569_ACEOF
2570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2571  $EGREP "" >/dev/null 2>&1; then
2572  :
2573fi
2574rm -f conftest*
2575 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2576echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2577if test "${ac_cv_search_strerror+set}" = set; then
2578  echo $ECHO_N "(cached) $ECHO_C" >&6
2579else
2580  ac_func_search_save_LIBS=$LIBS
2581ac_cv_search_strerror=no
2582cat >conftest.$ac_ext <<_ACEOF
2583/* confdefs.h.  */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h.  */
2588
2589/* Override any gcc2 internal prototype to avoid an error.  */
2590#ifdef __cplusplus
2591extern "C"
2592#endif
2593/* We use char because int might match the return type of a gcc2
2594   builtin and then its argument prototype would still apply.  */
2595char strerror ();
2596int
2597main ()
2598{
2599strerror ();
2600  ;
2601  return 0;
2602}
2603_ACEOF
2604rm -f conftest.$ac_objext conftest$ac_exeext
2605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606  (eval $ac_link) 2>conftest.er1
2607  ac_status=$?
2608  grep -v '^ *+' conftest.er1 >conftest.err
2609  rm -f conftest.er1
2610  cat conftest.err >&5
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613	 { ac_try='test -z "$ac_c_werror_flag"
2614			 || test ! -s conftest.err'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620	 { ac_try='test -s conftest$ac_exeext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  ac_cv_search_strerror="none required"
2627else
2628  echo "$as_me: failed program was:" >&5
2629sed 's/^/| /' conftest.$ac_ext >&5
2630
2631fi
2632rm -f conftest.err conftest.$ac_objext \
2633      conftest$ac_exeext conftest.$ac_ext
2634if test "$ac_cv_search_strerror" = no; then
2635  for ac_lib in cposix; do
2636    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2637    cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h.  */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h.  */
2643
2644/* Override any gcc2 internal prototype to avoid an error.  */
2645#ifdef __cplusplus
2646extern "C"
2647#endif
2648/* We use char because int might match the return type of a gcc2
2649   builtin and then its argument prototype would still apply.  */
2650char strerror ();
2651int
2652main ()
2653{
2654strerror ();
2655  ;
2656  return 0;
2657}
2658_ACEOF
2659rm -f conftest.$ac_objext conftest$ac_exeext
2660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661  (eval $ac_link) 2>conftest.er1
2662  ac_status=$?
2663  grep -v '^ *+' conftest.er1 >conftest.err
2664  rm -f conftest.er1
2665  cat conftest.err >&5
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); } &&
2668	 { ac_try='test -z "$ac_c_werror_flag"
2669			 || test ! -s conftest.err'
2670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671  (eval $ac_try) 2>&5
2672  ac_status=$?
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); }; } &&
2675	 { ac_try='test -s conftest$ac_exeext'
2676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677  (eval $ac_try) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; }; then
2681  ac_cv_search_strerror="-l$ac_lib"
2682break
2683else
2684  echo "$as_me: failed program was:" >&5
2685sed 's/^/| /' conftest.$ac_ext >&5
2686
2687fi
2688rm -f conftest.err conftest.$ac_objext \
2689      conftest$ac_exeext conftest.$ac_ext
2690  done
2691fi
2692LIBS=$ac_func_search_save_LIBS
2693fi
2694echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2695echo "${ECHO_T}$ac_cv_search_strerror" >&6
2696if test "$ac_cv_search_strerror" != no; then
2697  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2698
2699fi
2700	for ac_prog in gawk mawk nawk awk
2701do
2702  # Extract the first word of "$ac_prog", so it can be a program name with args.
2703set dummy $ac_prog; ac_word=$2
2704echo "$as_me:$LINENO: checking for $ac_word" >&5
2705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706if test "${ac_cv_prog_AWK+set}" = set; then
2707  echo $ECHO_N "(cached) $ECHO_C" >&6
2708else
2709  if test -n "$AWK"; then
2710  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715  IFS=$as_save_IFS
2716  test -z "$as_dir" && as_dir=.
2717  for ac_exec_ext in '' $ac_executable_extensions; do
2718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719    ac_cv_prog_AWK="$ac_prog"
2720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721    break 2
2722  fi
2723done
2724done
2725
2726fi
2727fi
2728AWK=$ac_cv_prog_AWK
2729if test -n "$AWK"; then
2730  echo "$as_me:$LINENO: result: $AWK" >&5
2731echo "${ECHO_T}$AWK" >&6
2732else
2733  echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
2735fi
2736
2737  test -n "$AWK" && break
2738done
2739
2740# Extract the first word of "strip", so it can be a program name with args.
2741set dummy strip; ac_word=$2
2742echo "$as_me:$LINENO: checking for $ac_word" >&5
2743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744if test "${ac_cv_prog_STRIP+set}" = set; then
2745  echo $ECHO_N "(cached) $ECHO_C" >&6
2746else
2747  if test -n "$STRIP"; then
2748  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2749else
2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753  IFS=$as_save_IFS
2754  test -z "$as_dir" && as_dir=.
2755  for ac_exec_ext in '' $ac_executable_extensions; do
2756  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757    ac_cv_prog_STRIP="strip"
2758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759    break 2
2760  fi
2761done
2762done
2763
2764  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2765fi
2766fi
2767STRIP=$ac_cv_prog_STRIP
2768if test -n "$STRIP"; then
2769  echo "$as_me:$LINENO: result: $STRIP" >&5
2770echo "${ECHO_T}$STRIP" >&6
2771else
2772  echo "$as_me:$LINENO: result: no" >&5
2773echo "${ECHO_T}no" >&6
2774fi
2775
2776
2777
2778
2779if test -z "$CFLAGS"; then
2780  CFLAGS="-O"
2781  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
2782fi
2783if test "$GCC" = yes; then
2784    gccversion=`"$CC" -dumpversion`
2785  if test "x$gccversion" = "x"; then
2786        gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
2787  fi
2788    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
2789    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
2790    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2791  else
2792    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2793      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2794      CFLAGS="$CFLAGS -fno-strength-reduce"
2795    fi
2796  fi
2797fi
2798
2799if test "$cross_compiling" = yes; then
2800  { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2801  (cross compiling doesn't work)" >&5
2802echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2803  (cross compiling doesn't work)" >&2;}
2804   { (exit 1); exit 1; }; }
2805fi
2806
2807test "$GCC" = yes && CPP_MM=M;
2808
2809if test -f ./toolcheck; then
2810  { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2811echo "$as_me: checking for buggy tools..." >&6;}
2812  sh ./toolcheck 1>&6
2813fi
2814
2815OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2816
2817echo "$as_me:$LINENO: checking for BeOS" >&5
2818echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
2819case `uname` in
2820    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
2821		BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2822echo "${ECHO_T}yes" >&6;;
2823    *)		BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2824echo "${ECHO_T}no" >&6;;
2825esac
2826
2827echo "$as_me:$LINENO: checking for QNX" >&5
2828echo $ECHO_N "checking for QNX... $ECHO_C" >&6
2829case `uname` in
2830    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2831		test -z "$with_x" && with_x=no
2832		QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2833echo "${ECHO_T}yes" >&6;;
2834    *)		QNX=no; echo "$as_me:$LINENO: result: no" >&5
2835echo "${ECHO_T}no" >&6;;
2836esac
2837
2838echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2839echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
2840if test "`(uname) 2>/dev/null`" = Darwin; then
2841  echo "$as_me:$LINENO: result: yes" >&5
2842echo "${ECHO_T}yes" >&6
2843
2844  echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2845echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
2846  # Check whether --enable-darwin or --disable-darwin was given.
2847if test "${enable_darwin+set}" = set; then
2848  enableval="$enable_darwin"
2849
2850else
2851  enable_darwin="yes"
2852fi;
2853  if test "$enable_darwin" = "yes"; then
2854    echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6
2856    echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2857echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
2858    if test -f os_macosx.c; then
2859      echo "$as_me:$LINENO: result: yes" >&5
2860echo "${ECHO_T}yes" >&6
2861    else
2862      echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2863echo "${ECHO_T}no, Darwin support disabled" >&6
2864      enable_darwin=no
2865    fi
2866  else
2867    echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2868echo "${ECHO_T}yes, Darwin support excluded" >&6
2869  fi
2870
2871  echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2872echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2873
2874# Check whether --with-mac-arch or --without-mac-arch was given.
2875if test "${with_mac_arch+set}" = set; then
2876  withval="$with_mac_arch"
2877  MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2878echo "${ECHO_T}$MACARCH" >&6
2879else
2880  MACARCH="current"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
2881echo "${ECHO_T}defaulting to $MACARCH" >&6
2882fi;
2883
2884  if test "x$MACARCH" = "xboth"; then
2885    echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
2886echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6
2887                            save_cppflags="$CPPFLAGS"
2888    save_cflags="$CFLAGS"
2889    save_ldflags="$LDFLAGS"
2890    CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
2891    cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h.  */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h.  */
2897
2898int
2899main ()
2900{
2901
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext conftest$ac_exeext
2907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908  (eval $ac_link) 2>conftest.er1
2909  ac_status=$?
2910  grep -v '^ *+' conftest.er1 >conftest.err
2911  rm -f conftest.er1
2912  cat conftest.err >&5
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); } &&
2915	 { ac_try='test -z "$ac_c_werror_flag"
2916			 || test ! -s conftest.err'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; } &&
2922	 { ac_try='test -s conftest$ac_exeext'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; }; then
2928  echo "$as_me:$LINENO: result: found" >&5
2929echo "${ECHO_T}found" >&6
2930else
2931  echo "$as_me: failed program was:" >&5
2932sed 's/^/| /' conftest.$ac_ext >&5
2933
2934echo "$as_me:$LINENO: result: not found" >&5
2935echo "${ECHO_T}not found" >&6
2936	CFLAGS="$save_cflags"
2937	echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
2938echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
2939	CPPFLAGS="$CPPFLAGS -arch i386"
2940	LDFLAGS="$save_ldflags -arch i386"
2941	cat >conftest.$ac_ext <<_ACEOF
2942/* confdefs.h.  */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h.  */
2947
2948int
2949main ()
2950{
2951
2952  ;
2953  return 0;
2954}
2955_ACEOF
2956rm -f conftest.$ac_objext conftest$ac_exeext
2957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2958  (eval $ac_link) 2>conftest.er1
2959  ac_status=$?
2960  grep -v '^ *+' conftest.er1 >conftest.err
2961  rm -f conftest.er1
2962  cat conftest.err >&5
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); } &&
2965	 { ac_try='test -z "$ac_c_werror_flag"
2966			 || test ! -s conftest.err'
2967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968  (eval $ac_try) 2>&5
2969  ac_status=$?
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); }; } &&
2972	 { ac_try='test -s conftest$ac_exeext'
2973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974  (eval $ac_try) 2>&5
2975  ac_status=$?
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); }; }; then
2978  echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6; MACARCH="intel"
2980else
2981  echo "$as_me: failed program was:" >&5
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984echo "$as_me:$LINENO: result: no" >&5
2985echo "${ECHO_T}no" >&6
2986		MACARCH="ppc"
2987		CPPFLAGS="$save_cppflags -arch ppc"
2988		LDFLAGS="$save_ldflags -arch ppc"
2989fi
2990rm -f conftest.err conftest.$ac_objext \
2991      conftest$ac_exeext conftest.$ac_ext
2992fi
2993rm -f conftest.err conftest.$ac_objext \
2994      conftest$ac_exeext conftest.$ac_ext
2995  elif test "x$MACARCH" = "xintel"; then
2996    CPPFLAGS="$CPPFLAGS -arch intel"
2997    LDFLAGS="$LDFLAGS -arch intel"
2998  elif test "x$MACARCH" = "xppc"; then
2999    CPPFLAGS="$CPPFLAGS -arch ppc"
3000    LDFLAGS="$LDFLAGS -arch ppc"
3001  fi
3002
3003  if test "$enable_darwin" = "yes"; then
3004    MACOSX=yes
3005    OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3006    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3007        CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3008    if test "x$MACARCH" = "xboth"; then
3009      CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3010    else
3011      CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3012    fi
3013
3014                echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3015echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3016if test "${ac_cv_header_stdc+set}" = set; then
3017  echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019  cat >conftest.$ac_ext <<_ACEOF
3020/* confdefs.h.  */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h.  */
3025#include <stdlib.h>
3026#include <stdarg.h>
3027#include <string.h>
3028#include <float.h>
3029
3030int
3031main ()
3032{
3033
3034  ;
3035  return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext
3039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040  (eval $ac_compile) 2>conftest.er1
3041  ac_status=$?
3042  grep -v '^ *+' conftest.er1 >conftest.err
3043  rm -f conftest.er1
3044  cat conftest.err >&5
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); } &&
3047	 { ac_try='test -z "$ac_c_werror_flag"
3048			 || test ! -s conftest.err'
3049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050  (eval $ac_try) 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; } &&
3054	 { ac_try='test -s conftest.$ac_objext'
3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; }; then
3060  ac_cv_header_stdc=yes
3061else
3062  echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065ac_cv_header_stdc=no
3066fi
3067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068
3069if test $ac_cv_header_stdc = yes; then
3070  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3071  cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h.  */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h.  */
3077#include <string.h>
3078
3079_ACEOF
3080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3081  $EGREP "memchr" >/dev/null 2>&1; then
3082  :
3083else
3084  ac_cv_header_stdc=no
3085fi
3086rm -f conftest*
3087
3088fi
3089
3090if test $ac_cv_header_stdc = yes; then
3091  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3092  cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h.  */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h.  */
3098#include <stdlib.h>
3099
3100_ACEOF
3101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3102  $EGREP "free" >/dev/null 2>&1; then
3103  :
3104else
3105  ac_cv_header_stdc=no
3106fi
3107rm -f conftest*
3108
3109fi
3110
3111if test $ac_cv_header_stdc = yes; then
3112  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3113  if test "$cross_compiling" = yes; then
3114  :
3115else
3116  cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h.  */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h.  */
3122#include <ctype.h>
3123#if ((' ' & 0x0FF) == 0x020)
3124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3126#else
3127# define ISLOWER(c) \
3128		   (('a' <= (c) && (c) <= 'i') \
3129		     || ('j' <= (c) && (c) <= 'r') \
3130		     || ('s' <= (c) && (c) <= 'z'))
3131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3132#endif
3133
3134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3135int
3136main ()
3137{
3138  int i;
3139  for (i = 0; i < 256; i++)
3140    if (XOR (islower (i), ISLOWER (i))
3141	|| toupper (i) != TOUPPER (i))
3142      exit(2);
3143  exit (0);
3144}
3145_ACEOF
3146rm -f conftest$ac_exeext
3147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3148  (eval $ac_link) 2>&5
3149  ac_status=$?
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153  (eval $ac_try) 2>&5
3154  ac_status=$?
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); }; }; then
3157  :
3158else
3159  echo "$as_me: program exited with status $ac_status" >&5
3160echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163( exit $ac_status )
3164ac_cv_header_stdc=no
3165fi
3166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3167fi
3168fi
3169fi
3170echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3171echo "${ECHO_T}$ac_cv_header_stdc" >&6
3172if test $ac_cv_header_stdc = yes; then
3173
3174cat >>confdefs.h <<\_ACEOF
3175#define STDC_HEADERS 1
3176_ACEOF
3177
3178fi
3179
3180# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3191		  inttypes.h stdint.h unistd.h
3192do
3193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3194echo "$as_me:$LINENO: checking for $ac_header" >&5
3195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3196if eval "test \"\${$as_ac_Header+set}\" = set"; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  cat >conftest.$ac_ext <<_ACEOF
3200/* confdefs.h.  */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h.  */
3205$ac_includes_default
3206
3207#include <$ac_header>
3208_ACEOF
3209rm -f conftest.$ac_objext
3210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211  (eval $ac_compile) 2>conftest.er1
3212  ac_status=$?
3213  grep -v '^ *+' conftest.er1 >conftest.err
3214  rm -f conftest.er1
3215  cat conftest.err >&5
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } &&
3218	 { ac_try='test -z "$ac_c_werror_flag"
3219			 || test ! -s conftest.err'
3220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221  (eval $ac_try) 2>&5
3222  ac_status=$?
3223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224  (exit $ac_status); }; } &&
3225	 { ac_try='test -s conftest.$ac_objext'
3226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227  (eval $ac_try) 2>&5
3228  ac_status=$?
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); }; }; then
3231  eval "$as_ac_Header=yes"
3232else
3233  echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236eval "$as_ac_Header=no"
3237fi
3238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
3240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3242if test `eval echo '${'$as_ac_Header'}'` = yes; then
3243  cat >>confdefs.h <<_ACEOF
3244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3245_ACEOF
3246
3247fi
3248
3249done
3250
3251
3252if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3253  echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3254echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3255if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3256  echo $ECHO_N "(cached) $ECHO_C" >&6
3257fi
3258echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3259echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3260else
3261  # Is the header compilable?
3262echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3263echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3264cat >conftest.$ac_ext <<_ACEOF
3265/* confdefs.h.  */
3266_ACEOF
3267cat confdefs.h >>conftest.$ac_ext
3268cat >>conftest.$ac_ext <<_ACEOF
3269/* end confdefs.h.  */
3270$ac_includes_default
3271#include <Carbon/Carbon.h>
3272_ACEOF
3273rm -f conftest.$ac_objext
3274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275  (eval $ac_compile) 2>conftest.er1
3276  ac_status=$?
3277  grep -v '^ *+' conftest.er1 >conftest.err
3278  rm -f conftest.er1
3279  cat conftest.err >&5
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); } &&
3282	 { ac_try='test -z "$ac_c_werror_flag"
3283			 || test ! -s conftest.err'
3284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285  (eval $ac_try) 2>&5
3286  ac_status=$?
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }; } &&
3289	 { ac_try='test -s conftest.$ac_objext'
3290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291  (eval $ac_try) 2>&5
3292  ac_status=$?
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); }; }; then
3295  ac_header_compiler=yes
3296else
3297  echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300ac_header_compiler=no
3301fi
3302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3304echo "${ECHO_T}$ac_header_compiler" >&6
3305
3306# Is the header present?
3307echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3308echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3309cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h.  */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h.  */
3315#include <Carbon/Carbon.h>
3316_ACEOF
3317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319  ac_status=$?
3320  grep -v '^ *+' conftest.er1 >conftest.err
3321  rm -f conftest.er1
3322  cat conftest.err >&5
3323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324  (exit $ac_status); } >/dev/null; then
3325  if test -s conftest.err; then
3326    ac_cpp_err=$ac_c_preproc_warn_flag
3327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328  else
3329    ac_cpp_err=
3330  fi
3331else
3332  ac_cpp_err=yes
3333fi
3334if test -z "$ac_cpp_err"; then
3335  ac_header_preproc=yes
3336else
3337  echo "$as_me: failed program was:" >&5
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
3340  ac_header_preproc=no
3341fi
3342rm -f conftest.err conftest.$ac_ext
3343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3344echo "${ECHO_T}$ac_header_preproc" >&6
3345
3346# So?  What about this header?
3347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3348  yes:no: )
3349    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3350echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3351    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3352echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3353    ac_header_preproc=yes
3354    ;;
3355  no:yes:* )
3356    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3357echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3358    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
3359echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
3360    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3361echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3362    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
3363echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3364    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3365echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3366    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3367echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3368    (
3369      cat <<\_ASBOX
3370## ------------------------------------------ ##
3371## Report this to the AC_PACKAGE_NAME lists.  ##
3372## ------------------------------------------ ##
3373_ASBOX
3374    ) |
3375      sed "s/^/$as_me: WARNING:     /" >&2
3376    ;;
3377esac
3378echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3379echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3380if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3381  echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383  ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3384fi
3385echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3386echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3387
3388fi
3389if test $ac_cv_header_Carbon_Carbon_h = yes; then
3390  CARBON=yes
3391fi
3392
3393
3394    if test "x$CARBON" = "xyes"; then
3395      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then
3396	with_x=no
3397      fi
3398    fi
3399  fi
3400
3401        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
3402    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3403  fi
3404
3405else
3406  echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
3408fi
3409
3410
3411
3412
3413have_local_include=''
3414have_local_lib=''
3415if test "$GCC" = yes; then
3416  echo 'void f(){}' > conftest.c
3417    have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3418  have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3419  rm -f conftest.c conftest.o
3420fi
3421if test -z "$have_local_lib" -a -d /usr/local/lib; then
3422  tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3423  if test "$tt" = "$LDFLAGS"; then
3424    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3425  fi
3426fi
3427if test -z "$have_local_include" -a -d /usr/local/include; then
3428  tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3429  if test "$tt" = "$CPPFLAGS"; then
3430    CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3431  fi
3432fi
3433
3434echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3435echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3436
3437# Check whether --with-vim-name or --without-vim-name was given.
3438if test "${with_vim_name+set}" = set; then
3439  withval="$with_vim_name"
3440  VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3441echo "${ECHO_T}$VIMNAME" >&6
3442else
3443  VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
3444echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3445fi;
3446
3447echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3448echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
3449
3450# Check whether --with-ex-name or --without-ex-name was given.
3451if test "${with_ex_name+set}" = set; then
3452  withval="$with_ex_name"
3453  EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3454echo "${ECHO_T}$EXNAME" >&6
3455else
3456  EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3457echo "${ECHO_T}Defaulting to ex" >&6
3458fi;
3459
3460echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3461echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
3462
3463# Check whether --with-view-name or --without-view-name was given.
3464if test "${with_view_name+set}" = set; then
3465  withval="$with_view_name"
3466  VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3467echo "${ECHO_T}$VIEWNAME" >&6
3468else
3469  VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3470echo "${ECHO_T}Defaulting to view" >&6
3471fi;
3472
3473
3474echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3475echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
3476
3477# Check whether --with-global-runtime or --without-global-runtime was given.
3478if test "${with_global_runtime+set}" = set; then
3479  withval="$with_global_runtime"
3480  echo "$as_me:$LINENO: result: $withval" >&5
3481echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3482#define RUNTIME_GLOBAL "$withval"
3483_ACEOF
3484
3485else
3486  echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
3488fi;
3489
3490echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3491echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
3492
3493# Check whether --with-modified-by or --without-modified-by was given.
3494if test "${with_modified_by+set}" = set; then
3495  withval="$with_modified_by"
3496  echo "$as_me:$LINENO: result: $withval" >&5
3497echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3498#define MODIFIED_BY "$withval"
3499_ACEOF
3500
3501else
3502  echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
3504fi;
3505
3506echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3507echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3508cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h.  */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h.  */
3514
3515int
3516main ()
3517{
3518 /* TryCompile function for CharSet.
3519   Treat any failure as ASCII for compatibility with existing art.
3520   Use compile-time rather than run-time tests for cross-compiler
3521   tolerance.  */
3522#if '0'!=240
3523make an error "Character set is not EBCDIC"
3524#endif
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext
3530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531  (eval $ac_compile) 2>conftest.er1
3532  ac_status=$?
3533  grep -v '^ *+' conftest.er1 >conftest.err
3534  rm -f conftest.er1
3535  cat conftest.err >&5
3536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537  (exit $ac_status); } &&
3538	 { ac_try='test -z "$ac_c_werror_flag"
3539			 || test ! -s conftest.err'
3540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541  (eval $ac_try) 2>&5
3542  ac_status=$?
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); }; } &&
3545	 { ac_try='test -s conftest.$ac_objext'
3546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547  (eval $ac_try) 2>&5
3548  ac_status=$?
3549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550  (exit $ac_status); }; }; then
3551   # TryCompile action if true
3552cf_cv_ebcdic=yes
3553else
3554  echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # TryCompile action if false
3558cf_cv_ebcdic=no
3559fi
3560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3561# end of TryCompile ])
3562# end of CacheVal CvEbcdic
3563echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3564echo "${ECHO_T}$cf_cv_ebcdic" >&6
3565case "$cf_cv_ebcdic" in  #(vi
3566    yes)	cat >>confdefs.h <<\_ACEOF
3567#define EBCDIC 1
3568_ACEOF
3569
3570		line_break='"\\n"'
3571		;;
3572    *)		line_break='"\\012"';;
3573esac
3574
3575
3576if test "$cf_cv_ebcdic" = "yes"; then
3577echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3578echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3579case `uname` in
3580    OS/390)	OS390Unix="yes";
3581										if test "$CC" = "cc"; then
3582		  ccm="$_CC_CCMODE"
3583		  ccn="CC"
3584		else
3585		  if test "$CC" = "c89"; then
3586		    ccm="$_CC_C89MODE"
3587		    ccn="C89"
3588		  else
3589		    ccm=1
3590		  fi
3591		fi
3592		if test "$ccm" != "1"; then
3593		  echo ""
3594		  echo "------------------------------------------"
3595		  echo " On OS/390 Unix, the environment variable"
3596		  echo " __CC_${ccn}MODE must be set to \"1\"!"
3597		  echo " Do:"
3598		  echo "    export _CC_${ccn}MODE=1"
3599		  echo " and then call configure again."
3600		  echo "------------------------------------------"
3601		  exit 1
3602		fi
3603		CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
3604		echo "$as_me:$LINENO: result: yes" >&5
3605echo "${ECHO_T}yes" >&6
3606		;;
3607    *)		OS390Unix="no";
3608		echo "$as_me:$LINENO: result: no" >&5
3609echo "${ECHO_T}no" >&6
3610		;;
3611esac
3612fi
3613
3614
3615
3616echo "$as_me:$LINENO: checking --with-features argument" >&5
3617echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3618
3619# Check whether --with-features or --without-features was given.
3620if test "${with_features+set}" = set; then
3621  withval="$with_features"
3622  features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3623echo "${ECHO_T}$features" >&6
3624else
3625  features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3626echo "${ECHO_T}Defaulting to normal" >&6
3627fi;
3628
3629dovimdiff=""
3630dogvimdiff=""
3631case "$features" in
3632  tiny)		cat >>confdefs.h <<\_ACEOF
3633#define FEAT_TINY 1
3634_ACEOF
3635 ;;
3636  small)	cat >>confdefs.h <<\_ACEOF
3637#define FEAT_SMALL 1
3638_ACEOF
3639 ;;
3640  normal)	cat >>confdefs.h <<\_ACEOF
3641#define FEAT_NORMAL 1
3642_ACEOF
3643 dovimdiff="installvimdiff";
3644			dogvimdiff="installgvimdiff" ;;
3645  big)		cat >>confdefs.h <<\_ACEOF
3646#define FEAT_BIG 1
3647_ACEOF
3648 dovimdiff="installvimdiff";
3649			dogvimdiff="installgvimdiff" ;;
3650  huge)		cat >>confdefs.h <<\_ACEOF
3651#define FEAT_HUGE 1
3652_ACEOF
3653 dovimdiff="installvimdiff";
3654			dogvimdiff="installgvimdiff" ;;
3655  *)		echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3656echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
3657esac
3658
3659
3660
3661
3662echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3663echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3664
3665# Check whether --with-compiledby or --without-compiledby was given.
3666if test "${with_compiledby+set}" = set; then
3667  withval="$with_compiledby"
3668  compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3669echo "${ECHO_T}$withval" >&6
3670else
3671  compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673fi;
3674
3675
3676echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3677echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
3678# Check whether --enable-xsmp or --disable-xsmp was given.
3679if test "${enable_xsmp+set}" = set; then
3680  enableval="$enable_xsmp"
3681
3682else
3683  enable_xsmp="yes"
3684fi;
3685
3686if test "$enable_xsmp" = "yes"; then
3687  echo "$as_me:$LINENO: result: no" >&5
3688echo "${ECHO_T}no" >&6
3689  echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3690echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
3691  # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3692if test "${enable_xsmp_interact+set}" = set; then
3693  enableval="$enable_xsmp_interact"
3694
3695else
3696  enable_xsmp_interact="yes"
3697fi;
3698  if test "$enable_xsmp_interact" = "yes"; then
3699    echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701    cat >>confdefs.h <<\_ACEOF
3702#define USE_XSMP_INTERACT 1
3703_ACEOF
3704
3705  else
3706    echo "$as_me:$LINENO: result: yes" >&5
3707echo "${ECHO_T}yes" >&6
3708  fi
3709else
3710  echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6
3712fi
3713
3714echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3715echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
3716# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3717if test "${enable_mzschemeinterp+set}" = set; then
3718  enableval="$enable_mzschemeinterp"
3719
3720else
3721  enable_mzschemeinterp="no"
3722fi;
3723echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3724echo "${ECHO_T}$enable_mzschemeinterp" >&6
3725
3726if test "$enable_mzschemeinterp" = "yes"; then
3727
3728
3729  echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3730echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3731
3732# Check whether --with-plthome or --without-plthome was given.
3733if test "${with_plthome+set}" = set; then
3734  withval="$with_plthome"
3735  with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3736echo "${ECHO_T}$with_plthome" >&6
3737else
3738  with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3739echo "${ECHO_T}\"no\"" >&6
3740fi;
3741
3742  if test "X$with_plthome" != "X"; then
3743       vi_cv_path_mzscheme_pfx="$with_plthome"
3744  else
3745    echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3746echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
3747    if test "X$PLTHOME" != "X"; then
3748	echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3749echo "${ECHO_T}\"$PLTHOME\"" >&6
3750	vi_cv_path_mzscheme_pfx="$PLTHOME"
3751    else
3752	echo "$as_me:$LINENO: result: \"not set\"" >&5
3753echo "${ECHO_T}\"not set\"" >&6
3754		# Extract the first word of "mzscheme", so it can be a program name with args.
3755set dummy mzscheme; ac_word=$2
3756echo "$as_me:$LINENO: checking for $ac_word" >&5
3757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3759  echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761  case $vi_cv_path_mzscheme in
3762  [\\/]* | ?:[\\/]*)
3763  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3764  ;;
3765  *)
3766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769  IFS=$as_save_IFS
3770  test -z "$as_dir" && as_dir=.
3771  for ac_exec_ext in '' $ac_executable_extensions; do
3772  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775    break 2
3776  fi
3777done
3778done
3779
3780  ;;
3781esac
3782fi
3783vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3784
3785if test -n "$vi_cv_path_mzscheme"; then
3786  echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3787echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
3788else
3789  echo "$as_me:$LINENO: result: no" >&5
3790echo "${ECHO_T}no" >&6
3791fi
3792
3793
3794			if test "X$vi_cv_path_mzscheme" != "X"; then
3795	  lsout=`ls -l $vi_cv_path_mzscheme`
3796	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3797	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3798	  fi
3799	fi
3800
3801	if test "X$vi_cv_path_mzscheme" != "X"; then
3802	    	    echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3803echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3804if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3805  echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807   vi_cv_path_mzscheme_pfx=`
3808	    ${vi_cv_path_mzscheme} -evm \
3809	    "(display (simplify-path		\
3810	       (build-path (call-with-values	\
3811		(lambda () (split-path (find-system-path (quote exec-file)))) \
3812		(lambda (base name must-be-dir?) base)) (quote up))))"`
3813fi
3814echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3815echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
3816	    	    vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3817	fi
3818    fi
3819  fi
3820
3821  SCHEME_INC=
3822  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3823    echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3824echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6
3825    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
3826      echo "$as_me:$LINENO: result: \"yes\"" >&5
3827echo "${ECHO_T}\"yes\"" >&6
3828    else
3829      echo "$as_me:$LINENO: result: \"no\"" >&5
3830echo "${ECHO_T}\"no\"" >&6
3831      echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
3832echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... $ECHO_C" >&6
3833      if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
3834	echo "$as_me:$LINENO: result: \"yes\"" >&5
3835echo "${ECHO_T}\"yes\"" >&6
3836	SCHEME_INC=/plt
3837      else
3838	echo "$as_me:$LINENO: result: \"no\"" >&5
3839echo "${ECHO_T}\"no\"" >&6
3840	vi_cv_path_mzscheme_pfx=
3841      fi
3842    fi
3843  fi
3844
3845  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3846    if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3847      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3848    else
3849      MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
3850      if test "$GCC" = yes; then
3851			MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
3852      elif test "`(uname) 2>/dev/null`" = SunOS &&
3853			       uname -r | grep '^5' >/dev/null; then
3854	MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
3855      fi
3856    fi
3857    if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
3858      SCHEME_COLLECTS=lib/plt/
3859    fi
3860    MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC}   \
3861      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
3862    MZSCHEME_SRC="if_mzsch.c"
3863    MZSCHEME_OBJ="objects/if_mzsch.o"
3864    MZSCHEME_PRO="if_mzsch.pro"
3865    cat >>confdefs.h <<\_ACEOF
3866#define FEAT_MZSCHEME 1
3867_ACEOF
3868
3869  fi
3870
3871
3872
3873
3874
3875fi
3876
3877
3878echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3879echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
3880# Check whether --enable-perlinterp or --disable-perlinterp was given.
3881if test "${enable_perlinterp+set}" = set; then
3882  enableval="$enable_perlinterp"
3883
3884else
3885  enable_perlinterp="no"
3886fi;
3887echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3888echo "${ECHO_T}$enable_perlinterp" >&6
3889if test "$enable_perlinterp" = "yes"; then
3890
3891  # Extract the first word of "perl", so it can be a program name with args.
3892set dummy perl; ac_word=$2
3893echo "$as_me:$LINENO: checking for $ac_word" >&5
3894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3896  echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898  case $vi_cv_path_perl in
3899  [\\/]* | ?:[\\/]*)
3900  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3901  ;;
3902  *)
3903  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906  IFS=$as_save_IFS
3907  test -z "$as_dir" && as_dir=.
3908  for ac_exec_ext in '' $ac_executable_extensions; do
3909  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3911    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3912    break 2
3913  fi
3914done
3915done
3916
3917  ;;
3918esac
3919fi
3920vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3921
3922if test -n "$vi_cv_path_perl"; then
3923  echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3924echo "${ECHO_T}$vi_cv_path_perl" >&6
3925else
3926  echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928fi
3929
3930  if test "X$vi_cv_path_perl" != "X"; then
3931    echo "$as_me:$LINENO: checking Perl version" >&5
3932echo $ECHO_N "checking Perl version... $ECHO_C" >&6
3933    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3934     eval `$vi_cv_path_perl -V:usethreads`
3935     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3936       badthreads=no
3937     else
3938       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3939	 eval `$vi_cv_path_perl -V:use5005threads`
3940	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3941	   badthreads=no
3942	 else
3943	   badthreads=yes
3944	   echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3945echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
3946	 fi
3947       else
3948	 badthreads=yes
3949	 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3950echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
3951       fi
3952     fi
3953     if test $badthreads = no; then
3954      echo "$as_me:$LINENO: result: OK" >&5
3955echo "${ECHO_T}OK" >&6
3956      eval `$vi_cv_path_perl -V:shrpenv`
3957      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3958	shrpenv=""
3959      fi
3960      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
3961
3962            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3963	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3964            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3965		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3966			-e 's/-bE:perl.exp//' -e 's/-lc //'`
3967                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3968		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3969
3970                  echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3971echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
3972      cflags_save=$CFLAGS
3973      libs_save=$LIBS
3974      ldflags_save=$LDFLAGS
3975      CFLAGS="$CFLAGS $perlcppflags"
3976      LIBS="$LIBS $perllibs"
3977      LDFLAGS="$perlldflags $LDFLAGS"
3978      cat >conftest.$ac_ext <<_ACEOF
3979/* confdefs.h.  */
3980_ACEOF
3981cat confdefs.h >>conftest.$ac_ext
3982cat >>conftest.$ac_ext <<_ACEOF
3983/* end confdefs.h.  */
3984
3985int
3986main ()
3987{
3988
3989  ;
3990  return 0;
3991}
3992_ACEOF
3993rm -f conftest.$ac_objext conftest$ac_exeext
3994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3995  (eval $ac_link) 2>conftest.er1
3996  ac_status=$?
3997  grep -v '^ *+' conftest.er1 >conftest.err
3998  rm -f conftest.er1
3999  cat conftest.err >&5
4000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001  (exit $ac_status); } &&
4002	 { ac_try='test -z "$ac_c_werror_flag"
4003			 || test ! -s conftest.err'
4004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005  (eval $ac_try) 2>&5
4006  ac_status=$?
4007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008  (exit $ac_status); }; } &&
4009	 { ac_try='test -s conftest$ac_exeext'
4010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011  (eval $ac_try) 2>&5
4012  ac_status=$?
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); }; }; then
4015  echo "$as_me:$LINENO: result: yes" >&5
4016echo "${ECHO_T}yes" >&6; perl_ok=yes
4017else
4018  echo "$as_me: failed program was:" >&5
4019sed 's/^/| /' conftest.$ac_ext >&5
4020
4021echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4022echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
4023fi
4024rm -f conftest.err conftest.$ac_objext \
4025      conftest$ac_exeext conftest.$ac_ext
4026      CFLAGS=$cflags_save
4027      LIBS=$libs_save
4028      LDFLAGS=$ldflags_save
4029      if test $perl_ok = yes; then
4030	if test "X$perlcppflags" != "X"; then
4031	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4032	fi
4033	if test "X$perlldflags" != "X"; then
4034	  LDFLAGS="$perlldflags $LDFLAGS"
4035	fi
4036	PERL_LIBS=$perllibs
4037	PERL_SRC="auto/if_perl.c if_perlsfio.c"
4038	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4039	PERL_PRO="if_perl.pro if_perlsfio.pro"
4040	cat >>confdefs.h <<\_ACEOF
4041#define FEAT_PERL 1
4042_ACEOF
4043
4044      fi
4045     fi
4046    else
4047      echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4048echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
4049    fi
4050  fi
4051
4052  if test "x$MACOSX" = "xyes"; then
4053        dir=/System/Library/Perl
4054    darwindir=$dir/darwin
4055    if test -d $darwindir; then
4056      PERL=/usr/bin/perl
4057    else
4058            dir=/System/Library/Perl/5.8.1
4059      darwindir=$dir/darwin-thread-multi-2level
4060      if test -d $darwindir; then
4061	PERL=/usr/bin/perl
4062      fi
4063    fi
4064    if test -n "$PERL"; then
4065      PERL_DIR="$dir"
4066      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4067      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4068      PERL_LIBS="-L$darwindir/CORE -lperl"
4069    fi
4070  fi
4071fi
4072
4073
4074
4075
4076
4077
4078
4079echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4080echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
4081# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4082if test "${enable_pythoninterp+set}" = set; then
4083  enableval="$enable_pythoninterp"
4084
4085else
4086  enable_pythoninterp="no"
4087fi;
4088echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4089echo "${ECHO_T}$enable_pythoninterp" >&6
4090if test "$enable_pythoninterp" = "yes"; then
4091    # Extract the first word of "python", so it can be a program name with args.
4092set dummy python; ac_word=$2
4093echo "$as_me:$LINENO: checking for $ac_word" >&5
4094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4096  echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098  case $vi_cv_path_python in
4099  [\\/]* | ?:[\\/]*)
4100  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4101  ;;
4102  *)
4103  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH
4105do
4106  IFS=$as_save_IFS
4107  test -z "$as_dir" && as_dir=.
4108  for ac_exec_ext in '' $ac_executable_extensions; do
4109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112    break 2
4113  fi
4114done
4115done
4116
4117  ;;
4118esac
4119fi
4120vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4121
4122if test -n "$vi_cv_path_python"; then
4123  echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4124echo "${ECHO_T}$vi_cv_path_python" >&6
4125else
4126  echo "$as_me:$LINENO: result: no" >&5
4127echo "${ECHO_T}no" >&6
4128fi
4129
4130  if test "X$vi_cv_path_python" != "X"; then
4131
4132        echo "$as_me:$LINENO: checking Python version" >&5
4133echo $ECHO_N "checking Python version... $ECHO_C" >&6
4134if test "${vi_cv_var_python_version+set}" = set; then
4135  echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137  vi_cv_var_python_version=`
4138	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
4139
4140fi
4141echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4142echo "${ECHO_T}$vi_cv_var_python_version" >&6
4143
4144        echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4145echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
4146    if ${vi_cv_path_python} -c \
4147	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4148    then
4149      echo "$as_me:$LINENO: result: yep" >&5
4150echo "${ECHO_T}yep" >&6
4151
4152            echo "$as_me:$LINENO: checking Python's install prefix" >&5
4153echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4154if test "${vi_cv_path_python_pfx+set}" = set; then
4155  echo $ECHO_N "(cached) $ECHO_C" >&6
4156else
4157   vi_cv_path_python_pfx=`
4158	    ${vi_cv_path_python} -c \
4159		"import sys; print sys.prefix"`
4160fi
4161echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4162echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
4163
4164            echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4165echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4166if test "${vi_cv_path_python_epfx+set}" = set; then
4167  echo $ECHO_N "(cached) $ECHO_C" >&6
4168else
4169   vi_cv_path_python_epfx=`
4170	    ${vi_cv_path_python} -c \
4171		"import sys; print sys.exec_prefix"`
4172fi
4173echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4174echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
4175
4176
4177      if test "${vi_cv_path_pythonpath+set}" = set; then
4178  echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180   vi_cv_path_pythonpath=`
4181	    unset PYTHONPATH;
4182	    ${vi_cv_path_python} -c \
4183		"import sys, string; print string.join(sys.path,':')"`
4184fi
4185
4186
4187
4188
4189# Check whether --with-python-config-dir or --without-python-config-dir was given.
4190if test "${with_python_config_dir+set}" = set; then
4191  withval="$with_python_config_dir"
4192   vi_cv_path_python_conf="${withval}"
4193fi;
4194
4195      echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4196echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4197if test "${vi_cv_path_python_conf+set}" = set; then
4198  echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200
4201	vi_cv_path_python_conf=
4202	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4203	  for subdir in lib share; do
4204	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4205	    if test -d "$d" && test -f "$d/config.c"; then
4206	      vi_cv_path_python_conf="$d"
4207	    fi
4208	  done
4209	done
4210
4211fi
4212echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4213echo "${ECHO_T}$vi_cv_path_python_conf" >&6
4214
4215      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4216
4217      if test "X$PYTHON_CONFDIR" = "X"; then
4218	echo "$as_me:$LINENO: result: can't find it!" >&5
4219echo "${ECHO_T}can't find it!" >&6
4220      else
4221
4222			if test "${vi_cv_path_python_plibs+set}" = set; then
4223  echo $ECHO_N "(cached) $ECHO_C" >&6
4224else
4225
4226	    tmp_mkf="/tmp/Makefile-conf$$"
4227	    cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4228__:
4229	@echo "python_MODLIBS='$(MODLIBS)'"
4230	@echo "python_LIBS='$(LIBS)'"
4231	@echo "python_SYSLIBS='$(SYSLIBS)'"
4232	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4233eof
4234	    	    eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4235	    rm -f ${tmp_mkf}
4236	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4237		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4238	      vi_cv_path_python_plibs="-framework Python"
4239	    else
4240	      if test "${vi_cv_var_python_version}" = "1.4"; then
4241		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4242	      else
4243		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4244	      fi
4245	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4246	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4247	    fi
4248
4249fi
4250
4251
4252	PYTHON_LIBS="${vi_cv_path_python_plibs}"
4253	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4254	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4255	else
4256	  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}"
4257	fi
4258	PYTHON_SRC="if_python.c"
4259		if test "x$MACOSX" = "xyes"; then
4260	  PYTHON_OBJ="objects/if_python.o"
4261	else
4262	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4263	fi
4264	if test "${vi_cv_var_python_version}" = "1.4"; then
4265	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4266	fi
4267	PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4268
4269								echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4270echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
4271	threadsafe_flag=
4272	thread_lib=
4273	        if test "`(uname) 2>/dev/null`" != Darwin; then
4274	  test "$GCC" = yes && threadsafe_flag="-pthread"
4275	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
4276	    threadsafe_flag="-D_THREAD_SAFE"
4277	    thread_lib="-pthread"
4278	  fi
4279	fi
4280	libs_save_old=$LIBS
4281	if test -n "$threadsafe_flag"; then
4282	  cflags_save=$CFLAGS
4283	  CFLAGS="$CFLAGS $threadsafe_flag"
4284	  LIBS="$LIBS $thread_lib"
4285	  cat >conftest.$ac_ext <<_ACEOF
4286/* confdefs.h.  */
4287_ACEOF
4288cat confdefs.h >>conftest.$ac_ext
4289cat >>conftest.$ac_ext <<_ACEOF
4290/* end confdefs.h.  */
4291
4292int
4293main ()
4294{
4295
4296  ;
4297  return 0;
4298}
4299_ACEOF
4300rm -f conftest.$ac_objext conftest$ac_exeext
4301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4302  (eval $ac_link) 2>conftest.er1
4303  ac_status=$?
4304  grep -v '^ *+' conftest.er1 >conftest.err
4305  rm -f conftest.er1
4306  cat conftest.err >&5
4307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308  (exit $ac_status); } &&
4309	 { ac_try='test -z "$ac_c_werror_flag"
4310			 || test ! -s conftest.err'
4311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312  (eval $ac_try) 2>&5
4313  ac_status=$?
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); }; } &&
4316	 { ac_try='test -s conftest$ac_exeext'
4317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318  (eval $ac_try) 2>&5
4319  ac_status=$?
4320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321  (exit $ac_status); }; }; then
4322  echo "$as_me:$LINENO: result: yes" >&5
4323echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
4324else
4325  echo "$as_me: failed program was:" >&5
4326sed 's/^/| /' conftest.$ac_ext >&5
4327
4328echo "$as_me:$LINENO: result: no" >&5
4329echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4330
4331fi
4332rm -f conftest.err conftest.$ac_objext \
4333      conftest$ac_exeext conftest.$ac_ext
4334	  CFLAGS=$cflags_save
4335	else
4336	  echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6
4338	fi
4339
4340			echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4341echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
4342	cflags_save=$CFLAGS
4343	libs_save=$LIBS
4344	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4345	LIBS="$LIBS $PYTHON_LIBS"
4346	cat >conftest.$ac_ext <<_ACEOF
4347/* confdefs.h.  */
4348_ACEOF
4349cat confdefs.h >>conftest.$ac_ext
4350cat >>conftest.$ac_ext <<_ACEOF
4351/* end confdefs.h.  */
4352
4353int
4354main ()
4355{
4356
4357  ;
4358  return 0;
4359}
4360_ACEOF
4361rm -f conftest.$ac_objext conftest$ac_exeext
4362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4363  (eval $ac_link) 2>conftest.er1
4364  ac_status=$?
4365  grep -v '^ *+' conftest.er1 >conftest.err
4366  rm -f conftest.er1
4367  cat conftest.err >&5
4368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369  (exit $ac_status); } &&
4370	 { ac_try='test -z "$ac_c_werror_flag"
4371			 || test ! -s conftest.err'
4372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373  (eval $ac_try) 2>&5
4374  ac_status=$?
4375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376  (exit $ac_status); }; } &&
4377	 { ac_try='test -s conftest$ac_exeext'
4378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379  (eval $ac_try) 2>&5
4380  ac_status=$?
4381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382  (exit $ac_status); }; }; then
4383  echo "$as_me:$LINENO: result: yes" >&5
4384echo "${ECHO_T}yes" >&6; python_ok=yes
4385else
4386  echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4390echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
4391fi
4392rm -f conftest.err conftest.$ac_objext \
4393      conftest$ac_exeext conftest.$ac_ext
4394	CFLAGS=$cflags_save
4395	LIBS=$libs_save
4396	if test $python_ok = yes; then
4397	  cat >>confdefs.h <<\_ACEOF
4398#define FEAT_PYTHON 1
4399_ACEOF
4400
4401	else
4402	  LIBS=$libs_save_old
4403	  PYTHON_SRC=
4404	  PYTHON_OBJ=
4405	  PYTHON_LIBS=
4406	  PYTHON_CFLAGS=
4407	fi
4408
4409      fi
4410    else
4411      echo "$as_me:$LINENO: result: too old" >&5
4412echo "${ECHO_T}too old" >&6
4413    fi
4414  fi
4415fi
4416
4417
4418
4419
4420
4421
4422
4423echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4424echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
4425# Check whether --enable-tclinterp or --disable-tclinterp was given.
4426if test "${enable_tclinterp+set}" = set; then
4427  enableval="$enable_tclinterp"
4428
4429else
4430  enable_tclinterp="no"
4431fi;
4432echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4433echo "${ECHO_T}$enable_tclinterp" >&6
4434
4435if test "$enable_tclinterp" = "yes"; then
4436
4437    echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4438echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4439
4440# Check whether --with-tclsh or --without-tclsh was given.
4441if test "${with_tclsh+set}" = set; then
4442  withval="$with_tclsh"
4443  tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4444echo "${ECHO_T}$tclsh_name" >&6
4445else
4446  tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4447echo "${ECHO_T}no" >&6
4448fi;
4449  # Extract the first word of "$tclsh_name", so it can be a program name with args.
4450set dummy $tclsh_name; ac_word=$2
4451echo "$as_me:$LINENO: checking for $ac_word" >&5
4452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4453if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4454  echo $ECHO_N "(cached) $ECHO_C" >&6
4455else
4456  case $vi_cv_path_tcl in
4457  [\\/]* | ?:[\\/]*)
4458  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4459  ;;
4460  *)
4461  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464  IFS=$as_save_IFS
4465  test -z "$as_dir" && as_dir=.
4466  for ac_exec_ext in '' $ac_executable_extensions; do
4467  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470    break 2
4471  fi
4472done
4473done
4474
4475  ;;
4476esac
4477fi
4478vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4479
4480if test -n "$vi_cv_path_tcl"; then
4481  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4482echo "${ECHO_T}$vi_cv_path_tcl" >&6
4483else
4484  echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6
4486fi
4487
4488
4489
4490    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
4491    tclsh_name="tclsh8.2"
4492    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4493set dummy $tclsh_name; ac_word=$2
4494echo "$as_me:$LINENO: checking for $ac_word" >&5
4495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4497  echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499  case $vi_cv_path_tcl in
4500  [\\/]* | ?:[\\/]*)
4501  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4502  ;;
4503  *)
4504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507  IFS=$as_save_IFS
4508  test -z "$as_dir" && as_dir=.
4509  for ac_exec_ext in '' $ac_executable_extensions; do
4510  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513    break 2
4514  fi
4515done
4516done
4517
4518  ;;
4519esac
4520fi
4521vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4522
4523if test -n "$vi_cv_path_tcl"; then
4524  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4525echo "${ECHO_T}$vi_cv_path_tcl" >&6
4526else
4527  echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529fi
4530
4531  fi
4532  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4533    tclsh_name="tclsh8.0"
4534    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4535set dummy $tclsh_name; ac_word=$2
4536echo "$as_me:$LINENO: checking for $ac_word" >&5
4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4539  echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541  case $vi_cv_path_tcl in
4542  [\\/]* | ?:[\\/]*)
4543  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4544  ;;
4545  *)
4546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549  IFS=$as_save_IFS
4550  test -z "$as_dir" && as_dir=.
4551  for ac_exec_ext in '' $ac_executable_extensions; do
4552  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4554    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555    break 2
4556  fi
4557done
4558done
4559
4560  ;;
4561esac
4562fi
4563vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4564
4565if test -n "$vi_cv_path_tcl"; then
4566  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4567echo "${ECHO_T}$vi_cv_path_tcl" >&6
4568else
4569  echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6
4571fi
4572
4573  fi
4574    if test "X$vi_cv_path_tcl" = "X"; then
4575    tclsh_name="tclsh"
4576    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4577set dummy $tclsh_name; ac_word=$2
4578echo "$as_me:$LINENO: checking for $ac_word" >&5
4579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4581  echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583  case $vi_cv_path_tcl in
4584  [\\/]* | ?:[\\/]*)
4585  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4586  ;;
4587  *)
4588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591  IFS=$as_save_IFS
4592  test -z "$as_dir" && as_dir=.
4593  for ac_exec_ext in '' $ac_executable_extensions; do
4594  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4596    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597    break 2
4598  fi
4599done
4600done
4601
4602  ;;
4603esac
4604fi
4605vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4606
4607if test -n "$vi_cv_path_tcl"; then
4608  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4609echo "${ECHO_T}$vi_cv_path_tcl" >&6
4610else
4611  echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6
4613fi
4614
4615  fi
4616  if test "X$vi_cv_path_tcl" != "X"; then
4617    echo "$as_me:$LINENO: checking Tcl version" >&5
4618echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
4619    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4620      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
4621      echo "$as_me:$LINENO: result: $tclver - OK" >&5
4622echo "${ECHO_T}$tclver - OK" >&6;
4623      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 -`
4624
4625      echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4626echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
4627      if test "x$MACOSX" != "xyes"; then
4628	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
4629      else
4630		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4631      fi
4632      for try in $tclinc; do
4633	if test -f "$try/tcl.h"; then
4634	  echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4635echo "${ECHO_T}$try/tcl.h" >&6
4636	  TCL_INC=$try
4637	  break
4638	fi
4639      done
4640      if test -z "$TCL_INC"; then
4641	echo "$as_me:$LINENO: result: <not found>" >&5
4642echo "${ECHO_T}<not found>" >&6
4643	SKIP_TCL=YES
4644      fi
4645      if test -z "$SKIP_TCL"; then
4646	echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4647echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
4648	if test "x$MACOSX" != "xyes"; then
4649	  tclcnf=`echo $tclinc | sed s/include/lib/g`
4650	else
4651	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
4652	fi
4653	for try in $tclcnf; do
4654	  if test -f $try/tclConfig.sh; then
4655	    echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4656echo "${ECHO_T}$try/tclConfig.sh" >&6
4657	    . $try/tclConfig.sh
4658	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
4659	    	    	    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'`
4660	    break
4661	  fi
4662	done
4663	if test -z "$TCL_LIBS"; then
4664	  echo "$as_me:$LINENO: result: <not found>" >&5
4665echo "${ECHO_T}<not found>" >&6
4666	  echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4667echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
4668	  tcllib=`echo $tclinc | sed s/include/lib/g`
4669	  for ext in .so .a ; do
4670	    for ver in "" $tclver ; do
4671	      for try in $tcllib ; do
4672		trylib=tcl$ver$ext
4673		if test -f $try/lib$trylib ; then
4674		  echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4675echo "${ECHO_T}$try/lib$trylib" >&6
4676		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4677		  if test "`(uname) 2>/dev/null`" = SunOS &&
4678					 uname -r | grep '^5' >/dev/null; then
4679		    TCL_LIBS="$TCL_LIBS -R $try"
4680		  fi
4681		  break 3
4682		fi
4683	      done
4684	    done
4685	  done
4686	  if test -z "$TCL_LIBS"; then
4687	    echo "$as_me:$LINENO: result: <not found>" >&5
4688echo "${ECHO_T}<not found>" >&6
4689	    SKIP_TCL=YES
4690	  fi
4691	fi
4692	if test -z "$SKIP_TCL"; then
4693	  cat >>confdefs.h <<\_ACEOF
4694#define FEAT_TCL 1
4695_ACEOF
4696
4697	  TCL_SRC=if_tcl.c
4698	  TCL_OBJ=objects/if_tcl.o
4699	  TCL_PRO=if_tcl.pro
4700	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4701	fi
4702      fi
4703    else
4704      echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4705echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
4706    fi
4707  fi
4708fi
4709
4710
4711
4712
4713
4714
4715echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4716echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
4717# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4718if test "${enable_rubyinterp+set}" = set; then
4719  enableval="$enable_rubyinterp"
4720
4721else
4722  enable_rubyinterp="no"
4723fi;
4724echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4725echo "${ECHO_T}$enable_rubyinterp" >&6
4726if test "$enable_rubyinterp" = "yes"; then
4727
4728  # Extract the first word of "ruby", so it can be a program name with args.
4729set dummy ruby; ac_word=$2
4730echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4733  echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735  case $vi_cv_path_ruby in
4736  [\\/]* | ?:[\\/]*)
4737  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4738  ;;
4739  *)
4740  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743  IFS=$as_save_IFS
4744  test -z "$as_dir" && as_dir=.
4745  for ac_exec_ext in '' $ac_executable_extensions; do
4746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749    break 2
4750  fi
4751done
4752done
4753
4754  ;;
4755esac
4756fi
4757vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4758
4759if test -n "$vi_cv_path_ruby"; then
4760  echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4761echo "${ECHO_T}$vi_cv_path_ruby" >&6
4762else
4763  echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6
4765fi
4766
4767  if test "X$vi_cv_path_ruby" != "X"; then
4768    echo "$as_me:$LINENO: checking Ruby version" >&5
4769echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
4770    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
4771      echo "$as_me:$LINENO: result: OK" >&5
4772echo "${ECHO_T}OK" >&6
4773      echo "$as_me:$LINENO: checking Ruby header files" >&5
4774echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
4775      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4776      if test "X$rubyhdrdir" != "X"; then
4777	echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4778echo "${ECHO_T}$rubyhdrdir" >&6
4779	RUBY_CFLAGS="-I$rubyhdrdir"
4780	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4781	if test "X$rubylibs" != "X"; then
4782	  RUBY_LIBS="$rubylibs"
4783	fi
4784	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4785	if test -f "$rubyhdrdir/$librubyarg"; then
4786	  librubyarg="$rubyhdrdir/$librubyarg"
4787	else
4788	  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4789	  if test -f "$rubylibdir/$librubyarg"; then
4790	    librubyarg="$rubylibdir/$librubyarg"
4791	  elif test "$librubyarg" = "libruby.a"; then
4792	    	    librubyarg="-lruby"
4793	  else
4794	    librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4795	  fi
4796	fi
4797
4798	if test "X$librubyarg" != "X"; then
4799	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
4800	fi
4801	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4802	if test "X$rubyldflags" != "X"; then
4803	  LDFLAGS="$rubyldflags $LDFLAGS"
4804	fi
4805	RUBY_SRC="if_ruby.c"
4806	RUBY_OBJ="objects/if_ruby.o"
4807	RUBY_PRO="if_ruby.pro"
4808	cat >>confdefs.h <<\_ACEOF
4809#define FEAT_RUBY 1
4810_ACEOF
4811
4812      else
4813	echo "$as_me:$LINENO: result: not found" >&5
4814echo "${ECHO_T}not found" >&6
4815      fi
4816    else
4817      echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4818echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
4819    fi
4820  fi
4821fi
4822
4823
4824
4825
4826
4827
4828echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4829echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
4830# Check whether --enable-cscope or --disable-cscope was given.
4831if test "${enable_cscope+set}" = set; then
4832  enableval="$enable_cscope"
4833
4834else
4835  enable_cscope="no"
4836fi;
4837echo "$as_me:$LINENO: result: $enable_cscope" >&5
4838echo "${ECHO_T}$enable_cscope" >&6
4839if test "$enable_cscope" = "yes"; then
4840  cat >>confdefs.h <<\_ACEOF
4841#define FEAT_CSCOPE 1
4842_ACEOF
4843
4844fi
4845
4846echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4847echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
4848# Check whether --enable-workshop or --disable-workshop was given.
4849if test "${enable_workshop+set}" = set; then
4850  enableval="$enable_workshop"
4851
4852else
4853  enable_workshop="no"
4854fi;
4855echo "$as_me:$LINENO: result: $enable_workshop" >&5
4856echo "${ECHO_T}$enable_workshop" >&6
4857if test "$enable_workshop" = "yes"; then
4858  cat >>confdefs.h <<\_ACEOF
4859#define FEAT_SUN_WORKSHOP 1
4860_ACEOF
4861
4862  WORKSHOP_SRC="workshop.c integration.c"
4863
4864  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
4865
4866  if test "${enable_gui-xxx}" = xxx; then
4867    enable_gui=motif
4868  fi
4869fi
4870
4871echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4872echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
4873# Check whether --enable-netbeans or --disable-netbeans was given.
4874if test "${enable_netbeans+set}" = set; then
4875  enableval="$enable_netbeans"
4876
4877else
4878  enable_netbeans="yes"
4879fi;
4880if test "$enable_netbeans" = "yes"; then
4881  echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
4883
4884echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4885echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4886if test "${ac_cv_lib_socket_socket+set}" = set; then
4887  echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889  ac_check_lib_save_LIBS=$LIBS
4890LIBS="-lsocket  $LIBS"
4891cat >conftest.$ac_ext <<_ACEOF
4892/* confdefs.h.  */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h.  */
4897
4898/* Override any gcc2 internal prototype to avoid an error.  */
4899#ifdef __cplusplus
4900extern "C"
4901#endif
4902/* We use char because int might match the return type of a gcc2
4903   builtin and then its argument prototype would still apply.  */
4904char socket ();
4905int
4906main ()
4907{
4908socket ();
4909  ;
4910  return 0;
4911}
4912_ACEOF
4913rm -f conftest.$ac_objext conftest$ac_exeext
4914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4915  (eval $ac_link) 2>conftest.er1
4916  ac_status=$?
4917  grep -v '^ *+' conftest.er1 >conftest.err
4918  rm -f conftest.er1
4919  cat conftest.err >&5
4920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921  (exit $ac_status); } &&
4922	 { ac_try='test -z "$ac_c_werror_flag"
4923			 || test ! -s conftest.err'
4924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925  (eval $ac_try) 2>&5
4926  ac_status=$?
4927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928  (exit $ac_status); }; } &&
4929	 { ac_try='test -s conftest$ac_exeext'
4930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931  (eval $ac_try) 2>&5
4932  ac_status=$?
4933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934  (exit $ac_status); }; }; then
4935  ac_cv_lib_socket_socket=yes
4936else
4937  echo "$as_me: failed program was:" >&5
4938sed 's/^/| /' conftest.$ac_ext >&5
4939
4940ac_cv_lib_socket_socket=no
4941fi
4942rm -f conftest.err conftest.$ac_objext \
4943      conftest$ac_exeext conftest.$ac_ext
4944LIBS=$ac_check_lib_save_LIBS
4945fi
4946echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4947echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4948if test $ac_cv_lib_socket_socket = yes; then
4949  cat >>confdefs.h <<_ACEOF
4950#define HAVE_LIBSOCKET 1
4951_ACEOF
4952
4953  LIBS="-lsocket $LIBS"
4954
4955fi
4956
4957
4958echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4959echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4960if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4961  echo $ECHO_N "(cached) $ECHO_C" >&6
4962else
4963  ac_check_lib_save_LIBS=$LIBS
4964LIBS="-lnsl  $LIBS"
4965cat >conftest.$ac_ext <<_ACEOF
4966/* confdefs.h.  */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h.  */
4971
4972/* Override any gcc2 internal prototype to avoid an error.  */
4973#ifdef __cplusplus
4974extern "C"
4975#endif
4976/* We use char because int might match the return type of a gcc2
4977   builtin and then its argument prototype would still apply.  */
4978char gethostbyname ();
4979int
4980main ()
4981{
4982gethostbyname ();
4983  ;
4984  return 0;
4985}
4986_ACEOF
4987rm -f conftest.$ac_objext conftest$ac_exeext
4988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4989  (eval $ac_link) 2>conftest.er1
4990  ac_status=$?
4991  grep -v '^ *+' conftest.er1 >conftest.err
4992  rm -f conftest.er1
4993  cat conftest.err >&5
4994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995  (exit $ac_status); } &&
4996	 { ac_try='test -z "$ac_c_werror_flag"
4997			 || test ! -s conftest.err'
4998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999  (eval $ac_try) 2>&5
5000  ac_status=$?
5001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002  (exit $ac_status); }; } &&
5003	 { ac_try='test -s conftest$ac_exeext'
5004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005  (eval $ac_try) 2>&5
5006  ac_status=$?
5007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008  (exit $ac_status); }; }; then
5009  ac_cv_lib_nsl_gethostbyname=yes
5010else
5011  echo "$as_me: failed program was:" >&5
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
5014ac_cv_lib_nsl_gethostbyname=no
5015fi
5016rm -f conftest.err conftest.$ac_objext \
5017      conftest$ac_exeext conftest.$ac_ext
5018LIBS=$ac_check_lib_save_LIBS
5019fi
5020echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5021echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5022if test $ac_cv_lib_nsl_gethostbyname = yes; then
5023  cat >>confdefs.h <<_ACEOF
5024#define HAVE_LIBNSL 1
5025_ACEOF
5026
5027  LIBS="-lnsl $LIBS"
5028
5029fi
5030
5031  echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5032echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5033  cat >conftest.$ac_ext <<_ACEOF
5034/* confdefs.h.  */
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h.  */
5039
5040#include <stdio.h>
5041#include <stdlib.h>
5042#include <stdarg.h>
5043#include <fcntl.h>
5044#include <netdb.h>
5045#include <netinet/in.h>
5046#include <errno.h>
5047#include <sys/types.h>
5048#include <sys/socket.h>
5049	/* Check bitfields */
5050	struct nbbuf {
5051	unsigned int  initDone:1;
5052	ushort signmaplen;
5053	};
5054
5055int
5056main ()
5057{
5058
5059		/* Check creating a socket. */
5060		struct sockaddr_in server;
5061		(void)socket(AF_INET, SOCK_STREAM, 0);
5062		(void)htons(100);
5063		(void)gethostbyname("microsoft.com");
5064		if (errno == ECONNREFUSED)
5065		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
5066
5067  ;
5068  return 0;
5069}
5070_ACEOF
5071rm -f conftest.$ac_objext conftest$ac_exeext
5072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5073  (eval $ac_link) 2>conftest.er1
5074  ac_status=$?
5075  grep -v '^ *+' conftest.er1 >conftest.err
5076  rm -f conftest.er1
5077  cat conftest.err >&5
5078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); } &&
5080	 { ac_try='test -z "$ac_c_werror_flag"
5081			 || test ! -s conftest.err'
5082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083  (eval $ac_try) 2>&5
5084  ac_status=$?
5085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086  (exit $ac_status); }; } &&
5087	 { ac_try='test -s conftest$ac_exeext'
5088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089  (eval $ac_try) 2>&5
5090  ac_status=$?
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); }; }; then
5093  echo "$as_me:$LINENO: result: yes" >&5
5094echo "${ECHO_T}yes" >&6
5095else
5096  echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6; enable_netbeans="no"
5101fi
5102rm -f conftest.err conftest.$ac_objext \
5103      conftest$ac_exeext conftest.$ac_ext
5104else
5105  echo "$as_me:$LINENO: result: yes" >&5
5106echo "${ECHO_T}yes" >&6
5107fi
5108if test "$enable_netbeans" = "yes"; then
5109  cat >>confdefs.h <<\_ACEOF
5110#define FEAT_NETBEANS_INTG 1
5111_ACEOF
5112
5113  NETBEANS_SRC="netbeans.c"
5114
5115  NETBEANS_OBJ="objects/netbeans.o"
5116
5117fi
5118
5119echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5120echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
5121# Check whether --enable-sniff or --disable-sniff was given.
5122if test "${enable_sniff+set}" = set; then
5123  enableval="$enable_sniff"
5124
5125else
5126  enable_sniff="no"
5127fi;
5128echo "$as_me:$LINENO: result: $enable_sniff" >&5
5129echo "${ECHO_T}$enable_sniff" >&6
5130if test "$enable_sniff" = "yes"; then
5131  cat >>confdefs.h <<\_ACEOF
5132#define FEAT_SNIFF 1
5133_ACEOF
5134
5135  SNIFF_SRC="if_sniff.c"
5136
5137  SNIFF_OBJ="objects/if_sniff.o"
5138
5139fi
5140
5141echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5142echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
5143# Check whether --enable-multibyte or --disable-multibyte was given.
5144if test "${enable_multibyte+set}" = set; then
5145  enableval="$enable_multibyte"
5146
5147else
5148  enable_multibyte="no"
5149fi;
5150echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5151echo "${ECHO_T}$enable_multibyte" >&6
5152if test "$enable_multibyte" = "yes"; then
5153  cat >>confdefs.h <<\_ACEOF
5154#define FEAT_MBYTE 1
5155_ACEOF
5156
5157fi
5158
5159echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5160echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
5161# Check whether --enable-hangulinput or --disable-hangulinput was given.
5162if test "${enable_hangulinput+set}" = set; then
5163  enableval="$enable_hangulinput"
5164
5165else
5166  enable_hangulinput="no"
5167fi;
5168echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5169echo "${ECHO_T}$enable_hangulinput" >&6
5170
5171echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5172echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
5173# Check whether --enable-xim or --disable-xim was given.
5174if test "${enable_xim+set}" = set; then
5175  enableval="$enable_xim"
5176  echo "$as_me:$LINENO: result: $enable_xim" >&5
5177echo "${ECHO_T}$enable_xim" >&6
5178else
5179  enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5180echo "${ECHO_T}defaulting to auto" >&6
5181fi;
5182
5183echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5184echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
5185# Check whether --enable-fontset or --disable-fontset was given.
5186if test "${enable_fontset+set}" = set; then
5187  enableval="$enable_fontset"
5188
5189else
5190  enable_fontset="no"
5191fi;
5192echo "$as_me:$LINENO: result: $enable_fontset" >&5
5193echo "${ECHO_T}$enable_fontset" >&6
5194
5195test -z "$with_x" && with_x=yes
5196test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5197if test "$with_x" = no; then
5198  echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5199echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
5200else
5201
5202  # Extract the first word of "xmkmf", so it can be a program name with args.
5203set dummy xmkmf; ac_word=$2
5204echo "$as_me:$LINENO: checking for $ac_word" >&5
5205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206if test "${ac_cv_path_xmkmfpath+set}" = set; then
5207  echo $ECHO_N "(cached) $ECHO_C" >&6
5208else
5209  case $xmkmfpath in
5210  [\\/]* | ?:[\\/]*)
5211  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5212  ;;
5213  *)
5214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217  IFS=$as_save_IFS
5218  test -z "$as_dir" && as_dir=.
5219  for ac_exec_ext in '' $ac_executable_extensions; do
5220  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5222    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223    break 2
5224  fi
5225done
5226done
5227
5228  ;;
5229esac
5230fi
5231xmkmfpath=$ac_cv_path_xmkmfpath
5232
5233if test -n "$xmkmfpath"; then
5234  echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5235echo "${ECHO_T}$xmkmfpath" >&6
5236else
5237  echo "$as_me:$LINENO: result: no" >&5
5238echo "${ECHO_T}no" >&6
5239fi
5240
5241
5242  echo "$as_me:$LINENO: checking for X" >&5
5243echo $ECHO_N "checking for X... $ECHO_C" >&6
5244
5245
5246# Check whether --with-x or --without-x was given.
5247if test "${with_x+set}" = set; then
5248  withval="$with_x"
5249
5250fi;
5251# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5252if test "x$with_x" = xno; then
5253  # The user explicitly disabled X.
5254  have_x=disabled
5255else
5256  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5257    # Both variables are already set.
5258    have_x=yes
5259  else
5260    if test "${ac_cv_have_x+set}" = set; then
5261  echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263  # One or both of the vars are not set, and there is no cached value.
5264ac_x_includes=no ac_x_libraries=no
5265rm -fr conftest.dir
5266if mkdir conftest.dir; then
5267  cd conftest.dir
5268  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5269  cat >Imakefile <<'_ACEOF'
5270acfindx:
5271	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5272_ACEOF
5273  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5274    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5275    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5276    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5277    for ac_extension in a so sl; do
5278      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5279	 test -f $ac_im_libdir/libX11.$ac_extension; then
5280	ac_im_usrlibdir=$ac_im_libdir; break
5281      fi
5282    done
5283    # Screen out bogus values from the imake configuration.  They are
5284    # bogus both because they are the default anyway, and because
5285    # using them would break gcc on systems where it needs fixed includes.
5286    case $ac_im_incroot in
5287	/usr/include) ;;
5288	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5289    esac
5290    case $ac_im_usrlibdir in
5291	/usr/lib | /lib) ;;
5292	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5293    esac
5294  fi
5295  cd ..
5296  rm -fr conftest.dir
5297fi
5298
5299# Standard set of common directories for X headers.
5300# Check X11 before X11Rn because it is often a symlink to the current release.
5301ac_x_header_dirs='
5302/usr/X11/include
5303/usr/X11R6/include
5304/usr/X11R5/include
5305/usr/X11R4/include
5306
5307/usr/include/X11
5308/usr/include/X11R6
5309/usr/include/X11R5
5310/usr/include/X11R4
5311
5312/usr/local/X11/include
5313/usr/local/X11R6/include
5314/usr/local/X11R5/include
5315/usr/local/X11R4/include
5316
5317/usr/local/include/X11
5318/usr/local/include/X11R6
5319/usr/local/include/X11R5
5320/usr/local/include/X11R4
5321
5322/usr/X386/include
5323/usr/x386/include
5324/usr/XFree86/include/X11
5325
5326/usr/include
5327/usr/local/include
5328/usr/unsupported/include
5329/usr/athena/include
5330/usr/local/x11r5/include
5331/usr/lpp/Xamples/include
5332
5333/usr/openwin/include
5334/usr/openwin/share/include'
5335
5336if test "$ac_x_includes" = no; then
5337  # Guess where to find include files, by looking for Intrinsic.h.
5338  # First, try using that file with no special directory specified.
5339  cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h.  */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h.  */
5345#include <X11/Intrinsic.h>
5346_ACEOF
5347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5348  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5349  ac_status=$?
5350  grep -v '^ *+' conftest.er1 >conftest.err
5351  rm -f conftest.er1
5352  cat conftest.err >&5
5353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); } >/dev/null; then
5355  if test -s conftest.err; then
5356    ac_cpp_err=$ac_c_preproc_warn_flag
5357    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5358  else
5359    ac_cpp_err=
5360  fi
5361else
5362  ac_cpp_err=yes
5363fi
5364if test -z "$ac_cpp_err"; then
5365  # We can compile using X headers with no special include directory.
5366ac_x_includes=
5367else
5368  echo "$as_me: failed program was:" >&5
5369sed 's/^/| /' conftest.$ac_ext >&5
5370
5371  for ac_dir in $ac_x_header_dirs; do
5372  if test -r "$ac_dir/X11/Intrinsic.h"; then
5373    ac_x_includes=$ac_dir
5374    break
5375  fi
5376done
5377fi
5378rm -f conftest.err conftest.$ac_ext
5379fi # $ac_x_includes = no
5380
5381if test "$ac_x_libraries" = no; then
5382  # Check for the libraries.
5383  # See if we find them without any special options.
5384  # Don't add to $LIBS permanently.
5385  ac_save_LIBS=$LIBS
5386  LIBS="-lXt $LIBS"
5387  cat >conftest.$ac_ext <<_ACEOF
5388/* confdefs.h.  */
5389_ACEOF
5390cat confdefs.h >>conftest.$ac_ext
5391cat >>conftest.$ac_ext <<_ACEOF
5392/* end confdefs.h.  */
5393#include <X11/Intrinsic.h>
5394int
5395main ()
5396{
5397XtMalloc (0)
5398  ;
5399  return 0;
5400}
5401_ACEOF
5402rm -f conftest.$ac_objext conftest$ac_exeext
5403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5404  (eval $ac_link) 2>conftest.er1
5405  ac_status=$?
5406  grep -v '^ *+' conftest.er1 >conftest.err
5407  rm -f conftest.er1
5408  cat conftest.err >&5
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); } &&
5411	 { ac_try='test -z "$ac_c_werror_flag"
5412			 || test ! -s conftest.err'
5413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414  (eval $ac_try) 2>&5
5415  ac_status=$?
5416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417  (exit $ac_status); }; } &&
5418	 { ac_try='test -s conftest$ac_exeext'
5419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420  (eval $ac_try) 2>&5
5421  ac_status=$?
5422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423  (exit $ac_status); }; }; then
5424  LIBS=$ac_save_LIBS
5425# We can link X programs with no special library path.
5426ac_x_libraries=
5427else
5428  echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
5431LIBS=$ac_save_LIBS
5432for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5433do
5434  # Don't even attempt the hair of trying to link an X program!
5435  for ac_extension in a so sl; do
5436    if test -r $ac_dir/libXt.$ac_extension; then
5437      ac_x_libraries=$ac_dir
5438      break 2
5439    fi
5440  done
5441done
5442fi
5443rm -f conftest.err conftest.$ac_objext \
5444      conftest$ac_exeext conftest.$ac_ext
5445fi # $ac_x_libraries = no
5446
5447if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5448  # Didn't find X anywhere.  Cache the known absence of X.
5449  ac_cv_have_x="have_x=no"
5450else
5451  # Record where we found X for the cache.
5452  ac_cv_have_x="have_x=yes \
5453		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5454fi
5455fi
5456
5457  fi
5458  eval "$ac_cv_have_x"
5459fi # $with_x != no
5460
5461if test "$have_x" != yes; then
5462  echo "$as_me:$LINENO: result: $have_x" >&5
5463echo "${ECHO_T}$have_x" >&6
5464  no_x=yes
5465else
5466  # If each of the values was on the command line, it overrides each guess.
5467  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5468  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5469  # Update the cache value to reflect the command line values.
5470  ac_cv_have_x="have_x=yes \
5471		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5472  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5473echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5474fi
5475
5476if test "$no_x" = yes; then
5477  # Not all programs may use this symbol, but it does not hurt to define it.
5478
5479cat >>confdefs.h <<\_ACEOF
5480#define X_DISPLAY_MISSING 1
5481_ACEOF
5482
5483  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5484else
5485  if test -n "$x_includes"; then
5486    X_CFLAGS="$X_CFLAGS -I$x_includes"
5487  fi
5488
5489  # It would also be nice to do this for all -L options, not just this one.
5490  if test -n "$x_libraries"; then
5491    X_LIBS="$X_LIBS -L$x_libraries"
5492    # For Solaris; some versions of Sun CC require a space after -R and
5493    # others require no space.  Words are not sufficient . . . .
5494    case `(uname -sr) 2>/dev/null` in
5495    "SunOS 5"*)
5496      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5497echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5498      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5499      cat >conftest.$ac_ext <<_ACEOF
5500/* confdefs.h.  */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
5504/* end confdefs.h.  */
5505
5506int
5507main ()
5508{
5509
5510  ;
5511  return 0;
5512}
5513_ACEOF
5514rm -f conftest.$ac_objext conftest$ac_exeext
5515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5516  (eval $ac_link) 2>conftest.er1
5517  ac_status=$?
5518  grep -v '^ *+' conftest.er1 >conftest.err
5519  rm -f conftest.er1
5520  cat conftest.err >&5
5521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522  (exit $ac_status); } &&
5523	 { ac_try='test -z "$ac_c_werror_flag"
5524			 || test ! -s conftest.err'
5525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526  (eval $ac_try) 2>&5
5527  ac_status=$?
5528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529  (exit $ac_status); }; } &&
5530	 { ac_try='test -s conftest$ac_exeext'
5531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532  (eval $ac_try) 2>&5
5533  ac_status=$?
5534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535  (exit $ac_status); }; }; then
5536  ac_R_nospace=yes
5537else
5538  echo "$as_me: failed program was:" >&5
5539sed 's/^/| /' conftest.$ac_ext >&5
5540
5541ac_R_nospace=no
5542fi
5543rm -f conftest.err conftest.$ac_objext \
5544      conftest$ac_exeext conftest.$ac_ext
5545      if test $ac_R_nospace = yes; then
5546	echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
5548	X_LIBS="$X_LIBS -R$x_libraries"
5549      else
5550	LIBS="$ac_xsave_LIBS -R $x_libraries"
5551	cat >conftest.$ac_ext <<_ACEOF
5552/* confdefs.h.  */
5553_ACEOF
5554cat confdefs.h >>conftest.$ac_ext
5555cat >>conftest.$ac_ext <<_ACEOF
5556/* end confdefs.h.  */
5557
5558int
5559main ()
5560{
5561
5562  ;
5563  return 0;
5564}
5565_ACEOF
5566rm -f conftest.$ac_objext conftest$ac_exeext
5567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5568  (eval $ac_link) 2>conftest.er1
5569  ac_status=$?
5570  grep -v '^ *+' conftest.er1 >conftest.err
5571  rm -f conftest.er1
5572  cat conftest.err >&5
5573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574  (exit $ac_status); } &&
5575	 { ac_try='test -z "$ac_c_werror_flag"
5576			 || test ! -s conftest.err'
5577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578  (eval $ac_try) 2>&5
5579  ac_status=$?
5580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581  (exit $ac_status); }; } &&
5582	 { ac_try='test -s conftest$ac_exeext'
5583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584  (eval $ac_try) 2>&5
5585  ac_status=$?
5586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); }; }; then
5588  ac_R_space=yes
5589else
5590  echo "$as_me: failed program was:" >&5
5591sed 's/^/| /' conftest.$ac_ext >&5
5592
5593ac_R_space=no
5594fi
5595rm -f conftest.err conftest.$ac_objext \
5596      conftest$ac_exeext conftest.$ac_ext
5597	if test $ac_R_space = yes; then
5598	  echo "$as_me:$LINENO: result: yes" >&5
5599echo "${ECHO_T}yes" >&6
5600	  X_LIBS="$X_LIBS -R $x_libraries"
5601	else
5602	  echo "$as_me:$LINENO: result: neither works" >&5
5603echo "${ECHO_T}neither works" >&6
5604	fi
5605      fi
5606      LIBS=$ac_xsave_LIBS
5607    esac
5608  fi
5609
5610  # Check for system-dependent libraries X programs must link with.
5611  # Do this before checking for the system-independent R6 libraries
5612  # (-lICE), since we may need -lsocket or whatever for X linking.
5613
5614  if test "$ISC" = yes; then
5615    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5616  else
5617    # Martyn Johnson says this is needed for Ultrix, if the X
5618    # libraries were built with DECnet support.  And Karl Berry says
5619    # the Alpha needs dnet_stub (dnet does not exist).
5620    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5621    cat >conftest.$ac_ext <<_ACEOF
5622/* confdefs.h.  */
5623_ACEOF
5624cat confdefs.h >>conftest.$ac_ext
5625cat >>conftest.$ac_ext <<_ACEOF
5626/* end confdefs.h.  */
5627
5628/* Override any gcc2 internal prototype to avoid an error.  */
5629#ifdef __cplusplus
5630extern "C"
5631#endif
5632/* We use char because int might match the return type of a gcc2
5633   builtin and then its argument prototype would still apply.  */
5634char XOpenDisplay ();
5635int
5636main ()
5637{
5638XOpenDisplay ();
5639  ;
5640  return 0;
5641}
5642_ACEOF
5643rm -f conftest.$ac_objext conftest$ac_exeext
5644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645  (eval $ac_link) 2>conftest.er1
5646  ac_status=$?
5647  grep -v '^ *+' conftest.er1 >conftest.err
5648  rm -f conftest.er1
5649  cat conftest.err >&5
5650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651  (exit $ac_status); } &&
5652	 { ac_try='test -z "$ac_c_werror_flag"
5653			 || test ! -s conftest.err'
5654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655  (eval $ac_try) 2>&5
5656  ac_status=$?
5657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658  (exit $ac_status); }; } &&
5659	 { ac_try='test -s conftest$ac_exeext'
5660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661  (eval $ac_try) 2>&5
5662  ac_status=$?
5663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664  (exit $ac_status); }; }; then
5665  :
5666else
5667  echo "$as_me: failed program was:" >&5
5668sed 's/^/| /' conftest.$ac_ext >&5
5669
5670echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5671echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5672if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5673  echo $ECHO_N "(cached) $ECHO_C" >&6
5674else
5675  ac_check_lib_save_LIBS=$LIBS
5676LIBS="-ldnet  $LIBS"
5677cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h.  */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h.  */
5683
5684/* Override any gcc2 internal prototype to avoid an error.  */
5685#ifdef __cplusplus
5686extern "C"
5687#endif
5688/* We use char because int might match the return type of a gcc2
5689   builtin and then its argument prototype would still apply.  */
5690char dnet_ntoa ();
5691int
5692main ()
5693{
5694dnet_ntoa ();
5695  ;
5696  return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext conftest$ac_exeext
5700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5701  (eval $ac_link) 2>conftest.er1
5702  ac_status=$?
5703  grep -v '^ *+' conftest.er1 >conftest.err
5704  rm -f conftest.er1
5705  cat conftest.err >&5
5706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707  (exit $ac_status); } &&
5708	 { ac_try='test -z "$ac_c_werror_flag"
5709			 || test ! -s conftest.err'
5710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711  (eval $ac_try) 2>&5
5712  ac_status=$?
5713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714  (exit $ac_status); }; } &&
5715	 { ac_try='test -s conftest$ac_exeext'
5716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717  (eval $ac_try) 2>&5
5718  ac_status=$?
5719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); }; }; then
5721  ac_cv_lib_dnet_dnet_ntoa=yes
5722else
5723  echo "$as_me: failed program was:" >&5
5724sed 's/^/| /' conftest.$ac_ext >&5
5725
5726ac_cv_lib_dnet_dnet_ntoa=no
5727fi
5728rm -f conftest.err conftest.$ac_objext \
5729      conftest$ac_exeext conftest.$ac_ext
5730LIBS=$ac_check_lib_save_LIBS
5731fi
5732echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5733echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5734if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5735  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5736fi
5737
5738    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5739      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5740echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5741if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5742  echo $ECHO_N "(cached) $ECHO_C" >&6
5743else
5744  ac_check_lib_save_LIBS=$LIBS
5745LIBS="-ldnet_stub  $LIBS"
5746cat >conftest.$ac_ext <<_ACEOF
5747/* confdefs.h.  */
5748_ACEOF
5749cat confdefs.h >>conftest.$ac_ext
5750cat >>conftest.$ac_ext <<_ACEOF
5751/* end confdefs.h.  */
5752
5753/* Override any gcc2 internal prototype to avoid an error.  */
5754#ifdef __cplusplus
5755extern "C"
5756#endif
5757/* We use char because int might match the return type of a gcc2
5758   builtin and then its argument prototype would still apply.  */
5759char dnet_ntoa ();
5760int
5761main ()
5762{
5763dnet_ntoa ();
5764  ;
5765  return 0;
5766}
5767_ACEOF
5768rm -f conftest.$ac_objext conftest$ac_exeext
5769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5770  (eval $ac_link) 2>conftest.er1
5771  ac_status=$?
5772  grep -v '^ *+' conftest.er1 >conftest.err
5773  rm -f conftest.er1
5774  cat conftest.err >&5
5775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776  (exit $ac_status); } &&
5777	 { ac_try='test -z "$ac_c_werror_flag"
5778			 || test ! -s conftest.err'
5779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780  (eval $ac_try) 2>&5
5781  ac_status=$?
5782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783  (exit $ac_status); }; } &&
5784	 { ac_try='test -s conftest$ac_exeext'
5785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786  (eval $ac_try) 2>&5
5787  ac_status=$?
5788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789  (exit $ac_status); }; }; then
5790  ac_cv_lib_dnet_stub_dnet_ntoa=yes
5791else
5792  echo "$as_me: failed program was:" >&5
5793sed 's/^/| /' conftest.$ac_ext >&5
5794
5795ac_cv_lib_dnet_stub_dnet_ntoa=no
5796fi
5797rm -f conftest.err conftest.$ac_objext \
5798      conftest$ac_exeext conftest.$ac_ext
5799LIBS=$ac_check_lib_save_LIBS
5800fi
5801echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5802echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5803if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5804  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5805fi
5806
5807    fi
5808fi
5809rm -f conftest.err conftest.$ac_objext \
5810      conftest$ac_exeext conftest.$ac_ext
5811    LIBS="$ac_xsave_LIBS"
5812
5813    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5814    # to get the SysV transport functions.
5815    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5816    # needs -lnsl.
5817    # The nsl library prevents programs from opening the X display
5818    # on Irix 5.2, according to T.E. Dickey.
5819    # The functions gethostbyname, getservbyname, and inet_addr are
5820    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5821    echo "$as_me:$LINENO: checking for gethostbyname" >&5
5822echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5823if test "${ac_cv_func_gethostbyname+set}" = set; then
5824  echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826  cat >conftest.$ac_ext <<_ACEOF
5827/* confdefs.h.  */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h.  */
5832/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5833   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5834#define gethostbyname innocuous_gethostbyname
5835
5836/* System header to define __stub macros and hopefully few prototypes,
5837    which can conflict with char gethostbyname (); below.
5838    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5839    <limits.h> exists even on freestanding compilers.  */
5840
5841#ifdef __STDC__
5842# include <limits.h>
5843#else
5844# include <assert.h>
5845#endif
5846
5847#undef gethostbyname
5848
5849/* Override any gcc2 internal prototype to avoid an error.  */
5850#ifdef __cplusplus
5851extern "C"
5852{
5853#endif
5854/* We use char because int might match the return type of a gcc2
5855   builtin and then its argument prototype would still apply.  */
5856char gethostbyname ();
5857/* The GNU C library defines this for functions which it implements
5858    to always fail with ENOSYS.  Some functions are actually named
5859    something starting with __ and the normal name is an alias.  */
5860#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5861choke me
5862#else
5863char (*f) () = gethostbyname;
5864#endif
5865#ifdef __cplusplus
5866}
5867#endif
5868
5869int
5870main ()
5871{
5872return f != gethostbyname;
5873  ;
5874  return 0;
5875}
5876_ACEOF
5877rm -f conftest.$ac_objext conftest$ac_exeext
5878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5879  (eval $ac_link) 2>conftest.er1
5880  ac_status=$?
5881  grep -v '^ *+' conftest.er1 >conftest.err
5882  rm -f conftest.er1
5883  cat conftest.err >&5
5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); } &&
5886	 { ac_try='test -z "$ac_c_werror_flag"
5887			 || test ! -s conftest.err'
5888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889  (eval $ac_try) 2>&5
5890  ac_status=$?
5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892  (exit $ac_status); }; } &&
5893	 { ac_try='test -s conftest$ac_exeext'
5894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895  (eval $ac_try) 2>&5
5896  ac_status=$?
5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898  (exit $ac_status); }; }; then
5899  ac_cv_func_gethostbyname=yes
5900else
5901  echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904ac_cv_func_gethostbyname=no
5905fi
5906rm -f conftest.err conftest.$ac_objext \
5907      conftest$ac_exeext conftest.$ac_ext
5908fi
5909echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5910echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5911
5912    if test $ac_cv_func_gethostbyname = no; then
5913      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5914echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5915if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5916  echo $ECHO_N "(cached) $ECHO_C" >&6
5917else
5918  ac_check_lib_save_LIBS=$LIBS
5919LIBS="-lnsl  $LIBS"
5920cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h.  */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h.  */
5926
5927/* Override any gcc2 internal prototype to avoid an error.  */
5928#ifdef __cplusplus
5929extern "C"
5930#endif
5931/* We use char because int might match the return type of a gcc2
5932   builtin and then its argument prototype would still apply.  */
5933char gethostbyname ();
5934int
5935main ()
5936{
5937gethostbyname ();
5938  ;
5939  return 0;
5940}
5941_ACEOF
5942rm -f conftest.$ac_objext conftest$ac_exeext
5943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5944  (eval $ac_link) 2>conftest.er1
5945  ac_status=$?
5946  grep -v '^ *+' conftest.er1 >conftest.err
5947  rm -f conftest.er1
5948  cat conftest.err >&5
5949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950  (exit $ac_status); } &&
5951	 { ac_try='test -z "$ac_c_werror_flag"
5952			 || test ! -s conftest.err'
5953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954  (eval $ac_try) 2>&5
5955  ac_status=$?
5956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); }; } &&
5958	 { ac_try='test -s conftest$ac_exeext'
5959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960  (eval $ac_try) 2>&5
5961  ac_status=$?
5962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963  (exit $ac_status); }; }; then
5964  ac_cv_lib_nsl_gethostbyname=yes
5965else
5966  echo "$as_me: failed program was:" >&5
5967sed 's/^/| /' conftest.$ac_ext >&5
5968
5969ac_cv_lib_nsl_gethostbyname=no
5970fi
5971rm -f conftest.err conftest.$ac_objext \
5972      conftest$ac_exeext conftest.$ac_ext
5973LIBS=$ac_check_lib_save_LIBS
5974fi
5975echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5976echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5977if test $ac_cv_lib_nsl_gethostbyname = yes; then
5978  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5979fi
5980
5981      if test $ac_cv_lib_nsl_gethostbyname = no; then
5982	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5983echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5984if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5985  echo $ECHO_N "(cached) $ECHO_C" >&6
5986else
5987  ac_check_lib_save_LIBS=$LIBS
5988LIBS="-lbsd  $LIBS"
5989cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h.  */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h.  */
5995
5996/* Override any gcc2 internal prototype to avoid an error.  */
5997#ifdef __cplusplus
5998extern "C"
5999#endif
6000/* We use char because int might match the return type of a gcc2
6001   builtin and then its argument prototype would still apply.  */
6002char gethostbyname ();
6003int
6004main ()
6005{
6006gethostbyname ();
6007  ;
6008  return 0;
6009}
6010_ACEOF
6011rm -f conftest.$ac_objext conftest$ac_exeext
6012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013  (eval $ac_link) 2>conftest.er1
6014  ac_status=$?
6015  grep -v '^ *+' conftest.er1 >conftest.err
6016  rm -f conftest.er1
6017  cat conftest.err >&5
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); } &&
6020	 { ac_try='test -z "$ac_c_werror_flag"
6021			 || test ! -s conftest.err'
6022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023  (eval $ac_try) 2>&5
6024  ac_status=$?
6025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026  (exit $ac_status); }; } &&
6027	 { ac_try='test -s conftest$ac_exeext'
6028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029  (eval $ac_try) 2>&5
6030  ac_status=$?
6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); }; }; then
6033  ac_cv_lib_bsd_gethostbyname=yes
6034else
6035  echo "$as_me: failed program was:" >&5
6036sed 's/^/| /' conftest.$ac_ext >&5
6037
6038ac_cv_lib_bsd_gethostbyname=no
6039fi
6040rm -f conftest.err conftest.$ac_objext \
6041      conftest$ac_exeext conftest.$ac_ext
6042LIBS=$ac_check_lib_save_LIBS
6043fi
6044echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6045echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6046if test $ac_cv_lib_bsd_gethostbyname = yes; then
6047  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6048fi
6049
6050      fi
6051    fi
6052
6053    # [email protected] says without -lsocket,
6054    # socket/setsockopt and other routines are undefined under SCO ODT
6055    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6056    # on later versions), says Simon Leinen: it contains gethostby*
6057    # variants that don't use the name server (or something).  -lsocket
6058    # must be given before -lnsl if both are needed.  We assume that
6059    # if connect needs -lnsl, so does gethostbyname.
6060    echo "$as_me:$LINENO: checking for connect" >&5
6061echo $ECHO_N "checking for connect... $ECHO_C" >&6
6062if test "${ac_cv_func_connect+set}" = set; then
6063  echo $ECHO_N "(cached) $ECHO_C" >&6
6064else
6065  cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h.  */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h.  */
6071/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6072   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6073#define connect innocuous_connect
6074
6075/* System header to define __stub macros and hopefully few prototypes,
6076    which can conflict with char connect (); below.
6077    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6078    <limits.h> exists even on freestanding compilers.  */
6079
6080#ifdef __STDC__
6081# include <limits.h>
6082#else
6083# include <assert.h>
6084#endif
6085
6086#undef connect
6087
6088/* Override any gcc2 internal prototype to avoid an error.  */
6089#ifdef __cplusplus
6090extern "C"
6091{
6092#endif
6093/* We use char because int might match the return type of a gcc2
6094   builtin and then its argument prototype would still apply.  */
6095char connect ();
6096/* The GNU C library defines this for functions which it implements
6097    to always fail with ENOSYS.  Some functions are actually named
6098    something starting with __ and the normal name is an alias.  */
6099#if defined (__stub_connect) || defined (__stub___connect)
6100choke me
6101#else
6102char (*f) () = connect;
6103#endif
6104#ifdef __cplusplus
6105}
6106#endif
6107
6108int
6109main ()
6110{
6111return f != connect;
6112  ;
6113  return 0;
6114}
6115_ACEOF
6116rm -f conftest.$ac_objext conftest$ac_exeext
6117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6118  (eval $ac_link) 2>conftest.er1
6119  ac_status=$?
6120  grep -v '^ *+' conftest.er1 >conftest.err
6121  rm -f conftest.er1
6122  cat conftest.err >&5
6123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124  (exit $ac_status); } &&
6125	 { ac_try='test -z "$ac_c_werror_flag"
6126			 || test ! -s conftest.err'
6127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128  (eval $ac_try) 2>&5
6129  ac_status=$?
6130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131  (exit $ac_status); }; } &&
6132	 { ac_try='test -s conftest$ac_exeext'
6133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134  (eval $ac_try) 2>&5
6135  ac_status=$?
6136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137  (exit $ac_status); }; }; then
6138  ac_cv_func_connect=yes
6139else
6140  echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143ac_cv_func_connect=no
6144fi
6145rm -f conftest.err conftest.$ac_objext \
6146      conftest$ac_exeext conftest.$ac_ext
6147fi
6148echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6149echo "${ECHO_T}$ac_cv_func_connect" >&6
6150
6151    if test $ac_cv_func_connect = no; then
6152      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6153echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6154if test "${ac_cv_lib_socket_connect+set}" = set; then
6155  echo $ECHO_N "(cached) $ECHO_C" >&6
6156else
6157  ac_check_lib_save_LIBS=$LIBS
6158LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6159cat >conftest.$ac_ext <<_ACEOF
6160/* confdefs.h.  */
6161_ACEOF
6162cat confdefs.h >>conftest.$ac_ext
6163cat >>conftest.$ac_ext <<_ACEOF
6164/* end confdefs.h.  */
6165
6166/* Override any gcc2 internal prototype to avoid an error.  */
6167#ifdef __cplusplus
6168extern "C"
6169#endif
6170/* We use char because int might match the return type of a gcc2
6171   builtin and then its argument prototype would still apply.  */
6172char connect ();
6173int
6174main ()
6175{
6176connect ();
6177  ;
6178  return 0;
6179}
6180_ACEOF
6181rm -f conftest.$ac_objext conftest$ac_exeext
6182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6183  (eval $ac_link) 2>conftest.er1
6184  ac_status=$?
6185  grep -v '^ *+' conftest.er1 >conftest.err
6186  rm -f conftest.er1
6187  cat conftest.err >&5
6188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189  (exit $ac_status); } &&
6190	 { ac_try='test -z "$ac_c_werror_flag"
6191			 || test ! -s conftest.err'
6192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193  (eval $ac_try) 2>&5
6194  ac_status=$?
6195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196  (exit $ac_status); }; } &&
6197	 { ac_try='test -s conftest$ac_exeext'
6198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199  (eval $ac_try) 2>&5
6200  ac_status=$?
6201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202  (exit $ac_status); }; }; then
6203  ac_cv_lib_socket_connect=yes
6204else
6205  echo "$as_me: failed program was:" >&5
6206sed 's/^/| /' conftest.$ac_ext >&5
6207
6208ac_cv_lib_socket_connect=no
6209fi
6210rm -f conftest.err conftest.$ac_objext \
6211      conftest$ac_exeext conftest.$ac_ext
6212LIBS=$ac_check_lib_save_LIBS
6213fi
6214echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6215echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6216if test $ac_cv_lib_socket_connect = yes; then
6217  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6218fi
6219
6220    fi
6221
6222    # Guillermo Gomez says -lposix is necessary on A/UX.
6223    echo "$as_me:$LINENO: checking for remove" >&5
6224echo $ECHO_N "checking for remove... $ECHO_C" >&6
6225if test "${ac_cv_func_remove+set}" = set; then
6226  echo $ECHO_N "(cached) $ECHO_C" >&6
6227else
6228  cat >conftest.$ac_ext <<_ACEOF
6229/* confdefs.h.  */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h.  */
6234/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6235   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6236#define remove innocuous_remove
6237
6238/* System header to define __stub macros and hopefully few prototypes,
6239    which can conflict with char remove (); below.
6240    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6241    <limits.h> exists even on freestanding compilers.  */
6242
6243#ifdef __STDC__
6244# include <limits.h>
6245#else
6246# include <assert.h>
6247#endif
6248
6249#undef remove
6250
6251/* Override any gcc2 internal prototype to avoid an error.  */
6252#ifdef __cplusplus
6253extern "C"
6254{
6255#endif
6256/* We use char because int might match the return type of a gcc2
6257   builtin and then its argument prototype would still apply.  */
6258char remove ();
6259/* The GNU C library defines this for functions which it implements
6260    to always fail with ENOSYS.  Some functions are actually named
6261    something starting with __ and the normal name is an alias.  */
6262#if defined (__stub_remove) || defined (__stub___remove)
6263choke me
6264#else
6265char (*f) () = remove;
6266#endif
6267#ifdef __cplusplus
6268}
6269#endif
6270
6271int
6272main ()
6273{
6274return f != remove;
6275  ;
6276  return 0;
6277}
6278_ACEOF
6279rm -f conftest.$ac_objext conftest$ac_exeext
6280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281  (eval $ac_link) 2>conftest.er1
6282  ac_status=$?
6283  grep -v '^ *+' conftest.er1 >conftest.err
6284  rm -f conftest.er1
6285  cat conftest.err >&5
6286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287  (exit $ac_status); } &&
6288	 { ac_try='test -z "$ac_c_werror_flag"
6289			 || test ! -s conftest.err'
6290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291  (eval $ac_try) 2>&5
6292  ac_status=$?
6293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294  (exit $ac_status); }; } &&
6295	 { ac_try='test -s conftest$ac_exeext'
6296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297  (eval $ac_try) 2>&5
6298  ac_status=$?
6299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); }; }; then
6301  ac_cv_func_remove=yes
6302else
6303  echo "$as_me: failed program was:" >&5
6304sed 's/^/| /' conftest.$ac_ext >&5
6305
6306ac_cv_func_remove=no
6307fi
6308rm -f conftest.err conftest.$ac_objext \
6309      conftest$ac_exeext conftest.$ac_ext
6310fi
6311echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6312echo "${ECHO_T}$ac_cv_func_remove" >&6
6313
6314    if test $ac_cv_func_remove = no; then
6315      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6316echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6317if test "${ac_cv_lib_posix_remove+set}" = set; then
6318  echo $ECHO_N "(cached) $ECHO_C" >&6
6319else
6320  ac_check_lib_save_LIBS=$LIBS
6321LIBS="-lposix  $LIBS"
6322cat >conftest.$ac_ext <<_ACEOF
6323/* confdefs.h.  */
6324_ACEOF
6325cat confdefs.h >>conftest.$ac_ext
6326cat >>conftest.$ac_ext <<_ACEOF
6327/* end confdefs.h.  */
6328
6329/* Override any gcc2 internal prototype to avoid an error.  */
6330#ifdef __cplusplus
6331extern "C"
6332#endif
6333/* We use char because int might match the return type of a gcc2
6334   builtin and then its argument prototype would still apply.  */
6335char remove ();
6336int
6337main ()
6338{
6339remove ();
6340  ;
6341  return 0;
6342}
6343_ACEOF
6344rm -f conftest.$ac_objext conftest$ac_exeext
6345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6346  (eval $ac_link) 2>conftest.er1
6347  ac_status=$?
6348  grep -v '^ *+' conftest.er1 >conftest.err
6349  rm -f conftest.er1
6350  cat conftest.err >&5
6351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352  (exit $ac_status); } &&
6353	 { ac_try='test -z "$ac_c_werror_flag"
6354			 || test ! -s conftest.err'
6355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356  (eval $ac_try) 2>&5
6357  ac_status=$?
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); }; } &&
6360	 { ac_try='test -s conftest$ac_exeext'
6361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362  (eval $ac_try) 2>&5
6363  ac_status=$?
6364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365  (exit $ac_status); }; }; then
6366  ac_cv_lib_posix_remove=yes
6367else
6368  echo "$as_me: failed program was:" >&5
6369sed 's/^/| /' conftest.$ac_ext >&5
6370
6371ac_cv_lib_posix_remove=no
6372fi
6373rm -f conftest.err conftest.$ac_objext \
6374      conftest$ac_exeext conftest.$ac_ext
6375LIBS=$ac_check_lib_save_LIBS
6376fi
6377echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6378echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6379if test $ac_cv_lib_posix_remove = yes; then
6380  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6381fi
6382
6383    fi
6384
6385    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6386    echo "$as_me:$LINENO: checking for shmat" >&5
6387echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6388if test "${ac_cv_func_shmat+set}" = set; then
6389  echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391  cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h.  */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
6396/* end confdefs.h.  */
6397/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6398   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6399#define shmat innocuous_shmat
6400
6401/* System header to define __stub macros and hopefully few prototypes,
6402    which can conflict with char shmat (); below.
6403    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6404    <limits.h> exists even on freestanding compilers.  */
6405
6406#ifdef __STDC__
6407# include <limits.h>
6408#else
6409# include <assert.h>
6410#endif
6411
6412#undef shmat
6413
6414/* Override any gcc2 internal prototype to avoid an error.  */
6415#ifdef __cplusplus
6416extern "C"
6417{
6418#endif
6419/* We use char because int might match the return type of a gcc2
6420   builtin and then its argument prototype would still apply.  */
6421char shmat ();
6422/* The GNU C library defines this for functions which it implements
6423    to always fail with ENOSYS.  Some functions are actually named
6424    something starting with __ and the normal name is an alias.  */
6425#if defined (__stub_shmat) || defined (__stub___shmat)
6426choke me
6427#else
6428char (*f) () = shmat;
6429#endif
6430#ifdef __cplusplus
6431}
6432#endif
6433
6434int
6435main ()
6436{
6437return f != shmat;
6438  ;
6439  return 0;
6440}
6441_ACEOF
6442rm -f conftest.$ac_objext conftest$ac_exeext
6443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6444  (eval $ac_link) 2>conftest.er1
6445  ac_status=$?
6446  grep -v '^ *+' conftest.er1 >conftest.err
6447  rm -f conftest.er1
6448  cat conftest.err >&5
6449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450  (exit $ac_status); } &&
6451	 { ac_try='test -z "$ac_c_werror_flag"
6452			 || test ! -s conftest.err'
6453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454  (eval $ac_try) 2>&5
6455  ac_status=$?
6456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457  (exit $ac_status); }; } &&
6458	 { ac_try='test -s conftest$ac_exeext'
6459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460  (eval $ac_try) 2>&5
6461  ac_status=$?
6462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463  (exit $ac_status); }; }; then
6464  ac_cv_func_shmat=yes
6465else
6466  echo "$as_me: failed program was:" >&5
6467sed 's/^/| /' conftest.$ac_ext >&5
6468
6469ac_cv_func_shmat=no
6470fi
6471rm -f conftest.err conftest.$ac_objext \
6472      conftest$ac_exeext conftest.$ac_ext
6473fi
6474echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6475echo "${ECHO_T}$ac_cv_func_shmat" >&6
6476
6477    if test $ac_cv_func_shmat = no; then
6478      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6479echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6480if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6481  echo $ECHO_N "(cached) $ECHO_C" >&6
6482else
6483  ac_check_lib_save_LIBS=$LIBS
6484LIBS="-lipc  $LIBS"
6485cat >conftest.$ac_ext <<_ACEOF
6486/* confdefs.h.  */
6487_ACEOF
6488cat confdefs.h >>conftest.$ac_ext
6489cat >>conftest.$ac_ext <<_ACEOF
6490/* end confdefs.h.  */
6491
6492/* Override any gcc2 internal prototype to avoid an error.  */
6493#ifdef __cplusplus
6494extern "C"
6495#endif
6496/* We use char because int might match the return type of a gcc2
6497   builtin and then its argument prototype would still apply.  */
6498char shmat ();
6499int
6500main ()
6501{
6502shmat ();
6503  ;
6504  return 0;
6505}
6506_ACEOF
6507rm -f conftest.$ac_objext conftest$ac_exeext
6508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6509  (eval $ac_link) 2>conftest.er1
6510  ac_status=$?
6511  grep -v '^ *+' conftest.er1 >conftest.err
6512  rm -f conftest.er1
6513  cat conftest.err >&5
6514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515  (exit $ac_status); } &&
6516	 { ac_try='test -z "$ac_c_werror_flag"
6517			 || test ! -s conftest.err'
6518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519  (eval $ac_try) 2>&5
6520  ac_status=$?
6521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522  (exit $ac_status); }; } &&
6523	 { ac_try='test -s conftest$ac_exeext'
6524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525  (eval $ac_try) 2>&5
6526  ac_status=$?
6527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528  (exit $ac_status); }; }; then
6529  ac_cv_lib_ipc_shmat=yes
6530else
6531  echo "$as_me: failed program was:" >&5
6532sed 's/^/| /' conftest.$ac_ext >&5
6533
6534ac_cv_lib_ipc_shmat=no
6535fi
6536rm -f conftest.err conftest.$ac_objext \
6537      conftest$ac_exeext conftest.$ac_ext
6538LIBS=$ac_check_lib_save_LIBS
6539fi
6540echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6541echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6542if test $ac_cv_lib_ipc_shmat = yes; then
6543  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6544fi
6545
6546    fi
6547  fi
6548
6549  # Check for libraries that X11R6 Xt/Xaw programs need.
6550  ac_save_LDFLAGS=$LDFLAGS
6551  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6552  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6553  # check for ICE first), but we must link in the order -lSM -lICE or
6554  # we get undefined symbols.  So assume we have SM if we have ICE.
6555  # These have to be linked with before -lX11, unlike the other
6556  # libraries we check for below, so use a different variable.
6557  # John Interrante, Karl Berry
6558  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6559echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6560if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6561  echo $ECHO_N "(cached) $ECHO_C" >&6
6562else
6563  ac_check_lib_save_LIBS=$LIBS
6564LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6565cat >conftest.$ac_ext <<_ACEOF
6566/* confdefs.h.  */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h.  */
6571
6572/* Override any gcc2 internal prototype to avoid an error.  */
6573#ifdef __cplusplus
6574extern "C"
6575#endif
6576/* We use char because int might match the return type of a gcc2
6577   builtin and then its argument prototype would still apply.  */
6578char IceConnectionNumber ();
6579int
6580main ()
6581{
6582IceConnectionNumber ();
6583  ;
6584  return 0;
6585}
6586_ACEOF
6587rm -f conftest.$ac_objext conftest$ac_exeext
6588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589  (eval $ac_link) 2>conftest.er1
6590  ac_status=$?
6591  grep -v '^ *+' conftest.er1 >conftest.err
6592  rm -f conftest.er1
6593  cat conftest.err >&5
6594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595  (exit $ac_status); } &&
6596	 { ac_try='test -z "$ac_c_werror_flag"
6597			 || test ! -s conftest.err'
6598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599  (eval $ac_try) 2>&5
6600  ac_status=$?
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); }; } &&
6603	 { ac_try='test -s conftest$ac_exeext'
6604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605  (eval $ac_try) 2>&5
6606  ac_status=$?
6607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); }; }; then
6609  ac_cv_lib_ICE_IceConnectionNumber=yes
6610else
6611  echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6613
6614ac_cv_lib_ICE_IceConnectionNumber=no
6615fi
6616rm -f conftest.err conftest.$ac_objext \
6617      conftest$ac_exeext conftest.$ac_ext
6618LIBS=$ac_check_lib_save_LIBS
6619fi
6620echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6621echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6622if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6623  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6624fi
6625
6626  LDFLAGS=$ac_save_LDFLAGS
6627
6628fi
6629
6630
6631        if test "$OS390Unix" = "yes"; then
6632    CFLAGS="$CFLAGS -W c,dll"
6633    LDFLAGS="$LDFLAGS -W l,dll"
6634    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6635  fi
6636
6637
6638  if test -d "$x_includes" && test ! -d "$x_libraries"; then
6639    x_libraries=`echo "$x_includes" | sed s/include/lib/`
6640    echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6641echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
6642    X_LIBS="$X_LIBS -L$x_libraries"
6643    if test "`(uname) 2>/dev/null`" = SunOS &&
6644					 uname -r | grep '^5' >/dev/null; then
6645      X_LIBS="$X_LIBS -R $x_libraries"
6646    fi
6647  fi
6648
6649  if test -d "$x_libraries" && test ! -d "$x_includes"; then
6650    x_includes=`echo "$x_libraries" | sed s/lib/include/`
6651    echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6652echo "${ECHO_T}Corrected X includes to $x_includes" >&6
6653    X_CFLAGS="$X_CFLAGS -I$x_includes"
6654  fi
6655
6656    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
6657    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
6658    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6659
6660
6661      echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6662echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
6663  cflags_save=$CFLAGS
6664  CFLAGS="$CFLAGS $X_CFLAGS"
6665  cat >conftest.$ac_ext <<_ACEOF
6666/* confdefs.h.  */
6667_ACEOF
6668cat confdefs.h >>conftest.$ac_ext
6669cat >>conftest.$ac_ext <<_ACEOF
6670/* end confdefs.h.  */
6671#include <X11/Xlib.h>
6672int
6673main ()
6674{
6675
6676  ;
6677  return 0;
6678}
6679_ACEOF
6680rm -f conftest.$ac_objext
6681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6682  (eval $ac_compile) 2>conftest.er1
6683  ac_status=$?
6684  grep -v '^ *+' conftest.er1 >conftest.err
6685  rm -f conftest.er1
6686  cat conftest.err >&5
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); } &&
6689	 { ac_try='test -z "$ac_c_werror_flag"
6690			 || test ! -s conftest.err'
6691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692  (eval $ac_try) 2>&5
6693  ac_status=$?
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); }; } &&
6696	 { ac_try='test -s conftest.$ac_objext'
6697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698  (eval $ac_try) 2>&5
6699  ac_status=$?
6700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701  (exit $ac_status); }; }; then
6702  echo "$as_me:$LINENO: result: yes" >&5
6703echo "${ECHO_T}yes" >&6
6704else
6705  echo "$as_me: failed program was:" >&5
6706sed 's/^/| /' conftest.$ac_ext >&5
6707
6708echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6; no_x=yes
6710fi
6711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6712  CFLAGS=$cflags_save
6713
6714  if test "${no_x-no}" = yes; then
6715    with_x=no
6716  else
6717    cat >>confdefs.h <<\_ACEOF
6718#define HAVE_X11 1
6719_ACEOF
6720
6721    X_LIB="-lXt -lX11";
6722
6723
6724    ac_save_LDFLAGS="$LDFLAGS"
6725    LDFLAGS="-L$x_libraries $LDFLAGS"
6726
6727            echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6728echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6729if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6730  echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732  ac_check_lib_save_LIBS=$LIBS
6733LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
6734cat >conftest.$ac_ext <<_ACEOF
6735/* confdefs.h.  */
6736_ACEOF
6737cat confdefs.h >>conftest.$ac_ext
6738cat >>conftest.$ac_ext <<_ACEOF
6739/* end confdefs.h.  */
6740
6741/* Override any gcc2 internal prototype to avoid an error.  */
6742#ifdef __cplusplus
6743extern "C"
6744#endif
6745/* We use char because int might match the return type of a gcc2
6746   builtin and then its argument prototype would still apply.  */
6747char _XdmcpAuthDoIt ();
6748int
6749main ()
6750{
6751_XdmcpAuthDoIt ();
6752  ;
6753  return 0;
6754}
6755_ACEOF
6756rm -f conftest.$ac_objext conftest$ac_exeext
6757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6758  (eval $ac_link) 2>conftest.er1
6759  ac_status=$?
6760  grep -v '^ *+' conftest.er1 >conftest.err
6761  rm -f conftest.er1
6762  cat conftest.err >&5
6763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764  (exit $ac_status); } &&
6765	 { ac_try='test -z "$ac_c_werror_flag"
6766			 || test ! -s conftest.err'
6767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768  (eval $ac_try) 2>&5
6769  ac_status=$?
6770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771  (exit $ac_status); }; } &&
6772	 { ac_try='test -s conftest$ac_exeext'
6773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774  (eval $ac_try) 2>&5
6775  ac_status=$?
6776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777  (exit $ac_status); }; }; then
6778  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
6779else
6780  echo "$as_me: failed program was:" >&5
6781sed 's/^/| /' conftest.$ac_ext >&5
6782
6783ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
6784fi
6785rm -f conftest.err conftest.$ac_objext \
6786      conftest$ac_exeext conftest.$ac_ext
6787LIBS=$ac_check_lib_save_LIBS
6788fi
6789echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6790echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6791if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
6792  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
6793fi
6794
6795
6796                    echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6797echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6798if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6799  echo $ECHO_N "(cached) $ECHO_C" >&6
6800else
6801  ac_check_lib_save_LIBS=$LIBS
6802LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6803cat >conftest.$ac_ext <<_ACEOF
6804/* confdefs.h.  */
6805_ACEOF
6806cat confdefs.h >>conftest.$ac_ext
6807cat >>conftest.$ac_ext <<_ACEOF
6808/* end confdefs.h.  */
6809
6810/* Override any gcc2 internal prototype to avoid an error.  */
6811#ifdef __cplusplus
6812extern "C"
6813#endif
6814/* We use char because int might match the return type of a gcc2
6815   builtin and then its argument prototype would still apply.  */
6816char IceOpenConnection ();
6817int
6818main ()
6819{
6820IceOpenConnection ();
6821  ;
6822  return 0;
6823}
6824_ACEOF
6825rm -f conftest.$ac_objext conftest$ac_exeext
6826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6827  (eval $ac_link) 2>conftest.er1
6828  ac_status=$?
6829  grep -v '^ *+' conftest.er1 >conftest.err
6830  rm -f conftest.er1
6831  cat conftest.err >&5
6832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833  (exit $ac_status); } &&
6834	 { ac_try='test -z "$ac_c_werror_flag"
6835			 || test ! -s conftest.err'
6836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837  (eval $ac_try) 2>&5
6838  ac_status=$?
6839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840  (exit $ac_status); }; } &&
6841	 { ac_try='test -s conftest$ac_exeext'
6842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843  (eval $ac_try) 2>&5
6844  ac_status=$?
6845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846  (exit $ac_status); }; }; then
6847  ac_cv_lib_ICE_IceOpenConnection=yes
6848else
6849  echo "$as_me: failed program was:" >&5
6850sed 's/^/| /' conftest.$ac_ext >&5
6851
6852ac_cv_lib_ICE_IceOpenConnection=no
6853fi
6854rm -f conftest.err conftest.$ac_objext \
6855      conftest$ac_exeext conftest.$ac_ext
6856LIBS=$ac_check_lib_save_LIBS
6857fi
6858echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6859echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6860if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
6861  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
6862fi
6863
6864
6865        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
6866    echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6867echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6868if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6869  echo $ECHO_N "(cached) $ECHO_C" >&6
6870else
6871  ac_check_lib_save_LIBS=$LIBS
6872LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
6873cat >conftest.$ac_ext <<_ACEOF
6874/* confdefs.h.  */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h.  */
6879
6880/* Override any gcc2 internal prototype to avoid an error.  */
6881#ifdef __cplusplus
6882extern "C"
6883#endif
6884/* We use char because int might match the return type of a gcc2
6885   builtin and then its argument prototype would still apply.  */
6886char XpmCreatePixmapFromData ();
6887int
6888main ()
6889{
6890XpmCreatePixmapFromData ();
6891  ;
6892  return 0;
6893}
6894_ACEOF
6895rm -f conftest.$ac_objext conftest$ac_exeext
6896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6897  (eval $ac_link) 2>conftest.er1
6898  ac_status=$?
6899  grep -v '^ *+' conftest.er1 >conftest.err
6900  rm -f conftest.er1
6901  cat conftest.err >&5
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); } &&
6904	 { ac_try='test -z "$ac_c_werror_flag"
6905			 || test ! -s conftest.err'
6906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907  (eval $ac_try) 2>&5
6908  ac_status=$?
6909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910  (exit $ac_status); }; } &&
6911	 { ac_try='test -s conftest$ac_exeext'
6912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913  (eval $ac_try) 2>&5
6914  ac_status=$?
6915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916  (exit $ac_status); }; }; then
6917  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
6918else
6919  echo "$as_me: failed program was:" >&5
6920sed 's/^/| /' conftest.$ac_ext >&5
6921
6922ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
6923fi
6924rm -f conftest.err conftest.$ac_objext \
6925      conftest$ac_exeext conftest.$ac_ext
6926LIBS=$ac_check_lib_save_LIBS
6927fi
6928echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6929echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6930if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
6931  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
6932fi
6933
6934
6935        echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6936echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
6937    cflags_save=$CFLAGS
6938    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
6939    cat >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#include <X11/Xlib.h>
6946int
6947main ()
6948{
6949
6950  ;
6951  return 0;
6952}
6953_ACEOF
6954rm -f conftest.$ac_objext
6955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6956  (eval $ac_compile) 2>conftest.er1
6957  ac_status=$?
6958  grep -v '^ *+' conftest.er1 >conftest.err
6959  rm -f conftest.er1
6960  cat conftest.err >&5
6961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962  (exit $ac_status); } &&
6963	 { ac_try='test -z "$ac_c_werror_flag"
6964			 || test ! -s conftest.err'
6965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966  (eval $ac_try) 2>&5
6967  ac_status=$?
6968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969  (exit $ac_status); }; } &&
6970	 { ac_try='test -s conftest.$ac_objext'
6971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972  (eval $ac_try) 2>&5
6973  ac_status=$?
6974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975  (exit $ac_status); }; }; then
6976  echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6
6978else
6979  echo "$as_me: failed program was:" >&5
6980sed 's/^/| /' conftest.$ac_ext >&5
6981
6982CFLAGS="$CFLAGS -Wno-implicit-int"
6983	cat >conftest.$ac_ext <<_ACEOF
6984/* confdefs.h.  */
6985_ACEOF
6986cat confdefs.h >>conftest.$ac_ext
6987cat >>conftest.$ac_ext <<_ACEOF
6988/* end confdefs.h.  */
6989#include <X11/Xlib.h>
6990int
6991main ()
6992{
6993
6994  ;
6995  return 0;
6996}
6997_ACEOF
6998rm -f conftest.$ac_objext
6999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000  (eval $ac_compile) 2>conftest.er1
7001  ac_status=$?
7002  grep -v '^ *+' conftest.er1 >conftest.err
7003  rm -f conftest.er1
7004  cat conftest.err >&5
7005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006  (exit $ac_status); } &&
7007	 { ac_try='test -z "$ac_c_werror_flag"
7008			 || test ! -s conftest.err'
7009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010  (eval $ac_try) 2>&5
7011  ac_status=$?
7012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013  (exit $ac_status); }; } &&
7014	 { ac_try='test -s conftest.$ac_objext'
7015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016  (eval $ac_try) 2>&5
7017  ac_status=$?
7018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019  (exit $ac_status); }; }; then
7020  echo "$as_me:$LINENO: result: yes" >&5
7021echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
7022else
7023  echo "$as_me: failed program was:" >&5
7024sed 's/^/| /' conftest.$ac_ext >&5
7025
7026echo "$as_me:$LINENO: result: test failed" >&5
7027echo "${ECHO_T}test failed" >&6
7028
7029fi
7030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7031
7032fi
7033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7034    CFLAGS=$cflags_save
7035
7036    LDFLAGS="$ac_save_LDFLAGS"
7037
7038  fi
7039fi
7040
7041test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7042
7043echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7044echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
7045# Check whether --enable-gui or --disable-gui was given.
7046if test "${enable_gui+set}" = set; then
7047  enableval="$enable_gui"
7048
7049else
7050  enable_gui="auto"
7051fi;
7052
7053enable_gui_canon=`echo "_$enable_gui" | \
7054	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7055
7056SKIP_GTK=YES
7057SKIP_GTK2=YES
7058SKIP_GNOME=YES
7059SKIP_MOTIF=YES
7060SKIP_ATHENA=YES
7061SKIP_NEXTAW=YES
7062SKIP_PHOTON=YES
7063SKIP_CARBON=YES
7064GUITYPE=NONE
7065
7066if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7067  SKIP_PHOTON=
7068  case "$enable_gui_canon" in
7069    no)		echo "$as_me:$LINENO: result: no GUI support" >&5
7070echo "${ECHO_T}no GUI support" >&6
7071		SKIP_PHOTON=YES ;;
7072    yes|"")	echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7073echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7074    auto)	echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7075echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7076    photon)	echo "$as_me:$LINENO: result: Photon GUI support" >&5
7077echo "${ECHO_T}Photon GUI support" >&6 ;;
7078    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7079echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7080		SKIP_PHOTON=YES ;;
7081  esac
7082
7083elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7084  SKIP_CARBON=
7085  case "$enable_gui_canon" in
7086    no)		echo "$as_me:$LINENO: result: no GUI support" >&5
7087echo "${ECHO_T}no GUI support" >&6
7088		SKIP_CARBON=YES ;;
7089    yes|"")	echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7090echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7091    auto)	echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7092echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7093    carbon)	echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7094echo "${ECHO_T}Carbon GUI support" >&6 ;;
7095    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7096echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7097		SKIP_CARBON=YES ;;
7098  esac
7099
7100else
7101
7102  case "$enable_gui_canon" in
7103    no|none)	echo "$as_me:$LINENO: result: no GUI support" >&5
7104echo "${ECHO_T}no GUI support" >&6 ;;
7105    yes|""|auto)	echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7106echo "${ECHO_T}yes/auto - automatic GUI support" >&6
7107		SKIP_GTK=
7108		SKIP_GTK2=
7109		SKIP_GNOME=
7110		SKIP_MOTIF=
7111		SKIP_ATHENA=
7112		SKIP_NEXTAW=
7113		SKIP_CARBON=;;
7114    gtk)	echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7115echo "${ECHO_T}GTK+ 1.x GUI support" >&6
7116		SKIP_GTK=;;
7117    gtk2)	echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7118echo "${ECHO_T}GTK+ 2.x GUI support" >&6
7119		SKIP_GTK=
7120		SKIP_GTK2=;;
7121    gnome)	echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7122echo "${ECHO_T}GNOME 1.x GUI support" >&6
7123		SKIP_GNOME=
7124		SKIP_GTK=;;
7125    gnome2)	echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7126echo "${ECHO_T}GNOME 2.x GUI support" >&6
7127		SKIP_GNOME=
7128		SKIP_GTK=
7129		SKIP_GTK2=;;
7130    motif)	echo "$as_me:$LINENO: result: Motif GUI support" >&5
7131echo "${ECHO_T}Motif GUI support" >&6
7132		SKIP_MOTIF=;;
7133    athena)	echo "$as_me:$LINENO: result: Athena GUI support" >&5
7134echo "${ECHO_T}Athena GUI support" >&6
7135		SKIP_ATHENA=;;
7136    nextaw)	echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7137echo "${ECHO_T}neXtaw GUI support" >&6
7138		SKIP_NEXTAW=;;
7139    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7140echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
7141  esac
7142
7143fi
7144
7145if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
7146  echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7147echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
7148  # Check whether --enable-gtk-check or --disable-gtk-check was given.
7149if test "${enable_gtk_check+set}" = set; then
7150  enableval="$enable_gtk_check"
7151
7152else
7153  enable_gtk_check="yes"
7154fi;
7155  echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7156echo "${ECHO_T}$enable_gtk_check" >&6
7157  if test "x$enable_gtk_check" = "xno"; then
7158    SKIP_GTK=YES
7159    SKIP_GNOME=YES
7160  fi
7161fi
7162
7163if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7164				-a "$enable_gui_canon" != "gnome2"; then
7165  echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7166echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
7167  # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7168if test "${enable_gtk2_check+set}" = set; then
7169  enableval="$enable_gtk2_check"
7170
7171else
7172  enable_gtk2_check="yes"
7173fi;
7174  echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7175echo "${ECHO_T}$enable_gtk2_check" >&6
7176  if test "x$enable_gtk2_check" = "xno"; then
7177    SKIP_GTK2=YES
7178  fi
7179fi
7180
7181if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7182				 -a "$enable_gui_canon" != "gnome2"; then
7183  echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7184echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
7185  # Check whether --enable-gnome-check or --disable-gnome-check was given.
7186if test "${enable_gnome_check+set}" = set; then
7187  enableval="$enable_gnome_check"
7188
7189else
7190  enable_gnome_check="no"
7191fi;
7192  echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7193echo "${ECHO_T}$enable_gnome_check" >&6
7194  if test "x$enable_gnome_check" = "xno"; then
7195    SKIP_GNOME=YES
7196  fi
7197fi
7198
7199if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
7200  echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7201echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
7202  # Check whether --enable-motif-check or --disable-motif-check was given.
7203if test "${enable_motif_check+set}" = set; then
7204  enableval="$enable_motif_check"
7205
7206else
7207  enable_motif_check="yes"
7208fi;
7209  echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7210echo "${ECHO_T}$enable_motif_check" >&6
7211  if test "x$enable_motif_check" = "xno"; then
7212    SKIP_MOTIF=YES
7213  fi
7214fi
7215
7216if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
7217  echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7218echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
7219  # Check whether --enable-athena-check or --disable-athena-check was given.
7220if test "${enable_athena_check+set}" = set; then
7221  enableval="$enable_athena_check"
7222
7223else
7224  enable_athena_check="yes"
7225fi;
7226  echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7227echo "${ECHO_T}$enable_athena_check" >&6
7228  if test "x$enable_athena_check" = "xno"; then
7229    SKIP_ATHENA=YES
7230  fi
7231fi
7232
7233if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
7234  echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7235echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
7236  # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7237if test "${enable_nextaw_check+set}" = set; then
7238  enableval="$enable_nextaw_check"
7239
7240else
7241  enable_nextaw_check="yes"
7242fi;
7243  echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7244echo "${ECHO_T}$enable_nextaw_check" >&6;
7245  if test "x$enable_nextaw_check" = "xno"; then
7246    SKIP_NEXTAW=YES
7247  fi
7248fi
7249
7250if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
7251  echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7252echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
7253  # Check whether --enable-carbon-check or --disable-carbon-check was given.
7254if test "${enable_carbon_check+set}" = set; then
7255  enableval="$enable_carbon_check"
7256
7257else
7258  enable_carbon_check="yes"
7259fi;
7260  echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7261echo "${ECHO_T}$enable_carbon_check" >&6;
7262  if test "x$enable_carbon_check" = "xno"; then
7263    SKIP_CARBON=YES
7264  fi
7265fi
7266
7267
7268if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
7269  echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7270echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7271    echo "$as_me:$LINENO: result: yes" >&5
7272echo "${ECHO_T}yes" >&6;
7273  GUITYPE=CARBONGUI
7274  if test "$VIMNAME" = "vim"; then
7275    VIMNAME=Vim
7276  fi
7277
7278    if test x$prefix = xNONE; then
7279    prefix=/Applications
7280  fi
7281
7282    datadir='${prefix}/Vim.app/Contents/Resources'
7283
7284    SKIP_GTK=YES;
7285  SKIP_GTK2=YES;
7286  SKIP_GNOME=YES;
7287  SKIP_MOTIF=YES;
7288  SKIP_ATHENA=YES;
7289  SKIP_NEXTAW=YES;
7290  SKIP_PHOTON=YES;
7291  SKIP_CARBON=YES
7292fi
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302if test -z "$SKIP_GTK"; then
7303
7304  echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7305echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7306
7307# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7308if test "${with_gtk_prefix+set}" = set; then
7309  withval="$with_gtk_prefix"
7310  gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7311echo "${ECHO_T}$gtk_config_prefix" >&6
7312else
7313  gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6
7315fi;
7316
7317  echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7318echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
7319
7320# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7321if test "${with_gtk_exec_prefix+set}" = set; then
7322  withval="$with_gtk_exec_prefix"
7323  gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7324echo "${ECHO_T}$gtk_config_prefix" >&6
7325else
7326  gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6
7328fi;
7329
7330  echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7331echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
7332  # Check whether --enable-gtktest or --disable-gtktest was given.
7333if test "${enable_gtktest+set}" = set; then
7334  enableval="$enable_gtktest"
7335
7336else
7337  enable_gtktest=yes
7338fi;
7339  if test "x$enable_gtktest" = "xyes" ; then
7340    echo "$as_me:$LINENO: result: gtk test enabled" >&5
7341echo "${ECHO_T}gtk test enabled" >&6
7342  else
7343    echo "$as_me:$LINENO: result: gtk test disabled" >&5
7344echo "${ECHO_T}gtk test disabled" >&6
7345  fi
7346
7347  if test "x$gtk_config_prefix" != "x" ; then
7348    gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7349    GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7350  fi
7351  if test "x$gtk_config_exec_prefix" != "x" ; then
7352    gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7353    GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7354  fi
7355  if test "X$GTK_CONFIG" = "X"; then
7356    # Extract the first word of "gtk-config", so it can be a program name with args.
7357set dummy gtk-config; ac_word=$2
7358echo "$as_me:$LINENO: checking for $ac_word" >&5
7359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7360if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7361  echo $ECHO_N "(cached) $ECHO_C" >&6
7362else
7363  case $GTK_CONFIG in
7364  [\\/]* | ?:[\\/]*)
7365  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7366  ;;
7367  *)
7368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371  IFS=$as_save_IFS
7372  test -z "$as_dir" && as_dir=.
7373  for ac_exec_ext in '' $ac_executable_extensions; do
7374  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377    break 2
7378  fi
7379done
7380done
7381
7382  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7383  ;;
7384esac
7385fi
7386GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7387
7388if test -n "$GTK_CONFIG"; then
7389  echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7390echo "${ECHO_T}$GTK_CONFIG" >&6
7391else
7392  echo "$as_me:$LINENO: result: no" >&5
7393echo "${ECHO_T}no" >&6
7394fi
7395
7396    if test "X$GTK_CONFIG" = "Xno"; then
7397            # Extract the first word of "gtk12-config", so it can be a program name with args.
7398set dummy gtk12-config; ac_word=$2
7399echo "$as_me:$LINENO: checking for $ac_word" >&5
7400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7401if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7402  echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404  case $GTK12_CONFIG in
7405  [\\/]* | ?:[\\/]*)
7406  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7407  ;;
7408  *)
7409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in $PATH
7411do
7412  IFS=$as_save_IFS
7413  test -z "$as_dir" && as_dir=.
7414  for ac_exec_ext in '' $ac_executable_extensions; do
7415  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416    ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418    break 2
7419  fi
7420done
7421done
7422
7423  test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7424  ;;
7425esac
7426fi
7427GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7428
7429if test -n "$GTK12_CONFIG"; then
7430  echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7431echo "${ECHO_T}$GTK12_CONFIG" >&6
7432else
7433  echo "$as_me:$LINENO: result: no" >&5
7434echo "${ECHO_T}no" >&6
7435fi
7436
7437      GTK_CONFIG="$GTK12_CONFIG"
7438    fi
7439  else
7440    echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7441echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
7442  fi
7443  if test "X$PKG_CONFIG" = "X"; then
7444    # Extract the first word of "pkg-config", so it can be a program name with args.
7445set dummy pkg-config; ac_word=$2
7446echo "$as_me:$LINENO: checking for $ac_word" >&5
7447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7448if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7449  echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451  case $PKG_CONFIG in
7452  [\\/]* | ?:[\\/]*)
7453  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7454  ;;
7455  *)
7456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459  IFS=$as_save_IFS
7460  test -z "$as_dir" && as_dir=.
7461  for ac_exec_ext in '' $ac_executable_extensions; do
7462  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7464    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465    break 2
7466  fi
7467done
7468done
7469
7470  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7471  ;;
7472esac
7473fi
7474PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7475
7476if test -n "$PKG_CONFIG"; then
7477  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7478echo "${ECHO_T}$PKG_CONFIG" >&6
7479else
7480  echo "$as_me:$LINENO: result: no" >&5
7481echo "${ECHO_T}no" >&6
7482fi
7483
7484  fi
7485
7486  if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7487            if test "X$SKIP_GTK2" != "XYES"; then
7488
7489  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7490  {
7491    min_gtk_version=2.2.0
7492    echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7493echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7494    no_gtk=""
7495    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7496	  && $PKG_CONFIG --exists gtk+-2.0; then
7497    {
7498                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7499      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7500      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7501      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7502	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7503      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7504	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7505      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7506	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7507    }
7508    elif test "X$GTK_CONFIG" != "Xno"; then
7509    {
7510      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7511      GTK_LIBDIR=
7512      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7513      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7514	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7515      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7516	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7517      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7518	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7519    }
7520    else
7521      no_gtk=yes
7522    fi
7523
7524    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7525    {
7526      ac_save_CFLAGS="$CFLAGS"
7527      ac_save_LIBS="$LIBS"
7528      CFLAGS="$CFLAGS $GTK_CFLAGS"
7529      LIBS="$LIBS $GTK_LIBS"
7530
7531                              rm -f conf.gtktest
7532      if test "$cross_compiling" = yes; then
7533  echo $ac_n "cross compiling; assumed OK... $ac_c"
7534else
7535  cat >conftest.$ac_ext <<_ACEOF
7536/* confdefs.h.  */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h.  */
7541
7542#include <gtk/gtk.h>
7543#include <stdio.h>
7544
7545int
7546main ()
7547{
7548int major, minor, micro;
7549char *tmp_version;
7550
7551system ("touch conf.gtktest");
7552
7553/* HP/UX 9 (%@#!) writes to sscanf strings */
7554tmp_version = g_strdup("$min_gtk_version");
7555if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7556   printf("%s, bad version string\n", "$min_gtk_version");
7557   exit(1);
7558 }
7559
7560if ((gtk_major_version > major) ||
7561    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7562    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7563				     (gtk_micro_version >= micro)))
7564{
7565    return 0;
7566}
7567return 1;
7568}
7569
7570_ACEOF
7571rm -f conftest$ac_exeext
7572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573  (eval $ac_link) 2>&5
7574  ac_status=$?
7575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578  (eval $ac_try) 2>&5
7579  ac_status=$?
7580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581  (exit $ac_status); }; }; then
7582  :
7583else
7584  echo "$as_me: program exited with status $ac_status" >&5
7585echo "$as_me: failed program was:" >&5
7586sed 's/^/| /' conftest.$ac_ext >&5
7587
7588( exit $ac_status )
7589no_gtk=yes
7590fi
7591rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7592fi
7593      CFLAGS="$ac_save_CFLAGS"
7594      LIBS="$ac_save_LIBS"
7595    }
7596    fi
7597    if test "x$no_gtk" = x ; then
7598      if test "x$enable_gtktest" = "xyes"; then
7599	echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7600echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7601      else
7602	echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7603echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7604      fi
7605      GUI_LIB_LOC="$GTK_LIBDIR"
7606		   GTK_LIBNAME="$GTK_LIBS"
7607		  GUI_INC_LOC="$GTK_CFLAGS"
7608    else
7609    {
7610      echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6
7612      GTK_CFLAGS=""
7613      GTK_LIBS=""
7614      :
7615    }
7616    fi
7617  }
7618  else
7619    GTK_CFLAGS=""
7620    GTK_LIBS=""
7621    :
7622  fi
7623
7624
7625  rm -f conf.gtktest
7626
7627      if test "x$GTK_CFLAGS" != "x"; then
7628	SKIP_ATHENA=YES
7629	SKIP_NEXTAW=YES
7630	SKIP_MOTIF=YES
7631	GUITYPE=GTK
7632
7633      fi
7634    fi
7635
7636                if test "x$GUITYPE" != "xGTK"; then
7637      SKIP_GTK2=YES
7638
7639  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7640  {
7641    min_gtk_version=1.1.16
7642    echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7643echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7644    no_gtk=""
7645    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7646	  && $PKG_CONFIG --exists gtk+-2.0; then
7647    {
7648                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7649      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7650      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7651      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7652	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7653      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7654	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7655      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7656	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7657    }
7658    elif test "X$GTK_CONFIG" != "Xno"; then
7659    {
7660      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7661      GTK_LIBDIR=
7662      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7663      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7664	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7665      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7666	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7667      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7668	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7669    }
7670    else
7671      no_gtk=yes
7672    fi
7673
7674    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7675    {
7676      ac_save_CFLAGS="$CFLAGS"
7677      ac_save_LIBS="$LIBS"
7678      CFLAGS="$CFLAGS $GTK_CFLAGS"
7679      LIBS="$LIBS $GTK_LIBS"
7680
7681                              rm -f conf.gtktest
7682      if test "$cross_compiling" = yes; then
7683  echo $ac_n "cross compiling; assumed OK... $ac_c"
7684else
7685  cat >conftest.$ac_ext <<_ACEOF
7686/* confdefs.h.  */
7687_ACEOF
7688cat confdefs.h >>conftest.$ac_ext
7689cat >>conftest.$ac_ext <<_ACEOF
7690/* end confdefs.h.  */
7691
7692#include <gtk/gtk.h>
7693#include <stdio.h>
7694
7695int
7696main ()
7697{
7698int major, minor, micro;
7699char *tmp_version;
7700
7701system ("touch conf.gtktest");
7702
7703/* HP/UX 9 (%@#!) writes to sscanf strings */
7704tmp_version = g_strdup("$min_gtk_version");
7705if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7706   printf("%s, bad version string\n", "$min_gtk_version");
7707   exit(1);
7708 }
7709
7710if ((gtk_major_version > major) ||
7711    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7712    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7713				     (gtk_micro_version >= micro)))
7714{
7715    return 0;
7716}
7717return 1;
7718}
7719
7720_ACEOF
7721rm -f conftest$ac_exeext
7722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723  (eval $ac_link) 2>&5
7724  ac_status=$?
7725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728  (eval $ac_try) 2>&5
7729  ac_status=$?
7730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731  (exit $ac_status); }; }; then
7732  :
7733else
7734  echo "$as_me: program exited with status $ac_status" >&5
7735echo "$as_me: failed program was:" >&5
7736sed 's/^/| /' conftest.$ac_ext >&5
7737
7738( exit $ac_status )
7739no_gtk=yes
7740fi
7741rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7742fi
7743      CFLAGS="$ac_save_CFLAGS"
7744      LIBS="$ac_save_LIBS"
7745    }
7746    fi
7747    if test "x$no_gtk" = x ; then
7748      if test "x$enable_gtktest" = "xyes"; then
7749	echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7750echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7751      else
7752	echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7753echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7754      fi
7755      GTK_LIBNAME="$GTK_LIBS"
7756		  GUI_INC_LOC="$GTK_CFLAGS"
7757    else
7758    {
7759      echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
7761      GTK_CFLAGS=""
7762      GTK_LIBS=""
7763      :
7764    }
7765    fi
7766  }
7767  else
7768    GTK_CFLAGS=""
7769    GTK_LIBS=""
7770    :
7771  fi
7772
7773
7774  rm -f conf.gtktest
7775
7776      if test "x$GTK_CFLAGS" != "x"; then
7777	SKIP_ATHENA=YES
7778	SKIP_NEXTAW=YES
7779	SKIP_MOTIF=YES
7780	GUITYPE=GTK
7781
7782      fi
7783    fi
7784  fi
7785    if test "x$GUITYPE" = "xGTK"; then
7786    if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7787	 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
7788      echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7789echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
7790    else
7791    {
7792      if test "0$gtk_major_version" -ge 2; then
7793	cat >>confdefs.h <<\_ACEOF
7794#define HAVE_GTK2 1
7795_ACEOF
7796
7797	if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7798		|| test "0$gtk_minor_version" -ge 2 \
7799		|| test "0$gtk_major_version" -gt 2; then
7800	  cat >>confdefs.h <<\_ACEOF
7801#define HAVE_GTK_MULTIHEAD 1
7802_ACEOF
7803
7804	fi
7805      fi
7806                        if test -z "$SKIP_GNOME"; then
7807      {
7808
7809
7810
7811
7812
7813
7814# Check whether --with-gnome-includes or --without-gnome-includes was given.
7815if test "${with_gnome_includes+set}" = set; then
7816  withval="$with_gnome_includes"
7817  CFLAGS="$CFLAGS -I$withval"
7818
7819fi;
7820
7821
7822# Check whether --with-gnome-libs or --without-gnome-libs was given.
7823if test "${with_gnome_libs+set}" = set; then
7824  withval="$with_gnome_libs"
7825  LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
7826
7827fi;
7828
7829
7830# Check whether --with-gnome or --without-gnome was given.
7831if test "${with_gnome+set}" = set; then
7832  withval="$with_gnome"
7833  if test x$withval = xyes; then
7834      want_gnome=yes
7835      have_gnome=yes
7836    else
7837      if test "x$withval" = xno; then
7838	want_gnome=no
7839      else
7840	want_gnome=yes
7841	LDFLAGS="$LDFLAGS -L$withval/lib"
7842	CFLAGS="$CFLAGS -I$withval/include"
7843	gnome_prefix=$withval/lib
7844      fi
7845    fi
7846else
7847  want_gnome=yes
7848fi;
7849
7850  if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7851  {
7852    echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7853echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
7854    if $PKG_CONFIG --exists libgnomeui-2.0; then
7855      echo "$as_me:$LINENO: result: yes" >&5
7856echo "${ECHO_T}yes" >&6
7857      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7858      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7859      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
7860
7861                  echo "$as_me:$LINENO: checking for FreeBSD" >&5
7862echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7863      if test "`(uname) 2>/dev/null`" = FreeBSD; then
7864	echo "$as_me:$LINENO: result: yes" >&5
7865echo "${ECHO_T}yes" >&6
7866	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
7867	GNOME_LIBS="$GNOME_LIBS -pthread"
7868      else
7869	echo "$as_me:$LINENO: result: no" >&5
7870echo "${ECHO_T}no" >&6
7871      fi
7872      have_gnome=yes
7873    else
7874      echo "$as_me:$LINENO: result: not found" >&5
7875echo "${ECHO_T}not found" >&6
7876      if test "x" = xfail; then
7877	{ { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7878echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7879   { (exit 1); exit 1; }; }
7880      fi
7881    fi
7882  }
7883  elif test "x$want_gnome" = xyes; then
7884  {
7885    # Extract the first word of "gnome-config", so it can be a program name with args.
7886set dummy gnome-config; ac_word=$2
7887echo "$as_me:$LINENO: checking for $ac_word" >&5
7888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7889if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7890  echo $ECHO_N "(cached) $ECHO_C" >&6
7891else
7892  case $GNOME_CONFIG in
7893  [\\/]* | ?:[\\/]*)
7894  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7895  ;;
7896  *)
7897  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900  IFS=$as_save_IFS
7901  test -z "$as_dir" && as_dir=.
7902  for ac_exec_ext in '' $ac_executable_extensions; do
7903  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904    ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7905    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906    break 2
7907  fi
7908done
7909done
7910
7911  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7912  ;;
7913esac
7914fi
7915GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7916
7917if test -n "$GNOME_CONFIG"; then
7918  echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7919echo "${ECHO_T}$GNOME_CONFIG" >&6
7920else
7921  echo "$as_me:$LINENO: result: no" >&5
7922echo "${ECHO_T}no" >&6
7923fi
7924
7925    if test "$GNOME_CONFIG" = "no"; then
7926      no_gnome_config="yes"
7927    else
7928      echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7929echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
7930      if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
7931	echo "$as_me:$LINENO: result: yes" >&5
7932echo "${ECHO_T}yes" >&6
7933	GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7934	GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7935	GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7936	have_gnome=yes
7937      else
7938	echo "$as_me:$LINENO: result: no" >&5
7939echo "${ECHO_T}no" >&6
7940	no_gnome_config="yes"
7941      fi
7942    fi
7943
7944    if test x$exec_prefix = xNONE; then
7945      if test x$prefix = xNONE; then
7946	gnome_prefix=$ac_default_prefix/lib
7947      else
7948	gnome_prefix=$prefix/lib
7949      fi
7950    else
7951      gnome_prefix=`eval echo \`echo $libdir\``
7952    fi
7953
7954    if test "$no_gnome_config" = "yes"; then
7955      echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7956echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
7957      if test -f $gnome_prefix/gnomeConf.sh; then
7958	echo "$as_me:$LINENO: result: found" >&5
7959echo "${ECHO_T}found" >&6
7960	echo "loading gnome configuration from" \
7961	  "$gnome_prefix/gnomeConf.sh"
7962	. $gnome_prefix/gnomeConf.sh
7963	have_gnome=yes
7964      else
7965	echo "$as_me:$LINENO: result: not found" >&5
7966echo "${ECHO_T}not found" >&6
7967	if test x = xfail; then
7968	  { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7969echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7970   { (exit 1); exit 1; }; }
7971	fi
7972      fi
7973    fi
7974  }
7975  fi
7976
7977	if test x$have_gnome = xyes ; then
7978	  cat >>confdefs.h <<\_ACEOF
7979#define FEAT_GUI_GNOME 1
7980_ACEOF
7981
7982	  GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7983	  GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7984	fi
7985      }
7986      fi
7987    }
7988    fi
7989  fi
7990fi
7991
7992
7993if test -z "$SKIP_MOTIF"; then
7994  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"
7995    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7996
7997  echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7998echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
7999  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8000  GUI_INC_LOC=
8001  for try in $gui_includes; do
8002    if test -f "$try/Xm/Xm.h"; then
8003      GUI_INC_LOC=$try
8004    fi
8005  done
8006  if test -n "$GUI_INC_LOC"; then
8007    if test "$GUI_INC_LOC" = /usr/include; then
8008      GUI_INC_LOC=
8009      echo "$as_me:$LINENO: result: in default path" >&5
8010echo "${ECHO_T}in default path" >&6
8011    else
8012      echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8013echo "${ECHO_T}$GUI_INC_LOC" >&6
8014    fi
8015  else
8016    echo "$as_me:$LINENO: result: <not found>" >&5
8017echo "${ECHO_T}<not found>" >&6
8018    SKIP_MOTIF=YES
8019  fi
8020fi
8021
8022
8023if test -z "$SKIP_MOTIF"; then
8024  echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8025echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8026
8027# Check whether --with-motif-lib or --without-motif-lib was given.
8028if test "${with_motif_lib+set}" = set; then
8029  withval="$with_motif_lib"
8030   MOTIF_LIBNAME="${withval}"
8031fi;
8032
8033  if test -n "$MOTIF_LIBNAME"; then
8034    echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8035echo "${ECHO_T}$MOTIF_LIBNAME" >&6
8036    GUI_LIB_LOC=
8037  else
8038    echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
8040
8041        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8042
8043    echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8044echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
8045    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"
8046    GUI_LIB_LOC=
8047    for try in $gui_libs; do
8048      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
8049	if test -f "$libtry"; then
8050	  GUI_LIB_LOC=$try
8051	fi
8052      done
8053    done
8054    if test -n "$GUI_LIB_LOC"; then
8055            if test "$GUI_LIB_LOC" = /usr/lib; then
8056	GUI_LIB_LOC=
8057	echo "$as_me:$LINENO: result: in default path" >&5
8058echo "${ECHO_T}in default path" >&6
8059      else
8060	if test -n "$GUI_LIB_LOC"; then
8061	  echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8062echo "${ECHO_T}$GUI_LIB_LOC" >&6
8063	  if test "`(uname) 2>/dev/null`" = SunOS &&
8064					 uname -r | grep '^5' >/dev/null; then
8065	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8066	  fi
8067	fi
8068      fi
8069      MOTIF_LIBNAME=-lXm
8070    else
8071      echo "$as_me:$LINENO: result: <not found>" >&5
8072echo "${ECHO_T}<not found>" >&6
8073      SKIP_MOTIF=YES
8074    fi
8075  fi
8076fi
8077
8078if test -z "$SKIP_MOTIF"; then
8079  SKIP_ATHENA=YES
8080  SKIP_NEXTAW=YES
8081  GUITYPE=MOTIF
8082
8083fi
8084
8085
8086GUI_X_LIBS=
8087
8088if test -z "$SKIP_ATHENA"; then
8089  echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8090echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
8091  cflags_save=$CFLAGS
8092  CFLAGS="$CFLAGS $X_CFLAGS"
8093  cat >conftest.$ac_ext <<_ACEOF
8094/* confdefs.h.  */
8095_ACEOF
8096cat confdefs.h >>conftest.$ac_ext
8097cat >>conftest.$ac_ext <<_ACEOF
8098/* end confdefs.h.  */
8099
8100#include <X11/Intrinsic.h>
8101#include <X11/Xaw/Paned.h>
8102int
8103main ()
8104{
8105
8106  ;
8107  return 0;
8108}
8109_ACEOF
8110rm -f conftest.$ac_objext
8111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112  (eval $ac_compile) 2>conftest.er1
8113  ac_status=$?
8114  grep -v '^ *+' conftest.er1 >conftest.err
8115  rm -f conftest.er1
8116  cat conftest.err >&5
8117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118  (exit $ac_status); } &&
8119	 { ac_try='test -z "$ac_c_werror_flag"
8120			 || test ! -s conftest.err'
8121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122  (eval $ac_try) 2>&5
8123  ac_status=$?
8124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125  (exit $ac_status); }; } &&
8126	 { ac_try='test -s conftest.$ac_objext'
8127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128  (eval $ac_try) 2>&5
8129  ac_status=$?
8130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131  (exit $ac_status); }; }; then
8132  echo "$as_me:$LINENO: result: yes" >&5
8133echo "${ECHO_T}yes" >&6
8134else
8135  echo "$as_me: failed program was:" >&5
8136sed 's/^/| /' conftest.$ac_ext >&5
8137
8138echo "$as_me:$LINENO: result: no" >&5
8139echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
8140fi
8141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8142  CFLAGS=$cflags_save
8143fi
8144
8145if test -z "$SKIP_ATHENA"; then
8146  GUITYPE=ATHENA
8147fi
8148
8149if test -z "$SKIP_NEXTAW"; then
8150  echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8151echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
8152  cflags_save=$CFLAGS
8153  CFLAGS="$CFLAGS $X_CFLAGS"
8154  cat >conftest.$ac_ext <<_ACEOF
8155/* confdefs.h.  */
8156_ACEOF
8157cat confdefs.h >>conftest.$ac_ext
8158cat >>conftest.$ac_ext <<_ACEOF
8159/* end confdefs.h.  */
8160
8161#include <X11/Intrinsic.h>
8162#include <X11/neXtaw/Paned.h>
8163int
8164main ()
8165{
8166
8167  ;
8168  return 0;
8169}
8170_ACEOF
8171rm -f conftest.$ac_objext
8172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8173  (eval $ac_compile) 2>conftest.er1
8174  ac_status=$?
8175  grep -v '^ *+' conftest.er1 >conftest.err
8176  rm -f conftest.er1
8177  cat conftest.err >&5
8178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179  (exit $ac_status); } &&
8180	 { ac_try='test -z "$ac_c_werror_flag"
8181			 || test ! -s conftest.err'
8182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183  (eval $ac_try) 2>&5
8184  ac_status=$?
8185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186  (exit $ac_status); }; } &&
8187	 { ac_try='test -s conftest.$ac_objext'
8188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189  (eval $ac_try) 2>&5
8190  ac_status=$?
8191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192  (exit $ac_status); }; }; then
8193  echo "$as_me:$LINENO: result: yes" >&5
8194echo "${ECHO_T}yes" >&6
8195else
8196  echo "$as_me: failed program was:" >&5
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
8199echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
8201fi
8202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8203  CFLAGS=$cflags_save
8204fi
8205
8206if test -z "$SKIP_NEXTAW"; then
8207  GUITYPE=NEXTAW
8208fi
8209
8210if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8211      if test -n "$GUI_INC_LOC"; then
8212    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8213  fi
8214  if test -n "$GUI_LIB_LOC"; then
8215    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8216  fi
8217
8218    ldflags_save=$LDFLAGS
8219  LDFLAGS="$X_LIBS $LDFLAGS"
8220  echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8221echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8222if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8223  echo $ECHO_N "(cached) $ECHO_C" >&6
8224else
8225  ac_check_lib_save_LIBS=$LIBS
8226LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8227cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h.  */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h.  */
8233
8234/* Override any gcc2 internal prototype to avoid an error.  */
8235#ifdef __cplusplus
8236extern "C"
8237#endif
8238/* We use char because int might match the return type of a gcc2
8239   builtin and then its argument prototype would still apply.  */
8240char XShapeQueryExtension ();
8241int
8242main ()
8243{
8244XShapeQueryExtension ();
8245  ;
8246  return 0;
8247}
8248_ACEOF
8249rm -f conftest.$ac_objext conftest$ac_exeext
8250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251  (eval $ac_link) 2>conftest.er1
8252  ac_status=$?
8253  grep -v '^ *+' conftest.er1 >conftest.err
8254  rm -f conftest.er1
8255  cat conftest.err >&5
8256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257  (exit $ac_status); } &&
8258	 { ac_try='test -z "$ac_c_werror_flag"
8259			 || test ! -s conftest.err'
8260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261  (eval $ac_try) 2>&5
8262  ac_status=$?
8263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264  (exit $ac_status); }; } &&
8265	 { ac_try='test -s conftest$ac_exeext'
8266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267  (eval $ac_try) 2>&5
8268  ac_status=$?
8269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270  (exit $ac_status); }; }; then
8271  ac_cv_lib_Xext_XShapeQueryExtension=yes
8272else
8273  echo "$as_me: failed program was:" >&5
8274sed 's/^/| /' conftest.$ac_ext >&5
8275
8276ac_cv_lib_Xext_XShapeQueryExtension=no
8277fi
8278rm -f conftest.err conftest.$ac_objext \
8279      conftest$ac_exeext conftest.$ac_ext
8280LIBS=$ac_check_lib_save_LIBS
8281fi
8282echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8283echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8284if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8285  GUI_X_LIBS="-lXext"
8286fi
8287
8288    echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8289echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8290if test "${ac_cv_lib_w_wslen+set}" = set; then
8291  echo $ECHO_N "(cached) $ECHO_C" >&6
8292else
8293  ac_check_lib_save_LIBS=$LIBS
8294LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8295cat >conftest.$ac_ext <<_ACEOF
8296/* confdefs.h.  */
8297_ACEOF
8298cat confdefs.h >>conftest.$ac_ext
8299cat >>conftest.$ac_ext <<_ACEOF
8300/* end confdefs.h.  */
8301
8302/* Override any gcc2 internal prototype to avoid an error.  */
8303#ifdef __cplusplus
8304extern "C"
8305#endif
8306/* We use char because int might match the return type of a gcc2
8307   builtin and then its argument prototype would still apply.  */
8308char wslen ();
8309int
8310main ()
8311{
8312wslen ();
8313  ;
8314  return 0;
8315}
8316_ACEOF
8317rm -f conftest.$ac_objext conftest$ac_exeext
8318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319  (eval $ac_link) 2>conftest.er1
8320  ac_status=$?
8321  grep -v '^ *+' conftest.er1 >conftest.err
8322  rm -f conftest.er1
8323  cat conftest.err >&5
8324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325  (exit $ac_status); } &&
8326	 { ac_try='test -z "$ac_c_werror_flag"
8327			 || test ! -s conftest.err'
8328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329  (eval $ac_try) 2>&5
8330  ac_status=$?
8331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332  (exit $ac_status); }; } &&
8333	 { ac_try='test -s conftest$ac_exeext'
8334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335  (eval $ac_try) 2>&5
8336  ac_status=$?
8337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338  (exit $ac_status); }; }; then
8339  ac_cv_lib_w_wslen=yes
8340else
8341  echo "$as_me: failed program was:" >&5
8342sed 's/^/| /' conftest.$ac_ext >&5
8343
8344ac_cv_lib_w_wslen=no
8345fi
8346rm -f conftest.err conftest.$ac_objext \
8347      conftest$ac_exeext conftest.$ac_ext
8348LIBS=$ac_check_lib_save_LIBS
8349fi
8350echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8351echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8352if test $ac_cv_lib_w_wslen = yes; then
8353  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
8354fi
8355
8356  echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8357echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8358if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8359  echo $ECHO_N "(cached) $ECHO_C" >&6
8360else
8361  ac_check_lib_save_LIBS=$LIBS
8362LIBS="-ldl $GUI_X_LIBS -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 dlsym ();
8377int
8378main ()
8379{
8380dlsym ();
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_dl_dlsym=yes
8408else
8409  echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
8412ac_cv_lib_dl_dlsym=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_dl_dlsym" >&5
8419echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8420if test $ac_cv_lib_dl_dlsym = yes; then
8421  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
8422fi
8423
8424  echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8425echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8426if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8427  echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429  ac_check_lib_save_LIBS=$LIBS
8430LIBS="-lXmu $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 XmuCreateStippledPixmap ();
8445int
8446main ()
8447{
8448XmuCreateStippledPixmap ();
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_Xmu_XmuCreateStippledPixmap=yes
8476else
8477  echo "$as_me: failed program was:" >&5
8478sed 's/^/| /' conftest.$ac_ext >&5
8479
8480ac_cv_lib_Xmu_XmuCreateStippledPixmap=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_Xmu_XmuCreateStippledPixmap" >&5
8487echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8488if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
8489  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
8490fi
8491
8492  if test -z "$SKIP_MOTIF"; then
8493    echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8494echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8495if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8496  echo $ECHO_N "(cached) $ECHO_C" >&6
8497else
8498  ac_check_lib_save_LIBS=$LIBS
8499LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8500cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h.  */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h.  */
8506
8507/* Override any gcc2 internal prototype to avoid an error.  */
8508#ifdef __cplusplus
8509extern "C"
8510#endif
8511/* We use char because int might match the return type of a gcc2
8512   builtin and then its argument prototype would still apply.  */
8513char XpEndJob ();
8514int
8515main ()
8516{
8517XpEndJob ();
8518  ;
8519  return 0;
8520}
8521_ACEOF
8522rm -f conftest.$ac_objext conftest$ac_exeext
8523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524  (eval $ac_link) 2>conftest.er1
8525  ac_status=$?
8526  grep -v '^ *+' conftest.er1 >conftest.err
8527  rm -f conftest.er1
8528  cat conftest.err >&5
8529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530  (exit $ac_status); } &&
8531	 { ac_try='test -z "$ac_c_werror_flag"
8532			 || test ! -s conftest.err'
8533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534  (eval $ac_try) 2>&5
8535  ac_status=$?
8536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537  (exit $ac_status); }; } &&
8538	 { ac_try='test -s conftest$ac_exeext'
8539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540  (eval $ac_try) 2>&5
8541  ac_status=$?
8542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543  (exit $ac_status); }; }; then
8544  ac_cv_lib_Xp_XpEndJob=yes
8545else
8546  echo "$as_me: failed program was:" >&5
8547sed 's/^/| /' conftest.$ac_ext >&5
8548
8549ac_cv_lib_Xp_XpEndJob=no
8550fi
8551rm -f conftest.err conftest.$ac_objext \
8552      conftest$ac_exeext conftest.$ac_ext
8553LIBS=$ac_check_lib_save_LIBS
8554fi
8555echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8556echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8557if test $ac_cv_lib_Xp_XpEndJob = yes; then
8558  GUI_X_LIBS="-lXp $GUI_X_LIBS"
8559fi
8560
8561  fi
8562  LDFLAGS=$ldflags_save
8563
8564    echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8565echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
8566  NARROW_PROTO=
8567  rm -fr conftestdir
8568  if mkdir conftestdir; then
8569    cd conftestdir
8570    cat > Imakefile <<'EOF'
8571acfindx:
8572	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8573EOF
8574    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8575      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8576    fi
8577    cd ..
8578    rm -fr conftestdir
8579  fi
8580  if test -z "$NARROW_PROTO"; then
8581    echo "$as_me:$LINENO: result: no" >&5
8582echo "${ECHO_T}no" >&6
8583  else
8584    echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8585echo "${ECHO_T}$NARROW_PROTO" >&6
8586  fi
8587
8588fi
8589
8590if test "$enable_xsmp" = "yes"; then
8591  cppflags_save=$CPPFLAGS
8592  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8593
8594for ac_header in X11/SM/SMlib.h
8595do
8596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8597if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598  echo "$as_me:$LINENO: checking for $ac_header" >&5
8599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8600if eval "test \"\${$as_ac_Header+set}\" = set"; then
8601  echo $ECHO_N "(cached) $ECHO_C" >&6
8602fi
8603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8605else
8606  # Is the header compilable?
8607echo "$as_me:$LINENO: checking $ac_header usability" >&5
8608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8609cat >conftest.$ac_ext <<_ACEOF
8610/* confdefs.h.  */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h.  */
8615$ac_includes_default
8616#include <$ac_header>
8617_ACEOF
8618rm -f conftest.$ac_objext
8619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8620  (eval $ac_compile) 2>conftest.er1
8621  ac_status=$?
8622  grep -v '^ *+' conftest.er1 >conftest.err
8623  rm -f conftest.er1
8624  cat conftest.err >&5
8625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626  (exit $ac_status); } &&
8627	 { ac_try='test -z "$ac_c_werror_flag"
8628			 || test ! -s conftest.err'
8629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630  (eval $ac_try) 2>&5
8631  ac_status=$?
8632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633  (exit $ac_status); }; } &&
8634	 { ac_try='test -s conftest.$ac_objext'
8635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636  (eval $ac_try) 2>&5
8637  ac_status=$?
8638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639  (exit $ac_status); }; }; then
8640  ac_header_compiler=yes
8641else
8642  echo "$as_me: failed program was:" >&5
8643sed 's/^/| /' conftest.$ac_ext >&5
8644
8645ac_header_compiler=no
8646fi
8647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8649echo "${ECHO_T}$ac_header_compiler" >&6
8650
8651# Is the header present?
8652echo "$as_me:$LINENO: checking $ac_header presence" >&5
8653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8654cat >conftest.$ac_ext <<_ACEOF
8655/* confdefs.h.  */
8656_ACEOF
8657cat confdefs.h >>conftest.$ac_ext
8658cat >>conftest.$ac_ext <<_ACEOF
8659/* end confdefs.h.  */
8660#include <$ac_header>
8661_ACEOF
8662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8663  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8664  ac_status=$?
8665  grep -v '^ *+' conftest.er1 >conftest.err
8666  rm -f conftest.er1
8667  cat conftest.err >&5
8668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669  (exit $ac_status); } >/dev/null; then
8670  if test -s conftest.err; then
8671    ac_cpp_err=$ac_c_preproc_warn_flag
8672    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8673  else
8674    ac_cpp_err=
8675  fi
8676else
8677  ac_cpp_err=yes
8678fi
8679if test -z "$ac_cpp_err"; then
8680  ac_header_preproc=yes
8681else
8682  echo "$as_me: failed program was:" >&5
8683sed 's/^/| /' conftest.$ac_ext >&5
8684
8685  ac_header_preproc=no
8686fi
8687rm -f conftest.err conftest.$ac_ext
8688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8689echo "${ECHO_T}$ac_header_preproc" >&6
8690
8691# So?  What about this header?
8692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8693  yes:no: )
8694    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8696    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8698    ac_header_preproc=yes
8699    ;;
8700  no:yes:* )
8701    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8703    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8704echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8705    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8707    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8708echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8709    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8711    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8713    (
8714      cat <<\_ASBOX
8715## ------------------------------------------ ##
8716## Report this to the AC_PACKAGE_NAME lists.  ##
8717## ------------------------------------------ ##
8718_ASBOX
8719    ) |
8720      sed "s/^/$as_me: WARNING:     /" >&2
8721    ;;
8722esac
8723echo "$as_me:$LINENO: checking for $ac_header" >&5
8724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8725if eval "test \"\${$as_ac_Header+set}\" = set"; then
8726  echo $ECHO_N "(cached) $ECHO_C" >&6
8727else
8728  eval "$as_ac_Header=\$ac_header_preproc"
8729fi
8730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8732
8733fi
8734if test `eval echo '${'$as_ac_Header'}'` = yes; then
8735  cat >>confdefs.h <<_ACEOF
8736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8737_ACEOF
8738
8739fi
8740
8741done
8742
8743  CPPFLAGS=$cppflags_save
8744fi
8745
8746
8747if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8748    cppflags_save=$CPPFLAGS
8749  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8750
8751
8752for ac_header in X11/xpm.h X11/Sunkeysym.h
8753do
8754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8755if eval "test \"\${$as_ac_Header+set}\" = set"; then
8756  echo "$as_me:$LINENO: checking for $ac_header" >&5
8757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8758if eval "test \"\${$as_ac_Header+set}\" = set"; then
8759  echo $ECHO_N "(cached) $ECHO_C" >&6
8760fi
8761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8763else
8764  # Is the header compilable?
8765echo "$as_me:$LINENO: checking $ac_header usability" >&5
8766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8767cat >conftest.$ac_ext <<_ACEOF
8768/* confdefs.h.  */
8769_ACEOF
8770cat confdefs.h >>conftest.$ac_ext
8771cat >>conftest.$ac_ext <<_ACEOF
8772/* end confdefs.h.  */
8773$ac_includes_default
8774#include <$ac_header>
8775_ACEOF
8776rm -f conftest.$ac_objext
8777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8778  (eval $ac_compile) 2>conftest.er1
8779  ac_status=$?
8780  grep -v '^ *+' conftest.er1 >conftest.err
8781  rm -f conftest.er1
8782  cat conftest.err >&5
8783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784  (exit $ac_status); } &&
8785	 { ac_try='test -z "$ac_c_werror_flag"
8786			 || test ! -s conftest.err'
8787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788  (eval $ac_try) 2>&5
8789  ac_status=$?
8790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791  (exit $ac_status); }; } &&
8792	 { ac_try='test -s conftest.$ac_objext'
8793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794  (eval $ac_try) 2>&5
8795  ac_status=$?
8796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797  (exit $ac_status); }; }; then
8798  ac_header_compiler=yes
8799else
8800  echo "$as_me: failed program was:" >&5
8801sed 's/^/| /' conftest.$ac_ext >&5
8802
8803ac_header_compiler=no
8804fi
8805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8807echo "${ECHO_T}$ac_header_compiler" >&6
8808
8809# Is the header present?
8810echo "$as_me:$LINENO: checking $ac_header presence" >&5
8811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8812cat >conftest.$ac_ext <<_ACEOF
8813/* confdefs.h.  */
8814_ACEOF
8815cat confdefs.h >>conftest.$ac_ext
8816cat >>conftest.$ac_ext <<_ACEOF
8817/* end confdefs.h.  */
8818#include <$ac_header>
8819_ACEOF
8820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8822  ac_status=$?
8823  grep -v '^ *+' conftest.er1 >conftest.err
8824  rm -f conftest.er1
8825  cat conftest.err >&5
8826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827  (exit $ac_status); } >/dev/null; then
8828  if test -s conftest.err; then
8829    ac_cpp_err=$ac_c_preproc_warn_flag
8830    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8831  else
8832    ac_cpp_err=
8833  fi
8834else
8835  ac_cpp_err=yes
8836fi
8837if test -z "$ac_cpp_err"; then
8838  ac_header_preproc=yes
8839else
8840  echo "$as_me: failed program was:" >&5
8841sed 's/^/| /' conftest.$ac_ext >&5
8842
8843  ac_header_preproc=no
8844fi
8845rm -f conftest.err conftest.$ac_ext
8846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8847echo "${ECHO_T}$ac_header_preproc" >&6
8848
8849# So?  What about this header?
8850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8851  yes:no: )
8852    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8854    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8855echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8856    ac_header_preproc=yes
8857    ;;
8858  no:yes:* )
8859    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8861    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8862echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8863    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8864echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8865    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8866echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8867    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8869    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8870echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8871    (
8872      cat <<\_ASBOX
8873## ------------------------------------------ ##
8874## Report this to the AC_PACKAGE_NAME lists.  ##
8875## ------------------------------------------ ##
8876_ASBOX
8877    ) |
8878      sed "s/^/$as_me: WARNING:     /" >&2
8879    ;;
8880esac
8881echo "$as_me:$LINENO: checking for $ac_header" >&5
8882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8883if eval "test \"\${$as_ac_Header+set}\" = set"; then
8884  echo $ECHO_N "(cached) $ECHO_C" >&6
8885else
8886  eval "$as_ac_Header=\$ac_header_preproc"
8887fi
8888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8890
8891fi
8892if test `eval echo '${'$as_ac_Header'}'` = yes; then
8893  cat >>confdefs.h <<_ACEOF
8894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8895_ACEOF
8896
8897fi
8898
8899done
8900
8901
8902    if test ! "$enable_xim" = "no"; then
8903    echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8904echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8905    cat >conftest.$ac_ext <<_ACEOF
8906/* confdefs.h.  */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h.  */
8911#include <X11/Xlib.h>
8912_ACEOF
8913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8914  $EGREP "XIMText" >/dev/null 2>&1; then
8915  echo "$as_me:$LINENO: result: yes" >&5
8916echo "${ECHO_T}yes" >&6
8917else
8918  echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8919echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
8920fi
8921rm -f conftest*
8922
8923  fi
8924  CPPFLAGS=$cppflags_save
8925
8926    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8927		-a "x$GUITYPE" != "xNONE" ; then
8928    echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8929echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
8930    enable_xim="yes"
8931  fi
8932fi
8933
8934if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8935  cppflags_save=$CPPFLAGS
8936  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8937  echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8938echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8939  cat >conftest.$ac_ext <<_ACEOF
8940/* confdefs.h.  */
8941_ACEOF
8942cat confdefs.h >>conftest.$ac_ext
8943cat >>conftest.$ac_ext <<_ACEOF
8944/* end confdefs.h.  */
8945
8946#include <X11/Intrinsic.h>
8947#include <X11/Xmu/Editres.h>
8948int
8949main ()
8950{
8951int i; i = 0;
8952  ;
8953  return 0;
8954}
8955_ACEOF
8956rm -f conftest.$ac_objext
8957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8958  (eval $ac_compile) 2>conftest.er1
8959  ac_status=$?
8960  grep -v '^ *+' conftest.er1 >conftest.err
8961  rm -f conftest.er1
8962  cat conftest.err >&5
8963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964  (exit $ac_status); } &&
8965	 { ac_try='test -z "$ac_c_werror_flag"
8966			 || test ! -s conftest.err'
8967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968  (eval $ac_try) 2>&5
8969  ac_status=$?
8970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971  (exit $ac_status); }; } &&
8972	 { ac_try='test -s conftest.$ac_objext'
8973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974  (eval $ac_try) 2>&5
8975  ac_status=$?
8976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977  (exit $ac_status); }; }; then
8978  echo "$as_me:$LINENO: result: yes" >&5
8979echo "${ECHO_T}yes" >&6
8980		      cat >>confdefs.h <<\_ACEOF
8981#define HAVE_X11_XMU_EDITRES_H 1
8982_ACEOF
8983
8984else
8985  echo "$as_me: failed program was:" >&5
8986sed 's/^/| /' conftest.$ac_ext >&5
8987
8988echo "$as_me:$LINENO: result: no" >&5
8989echo "${ECHO_T}no" >&6
8990fi
8991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8992  CPPFLAGS=$cppflags_save
8993fi
8994
8995if test -z "$SKIP_MOTIF"; then
8996  cppflags_save=$CPPFLAGS
8997  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8998
8999
9000
9001
9002
9003
9004
9005for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9006		   Xm/UnhighlightT.h Xm/Notebook.h
9007do
9008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9009if eval "test \"\${$as_ac_Header+set}\" = set"; then
9010  echo "$as_me:$LINENO: checking for $ac_header" >&5
9011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9012if eval "test \"\${$as_ac_Header+set}\" = set"; then
9013  echo $ECHO_N "(cached) $ECHO_C" >&6
9014fi
9015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9017else
9018  # Is the header compilable?
9019echo "$as_me:$LINENO: checking $ac_header usability" >&5
9020echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9021cat >conftest.$ac_ext <<_ACEOF
9022/* confdefs.h.  */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h.  */
9027$ac_includes_default
9028#include <$ac_header>
9029_ACEOF
9030rm -f conftest.$ac_objext
9031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032  (eval $ac_compile) 2>conftest.er1
9033  ac_status=$?
9034  grep -v '^ *+' conftest.er1 >conftest.err
9035  rm -f conftest.er1
9036  cat conftest.err >&5
9037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038  (exit $ac_status); } &&
9039	 { ac_try='test -z "$ac_c_werror_flag"
9040			 || test ! -s conftest.err'
9041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042  (eval $ac_try) 2>&5
9043  ac_status=$?
9044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045  (exit $ac_status); }; } &&
9046	 { ac_try='test -s conftest.$ac_objext'
9047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048  (eval $ac_try) 2>&5
9049  ac_status=$?
9050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051  (exit $ac_status); }; }; then
9052  ac_header_compiler=yes
9053else
9054  echo "$as_me: failed program was:" >&5
9055sed 's/^/| /' conftest.$ac_ext >&5
9056
9057ac_header_compiler=no
9058fi
9059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9060echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9061echo "${ECHO_T}$ac_header_compiler" >&6
9062
9063# Is the header present?
9064echo "$as_me:$LINENO: checking $ac_header presence" >&5
9065echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9066cat >conftest.$ac_ext <<_ACEOF
9067/* confdefs.h.  */
9068_ACEOF
9069cat confdefs.h >>conftest.$ac_ext
9070cat >>conftest.$ac_ext <<_ACEOF
9071/* end confdefs.h.  */
9072#include <$ac_header>
9073_ACEOF
9074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9075  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9076  ac_status=$?
9077  grep -v '^ *+' conftest.er1 >conftest.err
9078  rm -f conftest.er1
9079  cat conftest.err >&5
9080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081  (exit $ac_status); } >/dev/null; then
9082  if test -s conftest.err; then
9083    ac_cpp_err=$ac_c_preproc_warn_flag
9084    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9085  else
9086    ac_cpp_err=
9087  fi
9088else
9089  ac_cpp_err=yes
9090fi
9091if test -z "$ac_cpp_err"; then
9092  ac_header_preproc=yes
9093else
9094  echo "$as_me: failed program was:" >&5
9095sed 's/^/| /' conftest.$ac_ext >&5
9096
9097  ac_header_preproc=no
9098fi
9099rm -f conftest.err conftest.$ac_ext
9100echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9101echo "${ECHO_T}$ac_header_preproc" >&6
9102
9103# So?  What about this header?
9104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9105  yes:no: )
9106    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9108    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9110    ac_header_preproc=yes
9111    ;;
9112  no:yes:* )
9113    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9115    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9116echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9117    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9119    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9120echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9121    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9123    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9125    (
9126      cat <<\_ASBOX
9127## ------------------------------------------ ##
9128## Report this to the AC_PACKAGE_NAME lists.  ##
9129## ------------------------------------------ ##
9130_ASBOX
9131    ) |
9132      sed "s/^/$as_me: WARNING:     /" >&2
9133    ;;
9134esac
9135echo "$as_me:$LINENO: checking for $ac_header" >&5
9136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9137if eval "test \"\${$as_ac_Header+set}\" = set"; then
9138  echo $ECHO_N "(cached) $ECHO_C" >&6
9139else
9140  eval "$as_ac_Header=\$ac_header_preproc"
9141fi
9142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9144
9145fi
9146if test `eval echo '${'$as_ac_Header'}'` = yes; then
9147  cat >>confdefs.h <<_ACEOF
9148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9149_ACEOF
9150
9151fi
9152
9153done
9154
9155
9156  if test $ac_cv_header_Xm_XpmP_h = yes; then
9157        echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9158echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9159    cat >conftest.$ac_ext <<_ACEOF
9160/* confdefs.h.  */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
9164/* end confdefs.h.  */
9165#include <Xm/XpmP.h>
9166int
9167main ()
9168{
9169XpmAttributes_21 attr;
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174rm -f conftest.$ac_objext
9175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9176  (eval $ac_compile) 2>conftest.er1
9177  ac_status=$?
9178  grep -v '^ *+' conftest.er1 >conftest.err
9179  rm -f conftest.er1
9180  cat conftest.err >&5
9181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182  (exit $ac_status); } &&
9183	 { ac_try='test -z "$ac_c_werror_flag"
9184			 || test ! -s conftest.err'
9185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186  (eval $ac_try) 2>&5
9187  ac_status=$?
9188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189  (exit $ac_status); }; } &&
9190	 { ac_try='test -s conftest.$ac_objext'
9191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192  (eval $ac_try) 2>&5
9193  ac_status=$?
9194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195  (exit $ac_status); }; }; then
9196  echo "$as_me:$LINENO: result: yes" >&5
9197echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9198#define XPMATTRIBUTES_TYPE XpmAttributes_21
9199_ACEOF
9200
9201else
9202  echo "$as_me: failed program was:" >&5
9203sed 's/^/| /' conftest.$ac_ext >&5
9204
9205echo "$as_me:$LINENO: result: no" >&5
9206echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
9207#define XPMATTRIBUTES_TYPE XpmAttributes
9208_ACEOF
9209
9210
9211fi
9212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9213  else
9214    cat >>confdefs.h <<\_ACEOF
9215#define XPMATTRIBUTES_TYPE XpmAttributes
9216_ACEOF
9217
9218  fi
9219  CPPFLAGS=$cppflags_save
9220fi
9221
9222if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
9223  echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9224echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
9225  enable_xim="no"
9226fi
9227if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
9228  echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9229echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
9230  enable_fontset="no"
9231fi
9232if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
9233  echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9234echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
9235  enable_fontset="no"
9236fi
9237
9238if test -z "$SKIP_PHOTON"; then
9239  GUITYPE=PHOTONGUI
9240fi
9241
9242
9243
9244
9245
9246
9247if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
9248  { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9249echo "$as_me: error: cannot use workshop without Motif" >&2;}
9250   { (exit 1); exit 1; }; }
9251fi
9252
9253if test "$enable_xim" = "yes"; then
9254  cat >>confdefs.h <<\_ACEOF
9255#define FEAT_XIM 1
9256_ACEOF
9257
9258fi
9259if test "$enable_fontset" = "yes"; then
9260  cat >>confdefs.h <<\_ACEOF
9261#define FEAT_XFONTSET 1
9262_ACEOF
9263
9264fi
9265
9266
9267
9268
9269if test "$enable_hangulinput" = "yes"; then
9270  if test "x$GUITYPE" = "xNONE"; then
9271    echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9272echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
9273    enable_hangulinput=no
9274  else
9275    cat >>confdefs.h <<\_ACEOF
9276#define FEAT_HANGULIN 1
9277_ACEOF
9278
9279    HANGULIN_SRC=hangulin.c
9280
9281    HANGULIN_OBJ=objects/hangulin.o
9282
9283  fi
9284fi
9285
9286
9287echo "$as_me:$LINENO: checking quality of toupper" >&5
9288echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
9289if test "$cross_compiling" = yes; then
9290  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9291echo "$as_me: error: failed to compile test program" >&2;}
9292   { (exit 1); exit 1; }; }
9293else
9294  cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h.  */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
9299/* end confdefs.h.  */
9300#include <ctype.h>
9301main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
9302_ACEOF
9303rm -f conftest$ac_exeext
9304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9305  (eval $ac_link) 2>&5
9306  ac_status=$?
9307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310  (eval $ac_try) 2>&5
9311  ac_status=$?
9312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313  (exit $ac_status); }; }; then
9314  cat >>confdefs.h <<\_ACEOF
9315#define BROKEN_TOUPPER 1
9316_ACEOF
9317 echo "$as_me:$LINENO: result: bad" >&5
9318echo "${ECHO_T}bad" >&6
9319else
9320  echo "$as_me: program exited with status $ac_status" >&5
9321echo "$as_me: failed program was:" >&5
9322sed 's/^/| /' conftest.$ac_ext >&5
9323
9324( exit $ac_status )
9325echo "$as_me:$LINENO: result: good" >&5
9326echo "${ECHO_T}good" >&6
9327fi
9328rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9329fi
9330
9331echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9332echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9333cat >conftest.$ac_ext <<_ACEOF
9334/* confdefs.h.  */
9335_ACEOF
9336cat confdefs.h >>conftest.$ac_ext
9337cat >>conftest.$ac_ext <<_ACEOF
9338/* end confdefs.h.  */
9339
9340int
9341main ()
9342{
9343printf("(" __DATE__ " " __TIME__ ")");
9344  ;
9345  return 0;
9346}
9347_ACEOF
9348rm -f conftest.$ac_objext
9349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9350  (eval $ac_compile) 2>conftest.er1
9351  ac_status=$?
9352  grep -v '^ *+' conftest.er1 >conftest.err
9353  rm -f conftest.er1
9354  cat conftest.err >&5
9355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356  (exit $ac_status); } &&
9357	 { ac_try='test -z "$ac_c_werror_flag"
9358			 || test ! -s conftest.err'
9359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360  (eval $ac_try) 2>&5
9361  ac_status=$?
9362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363  (exit $ac_status); }; } &&
9364	 { ac_try='test -s conftest.$ac_objext'
9365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366  (eval $ac_try) 2>&5
9367  ac_status=$?
9368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369  (exit $ac_status); }; }; then
9370  echo "$as_me:$LINENO: result: yes" >&5
9371echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9372#define HAVE_DATE_TIME 1
9373_ACEOF
9374
9375else
9376  echo "$as_me: failed program was:" >&5
9377sed 's/^/| /' conftest.$ac_ext >&5
9378
9379echo "$as_me:$LINENO: result: no" >&5
9380echo "${ECHO_T}no" >&6
9381fi
9382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9383
9384if test "${ac_cv_header_elf_h+set}" = set; then
9385  echo "$as_me:$LINENO: checking for elf.h" >&5
9386echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9387if test "${ac_cv_header_elf_h+set}" = set; then
9388  echo $ECHO_N "(cached) $ECHO_C" >&6
9389fi
9390echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9391echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9392else
9393  # Is the header compilable?
9394echo "$as_me:$LINENO: checking elf.h usability" >&5
9395echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9396cat >conftest.$ac_ext <<_ACEOF
9397/* confdefs.h.  */
9398_ACEOF
9399cat confdefs.h >>conftest.$ac_ext
9400cat >>conftest.$ac_ext <<_ACEOF
9401/* end confdefs.h.  */
9402$ac_includes_default
9403#include <elf.h>
9404_ACEOF
9405rm -f conftest.$ac_objext
9406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407  (eval $ac_compile) 2>conftest.er1
9408  ac_status=$?
9409  grep -v '^ *+' conftest.er1 >conftest.err
9410  rm -f conftest.er1
9411  cat conftest.err >&5
9412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413  (exit $ac_status); } &&
9414	 { ac_try='test -z "$ac_c_werror_flag"
9415			 || test ! -s conftest.err'
9416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417  (eval $ac_try) 2>&5
9418  ac_status=$?
9419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420  (exit $ac_status); }; } &&
9421	 { ac_try='test -s conftest.$ac_objext'
9422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423  (eval $ac_try) 2>&5
9424  ac_status=$?
9425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426  (exit $ac_status); }; }; then
9427  ac_header_compiler=yes
9428else
9429  echo "$as_me: failed program was:" >&5
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
9432ac_header_compiler=no
9433fi
9434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9435echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9436echo "${ECHO_T}$ac_header_compiler" >&6
9437
9438# Is the header present?
9439echo "$as_me:$LINENO: checking elf.h presence" >&5
9440echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9441cat >conftest.$ac_ext <<_ACEOF
9442/* confdefs.h.  */
9443_ACEOF
9444cat confdefs.h >>conftest.$ac_ext
9445cat >>conftest.$ac_ext <<_ACEOF
9446/* end confdefs.h.  */
9447#include <elf.h>
9448_ACEOF
9449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9450  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9451  ac_status=$?
9452  grep -v '^ *+' conftest.er1 >conftest.err
9453  rm -f conftest.er1
9454  cat conftest.err >&5
9455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456  (exit $ac_status); } >/dev/null; then
9457  if test -s conftest.err; then
9458    ac_cpp_err=$ac_c_preproc_warn_flag
9459    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9460  else
9461    ac_cpp_err=
9462  fi
9463else
9464  ac_cpp_err=yes
9465fi
9466if test -z "$ac_cpp_err"; then
9467  ac_header_preproc=yes
9468else
9469  echo "$as_me: failed program was:" >&5
9470sed 's/^/| /' conftest.$ac_ext >&5
9471
9472  ac_header_preproc=no
9473fi
9474rm -f conftest.err conftest.$ac_ext
9475echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9476echo "${ECHO_T}$ac_header_preproc" >&6
9477
9478# So?  What about this header?
9479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9480  yes:no: )
9481    { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9482echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9483    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9484echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9485    ac_header_preproc=yes
9486    ;;
9487  no:yes:* )
9488    { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9489echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9490    { echo "$as_me:$LINENO: WARNING: elf.h:     check for missing prerequisite headers?" >&5
9491echo "$as_me: WARNING: elf.h:     check for missing prerequisite headers?" >&2;}
9492    { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9493echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9494    { echo "$as_me:$LINENO: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&5
9495echo "$as_me: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9496    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9497echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9498    { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9499echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9500    (
9501      cat <<\_ASBOX
9502## ------------------------------------------ ##
9503## Report this to the AC_PACKAGE_NAME lists.  ##
9504## ------------------------------------------ ##
9505_ASBOX
9506    ) |
9507      sed "s/^/$as_me: WARNING:     /" >&2
9508    ;;
9509esac
9510echo "$as_me:$LINENO: checking for elf.h" >&5
9511echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9512if test "${ac_cv_header_elf_h+set}" = set; then
9513  echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515  ac_cv_header_elf_h=$ac_header_preproc
9516fi
9517echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9518echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9519
9520fi
9521if test $ac_cv_header_elf_h = yes; then
9522  HAS_ELF=1
9523fi
9524
9525
9526if test "$HAS_ELF" = 1; then
9527
9528echo "$as_me:$LINENO: checking for main in -lelf" >&5
9529echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9530if test "${ac_cv_lib_elf_main+set}" = set; then
9531  echo $ECHO_N "(cached) $ECHO_C" >&6
9532else
9533  ac_check_lib_save_LIBS=$LIBS
9534LIBS="-lelf  $LIBS"
9535cat >conftest.$ac_ext <<_ACEOF
9536/* confdefs.h.  */
9537_ACEOF
9538cat confdefs.h >>conftest.$ac_ext
9539cat >>conftest.$ac_ext <<_ACEOF
9540/* end confdefs.h.  */
9541
9542
9543int
9544main ()
9545{
9546main ();
9547  ;
9548  return 0;
9549}
9550_ACEOF
9551rm -f conftest.$ac_objext conftest$ac_exeext
9552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9553  (eval $ac_link) 2>conftest.er1
9554  ac_status=$?
9555  grep -v '^ *+' conftest.er1 >conftest.err
9556  rm -f conftest.er1
9557  cat conftest.err >&5
9558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559  (exit $ac_status); } &&
9560	 { ac_try='test -z "$ac_c_werror_flag"
9561			 || test ! -s conftest.err'
9562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563  (eval $ac_try) 2>&5
9564  ac_status=$?
9565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566  (exit $ac_status); }; } &&
9567	 { ac_try='test -s conftest$ac_exeext'
9568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569  (eval $ac_try) 2>&5
9570  ac_status=$?
9571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572  (exit $ac_status); }; }; then
9573  ac_cv_lib_elf_main=yes
9574else
9575  echo "$as_me: failed program was:" >&5
9576sed 's/^/| /' conftest.$ac_ext >&5
9577
9578ac_cv_lib_elf_main=no
9579fi
9580rm -f conftest.err conftest.$ac_objext \
9581      conftest$ac_exeext conftest.$ac_ext
9582LIBS=$ac_check_lib_save_LIBS
9583fi
9584echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9585echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9586if test $ac_cv_lib_elf_main = yes; then
9587  cat >>confdefs.h <<_ACEOF
9588#define HAVE_LIBELF 1
9589_ACEOF
9590
9591  LIBS="-lelf $LIBS"
9592
9593fi
9594
9595fi
9596
9597
9598
9599
9600
9601
9602ac_header_dirent=no
9603for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9604  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9605echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9606echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9607if eval "test \"\${$as_ac_Header+set}\" = set"; then
9608  echo $ECHO_N "(cached) $ECHO_C" >&6
9609else
9610  cat >conftest.$ac_ext <<_ACEOF
9611/* confdefs.h.  */
9612_ACEOF
9613cat confdefs.h >>conftest.$ac_ext
9614cat >>conftest.$ac_ext <<_ACEOF
9615/* end confdefs.h.  */
9616#include <sys/types.h>
9617#include <$ac_hdr>
9618
9619int
9620main ()
9621{
9622if ((DIR *) 0)
9623return 0;
9624  ;
9625  return 0;
9626}
9627_ACEOF
9628rm -f conftest.$ac_objext
9629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9630  (eval $ac_compile) 2>conftest.er1
9631  ac_status=$?
9632  grep -v '^ *+' conftest.er1 >conftest.err
9633  rm -f conftest.er1
9634  cat conftest.err >&5
9635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636  (exit $ac_status); } &&
9637	 { ac_try='test -z "$ac_c_werror_flag"
9638			 || test ! -s conftest.err'
9639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640  (eval $ac_try) 2>&5
9641  ac_status=$?
9642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643  (exit $ac_status); }; } &&
9644	 { ac_try='test -s conftest.$ac_objext'
9645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646  (eval $ac_try) 2>&5
9647  ac_status=$?
9648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649  (exit $ac_status); }; }; then
9650  eval "$as_ac_Header=yes"
9651else
9652  echo "$as_me: failed program was:" >&5
9653sed 's/^/| /' conftest.$ac_ext >&5
9654
9655eval "$as_ac_Header=no"
9656fi
9657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9658fi
9659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9661if test `eval echo '${'$as_ac_Header'}'` = yes; then
9662  cat >>confdefs.h <<_ACEOF
9663#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9664_ACEOF
9665
9666ac_header_dirent=$ac_hdr; break
9667fi
9668
9669done
9670# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9671if test $ac_header_dirent = dirent.h; then
9672  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9673echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9674if test "${ac_cv_search_opendir+set}" = set; then
9675  echo $ECHO_N "(cached) $ECHO_C" >&6
9676else
9677  ac_func_search_save_LIBS=$LIBS
9678ac_cv_search_opendir=no
9679cat >conftest.$ac_ext <<_ACEOF
9680/* confdefs.h.  */
9681_ACEOF
9682cat confdefs.h >>conftest.$ac_ext
9683cat >>conftest.$ac_ext <<_ACEOF
9684/* end confdefs.h.  */
9685
9686/* Override any gcc2 internal prototype to avoid an error.  */
9687#ifdef __cplusplus
9688extern "C"
9689#endif
9690/* We use char because int might match the return type of a gcc2
9691   builtin and then its argument prototype would still apply.  */
9692char opendir ();
9693int
9694main ()
9695{
9696opendir ();
9697  ;
9698  return 0;
9699}
9700_ACEOF
9701rm -f conftest.$ac_objext conftest$ac_exeext
9702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703  (eval $ac_link) 2>conftest.er1
9704  ac_status=$?
9705  grep -v '^ *+' conftest.er1 >conftest.err
9706  rm -f conftest.er1
9707  cat conftest.err >&5
9708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709  (exit $ac_status); } &&
9710	 { ac_try='test -z "$ac_c_werror_flag"
9711			 || test ! -s conftest.err'
9712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713  (eval $ac_try) 2>&5
9714  ac_status=$?
9715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716  (exit $ac_status); }; } &&
9717	 { ac_try='test -s conftest$ac_exeext'
9718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719  (eval $ac_try) 2>&5
9720  ac_status=$?
9721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722  (exit $ac_status); }; }; then
9723  ac_cv_search_opendir="none required"
9724else
9725  echo "$as_me: failed program was:" >&5
9726sed 's/^/| /' conftest.$ac_ext >&5
9727
9728fi
9729rm -f conftest.err conftest.$ac_objext \
9730      conftest$ac_exeext conftest.$ac_ext
9731if test "$ac_cv_search_opendir" = no; then
9732  for ac_lib in dir; do
9733    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9734    cat >conftest.$ac_ext <<_ACEOF
9735/* confdefs.h.  */
9736_ACEOF
9737cat confdefs.h >>conftest.$ac_ext
9738cat >>conftest.$ac_ext <<_ACEOF
9739/* end confdefs.h.  */
9740
9741/* Override any gcc2 internal prototype to avoid an error.  */
9742#ifdef __cplusplus
9743extern "C"
9744#endif
9745/* We use char because int might match the return type of a gcc2
9746   builtin and then its argument prototype would still apply.  */
9747char opendir ();
9748int
9749main ()
9750{
9751opendir ();
9752  ;
9753  return 0;
9754}
9755_ACEOF
9756rm -f conftest.$ac_objext conftest$ac_exeext
9757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758  (eval $ac_link) 2>conftest.er1
9759  ac_status=$?
9760  grep -v '^ *+' conftest.er1 >conftest.err
9761  rm -f conftest.er1
9762  cat conftest.err >&5
9763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764  (exit $ac_status); } &&
9765	 { ac_try='test -z "$ac_c_werror_flag"
9766			 || test ! -s conftest.err'
9767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768  (eval $ac_try) 2>&5
9769  ac_status=$?
9770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771  (exit $ac_status); }; } &&
9772	 { ac_try='test -s conftest$ac_exeext'
9773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774  (eval $ac_try) 2>&5
9775  ac_status=$?
9776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777  (exit $ac_status); }; }; then
9778  ac_cv_search_opendir="-l$ac_lib"
9779break
9780else
9781  echo "$as_me: failed program was:" >&5
9782sed 's/^/| /' conftest.$ac_ext >&5
9783
9784fi
9785rm -f conftest.err conftest.$ac_objext \
9786      conftest$ac_exeext conftest.$ac_ext
9787  done
9788fi
9789LIBS=$ac_func_search_save_LIBS
9790fi
9791echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9792echo "${ECHO_T}$ac_cv_search_opendir" >&6
9793if test "$ac_cv_search_opendir" != no; then
9794  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9795
9796fi
9797
9798else
9799  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9800echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9801if test "${ac_cv_search_opendir+set}" = set; then
9802  echo $ECHO_N "(cached) $ECHO_C" >&6
9803else
9804  ac_func_search_save_LIBS=$LIBS
9805ac_cv_search_opendir=no
9806cat >conftest.$ac_ext <<_ACEOF
9807/* confdefs.h.  */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h.  */
9812
9813/* Override any gcc2 internal prototype to avoid an error.  */
9814#ifdef __cplusplus
9815extern "C"
9816#endif
9817/* We use char because int might match the return type of a gcc2
9818   builtin and then its argument prototype would still apply.  */
9819char opendir ();
9820int
9821main ()
9822{
9823opendir ();
9824  ;
9825  return 0;
9826}
9827_ACEOF
9828rm -f conftest.$ac_objext conftest$ac_exeext
9829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830  (eval $ac_link) 2>conftest.er1
9831  ac_status=$?
9832  grep -v '^ *+' conftest.er1 >conftest.err
9833  rm -f conftest.er1
9834  cat conftest.err >&5
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); } &&
9837	 { ac_try='test -z "$ac_c_werror_flag"
9838			 || test ! -s conftest.err'
9839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840  (eval $ac_try) 2>&5
9841  ac_status=$?
9842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843  (exit $ac_status); }; } &&
9844	 { ac_try='test -s conftest$ac_exeext'
9845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846  (eval $ac_try) 2>&5
9847  ac_status=$?
9848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849  (exit $ac_status); }; }; then
9850  ac_cv_search_opendir="none required"
9851else
9852  echo "$as_me: failed program was:" >&5
9853sed 's/^/| /' conftest.$ac_ext >&5
9854
9855fi
9856rm -f conftest.err conftest.$ac_objext \
9857      conftest$ac_exeext conftest.$ac_ext
9858if test "$ac_cv_search_opendir" = no; then
9859  for ac_lib in x; do
9860    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9861    cat >conftest.$ac_ext <<_ACEOF
9862/* confdefs.h.  */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
9866/* end confdefs.h.  */
9867
9868/* Override any gcc2 internal prototype to avoid an error.  */
9869#ifdef __cplusplus
9870extern "C"
9871#endif
9872/* We use char because int might match the return type of a gcc2
9873   builtin and then its argument prototype would still apply.  */
9874char opendir ();
9875int
9876main ()
9877{
9878opendir ();
9879  ;
9880  return 0;
9881}
9882_ACEOF
9883rm -f conftest.$ac_objext conftest$ac_exeext
9884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9885  (eval $ac_link) 2>conftest.er1
9886  ac_status=$?
9887  grep -v '^ *+' conftest.er1 >conftest.err
9888  rm -f conftest.er1
9889  cat conftest.err >&5
9890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891  (exit $ac_status); } &&
9892	 { ac_try='test -z "$ac_c_werror_flag"
9893			 || test ! -s conftest.err'
9894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895  (eval $ac_try) 2>&5
9896  ac_status=$?
9897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898  (exit $ac_status); }; } &&
9899	 { ac_try='test -s conftest$ac_exeext'
9900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901  (eval $ac_try) 2>&5
9902  ac_status=$?
9903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904  (exit $ac_status); }; }; then
9905  ac_cv_search_opendir="-l$ac_lib"
9906break
9907else
9908  echo "$as_me: failed program was:" >&5
9909sed 's/^/| /' conftest.$ac_ext >&5
9910
9911fi
9912rm -f conftest.err conftest.$ac_objext \
9913      conftest$ac_exeext conftest.$ac_ext
9914  done
9915fi
9916LIBS=$ac_func_search_save_LIBS
9917fi
9918echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9919echo "${ECHO_T}$ac_cv_search_opendir" >&6
9920if test "$ac_cv_search_opendir" != no; then
9921  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9922
9923fi
9924
9925fi
9926
9927
9928echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9929echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9930if test "${ac_cv_header_stdc+set}" = set; then
9931  echo $ECHO_N "(cached) $ECHO_C" >&6
9932else
9933  cat >conftest.$ac_ext <<_ACEOF
9934/* confdefs.h.  */
9935_ACEOF
9936cat confdefs.h >>conftest.$ac_ext
9937cat >>conftest.$ac_ext <<_ACEOF
9938/* end confdefs.h.  */
9939#include <stdlib.h>
9940#include <stdarg.h>
9941#include <string.h>
9942#include <float.h>
9943
9944int
9945main ()
9946{
9947
9948  ;
9949  return 0;
9950}
9951_ACEOF
9952rm -f conftest.$ac_objext
9953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9954  (eval $ac_compile) 2>conftest.er1
9955  ac_status=$?
9956  grep -v '^ *+' conftest.er1 >conftest.err
9957  rm -f conftest.er1
9958  cat conftest.err >&5
9959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960  (exit $ac_status); } &&
9961	 { ac_try='test -z "$ac_c_werror_flag"
9962			 || test ! -s conftest.err'
9963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964  (eval $ac_try) 2>&5
9965  ac_status=$?
9966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967  (exit $ac_status); }; } &&
9968	 { ac_try='test -s conftest.$ac_objext'
9969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970  (eval $ac_try) 2>&5
9971  ac_status=$?
9972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); }; }; then
9974  ac_cv_header_stdc=yes
9975else
9976  echo "$as_me: failed program was:" >&5
9977sed 's/^/| /' conftest.$ac_ext >&5
9978
9979ac_cv_header_stdc=no
9980fi
9981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9982
9983if test $ac_cv_header_stdc = yes; then
9984  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9985  cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h.  */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h.  */
9991#include <string.h>
9992
9993_ACEOF
9994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9995  $EGREP "memchr" >/dev/null 2>&1; then
9996  :
9997else
9998  ac_cv_header_stdc=no
9999fi
10000rm -f conftest*
10001
10002fi
10003
10004if test $ac_cv_header_stdc = yes; then
10005  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10006  cat >conftest.$ac_ext <<_ACEOF
10007/* confdefs.h.  */
10008_ACEOF
10009cat confdefs.h >>conftest.$ac_ext
10010cat >>conftest.$ac_ext <<_ACEOF
10011/* end confdefs.h.  */
10012#include <stdlib.h>
10013
10014_ACEOF
10015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10016  $EGREP "free" >/dev/null 2>&1; then
10017  :
10018else
10019  ac_cv_header_stdc=no
10020fi
10021rm -f conftest*
10022
10023fi
10024
10025if test $ac_cv_header_stdc = yes; then
10026  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10027  if test "$cross_compiling" = yes; then
10028  :
10029else
10030  cat >conftest.$ac_ext <<_ACEOF
10031/* confdefs.h.  */
10032_ACEOF
10033cat confdefs.h >>conftest.$ac_ext
10034cat >>conftest.$ac_ext <<_ACEOF
10035/* end confdefs.h.  */
10036#include <ctype.h>
10037#if ((' ' & 0x0FF) == 0x020)
10038# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10039# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10040#else
10041# define ISLOWER(c) \
10042		   (('a' <= (c) && (c) <= 'i') \
10043		     || ('j' <= (c) && (c) <= 'r') \
10044		     || ('s' <= (c) && (c) <= 'z'))
10045# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10046#endif
10047
10048#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10049int
10050main ()
10051{
10052  int i;
10053  for (i = 0; i < 256; i++)
10054    if (XOR (islower (i), ISLOWER (i))
10055	|| toupper (i) != TOUPPER (i))
10056      exit(2);
10057  exit (0);
10058}
10059_ACEOF
10060rm -f conftest$ac_exeext
10061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062  (eval $ac_link) 2>&5
10063  ac_status=$?
10064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067  (eval $ac_try) 2>&5
10068  ac_status=$?
10069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070  (exit $ac_status); }; }; then
10071  :
10072else
10073  echo "$as_me: program exited with status $ac_status" >&5
10074echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077( exit $ac_status )
10078ac_cv_header_stdc=no
10079fi
10080rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10081fi
10082fi
10083fi
10084echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10085echo "${ECHO_T}$ac_cv_header_stdc" >&6
10086if test $ac_cv_header_stdc = yes; then
10087
10088cat >>confdefs.h <<\_ACEOF
10089#define STDC_HEADERS 1
10090_ACEOF
10091
10092fi
10093
10094echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10095echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10096if test "${ac_cv_header_sys_wait_h+set}" = set; then
10097  echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099  cat >conftest.$ac_ext <<_ACEOF
10100/* confdefs.h.  */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
10104/* end confdefs.h.  */
10105#include <sys/types.h>
10106#include <sys/wait.h>
10107#ifndef WEXITSTATUS
10108# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10109#endif
10110#ifndef WIFEXITED
10111# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10112#endif
10113
10114int
10115main ()
10116{
10117  int s;
10118  wait (&s);
10119  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10120  ;
10121  return 0;
10122}
10123_ACEOF
10124rm -f conftest.$ac_objext
10125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10126  (eval $ac_compile) 2>conftest.er1
10127  ac_status=$?
10128  grep -v '^ *+' conftest.er1 >conftest.err
10129  rm -f conftest.er1
10130  cat conftest.err >&5
10131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132  (exit $ac_status); } &&
10133	 { ac_try='test -z "$ac_c_werror_flag"
10134			 || test ! -s conftest.err'
10135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136  (eval $ac_try) 2>&5
10137  ac_status=$?
10138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139  (exit $ac_status); }; } &&
10140	 { ac_try='test -s conftest.$ac_objext'
10141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142  (eval $ac_try) 2>&5
10143  ac_status=$?
10144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145  (exit $ac_status); }; }; then
10146  ac_cv_header_sys_wait_h=yes
10147else
10148  echo "$as_me: failed program was:" >&5
10149sed 's/^/| /' conftest.$ac_ext >&5
10150
10151ac_cv_header_sys_wait_h=no
10152fi
10153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10154fi
10155echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10156echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10157if test $ac_cv_header_sys_wait_h = yes; then
10158
10159cat >>confdefs.h <<\_ACEOF
10160#define HAVE_SYS_WAIT_H 1
10161_ACEOF
10162
10163fi
10164
10165
10166if test $ac_cv_header_sys_wait_h = no; then
10167  echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10168echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10169  cat >conftest.$ac_ext <<_ACEOF
10170/* confdefs.h.  */
10171_ACEOF
10172cat confdefs.h >>conftest.$ac_ext
10173cat >>conftest.$ac_ext <<_ACEOF
10174/* end confdefs.h.  */
10175#include <sys/wait.h>
10176int
10177main ()
10178{
10179union wait xx, yy; xx = yy
10180  ;
10181  return 0;
10182}
10183_ACEOF
10184rm -f conftest.$ac_objext
10185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186  (eval $ac_compile) 2>conftest.er1
10187  ac_status=$?
10188  grep -v '^ *+' conftest.er1 >conftest.err
10189  rm -f conftest.er1
10190  cat conftest.err >&5
10191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192  (exit $ac_status); } &&
10193	 { ac_try='test -z "$ac_c_werror_flag"
10194			 || test ! -s conftest.err'
10195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196  (eval $ac_try) 2>&5
10197  ac_status=$?
10198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199  (exit $ac_status); }; } &&
10200	 { ac_try='test -s conftest.$ac_objext'
10201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202  (eval $ac_try) 2>&5
10203  ac_status=$?
10204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205  (exit $ac_status); }; }; then
10206  echo "$as_me:$LINENO: result: yes" >&5
10207echo "${ECHO_T}yes" >&6
10208			cat >>confdefs.h <<\_ACEOF
10209#define HAVE_SYS_WAIT_H 1
10210_ACEOF
10211
10212			cat >>confdefs.h <<\_ACEOF
10213#define HAVE_UNION_WAIT 1
10214_ACEOF
10215
10216else
10217  echo "$as_me: failed program was:" >&5
10218sed 's/^/| /' conftest.$ac_ext >&5
10219
10220echo "$as_me:$LINENO: result: no" >&5
10221echo "${ECHO_T}no" >&6
10222fi
10223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10224fi
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10267	termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10268	iconv.h langinfo.h unistd.h stropts.h errno.h \
10269	sys/resource.h sys/systeminfo.h locale.h \
10270	sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10271	poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10272	libgen.h util/debug.h util/msg18n.h frame.h \
10273	sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10274do
10275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10276if eval "test \"\${$as_ac_Header+set}\" = set"; then
10277  echo "$as_me:$LINENO: checking for $ac_header" >&5
10278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10279if eval "test \"\${$as_ac_Header+set}\" = set"; then
10280  echo $ECHO_N "(cached) $ECHO_C" >&6
10281fi
10282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10283echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10284else
10285  # Is the header compilable?
10286echo "$as_me:$LINENO: checking $ac_header usability" >&5
10287echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10288cat >conftest.$ac_ext <<_ACEOF
10289/* confdefs.h.  */
10290_ACEOF
10291cat confdefs.h >>conftest.$ac_ext
10292cat >>conftest.$ac_ext <<_ACEOF
10293/* end confdefs.h.  */
10294$ac_includes_default
10295#include <$ac_header>
10296_ACEOF
10297rm -f conftest.$ac_objext
10298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10299  (eval $ac_compile) 2>conftest.er1
10300  ac_status=$?
10301  grep -v '^ *+' conftest.er1 >conftest.err
10302  rm -f conftest.er1
10303  cat conftest.err >&5
10304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305  (exit $ac_status); } &&
10306	 { ac_try='test -z "$ac_c_werror_flag"
10307			 || test ! -s conftest.err'
10308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309  (eval $ac_try) 2>&5
10310  ac_status=$?
10311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312  (exit $ac_status); }; } &&
10313	 { ac_try='test -s conftest.$ac_objext'
10314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315  (eval $ac_try) 2>&5
10316  ac_status=$?
10317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318  (exit $ac_status); }; }; then
10319  ac_header_compiler=yes
10320else
10321  echo "$as_me: failed program was:" >&5
10322sed 's/^/| /' conftest.$ac_ext >&5
10323
10324ac_header_compiler=no
10325fi
10326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10328echo "${ECHO_T}$ac_header_compiler" >&6
10329
10330# Is the header present?
10331echo "$as_me:$LINENO: checking $ac_header presence" >&5
10332echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10333cat >conftest.$ac_ext <<_ACEOF
10334/* confdefs.h.  */
10335_ACEOF
10336cat confdefs.h >>conftest.$ac_ext
10337cat >>conftest.$ac_ext <<_ACEOF
10338/* end confdefs.h.  */
10339#include <$ac_header>
10340_ACEOF
10341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10342  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10343  ac_status=$?
10344  grep -v '^ *+' conftest.er1 >conftest.err
10345  rm -f conftest.er1
10346  cat conftest.err >&5
10347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348  (exit $ac_status); } >/dev/null; then
10349  if test -s conftest.err; then
10350    ac_cpp_err=$ac_c_preproc_warn_flag
10351    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10352  else
10353    ac_cpp_err=
10354  fi
10355else
10356  ac_cpp_err=yes
10357fi
10358if test -z "$ac_cpp_err"; then
10359  ac_header_preproc=yes
10360else
10361  echo "$as_me: failed program was:" >&5
10362sed 's/^/| /' conftest.$ac_ext >&5
10363
10364  ac_header_preproc=no
10365fi
10366rm -f conftest.err conftest.$ac_ext
10367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10368echo "${ECHO_T}$ac_header_preproc" >&6
10369
10370# So?  What about this header?
10371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10372  yes:no: )
10373    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10375    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10377    ac_header_preproc=yes
10378    ;;
10379  no:yes:* )
10380    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10382    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10383echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10384    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10386    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10387echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10388    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10390    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10392    (
10393      cat <<\_ASBOX
10394## ------------------------------------------ ##
10395## Report this to the AC_PACKAGE_NAME lists.  ##
10396## ------------------------------------------ ##
10397_ASBOX
10398    ) |
10399      sed "s/^/$as_me: WARNING:     /" >&2
10400    ;;
10401esac
10402echo "$as_me:$LINENO: checking for $ac_header" >&5
10403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10404if eval "test \"\${$as_ac_Header+set}\" = set"; then
10405  echo $ECHO_N "(cached) $ECHO_C" >&6
10406else
10407  eval "$as_ac_Header=\$ac_header_preproc"
10408fi
10409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10411
10412fi
10413if test `eval echo '${'$as_ac_Header'}'` = yes; then
10414  cat >>confdefs.h <<_ACEOF
10415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10416_ACEOF
10417
10418fi
10419
10420done
10421
10422
10423echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10424echo $ECHO_N "checking for pthread_np.h... $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
10432#include <pthread.h>
10433#include <pthread_np.h>
10434int
10435main ()
10436{
10437int i; i = 0;
10438  ;
10439  return 0;
10440}
10441_ACEOF
10442rm -f conftest.$ac_objext
10443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444  (eval $ac_compile) 2>conftest.er1
10445  ac_status=$?
10446  grep -v '^ *+' conftest.er1 >conftest.err
10447  rm -f conftest.er1
10448  cat conftest.err >&5
10449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450  (exit $ac_status); } &&
10451	 { ac_try='test -z "$ac_c_werror_flag"
10452			 || test ! -s conftest.err'
10453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454  (eval $ac_try) 2>&5
10455  ac_status=$?
10456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457  (exit $ac_status); }; } &&
10458	 { ac_try='test -s conftest.$ac_objext'
10459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460  (eval $ac_try) 2>&5
10461  ac_status=$?
10462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463  (exit $ac_status); }; }; then
10464  echo "$as_me:$LINENO: result: yes" >&5
10465echo "${ECHO_T}yes" >&6
10466		      cat >>confdefs.h <<\_ACEOF
10467#define HAVE_PTHREAD_NP_H 1
10468_ACEOF
10469
10470else
10471  echo "$as_me: failed program was:" >&5
10472sed 's/^/| /' conftest.$ac_ext >&5
10473
10474echo "$as_me:$LINENO: result: no" >&5
10475echo "${ECHO_T}no" >&6
10476fi
10477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10478
10479
10480for ac_header in strings.h
10481do
10482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10483if eval "test \"\${$as_ac_Header+set}\" = set"; then
10484  echo "$as_me:$LINENO: checking for $ac_header" >&5
10485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10486if eval "test \"\${$as_ac_Header+set}\" = set"; then
10487  echo $ECHO_N "(cached) $ECHO_C" >&6
10488fi
10489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10491else
10492  # Is the header compilable?
10493echo "$as_me:$LINENO: checking $ac_header usability" >&5
10494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10495cat >conftest.$ac_ext <<_ACEOF
10496/* confdefs.h.  */
10497_ACEOF
10498cat confdefs.h >>conftest.$ac_ext
10499cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h.  */
10501$ac_includes_default
10502#include <$ac_header>
10503_ACEOF
10504rm -f conftest.$ac_objext
10505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506  (eval $ac_compile) 2>conftest.er1
10507  ac_status=$?
10508  grep -v '^ *+' conftest.er1 >conftest.err
10509  rm -f conftest.er1
10510  cat conftest.err >&5
10511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512  (exit $ac_status); } &&
10513	 { ac_try='test -z "$ac_c_werror_flag"
10514			 || test ! -s conftest.err'
10515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516  (eval $ac_try) 2>&5
10517  ac_status=$?
10518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519  (exit $ac_status); }; } &&
10520	 { ac_try='test -s conftest.$ac_objext'
10521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522  (eval $ac_try) 2>&5
10523  ac_status=$?
10524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525  (exit $ac_status); }; }; then
10526  ac_header_compiler=yes
10527else
10528  echo "$as_me: failed program was:" >&5
10529sed 's/^/| /' conftest.$ac_ext >&5
10530
10531ac_header_compiler=no
10532fi
10533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10534echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10535echo "${ECHO_T}$ac_header_compiler" >&6
10536
10537# Is the header present?
10538echo "$as_me:$LINENO: checking $ac_header presence" >&5
10539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10540cat >conftest.$ac_ext <<_ACEOF
10541/* confdefs.h.  */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h.  */
10546#include <$ac_header>
10547_ACEOF
10548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10549  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10550  ac_status=$?
10551  grep -v '^ *+' conftest.er1 >conftest.err
10552  rm -f conftest.er1
10553  cat conftest.err >&5
10554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555  (exit $ac_status); } >/dev/null; then
10556  if test -s conftest.err; then
10557    ac_cpp_err=$ac_c_preproc_warn_flag
10558    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10559  else
10560    ac_cpp_err=
10561  fi
10562else
10563  ac_cpp_err=yes
10564fi
10565if test -z "$ac_cpp_err"; then
10566  ac_header_preproc=yes
10567else
10568  echo "$as_me: failed program was:" >&5
10569sed 's/^/| /' conftest.$ac_ext >&5
10570
10571  ac_header_preproc=no
10572fi
10573rm -f conftest.err conftest.$ac_ext
10574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10575echo "${ECHO_T}$ac_header_preproc" >&6
10576
10577# So?  What about this header?
10578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10579  yes:no: )
10580    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10581echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10582    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10583echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10584    ac_header_preproc=yes
10585    ;;
10586  no:yes:* )
10587    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10588echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10589    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10590echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10591    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10592echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10593    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10594echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10595    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10596echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10597    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10598echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10599    (
10600      cat <<\_ASBOX
10601## ------------------------------------------ ##
10602## Report this to the AC_PACKAGE_NAME lists.  ##
10603## ------------------------------------------ ##
10604_ASBOX
10605    ) |
10606      sed "s/^/$as_me: WARNING:     /" >&2
10607    ;;
10608esac
10609echo "$as_me:$LINENO: checking for $ac_header" >&5
10610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10611if eval "test \"\${$as_ac_Header+set}\" = set"; then
10612  echo $ECHO_N "(cached) $ECHO_C" >&6
10613else
10614  eval "$as_ac_Header=\$ac_header_preproc"
10615fi
10616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10618
10619fi
10620if test `eval echo '${'$as_ac_Header'}'` = yes; then
10621  cat >>confdefs.h <<_ACEOF
10622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10623_ACEOF
10624
10625fi
10626
10627done
10628
10629if test "x$MACOSX" = "xyes"; then
10630    cat >>confdefs.h <<\_ACEOF
10631#define NO_STRINGS_WITH_STRING_H 1
10632_ACEOF
10633
10634else
10635
10636echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10637echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
10638cppflags_save=$CPPFLAGS
10639CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10640cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h.  */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h.  */
10646
10647#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10648# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
10649			/* but don't do it on AIX 5.1 (Uribarri) */
10650#endif
10651#ifdef HAVE_XM_XM_H
10652# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
10653#endif
10654#ifdef HAVE_STRING_H
10655# include <string.h>
10656#endif
10657#if defined(HAVE_STRINGS_H)
10658# include <strings.h>
10659#endif
10660
10661int
10662main ()
10663{
10664int i; i = 0;
10665  ;
10666  return 0;
10667}
10668_ACEOF
10669rm -f conftest.$ac_objext
10670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10671  (eval $ac_compile) 2>conftest.er1
10672  ac_status=$?
10673  grep -v '^ *+' conftest.er1 >conftest.err
10674  rm -f conftest.er1
10675  cat conftest.err >&5
10676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677  (exit $ac_status); } &&
10678	 { ac_try='test -z "$ac_c_werror_flag"
10679			 || test ! -s conftest.err'
10680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681  (eval $ac_try) 2>&5
10682  ac_status=$?
10683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684  (exit $ac_status); }; } &&
10685	 { ac_try='test -s conftest.$ac_objext'
10686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687  (eval $ac_try) 2>&5
10688  ac_status=$?
10689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690  (exit $ac_status); }; }; then
10691  echo "$as_me:$LINENO: result: yes" >&5
10692echo "${ECHO_T}yes" >&6
10693else
10694  echo "$as_me: failed program was:" >&5
10695sed 's/^/| /' conftest.$ac_ext >&5
10696
10697cat >>confdefs.h <<\_ACEOF
10698#define NO_STRINGS_WITH_STRING_H 1
10699_ACEOF
10700
10701		echo "$as_me:$LINENO: result: no" >&5
10702echo "${ECHO_T}no" >&6
10703fi
10704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10705CPPFLAGS=$cppflags_save
10706fi
10707
10708if test $ac_cv_c_compiler_gnu = yes; then
10709    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10710echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10711if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10712  echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714    ac_pattern="Autoconf.*'x'"
10715  cat >conftest.$ac_ext <<_ACEOF
10716/* confdefs.h.  */
10717_ACEOF
10718cat confdefs.h >>conftest.$ac_ext
10719cat >>conftest.$ac_ext <<_ACEOF
10720/* end confdefs.h.  */
10721#include <sgtty.h>
10722Autoconf TIOCGETP
10723_ACEOF
10724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10725  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10726  ac_cv_prog_gcc_traditional=yes
10727else
10728  ac_cv_prog_gcc_traditional=no
10729fi
10730rm -f conftest*
10731
10732
10733  if test $ac_cv_prog_gcc_traditional = no; then
10734    cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h.  */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h.  */
10740#include <termio.h>
10741Autoconf TCGETA
10742_ACEOF
10743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10744  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10745  ac_cv_prog_gcc_traditional=yes
10746fi
10747rm -f conftest*
10748
10749  fi
10750fi
10751echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10752echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10753  if test $ac_cv_prog_gcc_traditional = yes; then
10754    CC="$CC -traditional"
10755  fi
10756fi
10757
10758echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10759echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10760if test "${ac_cv_c_const+set}" = set; then
10761  echo $ECHO_N "(cached) $ECHO_C" >&6
10762else
10763  cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h.  */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
10768/* end confdefs.h.  */
10769
10770int
10771main ()
10772{
10773/* FIXME: Include the comments suggested by Paul. */
10774#ifndef __cplusplus
10775  /* Ultrix mips cc rejects this.  */
10776  typedef int charset[2];
10777  const charset x;
10778  /* SunOS 4.1.1 cc rejects this.  */
10779  char const *const *ccp;
10780  char **p;
10781  /* NEC SVR4.0.2 mips cc rejects this.  */
10782  struct point {int x, y;};
10783  static struct point const zero = {0,0};
10784  /* AIX XL C 1.02.0.0 rejects this.
10785     It does not let you subtract one const X* pointer from another in
10786     an arm of an if-expression whose if-part is not a constant
10787     expression */
10788  const char *g = "string";
10789  ccp = &g + (g ? g-g : 0);
10790  /* HPUX 7.0 cc rejects these. */
10791  ++ccp;
10792  p = (char**) ccp;
10793  ccp = (char const *const *) p;
10794  { /* SCO 3.2v4 cc rejects this.  */
10795    char *t;
10796    char const *s = 0 ? (char *) 0 : (char const *) 0;
10797
10798    *t++ = 0;
10799  }
10800  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10801    int x[] = {25, 17};
10802    const int *foo = &x[0];
10803    ++foo;
10804  }
10805  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10806    typedef const int *iptr;
10807    iptr p = 0;
10808    ++p;
10809  }
10810  { /* AIX XL C 1.02.0.0 rejects this saying
10811       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10812    struct s { int j; const int *ap[3]; };
10813    struct s *b; b->j = 5;
10814  }
10815  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10816    const int foo = 10;
10817  }
10818#endif
10819
10820  ;
10821  return 0;
10822}
10823_ACEOF
10824rm -f conftest.$ac_objext
10825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10826  (eval $ac_compile) 2>conftest.er1
10827  ac_status=$?
10828  grep -v '^ *+' conftest.er1 >conftest.err
10829  rm -f conftest.er1
10830  cat conftest.err >&5
10831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832  (exit $ac_status); } &&
10833	 { ac_try='test -z "$ac_c_werror_flag"
10834			 || test ! -s conftest.err'
10835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836  (eval $ac_try) 2>&5
10837  ac_status=$?
10838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839  (exit $ac_status); }; } &&
10840	 { ac_try='test -s conftest.$ac_objext'
10841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842  (eval $ac_try) 2>&5
10843  ac_status=$?
10844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845  (exit $ac_status); }; }; then
10846  ac_cv_c_const=yes
10847else
10848  echo "$as_me: failed program was:" >&5
10849sed 's/^/| /' conftest.$ac_ext >&5
10850
10851ac_cv_c_const=no
10852fi
10853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10854fi
10855echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10856echo "${ECHO_T}$ac_cv_c_const" >&6
10857if test $ac_cv_c_const = no; then
10858
10859cat >>confdefs.h <<\_ACEOF
10860#define const
10861_ACEOF
10862
10863fi
10864
10865echo "$as_me:$LINENO: checking for mode_t" >&5
10866echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10867if test "${ac_cv_type_mode_t+set}" = set; then
10868  echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870  cat >conftest.$ac_ext <<_ACEOF
10871/* confdefs.h.  */
10872_ACEOF
10873cat confdefs.h >>conftest.$ac_ext
10874cat >>conftest.$ac_ext <<_ACEOF
10875/* end confdefs.h.  */
10876$ac_includes_default
10877int
10878main ()
10879{
10880if ((mode_t *) 0)
10881  return 0;
10882if (sizeof (mode_t))
10883  return 0;
10884  ;
10885  return 0;
10886}
10887_ACEOF
10888rm -f conftest.$ac_objext
10889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890  (eval $ac_compile) 2>conftest.er1
10891  ac_status=$?
10892  grep -v '^ *+' conftest.er1 >conftest.err
10893  rm -f conftest.er1
10894  cat conftest.err >&5
10895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896  (exit $ac_status); } &&
10897	 { ac_try='test -z "$ac_c_werror_flag"
10898			 || test ! -s conftest.err'
10899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900  (eval $ac_try) 2>&5
10901  ac_status=$?
10902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903  (exit $ac_status); }; } &&
10904	 { ac_try='test -s conftest.$ac_objext'
10905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906  (eval $ac_try) 2>&5
10907  ac_status=$?
10908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909  (exit $ac_status); }; }; then
10910  ac_cv_type_mode_t=yes
10911else
10912  echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915ac_cv_type_mode_t=no
10916fi
10917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10918fi
10919echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10920echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10921if test $ac_cv_type_mode_t = yes; then
10922  :
10923else
10924
10925cat >>confdefs.h <<_ACEOF
10926#define mode_t int
10927_ACEOF
10928
10929fi
10930
10931echo "$as_me:$LINENO: checking for off_t" >&5
10932echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10933if test "${ac_cv_type_off_t+set}" = set; then
10934  echo $ECHO_N "(cached) $ECHO_C" >&6
10935else
10936  cat >conftest.$ac_ext <<_ACEOF
10937/* confdefs.h.  */
10938_ACEOF
10939cat confdefs.h >>conftest.$ac_ext
10940cat >>conftest.$ac_ext <<_ACEOF
10941/* end confdefs.h.  */
10942$ac_includes_default
10943int
10944main ()
10945{
10946if ((off_t *) 0)
10947  return 0;
10948if (sizeof (off_t))
10949  return 0;
10950  ;
10951  return 0;
10952}
10953_ACEOF
10954rm -f conftest.$ac_objext
10955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10956  (eval $ac_compile) 2>conftest.er1
10957  ac_status=$?
10958  grep -v '^ *+' conftest.er1 >conftest.err
10959  rm -f conftest.er1
10960  cat conftest.err >&5
10961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962  (exit $ac_status); } &&
10963	 { ac_try='test -z "$ac_c_werror_flag"
10964			 || test ! -s conftest.err'
10965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966  (eval $ac_try) 2>&5
10967  ac_status=$?
10968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969  (exit $ac_status); }; } &&
10970	 { ac_try='test -s conftest.$ac_objext'
10971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972  (eval $ac_try) 2>&5
10973  ac_status=$?
10974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975  (exit $ac_status); }; }; then
10976  ac_cv_type_off_t=yes
10977else
10978  echo "$as_me: failed program was:" >&5
10979sed 's/^/| /' conftest.$ac_ext >&5
10980
10981ac_cv_type_off_t=no
10982fi
10983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10984fi
10985echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10986echo "${ECHO_T}$ac_cv_type_off_t" >&6
10987if test $ac_cv_type_off_t = yes; then
10988  :
10989else
10990
10991cat >>confdefs.h <<_ACEOF
10992#define off_t long
10993_ACEOF
10994
10995fi
10996
10997echo "$as_me:$LINENO: checking for pid_t" >&5
10998echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10999if test "${ac_cv_type_pid_t+set}" = set; then
11000  echo $ECHO_N "(cached) $ECHO_C" >&6
11001else
11002  cat >conftest.$ac_ext <<_ACEOF
11003/* confdefs.h.  */
11004_ACEOF
11005cat confdefs.h >>conftest.$ac_ext
11006cat >>conftest.$ac_ext <<_ACEOF
11007/* end confdefs.h.  */
11008$ac_includes_default
11009int
11010main ()
11011{
11012if ((pid_t *) 0)
11013  return 0;
11014if (sizeof (pid_t))
11015  return 0;
11016  ;
11017  return 0;
11018}
11019_ACEOF
11020rm -f conftest.$ac_objext
11021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11022  (eval $ac_compile) 2>conftest.er1
11023  ac_status=$?
11024  grep -v '^ *+' conftest.er1 >conftest.err
11025  rm -f conftest.er1
11026  cat conftest.err >&5
11027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028  (exit $ac_status); } &&
11029	 { ac_try='test -z "$ac_c_werror_flag"
11030			 || test ! -s conftest.err'
11031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032  (eval $ac_try) 2>&5
11033  ac_status=$?
11034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035  (exit $ac_status); }; } &&
11036	 { ac_try='test -s conftest.$ac_objext'
11037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038  (eval $ac_try) 2>&5
11039  ac_status=$?
11040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041  (exit $ac_status); }; }; then
11042  ac_cv_type_pid_t=yes
11043else
11044  echo "$as_me: failed program was:" >&5
11045sed 's/^/| /' conftest.$ac_ext >&5
11046
11047ac_cv_type_pid_t=no
11048fi
11049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11050fi
11051echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11052echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11053if test $ac_cv_type_pid_t = yes; then
11054  :
11055else
11056
11057cat >>confdefs.h <<_ACEOF
11058#define pid_t int
11059_ACEOF
11060
11061fi
11062
11063echo "$as_me:$LINENO: checking for size_t" >&5
11064echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11065if test "${ac_cv_type_size_t+set}" = set; then
11066  echo $ECHO_N "(cached) $ECHO_C" >&6
11067else
11068  cat >conftest.$ac_ext <<_ACEOF
11069/* confdefs.h.  */
11070_ACEOF
11071cat confdefs.h >>conftest.$ac_ext
11072cat >>conftest.$ac_ext <<_ACEOF
11073/* end confdefs.h.  */
11074$ac_includes_default
11075int
11076main ()
11077{
11078if ((size_t *) 0)
11079  return 0;
11080if (sizeof (size_t))
11081  return 0;
11082  ;
11083  return 0;
11084}
11085_ACEOF
11086rm -f conftest.$ac_objext
11087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11088  (eval $ac_compile) 2>conftest.er1
11089  ac_status=$?
11090  grep -v '^ *+' conftest.er1 >conftest.err
11091  rm -f conftest.er1
11092  cat conftest.err >&5
11093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094  (exit $ac_status); } &&
11095	 { ac_try='test -z "$ac_c_werror_flag"
11096			 || test ! -s conftest.err'
11097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098  (eval $ac_try) 2>&5
11099  ac_status=$?
11100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101  (exit $ac_status); }; } &&
11102	 { ac_try='test -s conftest.$ac_objext'
11103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104  (eval $ac_try) 2>&5
11105  ac_status=$?
11106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107  (exit $ac_status); }; }; then
11108  ac_cv_type_size_t=yes
11109else
11110  echo "$as_me: failed program was:" >&5
11111sed 's/^/| /' conftest.$ac_ext >&5
11112
11113ac_cv_type_size_t=no
11114fi
11115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11116fi
11117echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11118echo "${ECHO_T}$ac_cv_type_size_t" >&6
11119if test $ac_cv_type_size_t = yes; then
11120  :
11121else
11122
11123cat >>confdefs.h <<_ACEOF
11124#define size_t unsigned
11125_ACEOF
11126
11127fi
11128
11129echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11130echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11131if test "${ac_cv_type_uid_t+set}" = set; then
11132  echo $ECHO_N "(cached) $ECHO_C" >&6
11133else
11134  cat >conftest.$ac_ext <<_ACEOF
11135/* confdefs.h.  */
11136_ACEOF
11137cat confdefs.h >>conftest.$ac_ext
11138cat >>conftest.$ac_ext <<_ACEOF
11139/* end confdefs.h.  */
11140#include <sys/types.h>
11141
11142_ACEOF
11143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11144  $EGREP "uid_t" >/dev/null 2>&1; then
11145  ac_cv_type_uid_t=yes
11146else
11147  ac_cv_type_uid_t=no
11148fi
11149rm -f conftest*
11150
11151fi
11152echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11153echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11154if test $ac_cv_type_uid_t = no; then
11155
11156cat >>confdefs.h <<\_ACEOF
11157#define uid_t int
11158_ACEOF
11159
11160
11161cat >>confdefs.h <<\_ACEOF
11162#define gid_t int
11163_ACEOF
11164
11165fi
11166
11167echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11168echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11169if test "${ac_cv_header_time+set}" = set; then
11170  echo $ECHO_N "(cached) $ECHO_C" >&6
11171else
11172  cat >conftest.$ac_ext <<_ACEOF
11173/* confdefs.h.  */
11174_ACEOF
11175cat confdefs.h >>conftest.$ac_ext
11176cat >>conftest.$ac_ext <<_ACEOF
11177/* end confdefs.h.  */
11178#include <sys/types.h>
11179#include <sys/time.h>
11180#include <time.h>
11181
11182int
11183main ()
11184{
11185if ((struct tm *) 0)
11186return 0;
11187  ;
11188  return 0;
11189}
11190_ACEOF
11191rm -f conftest.$ac_objext
11192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11193  (eval $ac_compile) 2>conftest.er1
11194  ac_status=$?
11195  grep -v '^ *+' conftest.er1 >conftest.err
11196  rm -f conftest.er1
11197  cat conftest.err >&5
11198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199  (exit $ac_status); } &&
11200	 { ac_try='test -z "$ac_c_werror_flag"
11201			 || test ! -s conftest.err'
11202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203  (eval $ac_try) 2>&5
11204  ac_status=$?
11205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206  (exit $ac_status); }; } &&
11207	 { ac_try='test -s conftest.$ac_objext'
11208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209  (eval $ac_try) 2>&5
11210  ac_status=$?
11211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212  (exit $ac_status); }; }; then
11213  ac_cv_header_time=yes
11214else
11215  echo "$as_me: failed program was:" >&5
11216sed 's/^/| /' conftest.$ac_ext >&5
11217
11218ac_cv_header_time=no
11219fi
11220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11221fi
11222echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11223echo "${ECHO_T}$ac_cv_header_time" >&6
11224if test $ac_cv_header_time = yes; then
11225
11226cat >>confdefs.h <<\_ACEOF
11227#define TIME_WITH_SYS_TIME 1
11228_ACEOF
11229
11230fi
11231
11232echo "$as_me:$LINENO: checking for ino_t" >&5
11233echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11234if test "${ac_cv_type_ino_t+set}" = set; then
11235  echo $ECHO_N "(cached) $ECHO_C" >&6
11236else
11237  cat >conftest.$ac_ext <<_ACEOF
11238/* confdefs.h.  */
11239_ACEOF
11240cat confdefs.h >>conftest.$ac_ext
11241cat >>conftest.$ac_ext <<_ACEOF
11242/* end confdefs.h.  */
11243$ac_includes_default
11244int
11245main ()
11246{
11247if ((ino_t *) 0)
11248  return 0;
11249if (sizeof (ino_t))
11250  return 0;
11251  ;
11252  return 0;
11253}
11254_ACEOF
11255rm -f conftest.$ac_objext
11256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11257  (eval $ac_compile) 2>conftest.er1
11258  ac_status=$?
11259  grep -v '^ *+' conftest.er1 >conftest.err
11260  rm -f conftest.er1
11261  cat conftest.err >&5
11262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263  (exit $ac_status); } &&
11264	 { ac_try='test -z "$ac_c_werror_flag"
11265			 || test ! -s conftest.err'
11266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267  (eval $ac_try) 2>&5
11268  ac_status=$?
11269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270  (exit $ac_status); }; } &&
11271	 { ac_try='test -s conftest.$ac_objext'
11272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273  (eval $ac_try) 2>&5
11274  ac_status=$?
11275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276  (exit $ac_status); }; }; then
11277  ac_cv_type_ino_t=yes
11278else
11279  echo "$as_me: failed program was:" >&5
11280sed 's/^/| /' conftest.$ac_ext >&5
11281
11282ac_cv_type_ino_t=no
11283fi
11284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11285fi
11286echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11287echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11288if test $ac_cv_type_ino_t = yes; then
11289  :
11290else
11291
11292cat >>confdefs.h <<_ACEOF
11293#define ino_t long
11294_ACEOF
11295
11296fi
11297
11298echo "$as_me:$LINENO: checking for dev_t" >&5
11299echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11300if test "${ac_cv_type_dev_t+set}" = set; then
11301  echo $ECHO_N "(cached) $ECHO_C" >&6
11302else
11303  cat >conftest.$ac_ext <<_ACEOF
11304/* confdefs.h.  */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h.  */
11309$ac_includes_default
11310int
11311main ()
11312{
11313if ((dev_t *) 0)
11314  return 0;
11315if (sizeof (dev_t))
11316  return 0;
11317  ;
11318  return 0;
11319}
11320_ACEOF
11321rm -f conftest.$ac_objext
11322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323  (eval $ac_compile) 2>conftest.er1
11324  ac_status=$?
11325  grep -v '^ *+' conftest.er1 >conftest.err
11326  rm -f conftest.er1
11327  cat conftest.err >&5
11328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329  (exit $ac_status); } &&
11330	 { ac_try='test -z "$ac_c_werror_flag"
11331			 || test ! -s conftest.err'
11332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333  (eval $ac_try) 2>&5
11334  ac_status=$?
11335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336  (exit $ac_status); }; } &&
11337	 { ac_try='test -s conftest.$ac_objext'
11338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339  (eval $ac_try) 2>&5
11340  ac_status=$?
11341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342  (exit $ac_status); }; }; then
11343  ac_cv_type_dev_t=yes
11344else
11345  echo "$as_me: failed program was:" >&5
11346sed 's/^/| /' conftest.$ac_ext >&5
11347
11348ac_cv_type_dev_t=no
11349fi
11350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11351fi
11352echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11353echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11354if test $ac_cv_type_dev_t = yes; then
11355  :
11356else
11357
11358cat >>confdefs.h <<_ACEOF
11359#define dev_t unsigned
11360_ACEOF
11361
11362fi
11363
11364
11365echo "$as_me:$LINENO: checking for rlim_t" >&5
11366echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11367if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11368  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11369echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11370else
11371  cat >conftest.$ac_ext <<_ACEOF
11372/* confdefs.h.  */
11373_ACEOF
11374cat confdefs.h >>conftest.$ac_ext
11375cat >>conftest.$ac_ext <<_ACEOF
11376/* end confdefs.h.  */
11377
11378#include <sys/types.h>
11379#if STDC_HEADERS
11380#include <stdlib.h>
11381#include <stddef.h>
11382#endif
11383#ifdef HAVE_SYS_RESOURCE_H
11384#include <sys/resource.h>
11385#endif
11386
11387_ACEOF
11388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11389  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11390  ac_cv_type_rlim_t=yes
11391else
11392  ac_cv_type_rlim_t=no
11393fi
11394rm -f conftest*
11395
11396	  echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11397echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
11398fi
11399if test $ac_cv_type_rlim_t = no; then
11400  cat >> confdefs.h <<\EOF
11401#define rlim_t unsigned long
11402EOF
11403fi
11404
11405echo "$as_me:$LINENO: checking for stack_t" >&5
11406echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11407if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11408  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11409echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
11410else
11411  cat >conftest.$ac_ext <<_ACEOF
11412/* confdefs.h.  */
11413_ACEOF
11414cat confdefs.h >>conftest.$ac_ext
11415cat >>conftest.$ac_ext <<_ACEOF
11416/* end confdefs.h.  */
11417
11418#include <sys/types.h>
11419#if STDC_HEADERS
11420#include <stdlib.h>
11421#include <stddef.h>
11422#endif
11423#include <signal.h>
11424
11425_ACEOF
11426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427  $EGREP "stack_t" >/dev/null 2>&1; then
11428  ac_cv_type_stack_t=yes
11429else
11430  ac_cv_type_stack_t=no
11431fi
11432rm -f conftest*
11433
11434	  echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11435echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11436fi
11437if test $ac_cv_type_stack_t = no; then
11438  cat >> confdefs.h <<\EOF
11439#define stack_t struct sigaltstack
11440EOF
11441fi
11442
11443echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11444echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11445cat >conftest.$ac_ext <<_ACEOF
11446/* confdefs.h.  */
11447_ACEOF
11448cat confdefs.h >>conftest.$ac_ext
11449cat >>conftest.$ac_ext <<_ACEOF
11450/* end confdefs.h.  */
11451
11452#include <sys/types.h>
11453#if STDC_HEADERS
11454#include <stdlib.h>
11455#include <stddef.h>
11456#endif
11457#include <signal.h>
11458#include "confdefs.h"
11459
11460int
11461main ()
11462{
11463stack_t sigstk; sigstk.ss_base = 0;
11464  ;
11465  return 0;
11466}
11467_ACEOF
11468rm -f conftest.$ac_objext
11469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11470  (eval $ac_compile) 2>conftest.er1
11471  ac_status=$?
11472  grep -v '^ *+' conftest.er1 >conftest.err
11473  rm -f conftest.er1
11474  cat conftest.err >&5
11475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476  (exit $ac_status); } &&
11477	 { ac_try='test -z "$ac_c_werror_flag"
11478			 || test ! -s conftest.err'
11479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480  (eval $ac_try) 2>&5
11481  ac_status=$?
11482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483  (exit $ac_status); }; } &&
11484	 { ac_try='test -s conftest.$ac_objext'
11485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486  (eval $ac_try) 2>&5
11487  ac_status=$?
11488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489  (exit $ac_status); }; }; then
11490  echo "$as_me:$LINENO: result: yes" >&5
11491echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11492#define HAVE_SS_BASE 1
11493_ACEOF
11494
11495else
11496  echo "$as_me: failed program was:" >&5
11497sed 's/^/| /' conftest.$ac_ext >&5
11498
11499echo "$as_me:$LINENO: result: no" >&5
11500echo "${ECHO_T}no" >&6
11501fi
11502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11503
11504olibs="$LIBS"
11505echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11506echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11507
11508# Check whether --with-tlib or --without-tlib was given.
11509if test "${with_tlib+set}" = set; then
11510  withval="$with_tlib"
11511
11512fi;
11513if test -n "$with_tlib"; then
11514  echo "$as_me:$LINENO: result: $with_tlib" >&5
11515echo "${ECHO_T}$with_tlib" >&6
11516  LIBS="$LIBS -l$with_tlib"
11517  echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11518echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11519  cat >conftest.$ac_ext <<_ACEOF
11520/* confdefs.h.  */
11521_ACEOF
11522cat confdefs.h >>conftest.$ac_ext
11523cat >>conftest.$ac_ext <<_ACEOF
11524/* end confdefs.h.  */
11525
11526int
11527main ()
11528{
11529
11530  ;
11531  return 0;
11532}
11533_ACEOF
11534rm -f conftest.$ac_objext conftest$ac_exeext
11535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11536  (eval $ac_link) 2>conftest.er1
11537  ac_status=$?
11538  grep -v '^ *+' conftest.er1 >conftest.err
11539  rm -f conftest.er1
11540  cat conftest.err >&5
11541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542  (exit $ac_status); } &&
11543	 { ac_try='test -z "$ac_c_werror_flag"
11544			 || test ! -s conftest.err'
11545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546  (eval $ac_try) 2>&5
11547  ac_status=$?
11548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549  (exit $ac_status); }; } &&
11550	 { ac_try='test -s conftest$ac_exeext'
11551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552  (eval $ac_try) 2>&5
11553  ac_status=$?
11554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555  (exit $ac_status); }; }; then
11556  echo "$as_me:$LINENO: result: OK" >&5
11557echo "${ECHO_T}OK" >&6
11558else
11559  echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
11561
11562{ { echo "$as_me:$LINENO: error: FAILED" >&5
11563echo "$as_me: error: FAILED" >&2;}
11564   { (exit 1); exit 1; }; }
11565fi
11566rm -f conftest.err conftest.$ac_objext \
11567      conftest$ac_exeext conftest.$ac_ext
11568    olibs="$LIBS"
11569else
11570  echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11571echo "${ECHO_T}empty: automatic terminal library selection" >&6
11572              case "`uname -s 2>/dev/null`" in
11573	OSF1|SCO_SV)	tlibs="ncurses curses termlib termcap";;
11574	*)	tlibs="ncurses termlib termcap curses";;
11575  esac
11576  for libname in $tlibs; do
11577
11578as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11579echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11580echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11581if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11582  echo $ECHO_N "(cached) $ECHO_C" >&6
11583else
11584  ac_check_lib_save_LIBS=$LIBS
11585LIBS="-l${libname}  $LIBS"
11586cat >conftest.$ac_ext <<_ACEOF
11587/* confdefs.h.  */
11588_ACEOF
11589cat confdefs.h >>conftest.$ac_ext
11590cat >>conftest.$ac_ext <<_ACEOF
11591/* end confdefs.h.  */
11592
11593/* Override any gcc2 internal prototype to avoid an error.  */
11594#ifdef __cplusplus
11595extern "C"
11596#endif
11597/* We use char because int might match the return type of a gcc2
11598   builtin and then its argument prototype would still apply.  */
11599char tgetent ();
11600int
11601main ()
11602{
11603tgetent ();
11604  ;
11605  return 0;
11606}
11607_ACEOF
11608rm -f conftest.$ac_objext conftest$ac_exeext
11609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11610  (eval $ac_link) 2>conftest.er1
11611  ac_status=$?
11612  grep -v '^ *+' conftest.er1 >conftest.err
11613  rm -f conftest.er1
11614  cat conftest.err >&5
11615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616  (exit $ac_status); } &&
11617	 { ac_try='test -z "$ac_c_werror_flag"
11618			 || test ! -s conftest.err'
11619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620  (eval $ac_try) 2>&5
11621  ac_status=$?
11622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623  (exit $ac_status); }; } &&
11624	 { ac_try='test -s conftest$ac_exeext'
11625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626  (eval $ac_try) 2>&5
11627  ac_status=$?
11628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629  (exit $ac_status); }; }; then
11630  eval "$as_ac_Lib=yes"
11631else
11632  echo "$as_me: failed program was:" >&5
11633sed 's/^/| /' conftest.$ac_ext >&5
11634
11635eval "$as_ac_Lib=no"
11636fi
11637rm -f conftest.err conftest.$ac_objext \
11638      conftest$ac_exeext conftest.$ac_ext
11639LIBS=$ac_check_lib_save_LIBS
11640fi
11641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11642echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11643if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11644  cat >>confdefs.h <<_ACEOF
11645#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11646_ACEOF
11647
11648  LIBS="-l${libname} $LIBS"
11649
11650fi
11651
11652    if test "x$olibs" != "x$LIBS"; then
11653                        if test "$cross_compiling" = yes; then
11654  res="FAIL"
11655else
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
11663#ifdef HAVE_TERMCAP_H
11664# include <termcap.h>
11665#endif
11666main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11667_ACEOF
11668rm -f conftest$ac_exeext
11669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670  (eval $ac_link) 2>&5
11671  ac_status=$?
11672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675  (eval $ac_try) 2>&5
11676  ac_status=$?
11677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678  (exit $ac_status); }; }; then
11679  res="OK"
11680else
11681  echo "$as_me: program exited with status $ac_status" >&5
11682echo "$as_me: failed program was:" >&5
11683sed 's/^/| /' conftest.$ac_ext >&5
11684
11685( exit $ac_status )
11686res="FAIL"
11687fi
11688rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11689fi
11690      if test "$res" = "OK"; then
11691	break
11692      fi
11693      echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11694echo "${ECHO_T}$libname library is not usable" >&6
11695      LIBS="$olibs"
11696    fi
11697  done
11698  if test "x$olibs" = "x$LIBS"; then
11699    echo "$as_me:$LINENO: result: no terminal library found" >&5
11700echo "${ECHO_T}no terminal library found" >&6
11701  fi
11702fi
11703
11704if test "x$olibs" = "x$LIBS"; then
11705  echo "$as_me:$LINENO: checking for tgetent()" >&5
11706echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11707  cat >conftest.$ac_ext <<_ACEOF
11708/* confdefs.h.  */
11709_ACEOF
11710cat confdefs.h >>conftest.$ac_ext
11711cat >>conftest.$ac_ext <<_ACEOF
11712/* end confdefs.h.  */
11713
11714int
11715main ()
11716{
11717char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11718  ;
11719  return 0;
11720}
11721_ACEOF
11722rm -f conftest.$ac_objext conftest$ac_exeext
11723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724  (eval $ac_link) 2>conftest.er1
11725  ac_status=$?
11726  grep -v '^ *+' conftest.er1 >conftest.err
11727  rm -f conftest.er1
11728  cat conftest.err >&5
11729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730  (exit $ac_status); } &&
11731	 { ac_try='test -z "$ac_c_werror_flag"
11732			 || test ! -s conftest.err'
11733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734  (eval $ac_try) 2>&5
11735  ac_status=$?
11736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737  (exit $ac_status); }; } &&
11738	 { ac_try='test -s conftest$ac_exeext'
11739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740  (eval $ac_try) 2>&5
11741  ac_status=$?
11742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743  (exit $ac_status); }; }; then
11744  echo "$as_me:$LINENO: result: yes" >&5
11745echo "${ECHO_T}yes" >&6
11746else
11747  echo "$as_me: failed program was:" >&5
11748sed 's/^/| /' conftest.$ac_ext >&5
11749
11750{ { echo "$as_me:$LINENO: error: NOT FOUND!
11751      You need to install a terminal library; for example ncurses.
11752      Or specify the name of the library with --with-tlib." >&5
11753echo "$as_me: error: NOT FOUND!
11754      You need to install a terminal library; for example ncurses.
11755      Or specify the name of the library with --with-tlib." >&2;}
11756   { (exit 1); exit 1; }; }
11757fi
11758rm -f conftest.err conftest.$ac_objext \
11759      conftest$ac_exeext conftest.$ac_ext
11760fi
11761
11762echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11763echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
11764if test "$cross_compiling" = yes; then
11765  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11766echo "$as_me: error: failed to compile test program." >&2;}
11767   { (exit 1); exit 1; }; }
11768else
11769  cat >conftest.$ac_ext <<_ACEOF
11770/* confdefs.h.  */
11771_ACEOF
11772cat confdefs.h >>conftest.$ac_ext
11773cat >>conftest.$ac_ext <<_ACEOF
11774/* end confdefs.h.  */
11775
11776#ifdef HAVE_TERMCAP_H
11777# include <termcap.h>
11778#endif
11779main()
11780{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11781_ACEOF
11782rm -f conftest$ac_exeext
11783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11784  (eval $ac_link) 2>&5
11785  ac_status=$?
11786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789  (eval $ac_try) 2>&5
11790  ac_status=$?
11791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792  (exit $ac_status); }; }; then
11793  echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11794echo "${ECHO_T}no -- we are in termcap land" >&6
11795else
11796  echo "$as_me: program exited with status $ac_status" >&5
11797echo "$as_me: failed program was:" >&5
11798sed 's/^/| /' conftest.$ac_ext >&5
11799
11800( exit $ac_status )
11801echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11802echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
11803#define TERMINFO 1
11804_ACEOF
11805
11806fi
11807rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11808fi
11809
11810if test "x$olibs" != "x$LIBS"; then
11811  echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11812echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
11813  if test "$cross_compiling" = yes; then
11814  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11815echo "$as_me: error: failed to compile test program." >&2;}
11816   { (exit 1); exit 1; }; }
11817else
11818  cat >conftest.$ac_ext <<_ACEOF
11819/* confdefs.h.  */
11820_ACEOF
11821cat confdefs.h >>conftest.$ac_ext
11822cat >>conftest.$ac_ext <<_ACEOF
11823/* end confdefs.h.  */
11824
11825#ifdef HAVE_TERMCAP_H
11826# include <termcap.h>
11827#endif
11828main()
11829{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
11830_ACEOF
11831rm -f conftest$ac_exeext
11832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833  (eval $ac_link) 2>&5
11834  ac_status=$?
11835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838  (eval $ac_try) 2>&5
11839  ac_status=$?
11840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841  (exit $ac_status); }; }; then
11842  echo "$as_me:$LINENO: result: zero" >&5
11843echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
11844#define TGETENT_ZERO_ERR 0
11845_ACEOF
11846
11847else
11848  echo "$as_me: program exited with status $ac_status" >&5
11849echo "$as_me: failed program was:" >&5
11850sed 's/^/| /' conftest.$ac_ext >&5
11851
11852( exit $ac_status )
11853echo "$as_me:$LINENO: result: non-zero" >&5
11854echo "${ECHO_T}non-zero" >&6
11855fi
11856rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11857fi
11858fi
11859
11860echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11861echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11862cat >conftest.$ac_ext <<_ACEOF
11863/* confdefs.h.  */
11864_ACEOF
11865cat confdefs.h >>conftest.$ac_ext
11866cat >>conftest.$ac_ext <<_ACEOF
11867/* end confdefs.h.  */
11868
11869#ifdef HAVE_TERMCAP_H
11870# include <termcap.h>
11871#endif
11872
11873int
11874main ()
11875{
11876ospeed = 20000
11877  ;
11878  return 0;
11879}
11880_ACEOF
11881rm -f conftest.$ac_objext conftest$ac_exeext
11882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11883  (eval $ac_link) 2>conftest.er1
11884  ac_status=$?
11885  grep -v '^ *+' conftest.er1 >conftest.err
11886  rm -f conftest.er1
11887  cat conftest.err >&5
11888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889  (exit $ac_status); } &&
11890	 { ac_try='test -z "$ac_c_werror_flag"
11891			 || test ! -s conftest.err'
11892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893  (eval $ac_try) 2>&5
11894  ac_status=$?
11895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896  (exit $ac_status); }; } &&
11897	 { ac_try='test -s conftest$ac_exeext'
11898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899  (eval $ac_try) 2>&5
11900  ac_status=$?
11901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902  (exit $ac_status); }; }; then
11903  echo "$as_me:$LINENO: result: yes" >&5
11904echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11905#define HAVE_OSPEED 1
11906_ACEOF
11907
11908else
11909  echo "$as_me: failed program was:" >&5
11910sed 's/^/| /' conftest.$ac_ext >&5
11911
11912echo "$as_me:$LINENO: result: no" >&5
11913echo "${ECHO_T}no" >&6
11914	echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11915echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11916	cat >conftest.$ac_ext <<_ACEOF
11917/* confdefs.h.  */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h.  */
11922
11923#ifdef HAVE_TERMCAP_H
11924# include <termcap.h>
11925#endif
11926extern short ospeed;
11927
11928int
11929main ()
11930{
11931ospeed = 20000
11932  ;
11933  return 0;
11934}
11935_ACEOF
11936rm -f conftest.$ac_objext conftest$ac_exeext
11937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11938  (eval $ac_link) 2>conftest.er1
11939  ac_status=$?
11940  grep -v '^ *+' conftest.er1 >conftest.err
11941  rm -f conftest.er1
11942  cat conftest.err >&5
11943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944  (exit $ac_status); } &&
11945	 { ac_try='test -z "$ac_c_werror_flag"
11946			 || test ! -s conftest.err'
11947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948  (eval $ac_try) 2>&5
11949  ac_status=$?
11950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951  (exit $ac_status); }; } &&
11952	 { ac_try='test -s conftest$ac_exeext'
11953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954  (eval $ac_try) 2>&5
11955  ac_status=$?
11956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957  (exit $ac_status); }; }; then
11958  echo "$as_me:$LINENO: result: yes" >&5
11959echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11960#define OSPEED_EXTERN 1
11961_ACEOF
11962
11963else
11964  echo "$as_me: failed program was:" >&5
11965sed 's/^/| /' conftest.$ac_ext >&5
11966
11967echo "$as_me:$LINENO: result: no" >&5
11968echo "${ECHO_T}no" >&6
11969fi
11970rm -f conftest.err conftest.$ac_objext \
11971      conftest$ac_exeext conftest.$ac_ext
11972
11973fi
11974rm -f conftest.err conftest.$ac_objext \
11975      conftest$ac_exeext conftest.$ac_ext
11976
11977echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11978echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11979cat >conftest.$ac_ext <<_ACEOF
11980/* confdefs.h.  */
11981_ACEOF
11982cat confdefs.h >>conftest.$ac_ext
11983cat >>conftest.$ac_ext <<_ACEOF
11984/* end confdefs.h.  */
11985
11986#ifdef HAVE_TERMCAP_H
11987# include <termcap.h>
11988#endif
11989
11990int
11991main ()
11992{
11993if (UP == 0 && BC == 0) PC = 1
11994  ;
11995  return 0;
11996}
11997_ACEOF
11998rm -f conftest.$ac_objext conftest$ac_exeext
11999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12000  (eval $ac_link) 2>conftest.er1
12001  ac_status=$?
12002  grep -v '^ *+' conftest.er1 >conftest.err
12003  rm -f conftest.er1
12004  cat conftest.err >&5
12005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006  (exit $ac_status); } &&
12007	 { ac_try='test -z "$ac_c_werror_flag"
12008			 || test ! -s conftest.err'
12009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010  (eval $ac_try) 2>&5
12011  ac_status=$?
12012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013  (exit $ac_status); }; } &&
12014	 { ac_try='test -s conftest$ac_exeext'
12015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016  (eval $ac_try) 2>&5
12017  ac_status=$?
12018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019  (exit $ac_status); }; }; then
12020  echo "$as_me:$LINENO: result: yes" >&5
12021echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12022#define HAVE_UP_BC_PC 1
12023_ACEOF
12024
12025else
12026  echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029echo "$as_me:$LINENO: result: no" >&5
12030echo "${ECHO_T}no" >&6
12031	echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12032echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12033	cat >conftest.$ac_ext <<_ACEOF
12034/* confdefs.h.  */
12035_ACEOF
12036cat confdefs.h >>conftest.$ac_ext
12037cat >>conftest.$ac_ext <<_ACEOF
12038/* end confdefs.h.  */
12039
12040#ifdef HAVE_TERMCAP_H
12041# include <termcap.h>
12042#endif
12043extern char *UP, *BC, PC;
12044
12045int
12046main ()
12047{
12048if (UP == 0 && BC == 0) PC = 1
12049  ;
12050  return 0;
12051}
12052_ACEOF
12053rm -f conftest.$ac_objext conftest$ac_exeext
12054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12055  (eval $ac_link) 2>conftest.er1
12056  ac_status=$?
12057  grep -v '^ *+' conftest.er1 >conftest.err
12058  rm -f conftest.er1
12059  cat conftest.err >&5
12060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061  (exit $ac_status); } &&
12062	 { ac_try='test -z "$ac_c_werror_flag"
12063			 || test ! -s conftest.err'
12064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065  (eval $ac_try) 2>&5
12066  ac_status=$?
12067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068  (exit $ac_status); }; } &&
12069	 { ac_try='test -s conftest$ac_exeext'
12070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071  (eval $ac_try) 2>&5
12072  ac_status=$?
12073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074  (exit $ac_status); }; }; then
12075  echo "$as_me:$LINENO: result: yes" >&5
12076echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12077#define UP_BC_PC_EXTERN 1
12078_ACEOF
12079
12080else
12081  echo "$as_me: failed program was:" >&5
12082sed 's/^/| /' conftest.$ac_ext >&5
12083
12084echo "$as_me:$LINENO: result: no" >&5
12085echo "${ECHO_T}no" >&6
12086fi
12087rm -f conftest.err conftest.$ac_objext \
12088      conftest$ac_exeext conftest.$ac_ext
12089
12090fi
12091rm -f conftest.err conftest.$ac_objext \
12092      conftest$ac_exeext conftest.$ac_ext
12093
12094echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12095echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12096cat >conftest.$ac_ext <<_ACEOF
12097/* confdefs.h.  */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h.  */
12102
12103#ifdef HAVE_TERMCAP_H
12104# include <termcap.h>
12105#endif
12106
12107int
12108main ()
12109{
12110extern int xx(); tputs("test", 1, (outfuntype)xx)
12111  ;
12112  return 0;
12113}
12114_ACEOF
12115rm -f conftest.$ac_objext
12116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117  (eval $ac_compile) 2>conftest.er1
12118  ac_status=$?
12119  grep -v '^ *+' conftest.er1 >conftest.err
12120  rm -f conftest.er1
12121  cat conftest.err >&5
12122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123  (exit $ac_status); } &&
12124	 { ac_try='test -z "$ac_c_werror_flag"
12125			 || test ! -s conftest.err'
12126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127  (eval $ac_try) 2>&5
12128  ac_status=$?
12129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130  (exit $ac_status); }; } &&
12131	 { ac_try='test -s conftest.$ac_objext'
12132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133  (eval $ac_try) 2>&5
12134  ac_status=$?
12135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136  (exit $ac_status); }; }; then
12137  echo "$as_me:$LINENO: result: yes" >&5
12138echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12139#define HAVE_OUTFUNTYPE 1
12140_ACEOF
12141
12142else
12143  echo "$as_me: failed program was:" >&5
12144sed 's/^/| /' conftest.$ac_ext >&5
12145
12146echo "$as_me:$LINENO: result: no" >&5
12147echo "${ECHO_T}no" >&6
12148fi
12149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12150
12151echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12152echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12153cat >conftest.$ac_ext <<_ACEOF
12154/* confdefs.h.  */
12155_ACEOF
12156cat confdefs.h >>conftest.$ac_ext
12157cat >>conftest.$ac_ext <<_ACEOF
12158/* end confdefs.h.  */
12159
12160#include <sys/types.h>
12161#include <sys/time.h>
12162#include <sys/select.h>
12163int
12164main ()
12165{
12166
12167  ;
12168  return 0;
12169}
12170_ACEOF
12171rm -f conftest.$ac_objext
12172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173  (eval $ac_compile) 2>conftest.er1
12174  ac_status=$?
12175  grep -v '^ *+' conftest.er1 >conftest.err
12176  rm -f conftest.er1
12177  cat conftest.err >&5
12178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179  (exit $ac_status); } &&
12180	 { ac_try='test -z "$ac_c_werror_flag"
12181			 || test ! -s conftest.err'
12182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183  (eval $ac_try) 2>&5
12184  ac_status=$?
12185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186  (exit $ac_status); }; } &&
12187	 { ac_try='test -s conftest.$ac_objext'
12188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189  (eval $ac_try) 2>&5
12190  ac_status=$?
12191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192  (exit $ac_status); }; }; then
12193  echo "$as_me:$LINENO: result: yes" >&5
12194echo "${ECHO_T}yes" >&6
12195			cat >>confdefs.h <<\_ACEOF
12196#define SYS_SELECT_WITH_SYS_TIME 1
12197_ACEOF
12198
12199else
12200  echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
12203echo "$as_me:$LINENO: result: no" >&5
12204echo "${ECHO_T}no" >&6
12205fi
12206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12207
12208
12209echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12210echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12211if test -r /dev/ptc; then
12212  cat >>confdefs.h <<\_ACEOF
12213#define HAVE_DEV_PTC 1
12214_ACEOF
12215
12216  echo "$as_me:$LINENO: result: yes" >&5
12217echo "${ECHO_T}yes" >&6
12218else
12219  echo "$as_me:$LINENO: result: no" >&5
12220echo "${ECHO_T}no" >&6
12221fi
12222
12223echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12224echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
12225if test -c /dev/ptmx ; then
12226  cat >conftest.$ac_ext <<_ACEOF
12227/* confdefs.h.  */
12228_ACEOF
12229cat confdefs.h >>conftest.$ac_ext
12230cat >>conftest.$ac_ext <<_ACEOF
12231/* end confdefs.h.  */
12232
12233int
12234main ()
12235{
12236ptsname(0);grantpt(0);unlockpt(0);
12237  ;
12238  return 0;
12239}
12240_ACEOF
12241rm -f conftest.$ac_objext conftest$ac_exeext
12242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243  (eval $ac_link) 2>conftest.er1
12244  ac_status=$?
12245  grep -v '^ *+' conftest.er1 >conftest.err
12246  rm -f conftest.er1
12247  cat conftest.err >&5
12248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249  (exit $ac_status); } &&
12250	 { ac_try='test -z "$ac_c_werror_flag"
12251			 || test ! -s conftest.err'
12252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253  (eval $ac_try) 2>&5
12254  ac_status=$?
12255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256  (exit $ac_status); }; } &&
12257	 { ac_try='test -s conftest$ac_exeext'
12258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259  (eval $ac_try) 2>&5
12260  ac_status=$?
12261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262  (exit $ac_status); }; }; then
12263  echo "$as_me:$LINENO: result: yes" >&5
12264echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12265#define HAVE_SVR4_PTYS 1
12266_ACEOF
12267
12268else
12269  echo "$as_me: failed program was:" >&5
12270sed 's/^/| /' conftest.$ac_ext >&5
12271
12272echo "$as_me:$LINENO: result: no" >&5
12273echo "${ECHO_T}no" >&6
12274fi
12275rm -f conftest.err conftest.$ac_objext \
12276      conftest$ac_exeext conftest.$ac_ext
12277else
12278  echo "$as_me:$LINENO: result: no" >&5
12279echo "${ECHO_T}no" >&6
12280fi
12281
12282echo "$as_me:$LINENO: checking for ptyranges" >&5
12283echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
12284if test -d /dev/ptym ; then
12285  pdir='/dev/ptym'
12286else
12287  pdir='/dev'
12288fi
12289cat >conftest.$ac_ext <<_ACEOF
12290/* confdefs.h.  */
12291_ACEOF
12292cat confdefs.h >>conftest.$ac_ext
12293cat >>conftest.$ac_ext <<_ACEOF
12294/* end confdefs.h.  */
12295#ifdef M_UNIX
12296   yes;
12297#endif
12298
12299_ACEOF
12300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12301  $EGREP "yes" >/dev/null 2>&1; then
12302  ptys=`echo /dev/ptyp??`
12303else
12304  ptys=`echo $pdir/pty??`
12305fi
12306rm -f conftest*
12307
12308if test "$ptys" != "$pdir/pty??" ; then
12309  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12310  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12311  cat >>confdefs.h <<_ACEOF
12312#define PTYRANGE0 "$p0"
12313_ACEOF
12314
12315  cat >>confdefs.h <<_ACEOF
12316#define PTYRANGE1 "$p1"
12317_ACEOF
12318
12319  echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12320echo "${ECHO_T}$p0 / $p1" >&6
12321else
12322  echo "$as_me:$LINENO: result: don't know" >&5
12323echo "${ECHO_T}don't know" >&6
12324fi
12325
12326echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12327echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
12328rm -f conftest_grp
12329if test "$cross_compiling" = yes; then
12330  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12331echo "$as_me: error: failed to compile test program" >&2;}
12332   { (exit 1); exit 1; }; }
12333else
12334  cat >conftest.$ac_ext <<_ACEOF
12335/* confdefs.h.  */
12336_ACEOF
12337cat confdefs.h >>conftest.$ac_ext
12338cat >>conftest.$ac_ext <<_ACEOF
12339/* end confdefs.h.  */
12340
12341#include <sys/types.h>
12342#include <sys/stat.h>
12343#include <stdio.h>
12344main()
12345{
12346  struct stat sb;
12347  char *x,*ttyname();
12348  int om, m;
12349  FILE *fp;
12350
12351  if (!(x = ttyname(0))) exit(1);
12352  if (stat(x, &sb)) exit(1);
12353  om = sb.st_mode;
12354  if (om & 002) exit(0);
12355  m = system("mesg y");
12356  if (m == -1 || m == 127) exit(1);
12357  if (stat(x, &sb)) exit(1);
12358  m = sb.st_mode;
12359  if (chmod(x, om)) exit(1);
12360  if (m & 002) exit(0);
12361  if (sb.st_gid == getgid()) exit(1);
12362  if (!(fp=fopen("conftest_grp", "w")))
12363    exit(1);
12364  fprintf(fp, "%d\n", sb.st_gid);
12365  fclose(fp);
12366  exit(0);
12367}
12368
12369_ACEOF
12370rm -f conftest$ac_exeext
12371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372  (eval $ac_link) 2>&5
12373  ac_status=$?
12374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377  (eval $ac_try) 2>&5
12378  ac_status=$?
12379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380  (exit $ac_status); }; }; then
12381
12382    if test -f conftest_grp; then
12383	ptygrp=`cat conftest_grp`
12384	echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12385echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12386	cat >>confdefs.h <<\_ACEOF
12387#define PTYMODE 0620
12388_ACEOF
12389
12390	cat >>confdefs.h <<_ACEOF
12391#define PTYGROUP $ptygrp
12392_ACEOF
12393
12394    else
12395	echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12396echo "${ECHO_T}ptys are world accessable" >&6
12397    fi
12398
12399else
12400  echo "$as_me: program exited with status $ac_status" >&5
12401echo "$as_me: failed program was:" >&5
12402sed 's/^/| /' conftest.$ac_ext >&5
12403
12404( exit $ac_status )
12405echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12406echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12407fi
12408rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12409fi
12410rm -f conftest_grp
12411
12412
12413echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12414echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12415if test "${ac_cv_type_signal+set}" = set; then
12416  echo $ECHO_N "(cached) $ECHO_C" >&6
12417else
12418  cat >conftest.$ac_ext <<_ACEOF
12419/* confdefs.h.  */
12420_ACEOF
12421cat confdefs.h >>conftest.$ac_ext
12422cat >>conftest.$ac_ext <<_ACEOF
12423/* end confdefs.h.  */
12424#include <sys/types.h>
12425#include <signal.h>
12426#ifdef signal
12427# undef signal
12428#endif
12429#ifdef __cplusplus
12430extern "C" void (*signal (int, void (*)(int)))(int);
12431#else
12432void (*signal ()) ();
12433#endif
12434
12435int
12436main ()
12437{
12438int i;
12439  ;
12440  return 0;
12441}
12442_ACEOF
12443rm -f conftest.$ac_objext
12444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445  (eval $ac_compile) 2>conftest.er1
12446  ac_status=$?
12447  grep -v '^ *+' conftest.er1 >conftest.err
12448  rm -f conftest.er1
12449  cat conftest.err >&5
12450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451  (exit $ac_status); } &&
12452	 { ac_try='test -z "$ac_c_werror_flag"
12453			 || test ! -s conftest.err'
12454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455  (eval $ac_try) 2>&5
12456  ac_status=$?
12457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458  (exit $ac_status); }; } &&
12459	 { ac_try='test -s conftest.$ac_objext'
12460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461  (eval $ac_try) 2>&5
12462  ac_status=$?
12463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464  (exit $ac_status); }; }; then
12465  ac_cv_type_signal=void
12466else
12467  echo "$as_me: failed program was:" >&5
12468sed 's/^/| /' conftest.$ac_ext >&5
12469
12470ac_cv_type_signal=int
12471fi
12472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12473fi
12474echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12475echo "${ECHO_T}$ac_cv_type_signal" >&6
12476
12477cat >>confdefs.h <<_ACEOF
12478#define RETSIGTYPE $ac_cv_type_signal
12479_ACEOF
12480
12481
12482
12483if test $ac_cv_type_signal = void; then
12484  cat >>confdefs.h <<\_ACEOF
12485#define SIGRETURN return
12486_ACEOF
12487
12488else
12489  cat >>confdefs.h <<\_ACEOF
12490#define SIGRETURN return 0
12491_ACEOF
12492
12493fi
12494
12495echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12496echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12497cat >conftest.$ac_ext <<_ACEOF
12498/* confdefs.h.  */
12499_ACEOF
12500cat confdefs.h >>conftest.$ac_ext
12501cat >>conftest.$ac_ext <<_ACEOF
12502/* end confdefs.h.  */
12503
12504#include <signal.h>
12505test_sig()
12506{
12507    struct sigcontext *scont;
12508    scont = (struct sigcontext *)0;
12509    return 1;
12510}
12511int
12512main ()
12513{
12514
12515  ;
12516  return 0;
12517}
12518_ACEOF
12519rm -f conftest.$ac_objext
12520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521  (eval $ac_compile) 2>conftest.er1
12522  ac_status=$?
12523  grep -v '^ *+' conftest.er1 >conftest.err
12524  rm -f conftest.er1
12525  cat conftest.err >&5
12526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527  (exit $ac_status); } &&
12528	 { ac_try='test -z "$ac_c_werror_flag"
12529			 || test ! -s conftest.err'
12530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531  (eval $ac_try) 2>&5
12532  ac_status=$?
12533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534  (exit $ac_status); }; } &&
12535	 { ac_try='test -s conftest.$ac_objext'
12536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537  (eval $ac_try) 2>&5
12538  ac_status=$?
12539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540  (exit $ac_status); }; }; then
12541  echo "$as_me:$LINENO: result: yes" >&5
12542echo "${ECHO_T}yes" >&6
12543		cat >>confdefs.h <<\_ACEOF
12544#define HAVE_SIGCONTEXT 1
12545_ACEOF
12546
12547else
12548  echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
12551echo "$as_me:$LINENO: result: no" >&5
12552echo "${ECHO_T}no" >&6
12553fi
12554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12555
12556echo "$as_me:$LINENO: checking getcwd implementation" >&5
12557echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
12558if test "$cross_compiling" = yes; then
12559  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12560echo "$as_me: error: failed to compile test program" >&2;}
12561   { (exit 1); exit 1; }; }
12562else
12563  cat >conftest.$ac_ext <<_ACEOF
12564/* confdefs.h.  */
12565_ACEOF
12566cat confdefs.h >>conftest.$ac_ext
12567cat >>conftest.$ac_ext <<_ACEOF
12568/* end confdefs.h.  */
12569
12570char *dagger[] = { "IFS=pwd", 0 };
12571main()
12572{
12573  char buffer[500];
12574  extern char **environ;
12575  environ = dagger;
12576  return getcwd(buffer, 500) ? 0 : 1;
12577}
12578_ACEOF
12579rm -f conftest$ac_exeext
12580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12581  (eval $ac_link) 2>&5
12582  ac_status=$?
12583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586  (eval $ac_try) 2>&5
12587  ac_status=$?
12588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589  (exit $ac_status); }; }; then
12590  echo "$as_me:$LINENO: result: it is usable" >&5
12591echo "${ECHO_T}it is usable" >&6
12592else
12593  echo "$as_me: program exited with status $ac_status" >&5
12594echo "$as_me: failed program was:" >&5
12595sed 's/^/| /' conftest.$ac_ext >&5
12596
12597( exit $ac_status )
12598echo "$as_me:$LINENO: result: it stinks" >&5
12599echo "${ECHO_T}it stinks" >&6
12600		cat >>confdefs.h <<\_ACEOF
12601#define BAD_GETCWD 1
12602_ACEOF
12603
12604fi
12605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12606fi
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12655	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12656	memset nanosleep opendir putenv qsort readlink select setenv \
12657	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12658	sigvec strcasecmp strerror strftime stricmp strncasecmp \
12659	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12660	usleep utime utimes
12661do
12662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12663echo "$as_me:$LINENO: checking for $ac_func" >&5
12664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12665if eval "test \"\${$as_ac_var+set}\" = set"; then
12666  echo $ECHO_N "(cached) $ECHO_C" >&6
12667else
12668  cat >conftest.$ac_ext <<_ACEOF
12669/* confdefs.h.  */
12670_ACEOF
12671cat confdefs.h >>conftest.$ac_ext
12672cat >>conftest.$ac_ext <<_ACEOF
12673/* end confdefs.h.  */
12674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12675   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12676#define $ac_func innocuous_$ac_func
12677
12678/* System header to define __stub macros and hopefully few prototypes,
12679    which can conflict with char $ac_func (); below.
12680    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12681    <limits.h> exists even on freestanding compilers.  */
12682
12683#ifdef __STDC__
12684# include <limits.h>
12685#else
12686# include <assert.h>
12687#endif
12688
12689#undef $ac_func
12690
12691/* Override any gcc2 internal prototype to avoid an error.  */
12692#ifdef __cplusplus
12693extern "C"
12694{
12695#endif
12696/* We use char because int might match the return type of a gcc2
12697   builtin and then its argument prototype would still apply.  */
12698char $ac_func ();
12699/* The GNU C library defines this for functions which it implements
12700    to always fail with ENOSYS.  Some functions are actually named
12701    something starting with __ and the normal name is an alias.  */
12702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12703choke me
12704#else
12705char (*f) () = $ac_func;
12706#endif
12707#ifdef __cplusplus
12708}
12709#endif
12710
12711int
12712main ()
12713{
12714return f != $ac_func;
12715  ;
12716  return 0;
12717}
12718_ACEOF
12719rm -f conftest.$ac_objext conftest$ac_exeext
12720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12721  (eval $ac_link) 2>conftest.er1
12722  ac_status=$?
12723  grep -v '^ *+' conftest.er1 >conftest.err
12724  rm -f conftest.er1
12725  cat conftest.err >&5
12726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727  (exit $ac_status); } &&
12728	 { ac_try='test -z "$ac_c_werror_flag"
12729			 || test ! -s conftest.err'
12730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731  (eval $ac_try) 2>&5
12732  ac_status=$?
12733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734  (exit $ac_status); }; } &&
12735	 { ac_try='test -s conftest$ac_exeext'
12736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737  (eval $ac_try) 2>&5
12738  ac_status=$?
12739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740  (exit $ac_status); }; }; then
12741  eval "$as_ac_var=yes"
12742else
12743  echo "$as_me: failed program was:" >&5
12744sed 's/^/| /' conftest.$ac_ext >&5
12745
12746eval "$as_ac_var=no"
12747fi
12748rm -f conftest.err conftest.$ac_objext \
12749      conftest$ac_exeext conftest.$ac_ext
12750fi
12751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12752echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12753if test `eval echo '${'$as_ac_var'}'` = yes; then
12754  cat >>confdefs.h <<_ACEOF
12755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12756_ACEOF
12757
12758fi
12759done
12760
12761
12762echo "$as_me:$LINENO: checking for st_blksize" >&5
12763echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12764cat >conftest.$ac_ext <<_ACEOF
12765/* confdefs.h.  */
12766_ACEOF
12767cat confdefs.h >>conftest.$ac_ext
12768cat >>conftest.$ac_ext <<_ACEOF
12769/* end confdefs.h.  */
12770#include <sys/types.h>
12771#include <sys/stat.h>
12772int
12773main ()
12774{
12775	struct stat st;
12776	int n;
12777
12778	stat("/", &st);
12779	n = (int)st.st_blksize;
12780  ;
12781  return 0;
12782}
12783_ACEOF
12784rm -f conftest.$ac_objext
12785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786  (eval $ac_compile) 2>conftest.er1
12787  ac_status=$?
12788  grep -v '^ *+' conftest.er1 >conftest.err
12789  rm -f conftest.er1
12790  cat conftest.err >&5
12791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792  (exit $ac_status); } &&
12793	 { ac_try='test -z "$ac_c_werror_flag"
12794			 || test ! -s conftest.err'
12795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796  (eval $ac_try) 2>&5
12797  ac_status=$?
12798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799  (exit $ac_status); }; } &&
12800	 { ac_try='test -s conftest.$ac_objext'
12801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802  (eval $ac_try) 2>&5
12803  ac_status=$?
12804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805  (exit $ac_status); }; }; then
12806  echo "$as_me:$LINENO: result: yes" >&5
12807echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12808#define HAVE_ST_BLKSIZE 1
12809_ACEOF
12810
12811else
12812  echo "$as_me: failed program was:" >&5
12813sed 's/^/| /' conftest.$ac_ext >&5
12814
12815echo "$as_me:$LINENO: result: no" >&5
12816echo "${ECHO_T}no" >&6
12817fi
12818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12819
12820echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12821echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
12822if test "$cross_compiling" = yes; then
12823  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12824echo "$as_me: error: failed to compile test program" >&2;}
12825   { (exit 1); exit 1; }; }
12826else
12827  cat >conftest.$ac_ext <<_ACEOF
12828/* confdefs.h.  */
12829_ACEOF
12830cat confdefs.h >>conftest.$ac_ext
12831cat >>conftest.$ac_ext <<_ACEOF
12832/* end confdefs.h.  */
12833#include <sys/types.h>
12834#include <sys/stat.h>
12835main() {struct stat st;  exit(stat("configure/", &st) != 0); }
12836_ACEOF
12837rm -f conftest$ac_exeext
12838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839  (eval $ac_link) 2>&5
12840  ac_status=$?
12841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844  (eval $ac_try) 2>&5
12845  ac_status=$?
12846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847  (exit $ac_status); }; }; then
12848  echo "$as_me:$LINENO: result: yes" >&5
12849echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12850#define STAT_IGNORES_SLASH 1
12851_ACEOF
12852
12853else
12854  echo "$as_me: program exited with status $ac_status" >&5
12855echo "$as_me: failed program was:" >&5
12856sed 's/^/| /' conftest.$ac_ext >&5
12857
12858( exit $ac_status )
12859echo "$as_me:$LINENO: result: no" >&5
12860echo "${ECHO_T}no" >&6
12861fi
12862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12863fi
12864
12865echo "$as_me:$LINENO: checking for iconv_open()" >&5
12866echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
12867save_LIBS="$LIBS"
12868LIBS="$LIBS -liconv"
12869cat >conftest.$ac_ext <<_ACEOF
12870/* confdefs.h.  */
12871_ACEOF
12872cat confdefs.h >>conftest.$ac_ext
12873cat >>conftest.$ac_ext <<_ACEOF
12874/* end confdefs.h.  */
12875
12876#ifdef HAVE_ICONV_H
12877# include <iconv.h>
12878#endif
12879
12880int
12881main ()
12882{
12883iconv_open("fr", "to");
12884  ;
12885  return 0;
12886}
12887_ACEOF
12888rm -f conftest.$ac_objext conftest$ac_exeext
12889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12890  (eval $ac_link) 2>conftest.er1
12891  ac_status=$?
12892  grep -v '^ *+' conftest.er1 >conftest.err
12893  rm -f conftest.er1
12894  cat conftest.err >&5
12895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896  (exit $ac_status); } &&
12897	 { ac_try='test -z "$ac_c_werror_flag"
12898			 || test ! -s conftest.err'
12899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900  (eval $ac_try) 2>&5
12901  ac_status=$?
12902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903  (exit $ac_status); }; } &&
12904	 { ac_try='test -s conftest$ac_exeext'
12905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906  (eval $ac_try) 2>&5
12907  ac_status=$?
12908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909  (exit $ac_status); }; }; then
12910  echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12911echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
12912#define HAVE_ICONV 1
12913_ACEOF
12914
12915else
12916  echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919LIBS="$save_LIBS"
12920    cat >conftest.$ac_ext <<_ACEOF
12921/* confdefs.h.  */
12922_ACEOF
12923cat confdefs.h >>conftest.$ac_ext
12924cat >>conftest.$ac_ext <<_ACEOF
12925/* end confdefs.h.  */
12926
12927#ifdef HAVE_ICONV_H
12928# include <iconv.h>
12929#endif
12930
12931int
12932main ()
12933{
12934iconv_open("fr", "to");
12935  ;
12936  return 0;
12937}
12938_ACEOF
12939rm -f conftest.$ac_objext conftest$ac_exeext
12940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941  (eval $ac_link) 2>conftest.er1
12942  ac_status=$?
12943  grep -v '^ *+' conftest.er1 >conftest.err
12944  rm -f conftest.er1
12945  cat conftest.err >&5
12946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947  (exit $ac_status); } &&
12948	 { ac_try='test -z "$ac_c_werror_flag"
12949			 || test ! -s conftest.err'
12950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951  (eval $ac_try) 2>&5
12952  ac_status=$?
12953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954  (exit $ac_status); }; } &&
12955	 { ac_try='test -s conftest$ac_exeext'
12956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957  (eval $ac_try) 2>&5
12958  ac_status=$?
12959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960  (exit $ac_status); }; }; then
12961  echo "$as_me:$LINENO: result: yes" >&5
12962echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12963#define HAVE_ICONV 1
12964_ACEOF
12965
12966else
12967  echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970echo "$as_me:$LINENO: result: no" >&5
12971echo "${ECHO_T}no" >&6
12972fi
12973rm -f conftest.err conftest.$ac_objext \
12974      conftest$ac_exeext conftest.$ac_ext
12975fi
12976rm -f conftest.err conftest.$ac_objext \
12977      conftest$ac_exeext conftest.$ac_ext
12978
12979
12980echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12981echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12982cat >conftest.$ac_ext <<_ACEOF
12983/* confdefs.h.  */
12984_ACEOF
12985cat confdefs.h >>conftest.$ac_ext
12986cat >>conftest.$ac_ext <<_ACEOF
12987/* end confdefs.h.  */
12988
12989#ifdef HAVE_LANGINFO_H
12990# include <langinfo.h>
12991#endif
12992
12993int
12994main ()
12995{
12996char *cs = nl_langinfo(CODESET);
12997  ;
12998  return 0;
12999}
13000_ACEOF
13001rm -f conftest.$ac_objext conftest$ac_exeext
13002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13003  (eval $ac_link) 2>conftest.er1
13004  ac_status=$?
13005  grep -v '^ *+' conftest.er1 >conftest.err
13006  rm -f conftest.er1
13007  cat conftest.err >&5
13008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009  (exit $ac_status); } &&
13010	 { ac_try='test -z "$ac_c_werror_flag"
13011			 || test ! -s conftest.err'
13012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013  (eval $ac_try) 2>&5
13014  ac_status=$?
13015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016  (exit $ac_status); }; } &&
13017	 { ac_try='test -s conftest$ac_exeext'
13018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019  (eval $ac_try) 2>&5
13020  ac_status=$?
13021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022  (exit $ac_status); }; }; then
13023  echo "$as_me:$LINENO: result: yes" >&5
13024echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13025#define HAVE_NL_LANGINFO_CODESET 1
13026_ACEOF
13027
13028else
13029  echo "$as_me: failed program was:" >&5
13030sed 's/^/| /' conftest.$ac_ext >&5
13031
13032echo "$as_me:$LINENO: result: no" >&5
13033echo "${ECHO_T}no" >&6
13034fi
13035rm -f conftest.err conftest.$ac_objext \
13036      conftest$ac_exeext conftest.$ac_ext
13037
13038echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13039echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
13040# Check whether --enable-acl or --disable-acl was given.
13041if test "${enable_acl+set}" = set; then
13042  enableval="$enable_acl"
13043
13044else
13045  enable_acl="yes"
13046fi;
13047if test "$enable_acl" = "yes"; then
13048echo "$as_me:$LINENO: result: no" >&5
13049echo "${ECHO_T}no" >&6
13050echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13051echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13052if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13053  echo $ECHO_N "(cached) $ECHO_C" >&6
13054else
13055  ac_check_lib_save_LIBS=$LIBS
13056LIBS="-lposix1e  $LIBS"
13057cat >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/* Override any gcc2 internal prototype to avoid an error.  */
13065#ifdef __cplusplus
13066extern "C"
13067#endif
13068/* We use char because int might match the return type of a gcc2
13069   builtin and then its argument prototype would still apply.  */
13070char acl_get_file ();
13071int
13072main ()
13073{
13074acl_get_file ();
13075  ;
13076  return 0;
13077}
13078_ACEOF
13079rm -f conftest.$ac_objext conftest$ac_exeext
13080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13081  (eval $ac_link) 2>conftest.er1
13082  ac_status=$?
13083  grep -v '^ *+' conftest.er1 >conftest.err
13084  rm -f conftest.er1
13085  cat conftest.err >&5
13086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087  (exit $ac_status); } &&
13088	 { ac_try='test -z "$ac_c_werror_flag"
13089			 || test ! -s conftest.err'
13090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091  (eval $ac_try) 2>&5
13092  ac_status=$?
13093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094  (exit $ac_status); }; } &&
13095	 { ac_try='test -s conftest$ac_exeext'
13096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097  (eval $ac_try) 2>&5
13098  ac_status=$?
13099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100  (exit $ac_status); }; }; then
13101  ac_cv_lib_posix1e_acl_get_file=yes
13102else
13103  echo "$as_me: failed program was:" >&5
13104sed 's/^/| /' conftest.$ac_ext >&5
13105
13106ac_cv_lib_posix1e_acl_get_file=no
13107fi
13108rm -f conftest.err conftest.$ac_objext \
13109      conftest$ac_exeext conftest.$ac_ext
13110LIBS=$ac_check_lib_save_LIBS
13111fi
13112echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13113echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13114if test $ac_cv_lib_posix1e_acl_get_file = yes; then
13115  LIBS="$LIBS -lposix1e"
13116else
13117  echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13118echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13119if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13120  echo $ECHO_N "(cached) $ECHO_C" >&6
13121else
13122  ac_check_lib_save_LIBS=$LIBS
13123LIBS="-lacl  $LIBS"
13124cat >conftest.$ac_ext <<_ACEOF
13125/* confdefs.h.  */
13126_ACEOF
13127cat confdefs.h >>conftest.$ac_ext
13128cat >>conftest.$ac_ext <<_ACEOF
13129/* end confdefs.h.  */
13130
13131/* Override any gcc2 internal prototype to avoid an error.  */
13132#ifdef __cplusplus
13133extern "C"
13134#endif
13135/* We use char because int might match the return type of a gcc2
13136   builtin and then its argument prototype would still apply.  */
13137char acl_get_file ();
13138int
13139main ()
13140{
13141acl_get_file ();
13142  ;
13143  return 0;
13144}
13145_ACEOF
13146rm -f conftest.$ac_objext conftest$ac_exeext
13147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148  (eval $ac_link) 2>conftest.er1
13149  ac_status=$?
13150  grep -v '^ *+' conftest.er1 >conftest.err
13151  rm -f conftest.er1
13152  cat conftest.err >&5
13153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154  (exit $ac_status); } &&
13155	 { ac_try='test -z "$ac_c_werror_flag"
13156			 || test ! -s conftest.err'
13157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158  (eval $ac_try) 2>&5
13159  ac_status=$?
13160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161  (exit $ac_status); }; } &&
13162	 { ac_try='test -s conftest$ac_exeext'
13163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164  (eval $ac_try) 2>&5
13165  ac_status=$?
13166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167  (exit $ac_status); }; }; then
13168  ac_cv_lib_acl_acl_get_file=yes
13169else
13170  echo "$as_me: failed program was:" >&5
13171sed 's/^/| /' conftest.$ac_ext >&5
13172
13173ac_cv_lib_acl_acl_get_file=no
13174fi
13175rm -f conftest.err conftest.$ac_objext \
13176      conftest$ac_exeext conftest.$ac_ext
13177LIBS=$ac_check_lib_save_LIBS
13178fi
13179echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13180echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13181if test $ac_cv_lib_acl_acl_get_file = yes; then
13182  LIBS="$LIBS -lacl"
13183		  echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13184echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13185if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13186  echo $ECHO_N "(cached) $ECHO_C" >&6
13187else
13188  ac_check_lib_save_LIBS=$LIBS
13189LIBS="-lattr  $LIBS"
13190cat >conftest.$ac_ext <<_ACEOF
13191/* confdefs.h.  */
13192_ACEOF
13193cat confdefs.h >>conftest.$ac_ext
13194cat >>conftest.$ac_ext <<_ACEOF
13195/* end confdefs.h.  */
13196
13197/* Override any gcc2 internal prototype to avoid an error.  */
13198#ifdef __cplusplus
13199extern "C"
13200#endif
13201/* We use char because int might match the return type of a gcc2
13202   builtin and then its argument prototype would still apply.  */
13203char fgetxattr ();
13204int
13205main ()
13206{
13207fgetxattr ();
13208  ;
13209  return 0;
13210}
13211_ACEOF
13212rm -f conftest.$ac_objext conftest$ac_exeext
13213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13214  (eval $ac_link) 2>conftest.er1
13215  ac_status=$?
13216  grep -v '^ *+' conftest.er1 >conftest.err
13217  rm -f conftest.er1
13218  cat conftest.err >&5
13219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220  (exit $ac_status); } &&
13221	 { ac_try='test -z "$ac_c_werror_flag"
13222			 || test ! -s conftest.err'
13223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224  (eval $ac_try) 2>&5
13225  ac_status=$?
13226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227  (exit $ac_status); }; } &&
13228	 { ac_try='test -s conftest$ac_exeext'
13229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230  (eval $ac_try) 2>&5
13231  ac_status=$?
13232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233  (exit $ac_status); }; }; then
13234  ac_cv_lib_attr_fgetxattr=yes
13235else
13236  echo "$as_me: failed program was:" >&5
13237sed 's/^/| /' conftest.$ac_ext >&5
13238
13239ac_cv_lib_attr_fgetxattr=no
13240fi
13241rm -f conftest.err conftest.$ac_objext \
13242      conftest$ac_exeext conftest.$ac_ext
13243LIBS=$ac_check_lib_save_LIBS
13244fi
13245echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13246echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13247if test $ac_cv_lib_attr_fgetxattr = yes; then
13248  LIBS="$LIBS -lattr"
13249fi
13250
13251fi
13252
13253fi
13254
13255
13256echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13257echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13258cat >conftest.$ac_ext <<_ACEOF
13259/* confdefs.h.  */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
13263/* end confdefs.h.  */
13264
13265#include <sys/types.h>
13266#ifdef HAVE_SYS_ACL_H
13267# include <sys/acl.h>
13268#endif
13269acl_t acl;
13270int
13271main ()
13272{
13273acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13274	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13275	acl_free(acl);
13276  ;
13277  return 0;
13278}
13279_ACEOF
13280rm -f conftest.$ac_objext conftest$ac_exeext
13281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13282  (eval $ac_link) 2>conftest.er1
13283  ac_status=$?
13284  grep -v '^ *+' conftest.er1 >conftest.err
13285  rm -f conftest.er1
13286  cat conftest.err >&5
13287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288  (exit $ac_status); } &&
13289	 { ac_try='test -z "$ac_c_werror_flag"
13290			 || test ! -s conftest.err'
13291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292  (eval $ac_try) 2>&5
13293  ac_status=$?
13294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295  (exit $ac_status); }; } &&
13296	 { ac_try='test -s conftest$ac_exeext'
13297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298  (eval $ac_try) 2>&5
13299  ac_status=$?
13300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301  (exit $ac_status); }; }; then
13302  echo "$as_me:$LINENO: result: yes" >&5
13303echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13304#define HAVE_POSIX_ACL 1
13305_ACEOF
13306
13307else
13308  echo "$as_me: failed program was:" >&5
13309sed 's/^/| /' conftest.$ac_ext >&5
13310
13311echo "$as_me:$LINENO: result: no" >&5
13312echo "${ECHO_T}no" >&6
13313fi
13314rm -f conftest.err conftest.$ac_objext \
13315      conftest$ac_exeext conftest.$ac_ext
13316
13317echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13318echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13319cat >conftest.$ac_ext <<_ACEOF
13320/* confdefs.h.  */
13321_ACEOF
13322cat confdefs.h >>conftest.$ac_ext
13323cat >>conftest.$ac_ext <<_ACEOF
13324/* end confdefs.h.  */
13325
13326#ifdef HAVE_SYS_ACL_H
13327# include <sys/acl.h>
13328#endif
13329int
13330main ()
13331{
13332acl("foo", GETACLCNT, 0, NULL);
13333
13334  ;
13335  return 0;
13336}
13337_ACEOF
13338rm -f conftest.$ac_objext conftest$ac_exeext
13339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13340  (eval $ac_link) 2>conftest.er1
13341  ac_status=$?
13342  grep -v '^ *+' conftest.er1 >conftest.err
13343  rm -f conftest.er1
13344  cat conftest.err >&5
13345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346  (exit $ac_status); } &&
13347	 { ac_try='test -z "$ac_c_werror_flag"
13348			 || test ! -s conftest.err'
13349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350  (eval $ac_try) 2>&5
13351  ac_status=$?
13352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353  (exit $ac_status); }; } &&
13354	 { ac_try='test -s conftest$ac_exeext'
13355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356  (eval $ac_try) 2>&5
13357  ac_status=$?
13358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359  (exit $ac_status); }; }; then
13360  echo "$as_me:$LINENO: result: yes" >&5
13361echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13362#define HAVE_SOLARIS_ACL 1
13363_ACEOF
13364
13365else
13366  echo "$as_me: failed program was:" >&5
13367sed 's/^/| /' conftest.$ac_ext >&5
13368
13369echo "$as_me:$LINENO: result: no" >&5
13370echo "${ECHO_T}no" >&6
13371fi
13372rm -f conftest.err conftest.$ac_objext \
13373      conftest$ac_exeext conftest.$ac_ext
13374
13375echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13376echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13377cat >conftest.$ac_ext <<_ACEOF
13378/* confdefs.h.  */
13379_ACEOF
13380cat confdefs.h >>conftest.$ac_ext
13381cat >>conftest.$ac_ext <<_ACEOF
13382/* end confdefs.h.  */
13383
13384#ifdef HAVE_SYS_ACL_H
13385# include <sys/acl.h>
13386#endif
13387#ifdef HAVE_SYS_ACCESS_H
13388# include <sys/access.h>
13389#endif
13390#define _ALL_SOURCE
13391
13392#include <sys/stat.h>
13393
13394int aclsize;
13395struct acl *aclent;
13396int
13397main ()
13398{
13399aclsize = sizeof(struct acl);
13400	aclent = (void *)malloc(aclsize);
13401	statacl("foo", STX_NORMAL, aclent, aclsize);
13402
13403  ;
13404  return 0;
13405}
13406_ACEOF
13407rm -f conftest.$ac_objext conftest$ac_exeext
13408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13409  (eval $ac_link) 2>conftest.er1
13410  ac_status=$?
13411  grep -v '^ *+' conftest.er1 >conftest.err
13412  rm -f conftest.er1
13413  cat conftest.err >&5
13414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415  (exit $ac_status); } &&
13416	 { ac_try='test -z "$ac_c_werror_flag"
13417			 || test ! -s conftest.err'
13418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419  (eval $ac_try) 2>&5
13420  ac_status=$?
13421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422  (exit $ac_status); }; } &&
13423	 { ac_try='test -s conftest$ac_exeext'
13424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425  (eval $ac_try) 2>&5
13426  ac_status=$?
13427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428  (exit $ac_status); }; }; then
13429  echo "$as_me:$LINENO: result: yes" >&5
13430echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13431#define HAVE_AIX_ACL 1
13432_ACEOF
13433
13434else
13435  echo "$as_me: failed program was:" >&5
13436sed 's/^/| /' conftest.$ac_ext >&5
13437
13438echo "$as_me:$LINENO: result: no" >&5
13439echo "${ECHO_T}no" >&6
13440fi
13441rm -f conftest.err conftest.$ac_objext \
13442      conftest$ac_exeext conftest.$ac_ext
13443else
13444  echo "$as_me:$LINENO: result: yes" >&5
13445echo "${ECHO_T}yes" >&6
13446fi
13447
13448echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13449echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
13450# Check whether --enable-gpm or --disable-gpm was given.
13451if test "${enable_gpm+set}" = set; then
13452  enableval="$enable_gpm"
13453
13454else
13455  enable_gpm="yes"
13456fi;
13457
13458if test "$enable_gpm" = "yes"; then
13459  echo "$as_me:$LINENO: result: no" >&5
13460echo "${ECHO_T}no" >&6
13461    echo "$as_me:$LINENO: checking for gpm" >&5
13462echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13463if test "${vi_cv_have_gpm+set}" = set; then
13464  echo $ECHO_N "(cached) $ECHO_C" >&6
13465else
13466  olibs="$LIBS" ; LIBS="-lgpm"
13467	cat >conftest.$ac_ext <<_ACEOF
13468/* confdefs.h.  */
13469_ACEOF
13470cat confdefs.h >>conftest.$ac_ext
13471cat >>conftest.$ac_ext <<_ACEOF
13472/* end confdefs.h.  */
13473#include <gpm.h>
13474	    #include <linux/keyboard.h>
13475int
13476main ()
13477{
13478Gpm_GetLibVersion(NULL);
13479  ;
13480  return 0;
13481}
13482_ACEOF
13483rm -f conftest.$ac_objext conftest$ac_exeext
13484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13485  (eval $ac_link) 2>conftest.er1
13486  ac_status=$?
13487  grep -v '^ *+' conftest.er1 >conftest.err
13488  rm -f conftest.er1
13489  cat conftest.err >&5
13490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491  (exit $ac_status); } &&
13492	 { ac_try='test -z "$ac_c_werror_flag"
13493			 || test ! -s conftest.err'
13494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495  (eval $ac_try) 2>&5
13496  ac_status=$?
13497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498  (exit $ac_status); }; } &&
13499	 { ac_try='test -s conftest$ac_exeext'
13500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501  (eval $ac_try) 2>&5
13502  ac_status=$?
13503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504  (exit $ac_status); }; }; then
13505  	    	    vi_cv_have_gpm=yes
13506else
13507  echo "$as_me: failed program was:" >&5
13508sed 's/^/| /' conftest.$ac_ext >&5
13509
13510vi_cv_have_gpm=no
13511fi
13512rm -f conftest.err conftest.$ac_objext \
13513      conftest$ac_exeext conftest.$ac_ext
13514	LIBS="$olibs"
13515
13516fi
13517echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13518echo "${ECHO_T}$vi_cv_have_gpm" >&6
13519  if test $vi_cv_have_gpm = yes; then
13520    LIBS="$LIBS -lgpm"
13521    cat >>confdefs.h <<\_ACEOF
13522#define HAVE_GPM 1
13523_ACEOF
13524
13525  fi
13526else
13527  echo "$as_me:$LINENO: result: yes" >&5
13528echo "${ECHO_T}yes" >&6
13529fi
13530
13531echo "$as_me:$LINENO: checking for rename" >&5
13532echo $ECHO_N "checking for rename... $ECHO_C" >&6
13533cat >conftest.$ac_ext <<_ACEOF
13534/* confdefs.h.  */
13535_ACEOF
13536cat confdefs.h >>conftest.$ac_ext
13537cat >>conftest.$ac_ext <<_ACEOF
13538/* end confdefs.h.  */
13539#include <stdio.h>
13540int
13541main ()
13542{
13543rename("this", "that")
13544  ;
13545  return 0;
13546}
13547_ACEOF
13548rm -f conftest.$ac_objext conftest$ac_exeext
13549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13550  (eval $ac_link) 2>conftest.er1
13551  ac_status=$?
13552  grep -v '^ *+' conftest.er1 >conftest.err
13553  rm -f conftest.er1
13554  cat conftest.err >&5
13555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556  (exit $ac_status); } &&
13557	 { ac_try='test -z "$ac_c_werror_flag"
13558			 || test ! -s conftest.err'
13559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560  (eval $ac_try) 2>&5
13561  ac_status=$?
13562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563  (exit $ac_status); }; } &&
13564	 { ac_try='test -s conftest$ac_exeext'
13565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566  (eval $ac_try) 2>&5
13567  ac_status=$?
13568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569  (exit $ac_status); }; }; then
13570  echo "$as_me:$LINENO: result: yes" >&5
13571echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13572#define HAVE_RENAME 1
13573_ACEOF
13574
13575else
13576  echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579echo "$as_me:$LINENO: result: no" >&5
13580echo "${ECHO_T}no" >&6
13581fi
13582rm -f conftest.err conftest.$ac_objext \
13583      conftest$ac_exeext conftest.$ac_ext
13584
13585echo "$as_me:$LINENO: checking for sysctl" >&5
13586echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13587cat >conftest.$ac_ext <<_ACEOF
13588/* confdefs.h.  */
13589_ACEOF
13590cat confdefs.h >>conftest.$ac_ext
13591cat >>conftest.$ac_ext <<_ACEOF
13592/* end confdefs.h.  */
13593#include <sys/types.h>
13594#include <sys/sysctl.h>
13595int
13596main ()
13597{
13598	int mib[2], r;
13599	size_t len;
13600
13601	mib[0] = CTL_HW;
13602	mib[1] = HW_USERMEM;
13603	len = sizeof(r);
13604	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13605
13606  ;
13607  return 0;
13608}
13609_ACEOF
13610rm -f conftest.$ac_objext
13611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13612  (eval $ac_compile) 2>conftest.er1
13613  ac_status=$?
13614  grep -v '^ *+' conftest.er1 >conftest.err
13615  rm -f conftest.er1
13616  cat conftest.err >&5
13617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618  (exit $ac_status); } &&
13619	 { ac_try='test -z "$ac_c_werror_flag"
13620			 || test ! -s conftest.err'
13621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622  (eval $ac_try) 2>&5
13623  ac_status=$?
13624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625  (exit $ac_status); }; } &&
13626	 { ac_try='test -s conftest.$ac_objext'
13627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628  (eval $ac_try) 2>&5
13629  ac_status=$?
13630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631  (exit $ac_status); }; }; then
13632  echo "$as_me:$LINENO: result: yes" >&5
13633echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13634#define HAVE_SYSCTL 1
13635_ACEOF
13636
13637else
13638  echo "$as_me: failed program was:" >&5
13639sed 's/^/| /' conftest.$ac_ext >&5
13640
13641echo "$as_me:$LINENO: result: not usable" >&5
13642echo "${ECHO_T}not usable" >&6
13643fi
13644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13645
13646echo "$as_me:$LINENO: checking for sysinfo" >&5
13647echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13648cat >conftest.$ac_ext <<_ACEOF
13649/* confdefs.h.  */
13650_ACEOF
13651cat confdefs.h >>conftest.$ac_ext
13652cat >>conftest.$ac_ext <<_ACEOF
13653/* end confdefs.h.  */
13654#include <sys/types.h>
13655#include <sys/sysinfo.h>
13656int
13657main ()
13658{
13659	struct sysinfo sinfo;
13660	int t;
13661
13662	(void)sysinfo(&sinfo);
13663	t = sinfo.totalram;
13664
13665  ;
13666  return 0;
13667}
13668_ACEOF
13669rm -f conftest.$ac_objext
13670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671  (eval $ac_compile) 2>conftest.er1
13672  ac_status=$?
13673  grep -v '^ *+' conftest.er1 >conftest.err
13674  rm -f conftest.er1
13675  cat conftest.err >&5
13676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677  (exit $ac_status); } &&
13678	 { ac_try='test -z "$ac_c_werror_flag"
13679			 || test ! -s conftest.err'
13680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681  (eval $ac_try) 2>&5
13682  ac_status=$?
13683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684  (exit $ac_status); }; } &&
13685	 { ac_try='test -s conftest.$ac_objext'
13686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687  (eval $ac_try) 2>&5
13688  ac_status=$?
13689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690  (exit $ac_status); }; }; then
13691  echo "$as_me:$LINENO: result: yes" >&5
13692echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13693#define HAVE_SYSINFO 1
13694_ACEOF
13695
13696else
13697  echo "$as_me: failed program was:" >&5
13698sed 's/^/| /' conftest.$ac_ext >&5
13699
13700echo "$as_me:$LINENO: result: not usable" >&5
13701echo "${ECHO_T}not usable" >&6
13702fi
13703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13704
13705echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
13706echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6
13707cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h.  */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h.  */
13713#include <sys/types.h>
13714#include <sys/sysinfo.h>
13715int
13716main ()
13717{
13718	struct sysinfo sinfo;
13719 	sinfo.mem_unit = 1;
13720
13721  ;
13722  return 0;
13723}
13724_ACEOF
13725rm -f conftest.$ac_objext
13726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727  (eval $ac_compile) 2>conftest.er1
13728  ac_status=$?
13729  grep -v '^ *+' conftest.er1 >conftest.err
13730  rm -f conftest.er1
13731  cat conftest.err >&5
13732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733  (exit $ac_status); } &&
13734	 { ac_try='test -z "$ac_c_werror_flag"
13735			 || test ! -s conftest.err'
13736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737  (eval $ac_try) 2>&5
13738  ac_status=$?
13739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740  (exit $ac_status); }; } &&
13741	 { ac_try='test -s conftest.$ac_objext'
13742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743  (eval $ac_try) 2>&5
13744  ac_status=$?
13745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746  (exit $ac_status); }; }; then
13747  echo "$as_me:$LINENO: result: yes" >&5
13748echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13749#define HAVE_SYSINFO_MEM_UNIT 1
13750_ACEOF
13751
13752else
13753  echo "$as_me: failed program was:" >&5
13754sed 's/^/| /' conftest.$ac_ext >&5
13755
13756echo "$as_me:$LINENO: result: no" >&5
13757echo "${ECHO_T}no" >&6
13758fi
13759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13760
13761echo "$as_me:$LINENO: checking for sysconf" >&5
13762echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13763cat >conftest.$ac_ext <<_ACEOF
13764/* confdefs.h.  */
13765_ACEOF
13766cat confdefs.h >>conftest.$ac_ext
13767cat >>conftest.$ac_ext <<_ACEOF
13768/* end confdefs.h.  */
13769#include <unistd.h>
13770int
13771main ()
13772{
13773	(void)sysconf(_SC_PAGESIZE);
13774	(void)sysconf(_SC_PHYS_PAGES);
13775
13776  ;
13777  return 0;
13778}
13779_ACEOF
13780rm -f conftest.$ac_objext
13781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782  (eval $ac_compile) 2>conftest.er1
13783  ac_status=$?
13784  grep -v '^ *+' conftest.er1 >conftest.err
13785  rm -f conftest.er1
13786  cat conftest.err >&5
13787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788  (exit $ac_status); } &&
13789	 { ac_try='test -z "$ac_c_werror_flag"
13790			 || test ! -s conftest.err'
13791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792  (eval $ac_try) 2>&5
13793  ac_status=$?
13794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795  (exit $ac_status); }; } &&
13796	 { ac_try='test -s conftest.$ac_objext'
13797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798  (eval $ac_try) 2>&5
13799  ac_status=$?
13800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801  (exit $ac_status); }; }; then
13802  echo "$as_me:$LINENO: result: yes" >&5
13803echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13804#define HAVE_SYSCONF 1
13805_ACEOF
13806
13807else
13808  echo "$as_me: failed program was:" >&5
13809sed 's/^/| /' conftest.$ac_ext >&5
13810
13811echo "$as_me:$LINENO: result: not usable" >&5
13812echo "${ECHO_T}not usable" >&6
13813fi
13814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13815
13816
13817echo "$as_me:$LINENO: checking size of int" >&5
13818echo $ECHO_N "checking size of int... $ECHO_C" >&6
13819if test "${ac_cv_sizeof_int+set}" = set; then
13820  echo $ECHO_N "(cached) $ECHO_C" >&6
13821else
13822  if test "$cross_compiling" = yes; then
13823  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13824echo "$as_me: error: failed to compile test program" >&2;}
13825   { (exit 1); exit 1; }; }
13826else
13827  cat >conftest.$ac_ext <<_ACEOF
13828/* confdefs.h.  */
13829_ACEOF
13830cat confdefs.h >>conftest.$ac_ext
13831cat >>conftest.$ac_ext <<_ACEOF
13832/* end confdefs.h.  */
13833#include <stdio.h>
13834		main()
13835		{
13836		  FILE *f=fopen("conftestval", "w");
13837		  if (!f) exit(1);
13838		  fprintf(f, "%d\n", (int)sizeof(int));
13839		  exit(0);
13840		}
13841_ACEOF
13842rm -f conftest$ac_exeext
13843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844  (eval $ac_link) 2>&5
13845  ac_status=$?
13846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849  (eval $ac_try) 2>&5
13850  ac_status=$?
13851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852  (exit $ac_status); }; }; then
13853  ac_cv_sizeof_int=`cat conftestval`
13854else
13855  echo "$as_me: program exited with status $ac_status" >&5
13856echo "$as_me: failed program was:" >&5
13857sed 's/^/| /' conftest.$ac_ext >&5
13858
13859( exit $ac_status )
13860ac_cv_sizeof_int=0
13861fi
13862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13863fi
13864fi
13865
13866echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13867echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13868cat >>confdefs.h <<_ACEOF
13869#define SIZEOF_INT $ac_cv_sizeof_int
13870_ACEOF
13871
13872
13873echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13874echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
13875bcopy_test_prog='
13876main() {
13877  char buf[10];
13878  strcpy(buf, "abcdefghi");
13879  mch_memmove(buf, buf + 2, 3);
13880  if (strncmp(buf, "ababcf", 6))
13881    exit(1);
13882  strcpy(buf, "abcdefghi");
13883  mch_memmove(buf + 2, buf, 3);
13884  if (strncmp(buf, "cdedef", 6))
13885    exit(1);
13886  exit(0); /* libc version works properly.  */
13887}'
13888
13889
13890if test "$cross_compiling" = yes; then
13891  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13892echo "$as_me: error: failed to compile test program" >&2;}
13893   { (exit 1); exit 1; }; }
13894else
13895  cat >conftest.$ac_ext <<_ACEOF
13896/* confdefs.h.  */
13897_ACEOF
13898cat confdefs.h >>conftest.$ac_ext
13899cat >>conftest.$ac_ext <<_ACEOF
13900/* end confdefs.h.  */
13901#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
13902_ACEOF
13903rm -f conftest$ac_exeext
13904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13905  (eval $ac_link) 2>&5
13906  ac_status=$?
13907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910  (eval $ac_try) 2>&5
13911  ac_status=$?
13912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913  (exit $ac_status); }; }; then
13914  cat >>confdefs.h <<\_ACEOF
13915#define USEMEMMOVE 1
13916_ACEOF
13917 echo "$as_me:$LINENO: result: memmove does" >&5
13918echo "${ECHO_T}memmove does" >&6
13919else
13920  echo "$as_me: program exited with status $ac_status" >&5
13921echo "$as_me: failed program was:" >&5
13922sed 's/^/| /' conftest.$ac_ext >&5
13923
13924( exit $ac_status )
13925if test "$cross_compiling" = yes; then
13926  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13927echo "$as_me: error: failed to compile test program" >&2;}
13928   { (exit 1); exit 1; }; }
13929else
13930  cat >conftest.$ac_ext <<_ACEOF
13931/* confdefs.h.  */
13932_ACEOF
13933cat confdefs.h >>conftest.$ac_ext
13934cat >>conftest.$ac_ext <<_ACEOF
13935/* end confdefs.h.  */
13936#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
13937_ACEOF
13938rm -f conftest$ac_exeext
13939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940  (eval $ac_link) 2>&5
13941  ac_status=$?
13942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945  (eval $ac_try) 2>&5
13946  ac_status=$?
13947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948  (exit $ac_status); }; }; then
13949  cat >>confdefs.h <<\_ACEOF
13950#define USEBCOPY 1
13951_ACEOF
13952 echo "$as_me:$LINENO: result: bcopy does" >&5
13953echo "${ECHO_T}bcopy does" >&6
13954else
13955  echo "$as_me: program exited with status $ac_status" >&5
13956echo "$as_me: failed program was:" >&5
13957sed 's/^/| /' conftest.$ac_ext >&5
13958
13959( exit $ac_status )
13960if test "$cross_compiling" = yes; then
13961  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13962echo "$as_me: error: failed to compile test program" >&2;}
13963   { (exit 1); exit 1; }; }
13964else
13965  cat >conftest.$ac_ext <<_ACEOF
13966/* confdefs.h.  */
13967_ACEOF
13968cat confdefs.h >>conftest.$ac_ext
13969cat >>conftest.$ac_ext <<_ACEOF
13970/* end confdefs.h.  */
13971#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
13972_ACEOF
13973rm -f conftest$ac_exeext
13974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13975  (eval $ac_link) 2>&5
13976  ac_status=$?
13977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980  (eval $ac_try) 2>&5
13981  ac_status=$?
13982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983  (exit $ac_status); }; }; then
13984  cat >>confdefs.h <<\_ACEOF
13985#define USEMEMCPY 1
13986_ACEOF
13987 echo "$as_me:$LINENO: result: memcpy does" >&5
13988echo "${ECHO_T}memcpy does" >&6
13989else
13990  echo "$as_me: program exited with status $ac_status" >&5
13991echo "$as_me: failed program was:" >&5
13992sed 's/^/| /' conftest.$ac_ext >&5
13993
13994( exit $ac_status )
13995echo "$as_me:$LINENO: result: no" >&5
13996echo "${ECHO_T}no" >&6
13997fi
13998rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13999fi
14000fi
14001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14002fi
14003fi
14004rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14005fi
14006
14007
14008if test "$enable_multibyte" = "yes"; then
14009  cflags_save=$CFLAGS
14010  ldflags_save=$LDFLAGS
14011  if test -n "$x_includes" ; then
14012    CFLAGS="$CFLAGS -I$x_includes"
14013    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
14014    echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
14015echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
14016    cat >conftest.$ac_ext <<_ACEOF
14017/* confdefs.h.  */
14018_ACEOF
14019cat confdefs.h >>conftest.$ac_ext
14020cat >>conftest.$ac_ext <<_ACEOF
14021/* end confdefs.h.  */
14022#include <X11/Xlocale.h>
14023int
14024main ()
14025{
14026
14027  ;
14028  return 0;
14029}
14030_ACEOF
14031rm -f conftest.$ac_objext
14032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033  (eval $ac_compile) 2>conftest.er1
14034  ac_status=$?
14035  grep -v '^ *+' conftest.er1 >conftest.err
14036  rm -f conftest.er1
14037  cat conftest.err >&5
14038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039  (exit $ac_status); } &&
14040	 { ac_try='test -z "$ac_c_werror_flag"
14041			 || test ! -s conftest.err'
14042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043  (eval $ac_try) 2>&5
14044  ac_status=$?
14045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046  (exit $ac_status); }; } &&
14047	 { ac_try='test -s conftest.$ac_objext'
14048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049  (eval $ac_try) 2>&5
14050  ac_status=$?
14051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052  (exit $ac_status); }; }; then
14053  cat >conftest.$ac_ext <<_ACEOF
14054/* confdefs.h.  */
14055_ACEOF
14056cat confdefs.h >>conftest.$ac_ext
14057cat >>conftest.$ac_ext <<_ACEOF
14058/* end confdefs.h.  */
14059
14060/* Override any gcc2 internal prototype to avoid an error.  */
14061#ifdef __cplusplus
14062extern "C"
14063#endif
14064/* We use char because int might match the return type of a gcc2
14065   builtin and then its argument prototype would still apply.  */
14066char _Xsetlocale ();
14067int
14068main ()
14069{
14070_Xsetlocale ();
14071  ;
14072  return 0;
14073}
14074_ACEOF
14075rm -f conftest.$ac_objext conftest$ac_exeext
14076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14077  (eval $ac_link) 2>conftest.er1
14078  ac_status=$?
14079  grep -v '^ *+' conftest.er1 >conftest.err
14080  rm -f conftest.er1
14081  cat conftest.err >&5
14082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083  (exit $ac_status); } &&
14084	 { ac_try='test -z "$ac_c_werror_flag"
14085			 || test ! -s conftest.err'
14086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087  (eval $ac_try) 2>&5
14088  ac_status=$?
14089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090  (exit $ac_status); }; } &&
14091	 { ac_try='test -s conftest$ac_exeext'
14092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093  (eval $ac_try) 2>&5
14094  ac_status=$?
14095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096  (exit $ac_status); }; }; then
14097  echo "$as_me:$LINENO: result: yes" >&5
14098echo "${ECHO_T}yes" >&6
14099		cat >>confdefs.h <<\_ACEOF
14100#define X_LOCALE 1
14101_ACEOF
14102
14103else
14104  echo "$as_me: failed program was:" >&5
14105sed 's/^/| /' conftest.$ac_ext >&5
14106
14107echo "$as_me:$LINENO: result: no" >&5
14108echo "${ECHO_T}no" >&6
14109fi
14110rm -f conftest.err conftest.$ac_objext \
14111      conftest$ac_exeext conftest.$ac_ext
14112else
14113  echo "$as_me: failed program was:" >&5
14114sed 's/^/| /' conftest.$ac_ext >&5
14115
14116echo "$as_me:$LINENO: result: no" >&5
14117echo "${ECHO_T}no" >&6
14118fi
14119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14120  fi
14121  CFLAGS=$cflags_save
14122  LDFLAGS=$ldflags_save
14123fi
14124
14125echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14126echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14127if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14128  echo $ECHO_N "(cached) $ECHO_C" >&6
14129else
14130  ac_check_lib_save_LIBS=$LIBS
14131LIBS="-lxpg4  $LIBS"
14132cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h.  */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
14137/* end confdefs.h.  */
14138
14139/* Override any gcc2 internal prototype to avoid an error.  */
14140#ifdef __cplusplus
14141extern "C"
14142#endif
14143/* We use char because int might match the return type of a gcc2
14144   builtin and then its argument prototype would still apply.  */
14145char _xpg4_setrunelocale ();
14146int
14147main ()
14148{
14149_xpg4_setrunelocale ();
14150  ;
14151  return 0;
14152}
14153_ACEOF
14154rm -f conftest.$ac_objext conftest$ac_exeext
14155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14156  (eval $ac_link) 2>conftest.er1
14157  ac_status=$?
14158  grep -v '^ *+' conftest.er1 >conftest.err
14159  rm -f conftest.er1
14160  cat conftest.err >&5
14161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162  (exit $ac_status); } &&
14163	 { ac_try='test -z "$ac_c_werror_flag"
14164			 || test ! -s conftest.err'
14165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166  (eval $ac_try) 2>&5
14167  ac_status=$?
14168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169  (exit $ac_status); }; } &&
14170	 { ac_try='test -s conftest$ac_exeext'
14171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172  (eval $ac_try) 2>&5
14173  ac_status=$?
14174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175  (exit $ac_status); }; }; then
14176  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14177else
14178  echo "$as_me: failed program was:" >&5
14179sed 's/^/| /' conftest.$ac_ext >&5
14180
14181ac_cv_lib_xpg4__xpg4_setrunelocale=no
14182fi
14183rm -f conftest.err conftest.$ac_objext \
14184      conftest$ac_exeext conftest.$ac_ext
14185LIBS=$ac_check_lib_save_LIBS
14186fi
14187echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14188echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14189if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
14190  LIBS="$LIBS -lxpg4"
14191fi
14192
14193
14194echo "$as_me:$LINENO: checking how to create tags" >&5
14195echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
14196test -f tags && mv tags tags.save
14197if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14198  TAGPRG="ctags -I INIT+ --fields=+S"
14199else
14200  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14201  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14202  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14203  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14204  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14205  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14206  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14207fi
14208test -f tags.save && mv tags.save tags
14209echo "$as_me:$LINENO: result: $TAGPRG" >&5
14210echo "${ECHO_T}$TAGPRG" >&6
14211
14212echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14213echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
14214MANDEF="man"
14215(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14216echo "$as_me:$LINENO: result: $MANDEF" >&5
14217echo "${ECHO_T}$MANDEF" >&6
14218if test "$MANDEF" = "man -s"; then
14219  cat >>confdefs.h <<\_ACEOF
14220#define USEMAN_S 1
14221_ACEOF
14222
14223fi
14224
14225echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14226echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
14227# Check whether --enable-nls or --disable-nls was given.
14228if test "${enable_nls+set}" = set; then
14229  enableval="$enable_nls"
14230
14231else
14232  enable_nls="yes"
14233fi;
14234
14235if test "$enable_nls" = "yes"; then
14236  echo "$as_me:$LINENO: result: no" >&5
14237echo "${ECHO_T}no" >&6
14238
14239  INSTALL_LANGS=install-languages
14240
14241  INSTALL_TOOL_LANGS=install-tool-languages
14242
14243
14244  # Extract the first word of "msgfmt", so it can be a program name with args.
14245set dummy msgfmt; ac_word=$2
14246echo "$as_me:$LINENO: checking for $ac_word" >&5
14247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14248if test "${ac_cv_prog_MSGFMT+set}" = set; then
14249  echo $ECHO_N "(cached) $ECHO_C" >&6
14250else
14251  if test -n "$MSGFMT"; then
14252  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14253else
14254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14255for as_dir in $PATH
14256do
14257  IFS=$as_save_IFS
14258  test -z "$as_dir" && as_dir=.
14259  for ac_exec_ext in '' $ac_executable_extensions; do
14260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14261    ac_cv_prog_MSGFMT="msgfmt"
14262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14263    break 2
14264  fi
14265done
14266done
14267
14268fi
14269fi
14270MSGFMT=$ac_cv_prog_MSGFMT
14271if test -n "$MSGFMT"; then
14272  echo "$as_me:$LINENO: result: $MSGFMT" >&5
14273echo "${ECHO_T}$MSGFMT" >&6
14274else
14275  echo "$as_me:$LINENO: result: no" >&5
14276echo "${ECHO_T}no" >&6
14277fi
14278
14279  echo "$as_me:$LINENO: checking for NLS" >&5
14280echo $ECHO_N "checking for NLS... $ECHO_C" >&6
14281  if test -f po/Makefile; then
14282    have_gettext="no"
14283    if test -n "$MSGFMT"; then
14284      cat >conftest.$ac_ext <<_ACEOF
14285/* confdefs.h.  */
14286_ACEOF
14287cat confdefs.h >>conftest.$ac_ext
14288cat >>conftest.$ac_ext <<_ACEOF
14289/* end confdefs.h.  */
14290#include <libintl.h>
14291int
14292main ()
14293{
14294gettext("Test");
14295  ;
14296  return 0;
14297}
14298_ACEOF
14299rm -f conftest.$ac_objext conftest$ac_exeext
14300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14301  (eval $ac_link) 2>conftest.er1
14302  ac_status=$?
14303  grep -v '^ *+' conftest.er1 >conftest.err
14304  rm -f conftest.er1
14305  cat conftest.err >&5
14306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307  (exit $ac_status); } &&
14308	 { ac_try='test -z "$ac_c_werror_flag"
14309			 || test ! -s conftest.err'
14310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311  (eval $ac_try) 2>&5
14312  ac_status=$?
14313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314  (exit $ac_status); }; } &&
14315	 { ac_try='test -s conftest$ac_exeext'
14316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317  (eval $ac_try) 2>&5
14318  ac_status=$?
14319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320  (exit $ac_status); }; }; then
14321  echo "$as_me:$LINENO: result: gettext() works" >&5
14322echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
14323else
14324  echo "$as_me: failed program was:" >&5
14325sed 's/^/| /' conftest.$ac_ext >&5
14326
14327olibs=$LIBS
14328	  LIBS="$LIBS -lintl"
14329	  cat >conftest.$ac_ext <<_ACEOF
14330/* confdefs.h.  */
14331_ACEOF
14332cat confdefs.h >>conftest.$ac_ext
14333cat >>conftest.$ac_ext <<_ACEOF
14334/* end confdefs.h.  */
14335#include <libintl.h>
14336int
14337main ()
14338{
14339gettext("Test");
14340  ;
14341  return 0;
14342}
14343_ACEOF
14344rm -f conftest.$ac_objext conftest$ac_exeext
14345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14346  (eval $ac_link) 2>conftest.er1
14347  ac_status=$?
14348  grep -v '^ *+' conftest.er1 >conftest.err
14349  rm -f conftest.er1
14350  cat conftest.err >&5
14351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352  (exit $ac_status); } &&
14353	 { ac_try='test -z "$ac_c_werror_flag"
14354			 || test ! -s conftest.err'
14355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356  (eval $ac_try) 2>&5
14357  ac_status=$?
14358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359  (exit $ac_status); }; } &&
14360	 { ac_try='test -s conftest$ac_exeext'
14361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362  (eval $ac_try) 2>&5
14363  ac_status=$?
14364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365  (exit $ac_status); }; }; then
14366  echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14367echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
14368else
14369  echo "$as_me: failed program was:" >&5
14370sed 's/^/| /' conftest.$ac_ext >&5
14371
14372echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14373echo "${ECHO_T}gettext() doesn't work" >&6;
14374	      LIBS=$olibs
14375fi
14376rm -f conftest.err conftest.$ac_objext \
14377      conftest$ac_exeext conftest.$ac_ext
14378fi
14379rm -f conftest.err conftest.$ac_objext \
14380      conftest$ac_exeext conftest.$ac_ext
14381    else
14382      echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14383echo "${ECHO_T}msgfmt not found - disabled" >&6;
14384    fi
14385    if test $have_gettext = "yes"; then
14386      cat >>confdefs.h <<\_ACEOF
14387#define HAVE_GETTEXT 1
14388_ACEOF
14389
14390      MAKEMO=yes
14391
14392
14393for ac_func in bind_textdomain_codeset
14394do
14395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14396echo "$as_me:$LINENO: checking for $ac_func" >&5
14397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14398if eval "test \"\${$as_ac_var+set}\" = set"; then
14399  echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401  cat >conftest.$ac_ext <<_ACEOF
14402/* confdefs.h.  */
14403_ACEOF
14404cat confdefs.h >>conftest.$ac_ext
14405cat >>conftest.$ac_ext <<_ACEOF
14406/* end confdefs.h.  */
14407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14408   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14409#define $ac_func innocuous_$ac_func
14410
14411/* System header to define __stub macros and hopefully few prototypes,
14412    which can conflict with char $ac_func (); below.
14413    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14414    <limits.h> exists even on freestanding compilers.  */
14415
14416#ifdef __STDC__
14417# include <limits.h>
14418#else
14419# include <assert.h>
14420#endif
14421
14422#undef $ac_func
14423
14424/* Override any gcc2 internal prototype to avoid an error.  */
14425#ifdef __cplusplus
14426extern "C"
14427{
14428#endif
14429/* We use char because int might match the return type of a gcc2
14430   builtin and then its argument prototype would still apply.  */
14431char $ac_func ();
14432/* The GNU C library defines this for functions which it implements
14433    to always fail with ENOSYS.  Some functions are actually named
14434    something starting with __ and the normal name is an alias.  */
14435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14436choke me
14437#else
14438char (*f) () = $ac_func;
14439#endif
14440#ifdef __cplusplus
14441}
14442#endif
14443
14444int
14445main ()
14446{
14447return f != $ac_func;
14448  ;
14449  return 0;
14450}
14451_ACEOF
14452rm -f conftest.$ac_objext conftest$ac_exeext
14453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14454  (eval $ac_link) 2>conftest.er1
14455  ac_status=$?
14456  grep -v '^ *+' conftest.er1 >conftest.err
14457  rm -f conftest.er1
14458  cat conftest.err >&5
14459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460  (exit $ac_status); } &&
14461	 { ac_try='test -z "$ac_c_werror_flag"
14462			 || test ! -s conftest.err'
14463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464  (eval $ac_try) 2>&5
14465  ac_status=$?
14466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467  (exit $ac_status); }; } &&
14468	 { ac_try='test -s conftest$ac_exeext'
14469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470  (eval $ac_try) 2>&5
14471  ac_status=$?
14472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473  (exit $ac_status); }; }; then
14474  eval "$as_ac_var=yes"
14475else
14476  echo "$as_me: failed program was:" >&5
14477sed 's/^/| /' conftest.$ac_ext >&5
14478
14479eval "$as_ac_var=no"
14480fi
14481rm -f conftest.err conftest.$ac_objext \
14482      conftest$ac_exeext conftest.$ac_ext
14483fi
14484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14485echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14486if test `eval echo '${'$as_ac_var'}'` = yes; then
14487  cat >>confdefs.h <<_ACEOF
14488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14489_ACEOF
14490
14491fi
14492done
14493
14494            echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14495echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14496      cat >conftest.$ac_ext <<_ACEOF
14497/* confdefs.h.  */
14498_ACEOF
14499cat confdefs.h >>conftest.$ac_ext
14500cat >>conftest.$ac_ext <<_ACEOF
14501/* end confdefs.h.  */
14502#include <libintl.h>
14503		extern int _nl_msg_cat_cntr;
14504int
14505main ()
14506{
14507++_nl_msg_cat_cntr;
14508  ;
14509  return 0;
14510}
14511_ACEOF
14512rm -f conftest.$ac_objext conftest$ac_exeext
14513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14514  (eval $ac_link) 2>conftest.er1
14515  ac_status=$?
14516  grep -v '^ *+' conftest.er1 >conftest.err
14517  rm -f conftest.er1
14518  cat conftest.err >&5
14519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520  (exit $ac_status); } &&
14521	 { ac_try='test -z "$ac_c_werror_flag"
14522			 || test ! -s conftest.err'
14523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524  (eval $ac_try) 2>&5
14525  ac_status=$?
14526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527  (exit $ac_status); }; } &&
14528	 { ac_try='test -s conftest$ac_exeext'
14529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530  (eval $ac_try) 2>&5
14531  ac_status=$?
14532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533  (exit $ac_status); }; }; then
14534  echo "$as_me:$LINENO: result: yes" >&5
14535echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
14536#define HAVE_NL_MSG_CAT_CNTR 1
14537_ACEOF
14538
14539else
14540  echo "$as_me: failed program was:" >&5
14541sed 's/^/| /' conftest.$ac_ext >&5
14542
14543echo "$as_me:$LINENO: result: no" >&5
14544echo "${ECHO_T}no" >&6
14545fi
14546rm -f conftest.err conftest.$ac_objext \
14547      conftest$ac_exeext conftest.$ac_ext
14548    fi
14549  else
14550    echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14551echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
14552  fi
14553else
14554  echo "$as_me:$LINENO: result: yes" >&5
14555echo "${ECHO_T}yes" >&6
14556fi
14557
14558if test "${ac_cv_header_dlfcn_h+set}" = set; then
14559  echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14560echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14561if test "${ac_cv_header_dlfcn_h+set}" = set; then
14562  echo $ECHO_N "(cached) $ECHO_C" >&6
14563fi
14564echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14565echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14566else
14567  # Is the header compilable?
14568echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14569echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14570cat >conftest.$ac_ext <<_ACEOF
14571/* confdefs.h.  */
14572_ACEOF
14573cat confdefs.h >>conftest.$ac_ext
14574cat >>conftest.$ac_ext <<_ACEOF
14575/* end confdefs.h.  */
14576$ac_includes_default
14577#include <dlfcn.h>
14578_ACEOF
14579rm -f conftest.$ac_objext
14580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14581  (eval $ac_compile) 2>conftest.er1
14582  ac_status=$?
14583  grep -v '^ *+' conftest.er1 >conftest.err
14584  rm -f conftest.er1
14585  cat conftest.err >&5
14586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587  (exit $ac_status); } &&
14588	 { ac_try='test -z "$ac_c_werror_flag"
14589			 || test ! -s conftest.err'
14590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591  (eval $ac_try) 2>&5
14592  ac_status=$?
14593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594  (exit $ac_status); }; } &&
14595	 { ac_try='test -s conftest.$ac_objext'
14596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597  (eval $ac_try) 2>&5
14598  ac_status=$?
14599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600  (exit $ac_status); }; }; then
14601  ac_header_compiler=yes
14602else
14603  echo "$as_me: failed program was:" >&5
14604sed 's/^/| /' conftest.$ac_ext >&5
14605
14606ac_header_compiler=no
14607fi
14608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14609echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14610echo "${ECHO_T}$ac_header_compiler" >&6
14611
14612# Is the header present?
14613echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14614echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14615cat >conftest.$ac_ext <<_ACEOF
14616/* confdefs.h.  */
14617_ACEOF
14618cat confdefs.h >>conftest.$ac_ext
14619cat >>conftest.$ac_ext <<_ACEOF
14620/* end confdefs.h.  */
14621#include <dlfcn.h>
14622_ACEOF
14623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14624  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14625  ac_status=$?
14626  grep -v '^ *+' conftest.er1 >conftest.err
14627  rm -f conftest.er1
14628  cat conftest.err >&5
14629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630  (exit $ac_status); } >/dev/null; then
14631  if test -s conftest.err; then
14632    ac_cpp_err=$ac_c_preproc_warn_flag
14633    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14634  else
14635    ac_cpp_err=
14636  fi
14637else
14638  ac_cpp_err=yes
14639fi
14640if test -z "$ac_cpp_err"; then
14641  ac_header_preproc=yes
14642else
14643  echo "$as_me: failed program was:" >&5
14644sed 's/^/| /' conftest.$ac_ext >&5
14645
14646  ac_header_preproc=no
14647fi
14648rm -f conftest.err conftest.$ac_ext
14649echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14650echo "${ECHO_T}$ac_header_preproc" >&6
14651
14652# So?  What about this header?
14653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14654  yes:no: )
14655    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14656echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14657    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14658echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14659    ac_header_preproc=yes
14660    ;;
14661  no:yes:* )
14662    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14663echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14664    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
14665echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
14666    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14667echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14668    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
14669echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14670    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14671echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14672    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14673echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14674    (
14675      cat <<\_ASBOX
14676## ------------------------------------------ ##
14677## Report this to the AC_PACKAGE_NAME lists.  ##
14678## ------------------------------------------ ##
14679_ASBOX
14680    ) |
14681      sed "s/^/$as_me: WARNING:     /" >&2
14682    ;;
14683esac
14684echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14685echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14686if test "${ac_cv_header_dlfcn_h+set}" = set; then
14687  echo $ECHO_N "(cached) $ECHO_C" >&6
14688else
14689  ac_cv_header_dlfcn_h=$ac_header_preproc
14690fi
14691echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14692echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14693
14694fi
14695if test $ac_cv_header_dlfcn_h = yes; then
14696  DLL=dlfcn.h
14697else
14698  if test "${ac_cv_header_dl_h+set}" = set; then
14699  echo "$as_me:$LINENO: checking for dl.h" >&5
14700echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14701if test "${ac_cv_header_dl_h+set}" = set; then
14702  echo $ECHO_N "(cached) $ECHO_C" >&6
14703fi
14704echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14705echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14706else
14707  # Is the header compilable?
14708echo "$as_me:$LINENO: checking dl.h usability" >&5
14709echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14710cat >conftest.$ac_ext <<_ACEOF
14711/* confdefs.h.  */
14712_ACEOF
14713cat confdefs.h >>conftest.$ac_ext
14714cat >>conftest.$ac_ext <<_ACEOF
14715/* end confdefs.h.  */
14716$ac_includes_default
14717#include <dl.h>
14718_ACEOF
14719rm -f conftest.$ac_objext
14720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721  (eval $ac_compile) 2>conftest.er1
14722  ac_status=$?
14723  grep -v '^ *+' conftest.er1 >conftest.err
14724  rm -f conftest.er1
14725  cat conftest.err >&5
14726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727  (exit $ac_status); } &&
14728	 { ac_try='test -z "$ac_c_werror_flag"
14729			 || test ! -s conftest.err'
14730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731  (eval $ac_try) 2>&5
14732  ac_status=$?
14733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734  (exit $ac_status); }; } &&
14735	 { ac_try='test -s conftest.$ac_objext'
14736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737  (eval $ac_try) 2>&5
14738  ac_status=$?
14739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740  (exit $ac_status); }; }; then
14741  ac_header_compiler=yes
14742else
14743  echo "$as_me: failed program was:" >&5
14744sed 's/^/| /' conftest.$ac_ext >&5
14745
14746ac_header_compiler=no
14747fi
14748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14750echo "${ECHO_T}$ac_header_compiler" >&6
14751
14752# Is the header present?
14753echo "$as_me:$LINENO: checking dl.h presence" >&5
14754echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14755cat >conftest.$ac_ext <<_ACEOF
14756/* confdefs.h.  */
14757_ACEOF
14758cat confdefs.h >>conftest.$ac_ext
14759cat >>conftest.$ac_ext <<_ACEOF
14760/* end confdefs.h.  */
14761#include <dl.h>
14762_ACEOF
14763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14764  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14765  ac_status=$?
14766  grep -v '^ *+' conftest.er1 >conftest.err
14767  rm -f conftest.er1
14768  cat conftest.err >&5
14769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770  (exit $ac_status); } >/dev/null; then
14771  if test -s conftest.err; then
14772    ac_cpp_err=$ac_c_preproc_warn_flag
14773    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14774  else
14775    ac_cpp_err=
14776  fi
14777else
14778  ac_cpp_err=yes
14779fi
14780if test -z "$ac_cpp_err"; then
14781  ac_header_preproc=yes
14782else
14783  echo "$as_me: failed program was:" >&5
14784sed 's/^/| /' conftest.$ac_ext >&5
14785
14786  ac_header_preproc=no
14787fi
14788rm -f conftest.err conftest.$ac_ext
14789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14790echo "${ECHO_T}$ac_header_preproc" >&6
14791
14792# So?  What about this header?
14793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14794  yes:no: )
14795    { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14796echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14797    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14798echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14799    ac_header_preproc=yes
14800    ;;
14801  no:yes:* )
14802    { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14803echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14804    { echo "$as_me:$LINENO: WARNING: dl.h:     check for missing prerequisite headers?" >&5
14805echo "$as_me: WARNING: dl.h:     check for missing prerequisite headers?" >&2;}
14806    { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14807echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14808    { echo "$as_me:$LINENO: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&5
14809echo "$as_me: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14810    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14811echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14812    { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14813echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14814    (
14815      cat <<\_ASBOX
14816## ------------------------------------------ ##
14817## Report this to the AC_PACKAGE_NAME lists.  ##
14818## ------------------------------------------ ##
14819_ASBOX
14820    ) |
14821      sed "s/^/$as_me: WARNING:     /" >&2
14822    ;;
14823esac
14824echo "$as_me:$LINENO: checking for dl.h" >&5
14825echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14826if test "${ac_cv_header_dl_h+set}" = set; then
14827  echo $ECHO_N "(cached) $ECHO_C" >&6
14828else
14829  ac_cv_header_dl_h=$ac_header_preproc
14830fi
14831echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14832echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14833
14834fi
14835if test $ac_cv_header_dl_h = yes; then
14836  DLL=dl.h
14837fi
14838
14839
14840fi
14841
14842
14843if test x${DLL} = xdlfcn.h; then
14844
14845cat >>confdefs.h <<\_ACEOF
14846#define HAVE_DLFCN_H 1
14847_ACEOF
14848
14849  echo "$as_me:$LINENO: checking for dlopen()" >&5
14850echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14851  cat >conftest.$ac_ext <<_ACEOF
14852/* confdefs.h.  */
14853_ACEOF
14854cat confdefs.h >>conftest.$ac_ext
14855cat >>conftest.$ac_ext <<_ACEOF
14856/* end confdefs.h.  */
14857
14858int
14859main ()
14860{
14861
14862		extern void* dlopen();
14863		dlopen();
14864
14865  ;
14866  return 0;
14867}
14868_ACEOF
14869rm -f conftest.$ac_objext conftest$ac_exeext
14870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14871  (eval $ac_link) 2>conftest.er1
14872  ac_status=$?
14873  grep -v '^ *+' conftest.er1 >conftest.err
14874  rm -f conftest.er1
14875  cat conftest.err >&5
14876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877  (exit $ac_status); } &&
14878	 { ac_try='test -z "$ac_c_werror_flag"
14879			 || test ! -s conftest.err'
14880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881  (eval $ac_try) 2>&5
14882  ac_status=$?
14883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884  (exit $ac_status); }; } &&
14885	 { ac_try='test -s conftest$ac_exeext'
14886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887  (eval $ac_try) 2>&5
14888  ac_status=$?
14889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890  (exit $ac_status); }; }; then
14891  echo "$as_me:$LINENO: result: yes" >&5
14892echo "${ECHO_T}yes" >&6;
14893
14894cat >>confdefs.h <<\_ACEOF
14895#define HAVE_DLOPEN 1
14896_ACEOF
14897
14898else
14899  echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
14902echo "$as_me:$LINENO: result: no" >&5
14903echo "${ECHO_T}no" >&6;
14904	      echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14905echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
14906	      olibs=$LIBS
14907	      LIBS="$LIBS -ldl"
14908	      cat >conftest.$ac_ext <<_ACEOF
14909/* confdefs.h.  */
14910_ACEOF
14911cat confdefs.h >>conftest.$ac_ext
14912cat >>conftest.$ac_ext <<_ACEOF
14913/* end confdefs.h.  */
14914
14915int
14916main ()
14917{
14918
14919				extern void* dlopen();
14920				dlopen();
14921
14922  ;
14923  return 0;
14924}
14925_ACEOF
14926rm -f conftest.$ac_objext conftest$ac_exeext
14927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14928  (eval $ac_link) 2>conftest.er1
14929  ac_status=$?
14930  grep -v '^ *+' conftest.er1 >conftest.err
14931  rm -f conftest.er1
14932  cat conftest.err >&5
14933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934  (exit $ac_status); } &&
14935	 { ac_try='test -z "$ac_c_werror_flag"
14936			 || test ! -s conftest.err'
14937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938  (eval $ac_try) 2>&5
14939  ac_status=$?
14940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941  (exit $ac_status); }; } &&
14942	 { ac_try='test -s conftest$ac_exeext'
14943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944  (eval $ac_try) 2>&5
14945  ac_status=$?
14946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947  (exit $ac_status); }; }; then
14948  echo "$as_me:$LINENO: result: yes" >&5
14949echo "${ECHO_T}yes" >&6;
14950
14951cat >>confdefs.h <<\_ACEOF
14952#define HAVE_DLOPEN 1
14953_ACEOF
14954
14955else
14956  echo "$as_me: failed program was:" >&5
14957sed 's/^/| /' conftest.$ac_ext >&5
14958
14959echo "$as_me:$LINENO: result: no" >&5
14960echo "${ECHO_T}no" >&6;
14961			  LIBS=$olibs
14962fi
14963rm -f conftest.err conftest.$ac_objext \
14964      conftest$ac_exeext conftest.$ac_ext
14965fi
14966rm -f conftest.err conftest.$ac_objext \
14967      conftest$ac_exeext conftest.$ac_ext
14968      echo "$as_me:$LINENO: checking for dlsym()" >&5
14969echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14970  cat >conftest.$ac_ext <<_ACEOF
14971/* confdefs.h.  */
14972_ACEOF
14973cat confdefs.h >>conftest.$ac_ext
14974cat >>conftest.$ac_ext <<_ACEOF
14975/* end confdefs.h.  */
14976
14977int
14978main ()
14979{
14980
14981		extern void* dlsym();
14982		dlsym();
14983
14984  ;
14985  return 0;
14986}
14987_ACEOF
14988rm -f conftest.$ac_objext conftest$ac_exeext
14989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14990  (eval $ac_link) 2>conftest.er1
14991  ac_status=$?
14992  grep -v '^ *+' conftest.er1 >conftest.err
14993  rm -f conftest.er1
14994  cat conftest.err >&5
14995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996  (exit $ac_status); } &&
14997	 { ac_try='test -z "$ac_c_werror_flag"
14998			 || test ! -s conftest.err'
14999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000  (eval $ac_try) 2>&5
15001  ac_status=$?
15002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003  (exit $ac_status); }; } &&
15004	 { ac_try='test -s conftest$ac_exeext'
15005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006  (eval $ac_try) 2>&5
15007  ac_status=$?
15008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009  (exit $ac_status); }; }; then
15010  echo "$as_me:$LINENO: result: yes" >&5
15011echo "${ECHO_T}yes" >&6;
15012
15013cat >>confdefs.h <<\_ACEOF
15014#define HAVE_DLSYM 1
15015_ACEOF
15016
15017else
15018  echo "$as_me: failed program was:" >&5
15019sed 's/^/| /' conftest.$ac_ext >&5
15020
15021echo "$as_me:$LINENO: result: no" >&5
15022echo "${ECHO_T}no" >&6;
15023	      echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
15024echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
15025	      olibs=$LIBS
15026	      LIBS="$LIBS -ldl"
15027	      cat >conftest.$ac_ext <<_ACEOF
15028/* confdefs.h.  */
15029_ACEOF
15030cat confdefs.h >>conftest.$ac_ext
15031cat >>conftest.$ac_ext <<_ACEOF
15032/* end confdefs.h.  */
15033
15034int
15035main ()
15036{
15037
15038				extern void* dlsym();
15039				dlsym();
15040
15041  ;
15042  return 0;
15043}
15044_ACEOF
15045rm -f conftest.$ac_objext conftest$ac_exeext
15046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15047  (eval $ac_link) 2>conftest.er1
15048  ac_status=$?
15049  grep -v '^ *+' conftest.er1 >conftest.err
15050  rm -f conftest.er1
15051  cat conftest.err >&5
15052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053  (exit $ac_status); } &&
15054	 { ac_try='test -z "$ac_c_werror_flag"
15055			 || test ! -s conftest.err'
15056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057  (eval $ac_try) 2>&5
15058  ac_status=$?
15059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060  (exit $ac_status); }; } &&
15061	 { ac_try='test -s conftest$ac_exeext'
15062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063  (eval $ac_try) 2>&5
15064  ac_status=$?
15065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066  (exit $ac_status); }; }; then
15067  echo "$as_me:$LINENO: result: yes" >&5
15068echo "${ECHO_T}yes" >&6;
15069
15070cat >>confdefs.h <<\_ACEOF
15071#define HAVE_DLSYM 1
15072_ACEOF
15073
15074else
15075  echo "$as_me: failed program was:" >&5
15076sed 's/^/| /' conftest.$ac_ext >&5
15077
15078echo "$as_me:$LINENO: result: no" >&5
15079echo "${ECHO_T}no" >&6;
15080			  LIBS=$olibs
15081fi
15082rm -f conftest.err conftest.$ac_objext \
15083      conftest$ac_exeext conftest.$ac_ext
15084fi
15085rm -f conftest.err conftest.$ac_objext \
15086      conftest$ac_exeext conftest.$ac_ext
15087elif test x${DLL} = xdl.h; then
15088
15089cat >>confdefs.h <<\_ACEOF
15090#define HAVE_DL_H 1
15091_ACEOF
15092
15093  echo "$as_me:$LINENO: checking for shl_load()" >&5
15094echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15095  cat >conftest.$ac_ext <<_ACEOF
15096/* confdefs.h.  */
15097_ACEOF
15098cat confdefs.h >>conftest.$ac_ext
15099cat >>conftest.$ac_ext <<_ACEOF
15100/* end confdefs.h.  */
15101
15102int
15103main ()
15104{
15105
15106		extern void* shl_load();
15107		shl_load();
15108
15109  ;
15110  return 0;
15111}
15112_ACEOF
15113rm -f conftest.$ac_objext conftest$ac_exeext
15114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15115  (eval $ac_link) 2>conftest.er1
15116  ac_status=$?
15117  grep -v '^ *+' conftest.er1 >conftest.err
15118  rm -f conftest.er1
15119  cat conftest.err >&5
15120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121  (exit $ac_status); } &&
15122	 { ac_try='test -z "$ac_c_werror_flag"
15123			 || test ! -s conftest.err'
15124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125  (eval $ac_try) 2>&5
15126  ac_status=$?
15127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128  (exit $ac_status); }; } &&
15129	 { ac_try='test -s conftest$ac_exeext'
15130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131  (eval $ac_try) 2>&5
15132  ac_status=$?
15133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134  (exit $ac_status); }; }; then
15135  echo "$as_me:$LINENO: result: yes" >&5
15136echo "${ECHO_T}yes" >&6;
15137
15138cat >>confdefs.h <<\_ACEOF
15139#define HAVE_SHL_LOAD 1
15140_ACEOF
15141
15142else
15143  echo "$as_me: failed program was:" >&5
15144sed 's/^/| /' conftest.$ac_ext >&5
15145
15146echo "$as_me:$LINENO: result: no" >&5
15147echo "${ECHO_T}no" >&6;
15148	  echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15149echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
15150	  olibs=$LIBS
15151	  LIBS="$LIBS -ldld"
15152	  cat >conftest.$ac_ext <<_ACEOF
15153/* confdefs.h.  */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
15157/* end confdefs.h.  */
15158
15159int
15160main ()
15161{
15162
15163			extern void* shl_load();
15164			shl_load();
15165
15166  ;
15167  return 0;
15168}
15169_ACEOF
15170rm -f conftest.$ac_objext conftest$ac_exeext
15171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172  (eval $ac_link) 2>conftest.er1
15173  ac_status=$?
15174  grep -v '^ *+' conftest.er1 >conftest.err
15175  rm -f conftest.er1
15176  cat conftest.err >&5
15177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178  (exit $ac_status); } &&
15179	 { ac_try='test -z "$ac_c_werror_flag"
15180			 || test ! -s conftest.err'
15181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182  (eval $ac_try) 2>&5
15183  ac_status=$?
15184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185  (exit $ac_status); }; } &&
15186	 { ac_try='test -s conftest$ac_exeext'
15187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188  (eval $ac_try) 2>&5
15189  ac_status=$?
15190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191  (exit $ac_status); }; }; then
15192  echo "$as_me:$LINENO: result: yes" >&5
15193echo "${ECHO_T}yes" >&6;
15194
15195cat >>confdefs.h <<\_ACEOF
15196#define HAVE_SHL_LOAD 1
15197_ACEOF
15198
15199else
15200  echo "$as_me: failed program was:" >&5
15201sed 's/^/| /' conftest.$ac_ext >&5
15202
15203echo "$as_me:$LINENO: result: no" >&5
15204echo "${ECHO_T}no" >&6;
15205		  LIBS=$olibs
15206fi
15207rm -f conftest.err conftest.$ac_objext \
15208      conftest$ac_exeext conftest.$ac_ext
15209fi
15210rm -f conftest.err conftest.$ac_objext \
15211      conftest$ac_exeext conftest.$ac_ext
15212fi
15213
15214for ac_header in setjmp.h
15215do
15216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15217if eval "test \"\${$as_ac_Header+set}\" = set"; then
15218  echo "$as_me:$LINENO: checking for $ac_header" >&5
15219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15220if eval "test \"\${$as_ac_Header+set}\" = set"; then
15221  echo $ECHO_N "(cached) $ECHO_C" >&6
15222fi
15223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15225else
15226  # Is the header compilable?
15227echo "$as_me:$LINENO: checking $ac_header usability" >&5
15228echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15229cat >conftest.$ac_ext <<_ACEOF
15230/* confdefs.h.  */
15231_ACEOF
15232cat confdefs.h >>conftest.$ac_ext
15233cat >>conftest.$ac_ext <<_ACEOF
15234/* end confdefs.h.  */
15235$ac_includes_default
15236#include <$ac_header>
15237_ACEOF
15238rm -f conftest.$ac_objext
15239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15240  (eval $ac_compile) 2>conftest.er1
15241  ac_status=$?
15242  grep -v '^ *+' conftest.er1 >conftest.err
15243  rm -f conftest.er1
15244  cat conftest.err >&5
15245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246  (exit $ac_status); } &&
15247	 { ac_try='test -z "$ac_c_werror_flag"
15248			 || test ! -s conftest.err'
15249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250  (eval $ac_try) 2>&5
15251  ac_status=$?
15252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253  (exit $ac_status); }; } &&
15254	 { ac_try='test -s conftest.$ac_objext'
15255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256  (eval $ac_try) 2>&5
15257  ac_status=$?
15258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259  (exit $ac_status); }; }; then
15260  ac_header_compiler=yes
15261else
15262  echo "$as_me: failed program was:" >&5
15263sed 's/^/| /' conftest.$ac_ext >&5
15264
15265ac_header_compiler=no
15266fi
15267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15269echo "${ECHO_T}$ac_header_compiler" >&6
15270
15271# Is the header present?
15272echo "$as_me:$LINENO: checking $ac_header presence" >&5
15273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15274cat >conftest.$ac_ext <<_ACEOF
15275/* confdefs.h.  */
15276_ACEOF
15277cat confdefs.h >>conftest.$ac_ext
15278cat >>conftest.$ac_ext <<_ACEOF
15279/* end confdefs.h.  */
15280#include <$ac_header>
15281_ACEOF
15282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15283  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15284  ac_status=$?
15285  grep -v '^ *+' conftest.er1 >conftest.err
15286  rm -f conftest.er1
15287  cat conftest.err >&5
15288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289  (exit $ac_status); } >/dev/null; then
15290  if test -s conftest.err; then
15291    ac_cpp_err=$ac_c_preproc_warn_flag
15292    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15293  else
15294    ac_cpp_err=
15295  fi
15296else
15297  ac_cpp_err=yes
15298fi
15299if test -z "$ac_cpp_err"; then
15300  ac_header_preproc=yes
15301else
15302  echo "$as_me: failed program was:" >&5
15303sed 's/^/| /' conftest.$ac_ext >&5
15304
15305  ac_header_preproc=no
15306fi
15307rm -f conftest.err conftest.$ac_ext
15308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15309echo "${ECHO_T}$ac_header_preproc" >&6
15310
15311# So?  What about this header?
15312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15313  yes:no: )
15314    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15316    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15317echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15318    ac_header_preproc=yes
15319    ;;
15320  no:yes:* )
15321    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15323    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15324echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15325    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15326echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15327    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15328echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15329    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15330echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15331    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15332echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15333    (
15334      cat <<\_ASBOX
15335## ------------------------------------------ ##
15336## Report this to the AC_PACKAGE_NAME lists.  ##
15337## ------------------------------------------ ##
15338_ASBOX
15339    ) |
15340      sed "s/^/$as_me: WARNING:     /" >&2
15341    ;;
15342esac
15343echo "$as_me:$LINENO: checking for $ac_header" >&5
15344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15345if eval "test \"\${$as_ac_Header+set}\" = set"; then
15346  echo $ECHO_N "(cached) $ECHO_C" >&6
15347else
15348  eval "$as_ac_Header=\$ac_header_preproc"
15349fi
15350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15352
15353fi
15354if test `eval echo '${'$as_ac_Header'}'` = yes; then
15355  cat >>confdefs.h <<_ACEOF
15356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15357_ACEOF
15358
15359fi
15360
15361done
15362
15363
15364if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15365    if echo $LIBS | grep -e '-ldl' >/dev/null; then
15366    LIBS=`echo $LIBS | sed s/-ldl//`
15367    PERL_LIBS="$PERL_LIBS -ldl"
15368  fi
15369fi
15370
15371if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15372	&& test "x$GUITYPE" != "xCARBONGUI"; then
15373  echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15374echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
15375    if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
15376	|| test "x$features" = "xhuge"; then
15377    LIBS="$LIBS -framework Carbon"
15378    echo "$as_me:$LINENO: result: yes" >&5
15379echo "${ECHO_T}yes" >&6
15380  else
15381    echo "$as_me:$LINENO: result: no" >&5
15382echo "${ECHO_T}no" >&6
15383  fi
15384fi
15385if test "x$MACARCH" = "xboth"; then
15386  LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15387fi
15388
15389echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15390echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
15391DEPEND_CFLAGS_FILTER=
15392if test "$GCC" = yes; then
15393  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
15394  if test "$gccmajor" -gt "2"; then
15395    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15396  fi
15397fi
15398if test "$DEPEND_CFLAGS_FILTER" = ""; then
15399  echo "$as_me:$LINENO: result: no" >&5
15400echo "${ECHO_T}no" >&6
15401else
15402  echo "$as_me:$LINENO: result: yes" >&5
15403echo "${ECHO_T}yes" >&6
15404fi
15405
15406
15407          ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15408cat >confcache <<\_ACEOF
15409# This file is a shell script that caches the results of configure
15410# tests run on this system so they can be shared between configure
15411# scripts and configure runs, see configure's option --config-cache.
15412# It is not useful on other systems.  If it contains results you don't
15413# want to keep, you may remove or edit it.
15414#
15415# config.status only pays attention to the cache file if you give it
15416# the --recheck option to rerun configure.
15417#
15418# `ac_cv_env_foo' variables (set or unset) will be overridden when
15419# loading this file, other *unset* `ac_cv_foo' will be assigned the
15420# following values.
15421
15422_ACEOF
15423
15424# The following way of writing the cache mishandles newlines in values,
15425# but we know of no workaround that is simple, portable, and efficient.
15426# So, don't put newlines in cache variables' values.
15427# Ultrix sh set writes to stderr and can't be redirected directly,
15428# and sets the high bit in the cache file unless we assign to the vars.
15429{
15430  (set) 2>&1 |
15431    case `(ac_space=' '; set | grep ac_space) 2>&1` in
15432    *ac_space=\ *)
15433      # `set' does not quote correctly, so add quotes (double-quote
15434      # substitution turns \\\\ into \\, and sed turns \\ into \).
15435      sed -n \
15436	"s/'/'\\\\''/g;
15437	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15438      ;;
15439    *)
15440      # `set' quotes correctly as required by POSIX, so do not add quotes.
15441      sed -n \
15442	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15443      ;;
15444    esac;
15445} |
15446  sed '
15447     t clear
15448     : clear
15449     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15450     t end
15451     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15452     : end' >>confcache
15453if diff $cache_file confcache >/dev/null 2>&1; then :; else
15454  if test -w $cache_file; then
15455    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15456    cat confcache >$cache_file
15457  else
15458    echo "not updating unwritable cache $cache_file"
15459  fi
15460fi
15461rm -f confcache
15462
15463test "x$prefix" = xNONE && prefix=$ac_default_prefix
15464# Let make expand exec_prefix.
15465test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15466
15467# VPATH may cause trouble with some makes, so we remove $(srcdir),
15468# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15469# trailing colons and then remove the whole line if VPATH becomes empty
15470# (actually we leave an empty line to preserve line numbers).
15471if test "x$srcdir" = x.; then
15472  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15473s/:*\$(srcdir):*/:/;
15474s/:*\${srcdir}:*/:/;
15475s/:*@srcdir@:*/:/;
15476s/^\([^=]*=[	 ]*\):*/\1/;
15477s/:*$//;
15478s/^[^=]*=[	 ]*$//;
15479}'
15480fi
15481
15482DEFS=-DHAVE_CONFIG_H
15483
15484ac_libobjs=
15485ac_ltlibobjs=
15486for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15487  # 1. Remove the extension, and $U if already installed.
15488  ac_i=`echo "$ac_i" |
15489	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15490  # 2. Add them.
15491  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15492  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15493done
15494LIBOBJS=$ac_libobjs
15495
15496LTLIBOBJS=$ac_ltlibobjs
15497
15498
15499
15500: ${CONFIG_STATUS=./config.status}
15501ac_clean_files_save=$ac_clean_files
15502ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15503{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15504echo "$as_me: creating $CONFIG_STATUS" >&6;}
15505cat >$CONFIG_STATUS <<_ACEOF
15506#! $SHELL
15507# Generated by $as_me.
15508# Run this file to recreate the current configuration.
15509# Compiler output produced by configure, useful for debugging
15510# configure, is in config.log if it exists.
15511
15512debug=false
15513ac_cs_recheck=false
15514ac_cs_silent=false
15515SHELL=\${CONFIG_SHELL-$SHELL}
15516_ACEOF
15517
15518cat >>$CONFIG_STATUS <<\_ACEOF
15519## --------------------- ##
15520## M4sh Initialization.  ##
15521## --------------------- ##
15522
15523# Be Bourne compatible
15524if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15525  emulate sh
15526  NULLCMD=:
15527  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15528  # is contrary to our usage.  Disable this feature.
15529  alias -g '${1+"$@"}'='"$@"'
15530elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15531  set -o posix
15532fi
15533DUALCASE=1; export DUALCASE # for MKS sh
15534
15535# Support unset when possible.
15536if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15537  as_unset=unset
15538else
15539  as_unset=false
15540fi
15541
15542
15543# Work around bugs in pre-3.0 UWIN ksh.
15544$as_unset ENV MAIL MAILPATH
15545PS1='$ '
15546PS2='> '
15547PS4='+ '
15548
15549# NLS nuisances.
15550for as_var in \
15551  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15552  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15553  LC_TELEPHONE LC_TIME
15554do
15555  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15556    eval $as_var=C; export $as_var
15557  else
15558    $as_unset $as_var
15559  fi
15560done
15561
15562# Required to use basename.
15563if expr a : '\(a\)' >/dev/null 2>&1; then
15564  as_expr=expr
15565else
15566  as_expr=false
15567fi
15568
15569if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15570  as_basename=basename
15571else
15572  as_basename=false
15573fi
15574
15575
15576# Name of the executable.
15577as_me=`$as_basename "$0" ||
15578$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15579	 X"$0" : 'X\(//\)$' \| \
15580	 X"$0" : 'X\(/\)$' \| \
15581	 .     : '\(.\)' 2>/dev/null ||
15582echo X/"$0" |
15583    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15584  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
15585  	  /^X\/\(\/\).*/{ s//\1/; q; }
15586  	  s/.*/./; q'`
15587
15588
15589# PATH needs CR, and LINENO needs CR and PATH.
15590# Avoid depending upon Character Ranges.
15591as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15592as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15593as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15594as_cr_digits='0123456789'
15595as_cr_alnum=$as_cr_Letters$as_cr_digits
15596
15597# The user is always right.
15598if test "${PATH_SEPARATOR+set}" != set; then
15599  echo "#! /bin/sh" >conf$$.sh
15600  echo  "exit 0"   >>conf$$.sh
15601  chmod +x conf$$.sh
15602  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15603    PATH_SEPARATOR=';'
15604  else
15605    PATH_SEPARATOR=:
15606  fi
15607  rm -f conf$$.sh
15608fi
15609
15610
15611  as_lineno_1=$LINENO
15612  as_lineno_2=$LINENO
15613  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15614  test "x$as_lineno_1" != "x$as_lineno_2" &&
15615  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15616  # Find who we are.  Look in the path if we contain no path at all
15617  # relative or not.
15618  case $0 in
15619    *[\\/]* ) as_myself=$0 ;;
15620    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15621for as_dir in $PATH
15622do
15623  IFS=$as_save_IFS
15624  test -z "$as_dir" && as_dir=.
15625  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15626done
15627
15628       ;;
15629  esac
15630  # We did not find ourselves, most probably we were run as `sh COMMAND'
15631  # in which case we are not to be found in the path.
15632  if test "x$as_myself" = x; then
15633    as_myself=$0
15634  fi
15635  if test ! -f "$as_myself"; then
15636    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15637echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15638   { (exit 1); exit 1; }; }
15639  fi
15640  case $CONFIG_SHELL in
15641  '')
15642    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15643for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15644do
15645  IFS=$as_save_IFS
15646  test -z "$as_dir" && as_dir=.
15647  for as_base in sh bash ksh sh5; do
15648	 case $as_dir in
15649	 /*)
15650	   if ("$as_dir/$as_base" -c '
15651  as_lineno_1=$LINENO
15652  as_lineno_2=$LINENO
15653  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15654  test "x$as_lineno_1" != "x$as_lineno_2" &&
15655  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15656	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15657	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15658	     CONFIG_SHELL=$as_dir/$as_base
15659	     export CONFIG_SHELL
15660	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15661	   fi;;
15662	 esac
15663       done
15664done
15665;;
15666  esac
15667
15668  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15669  # uniformly replaced by the line number.  The first 'sed' inserts a
15670  # line-number line before each line; the second 'sed' does the real
15671  # work.  The second script uses 'N' to pair each line-number line
15672  # with the numbered line, and appends trailing '-' during
15673  # substitution so that $LINENO is not a special case at line end.
15674  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15675  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15676  sed '=' <$as_myself |
15677    sed '
15678      N
15679      s,$,-,
15680      : loop
15681      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15682      t loop
15683      s,-$,,
15684      s,^['$as_cr_digits']*\n,,
15685    ' >$as_me.lineno &&
15686  chmod +x $as_me.lineno ||
15687    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15688echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15689   { (exit 1); exit 1; }; }
15690
15691  # Don't try to exec as it changes $[0], causing all sort of problems
15692  # (the dirname of $[0] is not the place where we might find the
15693  # original and so on.  Autoconf is especially sensible to this).
15694  . ./$as_me.lineno
15695  # Exit status is that of the last command.
15696  exit
15697}
15698
15699
15700case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15701  *c*,-n*) ECHO_N= ECHO_C='
15702' ECHO_T='	' ;;
15703  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15704  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15705esac
15706
15707if expr a : '\(a\)' >/dev/null 2>&1; then
15708  as_expr=expr
15709else
15710  as_expr=false
15711fi
15712
15713rm -f conf$$ conf$$.exe conf$$.file
15714echo >conf$$.file
15715if ln -s conf$$.file conf$$ 2>/dev/null; then
15716  # We could just check for DJGPP; but this test a) works b) is more generic
15717  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15718  if test -f conf$$.exe; then
15719    # Don't use ln at all; we don't have any links
15720    as_ln_s='cp -p'
15721  else
15722    as_ln_s='ln -s'
15723  fi
15724elif ln conf$$.file conf$$ 2>/dev/null; then
15725  as_ln_s=ln
15726else
15727  as_ln_s='cp -p'
15728fi
15729rm -f conf$$ conf$$.exe conf$$.file
15730
15731if mkdir -p . 2>/dev/null; then
15732  as_mkdir_p=:
15733else
15734  test -d ./-p && rmdir ./-p
15735  as_mkdir_p=false
15736fi
15737
15738as_executable_p="test -f"
15739
15740# Sed expression to map a string onto a valid CPP name.
15741as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15742
15743# Sed expression to map a string onto a valid variable name.
15744as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15745
15746
15747# IFS
15748# We need space, tab and new line, in precisely that order.
15749as_nl='
15750'
15751IFS=" 	$as_nl"
15752
15753# CDPATH.
15754$as_unset CDPATH
15755
15756exec 6>&1
15757
15758# Open the log real soon, to keep \$[0] and so on meaningful, and to
15759# report actual input values of CONFIG_FILES etc. instead of their
15760# values after options handling.  Logging --version etc. is OK.
15761exec 5>>auto/config.log
15762{
15763  echo
15764  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15765## Running $as_me. ##
15766_ASBOX
15767} >&5
15768cat >&5 <<_CSEOF
15769
15770This file was extended by $as_me, which was
15771generated by GNU Autoconf 2.59.  Invocation command line was
15772
15773  CONFIG_FILES    = $CONFIG_FILES
15774  CONFIG_HEADERS  = $CONFIG_HEADERS
15775  CONFIG_LINKS    = $CONFIG_LINKS
15776  CONFIG_COMMANDS = $CONFIG_COMMANDS
15777  $ $0 $@
15778
15779_CSEOF
15780echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15781echo >&5
15782_ACEOF
15783
15784# Files that config.status was made for.
15785if test -n "$ac_config_files"; then
15786  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15787fi
15788
15789if test -n "$ac_config_headers"; then
15790  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15791fi
15792
15793if test -n "$ac_config_links"; then
15794  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15795fi
15796
15797if test -n "$ac_config_commands"; then
15798  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15799fi
15800
15801cat >>$CONFIG_STATUS <<\_ACEOF
15802
15803ac_cs_usage="\
15804\`$as_me' instantiates files from templates according to the
15805current configuration.
15806
15807Usage: $0 [OPTIONS] [FILE]...
15808
15809  -h, --help       print this help, then exit
15810  -V, --version    print version number, then exit
15811  -q, --quiet      do not print progress messages
15812  -d, --debug      don't remove temporary files
15813      --recheck    update $as_me by reconfiguring in the same conditions
15814  --file=FILE[:TEMPLATE]
15815		   instantiate the configuration file FILE
15816  --header=FILE[:TEMPLATE]
15817		   instantiate the configuration header FILE
15818
15819Configuration files:
15820$config_files
15821
15822Configuration headers:
15823$config_headers
15824
15825Report bugs to <[email protected]>."
15826_ACEOF
15827
15828cat >>$CONFIG_STATUS <<_ACEOF
15829ac_cs_version="\\
15830config.status
15831configured by $0, generated by GNU Autoconf 2.59,
15832  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15833
15834Copyright (C) 2003 Free Software Foundation, Inc.
15835This config.status script is free software; the Free Software Foundation
15836gives unlimited permission to copy, distribute and modify it."
15837srcdir=$srcdir
15838_ACEOF
15839
15840cat >>$CONFIG_STATUS <<\_ACEOF
15841# If no file are specified by the user, then we need to provide default
15842# value.  By we need to know if files were specified by the user.
15843ac_need_defaults=:
15844while test $# != 0
15845do
15846  case $1 in
15847  --*=*)
15848    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15849    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15850    ac_shift=:
15851    ;;
15852  -*)
15853    ac_option=$1
15854    ac_optarg=$2
15855    ac_shift=shift
15856    ;;
15857  *) # This is not an option, so the user has probably given explicit
15858     # arguments.
15859     ac_option=$1
15860     ac_need_defaults=false;;
15861  esac
15862
15863  case $ac_option in
15864  # Handling of the options.
15865_ACEOF
15866cat >>$CONFIG_STATUS <<\_ACEOF
15867  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15868    ac_cs_recheck=: ;;
15869  --version | --vers* | -V )
15870    echo "$ac_cs_version"; exit 0 ;;
15871  --he | --h)
15872    # Conflict between --help and --header
15873    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15874Try \`$0 --help' for more information." >&5
15875echo "$as_me: error: ambiguous option: $1
15876Try \`$0 --help' for more information." >&2;}
15877   { (exit 1); exit 1; }; };;
15878  --help | --hel | -h )
15879    echo "$ac_cs_usage"; exit 0 ;;
15880  --debug | --d* | -d )
15881    debug=: ;;
15882  --file | --fil | --fi | --f )
15883    $ac_shift
15884    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15885    ac_need_defaults=false;;
15886  --header | --heade | --head | --hea )
15887    $ac_shift
15888    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15889    ac_need_defaults=false;;
15890  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15891  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15892    ac_cs_silent=: ;;
15893
15894  # This is an error.
15895  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15896Try \`$0 --help' for more information." >&5
15897echo "$as_me: error: unrecognized option: $1
15898Try \`$0 --help' for more information." >&2;}
15899   { (exit 1); exit 1; }; } ;;
15900
15901  *) ac_config_targets="$ac_config_targets $1" ;;
15902
15903  esac
15904  shift
15905done
15906
15907ac_configure_extra_args=
15908
15909if $ac_cs_silent; then
15910  exec 6>/dev/null
15911  ac_configure_extra_args="$ac_configure_extra_args --silent"
15912fi
15913
15914_ACEOF
15915cat >>$CONFIG_STATUS <<_ACEOF
15916if \$ac_cs_recheck; then
15917  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15918  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15919fi
15920
15921_ACEOF
15922
15923
15924
15925
15926
15927cat >>$CONFIG_STATUS <<\_ACEOF
15928for ac_config_target in $ac_config_targets
15929do
15930  case "$ac_config_target" in
15931  # Handling of arguments.
15932  "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15933  "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15934  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15935echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15936   { (exit 1); exit 1; }; };;
15937  esac
15938done
15939
15940# If the user did not use the arguments to specify the items to instantiate,
15941# then the envvar interface is used.  Set only those that are not.
15942# We use the long form for the default assignment because of an extremely
15943# bizarre bug on SunOS 4.1.3.
15944if $ac_need_defaults; then
15945  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15946  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15947fi
15948
15949# Have a temporary directory for convenience.  Make it in the build tree
15950# simply because there is no reason to put it here, and in addition,
15951# creating and moving files from /tmp can sometimes cause problems.
15952# Create a temporary directory, and hook for its removal unless debugging.
15953$debug ||
15954{
15955  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15956  trap '{ (exit 1); exit 1; }' 1 2 13 15
15957}
15958
15959# Create a (secure) tmp directory for tmp files.
15960
15961{
15962  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15963  test -n "$tmp" && test -d "$tmp"
15964}  ||
15965{
15966  tmp=./confstat$$-$RANDOM
15967  (umask 077 && mkdir $tmp)
15968} ||
15969{
15970   echo "$me: cannot create a temporary directory in ." >&2
15971   { (exit 1); exit 1; }
15972}
15973
15974_ACEOF
15975
15976cat >>$CONFIG_STATUS <<_ACEOF
15977
15978#
15979# CONFIG_FILES section.
15980#
15981
15982# No need to generate the scripts if there are no CONFIG_FILES.
15983# This happens for instance when ./config.status config.h
15984if test -n "\$CONFIG_FILES"; then
15985  # Protect against being on the right side of a sed subst in config.status.
15986  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15987   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15988s,@SHELL@,$SHELL,;t t
15989s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15990s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15991s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15992s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15993s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15994s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15995s,@exec_prefix@,$exec_prefix,;t t
15996s,@prefix@,$prefix,;t t
15997s,@program_transform_name@,$program_transform_name,;t t
15998s,@bindir@,$bindir,;t t
15999s,@sbindir@,$sbindir,;t t
16000s,@libexecdir@,$libexecdir,;t t
16001s,@datadir@,$datadir,;t t
16002s,@sysconfdir@,$sysconfdir,;t t
16003s,@sharedstatedir@,$sharedstatedir,;t t
16004s,@localstatedir@,$localstatedir,;t t
16005s,@libdir@,$libdir,;t t
16006s,@includedir@,$includedir,;t t
16007s,@oldincludedir@,$oldincludedir,;t t
16008s,@infodir@,$infodir,;t t
16009s,@mandir@,$mandir,;t t
16010s,@build_alias@,$build_alias,;t t
16011s,@host_alias@,$host_alias,;t t
16012s,@target_alias@,$target_alias,;t t
16013s,@DEFS@,$DEFS,;t t
16014s,@ECHO_C@,$ECHO_C,;t t
16015s,@ECHO_N@,$ECHO_N,;t t
16016s,@ECHO_T@,$ECHO_T,;t t
16017s,@LIBS@,$LIBS,;t t
16018s,@SET_MAKE@,$SET_MAKE,;t t
16019s,@CC@,$CC,;t t
16020s,@CFLAGS@,$CFLAGS,;t t
16021s,@LDFLAGS@,$LDFLAGS,;t t
16022s,@CPPFLAGS@,$CPPFLAGS,;t t
16023s,@ac_ct_CC@,$ac_ct_CC,;t t
16024s,@EXEEXT@,$EXEEXT,;t t
16025s,@OBJEXT@,$OBJEXT,;t t
16026s,@CPP@,$CPP,;t t
16027s,@EGREP@,$EGREP,;t t
16028s,@AWK@,$AWK,;t t
16029s,@STRIP@,$STRIP,;t t
16030s,@CPP_MM@,$CPP_MM,;t t
16031s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
16032s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
16033s,@VIMNAME@,$VIMNAME,;t t
16034s,@EXNAME@,$EXNAME,;t t
16035s,@VIEWNAME@,$VIEWNAME,;t t
16036s,@line_break@,$line_break,;t t
16037s,@dovimdiff@,$dovimdiff,;t t
16038s,@dogvimdiff@,$dogvimdiff,;t t
16039s,@compiledby@,$compiledby,;t t
16040s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
16041s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
16042s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
16043s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
16044s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
16045s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
16046s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
16047s,@vi_cv_perllib@,$vi_cv_perllib,;t t
16048s,@shrpenv@,$shrpenv,;t t
16049s,@PERL_SRC@,$PERL_SRC,;t t
16050s,@PERL_OBJ@,$PERL_OBJ,;t t
16051s,@PERL_PRO@,$PERL_PRO,;t t
16052s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
16053s,@PERL_LIBS@,$PERL_LIBS,;t t
16054s,@vi_cv_path_python@,$vi_cv_path_python,;t t
16055s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
16056s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
16057s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
16058s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
16059s,@PYTHON_SRC@,$PYTHON_SRC,;t t
16060s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
16061s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
16062s,@TCL_SRC@,$TCL_SRC,;t t
16063s,@TCL_OBJ@,$TCL_OBJ,;t t
16064s,@TCL_PRO@,$TCL_PRO,;t t
16065s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
16066s,@TCL_LIBS@,$TCL_LIBS,;t t
16067s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
16068s,@RUBY_SRC@,$RUBY_SRC,;t t
16069s,@RUBY_OBJ@,$RUBY_OBJ,;t t
16070s,@RUBY_PRO@,$RUBY_PRO,;t t
16071s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16072s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16073s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16074s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16075s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16076s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16077s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16078s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16079s,@xmkmfpath@,$xmkmfpath,;t t
16080s,@X_CFLAGS@,$X_CFLAGS,;t t
16081s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16082s,@X_LIBS@,$X_LIBS,;t t
16083s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16084s,@X_LIB@,$X_LIB,;t t
16085s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16086s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16087s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16088s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16089s,@GTK_LIBS@,$GTK_LIBS,;t t
16090s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16091s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16092s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16093s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16094s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16095s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16096s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16097s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16098s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16099s,@GUITYPE@,$GUITYPE,;t t
16100s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16101s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16102s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16103s,@TAGPRG@,$TAGPRG,;t t
16104s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16105s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
16106s,@MSGFMT@,$MSGFMT,;t t
16107s,@MAKEMO@,$MAKEMO,;t t
16108s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
16109s,@LIBOBJS@,$LIBOBJS,;t t
16110s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16111CEOF
16112
16113_ACEOF
16114
16115  cat >>$CONFIG_STATUS <<\_ACEOF
16116  # Split the substitutions into bite-sized pieces for seds with
16117  # small command number limits, like on Digital OSF/1 and HP-UX.
16118  ac_max_sed_lines=48
16119  ac_sed_frag=1 # Number of current file.
16120  ac_beg=1 # First line for current file.
16121  ac_end=$ac_max_sed_lines # Line after last line for current file.
16122  ac_more_lines=:
16123  ac_sed_cmds=
16124  while $ac_more_lines; do
16125    if test $ac_beg -gt 1; then
16126      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16127    else
16128      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16129    fi
16130    if test ! -s $tmp/subs.frag; then
16131      ac_more_lines=false
16132    else
16133      # The purpose of the label and of the branching condition is to
16134      # speed up the sed processing (if there are no `@' at all, there
16135      # is no need to browse any of the substitutions).
16136      # These are the two extra sed commands mentioned above.
16137      (echo ':t
16138  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16139      if test -z "$ac_sed_cmds"; then
16140	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16141      else
16142	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16143      fi
16144      ac_sed_frag=`expr $ac_sed_frag + 1`
16145      ac_beg=$ac_end
16146      ac_end=`expr $ac_end + $ac_max_sed_lines`
16147    fi
16148  done
16149  if test -z "$ac_sed_cmds"; then
16150    ac_sed_cmds=cat
16151  fi
16152fi # test -n "$CONFIG_FILES"
16153
16154_ACEOF
16155cat >>$CONFIG_STATUS <<\_ACEOF
16156for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16157  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16158  case $ac_file in
16159  - | *:- | *:-:* ) # input from stdin
16160	cat >$tmp/stdin
16161	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16162	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16163  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16164	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16165  * )   ac_file_in=$ac_file.in ;;
16166  esac
16167
16168  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16169  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16170$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16171	 X"$ac_file" : 'X\(//\)[^/]' \| \
16172	 X"$ac_file" : 'X\(//\)$' \| \
16173	 X"$ac_file" : 'X\(/\)' \| \
16174	 .     : '\(.\)' 2>/dev/null ||
16175echo X"$ac_file" |
16176    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16177  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16178  	  /^X\(\/\/\)$/{ s//\1/; q; }
16179  	  /^X\(\/\).*/{ s//\1/; q; }
16180  	  s/.*/./; q'`
16181  { if $as_mkdir_p; then
16182    mkdir -p "$ac_dir"
16183  else
16184    as_dir="$ac_dir"
16185    as_dirs=
16186    while test ! -d "$as_dir"; do
16187      as_dirs="$as_dir $as_dirs"
16188      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16189$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16190	 X"$as_dir" : 'X\(//\)[^/]' \| \
16191	 X"$as_dir" : 'X\(//\)$' \| \
16192	 X"$as_dir" : 'X\(/\)' \| \
16193	 .     : '\(.\)' 2>/dev/null ||
16194echo X"$as_dir" |
16195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16196  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16197  	  /^X\(\/\/\)$/{ s//\1/; q; }
16198  	  /^X\(\/\).*/{ s//\1/; q; }
16199  	  s/.*/./; q'`
16200    done
16201    test ! -n "$as_dirs" || mkdir $as_dirs
16202  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16203echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16204   { (exit 1); exit 1; }; }; }
16205
16206  ac_builddir=.
16207
16208if test "$ac_dir" != .; then
16209  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16210  # A "../" for each directory in $ac_dir_suffix.
16211  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16212else
16213  ac_dir_suffix= ac_top_builddir=
16214fi
16215
16216case $srcdir in
16217  .)  # No --srcdir option.  We are building in place.
16218    ac_srcdir=.
16219    if test -z "$ac_top_builddir"; then
16220       ac_top_srcdir=.
16221    else
16222       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16223    fi ;;
16224  [\\/]* | ?:[\\/]* )  # Absolute path.
16225    ac_srcdir=$srcdir$ac_dir_suffix;
16226    ac_top_srcdir=$srcdir ;;
16227  *) # Relative path.
16228    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16229    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16230esac
16231
16232# Do not use `cd foo && pwd` to compute absolute paths, because
16233# the directories may not exist.
16234case `pwd` in
16235.) ac_abs_builddir="$ac_dir";;
16236*)
16237  case "$ac_dir" in
16238  .) ac_abs_builddir=`pwd`;;
16239  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16240  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16241  esac;;
16242esac
16243case $ac_abs_builddir in
16244.) ac_abs_top_builddir=${ac_top_builddir}.;;
16245*)
16246  case ${ac_top_builddir}. in
16247  .) ac_abs_top_builddir=$ac_abs_builddir;;
16248  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16249  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16250  esac;;
16251esac
16252case $ac_abs_builddir in
16253.) ac_abs_srcdir=$ac_srcdir;;
16254*)
16255  case $ac_srcdir in
16256  .) ac_abs_srcdir=$ac_abs_builddir;;
16257  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16258  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16259  esac;;
16260esac
16261case $ac_abs_builddir in
16262.) ac_abs_top_srcdir=$ac_top_srcdir;;
16263*)
16264  case $ac_top_srcdir in
16265  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16266  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16267  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16268  esac;;
16269esac
16270
16271
16272
16273  if test x"$ac_file" != x-; then
16274    { echo "$as_me:$LINENO: creating $ac_file" >&5
16275echo "$as_me: creating $ac_file" >&6;}
16276    rm -f "$ac_file"
16277  fi
16278  # Let's still pretend it is `configure' which instantiates (i.e., don't
16279  # use $as_me), people would be surprised to read:
16280  #    /* config.h.  Generated by config.status.  */
16281  if test x"$ac_file" = x-; then
16282    configure_input=
16283  else
16284    configure_input="$ac_file.  "
16285  fi
16286  configure_input=$configure_input"Generated from `echo $ac_file_in |
16287				     sed 's,.*/,,'` by configure."
16288
16289  # First look for the input files in the build tree, otherwise in the
16290  # src tree.
16291  ac_file_inputs=`IFS=:
16292    for f in $ac_file_in; do
16293      case $f in
16294      -) echo $tmp/stdin ;;
16295      [\\/$]*)
16296	 # Absolute (can't be DOS-style, as IFS=:)
16297	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16298echo "$as_me: error: cannot find input file: $f" >&2;}
16299   { (exit 1); exit 1; }; }
16300	 echo "$f";;
16301      *) # Relative
16302	 if test -f "$f"; then
16303	   # Build tree
16304	   echo "$f"
16305	 elif test -f "$srcdir/$f"; then
16306	   # Source tree
16307	   echo "$srcdir/$f"
16308	 else
16309	   # /dev/null tree
16310	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16311echo "$as_me: error: cannot find input file: $f" >&2;}
16312   { (exit 1); exit 1; }; }
16313	 fi;;
16314      esac
16315    done` || { (exit 1); exit 1; }
16316_ACEOF
16317cat >>$CONFIG_STATUS <<_ACEOF
16318  sed "$ac_vpsub
16319$extrasub
16320_ACEOF
16321cat >>$CONFIG_STATUS <<\_ACEOF
16322:t
16323/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16324s,@configure_input@,$configure_input,;t t
16325s,@srcdir@,$ac_srcdir,;t t
16326s,@abs_srcdir@,$ac_abs_srcdir,;t t
16327s,@top_srcdir@,$ac_top_srcdir,;t t
16328s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16329s,@builddir@,$ac_builddir,;t t
16330s,@abs_builddir@,$ac_abs_builddir,;t t
16331s,@top_builddir@,$ac_top_builddir,;t t
16332s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16333" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16334  rm -f $tmp/stdin
16335  if test x"$ac_file" != x-; then
16336    mv $tmp/out $ac_file
16337  else
16338    cat $tmp/out
16339    rm -f $tmp/out
16340  fi
16341
16342done
16343_ACEOF
16344cat >>$CONFIG_STATUS <<\_ACEOF
16345
16346#
16347# CONFIG_HEADER section.
16348#
16349
16350# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16351# NAME is the cpp macro being defined and VALUE is the value it is being given.
16352#
16353# ac_d sets the value in "#define NAME VALUE" lines.
16354ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
16355ac_dB='[	 ].*$,\1#\2'
16356ac_dC=' '
16357ac_dD=',;t'
16358# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16359ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
16360ac_uB='$,\1#\2define\3'
16361ac_uC=' '
16362ac_uD=',;t'
16363
16364for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16365  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16366  case $ac_file in
16367  - | *:- | *:-:* ) # input from stdin
16368	cat >$tmp/stdin
16369	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16370	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16371  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16372	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16373  * )   ac_file_in=$ac_file.in ;;
16374  esac
16375
16376  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16377echo "$as_me: creating $ac_file" >&6;}
16378
16379  # First look for the input files in the build tree, otherwise in the
16380  # src tree.
16381  ac_file_inputs=`IFS=:
16382    for f in $ac_file_in; do
16383      case $f in
16384      -) echo $tmp/stdin ;;
16385      [\\/$]*)
16386	 # Absolute (can't be DOS-style, as IFS=:)
16387	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16388echo "$as_me: error: cannot find input file: $f" >&2;}
16389   { (exit 1); exit 1; }; }
16390	 # Do quote $f, to prevent DOS paths from being IFS'd.
16391	 echo "$f";;
16392      *) # Relative
16393	 if test -f "$f"; then
16394	   # Build tree
16395	   echo "$f"
16396	 elif test -f "$srcdir/$f"; then
16397	   # Source tree
16398	   echo "$srcdir/$f"
16399	 else
16400	   # /dev/null tree
16401	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16402echo "$as_me: error: cannot find input file: $f" >&2;}
16403   { (exit 1); exit 1; }; }
16404	 fi;;
16405      esac
16406    done` || { (exit 1); exit 1; }
16407  # Remove the trailing spaces.
16408  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
16409
16410_ACEOF
16411
16412# Transform confdefs.h into two sed scripts, `conftest.defines' and
16413# `conftest.undefs', that substitutes the proper values into
16414# config.h.in to produce config.h.  The first handles `#define'
16415# templates, and the second `#undef' templates.
16416# And first: Protect against being on the right side of a sed subst in
16417# config.status.  Protect against being in an unquoted here document
16418# in config.status.
16419rm -f conftest.defines conftest.undefs
16420# Using a here document instead of a string reduces the quoting nightmare.
16421# Putting comments in sed scripts is not portable.
16422#
16423# `end' is used to avoid that the second main sed command (meant for
16424# 0-ary CPP macros) applies to n-ary macro definitions.
16425# See the Autoconf documentation for `clear'.
16426cat >confdef2sed.sed <<\_ACEOF
16427s/[\\&,]/\\&/g
16428s,[\\$`],\\&,g
16429t clear
16430: clear
16431s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16432t end
16433s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16434: end
16435_ACEOF
16436# If some macros were called several times there might be several times
16437# the same #defines, which is useless.  Nevertheless, we may not want to
16438# sort them, since we want the *last* AC-DEFINE to be honored.
16439uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16440sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16441rm -f confdef2sed.sed
16442
16443# This sed command replaces #undef with comments.  This is necessary, for
16444# example, in the case of _POSIX_SOURCE, which is predefined and required
16445# on some systems where configure will not decide to define it.
16446cat >>conftest.undefs <<\_ACEOF
16447s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16448_ACEOF
16449
16450# Break up conftest.defines because some shells have a limit on the size
16451# of here documents, and old seds have small limits too (100 cmds).
16452echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16453echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16454echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16455echo '  :' >>$CONFIG_STATUS
16456rm -f conftest.tail
16457while grep . conftest.defines >/dev/null
16458do
16459  # Write a limited-size here document to $tmp/defines.sed.
16460  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16461  # Speed up: don't consider the non `#define' lines.
16462  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
16463  # Work around the forget-to-reset-the-flag bug.
16464  echo 't clr' >>$CONFIG_STATUS
16465  echo ': clr' >>$CONFIG_STATUS
16466  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16467  echo 'CEOF
16468  sed -f $tmp/defines.sed $tmp/in >$tmp/out
16469  rm -f $tmp/in
16470  mv $tmp/out $tmp/in
16471' >>$CONFIG_STATUS
16472  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16473  rm -f conftest.defines
16474  mv conftest.tail conftest.defines
16475done
16476rm -f conftest.defines
16477echo '  fi # grep' >>$CONFIG_STATUS
16478echo >>$CONFIG_STATUS
16479
16480# Break up conftest.undefs because some shells have a limit on the size
16481# of here documents, and old seds have small limits too (100 cmds).
16482echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16483rm -f conftest.tail
16484while grep . conftest.undefs >/dev/null
16485do
16486  # Write a limited-size here document to $tmp/undefs.sed.
16487  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16488  # Speed up: don't consider the non `#undef'
16489  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
16490  # Work around the forget-to-reset-the-flag bug.
16491  echo 't clr' >>$CONFIG_STATUS
16492  echo ': clr' >>$CONFIG_STATUS
16493  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16494  echo 'CEOF
16495  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16496  rm -f $tmp/in
16497  mv $tmp/out $tmp/in
16498' >>$CONFIG_STATUS
16499  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16500  rm -f conftest.undefs
16501  mv conftest.tail conftest.undefs
16502done
16503rm -f conftest.undefs
16504
16505cat >>$CONFIG_STATUS <<\_ACEOF
16506  # Let's still pretend it is `configure' which instantiates (i.e., don't
16507  # use $as_me), people would be surprised to read:
16508  #    /* config.h.  Generated by config.status.  */
16509  if test x"$ac_file" = x-; then
16510    echo "/* Generated by configure.  */" >$tmp/config.h
16511  else
16512    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16513  fi
16514  cat $tmp/in >>$tmp/config.h
16515  rm -f $tmp/in
16516  if test x"$ac_file" != x-; then
16517    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16518      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16519echo "$as_me: $ac_file is unchanged" >&6;}
16520    else
16521      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16522$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16523	 X"$ac_file" : 'X\(//\)[^/]' \| \
16524	 X"$ac_file" : 'X\(//\)$' \| \
16525	 X"$ac_file" : 'X\(/\)' \| \
16526	 .     : '\(.\)' 2>/dev/null ||
16527echo X"$ac_file" |
16528    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16529  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16530  	  /^X\(\/\/\)$/{ s//\1/; q; }
16531  	  /^X\(\/\).*/{ s//\1/; q; }
16532  	  s/.*/./; q'`
16533      { if $as_mkdir_p; then
16534    mkdir -p "$ac_dir"
16535  else
16536    as_dir="$ac_dir"
16537    as_dirs=
16538    while test ! -d "$as_dir"; do
16539      as_dirs="$as_dir $as_dirs"
16540      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16541$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16542	 X"$as_dir" : 'X\(//\)[^/]' \| \
16543	 X"$as_dir" : 'X\(//\)$' \| \
16544	 X"$as_dir" : 'X\(/\)' \| \
16545	 .     : '\(.\)' 2>/dev/null ||
16546echo X"$as_dir" |
16547    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16548  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16549  	  /^X\(\/\/\)$/{ s//\1/; q; }
16550  	  /^X\(\/\).*/{ s//\1/; q; }
16551  	  s/.*/./; q'`
16552    done
16553    test ! -n "$as_dirs" || mkdir $as_dirs
16554  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16555echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16556   { (exit 1); exit 1; }; }; }
16557
16558      rm -f $ac_file
16559      mv $tmp/config.h $ac_file
16560    fi
16561  else
16562    cat $tmp/config.h
16563    rm -f $tmp/config.h
16564  fi
16565done
16566_ACEOF
16567
16568cat >>$CONFIG_STATUS <<\_ACEOF
16569
16570{ (exit 0); exit 0; }
16571_ACEOF
16572chmod +x $CONFIG_STATUS
16573ac_clean_files=$ac_clean_files_save
16574
16575
16576# configure is writing to config.log, and then calls config.status.
16577# config.status does its own redirection, appending to config.log.
16578# Unfortunately, on DOS this fails, as config.log is still kept open
16579# by configure, so config.status won't be able to write to it; its
16580# output is simply discarded.  So we exec the FD to /dev/null,
16581# effectively closing config.log, so it can be properly (re)opened and
16582# appended to by config.status.  When coming back to configure, we
16583# need to make the FD available again.
16584if test "$no_create" != yes; then
16585  ac_cs_success=:
16586  ac_config_status_args=
16587  test "$silent" = yes &&
16588    ac_config_status_args="$ac_config_status_args --quiet"
16589  exec 5>/dev/null
16590  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16591  exec 5>>auto/config.log
16592  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16593  # would make configure fail if this is the last instruction.
16594  $ac_cs_success || { (exit 1); exit 1; }
16595fi
16596
16597
16598