blob: ca6b3eb3c86f67fabd741cd07e3f6f2eb12598d5 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#! /bin/sh
Bram Moolenaar071d4272004-06-13 20:20:40 +00002# Guess values for system-dependent variables and create Makefiles.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003# Generated by GNU Autoconf 2.59.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004#
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Bram Moolenaar071d4272004-06-13 20:20:40 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000011
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012# 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#
Bram Moolenaar071d4272004-06-13 20:20:40 +0000254ac_default_prefix=/usr/local
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000255ac_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
Bram Moolenaar9372a112005-12-06 19:59:18 +0000312ac_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'
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000313ac_subst_files=''
Bram Moolenaar071d4272004-06-13 20:20:40 +0000314
315# Initialize some variables set by options.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000316ac_init_help=
317ac_init_version=false
Bram Moolenaar071d4272004-06-13 20:20:40 +0000318# The variables have the same names as the options, with
319# dashes changed to underlines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000320cache_file=/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +0000321exec_prefix=NONE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000322no_create=
Bram Moolenaar071d4272004-06-13 20:20:40 +0000323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
Bram Moolenaar071d4272004-06-13 20:20:40 +0000331verbose=
332x_includes=NONE
333x_libraries=NONE
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000334
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.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000340bindir='${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
Bram Moolenaar071d4272004-06-13 20:20:40 +0000353ac_prev=
354for ac_option
355do
Bram Moolenaar071d4272004-06-13 20:20:40 +0000356 # 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
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000367 case $ac_option in
Bram Moolenaar071d4272004-06-13 20:20:40 +0000368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000372 bindir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000373
374 -build | --build | --buil | --bui | --bu)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000375 ac_prev=build_alias ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000377 build_alias=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000378
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000393 datadir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000394
395 -disable-* | --disable-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000397 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000398 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" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000403
404 -enable-* | --enable-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000406 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000407 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"`;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000413 *) ac_optarg=yes ;;
414 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000415 eval "enable_$ac_feature='$ac_optarg'" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000416
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000424 exec_prefix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000430 -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 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000436
437 -host | --host | --hos | --ho)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000438 ac_prev=host_alias ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000439 -host=* | --host=* | --hos=* | --ho=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000440 host_alias=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000441
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000447 includedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000452 infodir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000457 libdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000464 libexecdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000465
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000473 localstatedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000478 mandir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000479
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 \
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000485 | --no-cr | --no-c | -n)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000486 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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000499 oldincludedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000504 prefix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000505
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000511 program_prefix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000512
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000518 program_suffix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000519
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000535 program_transform_name=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000536
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000545 sbindir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000546
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000556 sharedstatedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000561 site=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000566 srcdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000567
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000573 sysconfdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000576 ac_prev=target_alias ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000578 target_alias=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000585
586 -with-* | --with-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000588 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000589 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; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000592 ac_package=`echo $ac_package| sed 's/-/_/g'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000595 *) ac_optarg=yes ;;
596 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000597 eval "with_$ac_package='$ac_optarg'" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000598
599 -without-* | --without-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000601 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000602 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" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000607
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000617 x_includes=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000618
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=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000624 x_libraries=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000625
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000629 ;;
630
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000631 *=*)
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
Bram Moolenaar071d4272004-06-13 20:20:40 +0000641 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000642 # 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}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000656fi
657
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
Bram Moolenaar071d4272004-06-13 20:20:40 +0000660do
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000661 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; }; };;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000666 esac
667done
668
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000669# 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
Bram Moolenaar071d4272004-06-13 20:20:40 +0000680
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000681# 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
Bram Moolenaar071d4272004-06-13 20:20:40 +0000687
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000688# 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
Bram Moolenaar071d4272004-06-13 20:20:40 +0000704
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.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000709 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'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000721 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
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000732 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000735 fi
736fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000737(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
Bram Moolenaar071d4272004-06-13 20:20:40 +0000773
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000774#
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.
Bram Moolenaar9372a112005-12-06 19:59:18 +0000863 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000864 --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
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000871 --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)
Bram Moolenaar899dddf2006-03-26 21:06:50 +0000879 --with-mac-arch=ARCH current, intel, ppc or both
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000880 --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
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000891 --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
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000907
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
Bram Moolenaarc7453f52006-02-10 23:20:28 +00001013exec 5>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001014cat >&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.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001237# 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
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001247 { 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001250 . "$ac_site_file"
1251 fi
1252done
1253
1254if test -r "$cache_file"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001255 # 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001265else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001266 { 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; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00001320fi
1321
1322ac_ext=c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001323ac_cpp='$CPP $CPPFLAGS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001324ac_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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001327
1328
1329
1330
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001331
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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001350#define UNIX 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001351_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001352
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001353echo "$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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001358else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001359 cat >conftest.make <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001360all:
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001361 @echo 'ac_maketemp="$(MAKE)"'
1362_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001363# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001364eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Bram Moolenaar071d4272004-06-13 20:20:40 +00001365if 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
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001370rm -f conftest.make
Bram Moolenaar071d4272004-06-13 20:20:40 +00001371fi
1372if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001373 echo "$as_me:$LINENO: result: yes" >&5
1374echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001375 SET_MAKE=
1376else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001377 echo "$as_me:$LINENO: result: no" >&5
1378echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001379 SET_MAKE="MAKE=${MAKE-make}"
1380fi
1381
1382
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001383ac_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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001395else
1396 if test -n "$CC"; then
1397 ac_cv_prog_CC="$CC" # Let the user override the test.
1398else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001399as_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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001413fi
1414fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001415CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001416if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001417 echo "$as_me:$LINENO: result: $CC" >&5
1418echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001419else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001420 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"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001465fi
1466
1467if test -z "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001468 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001475else
1476 if test -n "$CC"; then
1477 ac_cv_prog_CC="$CC" # Let the user override the test.
1478else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001479as_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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001559 ac_prog_rejected=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001560as_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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001578if 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
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001582 if test $# != 0; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00001583 # 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
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001588 fi
1589fi
1590fi
1591fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001592CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001593if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001594 echo "$as_me:$LINENO: result: $CC" >&5
1595echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001596else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001597 echo "$as_me:$LINENO: result: no" >&5
1598echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001599fi
1600
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001601fi
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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001612else
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1615else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001616as_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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001630fi
1631fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001632CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001633if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001634 echo "$as_me:$LINENO: result: $CC" >&5
1635echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001636else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001637 echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001639fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001640
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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001668 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001669done
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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001681fi
1682
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001683 test -n "$ac_ct_CC" && break
1684done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001685
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001686 CC=$ac_ct_CC
1687fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001688
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001689fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001690
Bram Moolenaar071d4272004-06-13 20:20:40 +00001691
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001692test -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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001807 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001808 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001819 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001820fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001821echo "$as_me:$LINENO: result: yes" >&5
1822echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001823
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001824rm -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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001832
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001833echo "$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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001854else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001855 { { 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001936#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00001937
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001938 ;
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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001965else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001966 echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969ac_compiler_gnu=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00001970fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1972ac_cv_c_compiler_gnu=$ac_compiler_gnu
Bram Moolenaar071d4272004-06-13 20:20:40 +00001973
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001974fi
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
Bram Moolenaar071d4272004-06-13 20:20:40 +00001985else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001986 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00002023 ac_cv_prog_cc_g=yes
2024else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002025 echo "$as_me: failed program was:" >&5
2026sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00002027
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002028ac_cv_prog_cc_g=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002029fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002030rm -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
Bram Moolenaar071d4272004-06-13 20:20:40 +00002034if test "$ac_test_CFLAGS" = set; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002035 CFLAGS=$ac_save_CFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00002036elif 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
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002049echo "$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
Bram Moolenaar071d4272004-06-13 20:20:40 +00002319# On Suns, sometimes $CPP names a directory.
2320if test -n "$CPP" && test -d "$CPP"; then
2321 CPP=
2322fi
2323if test -z "$CPP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002324 if test "${ac_cv_prog_CPP+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002326else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002327 # 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.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002337 # On the NeXT, cc -E runs the code through the compiler's parser,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002338 # 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00002363 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002364 ac_cpp_err=
Bram Moolenaar071d4272004-06-13 20:20:40 +00002365 fi
2366else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002367 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002368fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002369if 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00002439do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002440 # 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.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002703set dummy $ac_prog; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002704echo "$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
Bram Moolenaar071d4272004-06-13 20:20:40 +00002708else
2709 if test -n "$AWK"; then
2710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2711else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002712as_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
Bram Moolenaar071d4272004-06-13 20:20:40 +00002726fi
2727fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002728AWK=$ac_cv_prog_AWK
Bram Moolenaar071d4272004-06-13 20:20:40 +00002729if test -n "$AWK"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002730 echo "$as_me:$LINENO: result: $AWK" >&5
2731echo "${ECHO_T}$AWK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002732else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002733 echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002735fi
2736
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002737 test -n "$AWK" && break
Bram Moolenaar071d4272004-06-13 20:20:40 +00002738done
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002739
Bram Moolenaar071d4272004-06-13 20:20:40 +00002740# Extract the first word of "strip", so it can be a program name with args.
2741set dummy strip; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002742echo "$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
Bram Moolenaar071d4272004-06-13 20:20:40 +00002746else
2747 if test -n "$STRIP"; then
2748 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2749else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002750as_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
Bram Moolenaar071d4272004-06-13 20:20:40 +00002764 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2765fi
2766fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002767STRIP=$ac_cv_prog_STRIP
Bram Moolenaar071d4272004-06-13 20:20:40 +00002768if test -n "$STRIP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002769 echo "$as_me:$LINENO: result: $STRIP" >&5
2770echo "${ECHO_T}$STRIP" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002771else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002772 echo "$as_me:$LINENO: result: no" >&5
2773echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002774fi
2775
2776
Bram Moolenaar071d4272004-06-13 20:20:40 +00002777
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
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002784 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
Bram Moolenaara5792f52005-11-23 21:25:05 +00002788 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002789 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
Bram Moolenaar071d4272004-06-13 20:20:40 +00002790 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
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002800 { { 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; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00002805fi
2806
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002807test "$GCC" = yes && CPP_MM=M;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002808
2809if test -f ./toolcheck; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002810 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2811echo "$as_me: checking for buggy tools..." >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +00002812 sh ./toolcheck 1>&6
2813fi
2814
2815OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2816
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002817echo "$as_me:$LINENO: checking for BeOS" >&5
2818echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002819case `uname` in
2820 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002821 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;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002825esac
2826
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002827echo "$as_me:$LINENO: checking for QNX" >&5
2828echo $ECHO_N "checking for QNX... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002829case `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
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002832 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;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002836esac
2837
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002838echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2839echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002840if test "`(uname) 2>/dev/null`" = Darwin; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002841 echo "$as_me:$LINENO: result: yes" >&5
2842echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002843
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002844 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2845echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002846 # Check whether --enable-darwin or --disable-darwin was given.
2847if test "${enable_darwin+set}" = set; then
2848 enableval="$enable_darwin"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002849
Bram Moolenaar071d4272004-06-13 20:20:40 +00002850else
2851 enable_darwin="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002852fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002853 if test "$enable_darwin" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002854 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00002858 if test -f os_macosx.c; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002859 echo "$as_me:$LINENO: result: yes" >&5
2860echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002861 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002862 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2863echo "${ECHO_T}no, Darwin support disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002864 enable_darwin=no
2865 fi
2866 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002867 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2868echo "${ECHO_T}yes, Darwin support excluded" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002869 fi
2870
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002871 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
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002880 MACARCH="current"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002881echo "${ECHO_T}defaulting to $MACARCH" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002882fi;
2883
2884 if test "x$MACARCH" = "xboth"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002885 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"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002889 save_ldflags="$LDFLAGS"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002890 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002891 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
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002928 echo "$as_me:$LINENO: result: found" >&5
2929echo "${ECHO_T}found" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002930else
2931 echo "$as_me: failed program was:" >&5
2932sed 's/^/| /' conftest.$ac_ext >&5
2933
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002934echo "$as_me:$LINENO: result: not found" >&5
2935echo "${ECHO_T}not found" >&6
Bram Moolenaar1f35bf92006-03-07 22:38:47 +00002936 CFLAGS="$save_cflags"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002937 echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002938echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002939 CPPFLAGS="$CPPFLAGS -arch i386"
2940 LDFLAGS="$save_ldflags -arch i386"
2941 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002942/* 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
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002985echo "${ECHO_T}no" >&6
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00002986 MACARCH="ppc"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002987 CPPFLAGS="$save_cppflags -arch ppc"
2988 LDFLAGS="$save_ldflags -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002989fi
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
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002995 elif test "x$MACARCH" = "xintel"; then
2996 CPPFLAGS="$CPPFLAGS -arch intel"
2997 LDFLAGS="$LDFLAGS -arch intel"
Bram Moolenaare2f98b92006-03-29 21:18:24 +00002998 elif test "x$MACARCH" = "xppc"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002999 CPPFLAGS="$CPPFLAGS -arch ppc"
3000 LDFLAGS="$LDFLAGS -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003001 fi
3002
Bram Moolenaar071d4272004-06-13 20:20:40 +00003003 if test "$enable_darwin" = "yes"; then
3004 MACOSX=yes
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003005 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3006 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003007 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00003013
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003014 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00003018else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003019 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00003061else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003062 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00003085fi
3086rm -f conftest*
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003087
Bram Moolenaar071d4272004-06-13 20:20:40 +00003088fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003089
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 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00003104else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003105 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003106fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003107rm -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
Bram Moolenaar071d4272004-06-13 20:20:40 +00003393
3394 if test "x$CARBON" = "xyes"; then
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003395 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00003396 with_x=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003397 fi
3398 fi
3399 fi
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003400
Bram Moolenaarfd2ac762006-03-01 22:09:21 +00003401 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003402 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3403 fi
3404
Bram Moolenaar071d4272004-06-13 20:20:40 +00003405else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003406 echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003408fi
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
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003434echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3435echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3436
Bram Moolenaar071d4272004-06-13 20:20:40 +00003437# Check whether --with-vim-name or --without-vim-name was given.
3438if test "${with_vim_name+set}" = set; then
3439 withval="$with_vim_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003440 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3441echo "${ECHO_T}$VIMNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003442else
Bram Moolenaare344bea2005-09-01 20:46:49 +00003443 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003444echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3445fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003446
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003447echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3448echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003449
Bram Moolenaar071d4272004-06-13 20:20:40 +00003450# Check whether --with-ex-name or --without-ex-name was given.
3451if test "${with_ex_name+set}" = set; then
3452 withval="$with_ex_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003453 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3454echo "${ECHO_T}$EXNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003455else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003456 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3457echo "${ECHO_T}Defaulting to ex" >&6
3458fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003459
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003460echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3461echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003462
Bram Moolenaar071d4272004-06-13 20:20:40 +00003463# Check whether --with-view-name or --without-view-name was given.
3464if test "${with_view_name+set}" = set; then
3465 withval="$with_view_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003466 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3467echo "${ECHO_T}$VIEWNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003468else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003469 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3470echo "${ECHO_T}Defaulting to view" >&6
3471fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003472
3473
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003474echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3475echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003476
Bram Moolenaar071d4272004-06-13 20:20:40 +00003477# Check whether --with-global-runtime or --without-global-runtime was given.
3478if test "${with_global_runtime+set}" = set; then
3479 withval="$with_global_runtime"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003480 echo "$as_me:$LINENO: result: $withval" >&5
3481echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003482#define RUNTIME_GLOBAL "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003483_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003484
3485else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003486 echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
3488fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003489
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003490echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3491echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003492
Bram Moolenaar071d4272004-06-13 20:20:40 +00003493# Check whether --with-modified-by or --without-modified-by was given.
3494if test "${with_modified_by+set}" = set; then
3495 withval="$with_modified_by"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003496 echo "$as_me:$LINENO: result: $withval" >&5
3497echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003498#define MODIFIED_BY "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003499_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003500
3501else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003502 echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
3504fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003505
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003506echo "$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. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003514
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003515int
3516main ()
3517{
Bram Moolenaar071d4272004-06-13 20:20:40 +00003518 /* 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"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003524#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
Bram Moolenaar071d4272004-06-13 20:20:40 +00003551 # TryCompile action if true
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003552cf_cv_ebcdic=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003553else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003554 echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # TryCompile action if false
Bram Moolenaar071d4272004-06-13 20:20:40 +00003558cf_cv_ebcdic=no
3559fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003561# end of TryCompile ])
3562# end of CacheVal CvEbcdic
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003563echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3564echo "${ECHO_T}$cf_cv_ebcdic" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003565case "$cf_cv_ebcdic" in #(vi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003566 yes) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003567#define EBCDIC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003568_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003569
3570 line_break='"\\n"'
3571 ;;
3572 *) line_break='"\\012"';;
3573esac
3574
3575
3576if test "$cf_cv_ebcdic" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003577echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3578echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003579case `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"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003604 echo "$as_me:$LINENO: result: yes" >&5
3605echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003606 ;;
3607 *) OS390Unix="no";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003608 echo "$as_me:$LINENO: result: no" >&5
3609echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003610 ;;
3611esac
3612fi
3613
3614
3615
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003616echo "$as_me:$LINENO: checking --with-features argument" >&5
3617echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3618
Bram Moolenaar071d4272004-06-13 20:20:40 +00003619# Check whether --with-features or --without-features was given.
3620if test "${with_features+set}" = set; then
3621 withval="$with_features"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003622 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3623echo "${ECHO_T}$features" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003624else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003625 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3626echo "${ECHO_T}Defaulting to normal" >&6
3627fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003628
3629dovimdiff=""
3630dogvimdiff=""
3631case "$features" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003632 tiny) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003633#define FEAT_TINY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003634_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003635 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003636 small) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003637#define FEAT_SMALL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003638_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003639 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003640 normal) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003641#define FEAT_NORMAL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003642_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003643 dovimdiff="installvimdiff";
3644 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003645 big) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003646#define FEAT_BIG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003647_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003648 dovimdiff="installvimdiff";
3649 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003650 huge) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003651#define FEAT_HUGE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003652_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003653 dovimdiff="installvimdiff";
3654 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003655 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3656echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003657esac
3658
3659
3660
3661
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003662echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3663echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3664
Bram Moolenaar071d4272004-06-13 20:20:40 +00003665# Check whether --with-compiledby or --without-compiledby was given.
3666if test "${with_compiledby+set}" = set; then
3667 withval="$with_compiledby"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003668 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3669echo "${ECHO_T}$withval" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003670else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003671 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003674
3675
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003676echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3677echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003678# Check whether --enable-xsmp or --disable-xsmp was given.
3679if test "${enable_xsmp+set}" = set; then
3680 enableval="$enable_xsmp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003681
Bram Moolenaar071d4272004-06-13 20:20:40 +00003682else
3683 enable_xsmp="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003684fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003685
3686if test "$enable_xsmp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003687 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
Bram Moolenaar071d4272004-06-13 20:20:40 +00003691 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3692if test "${enable_xsmp_interact+set}" = set; then
3693 enableval="$enable_xsmp_interact"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003694
Bram Moolenaar071d4272004-06-13 20:20:40 +00003695else
3696 enable_xsmp_interact="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003697fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003698 if test "$enable_xsmp_interact" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003699 echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003702#define USE_XSMP_INTERACT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003703_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003704
3705 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003706 echo "$as_me:$LINENO: result: yes" >&5
3707echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003708 fi
3709else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003710 echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003712fi
3713
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003714echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3715echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003716# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3717if test "${enable_mzschemeinterp+set}" = set; then
3718 enableval="$enable_mzschemeinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003719
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003720else
3721 enable_mzschemeinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003722fi;
3723echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3724echo "${ECHO_T}$enable_mzschemeinterp" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003725
3726if test "$enable_mzschemeinterp" = "yes"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003727
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003728
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.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003733if test "${with_plthome+set}" = set; then
3734 withval="$with_plthome"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003735 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3736echo "${ECHO_T}$with_plthome" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003737else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003738 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3739echo "${ECHO_T}\"no\"" >&6
3740fi;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003741
3742 if test "X$with_plthome" != "X"; then
3743 vi_cv_path_mzscheme_pfx="$with_plthome"
3744 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003745 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3746echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003747 if test "X$PLTHOME" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003748 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3749echo "${ECHO_T}\"$PLTHOME\"" >&6
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003750 vi_cv_path_mzscheme_pfx="$PLTHOME"
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003751 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003752 echo "$as_me:$LINENO: result: \"not set\"" >&5
3753echo "${ECHO_T}\"not set\"" >&6
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003754 # Extract the first word of "mzscheme", so it can be a program name with args.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003755set dummy mzscheme; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003756echo "$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
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003760else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003761 case $vi_cv_path_mzscheme in
3762 [\\/]* | ?:[\\/]*)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003763 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3764 ;;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003765 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003766 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
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003780 ;;
3781esac
3782fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003783vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3784
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003785if test -n "$vi_cv_path_mzscheme"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003786 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3787echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003788else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003789 echo "$as_me:$LINENO: result: no" >&5
3790echo "${ECHO_T}no" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003791fi
3792
3793
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003794 if test "X$vi_cv_path_mzscheme" != "X"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003795 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
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003801 if test "X$vi_cv_path_mzscheme" != "X"; then
3802 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003803echo $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
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003806else
3807 vi_cv_path_mzscheme_pfx=`
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003808 ${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))))"`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003813fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003814echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3815echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003816 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003817 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003818 fi
3819 fi
3820
Bram Moolenaarff4a37e2007-05-06 13:18:29 +00003821 SCHEME_INC=
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003822 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003823 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
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003825 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003826 echo "$as_me:$LINENO: result: \"yes\"" >&5
3827echo "${ECHO_T}\"yes\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003828 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003829 echo "$as_me:$LINENO: result: \"no\"" >&5
3830echo "${ECHO_T}\"no\"" >&6
Bram Moolenaarff4a37e2007-05-06 13:18:29 +00003831 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
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003842 fi
3843 fi
3844
3845 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaarf15f9432007-06-28 11:07:21 +00003846 if test "x$MACOSX" = "xyes"; then
3847 MZSCHEME_LIBS="-framework PLT_MzScheme"
3848 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
Bram Moolenaare0d7b3c2007-05-12 14:23:41 +00003849 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003850 else
Bram Moolenaare0d7b3c2007-05-12 14:23:41 +00003851 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003852 if test "$GCC" = yes; then
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003853 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003854 elif test "`(uname) 2>/dev/null`" = SunOS &&
3855 uname -r | grep '^5' >/dev/null; then
3856 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003857 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003858 fi
Bram Moolenaarff4a37e2007-05-06 13:18:29 +00003859 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
3860 SCHEME_COLLECTS=lib/plt/
3861 fi
3862 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
3863 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003864 MZSCHEME_SRC="if_mzsch.c"
3865 MZSCHEME_OBJ="objects/if_mzsch.o"
3866 MZSCHEME_PRO="if_mzsch.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003867 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003868#define FEAT_MZSCHEME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003869_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003870
3871 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003872
3873
3874
3875
3876
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003877fi
3878
3879
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003880echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3881echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003882# Check whether --enable-perlinterp or --disable-perlinterp was given.
3883if test "${enable_perlinterp+set}" = set; then
3884 enableval="$enable_perlinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003885
Bram Moolenaar071d4272004-06-13 20:20:40 +00003886else
3887 enable_perlinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003888fi;
3889echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3890echo "${ECHO_T}$enable_perlinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003891if test "$enable_perlinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003892
Bram Moolenaar071d4272004-06-13 20:20:40 +00003893 # Extract the first word of "perl", so it can be a program name with args.
3894set dummy perl; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003895echo "$as_me:$LINENO: checking for $ac_word" >&5
3896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3897if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003899else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003900 case $vi_cv_path_perl in
3901 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003902 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3903 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003904 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916done
3917done
3918
Bram Moolenaar071d4272004-06-13 20:20:40 +00003919 ;;
3920esac
3921fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003922vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3923
Bram Moolenaar071d4272004-06-13 20:20:40 +00003924if test -n "$vi_cv_path_perl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003925 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3926echo "${ECHO_T}$vi_cv_path_perl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003927else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003928 echo "$as_me:$LINENO: result: no" >&5
3929echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003930fi
3931
3932 if test "X$vi_cv_path_perl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003933 echo "$as_me:$LINENO: checking Perl version" >&5
3934echo $ECHO_N "checking Perl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003935 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3936 eval `$vi_cv_path_perl -V:usethreads`
3937 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3938 badthreads=no
3939 else
3940 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3941 eval `$vi_cv_path_perl -V:use5005threads`
3942 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3943 badthreads=no
3944 else
3945 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003946 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3947echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003948 fi
3949 else
3950 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003951 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3952echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003953 fi
3954 fi
3955 if test $badthreads = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003956 echo "$as_me:$LINENO: result: OK" >&5
3957echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003958 eval `$vi_cv_path_perl -V:shrpenv`
3959 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3960 shrpenv=""
3961 fi
3962 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003963
Bram Moolenaar071d4272004-06-13 20:20:40 +00003964 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3965 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3966 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3967 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3968 -e 's/-bE:perl.exp//' -e 's/-lc //'`
3969 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3970 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3971
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003972 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3973echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003974 cflags_save=$CFLAGS
3975 libs_save=$LIBS
3976 ldflags_save=$LDFLAGS
3977 CFLAGS="$CFLAGS $perlcppflags"
3978 LIBS="$LIBS $perllibs"
3979 LDFLAGS="$perlldflags $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003980 cat >conftest.$ac_ext <<_ACEOF
3981/* confdefs.h. */
3982_ACEOF
3983cat confdefs.h >>conftest.$ac_ext
3984cat >>conftest.$ac_ext <<_ACEOF
3985/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003986
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003987int
3988main ()
3989{
3990
3991 ;
3992 return 0;
3993}
3994_ACEOF
3995rm -f conftest.$ac_objext conftest$ac_exeext
3996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3997 (eval $ac_link) 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -z "$ac_c_werror_flag"
4005 || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 echo "$as_me:$LINENO: result: yes" >&5
4018echo "${ECHO_T}yes" >&6; perl_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004019else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004020 echo "$as_me: failed program was:" >&5
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4024echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004025fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004026rm -f conftest.err conftest.$ac_objext \
4027 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004028 CFLAGS=$cflags_save
4029 LIBS=$libs_save
4030 LDFLAGS=$ldflags_save
4031 if test $perl_ok = yes; then
4032 if test "X$perlcppflags" != "X"; then
Bram Moolenaarff4a37e2007-05-06 13:18:29 +00004033 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004034 fi
4035 if test "X$perlldflags" != "X"; then
4036 LDFLAGS="$perlldflags $LDFLAGS"
4037 fi
4038 PERL_LIBS=$perllibs
4039 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4040 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4041 PERL_PRO="if_perl.pro if_perlsfio.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004042 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004043#define FEAT_PERL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004044_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004045
4046 fi
4047 fi
4048 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004049 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4050echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004051 fi
4052 fi
4053
4054 if test "x$MACOSX" = "xyes"; then
4055 dir=/System/Library/Perl
4056 darwindir=$dir/darwin
4057 if test -d $darwindir; then
4058 PERL=/usr/bin/perl
4059 else
4060 dir=/System/Library/Perl/5.8.1
4061 darwindir=$dir/darwin-thread-multi-2level
4062 if test -d $darwindir; then
4063 PERL=/usr/bin/perl
4064 fi
4065 fi
4066 if test -n "$PERL"; then
4067 PERL_DIR="$dir"
4068 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4069 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4070 PERL_LIBS="-L$darwindir/CORE -lperl"
4071 fi
4072 fi
4073fi
4074
4075
4076
4077
4078
4079
4080
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004081echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4082echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004083# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4084if test "${enable_pythoninterp+set}" = set; then
4085 enableval="$enable_pythoninterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004086
Bram Moolenaar071d4272004-06-13 20:20:40 +00004087else
4088 enable_pythoninterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004089fi;
4090echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4091echo "${ECHO_T}$enable_pythoninterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004092if test "$enable_pythoninterp" = "yes"; then
4093 # Extract the first word of "python", so it can be a program name with args.
4094set dummy python; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004095echo "$as_me:$LINENO: checking for $ac_word" >&5
4096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004099else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004100 case $vi_cv_path_python in
4101 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004102 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4103 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004104 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH
4107do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116done
4117done
4118
Bram Moolenaar071d4272004-06-13 20:20:40 +00004119 ;;
4120esac
4121fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004122vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4123
Bram Moolenaar071d4272004-06-13 20:20:40 +00004124if test -n "$vi_cv_path_python"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004125 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4126echo "${ECHO_T}$vi_cv_path_python" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004127else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004128 echo "$as_me:$LINENO: result: no" >&5
4129echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004130fi
4131
4132 if test "X$vi_cv_path_python" != "X"; then
4133
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004134 echo "$as_me:$LINENO: checking Python version" >&5
4135echo $ECHO_N "checking Python version... $ECHO_C" >&6
4136if test "${vi_cv_var_python_version+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004138else
4139 vi_cv_var_python_version=`
4140 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004141
Bram Moolenaar071d4272004-06-13 20:20:40 +00004142fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004143echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4144echo "${ECHO_T}$vi_cv_var_python_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004145
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004146 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4147echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004148 if ${vi_cv_path_python} -c \
4149 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4150 then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004151 echo "$as_me:$LINENO: result: yep" >&5
4152echo "${ECHO_T}yep" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004153
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004154 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4155echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4156if test "${vi_cv_path_python_pfx+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004158else
4159 vi_cv_path_python_pfx=`
4160 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004161 "import sys; print sys.prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004162fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004163echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4164echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004165
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004166 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4167echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4168if test "${vi_cv_path_python_epfx+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004170else
4171 vi_cv_path_python_epfx=`
4172 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004173 "import sys; print sys.exec_prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004174fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004175echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4176echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004177
Bram Moolenaar071d4272004-06-13 20:20:40 +00004178
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004179 if test "${vi_cv_path_pythonpath+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004181else
4182 vi_cv_path_pythonpath=`
4183 unset PYTHONPATH;
4184 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004185 "import sys, string; print string.join(sys.path,':')"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004186fi
4187
4188
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004189
4190
4191# Check whether --with-python-config-dir or --without-python-config-dir was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004192if test "${with_python_config_dir+set}" = set; then
4193 withval="$with_python_config_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004194 vi_cv_path_python_conf="${withval}"
4195fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004196
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004197 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4198echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4199if test "${vi_cv_path_python_conf+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004201else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004202
Bram Moolenaar071d4272004-06-13 20:20:40 +00004203 vi_cv_path_python_conf=
4204 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4205 for subdir in lib share; do
4206 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4207 if test -d "$d" && test -f "$d/config.c"; then
4208 vi_cv_path_python_conf="$d"
4209 fi
4210 done
4211 done
Bram Moolenaar071d4272004-06-13 20:20:40 +00004212
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004213fi
4214echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4215echo "${ECHO_T}$vi_cv_path_python_conf" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004216
4217 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4218
4219 if test "X$PYTHON_CONFDIR" = "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004220 echo "$as_me:$LINENO: result: can't find it!" >&5
4221echo "${ECHO_T}can't find it!" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004222 else
4223
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004224 if test "${vi_cv_path_python_plibs+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004226else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004227
Bram Moolenaar071d4272004-06-13 20:20:40 +00004228 tmp_mkf="/tmp/Makefile-conf$$"
4229 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4230__:
4231 @echo "python_MODLIBS='$(MODLIBS)'"
4232 @echo "python_LIBS='$(LIBS)'"
4233 @echo "python_SYSLIBS='$(SYSLIBS)'"
4234 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4235eof
4236 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4237 rm -f ${tmp_mkf}
4238 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4239 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4240 vi_cv_path_python_plibs="-framework Python"
4241 else
4242 if test "${vi_cv_var_python_version}" = "1.4"; then
4243 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4244 else
4245 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4246 fi
4247 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4248 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4249 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004250
Bram Moolenaar071d4272004-06-13 20:20:40 +00004251fi
4252
4253
4254 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4255 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4256 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4257 else
4258 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}"
4259 fi
4260 PYTHON_SRC="if_python.c"
4261 if test "x$MACOSX" = "xyes"; then
4262 PYTHON_OBJ="objects/if_python.o"
4263 else
4264 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4265 fi
4266 if test "${vi_cv_var_python_version}" = "1.4"; then
4267 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4268 fi
4269 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4270
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004271 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4272echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004273 threadsafe_flag=
4274 thread_lib=
Bram Moolenaara1b5aa52006-10-10 09:41:28 +00004275 if test "`(uname) 2>/dev/null`" != Darwin; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004276 test "$GCC" = yes && threadsafe_flag="-pthread"
4277 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4278 threadsafe_flag="-D_THREAD_SAFE"
4279 thread_lib="-pthread"
4280 fi
4281 fi
4282 libs_save_old=$LIBS
4283 if test -n "$threadsafe_flag"; then
4284 cflags_save=$CFLAGS
4285 CFLAGS="$CFLAGS $threadsafe_flag"
4286 LIBS="$LIBS $thread_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004287 cat >conftest.$ac_ext <<_ACEOF
4288/* confdefs.h. */
4289_ACEOF
4290cat confdefs.h >>conftest.$ac_ext
4291cat >>conftest.$ac_ext <<_ACEOF
4292/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004293
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004294int
4295main ()
4296{
4297
4298 ;
4299 return 0;
4300}
4301_ACEOF
4302rm -f conftest.$ac_objext conftest$ac_exeext
4303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4304 (eval $ac_link) 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest$ac_exeext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 echo "$as_me:$LINENO: result: yes" >&5
4325echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004326else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330echo "$as_me:$LINENO: result: no" >&5
4331echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4332
Bram Moolenaar071d4272004-06-13 20:20:40 +00004333fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004334rm -f conftest.err conftest.$ac_objext \
4335 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004336 CFLAGS=$cflags_save
4337 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004338 echo "$as_me:$LINENO: result: no" >&5
4339echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004340 fi
4341
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004342 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4343echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004344 cflags_save=$CFLAGS
4345 libs_save=$LIBS
4346 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4347 LIBS="$LIBS $PYTHON_LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004348 cat >conftest.$ac_ext <<_ACEOF
4349/* confdefs.h. */
4350_ACEOF
4351cat confdefs.h >>conftest.$ac_ext
4352cat >>conftest.$ac_ext <<_ACEOF
4353/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004354
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004355int
4356main ()
4357{
4358
4359 ;
4360 return 0;
4361}
4362_ACEOF
4363rm -f conftest.$ac_objext conftest$ac_exeext
4364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest$ac_exeext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 (eval $ac_try) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 echo "$as_me:$LINENO: result: yes" >&5
4386echo "${ECHO_T}yes" >&6; python_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004387else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004388 echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4392echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004393fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004394rm -f conftest.err conftest.$ac_objext \
4395 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004396 CFLAGS=$cflags_save
4397 LIBS=$libs_save
4398 if test $python_ok = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004399 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004400#define FEAT_PYTHON 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004401_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004402
4403 else
4404 LIBS=$libs_save_old
4405 PYTHON_SRC=
4406 PYTHON_OBJ=
4407 PYTHON_LIBS=
4408 PYTHON_CFLAGS=
4409 fi
4410
4411 fi
4412 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004413 echo "$as_me:$LINENO: result: too old" >&5
4414echo "${ECHO_T}too old" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004415 fi
4416 fi
4417fi
4418
4419
4420
4421
4422
4423
4424
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004425echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4426echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004427# Check whether --enable-tclinterp or --disable-tclinterp was given.
4428if test "${enable_tclinterp+set}" = set; then
4429 enableval="$enable_tclinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004430
Bram Moolenaar071d4272004-06-13 20:20:40 +00004431else
4432 enable_tclinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004433fi;
4434echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4435echo "${ECHO_T}$enable_tclinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004436
4437if test "$enable_tclinterp" = "yes"; then
4438
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004439 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4440echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4441
4442# Check whether --with-tclsh or --without-tclsh was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004443if test "${with_tclsh+set}" = set; then
4444 withval="$with_tclsh"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004445 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4446echo "${ECHO_T}$tclsh_name" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004447else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004448 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6
4450fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004451 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4452set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004453echo "$as_me:$LINENO: checking for $ac_word" >&5
4454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4455if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004457else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004458 case $vi_cv_path_tcl in
4459 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004460 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4461 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004462 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4473 fi
4474done
4475done
4476
Bram Moolenaar071d4272004-06-13 20:20:40 +00004477 ;;
4478esac
4479fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004480vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4481
Bram Moolenaar071d4272004-06-13 20:20:40 +00004482if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004483 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4484echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004485else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004486 echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004488fi
4489
Bram Moolenaar071d4272004-06-13 20:20:40 +00004490
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004491
4492 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004493 tclsh_name="tclsh8.2"
4494 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4495set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004496echo "$as_me:$LINENO: checking for $ac_word" >&5
4497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4498if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004500else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004501 case $vi_cv_path_tcl in
4502 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004503 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4504 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004505 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4516 fi
4517done
4518done
4519
Bram Moolenaar071d4272004-06-13 20:20:40 +00004520 ;;
4521esac
4522fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004523vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4524
Bram Moolenaar071d4272004-06-13 20:20:40 +00004525if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004526 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4527echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004528else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004529 echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
4531fi
4532
4533 fi
4534 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4535 tclsh_name="tclsh8.0"
4536 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4537set dummy $tclsh_name; ac_word=$2
4538echo "$as_me:$LINENO: checking for $ac_word" >&5
4539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542else
4543 case $vi_cv_path_tcl in
4544 [\\/]* | ?:[\\/]*)
4545 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4546 ;;
4547 *)
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559done
4560done
4561
4562 ;;
4563esac
4564fi
4565vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4566
4567if test -n "$vi_cv_path_tcl"; then
4568 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4569echo "${ECHO_T}$vi_cv_path_tcl" >&6
4570else
4571 echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004573fi
4574
4575 fi
4576 if test "X$vi_cv_path_tcl" = "X"; then
4577 tclsh_name="tclsh"
4578 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4579set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004580echo "$as_me:$LINENO: checking for $ac_word" >&5
4581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004584else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004585 case $vi_cv_path_tcl in
4586 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004587 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4588 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004589 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601done
4602done
4603
Bram Moolenaar071d4272004-06-13 20:20:40 +00004604 ;;
4605esac
4606fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004607vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4608
Bram Moolenaar071d4272004-06-13 20:20:40 +00004609if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004610 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4611echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004612else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004615fi
4616
4617 fi
4618 if test "X$vi_cv_path_tcl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004619 echo "$as_me:$LINENO: checking Tcl version" >&5
4620echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004621 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4622 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004623 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4624echo "${ECHO_T}$tclver - OK" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004625 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 -`
4626
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004627 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4628echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004629 if test "x$MACOSX" != "xyes"; then
Bram Moolenaar47136d72004-10-12 20:02:24 +00004630 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004631 else
4632 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4633 fi
4634 for try in $tclinc; do
4635 if test -f "$try/tcl.h"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004636 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4637echo "${ECHO_T}$try/tcl.h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004638 TCL_INC=$try
4639 break
4640 fi
4641 done
4642 if test -z "$TCL_INC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004643 echo "$as_me:$LINENO: result: <not found>" >&5
4644echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004645 SKIP_TCL=YES
4646 fi
4647 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004648 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4649echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004650 if test "x$MACOSX" != "xyes"; then
4651 tclcnf=`echo $tclinc | sed s/include/lib/g`
4652 else
4653 tclcnf="/System/Library/Frameworks/Tcl.framework"
4654 fi
4655 for try in $tclcnf; do
4656 if test -f $try/tclConfig.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004657 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4658echo "${ECHO_T}$try/tclConfig.sh" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004659 . $try/tclConfig.sh
4660 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
Bram Moolenaar9372a112005-12-06 19:59:18 +00004661 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'`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004662 break
4663 fi
4664 done
4665 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004666 echo "$as_me:$LINENO: result: <not found>" >&5
4667echo "${ECHO_T}<not found>" >&6
4668 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4669echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004670 tcllib=`echo $tclinc | sed s/include/lib/g`
4671 for ext in .so .a ; do
4672 for ver in "" $tclver ; do
4673 for try in $tcllib ; do
4674 trylib=tcl$ver$ext
4675 if test -f $try/lib$trylib ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004676 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4677echo "${ECHO_T}$try/lib$trylib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004678 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4679 if test "`(uname) 2>/dev/null`" = SunOS &&
4680 uname -r | grep '^5' >/dev/null; then
4681 TCL_LIBS="$TCL_LIBS -R $try"
4682 fi
4683 break 3
4684 fi
4685 done
4686 done
4687 done
4688 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004689 echo "$as_me:$LINENO: result: <not found>" >&5
4690echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004691 SKIP_TCL=YES
4692 fi
4693 fi
4694 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004695 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004696#define FEAT_TCL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004697_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004698
4699 TCL_SRC=if_tcl.c
4700 TCL_OBJ=objects/if_tcl.o
4701 TCL_PRO=if_tcl.pro
4702 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4703 fi
4704 fi
4705 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004706 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4707echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004708 fi
4709 fi
4710fi
4711
4712
4713
4714
4715
4716
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004717echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4718echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004719# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4720if test "${enable_rubyinterp+set}" = set; then
4721 enableval="$enable_rubyinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004722
Bram Moolenaar071d4272004-06-13 20:20:40 +00004723else
4724 enable_rubyinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004725fi;
4726echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4727echo "${ECHO_T}$enable_rubyinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004728if test "$enable_rubyinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004729
Bram Moolenaar071d4272004-06-13 20:20:40 +00004730 # Extract the first word of "ruby", so it can be a program name with args.
4731set dummy ruby; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004732echo "$as_me:$LINENO: checking for $ac_word" >&5
4733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4734if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004736else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004737 case $vi_cv_path_ruby in
4738 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004739 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4740 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004741 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753done
4754done
4755
Bram Moolenaar071d4272004-06-13 20:20:40 +00004756 ;;
4757esac
4758fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004759vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4760
Bram Moolenaar071d4272004-06-13 20:20:40 +00004761if test -n "$vi_cv_path_ruby"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004762 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4763echo "${ECHO_T}$vi_cv_path_ruby" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004764else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004765 echo "$as_me:$LINENO: result: no" >&5
4766echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004767fi
4768
4769 if test "X$vi_cv_path_ruby" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004770 echo "$as_me:$LINENO: checking Ruby version" >&5
4771echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
Bram Moolenaar0cb032e2005-04-23 20:52:00 +00004772 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004773 echo "$as_me:$LINENO: result: OK" >&5
4774echo "${ECHO_T}OK" >&6
4775 echo "$as_me:$LINENO: checking Ruby header files" >&5
4776echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004777 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4778 if test "X$rubyhdrdir" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004779 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4780echo "${ECHO_T}$rubyhdrdir" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004781 RUBY_CFLAGS="-I$rubyhdrdir"
4782 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4783 if test "X$rubylibs" != "X"; then
4784 RUBY_LIBS="$rubylibs"
4785 fi
4786 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4787 if test -f "$rubyhdrdir/$librubyarg"; then
4788 librubyarg="$rubyhdrdir/$librubyarg"
4789 else
4790 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4791 if test -f "$rubylibdir/$librubyarg"; then
4792 librubyarg="$rubylibdir/$librubyarg"
4793 elif test "$librubyarg" = "libruby.a"; then
4794 librubyarg="-lruby"
4795 else
4796 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4797 fi
4798 fi
4799
4800 if test "X$librubyarg" != "X"; then
4801 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4802 fi
4803 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4804 if test "X$rubyldflags" != "X"; then
4805 LDFLAGS="$rubyldflags $LDFLAGS"
4806 fi
4807 RUBY_SRC="if_ruby.c"
4808 RUBY_OBJ="objects/if_ruby.o"
4809 RUBY_PRO="if_ruby.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004810 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004811#define FEAT_RUBY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004812_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004813
4814 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004815 echo "$as_me:$LINENO: result: not found" >&5
4816echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004817 fi
4818 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004819 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4820echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004821 fi
4822 fi
4823fi
4824
4825
4826
4827
4828
4829
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004830echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4831echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004832# Check whether --enable-cscope or --disable-cscope was given.
4833if test "${enable_cscope+set}" = set; then
4834 enableval="$enable_cscope"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004835
Bram Moolenaar071d4272004-06-13 20:20:40 +00004836else
4837 enable_cscope="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004838fi;
4839echo "$as_me:$LINENO: result: $enable_cscope" >&5
4840echo "${ECHO_T}$enable_cscope" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004841if test "$enable_cscope" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004842 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004843#define FEAT_CSCOPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004844_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004845
4846fi
4847
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004848echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4849echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004850# Check whether --enable-workshop or --disable-workshop was given.
4851if test "${enable_workshop+set}" = set; then
4852 enableval="$enable_workshop"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004853
Bram Moolenaar071d4272004-06-13 20:20:40 +00004854else
4855 enable_workshop="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004856fi;
4857echo "$as_me:$LINENO: result: $enable_workshop" >&5
4858echo "${ECHO_T}$enable_workshop" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004859if test "$enable_workshop" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004860 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004861#define FEAT_SUN_WORKSHOP 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004862_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004863
4864 WORKSHOP_SRC="workshop.c integration.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004865
Bram Moolenaar071d4272004-06-13 20:20:40 +00004866 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004867
Bram Moolenaar071d4272004-06-13 20:20:40 +00004868 if test "${enable_gui-xxx}" = xxx; then
4869 enable_gui=motif
4870 fi
4871fi
4872
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004873echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4874echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004875# Check whether --enable-netbeans or --disable-netbeans was given.
4876if test "${enable_netbeans+set}" = set; then
4877 enableval="$enable_netbeans"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004878
Bram Moolenaar071d4272004-06-13 20:20:40 +00004879else
4880 enable_netbeans="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004881fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004882if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004883 echo "$as_me:$LINENO: result: no" >&5
4884echo "${ECHO_T}no" >&6
4885
4886echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4887echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4888if test "${ac_cv_lib_socket_socket+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004890else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004891 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004892LIBS="-lsocket $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004893cat >conftest.$ac_ext <<_ACEOF
4894/* confdefs.h. */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h. */
4899
Bram Moolenaar071d4272004-06-13 20:20:40 +00004900/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004901#ifdef __cplusplus
4902extern "C"
4903#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004904/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004905 builtin and then its argument prototype would still apply. */
4906char socket ();
4907int
4908main ()
4909{
4910socket ();
4911 ;
4912 return 0;
4913}
4914_ACEOF
4915rm -f conftest.$ac_objext conftest$ac_exeext
4916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4917 (eval $ac_link) 2>conftest.er1
4918 ac_status=$?
4919 grep -v '^ *+' conftest.er1 >conftest.err
4920 rm -f conftest.er1
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -z "$ac_c_werror_flag"
4925 || test ! -s conftest.err'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; } &&
4931 { ac_try='test -s conftest$ac_exeext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 ac_cv_lib_socket_socket=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004938else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004939 echo "$as_me: failed program was:" >&5
4940sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004941
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004942ac_cv_lib_socket_socket=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004943fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004944rm -f conftest.err conftest.$ac_objext \
4945 conftest$ac_exeext conftest.$ac_ext
4946LIBS=$ac_check_lib_save_LIBS
4947fi
4948echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4949echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4950if test $ac_cv_lib_socket_socket = yes; then
4951 cat >>confdefs.h <<_ACEOF
4952#define HAVE_LIBSOCKET 1
4953_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004954
4955 LIBS="-lsocket $LIBS"
4956
Bram Moolenaar071d4272004-06-13 20:20:40 +00004957fi
4958
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004959
4960echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4961echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4962if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004964else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004965 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004966LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004967cat >conftest.$ac_ext <<_ACEOF
4968/* confdefs.h. */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h. */
4973
Bram Moolenaar071d4272004-06-13 20:20:40 +00004974/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004975#ifdef __cplusplus
4976extern "C"
4977#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004978/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004979 builtin and then its argument prototype would still apply. */
4980char gethostbyname ();
4981int
4982main ()
4983{
4984gethostbyname ();
4985 ;
4986 return 0;
4987}
4988_ACEOF
4989rm -f conftest.$ac_objext conftest$ac_exeext
4990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4991 (eval $ac_link) 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -z "$ac_c_werror_flag"
4999 || test ! -s conftest.err'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; } &&
5005 { ac_try='test -s conftest$ac_exeext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 (eval $ac_try) 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005012else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005013 echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005015
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005016ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005017fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005018rm -f conftest.err conftest.$ac_objext \
5019 conftest$ac_exeext conftest.$ac_ext
5020LIBS=$ac_check_lib_save_LIBS
5021fi
5022echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5023echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5024if test $ac_cv_lib_nsl_gethostbyname = yes; then
5025 cat >>confdefs.h <<_ACEOF
5026#define HAVE_LIBNSL 1
5027_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005028
5029 LIBS="-lnsl $LIBS"
5030
Bram Moolenaar071d4272004-06-13 20:20:40 +00005031fi
5032
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005033 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5034echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005041
5042#include <stdio.h>
5043#include <stdlib.h>
5044#include <stdarg.h>
5045#include <fcntl.h>
5046#include <netdb.h>
5047#include <netinet/in.h>
5048#include <errno.h>
5049#include <sys/types.h>
5050#include <sys/socket.h>
5051 /* Check bitfields */
5052 struct nbbuf {
5053 unsigned int initDone:1;
5054 ushort signmaplen;
5055 };
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005056
5057int
5058main ()
5059{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005060
5061 /* Check creating a socket. */
5062 struct sockaddr_in server;
5063 (void)socket(AF_INET, SOCK_STREAM, 0);
5064 (void)htons(100);
5065 (void)gethostbyname("microsoft.com");
5066 if (errno == ECONNREFUSED)
5067 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005068
5069 ;
5070 return 0;
5071}
5072_ACEOF
5073rm -f conftest.$ac_objext conftest$ac_exeext
5074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075 (eval $ac_link) 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_c_werror_flag"
5083 || test ! -s conftest.err'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; } &&
5089 { ac_try='test -s conftest$ac_exeext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5095 echo "$as_me:$LINENO: result: yes" >&5
5096echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005097else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005098 echo "$as_me: failed program was:" >&5
5099sed 's/^/| /' conftest.$ac_ext >&5
5100
5101echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6; enable_netbeans="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005103fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005104rm -f conftest.err conftest.$ac_objext \
5105 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005106else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005107 echo "$as_me:$LINENO: result: yes" >&5
5108echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005109fi
5110if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005111 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005112#define FEAT_NETBEANS_INTG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005113_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005114
5115 NETBEANS_SRC="netbeans.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005116
Bram Moolenaar071d4272004-06-13 20:20:40 +00005117 NETBEANS_OBJ="objects/netbeans.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005118
Bram Moolenaar071d4272004-06-13 20:20:40 +00005119fi
5120
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005121echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5122echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005123# Check whether --enable-sniff or --disable-sniff was given.
5124if test "${enable_sniff+set}" = set; then
5125 enableval="$enable_sniff"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005126
Bram Moolenaar071d4272004-06-13 20:20:40 +00005127else
5128 enable_sniff="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005129fi;
5130echo "$as_me:$LINENO: result: $enable_sniff" >&5
5131echo "${ECHO_T}$enable_sniff" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005132if test "$enable_sniff" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005133 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005134#define FEAT_SNIFF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005135_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005136
5137 SNIFF_SRC="if_sniff.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005138
Bram Moolenaar071d4272004-06-13 20:20:40 +00005139 SNIFF_OBJ="objects/if_sniff.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005140
Bram Moolenaar071d4272004-06-13 20:20:40 +00005141fi
5142
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005143echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5144echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005145# Check whether --enable-multibyte or --disable-multibyte was given.
5146if test "${enable_multibyte+set}" = set; then
5147 enableval="$enable_multibyte"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005148
Bram Moolenaar071d4272004-06-13 20:20:40 +00005149else
5150 enable_multibyte="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005151fi;
5152echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5153echo "${ECHO_T}$enable_multibyte" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005154if test "$enable_multibyte" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005155 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005156#define FEAT_MBYTE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005157_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005158
5159fi
5160
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005161echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5162echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005163# Check whether --enable-hangulinput or --disable-hangulinput was given.
5164if test "${enable_hangulinput+set}" = set; then
5165 enableval="$enable_hangulinput"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005166
Bram Moolenaar071d4272004-06-13 20:20:40 +00005167else
5168 enable_hangulinput="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005169fi;
5170echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5171echo "${ECHO_T}$enable_hangulinput" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005172
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005173echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5174echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005175# Check whether --enable-xim or --disable-xim was given.
5176if test "${enable_xim+set}" = set; then
5177 enableval="$enable_xim"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005178 echo "$as_me:$LINENO: result: $enable_xim" >&5
5179echo "${ECHO_T}$enable_xim" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005180else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005181 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5182echo "${ECHO_T}defaulting to auto" >&6
5183fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005184
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005185echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5186echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005187# Check whether --enable-fontset or --disable-fontset was given.
5188if test "${enable_fontset+set}" = set; then
5189 enableval="$enable_fontset"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005190
Bram Moolenaar071d4272004-06-13 20:20:40 +00005191else
5192 enable_fontset="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005193fi;
5194echo "$as_me:$LINENO: result: $enable_fontset" >&5
5195echo "${ECHO_T}$enable_fontset" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005196
5197test -z "$with_x" && with_x=yes
5198test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5199if test "$with_x" = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005200 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5201echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005202else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005203
Bram Moolenaar071d4272004-06-13 20:20:40 +00005204 # Extract the first word of "xmkmf", so it can be a program name with args.
5205set dummy xmkmf; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005206echo "$as_me:$LINENO: checking for $ac_word" >&5
5207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208if test "${ac_cv_path_xmkmfpath+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005210else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005211 case $xmkmfpath in
5212 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005213 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5214 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005215 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH
5218do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5223 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227done
5228done
5229
Bram Moolenaar071d4272004-06-13 20:20:40 +00005230 ;;
5231esac
5232fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005233xmkmfpath=$ac_cv_path_xmkmfpath
5234
Bram Moolenaar071d4272004-06-13 20:20:40 +00005235if test -n "$xmkmfpath"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005236 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5237echo "${ECHO_T}$xmkmfpath" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005238else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005239 echo "$as_me:$LINENO: result: no" >&5
5240echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005241fi
5242
5243
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005244 echo "$as_me:$LINENO: checking for X" >&5
5245echo $ECHO_N "checking for X... $ECHO_C" >&6
5246
Bram Moolenaar071d4272004-06-13 20:20:40 +00005247
5248# Check whether --with-x or --without-x was given.
5249if test "${with_x+set}" = set; then
5250 withval="$with_x"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005251
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005252fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005253# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5254if test "x$with_x" = xno; then
5255 # The user explicitly disabled X.
5256 have_x=disabled
5257else
5258 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5259 # Both variables are already set.
5260 have_x=yes
5261 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005262 if test "${ac_cv_have_x+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005264else
5265 # One or both of the vars are not set, and there is no cached value.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005266ac_x_includes=no ac_x_libraries=no
5267rm -fr conftest.dir
5268if mkdir conftest.dir; then
5269 cd conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005270 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005271 cat >Imakefile <<'_ACEOF'
Bram Moolenaar071d4272004-06-13 20:20:40 +00005272acfindx:
5273 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005274_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005275 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5276 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5277 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5278 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5279 for ac_extension in a so sl; do
5280 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005281 test -f $ac_im_libdir/libX11.$ac_extension; then
5282 ac_im_usrlibdir=$ac_im_libdir; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00005283 fi
5284 done
5285 # Screen out bogus values from the imake configuration. They are
5286 # bogus both because they are the default anyway, and because
5287 # using them would break gcc on systems where it needs fixed includes.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005288 case $ac_im_incroot in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005289 /usr/include) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005290 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005291 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005292 case $ac_im_usrlibdir in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005293 /usr/lib | /lib) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005294 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005295 esac
5296 fi
5297 cd ..
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005298 rm -fr conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005299fi
5300
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005301# Standard set of common directories for X headers.
5302# Check X11 before X11Rn because it is often a symlink to the current release.
5303ac_x_header_dirs='
5304/usr/X11/include
5305/usr/X11R6/include
5306/usr/X11R5/include
5307/usr/X11R4/include
Bram Moolenaar071d4272004-06-13 20:20:40 +00005308
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005309/usr/include/X11
5310/usr/include/X11R6
5311/usr/include/X11R5
5312/usr/include/X11R4
5313
5314/usr/local/X11/include
5315/usr/local/X11R6/include
5316/usr/local/X11R5/include
5317/usr/local/X11R4/include
5318
5319/usr/local/include/X11
5320/usr/local/include/X11R6
5321/usr/local/include/X11R5
5322/usr/local/include/X11R4
5323
5324/usr/X386/include
5325/usr/x386/include
5326/usr/XFree86/include/X11
5327
5328/usr/include
5329/usr/local/include
5330/usr/unsupported/include
5331/usr/athena/include
5332/usr/local/x11r5/include
5333/usr/lpp/Xamples/include
5334
5335/usr/openwin/include
5336/usr/openwin/share/include'
5337
5338if test "$ac_x_includes" = no; then
5339 # Guess where to find include files, by looking for Intrinsic.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005340 # First, try using that file with no special directory specified.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005341 cat >conftest.$ac_ext <<_ACEOF
5342/* confdefs.h. */
5343_ACEOF
5344cat confdefs.h >>conftest.$ac_ext
5345cat >>conftest.$ac_ext <<_ACEOF
5346/* end confdefs.h. */
5347#include <X11/Intrinsic.h>
5348_ACEOF
5349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } >/dev/null; then
5357 if test -s conftest.err; then
5358 ac_cpp_err=$ac_c_preproc_warn_flag
5359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5360 else
5361 ac_cpp_err=
5362 fi
5363else
5364 ac_cpp_err=yes
5365fi
5366if test -z "$ac_cpp_err"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005367 # We can compile using X headers with no special include directory.
5368ac_x_includes=
5369else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005370 echo "$as_me: failed program was:" >&5
5371sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 for ac_dir in $ac_x_header_dirs; do
5374 if test -r "$ac_dir/X11/Intrinsic.h"; then
5375 ac_x_includes=$ac_dir
5376 break
5377 fi
5378done
Bram Moolenaar071d4272004-06-13 20:20:40 +00005379fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005380rm -f conftest.err conftest.$ac_ext
5381fi # $ac_x_includes = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005382
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005383if test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005384 # Check for the libraries.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005385 # See if we find them without any special options.
5386 # Don't add to $LIBS permanently.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005387 ac_save_LIBS=$LIBS
5388 LIBS="-lXt $LIBS"
5389 cat >conftest.$ac_ext <<_ACEOF
5390/* confdefs.h. */
5391_ACEOF
5392cat confdefs.h >>conftest.$ac_ext
5393cat >>conftest.$ac_ext <<_ACEOF
5394/* end confdefs.h. */
5395#include <X11/Intrinsic.h>
5396int
5397main ()
5398{
5399XtMalloc (0)
5400 ;
5401 return 0;
5402}
5403_ACEOF
5404rm -f conftest.$ac_objext conftest$ac_exeext
5405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5406 (eval $ac_link) 2>conftest.er1
5407 ac_status=$?
5408 grep -v '^ *+' conftest.er1 >conftest.err
5409 rm -f conftest.er1
5410 cat conftest.err >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } &&
5413 { ac_try='test -z "$ac_c_werror_flag"
5414 || test ! -s conftest.err'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 (eval $ac_try) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; } &&
5420 { ac_try='test -s conftest$ac_exeext'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 (eval $ac_try) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }; then
5426 LIBS=$ac_save_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005427# We can link X programs with no special library path.
5428ac_x_libraries=
5429else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005430 echo "$as_me: failed program was:" >&5
5431sed 's/^/| /' conftest.$ac_ext >&5
5432
5433LIBS=$ac_save_LIBS
5434for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Bram Moolenaar071d4272004-06-13 20:20:40 +00005435do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005436 # Don't even attempt the hair of trying to link an X program!
Bram Moolenaar071d4272004-06-13 20:20:40 +00005437 for ac_extension in a so sl; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005438 if test -r $ac_dir/libXt.$ac_extension; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005439 ac_x_libraries=$ac_dir
5440 break 2
5441 fi
5442 done
5443done
5444fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005445rm -f conftest.err conftest.$ac_objext \
5446 conftest$ac_exeext conftest.$ac_ext
5447fi # $ac_x_libraries = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005448
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005449if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005450 # Didn't find X anywhere. Cache the known absence of X.
5451 ac_cv_have_x="have_x=no"
5452else
5453 # Record where we found X for the cache.
5454 ac_cv_have_x="have_x=yes \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005455 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005456fi
5457fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005458
Bram Moolenaar071d4272004-06-13 20:20:40 +00005459 fi
5460 eval "$ac_cv_have_x"
5461fi # $with_x != no
5462
5463if test "$have_x" != yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005464 echo "$as_me:$LINENO: result: $have_x" >&5
5465echo "${ECHO_T}$have_x" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005466 no_x=yes
5467else
5468 # If each of the values was on the command line, it overrides each guess.
5469 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5470 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5471 # Update the cache value to reflect the command line values.
5472 ac_cv_have_x="have_x=yes \
5473 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005474 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5475echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005476fi
5477
5478if test "$no_x" = yes; then
5479 # Not all programs may use this symbol, but it does not hurt to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005480
5481cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005482#define X_DISPLAY_MISSING 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005483_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005484
5485 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5486else
5487 if test -n "$x_includes"; then
5488 X_CFLAGS="$X_CFLAGS -I$x_includes"
5489 fi
5490
5491 # It would also be nice to do this for all -L options, not just this one.
5492 if test -n "$x_libraries"; then
5493 X_LIBS="$X_LIBS -L$x_libraries"
5494 # For Solaris; some versions of Sun CC require a space after -R and
5495 # others require no space. Words are not sufficient . . . .
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005496 case `(uname -sr) 2>/dev/null` in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005497 "SunOS 5"*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005498 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5499echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5500 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5501 cat >conftest.$ac_ext <<_ACEOF
5502/* confdefs.h. */
5503_ACEOF
5504cat confdefs.h >>conftest.$ac_ext
5505cat >>conftest.$ac_ext <<_ACEOF
5506/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005507
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005508int
5509main ()
5510{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005511
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005512 ;
5513 return 0;
5514}
5515_ACEOF
5516rm -f conftest.$ac_objext conftest$ac_exeext
5517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5518 (eval $ac_link) 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -z "$ac_c_werror_flag"
5526 || test ! -s conftest.err'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try='test -s conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005538 ac_R_nospace=yes
5539else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005540 echo "$as_me: failed program was:" >&5
5541sed 's/^/| /' conftest.$ac_ext >&5
5542
5543ac_R_nospace=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005544fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005545rm -f conftest.err conftest.$ac_objext \
5546 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005547 if test $ac_R_nospace = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005548 echo "$as_me:$LINENO: result: no" >&5
5549echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005550 X_LIBS="$X_LIBS -R$x_libraries"
5551 else
5552 LIBS="$ac_xsave_LIBS -R $x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005553 cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h. */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005559
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005560int
5561main ()
5562{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005563
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005564 ;
5565 return 0;
5566}
5567_ACEOF
5568rm -f conftest.$ac_objext conftest$ac_exeext
5569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570 (eval $ac_link) 2>conftest.er1
5571 ac_status=$?
5572 grep -v '^ *+' conftest.er1 >conftest.err
5573 rm -f conftest.er1
5574 cat conftest.err >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } &&
5577 { ac_try='test -z "$ac_c_werror_flag"
5578 || test ! -s conftest.err'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 (eval $ac_try) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; } &&
5584 { ac_try='test -s conftest$ac_exeext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005590 ac_R_space=yes
5591else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005592 echo "$as_me: failed program was:" >&5
5593sed 's/^/| /' conftest.$ac_ext >&5
5594
5595ac_R_space=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005596fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005597rm -f conftest.err conftest.$ac_objext \
5598 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005599 if test $ac_R_space = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005600 echo "$as_me:$LINENO: result: yes" >&5
5601echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005602 X_LIBS="$X_LIBS -R $x_libraries"
5603 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005604 echo "$as_me:$LINENO: result: neither works" >&5
5605echo "${ECHO_T}neither works" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005606 fi
5607 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005608 LIBS=$ac_xsave_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005609 esac
5610 fi
5611
5612 # Check for system-dependent libraries X programs must link with.
5613 # Do this before checking for the system-independent R6 libraries
5614 # (-lICE), since we may need -lsocket or whatever for X linking.
5615
5616 if test "$ISC" = yes; then
5617 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5618 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005619 # Martyn Johnson says this is needed for Ultrix, if the X
5620 # libraries were built with DECnet support. And Karl Berry says
Bram Moolenaar071d4272004-06-13 20:20:40 +00005621 # the Alpha needs dnet_stub (dnet does not exist).
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005622 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5623 cat >conftest.$ac_ext <<_ACEOF
5624/* confdefs.h. */
5625_ACEOF
5626cat confdefs.h >>conftest.$ac_ext
5627cat >>conftest.$ac_ext <<_ACEOF
5628/* end confdefs.h. */
5629
Bram Moolenaar071d4272004-06-13 20:20:40 +00005630/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005631#ifdef __cplusplus
5632extern "C"
5633#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005634/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005635 builtin and then its argument prototype would still apply. */
5636char XOpenDisplay ();
5637int
5638main ()
5639{
5640XOpenDisplay ();
5641 ;
5642 return 0;
5643}
5644_ACEOF
5645rm -f conftest.$ac_objext conftest$ac_exeext
5646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5647 (eval $ac_link) 2>conftest.er1
5648 ac_status=$?
5649 grep -v '^ *+' conftest.er1 >conftest.err
5650 rm -f conftest.er1
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_c_werror_flag"
5655 || test ! -s conftest.err'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; } &&
5661 { ac_try='test -s conftest$ac_exeext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00005668else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005669 echo "$as_me: failed program was:" >&5
5670sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005671
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005672echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5673echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5674if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
5677 ac_check_lib_save_LIBS=$LIBS
5678LIBS="-ldnet $LIBS"
5679cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h. */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h. */
5685
5686/* Override any gcc2 internal prototype to avoid an error. */
5687#ifdef __cplusplus
5688extern "C"
5689#endif
5690/* We use char because int might match the return type of a gcc2
5691 builtin and then its argument prototype would still apply. */
5692char dnet_ntoa ();
5693int
5694main ()
5695{
5696dnet_ntoa ();
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext conftest$ac_exeext
5702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703 (eval $ac_link) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest$ac_exeext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_lib_dnet_dnet_ntoa=yes
5724else
5725 echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728ac_cv_lib_dnet_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005729fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005730rm -f conftest.err conftest.$ac_objext \
5731 conftest$ac_exeext conftest.$ac_ext
5732LIBS=$ac_check_lib_save_LIBS
5733fi
5734echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5735echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5736if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005737 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005738fi
5739
5740 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005741 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5742echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5743if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005745else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005746 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005747LIBS="-ldnet_stub $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005748cat >conftest.$ac_ext <<_ACEOF
5749/* confdefs.h. */
5750_ACEOF
5751cat confdefs.h >>conftest.$ac_ext
5752cat >>conftest.$ac_ext <<_ACEOF
5753/* end confdefs.h. */
5754
Bram Moolenaar071d4272004-06-13 20:20:40 +00005755/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005756#ifdef __cplusplus
5757extern "C"
5758#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005759/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005760 builtin and then its argument prototype would still apply. */
5761char dnet_ntoa ();
5762int
5763main ()
5764{
5765dnet_ntoa ();
5766 ;
5767 return 0;
5768}
5769_ACEOF
5770rm -f conftest.$ac_objext conftest$ac_exeext
5771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5772 (eval $ac_link) 2>conftest.er1
5773 ac_status=$?
5774 grep -v '^ *+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try='test -z "$ac_c_werror_flag"
5780 || test ! -s conftest.err'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; } &&
5786 { ac_try='test -s conftest$ac_exeext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005793else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005794 echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005796
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005797ac_cv_lib_dnet_stub_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005798fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005799rm -f conftest.err conftest.$ac_objext \
5800 conftest$ac_exeext conftest.$ac_ext
5801LIBS=$ac_check_lib_save_LIBS
5802fi
5803echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5804echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5805if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005806 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005807fi
5808
5809 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005810fi
5811rm -f conftest.err conftest.$ac_objext \
5812 conftest$ac_exeext conftest.$ac_ext
5813 LIBS="$ac_xsave_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005814
5815 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5816 # to get the SysV transport functions.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005817 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005818 # needs -lnsl.
5819 # The nsl library prevents programs from opening the X display
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005820 # on Irix 5.2, according to T.E. Dickey.
5821 # The functions gethostbyname, getservbyname, and inet_addr are
5822 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5823 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5824echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5825if test "${ac_cv_func_gethostbyname+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005827else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005828 cat >conftest.$ac_ext <<_ACEOF
5829/* confdefs.h. */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h. */
5834/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5836#define gethostbyname innocuous_gethostbyname
5837
Bram Moolenaar071d4272004-06-13 20:20:40 +00005838/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005839 which can conflict with char gethostbyname (); below.
5840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5841 <limits.h> exists even on freestanding compilers. */
5842
5843#ifdef __STDC__
5844# include <limits.h>
5845#else
5846# include <assert.h>
5847#endif
5848
5849#undef gethostbyname
5850
Bram Moolenaar071d4272004-06-13 20:20:40 +00005851/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005852#ifdef __cplusplus
5853extern "C"
5854{
5855#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005856/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005857 builtin and then its argument prototype would still apply. */
5858char gethostbyname ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005859/* The GNU C library defines this for functions which it implements
5860 to always fail with ENOSYS. Some functions are actually named
5861 something starting with __ and the normal name is an alias. */
5862#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5863choke me
5864#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005865char (*f) () = gethostbyname;
5866#endif
5867#ifdef __cplusplus
5868}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005869#endif
5870
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005871int
5872main ()
5873{
5874return f != gethostbyname;
5875 ;
5876 return 0;
5877}
5878_ACEOF
5879rm -f conftest.$ac_objext conftest$ac_exeext
5880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5881 (eval $ac_link) 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag"
5889 || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest$ac_exeext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 (eval $ac_try) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_cv_func_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005902else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005903 echo "$as_me: failed program was:" >&5
5904sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005905
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005906ac_cv_func_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005907fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005908rm -f conftest.err conftest.$ac_objext \
5909 conftest$ac_exeext conftest.$ac_ext
5910fi
5911echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5912echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005913
5914 if test $ac_cv_func_gethostbyname = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005915 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5916echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5917if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005919else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005920 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005921LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005922cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h. */
5928
Bram Moolenaar071d4272004-06-13 20:20:40 +00005929/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005930#ifdef __cplusplus
5931extern "C"
5932#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005933/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005934 builtin and then its argument prototype would still apply. */
5935char gethostbyname ();
5936int
5937main ()
5938{
5939gethostbyname ();
5940 ;
5941 return 0;
5942}
5943_ACEOF
5944rm -f conftest.$ac_objext conftest$ac_exeext
5945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5946 (eval $ac_link) 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try='test -z "$ac_c_werror_flag"
5954 || test ! -s conftest.err'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; } &&
5960 { ac_try='test -s conftest$ac_exeext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005967else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005968 echo "$as_me: failed program was:" >&5
5969sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005970
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005971ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005972fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005973rm -f conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5975LIBS=$ac_check_lib_save_LIBS
5976fi
5977echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5978echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5979if test $ac_cv_lib_nsl_gethostbyname = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005980 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005981fi
5982
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005983 if test $ac_cv_lib_nsl_gethostbyname = no; then
5984 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5985echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5986if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988else
5989 ac_check_lib_save_LIBS=$LIBS
5990LIBS="-lbsd $LIBS"
5991cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h. */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h. */
5997
5998/* Override any gcc2 internal prototype to avoid an error. */
5999#ifdef __cplusplus
6000extern "C"
6001#endif
6002/* We use char because int might match the return type of a gcc2
6003 builtin and then its argument prototype would still apply. */
6004char gethostbyname ();
6005int
6006main ()
6007{
6008gethostbyname ();
6009 ;
6010 return 0;
6011}
6012_ACEOF
6013rm -f conftest.$ac_objext conftest$ac_exeext
6014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest$ac_exeext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_lib_bsd_gethostbyname=yes
6036else
6037 echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040ac_cv_lib_bsd_gethostbyname=no
6041fi
6042rm -f conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
6044LIBS=$ac_check_lib_save_LIBS
6045fi
6046echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6047echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6048if test $ac_cv_lib_bsd_gethostbyname = yes; then
6049 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6050fi
6051
6052 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00006053 fi
6054
6055 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6056 # socket/setsockopt and other routines are undefined under SCO ODT
6057 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006058 # on later versions), says Simon Leinen: it contains gethostby*
6059 # variants that don't use the name server (or something). -lsocket
6060 # must be given before -lnsl if both are needed. We assume that
6061 # if connect needs -lnsl, so does gethostbyname.
6062 echo "$as_me:$LINENO: checking for connect" >&5
6063echo $ECHO_N "checking for connect... $ECHO_C" >&6
6064if test "${ac_cv_func_connect+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006066else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006067 cat >conftest.$ac_ext <<_ACEOF
6068/* confdefs.h. */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h. */
6073/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6075#define connect innocuous_connect
6076
Bram Moolenaar071d4272004-06-13 20:20:40 +00006077/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006078 which can conflict with char connect (); below.
6079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080 <limits.h> exists even on freestanding compilers. */
6081
6082#ifdef __STDC__
6083# include <limits.h>
6084#else
6085# include <assert.h>
6086#endif
6087
6088#undef connect
6089
Bram Moolenaar071d4272004-06-13 20:20:40 +00006090/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006091#ifdef __cplusplus
6092extern "C"
6093{
6094#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006095/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006096 builtin and then its argument prototype would still apply. */
6097char connect ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006098/* The GNU C library defines this for functions which it implements
6099 to always fail with ENOSYS. Some functions are actually named
6100 something starting with __ and the normal name is an alias. */
6101#if defined (__stub_connect) || defined (__stub___connect)
6102choke me
6103#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006104char (*f) () = connect;
6105#endif
6106#ifdef __cplusplus
6107}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006108#endif
6109
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006110int
6111main ()
6112{
6113return f != connect;
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext conftest$ac_exeext
6119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag"
6128 || test ! -s conftest.err'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; } &&
6134 { ac_try='test -s conftest$ac_exeext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 ac_cv_func_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006141else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006142 echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006144
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006145ac_cv_func_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006146fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006147rm -f conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
6149fi
6150echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6151echo "${ECHO_T}$ac_cv_func_connect" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006152
6153 if test $ac_cv_func_connect = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006154 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6155echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6156if test "${ac_cv_lib_socket_connect+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006158else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006159 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006160LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006161cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167
Bram Moolenaar071d4272004-06-13 20:20:40 +00006168/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006169#ifdef __cplusplus
6170extern "C"
6171#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006172/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006173 builtin and then its argument prototype would still apply. */
6174char connect ();
6175int
6176main ()
6177{
6178connect ();
6179 ;
6180 return 0;
6181}
6182_ACEOF
6183rm -f conftest.$ac_objext conftest$ac_exeext
6184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6185 (eval $ac_link) 2>conftest.er1
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest$ac_exeext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_cv_lib_socket_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006206else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006207 echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006209
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006210ac_cv_lib_socket_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006211fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006212rm -f conftest.err conftest.$ac_objext \
6213 conftest$ac_exeext conftest.$ac_ext
6214LIBS=$ac_check_lib_save_LIBS
6215fi
6216echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6217echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6218if test $ac_cv_lib_socket_connect = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006219 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006220fi
6221
6222 fi
6223
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006224 # Guillermo Gomez says -lposix is necessary on A/UX.
6225 echo "$as_me:$LINENO: checking for remove" >&5
6226echo $ECHO_N "checking for remove... $ECHO_C" >&6
6227if test "${ac_cv_func_remove+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006229else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006230 cat >conftest.$ac_ext <<_ACEOF
6231/* confdefs.h. */
6232_ACEOF
6233cat confdefs.h >>conftest.$ac_ext
6234cat >>conftest.$ac_ext <<_ACEOF
6235/* end confdefs.h. */
6236/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6238#define remove innocuous_remove
6239
Bram Moolenaar071d4272004-06-13 20:20:40 +00006240/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006241 which can conflict with char remove (); below.
6242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6243 <limits.h> exists even on freestanding compilers. */
6244
6245#ifdef __STDC__
6246# include <limits.h>
6247#else
6248# include <assert.h>
6249#endif
6250
6251#undef remove
6252
Bram Moolenaar071d4272004-06-13 20:20:40 +00006253/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006254#ifdef __cplusplus
6255extern "C"
6256{
6257#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006258/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006259 builtin and then its argument prototype would still apply. */
6260char remove ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006261/* The GNU C library defines this for functions which it implements
6262 to always fail with ENOSYS. Some functions are actually named
6263 something starting with __ and the normal name is an alias. */
6264#if defined (__stub_remove) || defined (__stub___remove)
6265choke me
6266#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006267char (*f) () = remove;
6268#endif
6269#ifdef __cplusplus
6270}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006271#endif
6272
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006273int
6274main ()
6275{
6276return f != remove;
6277 ;
6278 return 0;
6279}
6280_ACEOF
6281rm -f conftest.$ac_objext conftest$ac_exeext
6282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283 (eval $ac_link) 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest$ac_exeext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_func_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006304else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006305 echo "$as_me: failed program was:" >&5
6306sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006307
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006308ac_cv_func_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006309fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006310rm -f conftest.err conftest.$ac_objext \
6311 conftest$ac_exeext conftest.$ac_ext
6312fi
6313echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6314echo "${ECHO_T}$ac_cv_func_remove" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006315
6316 if test $ac_cv_func_remove = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006317 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6318echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6319if test "${ac_cv_lib_posix_remove+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006321else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006322 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006323LIBS="-lposix $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006324cat >conftest.$ac_ext <<_ACEOF
6325/* confdefs.h. */
6326_ACEOF
6327cat confdefs.h >>conftest.$ac_ext
6328cat >>conftest.$ac_ext <<_ACEOF
6329/* end confdefs.h. */
6330
Bram Moolenaar071d4272004-06-13 20:20:40 +00006331/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006332#ifdef __cplusplus
6333extern "C"
6334#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006335/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006336 builtin and then its argument prototype would still apply. */
6337char remove ();
6338int
6339main ()
6340{
6341remove ();
6342 ;
6343 return 0;
6344}
6345_ACEOF
6346rm -f conftest.$ac_objext conftest$ac_exeext
6347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348 (eval $ac_link) 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -z "$ac_c_werror_flag"
6356 || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest$ac_exeext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_cv_lib_posix_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006369else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006370 echo "$as_me: failed program was:" >&5
6371sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006372
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006373ac_cv_lib_posix_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006374fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006375rm -f conftest.err conftest.$ac_objext \
6376 conftest$ac_exeext conftest.$ac_ext
6377LIBS=$ac_check_lib_save_LIBS
6378fi
6379echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6380echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6381if test $ac_cv_lib_posix_remove = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006382 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006383fi
6384
6385 fi
6386
6387 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006388 echo "$as_me:$LINENO: checking for shmat" >&5
6389echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6390if test "${ac_cv_func_shmat+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006392else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006393 cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h. */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h. */
6399/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6401#define shmat innocuous_shmat
6402
Bram Moolenaar071d4272004-06-13 20:20:40 +00006403/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006404 which can conflict with char shmat (); below.
6405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406 <limits.h> exists even on freestanding compilers. */
6407
6408#ifdef __STDC__
6409# include <limits.h>
6410#else
6411# include <assert.h>
6412#endif
6413
6414#undef shmat
6415
Bram Moolenaar071d4272004-06-13 20:20:40 +00006416/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006417#ifdef __cplusplus
6418extern "C"
6419{
6420#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006421/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006422 builtin and then its argument prototype would still apply. */
6423char shmat ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006424/* The GNU C library defines this for functions which it implements
6425 to always fail with ENOSYS. Some functions are actually named
6426 something starting with __ and the normal name is an alias. */
6427#if defined (__stub_shmat) || defined (__stub___shmat)
6428choke me
6429#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006430char (*f) () = shmat;
6431#endif
6432#ifdef __cplusplus
6433}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006434#endif
6435
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006436int
6437main ()
6438{
6439return f != shmat;
6440 ;
6441 return 0;
6442}
6443_ACEOF
6444rm -f conftest.$ac_objext conftest$ac_exeext
6445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>conftest.er1
6447 ac_status=$?
6448 grep -v '^ *+' conftest.er1 >conftest.err
6449 rm -f conftest.er1
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_c_werror_flag"
6454 || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest$ac_exeext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 (eval $ac_try) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 ac_cv_func_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006467else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006468 echo "$as_me: failed program was:" >&5
6469sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006470
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006471ac_cv_func_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006472fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006473rm -f conftest.err conftest.$ac_objext \
6474 conftest$ac_exeext conftest.$ac_ext
6475fi
6476echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6477echo "${ECHO_T}$ac_cv_func_shmat" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006478
6479 if test $ac_cv_func_shmat = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006480 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6481echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6482if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006484else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006485 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006486LIBS="-lipc $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006487cat >conftest.$ac_ext <<_ACEOF
6488/* confdefs.h. */
6489_ACEOF
6490cat confdefs.h >>conftest.$ac_ext
6491cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h. */
6493
Bram Moolenaar071d4272004-06-13 20:20:40 +00006494/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006495#ifdef __cplusplus
6496extern "C"
6497#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006498/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006499 builtin and then its argument prototype would still apply. */
6500char shmat ();
6501int
6502main ()
6503{
6504shmat ();
6505 ;
6506 return 0;
6507}
6508_ACEOF
6509rm -f conftest.$ac_objext conftest$ac_exeext
6510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest$ac_exeext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_cv_lib_ipc_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006532else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006533 echo "$as_me: failed program was:" >&5
6534sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006535
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006536ac_cv_lib_ipc_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006537fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006538rm -f conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540LIBS=$ac_check_lib_save_LIBS
6541fi
6542echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6543echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6544if test $ac_cv_lib_ipc_shmat = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006545 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006546fi
6547
6548 fi
6549 fi
6550
6551 # Check for libraries that X11R6 Xt/Xaw programs need.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006552 ac_save_LDFLAGS=$LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006553 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6554 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6555 # check for ICE first), but we must link in the order -lSM -lICE or
6556 # we get undefined symbols. So assume we have SM if we have ICE.
6557 # These have to be linked with before -lX11, unlike the other
6558 # libraries we check for below, so use a different variable.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006559 # John Interrante, Karl Berry
6560 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6561echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6562if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006564else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006565 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006566LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006567cat >conftest.$ac_ext <<_ACEOF
6568/* confdefs.h. */
6569_ACEOF
6570cat confdefs.h >>conftest.$ac_ext
6571cat >>conftest.$ac_ext <<_ACEOF
6572/* end confdefs.h. */
6573
Bram Moolenaar071d4272004-06-13 20:20:40 +00006574/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006575#ifdef __cplusplus
6576extern "C"
6577#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006578/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006579 builtin and then its argument prototype would still apply. */
6580char IceConnectionNumber ();
6581int
6582main ()
6583{
6584IceConnectionNumber ();
6585 ;
6586 return 0;
6587}
6588_ACEOF
6589rm -f conftest.$ac_objext conftest$ac_exeext
6590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6591 (eval $ac_link) 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -z "$ac_c_werror_flag"
6599 || test ! -s conftest.err'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; } &&
6605 { ac_try='test -s conftest$ac_exeext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_cv_lib_ICE_IceConnectionNumber=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006612else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006613 echo "$as_me: failed program was:" >&5
6614sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006615
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006616ac_cv_lib_ICE_IceConnectionNumber=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006617fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006618rm -f conftest.err conftest.$ac_objext \
6619 conftest$ac_exeext conftest.$ac_ext
6620LIBS=$ac_check_lib_save_LIBS
6621fi
6622echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6623echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6624if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006625 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006626fi
6627
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006628 LDFLAGS=$ac_save_LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006629
6630fi
6631
6632
6633 if test "$OS390Unix" = "yes"; then
6634 CFLAGS="$CFLAGS -W c,dll"
6635 LDFLAGS="$LDFLAGS -W l,dll"
6636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6637 fi
6638
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006639
Bram Moolenaar071d4272004-06-13 20:20:40 +00006640 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6641 x_libraries=`echo "$x_includes" | sed s/include/lib/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006642 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6643echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006644 X_LIBS="$X_LIBS -L$x_libraries"
6645 if test "`(uname) 2>/dev/null`" = SunOS &&
6646 uname -r | grep '^5' >/dev/null; then
6647 X_LIBS="$X_LIBS -R $x_libraries"
6648 fi
6649 fi
6650
6651 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6652 x_includes=`echo "$x_libraries" | sed s/lib/include/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006653 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6654echo "${ECHO_T}Corrected X includes to $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006655 X_CFLAGS="$X_CFLAGS -I$x_includes"
6656 fi
6657
6658 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6659 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6660 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6661
6662
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006663 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6664echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006665 cflags_save=$CFLAGS
6666 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006667 cat >conftest.$ac_ext <<_ACEOF
6668/* confdefs.h. */
6669_ACEOF
6670cat confdefs.h >>conftest.$ac_ext
6671cat >>conftest.$ac_ext <<_ACEOF
6672/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006673#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006674int
6675main ()
6676{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006677
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006678 ;
6679 return 0;
6680}
6681_ACEOF
6682rm -f conftest.$ac_objext
6683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>conftest.er1
6685 ac_status=$?
6686 grep -v '^ *+' conftest.er1 >conftest.err
6687 rm -f conftest.er1
6688 cat conftest.err >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } &&
6691 { ac_try='test -z "$ac_c_werror_flag"
6692 || test ! -s conftest.err'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 (eval $ac_try) 2>&5
6695 ac_status=$?
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; } &&
6698 { ac_try='test -s conftest.$ac_objext'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 (eval $ac_try) 2>&5
6701 ac_status=$?
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; }; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006706else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006707 echo "$as_me: failed program was:" >&5
6708sed 's/^/| /' conftest.$ac_ext >&5
6709
6710echo "$as_me:$LINENO: result: no" >&5
6711echo "${ECHO_T}no" >&6; no_x=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006712fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006714 CFLAGS=$cflags_save
6715
6716 if test "${no_x-no}" = yes; then
6717 with_x=no
6718 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006719 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006720#define HAVE_X11 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006721_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006722
6723 X_LIB="-lXt -lX11";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006724
Bram Moolenaar071d4272004-06-13 20:20:40 +00006725
6726 ac_save_LDFLAGS="$LDFLAGS"
6727 LDFLAGS="-L$x_libraries $LDFLAGS"
6728
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006729 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6730echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6731if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006733else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006734 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006735LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006736cat >conftest.$ac_ext <<_ACEOF
6737/* confdefs.h. */
6738_ACEOF
6739cat confdefs.h >>conftest.$ac_ext
6740cat >>conftest.$ac_ext <<_ACEOF
6741/* end confdefs.h. */
6742
Bram Moolenaar071d4272004-06-13 20:20:40 +00006743/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006744#ifdef __cplusplus
6745extern "C"
6746#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006747/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006748 builtin and then its argument prototype would still apply. */
6749char _XdmcpAuthDoIt ();
6750int
6751main ()
6752{
6753_XdmcpAuthDoIt ();
6754 ;
6755 return 0;
6756}
6757_ACEOF
6758rm -f conftest.$ac_objext conftest$ac_exeext
6759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6760 (eval $ac_link) 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } &&
6767 { ac_try='test -z "$ac_c_werror_flag"
6768 || test ! -s conftest.err'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; } &&
6774 { ac_try='test -s conftest$ac_exeext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6780 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006781else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006782 echo "$as_me: failed program was:" >&5
6783sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006784
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006785ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006786fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006787rm -f conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6789LIBS=$ac_check_lib_save_LIBS
6790fi
6791echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6792echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6793if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006794 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006795fi
6796
6797
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006798 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6799echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6800if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006802else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006803 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006804LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006805cat >conftest.$ac_ext <<_ACEOF
6806/* confdefs.h. */
6807_ACEOF
6808cat confdefs.h >>conftest.$ac_ext
6809cat >>conftest.$ac_ext <<_ACEOF
6810/* end confdefs.h. */
6811
Bram Moolenaar071d4272004-06-13 20:20:40 +00006812/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006813#ifdef __cplusplus
6814extern "C"
6815#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006816/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006817 builtin and then its argument prototype would still apply. */
6818char IceOpenConnection ();
6819int
6820main ()
6821{
6822IceOpenConnection ();
6823 ;
6824 return 0;
6825}
6826_ACEOF
6827rm -f conftest.$ac_objext conftest$ac_exeext
6828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>conftest.er1
6830 ac_status=$?
6831 grep -v '^ *+' conftest.er1 >conftest.err
6832 rm -f conftest.er1
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -z "$ac_c_werror_flag"
6837 || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest$ac_exeext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 ac_cv_lib_ICE_IceOpenConnection=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006850else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006851 echo "$as_me: failed program was:" >&5
6852sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006853
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006854ac_cv_lib_ICE_IceOpenConnection=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006855fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006856rm -f conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858LIBS=$ac_check_lib_save_LIBS
6859fi
6860echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6861echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6862if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006863 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006864fi
6865
6866
6867 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006868 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6869echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6870if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006872else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006873 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006874LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006875cat >conftest.$ac_ext <<_ACEOF
6876/* confdefs.h. */
6877_ACEOF
6878cat confdefs.h >>conftest.$ac_ext
6879cat >>conftest.$ac_ext <<_ACEOF
6880/* end confdefs.h. */
6881
Bram Moolenaar071d4272004-06-13 20:20:40 +00006882/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006883#ifdef __cplusplus
6884extern "C"
6885#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006886/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006887 builtin and then its argument prototype would still apply. */
6888char XpmCreatePixmapFromData ();
6889int
6890main ()
6891{
6892XpmCreatePixmapFromData ();
6893 ;
6894 return 0;
6895}
6896_ACEOF
6897rm -f conftest.$ac_objext conftest$ac_exeext
6898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899 (eval $ac_link) 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -z "$ac_c_werror_flag"
6907 || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006920else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006921 echo "$as_me: failed program was:" >&5
6922sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006923
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006924ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006925fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006926rm -f conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
6928LIBS=$ac_check_lib_save_LIBS
6929fi
6930echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6931echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6932if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006933 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006934fi
6935
6936
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006937 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6938echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006939 cflags_save=$CFLAGS
6940 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006941 cat >conftest.$ac_ext <<_ACEOF
6942/* confdefs.h. */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006947#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006948int
6949main ()
6950{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006951
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006952 ;
6953 return 0;
6954}
6955_ACEOF
6956rm -f conftest.$ac_objext
6957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -z "$ac_c_werror_flag"
6966 || test ! -s conftest.err'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try='test -s conftest.$ac_objext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006980else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006981 echo "$as_me: failed program was:" >&5
6982sed 's/^/| /' conftest.$ac_ext >&5
6983
6984CFLAGS="$CFLAGS -Wno-implicit-int"
6985 cat >conftest.$ac_ext <<_ACEOF
6986/* confdefs.h. */
6987_ACEOF
6988cat confdefs.h >>conftest.$ac_ext
6989cat >>conftest.$ac_ext <<_ACEOF
6990/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006991#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006992int
6993main ()
6994{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006995
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006996 ;
6997 return 0;
6998}
6999_ACEOF
7000rm -f conftest.$ac_objext
7001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 echo "$as_me:$LINENO: result: yes" >&5
7023echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007024else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007025 echo "$as_me: failed program was:" >&5
7026sed 's/^/| /' conftest.$ac_ext >&5
7027
7028echo "$as_me:$LINENO: result: test failed" >&5
7029echo "${ECHO_T}test failed" >&6
7030
Bram Moolenaar071d4272004-06-13 20:20:40 +00007031fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7033
Bram Moolenaar071d4272004-06-13 20:20:40 +00007034fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00007036 CFLAGS=$cflags_save
7037
7038 LDFLAGS="$ac_save_LDFLAGS"
7039
7040 fi
7041fi
7042
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00007043test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00007044
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007045echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7046echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007047# Check whether --enable-gui or --disable-gui was given.
7048if test "${enable_gui+set}" = set; then
7049 enableval="$enable_gui"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007050
Bram Moolenaar071d4272004-06-13 20:20:40 +00007051else
7052 enable_gui="auto"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007053fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007054
7055enable_gui_canon=`echo "_$enable_gui" | \
7056 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7057
7058SKIP_GTK=YES
7059SKIP_GTK2=YES
7060SKIP_GNOME=YES
7061SKIP_MOTIF=YES
7062SKIP_ATHENA=YES
7063SKIP_NEXTAW=YES
7064SKIP_PHOTON=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00007065SKIP_CARBON=YES
7066GUITYPE=NONE
7067
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007068if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007069 SKIP_PHOTON=
7070 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007071 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7072echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007073 SKIP_PHOTON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007074 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7075echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7076 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7077echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7078 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
7079echo "${ECHO_T}Photon GUI support" >&6 ;;
7080 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7081echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007082 SKIP_PHOTON=YES ;;
7083 esac
7084
7085elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7086 SKIP_CARBON=
7087 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007088 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7089echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007090 SKIP_CARBON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007091 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7092echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7093 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7094echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7095 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7096echo "${ECHO_T}Carbon GUI support" >&6 ;;
7097 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7098echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007099 SKIP_CARBON=YES ;;
7100 esac
7101
7102else
7103
Bram Moolenaar071d4272004-06-13 20:20:40 +00007104 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007105 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
7106echo "${ECHO_T}no GUI support" >&6 ;;
7107 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7108echo "${ECHO_T}yes/auto - automatic GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007109 SKIP_GTK=
7110 SKIP_GTK2=
7111 SKIP_GNOME=
7112 SKIP_MOTIF=
7113 SKIP_ATHENA=
7114 SKIP_NEXTAW=
7115 SKIP_CARBON=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007116 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7117echo "${ECHO_T}GTK+ 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007118 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007119 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7120echo "${ECHO_T}GTK+ 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007121 SKIP_GTK=
7122 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007123 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7124echo "${ECHO_T}GNOME 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007125 SKIP_GNOME=
7126 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007127 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7128echo "${ECHO_T}GNOME 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007129 SKIP_GNOME=
7130 SKIP_GTK=
7131 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007132 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
7133echo "${ECHO_T}Motif GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007134 SKIP_MOTIF=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007135 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7136echo "${ECHO_T}Athena GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007137 SKIP_ATHENA=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007138 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7139echo "${ECHO_T}neXtaw GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007140 SKIP_NEXTAW=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007141 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7142echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007143 esac
7144
7145fi
7146
7147if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007148 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7149echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007150 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7151if test "${enable_gtk_check+set}" = set; then
7152 enableval="$enable_gtk_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007153
Bram Moolenaar071d4272004-06-13 20:20:40 +00007154else
7155 enable_gtk_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007156fi;
7157 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7158echo "${ECHO_T}$enable_gtk_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007159 if test "x$enable_gtk_check" = "xno"; then
7160 SKIP_GTK=YES
7161 SKIP_GNOME=YES
7162 fi
7163fi
7164
7165if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7166 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007167 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7168echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007169 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7170if test "${enable_gtk2_check+set}" = set; then
7171 enableval="$enable_gtk2_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007172
Bram Moolenaar071d4272004-06-13 20:20:40 +00007173else
7174 enable_gtk2_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007175fi;
7176 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7177echo "${ECHO_T}$enable_gtk2_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007178 if test "x$enable_gtk2_check" = "xno"; then
7179 SKIP_GTK2=YES
7180 fi
7181fi
7182
7183if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7184 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007185 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7186echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007187 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7188if test "${enable_gnome_check+set}" = set; then
7189 enableval="$enable_gnome_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007190
Bram Moolenaar071d4272004-06-13 20:20:40 +00007191else
7192 enable_gnome_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007193fi;
7194 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7195echo "${ECHO_T}$enable_gnome_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007196 if test "x$enable_gnome_check" = "xno"; then
7197 SKIP_GNOME=YES
7198 fi
7199fi
7200
7201if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007202 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7203echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007204 # Check whether --enable-motif-check or --disable-motif-check was given.
7205if test "${enable_motif_check+set}" = set; then
7206 enableval="$enable_motif_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007207
Bram Moolenaar071d4272004-06-13 20:20:40 +00007208else
7209 enable_motif_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007210fi;
7211 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7212echo "${ECHO_T}$enable_motif_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007213 if test "x$enable_motif_check" = "xno"; then
7214 SKIP_MOTIF=YES
7215 fi
7216fi
7217
7218if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007219 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7220echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007221 # Check whether --enable-athena-check or --disable-athena-check was given.
7222if test "${enable_athena_check+set}" = set; then
7223 enableval="$enable_athena_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007224
Bram Moolenaar071d4272004-06-13 20:20:40 +00007225else
7226 enable_athena_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007227fi;
7228 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7229echo "${ECHO_T}$enable_athena_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007230 if test "x$enable_athena_check" = "xno"; then
7231 SKIP_ATHENA=YES
7232 fi
7233fi
7234
7235if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007236 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7237echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007238 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7239if test "${enable_nextaw_check+set}" = set; then
7240 enableval="$enable_nextaw_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007241
Bram Moolenaar071d4272004-06-13 20:20:40 +00007242else
7243 enable_nextaw_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007244fi;
7245 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7246echo "${ECHO_T}$enable_nextaw_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007247 if test "x$enable_nextaw_check" = "xno"; then
7248 SKIP_NEXTAW=YES
7249 fi
7250fi
7251
7252if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007253 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7254echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007255 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7256if test "${enable_carbon_check+set}" = set; then
7257 enableval="$enable_carbon_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007258
Bram Moolenaar071d4272004-06-13 20:20:40 +00007259else
7260 enable_carbon_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007261fi;
7262 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7263echo "${ECHO_T}$enable_carbon_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007264 if test "x$enable_carbon_check" = "xno"; then
7265 SKIP_CARBON=YES
7266 fi
7267fi
7268
Bram Moolenaar843ee412004-06-30 16:16:41 +00007269
Bram Moolenaar071d4272004-06-13 20:20:40 +00007270if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007271 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7272echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7273 echo "$as_me:$LINENO: result: yes" >&5
7274echo "${ECHO_T}yes" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007275 GUITYPE=CARBONGUI
Bram Moolenaare344bea2005-09-01 20:46:49 +00007276 if test "$VIMNAME" = "vim"; then
7277 VIMNAME=Vim
7278 fi
Bram Moolenaar14716812006-05-04 21:54:08 +00007279
7280 if test x$prefix = xNONE; then
7281 prefix=/Applications
7282 fi
7283
7284 datadir='${prefix}/Vim.app/Contents/Resources'
7285
Bram Moolenaar071d4272004-06-13 20:20:40 +00007286 SKIP_GTK=YES;
7287 SKIP_GTK2=YES;
7288 SKIP_GNOME=YES;
7289 SKIP_MOTIF=YES;
7290 SKIP_ATHENA=YES;
7291 SKIP_NEXTAW=YES;
7292 SKIP_PHOTON=YES;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007293 SKIP_CARBON=YES
7294fi
7295
7296
7297
7298
7299
7300
7301
7302
7303
Bram Moolenaar071d4272004-06-13 20:20:40 +00007304if test -z "$SKIP_GTK"; then
7305
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007306 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7307echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7308
7309# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007310if test "${with_gtk_prefix+set}" = set; then
7311 withval="$with_gtk_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007312 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7313echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007314else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007315 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7316echo "${ECHO_T}no" >&6
7317fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007318
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007319 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7320echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007321
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007322# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007323if test "${with_gtk_exec_prefix+set}" = set; then
7324 withval="$with_gtk_exec_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007325 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7326echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007327else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007328 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6
7330fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007331
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007332 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7333echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007334 # Check whether --enable-gtktest or --disable-gtktest was given.
7335if test "${enable_gtktest+set}" = set; then
7336 enableval="$enable_gtktest"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007337
Bram Moolenaar071d4272004-06-13 20:20:40 +00007338else
7339 enable_gtktest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007340fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007341 if test "x$enable_gtktest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007342 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7343echo "${ECHO_T}gtk test enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007344 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007345 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7346echo "${ECHO_T}gtk test disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007347 fi
7348
7349 if test "x$gtk_config_prefix" != "x" ; then
7350 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7351 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7352 fi
7353 if test "x$gtk_config_exec_prefix" != "x" ; then
7354 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7355 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7356 fi
7357 if test "X$GTK_CONFIG" = "X"; then
7358 # Extract the first word of "gtk-config", so it can be a program name with args.
7359set dummy gtk-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007360echo "$as_me:$LINENO: checking for $ac_word" >&5
7361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007364else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007365 case $GTK_CONFIG in
7366 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007367 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7368 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007369 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381done
7382done
7383
Bram Moolenaar071d4272004-06-13 20:20:40 +00007384 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7385 ;;
7386esac
7387fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007388GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7389
Bram Moolenaar071d4272004-06-13 20:20:40 +00007390if test -n "$GTK_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007391 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7392echo "${ECHO_T}$GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007393else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007394 echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007396fi
7397
7398 if test "X$GTK_CONFIG" = "Xno"; then
7399 # Extract the first word of "gtk12-config", so it can be a program name with args.
7400set dummy gtk12-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007401echo "$as_me:$LINENO: checking for $ac_word" >&5
7402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7403if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007405else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007406 case $GTK12_CONFIG in
7407 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007408 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7409 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007410 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422done
7423done
7424
Bram Moolenaar071d4272004-06-13 20:20:40 +00007425 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7426 ;;
7427esac
7428fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007429GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7430
Bram Moolenaar071d4272004-06-13 20:20:40 +00007431if test -n "$GTK12_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007432 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7433echo "${ECHO_T}$GTK12_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007434else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007435 echo "$as_me:$LINENO: result: no" >&5
7436echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007437fi
7438
7439 GTK_CONFIG="$GTK12_CONFIG"
7440 fi
7441 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007442 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7443echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007444 fi
7445 if test "X$PKG_CONFIG" = "X"; then
7446 # Extract the first word of "pkg-config", so it can be a program name with args.
7447set dummy pkg-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007448echo "$as_me:$LINENO: checking for $ac_word" >&5
7449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7450if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007452else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007453 case $PKG_CONFIG in
7454 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7456 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007457 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7468 fi
7469done
7470done
7471
Bram Moolenaar071d4272004-06-13 20:20:40 +00007472 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7473 ;;
7474esac
7475fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007476PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7477
Bram Moolenaar071d4272004-06-13 20:20:40 +00007478if test -n "$PKG_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007479 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7480echo "${ECHO_T}$PKG_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007481else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007482 echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007484fi
7485
7486 fi
7487
7488 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7489 if test "X$SKIP_GTK2" != "XYES"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007490
Bram Moolenaar071d4272004-06-13 20:20:40 +00007491 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7492 {
7493 min_gtk_version=2.2.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007494 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7495echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007496 no_gtk=""
7497 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7498 && $PKG_CONFIG --exists gtk+-2.0; then
7499 {
7500 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007501 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007502 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7503 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7504 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7505 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7506 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7507 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7508 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7509 }
7510 elif test "X$GTK_CONFIG" != "Xno"; then
7511 {
7512 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007513 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007514 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7515 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7516 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7517 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7518 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7519 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7520 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7521 }
7522 else
7523 no_gtk=yes
7524 fi
7525
7526 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7527 {
7528 ac_save_CFLAGS="$CFLAGS"
7529 ac_save_LIBS="$LIBS"
7530 CFLAGS="$CFLAGS $GTK_CFLAGS"
7531 LIBS="$LIBS $GTK_LIBS"
7532
7533 rm -f conf.gtktest
7534 if test "$cross_compiling" = yes; then
7535 echo $ac_n "cross compiling; assumed OK... $ac_c"
7536else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007537 cat >conftest.$ac_ext <<_ACEOF
7538/* confdefs.h. */
7539_ACEOF
7540cat confdefs.h >>conftest.$ac_ext
7541cat >>conftest.$ac_ext <<_ACEOF
7542/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007543
7544#include <gtk/gtk.h>
7545#include <stdio.h>
7546
7547int
7548main ()
7549{
7550int major, minor, micro;
7551char *tmp_version;
7552
7553system ("touch conf.gtktest");
7554
7555/* HP/UX 9 (%@#!) writes to sscanf strings */
7556tmp_version = g_strdup("$min_gtk_version");
7557if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7558 printf("%s, bad version string\n", "$min_gtk_version");
7559 exit(1);
7560 }
7561
7562if ((gtk_major_version > major) ||
7563 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7564 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7565 (gtk_micro_version >= micro)))
7566{
7567 return 0;
7568}
7569return 1;
7570}
7571
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007572_ACEOF
7573rm -f conftest$ac_exeext
7574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7575 (eval $ac_link) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 (eval $ac_try) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007584 :
7585else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007586 echo "$as_me: program exited with status $ac_status" >&5
7587echo "$as_me: failed program was:" >&5
7588sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007589
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007590( exit $ac_status )
7591no_gtk=yes
7592fi
7593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7594fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007595 CFLAGS="$ac_save_CFLAGS"
7596 LIBS="$ac_save_LIBS"
7597 }
7598 fi
7599 if test "x$no_gtk" = x ; then
7600 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007601 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7602echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007603 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007604 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7605echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007606 fi
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007607 GUI_LIB_LOC="$GTK_LIBDIR"
7608 GTK_LIBNAME="$GTK_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007609 GUI_INC_LOC="$GTK_CFLAGS"
7610 else
7611 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007612 echo "$as_me:$LINENO: result: no" >&5
7613echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007614 GTK_CFLAGS=""
7615 GTK_LIBS=""
7616 :
7617 }
7618 fi
7619 }
7620 else
7621 GTK_CFLAGS=""
7622 GTK_LIBS=""
7623 :
7624 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007625
7626
Bram Moolenaar071d4272004-06-13 20:20:40 +00007627 rm -f conf.gtktest
7628
7629 if test "x$GTK_CFLAGS" != "x"; then
7630 SKIP_ATHENA=YES
7631 SKIP_NEXTAW=YES
7632 SKIP_MOTIF=YES
7633 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007634
Bram Moolenaar071d4272004-06-13 20:20:40 +00007635 fi
7636 fi
7637
7638 if test "x$GUITYPE" != "xGTK"; then
7639 SKIP_GTK2=YES
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007640
Bram Moolenaar071d4272004-06-13 20:20:40 +00007641 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7642 {
7643 min_gtk_version=1.1.16
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007644 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7645echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007646 no_gtk=""
7647 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7648 && $PKG_CONFIG --exists gtk+-2.0; then
7649 {
7650 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007651 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007652 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7653 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7654 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7655 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7656 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7657 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7658 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7659 }
7660 elif test "X$GTK_CONFIG" != "Xno"; then
7661 {
7662 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007663 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007664 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7665 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7666 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7667 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7668 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7669 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7670 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7671 }
7672 else
7673 no_gtk=yes
7674 fi
7675
7676 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7677 {
7678 ac_save_CFLAGS="$CFLAGS"
7679 ac_save_LIBS="$LIBS"
7680 CFLAGS="$CFLAGS $GTK_CFLAGS"
7681 LIBS="$LIBS $GTK_LIBS"
7682
7683 rm -f conf.gtktest
7684 if test "$cross_compiling" = yes; then
7685 echo $ac_n "cross compiling; assumed OK... $ac_c"
7686else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007687 cat >conftest.$ac_ext <<_ACEOF
7688/* confdefs.h. */
7689_ACEOF
7690cat confdefs.h >>conftest.$ac_ext
7691cat >>conftest.$ac_ext <<_ACEOF
7692/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007693
7694#include <gtk/gtk.h>
7695#include <stdio.h>
7696
7697int
7698main ()
7699{
7700int major, minor, micro;
7701char *tmp_version;
7702
7703system ("touch conf.gtktest");
7704
7705/* HP/UX 9 (%@#!) writes to sscanf strings */
7706tmp_version = g_strdup("$min_gtk_version");
7707if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7708 printf("%s, bad version string\n", "$min_gtk_version");
7709 exit(1);
7710 }
7711
7712if ((gtk_major_version > major) ||
7713 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7714 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7715 (gtk_micro_version >= micro)))
7716{
7717 return 0;
7718}
7719return 1;
7720}
7721
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007722_ACEOF
7723rm -f conftest$ac_exeext
7724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7725 (eval $ac_link) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 (eval $ac_try) 2>&5
7731 ac_status=$?
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007734 :
7735else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007736 echo "$as_me: program exited with status $ac_status" >&5
7737echo "$as_me: failed program was:" >&5
7738sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007739
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007740( exit $ac_status )
7741no_gtk=yes
7742fi
7743rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7744fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007745 CFLAGS="$ac_save_CFLAGS"
7746 LIBS="$ac_save_LIBS"
7747 }
7748 fi
7749 if test "x$no_gtk" = x ; then
7750 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007751 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7752echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007753 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007754 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7755echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007756 fi
7757 GTK_LIBNAME="$GTK_LIBS"
7758 GUI_INC_LOC="$GTK_CFLAGS"
7759 else
7760 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007761 echo "$as_me:$LINENO: result: no" >&5
7762echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007763 GTK_CFLAGS=""
7764 GTK_LIBS=""
7765 :
7766 }
7767 fi
7768 }
7769 else
7770 GTK_CFLAGS=""
7771 GTK_LIBS=""
7772 :
7773 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007774
7775
Bram Moolenaar071d4272004-06-13 20:20:40 +00007776 rm -f conf.gtktest
7777
7778 if test "x$GTK_CFLAGS" != "x"; then
7779 SKIP_ATHENA=YES
7780 SKIP_NEXTAW=YES
7781 SKIP_MOTIF=YES
7782 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007783
Bram Moolenaar071d4272004-06-13 20:20:40 +00007784 fi
7785 fi
7786 fi
7787 if test "x$GUITYPE" = "xGTK"; then
7788 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7789 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007790 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7791echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007792 else
7793 {
7794 if test "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007795 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007796#define HAVE_GTK2 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007797_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007798
7799 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7800 || test "0$gtk_minor_version" -ge 2 \
7801 || test "0$gtk_major_version" -gt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007802 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007803#define HAVE_GTK_MULTIHEAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007804_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007805
7806 fi
7807 fi
7808 if test -z "$SKIP_GNOME"; then
7809 {
Bram Moolenaar071d4272004-06-13 20:20:40 +00007810
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007811
7812
7813
7814
7815
7816# Check whether --with-gnome-includes or --without-gnome-includes was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007817if test "${with_gnome_includes+set}" = set; then
7818 withval="$with_gnome_includes"
7819 CFLAGS="$CFLAGS -I$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007820
7821fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007822
7823
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007824# Check whether --with-gnome-libs or --without-gnome-libs was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007825if test "${with_gnome_libs+set}" = set; then
7826 withval="$with_gnome_libs"
7827 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007828
7829fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007830
7831
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007832# Check whether --with-gnome or --without-gnome was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007833if test "${with_gnome+set}" = set; then
7834 withval="$with_gnome"
7835 if test x$withval = xyes; then
7836 want_gnome=yes
7837 have_gnome=yes
7838 else
7839 if test "x$withval" = xno; then
7840 want_gnome=no
7841 else
7842 want_gnome=yes
7843 LDFLAGS="$LDFLAGS -L$withval/lib"
7844 CFLAGS="$CFLAGS -I$withval/include"
7845 gnome_prefix=$withval/lib
7846 fi
7847 fi
7848else
7849 want_gnome=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007850fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007851
7852 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7853 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007854 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7855echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007856 if $PKG_CONFIG --exists libgnomeui-2.0; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007857 echo "$as_me:$LINENO: result: yes" >&5
7858echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007859 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7860 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7861 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
Bram Moolenaar97b2ad32006-03-18 21:40:56 +00007862
7863 echo "$as_me:$LINENO: checking for FreeBSD" >&5
7864echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7865 if test "`(uname) 2>/dev/null`" = FreeBSD; then
7866 echo "$as_me:$LINENO: result: yes" >&5
7867echo "${ECHO_T}yes" >&6
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00007868 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
Bram Moolenaar97b2ad32006-03-18 21:40:56 +00007869 GNOME_LIBS="$GNOME_LIBS -pthread"
7870 else
7871 echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007874 have_gnome=yes
7875 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007876 echo "$as_me:$LINENO: result: not found" >&5
7877echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007878 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007879 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7880echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7881 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007882 fi
7883 fi
7884 }
7885 elif test "x$want_gnome" = xyes; then
7886 {
7887 # Extract the first word of "gnome-config", so it can be a program name with args.
7888set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007889echo "$as_me:$LINENO: checking for $ac_word" >&5
7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7891if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007893else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007894 case $GNOME_CONFIG in
7895 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007896 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7897 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007898 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910done
7911done
7912
Bram Moolenaar071d4272004-06-13 20:20:40 +00007913 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7914 ;;
7915esac
7916fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007917GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7918
Bram Moolenaar071d4272004-06-13 20:20:40 +00007919if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007920 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7921echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007922else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007925fi
7926
7927 if test "$GNOME_CONFIG" = "no"; then
7928 no_gnome_config="yes"
7929 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007930 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7931echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007932 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007933 echo "$as_me:$LINENO: result: yes" >&5
7934echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007935 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7936 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7937 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7938 have_gnome=yes
7939 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007940 echo "$as_me:$LINENO: result: no" >&5
7941echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007942 no_gnome_config="yes"
7943 fi
7944 fi
7945
7946 if test x$exec_prefix = xNONE; then
7947 if test x$prefix = xNONE; then
7948 gnome_prefix=$ac_default_prefix/lib
7949 else
7950 gnome_prefix=$prefix/lib
7951 fi
7952 else
7953 gnome_prefix=`eval echo \`echo $libdir\``
7954 fi
7955
7956 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007957 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7958echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007959 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007960 echo "$as_me:$LINENO: result: found" >&5
7961echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007962 echo "loading gnome configuration from" \
7963 "$gnome_prefix/gnomeConf.sh"
7964 . $gnome_prefix/gnomeConf.sh
7965 have_gnome=yes
7966 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007967 echo "$as_me:$LINENO: result: not found" >&5
7968echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007969 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007970 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7971echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7972 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007973 fi
7974 fi
7975 fi
7976 }
7977 fi
7978
7979 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007980 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007981#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007982_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007983
7984 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7985 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7986 fi
7987 }
7988 fi
7989 }
7990 fi
7991 fi
7992fi
7993
7994
7995if test -z "$SKIP_MOTIF"; then
7996 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"
7997 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7998
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007999 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8000echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008001 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8002 GUI_INC_LOC=
8003 for try in $gui_includes; do
8004 if test -f "$try/Xm/Xm.h"; then
8005 GUI_INC_LOC=$try
8006 fi
8007 done
8008 if test -n "$GUI_INC_LOC"; then
8009 if test "$GUI_INC_LOC" = /usr/include; then
8010 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008011 echo "$as_me:$LINENO: result: in default path" >&5
8012echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008013 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008014 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8015echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008016 fi
8017 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008018 echo "$as_me:$LINENO: result: <not found>" >&5
8019echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008020 SKIP_MOTIF=YES
8021 fi
8022fi
8023
8024
8025if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008026 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8027echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8028
8029# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008030if test "${with_motif_lib+set}" = set; then
8031 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008032 MOTIF_LIBNAME="${withval}"
8033fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008034
8035 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008036 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8037echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008038 GUI_LIB_LOC=
8039 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008040 echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008042
8043 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8044
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008045 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8046echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008047 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"
8048 GUI_LIB_LOC=
8049 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008050 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00008051 if test -f "$libtry"; then
8052 GUI_LIB_LOC=$try
8053 fi
8054 done
8055 done
8056 if test -n "$GUI_LIB_LOC"; then
8057 if test "$GUI_LIB_LOC" = /usr/lib; then
8058 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008059 echo "$as_me:$LINENO: result: in default path" >&5
8060echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008061 else
8062 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008063 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8064echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008065 if test "`(uname) 2>/dev/null`" = SunOS &&
8066 uname -r | grep '^5' >/dev/null; then
8067 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8068 fi
8069 fi
8070 fi
8071 MOTIF_LIBNAME=-lXm
8072 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008073 echo "$as_me:$LINENO: result: <not found>" >&5
8074echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008075 SKIP_MOTIF=YES
8076 fi
8077 fi
8078fi
8079
8080if test -z "$SKIP_MOTIF"; then
8081 SKIP_ATHENA=YES
8082 SKIP_NEXTAW=YES
8083 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008084
Bram Moolenaar071d4272004-06-13 20:20:40 +00008085fi
8086
8087
8088GUI_X_LIBS=
8089
8090if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008091 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8092echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008093 cflags_save=$CFLAGS
8094 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008095 cat >conftest.$ac_ext <<_ACEOF
8096/* confdefs.h. */
8097_ACEOF
8098cat confdefs.h >>conftest.$ac_ext
8099cat >>conftest.$ac_ext <<_ACEOF
8100/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008101
8102#include <X11/Intrinsic.h>
8103#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008104int
8105main ()
8106{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008107
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008108 ;
8109 return 0;
8110}
8111_ACEOF
8112rm -f conftest.$ac_objext
8113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag"
8122 || test ! -s conftest.err'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 echo "$as_me:$LINENO: result: yes" >&5
8135echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008136else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008137 echo "$as_me: failed program was:" >&5
8138sed 's/^/| /' conftest.$ac_ext >&5
8139
8140echo "$as_me:$LINENO: result: no" >&5
8141echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008142fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008144 CFLAGS=$cflags_save
8145fi
8146
8147if test -z "$SKIP_ATHENA"; then
8148 GUITYPE=ATHENA
8149fi
8150
8151if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008152 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8153echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008154 cflags_save=$CFLAGS
8155 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008156 cat >conftest.$ac_ext <<_ACEOF
8157/* confdefs.h. */
8158_ACEOF
8159cat confdefs.h >>conftest.$ac_ext
8160cat >>conftest.$ac_ext <<_ACEOF
8161/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008162
8163#include <X11/Intrinsic.h>
8164#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008165int
8166main ()
8167{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008168
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008169 ;
8170 return 0;
8171}
8172_ACEOF
8173rm -f conftest.$ac_objext
8174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8175 (eval $ac_compile) 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag"
8183 || test ! -s conftest.err'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; } &&
8189 { ac_try='test -s conftest.$ac_objext'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 (eval $ac_try) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 echo "$as_me:$LINENO: result: yes" >&5
8196echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008197else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008198 echo "$as_me: failed program was:" >&5
8199sed 's/^/| /' conftest.$ac_ext >&5
8200
8201echo "$as_me:$LINENO: result: no" >&5
8202echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008203fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008205 CFLAGS=$cflags_save
8206fi
8207
8208if test -z "$SKIP_NEXTAW"; then
8209 GUITYPE=NEXTAW
8210fi
8211
8212if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8213 if test -n "$GUI_INC_LOC"; then
8214 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8215 fi
8216 if test -n "$GUI_LIB_LOC"; then
8217 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8218 fi
8219
8220 ldflags_save=$LDFLAGS
8221 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008222 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8223echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8224if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008226else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008227 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008228LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008229cat >conftest.$ac_ext <<_ACEOF
8230/* confdefs.h. */
8231_ACEOF
8232cat confdefs.h >>conftest.$ac_ext
8233cat >>conftest.$ac_ext <<_ACEOF
8234/* end confdefs.h. */
8235
Bram Moolenaar071d4272004-06-13 20:20:40 +00008236/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008237#ifdef __cplusplus
8238extern "C"
8239#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008240/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008241 builtin and then its argument prototype would still apply. */
8242char XShapeQueryExtension ();
8243int
8244main ()
8245{
8246XShapeQueryExtension ();
8247 ;
8248 return 0;
8249}
8250_ACEOF
8251rm -f conftest.$ac_objext conftest$ac_exeext
8252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } &&
8260 { ac_try='test -z "$ac_c_werror_flag"
8261 || test ! -s conftest.err'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; } &&
8267 { ac_try='test -s conftest$ac_exeext'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 (eval $ac_try) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; }; then
8273 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008274else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008275 echo "$as_me: failed program was:" >&5
8276sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008277
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008278ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008279fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008280rm -f conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8282LIBS=$ac_check_lib_save_LIBS
8283fi
8284echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8285echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8286if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008287 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008288fi
8289
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008290 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8291echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8292if test "${ac_cv_lib_w_wslen+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008294else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008295 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008296LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008297cat >conftest.$ac_ext <<_ACEOF
8298/* confdefs.h. */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h. */
8303
Bram Moolenaar071d4272004-06-13 20:20:40 +00008304/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008305#ifdef __cplusplus
8306extern "C"
8307#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008308/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008309 builtin and then its argument prototype would still apply. */
8310char wslen ();
8311int
8312main ()
8313{
8314wslen ();
8315 ;
8316 return 0;
8317}
8318_ACEOF
8319rm -f conftest.$ac_objext conftest$ac_exeext
8320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321 (eval $ac_link) 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_c_werror_flag"
8329 || test ! -s conftest.err'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; } &&
8335 { ac_try='test -s conftest$ac_exeext'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 (eval $ac_try) 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8341 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008342else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008343 echo "$as_me: failed program was:" >&5
8344sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008345
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008346ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008347fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008348rm -f conftest.err conftest.$ac_objext \
8349 conftest$ac_exeext conftest.$ac_ext
8350LIBS=$ac_check_lib_save_LIBS
8351fi
8352echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8353echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8354if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008355 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008356fi
8357
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008358 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8359echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8360if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008362else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008363 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008364LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008365cat >conftest.$ac_ext <<_ACEOF
8366/* confdefs.h. */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h. */
8371
Bram Moolenaar071d4272004-06-13 20:20:40 +00008372/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008373#ifdef __cplusplus
8374extern "C"
8375#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008376/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008377 builtin and then its argument prototype would still apply. */
8378char dlsym ();
8379int
8380main ()
8381{
8382dlsym ();
8383 ;
8384 return 0;
8385}
8386_ACEOF
8387rm -f conftest.$ac_objext conftest$ac_exeext
8388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>conftest.er1
8390 ac_status=$?
8391 grep -v '^ *+' conftest.er1 >conftest.err
8392 rm -f conftest.er1
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag"
8397 || test ! -s conftest.err'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; } &&
8403 { ac_try='test -s conftest$ac_exeext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008410else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008411 echo "$as_me: failed program was:" >&5
8412sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008413
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008414ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008415fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008416rm -f conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8418LIBS=$ac_check_lib_save_LIBS
8419fi
8420echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8421echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8422if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008423 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008424fi
8425
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008426 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8427echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8428if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008430else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008431 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008432LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008433cat >conftest.$ac_ext <<_ACEOF
8434/* confdefs.h. */
8435_ACEOF
8436cat confdefs.h >>conftest.$ac_ext
8437cat >>conftest.$ac_ext <<_ACEOF
8438/* end confdefs.h. */
8439
Bram Moolenaar071d4272004-06-13 20:20:40 +00008440/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008441#ifdef __cplusplus
8442extern "C"
8443#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008444/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008445 builtin and then its argument prototype would still apply. */
8446char XmuCreateStippledPixmap ();
8447int
8448main ()
8449{
8450XmuCreateStippledPixmap ();
8451 ;
8452 return 0;
8453}
8454_ACEOF
8455rm -f conftest.$ac_objext conftest$ac_exeext
8456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457 (eval $ac_link) 2>conftest.er1
8458 ac_status=$?
8459 grep -v '^ *+' conftest.er1 >conftest.err
8460 rm -f conftest.er1
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -z "$ac_c_werror_flag"
8465 || test ! -s conftest.err'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 (eval $ac_try) 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; } &&
8471 { ac_try='test -s conftest$ac_exeext'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
8477 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008478else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008479 echo "$as_me: failed program was:" >&5
8480sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008481
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008482ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008483fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008484rm -f conftest.err conftest.$ac_objext \
8485 conftest$ac_exeext conftest.$ac_ext
8486LIBS=$ac_check_lib_save_LIBS
8487fi
8488echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8489echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8490if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008491 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008492fi
8493
8494 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008495 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8496echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8497if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008499else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008500 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008501LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008502cat >conftest.$ac_ext <<_ACEOF
8503/* confdefs.h. */
8504_ACEOF
8505cat confdefs.h >>conftest.$ac_ext
8506cat >>conftest.$ac_ext <<_ACEOF
8507/* end confdefs.h. */
8508
Bram Moolenaar071d4272004-06-13 20:20:40 +00008509/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008510#ifdef __cplusplus
8511extern "C"
8512#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008513/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008514 builtin and then its argument prototype would still apply. */
8515char XpEndJob ();
8516int
8517main ()
8518{
8519XpEndJob ();
8520 ;
8521 return 0;
8522}
8523_ACEOF
8524rm -f conftest.$ac_objext conftest$ac_exeext
8525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag"
8534 || test ! -s conftest.err'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008547else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008548 echo "$as_me: failed program was:" >&5
8549sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008550
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008551ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008552fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008553rm -f conftest.err conftest.$ac_objext \
8554 conftest$ac_exeext conftest.$ac_ext
8555LIBS=$ac_check_lib_save_LIBS
8556fi
8557echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8558echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8559if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008560 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008561fi
8562
8563 fi
8564 LDFLAGS=$ldflags_save
8565
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008566 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8567echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008568 NARROW_PROTO=
8569 rm -fr conftestdir
8570 if mkdir conftestdir; then
8571 cd conftestdir
8572 cat > Imakefile <<'EOF'
8573acfindx:
8574 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8575EOF
8576 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8577 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8578 fi
8579 cd ..
8580 rm -fr conftestdir
8581 fi
8582 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008583 echo "$as_me:$LINENO: result: no" >&5
8584echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008585 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008586 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8587echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008588 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008589
Bram Moolenaar071d4272004-06-13 20:20:40 +00008590fi
8591
8592if test "$enable_xsmp" = "yes"; then
8593 cppflags_save=$CPPFLAGS
8594 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008595
8596for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008597do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8599if eval "test \"\${$as_ac_Header+set}\" = set"; then
8600 echo "$as_me:$LINENO: checking for $ac_header" >&5
8601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8602if eval "test \"\${$as_ac_Header+set}\" = set"; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008604fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008607else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008608 # Is the header compilable?
8609echo "$as_me:$LINENO: checking $ac_header usability" >&5
8610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8611cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617$ac_includes_default
8618#include <$ac_header>
8619_ACEOF
8620rm -f conftest.$ac_objext
8621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622 (eval $ac_compile) 2>conftest.er1
8623 ac_status=$?
8624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try='test -z "$ac_c_werror_flag"
8630 || test ! -s conftest.err'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest.$ac_objext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 (eval $ac_try) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 ac_header_compiler=yes
8643else
8644 echo "$as_me: failed program was:" >&5
8645sed 's/^/| /' conftest.$ac_ext >&5
8646
8647ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008648fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8650echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8651echo "${ECHO_T}$ac_header_compiler" >&6
8652
8653# Is the header present?
8654echo "$as_me:$LINENO: checking $ac_header presence" >&5
8655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8656cat >conftest.$ac_ext <<_ACEOF
8657/* confdefs.h. */
8658_ACEOF
8659cat confdefs.h >>conftest.$ac_ext
8660cat >>conftest.$ac_ext <<_ACEOF
8661/* end confdefs.h. */
8662#include <$ac_header>
8663_ACEOF
8664if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8666 ac_status=$?
8667 grep -v '^ *+' conftest.er1 >conftest.err
8668 rm -f conftest.er1
8669 cat conftest.err >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } >/dev/null; then
8672 if test -s conftest.err; then
8673 ac_cpp_err=$ac_c_preproc_warn_flag
8674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8675 else
8676 ac_cpp_err=
8677 fi
8678else
8679 ac_cpp_err=yes
8680fi
8681if test -z "$ac_cpp_err"; then
8682 ac_header_preproc=yes
8683else
8684 echo "$as_me: failed program was:" >&5
8685sed 's/^/| /' conftest.$ac_ext >&5
8686
8687 ac_header_preproc=no
8688fi
8689rm -f conftest.err conftest.$ac_ext
8690echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691echo "${ECHO_T}$ac_header_preproc" >&6
8692
8693# So? What about this header?
8694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8695 yes:no: )
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700 ac_header_preproc=yes
8701 ;;
8702 no:yes:* )
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8715 (
8716 cat <<\_ASBOX
8717## ------------------------------------------ ##
8718## Report this to the AC_PACKAGE_NAME lists. ##
8719## ------------------------------------------ ##
8720_ASBOX
8721 ) |
8722 sed "s/^/$as_me: WARNING: /" >&2
8723 ;;
8724esac
8725echo "$as_me:$LINENO: checking for $ac_header" >&5
8726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8727if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729else
8730 eval "$as_ac_Header=\$ac_header_preproc"
8731fi
8732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8734
8735fi
8736if test `eval echo '${'$as_ac_Header'}'` = yes; then
8737 cat >>confdefs.h <<_ACEOF
8738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8739_ACEOF
8740
8741fi
8742
Bram Moolenaar071d4272004-06-13 20:20:40 +00008743done
8744
8745 CPPFLAGS=$cppflags_save
8746fi
8747
8748
8749if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8750 cppflags_save=$CPPFLAGS
8751 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008752
8753
8754for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008755do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8757if eval "test \"\${$as_ac_Header+set}\" = set"; then
8758 echo "$as_me:$LINENO: checking for $ac_header" >&5
8759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8760if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008762fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008765else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008766 # Is the header compilable?
8767echo "$as_me:$LINENO: checking $ac_header usability" >&5
8768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8769cat >conftest.$ac_ext <<_ACEOF
8770/* confdefs.h. */
8771_ACEOF
8772cat confdefs.h >>conftest.$ac_ext
8773cat >>conftest.$ac_ext <<_ACEOF
8774/* end confdefs.h. */
8775$ac_includes_default
8776#include <$ac_header>
8777_ACEOF
8778rm -f conftest.$ac_objext
8779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8780 (eval $ac_compile) 2>conftest.er1
8781 ac_status=$?
8782 grep -v '^ *+' conftest.er1 >conftest.err
8783 rm -f conftest.er1
8784 cat conftest.err >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } &&
8787 { ac_try='test -z "$ac_c_werror_flag"
8788 || test ! -s conftest.err'
8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 (eval $ac_try) 2>&5
8791 ac_status=$?
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; } &&
8794 { ac_try='test -s conftest.$ac_objext'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 (eval $ac_try) 2>&5
8797 ac_status=$?
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; }; then
8800 ac_header_compiler=yes
8801else
8802 echo "$as_me: failed program was:" >&5
8803sed 's/^/| /' conftest.$ac_ext >&5
8804
8805ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008806fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8808echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8809echo "${ECHO_T}$ac_header_compiler" >&6
8810
8811# Is the header present?
8812echo "$as_me:$LINENO: checking $ac_header presence" >&5
8813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8814cat >conftest.$ac_ext <<_ACEOF
8815/* confdefs.h. */
8816_ACEOF
8817cat confdefs.h >>conftest.$ac_ext
8818cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h. */
8820#include <$ac_header>
8821_ACEOF
8822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } >/dev/null; then
8830 if test -s conftest.err; then
8831 ac_cpp_err=$ac_c_preproc_warn_flag
8832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8833 else
8834 ac_cpp_err=
8835 fi
8836else
8837 ac_cpp_err=yes
8838fi
8839if test -z "$ac_cpp_err"; then
8840 ac_header_preproc=yes
8841else
8842 echo "$as_me: failed program was:" >&5
8843sed 's/^/| /' conftest.$ac_ext >&5
8844
8845 ac_header_preproc=no
8846fi
8847rm -f conftest.err conftest.$ac_ext
8848echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8849echo "${ECHO_T}$ac_header_preproc" >&6
8850
8851# So? What about this header?
8852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8853 yes:no: )
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8858 ac_header_preproc=yes
8859 ;;
8860 no:yes:* )
8861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8864echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8868echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8873 (
8874 cat <<\_ASBOX
8875## ------------------------------------------ ##
8876## Report this to the AC_PACKAGE_NAME lists. ##
8877## ------------------------------------------ ##
8878_ASBOX
8879 ) |
8880 sed "s/^/$as_me: WARNING: /" >&2
8881 ;;
8882esac
8883echo "$as_me:$LINENO: checking for $ac_header" >&5
8884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8885if eval "test \"\${$as_ac_Header+set}\" = set"; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8887else
8888 eval "$as_ac_Header=\$ac_header_preproc"
8889fi
8890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8892
8893fi
8894if test `eval echo '${'$as_ac_Header'}'` = yes; then
8895 cat >>confdefs.h <<_ACEOF
8896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8897_ACEOF
8898
8899fi
8900
Bram Moolenaar071d4272004-06-13 20:20:40 +00008901done
8902
8903
8904 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008905 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8906echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8907 cat >conftest.$ac_ext <<_ACEOF
8908/* confdefs.h. */
8909_ACEOF
8910cat confdefs.h >>conftest.$ac_ext
8911cat >>conftest.$ac_ext <<_ACEOF
8912/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008913#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008914_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008916 $EGREP "XIMText" >/dev/null 2>&1; then
8917 echo "$as_me:$LINENO: result: yes" >&5
8918echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008919else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008920 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8921echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008922fi
8923rm -f conftest*
8924
8925 fi
8926 CPPFLAGS=$cppflags_save
8927
8928 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8929 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008930 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8931echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008932 enable_xim="yes"
8933 fi
8934fi
8935
8936if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8937 cppflags_save=$CPPFLAGS
8938 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008939 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8940echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8941 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008942/* confdefs.h. */
8943_ACEOF
8944cat confdefs.h >>conftest.$ac_ext
8945cat >>conftest.$ac_ext <<_ACEOF
8946/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008947
8948#include <X11/Intrinsic.h>
8949#include <X11/Xmu/Editres.h>
8950int
8951main ()
8952{
8953int i; i = 0;
8954 ;
8955 return 0;
8956}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008957_ACEOF
8958rm -f conftest.$ac_objext
8959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960 (eval $ac_compile) 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag"
8968 || test ! -s conftest.err'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try='test -s conftest.$ac_objext'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008980 echo "$as_me:$LINENO: result: yes" >&5
8981echo "${ECHO_T}yes" >&6
8982 cat >>confdefs.h <<\_ACEOF
8983#define HAVE_X11_XMU_EDITRES_H 1
8984_ACEOF
8985
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008986else
8987 echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8989
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008990echo "$as_me:$LINENO: result: no" >&5
8991echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008992fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008994 CPPFLAGS=$cppflags_save
8995fi
8996
8997if test -z "$SKIP_MOTIF"; then
8998 cppflags_save=$CPPFLAGS
8999 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009000
9001
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009002
9003
9004
9005
Bram Moolenaarfc1421e2006-04-20 22:17:20 +00009006
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009007for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
Bram Moolenaarfc1421e2006-04-20 22:17:20 +00009008 Xm/UnhighlightT.h Xm/Notebook.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00009009do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9011if eval "test \"\${$as_ac_Header+set}\" = set"; then
9012 echo "$as_me:$LINENO: checking for $ac_header" >&5
9013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9014if eval "test \"\${$as_ac_Header+set}\" = set"; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009016fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009019else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009020 # Is the header compilable?
9021echo "$as_me:$LINENO: checking $ac_header usability" >&5
9022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9023cat >conftest.$ac_ext <<_ACEOF
9024/* confdefs.h. */
9025_ACEOF
9026cat confdefs.h >>conftest.$ac_ext
9027cat >>conftest.$ac_ext <<_ACEOF
9028/* end confdefs.h. */
9029$ac_includes_default
9030#include <$ac_header>
9031_ACEOF
9032rm -f conftest.$ac_objext
9033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9034 (eval $ac_compile) 2>conftest.er1
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag"
9042 || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest.$ac_objext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 ac_header_compiler=yes
9055else
9056 echo "$as_me: failed program was:" >&5
9057sed 's/^/| /' conftest.$ac_ext >&5
9058
9059ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009060fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9063echo "${ECHO_T}$ac_header_compiler" >&6
9064
9065# Is the header present?
9066echo "$as_me:$LINENO: checking $ac_header presence" >&5
9067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9068cat >conftest.$ac_ext <<_ACEOF
9069/* confdefs.h. */
9070_ACEOF
9071cat confdefs.h >>conftest.$ac_ext
9072cat >>conftest.$ac_ext <<_ACEOF
9073/* end confdefs.h. */
9074#include <$ac_header>
9075_ACEOF
9076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9078 ac_status=$?
9079 grep -v '^ *+' conftest.er1 >conftest.err
9080 rm -f conftest.er1
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } >/dev/null; then
9084 if test -s conftest.err; then
9085 ac_cpp_err=$ac_c_preproc_warn_flag
9086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9087 else
9088 ac_cpp_err=
9089 fi
9090else
9091 ac_cpp_err=yes
9092fi
9093if test -z "$ac_cpp_err"; then
9094 ac_header_preproc=yes
9095else
9096 echo "$as_me: failed program was:" >&5
9097sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 ac_header_preproc=no
9100fi
9101rm -f conftest.err conftest.$ac_ext
9102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9103echo "${ECHO_T}$ac_header_preproc" >&6
9104
9105# So? What about this header?
9106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9107 yes:no: )
9108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9112 ac_header_preproc=yes
9113 ;;
9114 no:yes:* )
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9127 (
9128 cat <<\_ASBOX
9129## ------------------------------------------ ##
9130## Report this to the AC_PACKAGE_NAME lists. ##
9131## ------------------------------------------ ##
9132_ASBOX
9133 ) |
9134 sed "s/^/$as_me: WARNING: /" >&2
9135 ;;
9136esac
9137echo "$as_me:$LINENO: checking for $ac_header" >&5
9138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9139if eval "test \"\${$as_ac_Header+set}\" = set"; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9141else
9142 eval "$as_ac_Header=\$ac_header_preproc"
9143fi
9144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9146
9147fi
9148if test `eval echo '${'$as_ac_Header'}'` = yes; then
9149 cat >>confdefs.h <<_ACEOF
9150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9151_ACEOF
9152
9153fi
9154
Bram Moolenaar071d4272004-06-13 20:20:40 +00009155done
9156
Bram Moolenaar910f66f2006-04-05 20:41:53 +00009157
9158 if test $ac_cv_header_Xm_XpmP_h = yes; then
9159 echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9160echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9161 cat >conftest.$ac_ext <<_ACEOF
9162/* confdefs.h. */
9163_ACEOF
9164cat confdefs.h >>conftest.$ac_ext
9165cat >>conftest.$ac_ext <<_ACEOF
9166/* end confdefs.h. */
9167#include <Xm/XpmP.h>
9168int
9169main ()
9170{
9171XpmAttributes_21 attr;
9172 ;
9173 return 0;
9174}
9175_ACEOF
9176rm -f conftest.$ac_objext
9177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9178 (eval $ac_compile) 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest.$ac_objext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 echo "$as_me:$LINENO: result: yes" >&5
9199echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9200#define XPMATTRIBUTES_TYPE XpmAttributes_21
9201_ACEOF
9202
9203else
9204 echo "$as_me: failed program was:" >&5
9205sed 's/^/| /' conftest.$ac_ext >&5
9206
9207echo "$as_me:$LINENO: result: no" >&5
9208echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
9209#define XPMATTRIBUTES_TYPE XpmAttributes
9210_ACEOF
9211
9212
9213fi
9214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9215 else
9216 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar57657d82006-04-21 22:12:41 +00009217#define XPMATTRIBUTES_TYPE XpmAttributes
Bram Moolenaar910f66f2006-04-05 20:41:53 +00009218_ACEOF
9219
9220 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009221 CPPFLAGS=$cppflags_save
9222fi
9223
9224if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009225 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9226echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009227 enable_xim="no"
9228fi
9229if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009230 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9231echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009232 enable_fontset="no"
9233fi
9234if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009235 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9236echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009237 enable_fontset="no"
9238fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009239
9240if test -z "$SKIP_PHOTON"; then
9241 GUITYPE=PHOTONGUI
9242fi
9243
9244
9245
9246
9247
9248
9249if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009250 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9251echo "$as_me: error: cannot use workshop without Motif" >&2;}
9252 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009253fi
9254
9255if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009256 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009257#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009258_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009259
9260fi
9261if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009262 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009263#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009264_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009265
9266fi
9267
9268
9269
9270
9271if test "$enable_hangulinput" = "yes"; then
9272 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009273 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9274echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009275 enable_hangulinput=no
9276 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009277 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009278#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009279_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009280
9281 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009282
Bram Moolenaar071d4272004-06-13 20:20:40 +00009283 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009284
Bram Moolenaar071d4272004-06-13 20:20:40 +00009285 fi
9286fi
9287
9288
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009289echo "$as_me:$LINENO: checking quality of toupper" >&5
9290echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009291if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009292 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9293echo "$as_me: error: failed to compile test program" >&2;}
9294 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009295else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009296 cat >conftest.$ac_ext <<_ACEOF
9297/* confdefs.h. */
9298_ACEOF
9299cat confdefs.h >>conftest.$ac_ext
9300cat >>conftest.$ac_ext <<_ACEOF
9301/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009302#include <ctype.h>
9303main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009304_ACEOF
9305rm -f conftest$ac_exeext
9306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9307 (eval $ac_link) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 (eval $ac_try) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; }; then
9316 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009317#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009318_ACEOF
9319 echo "$as_me:$LINENO: result: bad" >&5
9320echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009321else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009322 echo "$as_me: program exited with status $ac_status" >&5
9323echo "$as_me: failed program was:" >&5
9324sed 's/^/| /' conftest.$ac_ext >&5
9325
9326( exit $ac_status )
9327echo "$as_me:$LINENO: result: good" >&5
9328echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009329fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009330rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009331fi
9332
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009333echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9334echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9335cat >conftest.$ac_ext <<_ACEOF
9336/* confdefs.h. */
9337_ACEOF
9338cat confdefs.h >>conftest.$ac_ext
9339cat >>conftest.$ac_ext <<_ACEOF
9340/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009341
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009342int
9343main ()
9344{
Bram Moolenaar071d4272004-06-13 20:20:40 +00009345printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009346 ;
9347 return 0;
9348}
9349_ACEOF
9350rm -f conftest.$ac_objext
9351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9352 (eval $ac_compile) 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_c_werror_flag"
9360 || test ! -s conftest.err'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; } &&
9366 { ac_try='test -s conftest.$ac_objext'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 (eval $ac_try) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 echo "$as_me:$LINENO: result: yes" >&5
9373echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009374#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009375_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009376
9377else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009378 echo "$as_me: failed program was:" >&5
9379sed 's/^/| /' conftest.$ac_ext >&5
9380
9381echo "$as_me:$LINENO: result: no" >&5
9382echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009383fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009385
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009386if test "${ac_cv_header_elf_h+set}" = set; then
9387 echo "$as_me:$LINENO: checking for elf.h" >&5
9388echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9389if test "${ac_cv_header_elf_h+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9391fi
9392echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9393echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009394else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009395 # Is the header compilable?
9396echo "$as_me:$LINENO: checking elf.h usability" >&5
9397echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9398cat >conftest.$ac_ext <<_ACEOF
9399/* confdefs.h. */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h. */
9404$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +00009405#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009406_ACEOF
9407rm -f conftest.$ac_objext
9408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409 (eval $ac_compile) 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -z "$ac_c_werror_flag"
9417 || test ! -s conftest.err'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 (eval $ac_try) 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; } &&
9423 { ac_try='test -s conftest.$ac_objext'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 (eval $ac_try) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9429 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009430else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009431 echo "$as_me: failed program was:" >&5
9432sed 's/^/| /' conftest.$ac_ext >&5
9433
9434ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009435fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9438echo "${ECHO_T}$ac_header_compiler" >&6
9439
9440# Is the header present?
9441echo "$as_me:$LINENO: checking elf.h presence" >&5
9442echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9443cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
9449#include <elf.h>
9450_ACEOF
9451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9453 ac_status=$?
9454 grep -v '^ *+' conftest.er1 >conftest.err
9455 rm -f conftest.er1
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } >/dev/null; then
9459 if test -s conftest.err; then
9460 ac_cpp_err=$ac_c_preproc_warn_flag
9461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9462 else
9463 ac_cpp_err=
9464 fi
9465else
9466 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009467fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009468if test -z "$ac_cpp_err"; then
9469 ac_header_preproc=yes
9470else
9471 echo "$as_me: failed program was:" >&5
9472sed 's/^/| /' conftest.$ac_ext >&5
9473
9474 ac_header_preproc=no
9475fi
9476rm -f conftest.err conftest.$ac_ext
9477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9478echo "${ECHO_T}$ac_header_preproc" >&6
9479
9480# So? What about this header?
9481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9482 yes:no: )
9483 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9484echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9486echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9487 ac_header_preproc=yes
9488 ;;
9489 no:yes:* )
9490 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9491echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9492 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9493echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9494 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9495echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9496 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9497echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9498 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9499echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9500 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9501echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9502 (
9503 cat <<\_ASBOX
9504## ------------------------------------------ ##
9505## Report this to the AC_PACKAGE_NAME lists. ##
9506## ------------------------------------------ ##
9507_ASBOX
9508 ) |
9509 sed "s/^/$as_me: WARNING: /" >&2
9510 ;;
9511esac
9512echo "$as_me:$LINENO: checking for elf.h" >&5
9513echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9514if test "${ac_cv_header_elf_h+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516else
9517 ac_cv_header_elf_h=$ac_header_preproc
9518fi
9519echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9520echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9521
9522fi
9523if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009524 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +00009525fi
9526
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009527
Bram Moolenaar071d4272004-06-13 20:20:40 +00009528if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009529
9530echo "$as_me:$LINENO: checking for main in -lelf" >&5
9531echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9532if test "${ac_cv_lib_elf_main+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009534else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009535 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009536LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009537cat >conftest.$ac_ext <<_ACEOF
9538/* confdefs.h. */
9539_ACEOF
9540cat confdefs.h >>conftest.$ac_ext
9541cat >>conftest.$ac_ext <<_ACEOF
9542/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009543
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009544
9545int
9546main ()
9547{
9548main ();
9549 ;
9550 return 0;
9551}
9552_ACEOF
9553rm -f conftest.$ac_objext conftest$ac_exeext
9554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>conftest.er1
9556 ac_status=$?
9557 grep -v '^ *+' conftest.er1 >conftest.err
9558 rm -f conftest.er1
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -z "$ac_c_werror_flag"
9563 || test ! -s conftest.err'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 (eval $ac_try) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; } &&
9569 { ac_try='test -s conftest$ac_exeext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009576else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009577 echo "$as_me: failed program was:" >&5
9578sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009579
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009580ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009581fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009582rm -f conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9584LIBS=$ac_check_lib_save_LIBS
9585fi
9586echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9587echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9588if test $ac_cv_lib_elf_main = yes; then
9589 cat >>confdefs.h <<_ACEOF
9590#define HAVE_LIBELF 1
9591_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009592
9593 LIBS="-lelf $LIBS"
9594
Bram Moolenaar071d4272004-06-13 20:20:40 +00009595fi
9596
9597fi
9598
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009599
9600
9601
9602
9603
Bram Moolenaar071d4272004-06-13 20:20:40 +00009604ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009605for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9606 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9607echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9608echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9609if eval "test \"\${$as_ac_Header+set}\" = set"; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009611else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009612 cat >conftest.$ac_ext <<_ACEOF
9613/* confdefs.h. */
9614_ACEOF
9615cat confdefs.h >>conftest.$ac_ext
9616cat >>conftest.$ac_ext <<_ACEOF
9617/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009618#include <sys/types.h>
9619#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009620
9621int
9622main ()
9623{
9624if ((DIR *) 0)
9625return 0;
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext
9631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632 (eval $ac_compile) 2>conftest.er1
9633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_c_werror_flag"
9640 || test ! -s conftest.err'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; } &&
9646 { ac_try='test -s conftest.$ac_objext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009653else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009654 echo "$as_me: failed program was:" >&5
9655sed 's/^/| /' conftest.$ac_ext >&5
9656
9657eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009658fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009660fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9663if test `eval echo '${'$as_ac_Header'}'` = yes; then
9664 cat >>confdefs.h <<_ACEOF
9665#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9666_ACEOF
9667
9668ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009669fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009670
Bram Moolenaar071d4272004-06-13 20:20:40 +00009671done
9672# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9673if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009674 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9675echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9676if test "${ac_cv_search_opendir+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009678else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009679 ac_func_search_save_LIBS=$LIBS
9680ac_cv_search_opendir=no
9681cat >conftest.$ac_ext <<_ACEOF
9682/* confdefs.h. */
9683_ACEOF
9684cat confdefs.h >>conftest.$ac_ext
9685cat >>conftest.$ac_ext <<_ACEOF
9686/* end confdefs.h. */
9687
Bram Moolenaar071d4272004-06-13 20:20:40 +00009688/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009689#ifdef __cplusplus
9690extern "C"
9691#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009692/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009693 builtin and then its argument prototype would still apply. */
9694char opendir ();
9695int
9696main ()
9697{
9698opendir ();
9699 ;
9700 return 0;
9701}
9702_ACEOF
9703rm -f conftest.$ac_objext conftest$ac_exeext
9704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9705 (eval $ac_link) 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -z "$ac_c_werror_flag"
9713 || test ! -s conftest.err'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; } &&
9719 { ac_try='test -s conftest$ac_exeext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009726else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009727 echo "$as_me: failed program was:" >&5
9728sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009729
9730fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009731rm -f conftest.err conftest.$ac_objext \
9732 conftest$ac_exeext conftest.$ac_ext
9733if test "$ac_cv_search_opendir" = no; then
9734 for ac_lib in dir; do
9735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9736 cat >conftest.$ac_ext <<_ACEOF
9737/* confdefs.h. */
9738_ACEOF
9739cat confdefs.h >>conftest.$ac_ext
9740cat >>conftest.$ac_ext <<_ACEOF
9741/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009742
Bram Moolenaar071d4272004-06-13 20:20:40 +00009743/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009744#ifdef __cplusplus
9745extern "C"
9746#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009747/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009748 builtin and then its argument prototype would still apply. */
9749char opendir ();
9750int
9751main ()
9752{
9753opendir ();
9754 ;
9755 return 0;
9756}
9757_ACEOF
9758rm -f conftest.$ac_objext conftest$ac_exeext
9759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760 (eval $ac_link) 2>conftest.er1
9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } &&
9767 { ac_try='test -z "$ac_c_werror_flag"
9768 || test ! -s conftest.err'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 (eval $ac_try) 2>&5
9771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; } &&
9774 { ac_try='test -s conftest$ac_exeext'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_search_opendir="-l$ac_lib"
9781break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009782else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009783 echo "$as_me: failed program was:" >&5
9784sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009785
9786fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009787rm -f conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789 done
9790fi
9791LIBS=$ac_func_search_save_LIBS
9792fi
9793echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9794echo "${ECHO_T}$ac_cv_search_opendir" >&6
9795if test "$ac_cv_search_opendir" != no; then
9796 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9797
9798fi
9799
Bram Moolenaar071d4272004-06-13 20:20:40 +00009800else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009801 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9802echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9803if test "${ac_cv_search_opendir+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009805else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009806 ac_func_search_save_LIBS=$LIBS
9807ac_cv_search_opendir=no
9808cat >conftest.$ac_ext <<_ACEOF
9809/* confdefs.h. */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
9813/* end confdefs.h. */
9814
9815/* Override any gcc2 internal prototype to avoid an error. */
9816#ifdef __cplusplus
9817extern "C"
9818#endif
9819/* We use char because int might match the return type of a gcc2
9820 builtin and then its argument prototype would still apply. */
9821char opendir ();
9822int
9823main ()
9824{
9825opendir ();
9826 ;
9827 return 0;
9828}
9829_ACEOF
9830rm -f conftest.$ac_objext conftest$ac_exeext
9831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9832 (eval $ac_link) 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -z "$ac_c_werror_flag"
9840 || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_search_opendir="none required"
9853else
9854 echo "$as_me: failed program was:" >&5
9855sed 's/^/| /' conftest.$ac_ext >&5
9856
9857fi
9858rm -f conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860if test "$ac_cv_search_opendir" = no; then
9861 for ac_lib in x; do
9862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9863 cat >conftest.$ac_ext <<_ACEOF
9864/* confdefs.h. */
9865_ACEOF
9866cat confdefs.h >>conftest.$ac_ext
9867cat >>conftest.$ac_ext <<_ACEOF
9868/* end confdefs.h. */
9869
9870/* Override any gcc2 internal prototype to avoid an error. */
9871#ifdef __cplusplus
9872extern "C"
9873#endif
9874/* We use char because int might match the return type of a gcc2
9875 builtin and then its argument prototype would still apply. */
9876char opendir ();
9877int
9878main ()
9879{
9880opendir ();
9881 ;
9882 return 0;
9883}
9884_ACEOF
9885rm -f conftest.$ac_objext conftest$ac_exeext
9886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887 (eval $ac_link) 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_c_werror_flag"
9895 || test ! -s conftest.err'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try='test -s conftest$ac_exeext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_search_opendir="-l$ac_lib"
9908break
9909else
9910 echo "$as_me: failed program was:" >&5
9911sed 's/^/| /' conftest.$ac_ext >&5
9912
9913fi
9914rm -f conftest.err conftest.$ac_objext \
9915 conftest$ac_exeext conftest.$ac_ext
9916 done
9917fi
9918LIBS=$ac_func_search_save_LIBS
9919fi
9920echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9921echo "${ECHO_T}$ac_cv_search_opendir" >&6
9922if test "$ac_cv_search_opendir" != no; then
9923 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9924
9925fi
9926
9927fi
9928
9929
9930echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9931echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9932if test "${ac_cv_header_stdc+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9934else
9935 cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h. */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009941#include <stdlib.h>
9942#include <stdarg.h>
9943#include <string.h>
9944#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009945
9946int
9947main ()
9948{
9949
9950 ;
9951 return 0;
9952}
9953_ACEOF
9954rm -f conftest.$ac_objext
9955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9956 (eval $ac_compile) 2>conftest.er1
9957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag"
9964 || test ! -s conftest.err'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 (eval $ac_try) 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest.$ac_objext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 (eval $ac_try) 2>&5
9973 ac_status=$?
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009976 ac_cv_header_stdc=yes
9977else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009978 echo "$as_me: failed program was:" >&5
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009982fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009984
9985if test $ac_cv_header_stdc = yes; then
9986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009987 cat >conftest.$ac_ext <<_ACEOF
9988/* confdefs.h. */
9989_ACEOF
9990cat confdefs.h >>conftest.$ac_ext
9991cat >>conftest.$ac_ext <<_ACEOF
9992/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009993#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009994
9995_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009997 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009998 :
9999else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010000 ac_cv_header_stdc=no
10001fi
10002rm -f conftest*
10003
10004fi
10005
10006if test $ac_cv_header_stdc = yes; then
10007 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010008 cat >conftest.$ac_ext <<_ACEOF
10009/* confdefs.h. */
10010_ACEOF
10011cat confdefs.h >>conftest.$ac_ext
10012cat >>conftest.$ac_ext <<_ACEOF
10013/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010014#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010015
10016_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010018 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010019 :
10020else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010021 ac_cv_header_stdc=no
10022fi
10023rm -f conftest*
10024
10025fi
10026
10027if test $ac_cv_header_stdc = yes; then
10028 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010029 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010030 :
10031else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010032 cat >conftest.$ac_ext <<_ACEOF
10033/* confdefs.h. */
10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010038#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010039#if ((' ' & 0x0FF) == 0x020)
10040# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10041# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10042#else
10043# define ISLOWER(c) \
10044 (('a' <= (c) && (c) <= 'i') \
10045 || ('j' <= (c) && (c) <= 'r') \
10046 || ('s' <= (c) && (c) <= 'z'))
10047# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10048#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010049
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010050#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10051int
10052main ()
10053{
10054 int i;
10055 for (i = 0; i < 256; i++)
10056 if (XOR (islower (i), ISLOWER (i))
10057 || toupper (i) != TOUPPER (i))
10058 exit(2);
10059 exit (0);
10060}
10061_ACEOF
10062rm -f conftest$ac_exeext
10063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10064 (eval $ac_link) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010073 :
10074else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010075 echo "$as_me: program exited with status $ac_status" >&5
10076echo "$as_me: failed program was:" >&5
10077sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010078
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010079( exit $ac_status )
10080ac_cv_header_stdc=no
10081fi
10082rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010083fi
10084fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010085fi
10086echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10087echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010088if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010089
10090cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010091#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010092_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010093
10094fi
10095
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010096echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10097echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10098if test "${ac_cv_header_sys_wait_h+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010100else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010101 cat >conftest.$ac_ext <<_ACEOF
10102/* confdefs.h. */
10103_ACEOF
10104cat confdefs.h >>conftest.$ac_ext
10105cat >>conftest.$ac_ext <<_ACEOF
10106/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010107#include <sys/types.h>
10108#include <sys/wait.h>
10109#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010110# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010111#endif
10112#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010113# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010114#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010115
10116int
10117main ()
10118{
10119 int s;
10120 wait (&s);
10121 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10122 ;
10123 return 0;
10124}
10125_ACEOF
10126rm -f conftest.$ac_objext
10127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10128 (eval $ac_compile) 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -z "$ac_c_werror_flag"
10136 || test ! -s conftest.err'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest.$ac_objext'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010148 ac_cv_header_sys_wait_h=yes
10149else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010150 echo "$as_me: failed program was:" >&5
10151sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010152
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010153ac_cv_header_sys_wait_h=no
10154fi
10155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10156fi
10157echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10158echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010159if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010160
10161cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010162#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010163_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010164
10165fi
10166
10167
10168if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010169 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10170echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10171 cat >conftest.$ac_ext <<_ACEOF
10172/* confdefs.h. */
10173_ACEOF
10174cat confdefs.h >>conftest.$ac_ext
10175cat >>conftest.$ac_ext <<_ACEOF
10176/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010177#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010178int
10179main ()
10180{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010181union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010182 ;
10183 return 0;
10184}
10185_ACEOF
10186rm -f conftest.$ac_objext
10187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188 (eval $ac_compile) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest.$ac_objext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209echo "${ECHO_T}yes" >&6
10210 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010211#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010212_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010213
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010214 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010215#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010216_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010217
10218else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010219 echo "$as_me: failed program was:" >&5
10220sed 's/^/| /' conftest.$ac_ext >&5
10221
10222echo "$as_me:$LINENO: result: no" >&5
10223echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010224fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010226fi
10227
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010228
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
10266
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010267
Bram Moolenaare74455a2007-11-04 14:36:18 +000010268
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010269for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaare74455a2007-11-04 14:36:18 +000010270 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010271 iconv.h langinfo.h unistd.h stropts.h errno.h \
10272 sys/resource.h sys/systeminfo.h locale.h \
10273 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10274 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010275 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010276 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010277do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10279if eval "test \"\${$as_ac_Header+set}\" = set"; then
10280 echo "$as_me:$LINENO: checking for $ac_header" >&5
10281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10282if eval "test \"\${$as_ac_Header+set}\" = set"; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010284fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010287else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010288 # Is the header compilable?
10289echo "$as_me:$LINENO: checking $ac_header usability" >&5
10290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10291cat >conftest.$ac_ext <<_ACEOF
10292/* confdefs.h. */
10293_ACEOF
10294cat confdefs.h >>conftest.$ac_ext
10295cat >>conftest.$ac_ext <<_ACEOF
10296/* end confdefs.h. */
10297$ac_includes_default
10298#include <$ac_header>
10299_ACEOF
10300rm -f conftest.$ac_objext
10301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302 (eval $ac_compile) 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -z "$ac_c_werror_flag"
10310 || test ! -s conftest.err'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try='test -s conftest.$ac_objext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_header_compiler=yes
10323else
10324 echo "$as_me: failed program was:" >&5
10325sed 's/^/| /' conftest.$ac_ext >&5
10326
10327ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010328fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10330echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10331echo "${ECHO_T}$ac_header_compiler" >&6
10332
10333# Is the header present?
10334echo "$as_me:$LINENO: checking $ac_header presence" >&5
10335echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10336cat >conftest.$ac_ext <<_ACEOF
10337/* confdefs.h. */
10338_ACEOF
10339cat confdefs.h >>conftest.$ac_ext
10340cat >>conftest.$ac_ext <<_ACEOF
10341/* end confdefs.h. */
10342#include <$ac_header>
10343_ACEOF
10344if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } >/dev/null; then
10352 if test -s conftest.err; then
10353 ac_cpp_err=$ac_c_preproc_warn_flag
10354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10355 else
10356 ac_cpp_err=
10357 fi
10358else
10359 ac_cpp_err=yes
10360fi
10361if test -z "$ac_cpp_err"; then
10362 ac_header_preproc=yes
10363else
10364 echo "$as_me: failed program was:" >&5
10365sed 's/^/| /' conftest.$ac_ext >&5
10366
10367 ac_header_preproc=no
10368fi
10369rm -f conftest.err conftest.$ac_ext
10370echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10371echo "${ECHO_T}$ac_header_preproc" >&6
10372
10373# So? What about this header?
10374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10375 yes:no: )
10376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10377echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10379echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10380 ac_header_preproc=yes
10381 ;;
10382 no:yes:* )
10383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10384echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10386echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10388echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10390echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10392echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10394echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10395 (
10396 cat <<\_ASBOX
10397## ------------------------------------------ ##
10398## Report this to the AC_PACKAGE_NAME lists. ##
10399## ------------------------------------------ ##
10400_ASBOX
10401 ) |
10402 sed "s/^/$as_me: WARNING: /" >&2
10403 ;;
10404esac
10405echo "$as_me:$LINENO: checking for $ac_header" >&5
10406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10407if eval "test \"\${$as_ac_Header+set}\" = set"; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10409else
10410 eval "$as_ac_Header=\$ac_header_preproc"
10411fi
10412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10414
10415fi
10416if test `eval echo '${'$as_ac_Header'}'` = yes; then
10417 cat >>confdefs.h <<_ACEOF
10418#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10419_ACEOF
10420
10421fi
10422
Bram Moolenaar071d4272004-06-13 20:20:40 +000010423done
10424
10425
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010426echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10427echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10428cat >conftest.$ac_ext <<_ACEOF
10429/* confdefs.h. */
10430_ACEOF
10431cat confdefs.h >>conftest.$ac_ext
10432cat >>conftest.$ac_ext <<_ACEOF
10433/* end confdefs.h. */
10434
10435#include <pthread.h>
10436#include <pthread_np.h>
10437int
10438main ()
10439{
10440int i; i = 0;
10441 ;
10442 return 0;
10443}
10444_ACEOF
10445rm -f conftest.$ac_objext
10446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447 (eval $ac_compile) 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -z "$ac_c_werror_flag"
10455 || test ! -s conftest.err'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try='test -s conftest.$ac_objext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 echo "$as_me:$LINENO: result: yes" >&5
10468echo "${ECHO_T}yes" >&6
10469 cat >>confdefs.h <<\_ACEOF
10470#define HAVE_PTHREAD_NP_H 1
10471_ACEOF
10472
10473else
10474 echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
10477echo "$as_me:$LINENO: result: no" >&5
10478echo "${ECHO_T}no" >&6
10479fi
10480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10481
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010482
10483for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010484do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10486if eval "test \"\${$as_ac_Header+set}\" = set"; then
10487 echo "$as_me:$LINENO: checking for $ac_header" >&5
10488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10489if eval "test \"\${$as_ac_Header+set}\" = set"; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010491fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010494else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010495 # Is the header compilable?
10496echo "$as_me:$LINENO: checking $ac_header usability" >&5
10497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10498cat >conftest.$ac_ext <<_ACEOF
10499/* confdefs.h. */
10500_ACEOF
10501cat confdefs.h >>conftest.$ac_ext
10502cat >>conftest.$ac_ext <<_ACEOF
10503/* end confdefs.h. */
10504$ac_includes_default
10505#include <$ac_header>
10506_ACEOF
10507rm -f conftest.$ac_objext
10508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509 (eval $ac_compile) 2>conftest.er1
10510 ac_status=$?
10511 grep -v '^ *+' conftest.er1 >conftest.err
10512 rm -f conftest.er1
10513 cat conftest.err >&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -z "$ac_c_werror_flag"
10517 || test ! -s conftest.err'
10518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 (eval $ac_try) 2>&5
10520 ac_status=$?
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; } &&
10523 { ac_try='test -s conftest.$ac_objext'
10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
10529 ac_header_compiler=yes
10530else
10531 echo "$as_me: failed program was:" >&5
10532sed 's/^/| /' conftest.$ac_ext >&5
10533
10534ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010535fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10538echo "${ECHO_T}$ac_header_compiler" >&6
10539
10540# Is the header present?
10541echo "$as_me:$LINENO: checking $ac_header presence" >&5
10542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10543cat >conftest.$ac_ext <<_ACEOF
10544/* confdefs.h. */
10545_ACEOF
10546cat confdefs.h >>conftest.$ac_ext
10547cat >>conftest.$ac_ext <<_ACEOF
10548/* end confdefs.h. */
10549#include <$ac_header>
10550_ACEOF
10551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } >/dev/null; then
10559 if test -s conftest.err; then
10560 ac_cpp_err=$ac_c_preproc_warn_flag
10561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10562 else
10563 ac_cpp_err=
10564 fi
10565else
10566 ac_cpp_err=yes
10567fi
10568if test -z "$ac_cpp_err"; then
10569 ac_header_preproc=yes
10570else
10571 echo "$as_me: failed program was:" >&5
10572sed 's/^/| /' conftest.$ac_ext >&5
10573
10574 ac_header_preproc=no
10575fi
10576rm -f conftest.err conftest.$ac_ext
10577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10578echo "${ECHO_T}$ac_header_preproc" >&6
10579
10580# So? What about this header?
10581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10582 yes:no: )
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10587 ac_header_preproc=yes
10588 ;;
10589 no:yes:* )
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10602 (
10603 cat <<\_ASBOX
10604## ------------------------------------------ ##
10605## Report this to the AC_PACKAGE_NAME lists. ##
10606## ------------------------------------------ ##
10607_ASBOX
10608 ) |
10609 sed "s/^/$as_me: WARNING: /" >&2
10610 ;;
10611esac
10612echo "$as_me:$LINENO: checking for $ac_header" >&5
10613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10614if eval "test \"\${$as_ac_Header+set}\" = set"; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10616else
10617 eval "$as_ac_Header=\$ac_header_preproc"
10618fi
10619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10621
10622fi
10623if test `eval echo '${'$as_ac_Header'}'` = yes; then
10624 cat >>confdefs.h <<_ACEOF
10625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10626_ACEOF
10627
10628fi
10629
Bram Moolenaar071d4272004-06-13 20:20:40 +000010630done
10631
Bram Moolenaar9372a112005-12-06 19:59:18 +000010632if test "x$MACOSX" = "xyes"; then
10633 cat >>confdefs.h <<\_ACEOF
10634#define NO_STRINGS_WITH_STRING_H 1
10635_ACEOF
10636
10637else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010638
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010639echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10640echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010641cppflags_save=$CPPFLAGS
10642CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010643cat >conftest.$ac_ext <<_ACEOF
10644/* confdefs.h. */
10645_ACEOF
10646cat confdefs.h >>conftest.$ac_ext
10647cat >>conftest.$ac_ext <<_ACEOF
10648/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010649
10650#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10651# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10652 /* but don't do it on AIX 5.1 (Uribarri) */
10653#endif
10654#ifdef HAVE_XM_XM_H
10655# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10656#endif
10657#ifdef HAVE_STRING_H
10658# include <string.h>
10659#endif
10660#if defined(HAVE_STRINGS_H)
10661# include <strings.h>
10662#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010663
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010664int
10665main ()
10666{
10667int i; i = 0;
10668 ;
10669 return 0;
10670}
10671_ACEOF
10672rm -f conftest.$ac_objext
10673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10674 (eval $ac_compile) 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try='test -z "$ac_c_werror_flag"
10682 || test ! -s conftest.err'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; } &&
10688 { ac_try='test -s conftest.$ac_objext'
10689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; }; then
10694 echo "$as_me:$LINENO: result: yes" >&5
10695echo "${ECHO_T}yes" >&6
10696else
10697 echo "$as_me: failed program was:" >&5
10698sed 's/^/| /' conftest.$ac_ext >&5
10699
10700cat >>confdefs.h <<\_ACEOF
10701#define NO_STRINGS_WITH_STRING_H 1
10702_ACEOF
10703
10704 echo "$as_me:$LINENO: result: no" >&5
10705echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010706fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010708CPPFLAGS=$cppflags_save
Bram Moolenaar9372a112005-12-06 19:59:18 +000010709fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000010710
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010711if test $ac_cv_c_compiler_gnu = yes; then
10712 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10713echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10714if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010716else
10717 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010718 cat >conftest.$ac_ext <<_ACEOF
10719/* confdefs.h. */
10720_ACEOF
10721cat confdefs.h >>conftest.$ac_ext
10722cat >>conftest.$ac_ext <<_ACEOF
10723/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010724#include <sgtty.h>
10725Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010726_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010728 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010729 ac_cv_prog_gcc_traditional=yes
10730else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010731 ac_cv_prog_gcc_traditional=no
10732fi
10733rm -f conftest*
10734
10735
10736 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010737 cat >conftest.$ac_ext <<_ACEOF
10738/* confdefs.h. */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010743#include <termio.h>
10744Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010745_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010747 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010748 ac_cv_prog_gcc_traditional=yes
10749fi
10750rm -f conftest*
10751
10752 fi
10753fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010754echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10755echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010756 if test $ac_cv_prog_gcc_traditional = yes; then
10757 CC="$CC -traditional"
10758 fi
10759fi
10760
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010761echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10762echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10763if test "${ac_cv_c_const+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010765else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010766 cat >conftest.$ac_ext <<_ACEOF
10767/* confdefs.h. */
10768_ACEOF
10769cat confdefs.h >>conftest.$ac_ext
10770cat >>conftest.$ac_ext <<_ACEOF
10771/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010772
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010773int
10774main ()
10775{
10776/* FIXME: Include the comments suggested by Paul. */
10777#ifndef __cplusplus
10778 /* Ultrix mips cc rejects this. */
10779 typedef int charset[2];
10780 const charset x;
10781 /* SunOS 4.1.1 cc rejects this. */
10782 char const *const *ccp;
10783 char **p;
10784 /* NEC SVR4.0.2 mips cc rejects this. */
10785 struct point {int x, y;};
10786 static struct point const zero = {0,0};
10787 /* AIX XL C 1.02.0.0 rejects this.
10788 It does not let you subtract one const X* pointer from another in
10789 an arm of an if-expression whose if-part is not a constant
10790 expression */
10791 const char *g = "string";
10792 ccp = &g + (g ? g-g : 0);
10793 /* HPUX 7.0 cc rejects these. */
10794 ++ccp;
10795 p = (char**) ccp;
10796 ccp = (char const *const *) p;
10797 { /* SCO 3.2v4 cc rejects this. */
10798 char *t;
10799 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010800
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010801 *t++ = 0;
10802 }
10803 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10804 int x[] = {25, 17};
10805 const int *foo = &x[0];
10806 ++foo;
10807 }
10808 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10809 typedef const int *iptr;
10810 iptr p = 0;
10811 ++p;
10812 }
10813 { /* AIX XL C 1.02.0.0 rejects this saying
10814 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10815 struct s { int j; const int *ap[3]; };
10816 struct s *b; b->j = 5;
10817 }
10818 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10819 const int foo = 10;
10820 }
10821#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010822
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010823 ;
10824 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010825}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010826_ACEOF
10827rm -f conftest.$ac_objext
10828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10829 (eval $ac_compile) 2>conftest.er1
10830 ac_status=$?
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -z "$ac_c_werror_flag"
10837 || test ! -s conftest.err'
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; } &&
10843 { ac_try='test -s conftest.$ac_objext'
10844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010849 ac_cv_c_const=yes
10850else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010851 echo "$as_me: failed program was:" >&5
10852sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010853
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010854ac_cv_c_const=no
10855fi
10856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10857fi
10858echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10859echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010860if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010861
10862cat >>confdefs.h <<\_ACEOF
10863#define const
10864_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010865
10866fi
10867
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010868echo "$as_me:$LINENO: checking for mode_t" >&5
10869echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10870if test "${ac_cv_type_mode_t+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010872else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010873 cat >conftest.$ac_ext <<_ACEOF
10874/* confdefs.h. */
10875_ACEOF
10876cat confdefs.h >>conftest.$ac_ext
10877cat >>conftest.$ac_ext <<_ACEOF
10878/* end confdefs.h. */
10879$ac_includes_default
10880int
10881main ()
10882{
10883if ((mode_t *) 0)
10884 return 0;
10885if (sizeof (mode_t))
10886 return 0;
10887 ;
10888 return 0;
10889}
10890_ACEOF
10891rm -f conftest.$ac_objext
10892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10893 (eval $ac_compile) 2>conftest.er1
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try='test -z "$ac_c_werror_flag"
10901 || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try='test -s conftest.$ac_objext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010913 ac_cv_type_mode_t=yes
10914else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010915 echo "$as_me: failed program was:" >&5
10916sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010917
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010918ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010919fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010921fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010922echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10923echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10924if test $ac_cv_type_mode_t = yes; then
10925 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010926else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010927
10928cat >>confdefs.h <<_ACEOF
10929#define mode_t int
10930_ACEOF
10931
10932fi
10933
10934echo "$as_me:$LINENO: checking for off_t" >&5
10935echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10936if test "${ac_cv_type_off_t+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938else
10939 cat >conftest.$ac_ext <<_ACEOF
10940/* confdefs.h. */
10941_ACEOF
10942cat confdefs.h >>conftest.$ac_ext
10943cat >>conftest.$ac_ext <<_ACEOF
10944/* end confdefs.h. */
10945$ac_includes_default
10946int
10947main ()
10948{
10949if ((off_t *) 0)
10950 return 0;
10951if (sizeof (off_t))
10952 return 0;
10953 ;
10954 return 0;
10955}
10956_ACEOF
10957rm -f conftest.$ac_objext
10958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10959 (eval $ac_compile) 2>conftest.er1
10960 ac_status=$?
10961 grep -v '^ *+' conftest.er1 >conftest.err
10962 rm -f conftest.er1
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try='test -z "$ac_c_werror_flag"
10967 || test ! -s conftest.err'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest.$ac_objext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010979 ac_cv_type_off_t=yes
10980else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010981 echo "$as_me: failed program was:" >&5
10982sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010983
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010984ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010985fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010987fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010988echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10989echo "${ECHO_T}$ac_cv_type_off_t" >&6
10990if test $ac_cv_type_off_t = yes; then
10991 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010992else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010993
10994cat >>confdefs.h <<_ACEOF
10995#define off_t long
10996_ACEOF
10997
10998fi
10999
11000echo "$as_me:$LINENO: checking for pid_t" >&5
11001echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11002if test "${ac_cv_type_pid_t+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004else
11005 cat >conftest.$ac_ext <<_ACEOF
11006/* confdefs.h. */
11007_ACEOF
11008cat confdefs.h >>conftest.$ac_ext
11009cat >>conftest.$ac_ext <<_ACEOF
11010/* end confdefs.h. */
11011$ac_includes_default
11012int
11013main ()
11014{
11015if ((pid_t *) 0)
11016 return 0;
11017if (sizeof (pid_t))
11018 return 0;
11019 ;
11020 return 0;
11021}
11022_ACEOF
11023rm -f conftest.$ac_objext
11024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11025 (eval $ac_compile) 2>conftest.er1
11026 ac_status=$?
11027 grep -v '^ *+' conftest.er1 >conftest.err
11028 rm -f conftest.er1
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -z "$ac_c_werror_flag"
11033 || test ! -s conftest.err'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; } &&
11039 { ac_try='test -s conftest.$ac_objext'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011045 ac_cv_type_pid_t=yes
11046else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011047 echo "$as_me: failed program was:" >&5
11048sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011049
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011050ac_cv_type_pid_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011051fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011053fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011054echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11055echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11056if test $ac_cv_type_pid_t = yes; then
11057 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011058else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011059
11060cat >>confdefs.h <<_ACEOF
11061#define pid_t int
11062_ACEOF
11063
11064fi
11065
11066echo "$as_me:$LINENO: checking for size_t" >&5
11067echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11068if test "${ac_cv_type_size_t+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11070else
11071 cat >conftest.$ac_ext <<_ACEOF
11072/* confdefs.h. */
11073_ACEOF
11074cat confdefs.h >>conftest.$ac_ext
11075cat >>conftest.$ac_ext <<_ACEOF
11076/* end confdefs.h. */
11077$ac_includes_default
11078int
11079main ()
11080{
11081if ((size_t *) 0)
11082 return 0;
11083if (sizeof (size_t))
11084 return 0;
11085 ;
11086 return 0;
11087}
11088_ACEOF
11089rm -f conftest.$ac_objext
11090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091 (eval $ac_compile) 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_c_werror_flag"
11099 || test ! -s conftest.err'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011111 ac_cv_type_size_t=yes
11112else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011113 echo "$as_me: failed program was:" >&5
11114sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011115
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011116ac_cv_type_size_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011117fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011119fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011120echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11121echo "${ECHO_T}$ac_cv_type_size_t" >&6
11122if test $ac_cv_type_size_t = yes; then
11123 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011124else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011125
11126cat >>confdefs.h <<_ACEOF
11127#define size_t unsigned
11128_ACEOF
11129
11130fi
11131
11132echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11133echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11134if test "${ac_cv_type_uid_t+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136else
11137 cat >conftest.$ac_ext <<_ACEOF
11138/* confdefs.h. */
11139_ACEOF
11140cat confdefs.h >>conftest.$ac_ext
11141cat >>conftest.$ac_ext <<_ACEOF
11142/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011143#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011144
11145_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011147 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011148 ac_cv_type_uid_t=yes
11149else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011150 ac_cv_type_uid_t=no
11151fi
11152rm -f conftest*
11153
11154fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011155echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11156echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011157if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011158
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011159cat >>confdefs.h <<\_ACEOF
11160#define uid_t int
11161_ACEOF
11162
11163
11164cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011165#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011166_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011167
11168fi
11169
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011170echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11171echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11172if test "${ac_cv_header_time+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011174else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011175 cat >conftest.$ac_ext <<_ACEOF
11176/* confdefs.h. */
11177_ACEOF
11178cat confdefs.h >>conftest.$ac_ext
11179cat >>conftest.$ac_ext <<_ACEOF
11180/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011181#include <sys/types.h>
11182#include <sys/time.h>
11183#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011184
11185int
11186main ()
11187{
11188if ((struct tm *) 0)
11189return 0;
11190 ;
11191 return 0;
11192}
11193_ACEOF
11194rm -f conftest.$ac_objext
11195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11196 (eval $ac_compile) 2>conftest.er1
11197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } &&
11203 { ac_try='test -z "$ac_c_werror_flag"
11204 || test ! -s conftest.err'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; } &&
11210 { ac_try='test -s conftest.$ac_objext'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011216 ac_cv_header_time=yes
11217else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011218 echo "$as_me: failed program was:" >&5
11219sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011220
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011221ac_cv_header_time=no
11222fi
11223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11224fi
11225echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11226echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011227if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011228
11229cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011230#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011231_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011232
11233fi
11234
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011235echo "$as_me:$LINENO: checking for ino_t" >&5
11236echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11237if test "${ac_cv_type_ino_t+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011239else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011240 cat >conftest.$ac_ext <<_ACEOF
11241/* confdefs.h. */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h. */
11246$ac_includes_default
11247int
11248main ()
11249{
11250if ((ino_t *) 0)
11251 return 0;
11252if (sizeof (ino_t))
11253 return 0;
11254 ;
11255 return 0;
11256}
11257_ACEOF
11258rm -f conftest.$ac_objext
11259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11260 (eval $ac_compile) 2>conftest.er1
11261 ac_status=$?
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try='test -z "$ac_c_werror_flag"
11268 || test ! -s conftest.err'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011280 ac_cv_type_ino_t=yes
11281else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011282 echo "$as_me: failed program was:" >&5
11283sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011284
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011285ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011286fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011288fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011289echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11290echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11291if test $ac_cv_type_ino_t = yes; then
11292 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011293else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011294
11295cat >>confdefs.h <<_ACEOF
11296#define ino_t long
11297_ACEOF
11298
11299fi
11300
11301echo "$as_me:$LINENO: checking for dev_t" >&5
11302echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11303if test "${ac_cv_type_dev_t+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11305else
11306 cat >conftest.$ac_ext <<_ACEOF
11307/* confdefs.h. */
11308_ACEOF
11309cat confdefs.h >>conftest.$ac_ext
11310cat >>conftest.$ac_ext <<_ACEOF
11311/* end confdefs.h. */
11312$ac_includes_default
11313int
11314main ()
11315{
11316if ((dev_t *) 0)
11317 return 0;
11318if (sizeof (dev_t))
11319 return 0;
11320 ;
11321 return 0;
11322}
11323_ACEOF
11324rm -f conftest.$ac_objext
11325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326 (eval $ac_compile) 2>conftest.er1
11327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag"
11334 || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try='test -s conftest.$ac_objext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011346 ac_cv_type_dev_t=yes
11347else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011348 echo "$as_me: failed program was:" >&5
11349sed 's/^/| /' conftest.$ac_ext >&5
11350
11351ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011352fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011354fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011355echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11356echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11357if test $ac_cv_type_dev_t = yes; then
11358 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011359else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011360
11361cat >>confdefs.h <<_ACEOF
11362#define dev_t unsigned
11363_ACEOF
11364
11365fi
11366
11367
11368echo "$as_me:$LINENO: checking for rlim_t" >&5
11369echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11370if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11371 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11372echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11373else
11374 cat >conftest.$ac_ext <<_ACEOF
11375/* confdefs.h. */
11376_ACEOF
11377cat confdefs.h >>conftest.$ac_ext
11378cat >>conftest.$ac_ext <<_ACEOF
11379/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011380
11381#include <sys/types.h>
11382#if STDC_HEADERS
11383#include <stdlib.h>
11384#include <stddef.h>
11385#endif
11386#ifdef HAVE_SYS_RESOURCE_H
11387#include <sys/resource.h>
11388#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011389
11390_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011392 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011393 ac_cv_type_rlim_t=yes
11394else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011395 ac_cv_type_rlim_t=no
11396fi
11397rm -f conftest*
11398
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011399 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11400echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011401fi
11402if test $ac_cv_type_rlim_t = no; then
11403 cat >> confdefs.h <<\EOF
11404#define rlim_t unsigned long
11405EOF
11406fi
11407
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011408echo "$as_me:$LINENO: checking for stack_t" >&5
11409echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011410if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011411 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11412echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011413else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011414 cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011420
11421#include <sys/types.h>
11422#if STDC_HEADERS
11423#include <stdlib.h>
11424#include <stddef.h>
11425#endif
11426#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011427
11428_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011430 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011431 ac_cv_type_stack_t=yes
11432else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011433 ac_cv_type_stack_t=no
11434fi
11435rm -f conftest*
11436
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011437 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11438echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011439fi
11440if test $ac_cv_type_stack_t = no; then
11441 cat >> confdefs.h <<\EOF
11442#define stack_t struct sigaltstack
11443EOF
11444fi
11445
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011446echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11447echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11448cat >conftest.$ac_ext <<_ACEOF
11449/* confdefs.h. */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011454
11455#include <sys/types.h>
11456#if STDC_HEADERS
11457#include <stdlib.h>
11458#include <stddef.h>
11459#endif
11460#include <signal.h>
11461#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011462
11463int
11464main ()
11465{
11466stack_t sigstk; sigstk.ss_base = 0;
11467 ;
11468 return 0;
11469}
11470_ACEOF
11471rm -f conftest.$ac_objext
11472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11473 (eval $ac_compile) 2>conftest.er1
11474 ac_status=$?
11475 grep -v '^ *+' conftest.er1 >conftest.err
11476 rm -f conftest.er1
11477 cat conftest.err >&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); } &&
11480 { ac_try='test -z "$ac_c_werror_flag"
11481 || test ! -s conftest.err'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; } &&
11487 { ac_try='test -s conftest.$ac_objext'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 echo "$as_me:$LINENO: result: yes" >&5
11494echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011495#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011496_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011497
11498else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011499 echo "$as_me: failed program was:" >&5
11500sed 's/^/| /' conftest.$ac_ext >&5
11501
11502echo "$as_me:$LINENO: result: no" >&5
11503echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011504fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011506
11507olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011508echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11509echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11510
Bram Moolenaar071d4272004-06-13 20:20:40 +000011511# Check whether --with-tlib or --without-tlib was given.
11512if test "${with_tlib+set}" = set; then
11513 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011514
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011515fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011516if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011517 echo "$as_me:$LINENO: result: $with_tlib" >&5
11518echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011519 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011520 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11521echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11522 cat >conftest.$ac_ext <<_ACEOF
11523/* confdefs.h. */
11524_ACEOF
11525cat confdefs.h >>conftest.$ac_ext
11526cat >>conftest.$ac_ext <<_ACEOF
11527/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011528
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011529int
11530main ()
11531{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011532
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011533 ;
11534 return 0;
11535}
11536_ACEOF
11537rm -f conftest.$ac_objext conftest$ac_exeext
11538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11539 (eval $ac_link) 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -z "$ac_c_werror_flag"
11547 || test ! -s conftest.err'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; } &&
11553 { ac_try='test -s conftest$ac_exeext'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 echo "$as_me:$LINENO: result: OK" >&5
11560echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011561else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011562 echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
11565{ { echo "$as_me:$LINENO: error: FAILED" >&5
11566echo "$as_me: error: FAILED" >&2;}
11567 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011568fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011569rm -f conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011571 olibs="$LIBS"
11572else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011573 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11574echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaara1b5aa52006-10-10 09:41:28 +000011575 case "`uname -s 2>/dev/null`" in
11576 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011577 *) tlibs="ncurses termlib termcap curses";;
11578 esac
11579 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011580
11581as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11582echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11583echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11584if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011586else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011587 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000011588LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011589cat >conftest.$ac_ext <<_ACEOF
11590/* confdefs.h. */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h. */
11595
Bram Moolenaar071d4272004-06-13 20:20:40 +000011596/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011597#ifdef __cplusplus
11598extern "C"
11599#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011600/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011601 builtin and then its argument prototype would still apply. */
11602char tgetent ();
11603int
11604main ()
11605{
11606tgetent ();
11607 ;
11608 return 0;
11609}
11610_ACEOF
11611rm -f conftest.$ac_objext conftest$ac_exeext
11612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11613 (eval $ac_link) 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try='test -z "$ac_c_werror_flag"
11621 || test ! -s conftest.err'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try='test -s conftest$ac_exeext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011634else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011635 echo "$as_me: failed program was:" >&5
11636sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011637
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011638eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011639fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011640rm -f conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642LIBS=$ac_check_lib_save_LIBS
11643fi
11644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11645echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11646if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11647 cat >>confdefs.h <<_ACEOF
11648#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11649_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011650
11651 LIBS="-l${libname} $LIBS"
11652
Bram Moolenaar071d4272004-06-13 20:20:40 +000011653fi
11654
11655 if test "x$olibs" != "x$LIBS"; then
11656 if test "$cross_compiling" = yes; then
11657 res="FAIL"
11658else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011659 cat >conftest.$ac_ext <<_ACEOF
11660/* confdefs.h. */
11661_ACEOF
11662cat confdefs.h >>conftest.$ac_ext
11663cat >>conftest.$ac_ext <<_ACEOF
11664/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011665
11666#ifdef HAVE_TERMCAP_H
11667# include <termcap.h>
11668#endif
11669main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011670_ACEOF
11671rm -f conftest$ac_exeext
11672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673 (eval $ac_link) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011682 res="OK"
11683else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011684 echo "$as_me: program exited with status $ac_status" >&5
11685echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011687
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011688( exit $ac_status )
11689res="FAIL"
11690fi
11691rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11692fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011693 if test "$res" = "OK"; then
11694 break
11695 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011696 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11697echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011698 LIBS="$olibs"
11699 fi
11700 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011701 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011702 echo "$as_me:$LINENO: result: no terminal library found" >&5
11703echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011704 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011705fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011706
11707if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011708 echo "$as_me:$LINENO: checking for tgetent()" >&5
11709echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11710 cat >conftest.$ac_ext <<_ACEOF
11711/* confdefs.h. */
11712_ACEOF
11713cat confdefs.h >>conftest.$ac_ext
11714cat >>conftest.$ac_ext <<_ACEOF
11715/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011716
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011717int
11718main ()
11719{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011720char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011721 ;
11722 return 0;
11723}
11724_ACEOF
11725rm -f conftest.$ac_objext conftest$ac_exeext
11726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11727 (eval $ac_link) 2>conftest.er1
11728 ac_status=$?
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag"
11735 || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest$ac_exeext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 echo "$as_me:$LINENO: result: yes" >&5
11748echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011749else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011750 echo "$as_me: failed program was:" >&5
11751sed 's/^/| /' conftest.$ac_ext >&5
11752
11753{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011754 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011755 Or specify the name of the library with --with-tlib." >&5
11756echo "$as_me: error: NOT FOUND!
11757 You need to install a terminal library; for example ncurses.
11758 Or specify the name of the library with --with-tlib." >&2;}
11759 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011760fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011761rm -f conftest.err conftest.$ac_objext \
11762 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011763fi
11764
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011765echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11766echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011767if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011768 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11769echo "$as_me: error: failed to compile test program." >&2;}
11770 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011771else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011772 cat >conftest.$ac_ext <<_ACEOF
11773/* confdefs.h. */
11774_ACEOF
11775cat confdefs.h >>conftest.$ac_ext
11776cat >>conftest.$ac_ext <<_ACEOF
11777/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011778
11779#ifdef HAVE_TERMCAP_H
11780# include <termcap.h>
11781#endif
11782main()
11783{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011784_ACEOF
11785rm -f conftest$ac_exeext
11786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11787 (eval $ac_link) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11797echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011798else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011799 echo "$as_me: program exited with status $ac_status" >&5
11800echo "$as_me: failed program was:" >&5
11801sed 's/^/| /' conftest.$ac_ext >&5
11802
11803( exit $ac_status )
11804echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11805echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011806#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011807_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011808
11809fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011810rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011811fi
11812
Bram Moolenaar071d4272004-06-13 20:20:40 +000011813if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011814 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11815echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011816 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011817 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11818echo "$as_me: error: failed to compile test program." >&2;}
11819 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011820else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011821 cat >conftest.$ac_ext <<_ACEOF
11822/* confdefs.h. */
11823_ACEOF
11824cat confdefs.h >>conftest.$ac_ext
11825cat >>conftest.$ac_ext <<_ACEOF
11826/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011827
11828#ifdef HAVE_TERMCAP_H
11829# include <termcap.h>
11830#endif
11831main()
11832{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011833_ACEOF
11834rm -f conftest$ac_exeext
11835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11836 (eval $ac_link) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 echo "$as_me:$LINENO: result: zero" >&5
11846echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011847#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011848_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011849
11850else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011851 echo "$as_me: program exited with status $ac_status" >&5
11852echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855( exit $ac_status )
11856echo "$as_me:$LINENO: result: non-zero" >&5
11857echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011858fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011859rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11860fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011861fi
11862
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011863echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11864echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11865cat >conftest.$ac_ext <<_ACEOF
11866/* confdefs.h. */
11867_ACEOF
11868cat confdefs.h >>conftest.$ac_ext
11869cat >>conftest.$ac_ext <<_ACEOF
11870/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011871
11872#ifdef HAVE_TERMCAP_H
11873# include <termcap.h>
11874#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011875
11876int
11877main ()
11878{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011879ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011880 ;
11881 return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext conftest$ac_exeext
11885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886 (eval $ac_link) 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -z "$ac_c_werror_flag"
11894 || test ! -s conftest.err'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; } &&
11900 { ac_try='test -s conftest$ac_exeext'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 echo "$as_me:$LINENO: result: yes" >&5
11907echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011908#define HAVE_OSPEED 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011909_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011910
11911else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011912 echo "$as_me: failed program was:" >&5
11913sed 's/^/| /' conftest.$ac_ext >&5
11914
11915echo "$as_me:$LINENO: result: no" >&5
11916echo "${ECHO_T}no" >&6
11917 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11918echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11919 cat >conftest.$ac_ext <<_ACEOF
11920/* confdefs.h. */
11921_ACEOF
11922cat confdefs.h >>conftest.$ac_ext
11923cat >>conftest.$ac_ext <<_ACEOF
11924/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011925
11926#ifdef HAVE_TERMCAP_H
11927# include <termcap.h>
11928#endif
11929extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011930
11931int
11932main ()
11933{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011934ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext conftest$ac_exeext
11940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11941 (eval $ac_link) 2>conftest.er1
11942 ac_status=$?
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -z "$ac_c_werror_flag"
11949 || test ! -s conftest.err'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest$ac_exeext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 echo "$as_me:$LINENO: result: yes" >&5
11962echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011963#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011964_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011965
11966else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011967 echo "$as_me: failed program was:" >&5
11968sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011969
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011970echo "$as_me:$LINENO: result: no" >&5
11971echo "${ECHO_T}no" >&6
11972fi
11973rm -f conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11975
11976fi
11977rm -f conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979
11980echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11981echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11982cat >conftest.$ac_ext <<_ACEOF
11983/* confdefs.h. */
11984_ACEOF
11985cat confdefs.h >>conftest.$ac_ext
11986cat >>conftest.$ac_ext <<_ACEOF
11987/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011988
11989#ifdef HAVE_TERMCAP_H
11990# include <termcap.h>
11991#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011992
11993int
11994main ()
11995{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011996if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011997 ;
11998 return 0;
11999}
12000_ACEOF
12001rm -f conftest.$ac_objext conftest$ac_exeext
12002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12003 (eval $ac_link) 2>conftest.er1
12004 ac_status=$?
12005 grep -v '^ *+' conftest.er1 >conftest.err
12006 rm -f conftest.er1
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag"
12011 || test ! -s conftest.err'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest$ac_exeext'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 echo "$as_me:$LINENO: result: yes" >&5
12024echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012025#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012026_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012027
12028else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012029 echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
12032echo "$as_me:$LINENO: result: no" >&5
12033echo "${ECHO_T}no" >&6
12034 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12035echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12036 cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012042
12043#ifdef HAVE_TERMCAP_H
12044# include <termcap.h>
12045#endif
12046extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012047
12048int
12049main ()
12050{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012051if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012052 ;
12053 return 0;
12054}
12055_ACEOF
12056rm -f conftest.$ac_objext conftest$ac_exeext
12057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058 (eval $ac_link) 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -z "$ac_c_werror_flag"
12066 || test ! -s conftest.err'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest$ac_exeext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 echo "$as_me:$LINENO: result: yes" >&5
12079echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012080#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012081_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012082
12083else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012086
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012087echo "$as_me:$LINENO: result: no" >&5
12088echo "${ECHO_T}no" >&6
12089fi
12090rm -f conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12092
12093fi
12094rm -f conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12096
12097echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12098echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12099cat >conftest.$ac_ext <<_ACEOF
12100/* confdefs.h. */
12101_ACEOF
12102cat confdefs.h >>conftest.$ac_ext
12103cat >>conftest.$ac_ext <<_ACEOF
12104/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012105
12106#ifdef HAVE_TERMCAP_H
12107# include <termcap.h>
12108#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012109
12110int
12111main ()
12112{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012113extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012114 ;
12115 return 0;
12116}
12117_ACEOF
12118rm -f conftest.$ac_objext
12119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12120 (eval $ac_compile) 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_c_werror_flag"
12128 || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest.$ac_objext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 echo "$as_me:$LINENO: result: yes" >&5
12141echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012142#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012143_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012144
12145else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012146 echo "$as_me: failed program was:" >&5
12147sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012148
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012149echo "$as_me:$LINENO: result: no" >&5
12150echo "${ECHO_T}no" >&6
12151fi
12152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12153
12154echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12155echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12156cat >conftest.$ac_ext <<_ACEOF
12157/* confdefs.h. */
12158_ACEOF
12159cat confdefs.h >>conftest.$ac_ext
12160cat >>conftest.$ac_ext <<_ACEOF
12161/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012162
12163#include <sys/types.h>
12164#include <sys/time.h>
12165#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012166int
12167main ()
12168{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012169
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012170 ;
12171 return 0;
12172}
12173_ACEOF
12174rm -f conftest.$ac_objext
12175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12176 (eval $ac_compile) 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -z "$ac_c_werror_flag"
12184 || test ! -s conftest.err'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; } &&
12190 { ac_try='test -s conftest.$ac_objext'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; }; then
12196 echo "$as_me:$LINENO: result: yes" >&5
12197echo "${ECHO_T}yes" >&6
12198 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012199#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012200_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012201
12202else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012203 echo "$as_me: failed program was:" >&5
12204sed 's/^/| /' conftest.$ac_ext >&5
12205
12206echo "$as_me:$LINENO: result: no" >&5
12207echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012208fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012210
12211
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012212echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12213echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012214if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012215 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012216#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012217_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012218
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012219 echo "$as_me:$LINENO: result: yes" >&5
12220echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012221else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012222 echo "$as_me:$LINENO: result: no" >&5
12223echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012224fi
12225
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012226echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12227echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012228if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012229 cat >conftest.$ac_ext <<_ACEOF
12230/* confdefs.h. */
12231_ACEOF
12232cat confdefs.h >>conftest.$ac_ext
12233cat >>conftest.$ac_ext <<_ACEOF
12234/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012235
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012236int
12237main ()
12238{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012239ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012240 ;
12241 return 0;
12242}
12243_ACEOF
12244rm -f conftest.$ac_objext conftest$ac_exeext
12245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12246 (eval $ac_link) 2>conftest.er1
12247 ac_status=$?
12248 grep -v '^ *+' conftest.er1 >conftest.err
12249 rm -f conftest.er1
12250 cat conftest.err >&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } &&
12253 { ac_try='test -z "$ac_c_werror_flag"
12254 || test ! -s conftest.err'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest$ac_exeext'
12261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262 (eval $ac_try) 2>&5
12263 ac_status=$?
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; }; then
12266 echo "$as_me:$LINENO: result: yes" >&5
12267echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012268#define HAVE_SVR4_PTYS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012269_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012270
12271else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012272 echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275echo "$as_me:$LINENO: result: no" >&5
12276echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012277fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012278rm -f conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012280else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012281 echo "$as_me:$LINENO: result: no" >&5
12282echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012283fi
12284
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012285echo "$as_me:$LINENO: checking for ptyranges" >&5
12286echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012287if test -d /dev/ptym ; then
12288 pdir='/dev/ptym'
12289else
12290 pdir='/dev'
12291fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012292cat >conftest.$ac_ext <<_ACEOF
12293/* confdefs.h. */
12294_ACEOF
12295cat confdefs.h >>conftest.$ac_ext
12296cat >>conftest.$ac_ext <<_ACEOF
12297/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012298#ifdef M_UNIX
12299 yes;
12300#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012301
12302_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012304 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012305 ptys=`echo /dev/ptyp??`
12306else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012307 ptys=`echo $pdir/pty??`
12308fi
12309rm -f conftest*
12310
12311if test "$ptys" != "$pdir/pty??" ; then
12312 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12313 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012314 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012315#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012316_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012317
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012318 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012319#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012320_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012321
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012322 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12323echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012324else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012325 echo "$as_me:$LINENO: result: don't know" >&5
12326echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012327fi
12328
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012329echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12330echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012331rm -f conftest_grp
12332if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012333 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12334echo "$as_me: error: failed to compile test program" >&2;}
12335 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012336else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012337 cat >conftest.$ac_ext <<_ACEOF
12338/* confdefs.h. */
12339_ACEOF
12340cat confdefs.h >>conftest.$ac_ext
12341cat >>conftest.$ac_ext <<_ACEOF
12342/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012343
12344#include <sys/types.h>
12345#include <sys/stat.h>
12346#include <stdio.h>
12347main()
12348{
12349 struct stat sb;
12350 char *x,*ttyname();
12351 int om, m;
12352 FILE *fp;
12353
12354 if (!(x = ttyname(0))) exit(1);
12355 if (stat(x, &sb)) exit(1);
12356 om = sb.st_mode;
12357 if (om & 002) exit(0);
12358 m = system("mesg y");
12359 if (m == -1 || m == 127) exit(1);
12360 if (stat(x, &sb)) exit(1);
12361 m = sb.st_mode;
12362 if (chmod(x, om)) exit(1);
12363 if (m & 002) exit(0);
12364 if (sb.st_gid == getgid()) exit(1);
12365 if (!(fp=fopen("conftest_grp", "w")))
12366 exit(1);
12367 fprintf(fp, "%d\n", sb.st_gid);
12368 fclose(fp);
12369 exit(0);
12370}
12371
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012372_ACEOF
12373rm -f conftest$ac_exeext
12374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12375 (eval $ac_link) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384
Bram Moolenaar071d4272004-06-13 20:20:40 +000012385 if test -f conftest_grp; then
12386 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012387 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12388echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12389 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012390#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012391_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012392
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012393 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012394#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012395_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012396
12397 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012398 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12399echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012400 fi
12401
12402else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012403 echo "$as_me: program exited with status $ac_status" >&5
12404echo "$as_me: failed program was:" >&5
12405sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012406
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012407( exit $ac_status )
12408echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12409echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12410fi
12411rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12412fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012413rm -f conftest_grp
12414
12415
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012416echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12417echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12418if test "${ac_cv_type_signal+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012420else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012421 cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012427#include <sys/types.h>
12428#include <signal.h>
12429#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012430# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000012431#endif
12432#ifdef __cplusplus
12433extern "C" void (*signal (int, void (*)(int)))(int);
12434#else
12435void (*signal ()) ();
12436#endif
12437
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012438int
12439main ()
12440{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012441int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012442 ;
12443 return 0;
12444}
12445_ACEOF
12446rm -f conftest.$ac_objext
12447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12448 (eval $ac_compile) 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag"
12456 || test ! -s conftest.err'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try='test -s conftest.$ac_objext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012468 ac_cv_type_signal=void
12469else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012472
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012473ac_cv_type_signal=int
12474fi
12475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12476fi
12477echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12478echo "${ECHO_T}$ac_cv_type_signal" >&6
12479
12480cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012481#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012482_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012483
12484
12485
12486if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012487 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012488#define SIGRETURN return
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012489_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012490
12491else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012492 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012493#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012494_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012495
12496fi
12497
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012498echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12499echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12500cat >conftest.$ac_ext <<_ACEOF
12501/* confdefs.h. */
12502_ACEOF
12503cat confdefs.h >>conftest.$ac_ext
12504cat >>conftest.$ac_ext <<_ACEOF
12505/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012506
12507#include <signal.h>
12508test_sig()
12509{
12510 struct sigcontext *scont;
12511 scont = (struct sigcontext *)0;
12512 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012513}
12514int
12515main ()
12516{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012517
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012518 ;
12519 return 0;
12520}
12521_ACEOF
12522rm -f conftest.$ac_objext
12523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524 (eval $ac_compile) 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_c_werror_flag"
12532 || test ! -s conftest.err'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest.$ac_objext'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; }; then
12544 echo "$as_me:$LINENO: result: yes" >&5
12545echo "${ECHO_T}yes" >&6
12546 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012547#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012548_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012549
12550else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012551 echo "$as_me: failed program was:" >&5
12552sed 's/^/| /' conftest.$ac_ext >&5
12553
12554echo "$as_me:$LINENO: result: no" >&5
12555echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012556fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012558
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012559echo "$as_me:$LINENO: checking getcwd implementation" >&5
12560echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012561if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012562 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12563echo "$as_me: error: failed to compile test program" >&2;}
12564 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012565else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012566 cat >conftest.$ac_ext <<_ACEOF
12567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012572
12573char *dagger[] = { "IFS=pwd", 0 };
12574main()
12575{
12576 char buffer[500];
12577 extern char **environ;
12578 environ = dagger;
12579 return getcwd(buffer, 500) ? 0 : 1;
12580}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012581_ACEOF
12582rm -f conftest$ac_exeext
12583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12584 (eval $ac_link) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 echo "$as_me:$LINENO: result: it is usable" >&5
12594echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012595else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012596 echo "$as_me: program exited with status $ac_status" >&5
12597echo "$as_me: failed program was:" >&5
12598sed 's/^/| /' conftest.$ac_ext >&5
12599
12600( exit $ac_status )
12601echo "$as_me:$LINENO: result: it stinks" >&5
12602echo "${ECHO_T}it stinks" >&6
12603 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012604#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012605_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012606
12607fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012609fi
12610
12611
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012612
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
12654
12655
12656
Bram Moolenaar071d4272004-06-13 20:20:40 +000012657for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12658 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12659 memset nanosleep opendir putenv qsort readlink select setenv \
12660 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000012661 sigvec strcasecmp strerror strftime stricmp strncasecmp \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000012662 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12663 usleep utime utimes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012664do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12666echo "$as_me:$LINENO: checking for $ac_func" >&5
12667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12668if eval "test \"\${$as_ac_var+set}\" = set"; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012670else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012671 cat >conftest.$ac_ext <<_ACEOF
12672/* confdefs.h. */
12673_ACEOF
12674cat confdefs.h >>conftest.$ac_ext
12675cat >>conftest.$ac_ext <<_ACEOF
12676/* end confdefs.h. */
12677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12679#define $ac_func innocuous_$ac_func
12680
Bram Moolenaar071d4272004-06-13 20:20:40 +000012681/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012682 which can conflict with char $ac_func (); below.
12683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12684 <limits.h> exists even on freestanding compilers. */
12685
12686#ifdef __STDC__
12687# include <limits.h>
12688#else
12689# include <assert.h>
12690#endif
12691
12692#undef $ac_func
12693
Bram Moolenaar071d4272004-06-13 20:20:40 +000012694/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012695#ifdef __cplusplus
12696extern "C"
12697{
12698#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012699/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012700 builtin and then its argument prototype would still apply. */
12701char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000012702/* The GNU C library defines this for functions which it implements
12703 to always fail with ENOSYS. Some functions are actually named
12704 something starting with __ and the normal name is an alias. */
12705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12706choke me
12707#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012708char (*f) () = $ac_func;
12709#endif
12710#ifdef __cplusplus
12711}
Bram Moolenaar071d4272004-06-13 20:20:40 +000012712#endif
12713
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012714int
12715main ()
12716{
12717return f != $ac_func;
12718 ;
12719 return 0;
12720}
12721_ACEOF
12722rm -f conftest.$ac_objext conftest$ac_exeext
12723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12724 (eval $ac_link) 2>conftest.er1
12725 ac_status=$?
12726 grep -v '^ *+' conftest.er1 >conftest.err
12727 rm -f conftest.er1
12728 cat conftest.err >&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } &&
12731 { ac_try='test -z "$ac_c_werror_flag"
12732 || test ! -s conftest.err'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } &&
12738 { ac_try='test -s conftest$ac_exeext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012745else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012746 echo "$as_me: failed program was:" >&5
12747sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012748
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012749eval "$as_ac_var=no"
12750fi
12751rm -f conftest.err conftest.$ac_objext \
12752 conftest$ac_exeext conftest.$ac_ext
12753fi
12754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12755echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12756if test `eval echo '${'$as_ac_var'}'` = yes; then
12757 cat >>confdefs.h <<_ACEOF
12758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12759_ACEOF
12760
Bram Moolenaar071d4272004-06-13 20:20:40 +000012761fi
12762done
12763
12764
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012765echo "$as_me:$LINENO: checking for st_blksize" >&5
12766echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12767cat >conftest.$ac_ext <<_ACEOF
12768/* confdefs.h. */
12769_ACEOF
12770cat confdefs.h >>conftest.$ac_ext
12771cat >>conftest.$ac_ext <<_ACEOF
12772/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012773#include <sys/types.h>
12774#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012775int
12776main ()
12777{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012778 struct stat st;
12779 int n;
12780
12781 stat("/", &st);
12782 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012783 ;
12784 return 0;
12785}
12786_ACEOF
12787rm -f conftest.$ac_objext
12788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12789 (eval $ac_compile) 2>conftest.er1
12790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } &&
12796 { ac_try='test -z "$ac_c_werror_flag"
12797 || test ! -s conftest.err'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest.$ac_objext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 echo "$as_me:$LINENO: result: yes" >&5
12810echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012811#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012812_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012813
12814else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012815 echo "$as_me: failed program was:" >&5
12816sed 's/^/| /' conftest.$ac_ext >&5
12817
12818echo "$as_me:$LINENO: result: no" >&5
12819echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012820fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012822
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012823echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12824echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012825if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012826 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12827echo "$as_me: error: failed to compile test program" >&2;}
12828 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012829else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012830 cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012836#include <sys/types.h>
12837#include <sys/stat.h>
12838main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012839_ACEOF
12840rm -f conftest$ac_exeext
12841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12842 (eval $ac_link) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 echo "$as_me:$LINENO: result: yes" >&5
12852echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012853#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012854_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012855
12856else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012857 echo "$as_me: program exited with status $ac_status" >&5
12858echo "$as_me: failed program was:" >&5
12859sed 's/^/| /' conftest.$ac_ext >&5
12860
12861( exit $ac_status )
12862echo "$as_me:$LINENO: result: no" >&5
12863echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012864fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012865rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012866fi
12867
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012868echo "$as_me:$LINENO: checking for iconv_open()" >&5
12869echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012870save_LIBS="$LIBS"
12871LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012872cat >conftest.$ac_ext <<_ACEOF
12873/* confdefs.h. */
12874_ACEOF
12875cat confdefs.h >>conftest.$ac_ext
12876cat >>conftest.$ac_ext <<_ACEOF
12877/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012878
12879#ifdef HAVE_ICONV_H
12880# include <iconv.h>
12881#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012882
12883int
12884main ()
12885{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012886iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012887 ;
12888 return 0;
12889}
12890_ACEOF
12891rm -f conftest.$ac_objext conftest$ac_exeext
12892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12893 (eval $ac_link) 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag"
12901 || test ! -s conftest.err'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest$ac_exeext'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12914echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012915#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012916_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012917
12918else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012919 echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922LIBS="$save_LIBS"
12923 cat >conftest.$ac_ext <<_ACEOF
12924/* confdefs.h. */
12925_ACEOF
12926cat confdefs.h >>conftest.$ac_ext
12927cat >>conftest.$ac_ext <<_ACEOF
12928/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012929
12930#ifdef HAVE_ICONV_H
12931# include <iconv.h>
12932#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012933
12934int
12935main ()
12936{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012937iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012938 ;
12939 return 0;
12940}
12941_ACEOF
12942rm -f conftest.$ac_objext conftest$ac_exeext
12943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12944 (eval $ac_link) 2>conftest.er1
12945 ac_status=$?
12946 grep -v '^ *+' conftest.er1 >conftest.err
12947 rm -f conftest.er1
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -z "$ac_c_werror_flag"
12952 || test ! -s conftest.err'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; } &&
12958 { ac_try='test -s conftest$ac_exeext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 echo "$as_me:$LINENO: result: yes" >&5
12965echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012966#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012967_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012968
12969else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012970 echo "$as_me: failed program was:" >&5
12971sed 's/^/| /' conftest.$ac_ext >&5
12972
12973echo "$as_me:$LINENO: result: no" >&5
12974echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012975fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012976rm -f conftest.err conftest.$ac_objext \
12977 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012978fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012979rm -f conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012981
12982
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012983echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12984echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12985cat >conftest.$ac_ext <<_ACEOF
12986/* confdefs.h. */
12987_ACEOF
12988cat confdefs.h >>conftest.$ac_ext
12989cat >>conftest.$ac_ext <<_ACEOF
12990/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012991
12992#ifdef HAVE_LANGINFO_H
12993# include <langinfo.h>
12994#endif
12995
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012996int
12997main ()
12998{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012999char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013000 ;
13001 return 0;
13002}
13003_ACEOF
13004rm -f conftest.$ac_objext conftest$ac_exeext
13005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13006 (eval $ac_link) 2>conftest.er1
13007 ac_status=$?
13008 grep -v '^ *+' conftest.er1 >conftest.err
13009 rm -f conftest.er1
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -z "$ac_c_werror_flag"
13014 || test ! -s conftest.err'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest$ac_exeext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 echo "$as_me:$LINENO: result: yes" >&5
13027echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013028#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013029_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013030
13031else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013032 echo "$as_me: failed program was:" >&5
13033sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013034
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013035echo "$as_me:$LINENO: result: no" >&5
13036echo "${ECHO_T}no" >&6
13037fi
13038rm -f conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040
13041echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13042echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013043# Check whether --enable-acl or --disable-acl was given.
13044if test "${enable_acl+set}" = set; then
13045 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013046
Bram Moolenaar071d4272004-06-13 20:20:40 +000013047else
13048 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013049fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013050if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013051echo "$as_me:$LINENO: result: no" >&5
13052echo "${ECHO_T}no" >&6
13053echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13054echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13055if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013057else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013058 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013059LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013060cat >conftest.$ac_ext <<_ACEOF
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066
Bram Moolenaar071d4272004-06-13 20:20:40 +000013067/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013068#ifdef __cplusplus
13069extern "C"
13070#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013071/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013072 builtin and then its argument prototype would still apply. */
13073char acl_get_file ();
13074int
13075main ()
13076{
13077acl_get_file ();
13078 ;
13079 return 0;
13080}
13081_ACEOF
13082rm -f conftest.$ac_objext conftest$ac_exeext
13083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13084 (eval $ac_link) 2>conftest.er1
13085 ac_status=$?
13086 grep -v '^ *+' conftest.er1 >conftest.err
13087 rm -f conftest.er1
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -z "$ac_c_werror_flag"
13092 || test ! -s conftest.err'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; } &&
13098 { ac_try='test -s conftest$ac_exeext'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }; then
13104 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013105else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013106 echo "$as_me: failed program was:" >&5
13107sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013108
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013109ac_cv_lib_posix1e_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013110fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013111rm -f conftest.err conftest.$ac_objext \
13112 conftest$ac_exeext conftest.$ac_ext
13113LIBS=$ac_check_lib_save_LIBS
13114fi
13115echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13116echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13117if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013118 LIBS="$LIBS -lposix1e"
13119else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013120 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13121echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13122if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013124else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013125 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013126LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013127cat >conftest.$ac_ext <<_ACEOF
13128/* confdefs.h. */
13129_ACEOF
13130cat confdefs.h >>conftest.$ac_ext
13131cat >>conftest.$ac_ext <<_ACEOF
13132/* end confdefs.h. */
13133
Bram Moolenaar071d4272004-06-13 20:20:40 +000013134/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013135#ifdef __cplusplus
13136extern "C"
13137#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013138/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013139 builtin and then its argument prototype would still apply. */
13140char acl_get_file ();
13141int
13142main ()
13143{
13144acl_get_file ();
13145 ;
13146 return 0;
13147}
13148_ACEOF
13149rm -f conftest.$ac_objext conftest$ac_exeext
13150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13151 (eval $ac_link) 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_c_werror_flag"
13159 || test ! -s conftest.err'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try='test -s conftest$ac_exeext'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; }; then
13171 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013172else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013173 echo "$as_me: failed program was:" >&5
13174sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013175
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013176ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013177fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013178rm -f conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13180LIBS=$ac_check_lib_save_LIBS
13181fi
13182echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13183echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13184if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013185 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013186 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13187echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13188if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013190else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013191 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013192LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013193cat >conftest.$ac_ext <<_ACEOF
13194/* confdefs.h. */
13195_ACEOF
13196cat confdefs.h >>conftest.$ac_ext
13197cat >>conftest.$ac_ext <<_ACEOF
13198/* end confdefs.h. */
13199
Bram Moolenaar071d4272004-06-13 20:20:40 +000013200/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013201#ifdef __cplusplus
13202extern "C"
13203#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013204/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013205 builtin and then its argument prototype would still apply. */
13206char fgetxattr ();
13207int
13208main ()
13209{
13210fgetxattr ();
13211 ;
13212 return 0;
13213}
13214_ACEOF
13215rm -f conftest.$ac_objext conftest$ac_exeext
13216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13217 (eval $ac_link) 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -z "$ac_c_werror_flag"
13225 || test ! -s conftest.err'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest$ac_exeext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13237 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013238else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013239 echo "$as_me: failed program was:" >&5
13240sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013241
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013242ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013243fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013244rm -f conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13246LIBS=$ac_check_lib_save_LIBS
13247fi
13248echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13249echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13250if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013251 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013252fi
13253
Bram Moolenaar071d4272004-06-13 20:20:40 +000013254fi
13255
13256fi
13257
13258
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013259echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13260echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13261cat >conftest.$ac_ext <<_ACEOF
13262/* confdefs.h. */
13263_ACEOF
13264cat confdefs.h >>conftest.$ac_ext
13265cat >>conftest.$ac_ext <<_ACEOF
13266/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013267
13268#include <sys/types.h>
13269#ifdef HAVE_SYS_ACL_H
13270# include <sys/acl.h>
13271#endif
13272acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013273int
13274main ()
13275{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013276acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13277 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13278 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013279 ;
13280 return 0;
13281}
13282_ACEOF
13283rm -f conftest.$ac_objext conftest$ac_exeext
13284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13285 (eval $ac_link) 2>conftest.er1
13286 ac_status=$?
13287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_c_werror_flag"
13293 || test ! -s conftest.err'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest$ac_exeext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 echo "$as_me:$LINENO: result: yes" >&5
13306echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013307#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013308_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013309
13310else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013311 echo "$as_me: failed program was:" >&5
13312sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013313
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013314echo "$as_me:$LINENO: result: no" >&5
13315echo "${ECHO_T}no" >&6
13316fi
13317rm -f conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13319
13320echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13321echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13322cat >conftest.$ac_ext <<_ACEOF
13323/* confdefs.h. */
13324_ACEOF
13325cat confdefs.h >>conftest.$ac_ext
13326cat >>conftest.$ac_ext <<_ACEOF
13327/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013328
13329#ifdef HAVE_SYS_ACL_H
13330# include <sys/acl.h>
13331#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013332int
13333main ()
13334{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013335acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013336
13337 ;
13338 return 0;
13339}
13340_ACEOF
13341rm -f conftest.$ac_objext conftest$ac_exeext
13342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13343 (eval $ac_link) 2>conftest.er1
13344 ac_status=$?
13345 grep -v '^ *+' conftest.er1 >conftest.err
13346 rm -f conftest.er1
13347 cat conftest.err >&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
13350 { ac_try='test -z "$ac_c_werror_flag"
13351 || test ! -s conftest.err'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } &&
13357 { ac_try='test -s conftest$ac_exeext'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13363 echo "$as_me:$LINENO: result: yes" >&5
13364echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013365#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013366_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013367
13368else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013369 echo "$as_me: failed program was:" >&5
13370sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013371
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013372echo "$as_me:$LINENO: result: no" >&5
13373echo "${ECHO_T}no" >&6
13374fi
13375rm -f conftest.err conftest.$ac_objext \
13376 conftest$ac_exeext conftest.$ac_ext
13377
13378echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13379echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13380cat >conftest.$ac_ext <<_ACEOF
13381/* confdefs.h. */
13382_ACEOF
13383cat confdefs.h >>conftest.$ac_ext
13384cat >>conftest.$ac_ext <<_ACEOF
13385/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013386
13387#ifdef HAVE_SYS_ACL_H
13388# include <sys/acl.h>
13389#endif
13390#ifdef HAVE_SYS_ACCESS_H
13391# include <sys/access.h>
13392#endif
13393#define _ALL_SOURCE
13394
13395#include <sys/stat.h>
13396
13397int aclsize;
13398struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013399int
13400main ()
13401{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013402aclsize = sizeof(struct acl);
13403 aclent = (void *)malloc(aclsize);
13404 statacl("foo", STX_NORMAL, aclent, aclsize);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013405
13406 ;
13407 return 0;
13408}
13409_ACEOF
13410rm -f conftest.$ac_objext conftest$ac_exeext
13411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13412 (eval $ac_link) 2>conftest.er1
13413 ac_status=$?
13414 grep -v '^ *+' conftest.er1 >conftest.err
13415 rm -f conftest.er1
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try='test -z "$ac_c_werror_flag"
13420 || test ! -s conftest.err'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest$ac_exeext'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 echo "$as_me:$LINENO: result: yes" >&5
13433echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013434#define HAVE_AIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013435_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013436
13437else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013438 echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
13441echo "$as_me:$LINENO: result: no" >&5
13442echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013443fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013444rm -f conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013446else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013447 echo "$as_me:$LINENO: result: yes" >&5
13448echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013449fi
13450
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013451echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13452echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013453# Check whether --enable-gpm or --disable-gpm was given.
13454if test "${enable_gpm+set}" = set; then
13455 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013456
Bram Moolenaar071d4272004-06-13 20:20:40 +000013457else
13458 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013459fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013460
13461if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013462 echo "$as_me:$LINENO: result: no" >&5
13463echo "${ECHO_T}no" >&6
13464 echo "$as_me:$LINENO: checking for gpm" >&5
13465echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13466if test "${vi_cv_have_gpm+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013468else
13469 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013470 cat >conftest.$ac_ext <<_ACEOF
13471/* confdefs.h. */
13472_ACEOF
13473cat confdefs.h >>conftest.$ac_ext
13474cat >>conftest.$ac_ext <<_ACEOF
13475/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013476#include <gpm.h>
13477 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013478int
13479main ()
13480{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013481Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013482 ;
13483 return 0;
13484}
13485_ACEOF
13486rm -f conftest.$ac_objext conftest$ac_exeext
13487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13488 (eval $ac_link) 2>conftest.er1
13489 ac_status=$?
13490 grep -v '^ *+' conftest.er1 >conftest.err
13491 rm -f conftest.er1
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } &&
13495 { ac_try='test -z "$ac_c_werror_flag"
13496 || test ! -s conftest.err'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
13502 { ac_try='test -s conftest$ac_exeext'
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013508 vi_cv_have_gpm=yes
13509else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013510 echo "$as_me: failed program was:" >&5
13511sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013512
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013513vi_cv_have_gpm=no
13514fi
13515rm -f conftest.err conftest.$ac_objext \
13516 conftest$ac_exeext conftest.$ac_ext
13517 LIBS="$olibs"
13518
13519fi
13520echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13521echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013522 if test $vi_cv_have_gpm = yes; then
13523 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013524 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013525#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013526_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013527
13528 fi
13529else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013530 echo "$as_me:$LINENO: result: yes" >&5
13531echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013532fi
13533
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013534echo "$as_me:$LINENO: checking for rename" >&5
13535echo $ECHO_N "checking for rename... $ECHO_C" >&6
13536cat >conftest.$ac_ext <<_ACEOF
13537/* confdefs.h. */
13538_ACEOF
13539cat confdefs.h >>conftest.$ac_ext
13540cat >>conftest.$ac_ext <<_ACEOF
13541/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013542#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013543int
13544main ()
13545{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013546rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013547 ;
13548 return 0;
13549}
13550_ACEOF
13551rm -f conftest.$ac_objext conftest$ac_exeext
13552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_c_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 echo "$as_me:$LINENO: result: yes" >&5
13574echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013575#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013576_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013577
13578else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013579 echo "$as_me: failed program was:" >&5
13580sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013581
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013582echo "$as_me:$LINENO: result: no" >&5
13583echo "${ECHO_T}no" >&6
13584fi
13585rm -f conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13587
13588echo "$as_me:$LINENO: checking for sysctl" >&5
13589echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13590cat >conftest.$ac_ext <<_ACEOF
13591/* confdefs.h. */
13592_ACEOF
13593cat confdefs.h >>conftest.$ac_ext
13594cat >>conftest.$ac_ext <<_ACEOF
13595/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013596#include <sys/types.h>
13597#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013598int
13599main ()
13600{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013601 int mib[2], r;
13602 size_t len;
13603
13604 mib[0] = CTL_HW;
13605 mib[1] = HW_USERMEM;
13606 len = sizeof(r);
13607 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013608
13609 ;
13610 return 0;
13611}
13612_ACEOF
13613rm -f conftest.$ac_objext
13614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13615 (eval $ac_compile) 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag"
13623 || test ! -s conftest.err'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest.$ac_objext'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 echo "$as_me:$LINENO: result: yes" >&5
13636echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013637#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013638_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013639
13640else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013641 echo "$as_me: failed program was:" >&5
13642sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013643
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013644echo "$as_me:$LINENO: result: not usable" >&5
13645echo "${ECHO_T}not usable" >&6
13646fi
13647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13648
13649echo "$as_me:$LINENO: checking for sysinfo" >&5
13650echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13651cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013657#include <sys/types.h>
13658#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013659int
13660main ()
13661{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013662 struct sysinfo sinfo;
13663 int t;
13664
13665 (void)sysinfo(&sinfo);
13666 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013667
13668 ;
13669 return 0;
13670}
13671_ACEOF
13672rm -f conftest.$ac_objext
13673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13674 (eval $ac_compile) 2>conftest.er1
13675 ac_status=$?
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } &&
13681 { ac_try='test -z "$ac_c_werror_flag"
13682 || test ! -s conftest.err'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
13688 { ac_try='test -s conftest.$ac_objext'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
13694 echo "$as_me:$LINENO: result: yes" >&5
13695echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013696#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013697_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013698
13699else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013700 echo "$as_me: failed program was:" >&5
13701sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013702
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013703echo "$as_me:$LINENO: result: not usable" >&5
13704echo "${ECHO_T}not usable" >&6
13705fi
13706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13707
Bram Moolenaar914572a2007-05-01 11:37:47 +000013708echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
13709echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6
13710cat >conftest.$ac_ext <<_ACEOF
13711/* confdefs.h. */
13712_ACEOF
13713cat confdefs.h >>conftest.$ac_ext
13714cat >>conftest.$ac_ext <<_ACEOF
13715/* end confdefs.h. */
13716#include <sys/types.h>
13717#include <sys/sysinfo.h>
13718int
13719main ()
13720{
13721 struct sysinfo sinfo;
13722 sinfo.mem_unit = 1;
13723
13724 ;
13725 return 0;
13726}
13727_ACEOF
13728rm -f conftest.$ac_objext
13729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13730 (eval $ac_compile) 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -z "$ac_c_werror_flag"
13738 || test ! -s conftest.err'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest.$ac_objext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 echo "$as_me:$LINENO: result: yes" >&5
13751echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13752#define HAVE_SYSINFO_MEM_UNIT 1
13753_ACEOF
13754
13755else
13756 echo "$as_me: failed program was:" >&5
13757sed 's/^/| /' conftest.$ac_ext >&5
13758
13759echo "$as_me:$LINENO: result: no" >&5
13760echo "${ECHO_T}no" >&6
13761fi
13762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13763
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013764echo "$as_me:$LINENO: checking for sysconf" >&5
13765echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13766cat >conftest.$ac_ext <<_ACEOF
13767/* confdefs.h. */
13768_ACEOF
13769cat confdefs.h >>conftest.$ac_ext
13770cat >>conftest.$ac_ext <<_ACEOF
13771/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013772#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013773int
13774main ()
13775{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013776 (void)sysconf(_SC_PAGESIZE);
13777 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013778
13779 ;
13780 return 0;
13781}
13782_ACEOF
13783rm -f conftest.$ac_objext
13784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13785 (eval $ac_compile) 2>conftest.er1
13786 ac_status=$?
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
13792 { ac_try='test -z "$ac_c_werror_flag"
13793 || test ! -s conftest.err'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; } &&
13799 { ac_try='test -s conftest.$ac_objext'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 echo "$as_me:$LINENO: result: yes" >&5
13806echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013807#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013808_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013809
13810else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013811 echo "$as_me: failed program was:" >&5
13812sed 's/^/| /' conftest.$ac_ext >&5
13813
13814echo "$as_me:$LINENO: result: not usable" >&5
13815echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013816fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013818
13819
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013820echo "$as_me:$LINENO: checking size of int" >&5
13821echo $ECHO_N "checking size of int... $ECHO_C" >&6
13822if test "${ac_cv_sizeof_int+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013824else
13825 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013826 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13827echo "$as_me: error: failed to compile test program" >&2;}
13828 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013829else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013830 cat >conftest.$ac_ext <<_ACEOF
13831/* confdefs.h. */
13832_ACEOF
13833cat confdefs.h >>conftest.$ac_ext
13834cat >>conftest.$ac_ext <<_ACEOF
13835/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013836#include <stdio.h>
13837 main()
13838 {
13839 FILE *f=fopen("conftestval", "w");
13840 if (!f) exit(1);
13841 fprintf(f, "%d\n", (int)sizeof(int));
13842 exit(0);
13843 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013844_ACEOF
13845rm -f conftest$ac_exeext
13846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13847 (eval $ac_link) 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013856 ac_cv_sizeof_int=`cat conftestval`
13857else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013858 echo "$as_me: program exited with status $ac_status" >&5
13859echo "$as_me: failed program was:" >&5
13860sed 's/^/| /' conftest.$ac_ext >&5
13861
13862( exit $ac_status )
13863ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000013864fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013865rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13866fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013867fi
13868
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013869echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13870echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13871cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013872#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013873_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013874
13875
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013876echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13877echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013878bcopy_test_prog='
13879main() {
13880 char buf[10];
13881 strcpy(buf, "abcdefghi");
13882 mch_memmove(buf, buf + 2, 3);
13883 if (strncmp(buf, "ababcf", 6))
13884 exit(1);
13885 strcpy(buf, "abcdefghi");
13886 mch_memmove(buf + 2, buf, 3);
13887 if (strncmp(buf, "cdedef", 6))
13888 exit(1);
13889 exit(0); /* libc version works properly. */
13890}'
13891
13892
13893if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013894 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13895echo "$as_me: error: failed to compile test program" >&2;}
13896 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013897else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013898 cat >conftest.$ac_ext <<_ACEOF
13899/* confdefs.h. */
13900_ACEOF
13901cat confdefs.h >>conftest.$ac_ext
13902cat >>conftest.$ac_ext <<_ACEOF
13903/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013904#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013905_ACEOF
13906rm -f conftest$ac_exeext
13907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13908 (eval $ac_link) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013918#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013919_ACEOF
13920 echo "$as_me:$LINENO: result: memmove does" >&5
13921echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013922else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013923 echo "$as_me: program exited with status $ac_status" >&5
13924echo "$as_me: failed program was:" >&5
13925sed 's/^/| /' conftest.$ac_ext >&5
13926
13927( exit $ac_status )
13928if test "$cross_compiling" = yes; then
13929 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13930echo "$as_me: error: failed to compile test program" >&2;}
13931 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013932else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013933 cat >conftest.$ac_ext <<_ACEOF
13934/* confdefs.h. */
13935_ACEOF
13936cat confdefs.h >>conftest.$ac_ext
13937cat >>conftest.$ac_ext <<_ACEOF
13938/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013939#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013940_ACEOF
13941rm -f conftest$ac_exeext
13942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13943 (eval $ac_link) 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013953#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013954_ACEOF
13955 echo "$as_me:$LINENO: result: bcopy does" >&5
13956echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013957else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013958 echo "$as_me: program exited with status $ac_status" >&5
13959echo "$as_me: failed program was:" >&5
13960sed 's/^/| /' conftest.$ac_ext >&5
13961
13962( exit $ac_status )
13963if test "$cross_compiling" = yes; then
13964 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13965echo "$as_me: error: failed to compile test program" >&2;}
13966 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013967else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013968 cat >conftest.$ac_ext <<_ACEOF
13969/* confdefs.h. */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
13973/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013974#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013975_ACEOF
13976rm -f conftest$ac_exeext
13977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13978 (eval $ac_link) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
13987 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013988#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013989_ACEOF
13990 echo "$as_me:$LINENO: result: memcpy does" >&5
13991echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013992else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013993 echo "$as_me: program exited with status $ac_status" >&5
13994echo "$as_me: failed program was:" >&5
13995sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013996
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013997( exit $ac_status )
13998echo "$as_me:$LINENO: result: no" >&5
13999echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014000fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014002fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014003fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014004rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014005fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014006fi
14007rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14008fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014009
14010
14011if test "$enable_multibyte" = "yes"; then
14012 cflags_save=$CFLAGS
14013 ldflags_save=$LDFLAGS
14014 if test -n "$x_includes" ; then
14015 CFLAGS="$CFLAGS -I$x_includes"
14016 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014017 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
14018echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14020/* confdefs.h. */
14021_ACEOF
14022cat confdefs.h >>conftest.$ac_ext
14023cat >>conftest.$ac_ext <<_ACEOF
14024/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014025#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014026int
14027main ()
14028{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014029
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014030 ;
14031 return 0;
14032}
14033_ACEOF
14034rm -f conftest.$ac_objext
14035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14036 (eval $ac_compile) 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -z "$ac_c_werror_flag"
14044 || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest.$ac_objext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 cat >conftest.$ac_ext <<_ACEOF
14057/* confdefs.h. */
14058_ACEOF
14059cat confdefs.h >>conftest.$ac_ext
14060cat >>conftest.$ac_ext <<_ACEOF
14061/* end confdefs.h. */
14062
Bram Moolenaar071d4272004-06-13 20:20:40 +000014063/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014064#ifdef __cplusplus
14065extern "C"
14066#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014067/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014068 builtin and then its argument prototype would still apply. */
14069char _Xsetlocale ();
14070int
14071main ()
14072{
14073_Xsetlocale ();
14074 ;
14075 return 0;
14076}
14077_ACEOF
14078rm -f conftest.$ac_objext conftest$ac_exeext
14079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14080 (eval $ac_link) 2>conftest.er1
14081 ac_status=$?
14082 grep -v '^ *+' conftest.er1 >conftest.err
14083 rm -f conftest.er1
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -z "$ac_c_werror_flag"
14088 || test ! -s conftest.err'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; } &&
14094 { ac_try='test -s conftest$ac_exeext'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 echo "$as_me:$LINENO: result: yes" >&5
14101echo "${ECHO_T}yes" >&6
14102 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014103#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014104_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014105
14106else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014107 echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
14109
14110echo "$as_me:$LINENO: result: no" >&5
14111echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014112fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014113rm -f conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014115else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014116 echo "$as_me: failed program was:" >&5
14117sed 's/^/| /' conftest.$ac_ext >&5
14118
14119echo "$as_me:$LINENO: result: no" >&5
14120echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014121fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014123 fi
14124 CFLAGS=$cflags_save
14125 LDFLAGS=$ldflags_save
14126fi
14127
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014128echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14129echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14130if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014132else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014133 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014134LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014135cat >conftest.$ac_ext <<_ACEOF
14136/* confdefs.h. */
14137_ACEOF
14138cat confdefs.h >>conftest.$ac_ext
14139cat >>conftest.$ac_ext <<_ACEOF
14140/* end confdefs.h. */
14141
Bram Moolenaar071d4272004-06-13 20:20:40 +000014142/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014143#ifdef __cplusplus
14144extern "C"
14145#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014146/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014147 builtin and then its argument prototype would still apply. */
14148char _xpg4_setrunelocale ();
14149int
14150main ()
14151{
14152_xpg4_setrunelocale ();
14153 ;
14154 return 0;
14155}
14156_ACEOF
14157rm -f conftest.$ac_objext conftest$ac_exeext
14158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159 (eval $ac_link) 2>conftest.er1
14160 ac_status=$?
14161 grep -v '^ *+' conftest.er1 >conftest.err
14162 rm -f conftest.er1
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag"
14167 || test ! -s conftest.err'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try='test -s conftest$ac_exeext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014180else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014181 echo "$as_me: failed program was:" >&5
14182sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014183
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014184ac_cv_lib_xpg4__xpg4_setrunelocale=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014185fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014186rm -f conftest.err conftest.$ac_objext \
14187 conftest$ac_exeext conftest.$ac_ext
14188LIBS=$ac_check_lib_save_LIBS
14189fi
14190echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14191echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14192if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014193 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014194fi
14195
14196
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014197echo "$as_me:$LINENO: checking how to create tags" >&5
14198echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014199test -f tags && mv tags tags.save
14200if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
Bram Moolenaarb21e5842006-04-16 18:30:08 +000014201 TAGPRG="ctags -I INIT+ --fields=+S"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014202else
14203 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14204 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14205 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14206 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14207 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14208 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14209 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14210fi
14211test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014212echo "$as_me:$LINENO: result: $TAGPRG" >&5
14213echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014214
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014215echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14216echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014217MANDEF="man"
14218(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014219echo "$as_me:$LINENO: result: $MANDEF" >&5
14220echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014221if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014222 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014223#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014224_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014225
14226fi
14227
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014228echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14229echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014230# Check whether --enable-nls or --disable-nls was given.
14231if test "${enable_nls+set}" = set; then
14232 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014233
Bram Moolenaar071d4272004-06-13 20:20:40 +000014234else
14235 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014236fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014237
14238if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014239 echo "$as_me:$LINENO: result: no" >&5
14240echo "${ECHO_T}no" >&6
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000014241
14242 INSTALL_LANGS=install-languages
14243
14244 INSTALL_TOOL_LANGS=install-tool-languages
14245
14246
Bram Moolenaar071d4272004-06-13 20:20:40 +000014247 # Extract the first word of "msgfmt", so it can be a program name with args.
14248set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014249echo "$as_me:$LINENO: checking for $ac_word" >&5
14250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14251if test "${ac_cv_prog_MSGFMT+set}" = set; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014253else
14254 if test -n "$MSGFMT"; then
14255 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14256else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258for as_dir in $PATH
14259do
14260 IFS=$as_save_IFS
14261 test -z "$as_dir" && as_dir=.
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14264 ac_cv_prog_MSGFMT="msgfmt"
14265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 break 2
14267 fi
14268done
14269done
14270
Bram Moolenaar071d4272004-06-13 20:20:40 +000014271fi
14272fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014273MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000014274if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014275 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14276echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014277else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014278 echo "$as_me:$LINENO: result: no" >&5
14279echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014280fi
14281
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014282 echo "$as_me:$LINENO: checking for NLS" >&5
14283echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014284 if test -f po/Makefile; then
14285 have_gettext="no"
14286 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014287 cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014293#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014294int
14295main ()
14296{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014297gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014298 ;
14299 return 0;
14300}
14301_ACEOF
14302rm -f conftest.$ac_objext conftest$ac_exeext
14303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14304 (eval $ac_link) 2>conftest.er1
14305 ac_status=$?
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try='test -z "$ac_c_werror_flag"
14312 || test ! -s conftest.err'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try='test -s conftest$ac_exeext'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 echo "$as_me:$LINENO: result: gettext() works" >&5
14325echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014326else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014327 echo "$as_me: failed program was:" >&5
14328sed 's/^/| /' conftest.$ac_ext >&5
14329
14330olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014331 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014332 cat >conftest.$ac_ext <<_ACEOF
14333/* confdefs.h. */
14334_ACEOF
14335cat confdefs.h >>conftest.$ac_ext
14336cat >>conftest.$ac_ext <<_ACEOF
14337/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014338#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014339int
14340main ()
14341{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014342gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014343 ;
14344 return 0;
14345}
14346_ACEOF
14347rm -f conftest.$ac_objext conftest$ac_exeext
14348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14349 (eval $ac_link) 2>conftest.er1
14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -z "$ac_c_werror_flag"
14357 || test ! -s conftest.err'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest$ac_exeext'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14370echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014371else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014372 echo "$as_me: failed program was:" >&5
14373sed 's/^/| /' conftest.$ac_ext >&5
14374
14375echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14376echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014377 LIBS=$olibs
14378fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014379rm -f conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014381fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014382rm -f conftest.err conftest.$ac_objext \
14383 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014384 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014385 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14386echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014387 fi
14388 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014389 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014390#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014391_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014392
14393 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014394
14395
14396for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000014397do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14399echo "$as_me:$LINENO: checking for $ac_func" >&5
14400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14401if eval "test \"\${$as_ac_var+set}\" = set"; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014403else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014404 cat >conftest.$ac_ext <<_ACEOF
14405/* confdefs.h. */
14406_ACEOF
14407cat confdefs.h >>conftest.$ac_ext
14408cat >>conftest.$ac_ext <<_ACEOF
14409/* end confdefs.h. */
14410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14412#define $ac_func innocuous_$ac_func
14413
Bram Moolenaar071d4272004-06-13 20:20:40 +000014414/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014415 which can conflict with char $ac_func (); below.
14416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14417 <limits.h> exists even on freestanding compilers. */
14418
14419#ifdef __STDC__
14420# include <limits.h>
14421#else
14422# include <assert.h>
14423#endif
14424
14425#undef $ac_func
14426
Bram Moolenaar071d4272004-06-13 20:20:40 +000014427/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014428#ifdef __cplusplus
14429extern "C"
14430{
14431#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014432/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014433 builtin and then its argument prototype would still apply. */
14434char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000014435/* The GNU C library defines this for functions which it implements
14436 to always fail with ENOSYS. Some functions are actually named
14437 something starting with __ and the normal name is an alias. */
14438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14439choke me
14440#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014441char (*f) () = $ac_func;
14442#endif
14443#ifdef __cplusplus
14444}
Bram Moolenaar071d4272004-06-13 20:20:40 +000014445#endif
14446
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014447int
14448main ()
14449{
14450return f != $ac_func;
14451 ;
14452 return 0;
14453}
14454_ACEOF
14455rm -f conftest.$ac_objext conftest$ac_exeext
14456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14457 (eval $ac_link) 2>conftest.er1
14458 ac_status=$?
14459 grep -v '^ *+' conftest.er1 >conftest.err
14460 rm -f conftest.er1
14461 cat conftest.err >&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } &&
14464 { ac_try='test -z "$ac_c_werror_flag"
14465 || test ! -s conftest.err'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; } &&
14471 { ac_try='test -s conftest$ac_exeext'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14474 ac_status=$?
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; }; then
14477 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014478else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014479 echo "$as_me: failed program was:" >&5
14480sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014481
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014482eval "$as_ac_var=no"
14483fi
14484rm -f conftest.err conftest.$ac_objext \
14485 conftest$ac_exeext conftest.$ac_ext
14486fi
14487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14489if test `eval echo '${'$as_ac_var'}'` = yes; then
14490 cat >>confdefs.h <<_ACEOF
14491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14492_ACEOF
14493
Bram Moolenaar071d4272004-06-13 20:20:40 +000014494fi
14495done
14496
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014497 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14498echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14499 cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014505#include <libintl.h>
14506 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014507int
14508main ()
14509{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014510++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014511 ;
14512 return 0;
14513}
14514_ACEOF
14515rm -f conftest.$ac_objext conftest$ac_exeext
14516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14517 (eval $ac_link) 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest$ac_exeext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14537 echo "$as_me:$LINENO: result: yes" >&5
14538echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014539#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014540_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014541
14542else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014543 echo "$as_me: failed program was:" >&5
14544sed 's/^/| /' conftest.$ac_ext >&5
14545
14546echo "$as_me:$LINENO: result: no" >&5
14547echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014548fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014549rm -f conftest.err conftest.$ac_objext \
14550 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014551 fi
14552 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014553 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14554echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014555 fi
14556else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014557 echo "$as_me:$LINENO: result: yes" >&5
14558echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014559fi
14560
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014561if test "${ac_cv_header_dlfcn_h+set}" = set; then
14562 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14563echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14564if test "${ac_cv_header_dlfcn_h+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566fi
14567echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14568echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014569else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014570 # Is the header compilable?
14571echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14572echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14573cat >conftest.$ac_ext <<_ACEOF
14574/* confdefs.h. */
14575_ACEOF
14576cat confdefs.h >>conftest.$ac_ext
14577cat >>conftest.$ac_ext <<_ACEOF
14578/* end confdefs.h. */
14579$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014580#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014581_ACEOF
14582rm -f conftest.$ac_objext
14583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14584 (eval $ac_compile) 2>conftest.er1
14585 ac_status=$?
14586 grep -v '^ *+' conftest.er1 >conftest.err
14587 rm -f conftest.er1
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -z "$ac_c_werror_flag"
14592 || test ! -s conftest.err'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } &&
14598 { ac_try='test -s conftest.$ac_objext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014605else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014606 echo "$as_me: failed program was:" >&5
14607sed 's/^/| /' conftest.$ac_ext >&5
14608
14609ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014610fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14613echo "${ECHO_T}$ac_header_compiler" >&6
14614
14615# Is the header present?
14616echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14617echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14618cat >conftest.$ac_ext <<_ACEOF
14619/* confdefs.h. */
14620_ACEOF
14621cat confdefs.h >>conftest.$ac_ext
14622cat >>conftest.$ac_ext <<_ACEOF
14623/* end confdefs.h. */
14624#include <dlfcn.h>
14625_ACEOF
14626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14628 ac_status=$?
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } >/dev/null; then
14634 if test -s conftest.err; then
14635 ac_cpp_err=$ac_c_preproc_warn_flag
14636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14637 else
14638 ac_cpp_err=
14639 fi
14640else
14641 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014642fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014643if test -z "$ac_cpp_err"; then
14644 ac_header_preproc=yes
14645else
14646 echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 ac_header_preproc=no
14650fi
14651rm -f conftest.err conftest.$ac_ext
14652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14653echo "${ECHO_T}$ac_header_preproc" >&6
14654
14655# So? What about this header?
14656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14657 yes:no: )
14658 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14659echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14660 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14661echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14662 ac_header_preproc=yes
14663 ;;
14664 no:yes:* )
14665 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14666echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14668echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14670echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14671 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14672echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14674echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14676echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14677 (
14678 cat <<\_ASBOX
14679## ------------------------------------------ ##
14680## Report this to the AC_PACKAGE_NAME lists. ##
14681## ------------------------------------------ ##
14682_ASBOX
14683 ) |
14684 sed "s/^/$as_me: WARNING: /" >&2
14685 ;;
14686esac
14687echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14688echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14689if test "${ac_cv_header_dlfcn_h+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691else
14692 ac_cv_header_dlfcn_h=$ac_header_preproc
14693fi
14694echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14695echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14696
14697fi
14698if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014699 DLL=dlfcn.h
14700else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014701 if test "${ac_cv_header_dl_h+set}" = set; then
14702 echo "$as_me:$LINENO: checking for dl.h" >&5
14703echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14704if test "${ac_cv_header_dl_h+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14706fi
14707echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14708echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014709else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014710 # Is the header compilable?
14711echo "$as_me:$LINENO: checking dl.h usability" >&5
14712echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14713cat >conftest.$ac_ext <<_ACEOF
14714/* confdefs.h. */
14715_ACEOF
14716cat confdefs.h >>conftest.$ac_ext
14717cat >>conftest.$ac_ext <<_ACEOF
14718/* end confdefs.h. */
14719$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014720#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014721_ACEOF
14722rm -f conftest.$ac_objext
14723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14724 (eval $ac_compile) 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } &&
14731 { ac_try='test -z "$ac_c_werror_flag"
14732 || test ! -s conftest.err'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest.$ac_objext'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014745else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014746 echo "$as_me: failed program was:" >&5
14747sed 's/^/| /' conftest.$ac_ext >&5
14748
14749ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014750fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14753echo "${ECHO_T}$ac_header_compiler" >&6
14754
14755# Is the header present?
14756echo "$as_me:$LINENO: checking dl.h presence" >&5
14757echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14758cat >conftest.$ac_ext <<_ACEOF
14759/* confdefs.h. */
14760_ACEOF
14761cat confdefs.h >>conftest.$ac_ext
14762cat >>conftest.$ac_ext <<_ACEOF
14763/* end confdefs.h. */
14764#include <dl.h>
14765_ACEOF
14766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14768 ac_status=$?
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } >/dev/null; then
14774 if test -s conftest.err; then
14775 ac_cpp_err=$ac_c_preproc_warn_flag
14776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14777 else
14778 ac_cpp_err=
14779 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014780else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014781 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014782fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014783if test -z "$ac_cpp_err"; then
14784 ac_header_preproc=yes
14785else
14786 echo "$as_me: failed program was:" >&5
14787sed 's/^/| /' conftest.$ac_ext >&5
14788
14789 ac_header_preproc=no
14790fi
14791rm -f conftest.err conftest.$ac_ext
14792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14793echo "${ECHO_T}$ac_header_preproc" >&6
14794
14795# So? What about this header?
14796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14797 yes:no: )
14798 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14799echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14800 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14801echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14802 ac_header_preproc=yes
14803 ;;
14804 no:yes:* )
14805 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14806echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14808echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14810echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14812echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14814echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14815 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14816echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14817 (
14818 cat <<\_ASBOX
14819## ------------------------------------------ ##
14820## Report this to the AC_PACKAGE_NAME lists. ##
14821## ------------------------------------------ ##
14822_ASBOX
14823 ) |
14824 sed "s/^/$as_me: WARNING: /" >&2
14825 ;;
14826esac
14827echo "$as_me:$LINENO: checking for dl.h" >&5
14828echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14829if test "${ac_cv_header_dl_h+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14831else
14832 ac_cv_header_dl_h=$ac_header_preproc
14833fi
14834echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14835echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014836
14837fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014838if test $ac_cv_header_dl_h = yes; then
14839 DLL=dl.h
14840fi
14841
14842
14843fi
14844
Bram Moolenaar071d4272004-06-13 20:20:40 +000014845
14846if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014847
14848cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014849#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014850_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014851
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014852 echo "$as_me:$LINENO: checking for dlopen()" >&5
14853echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14854 cat >conftest.$ac_ext <<_ACEOF
14855/* confdefs.h. */
14856_ACEOF
14857cat confdefs.h >>conftest.$ac_ext
14858cat >>conftest.$ac_ext <<_ACEOF
14859/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014860
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014861int
14862main ()
14863{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014864
14865 extern void* dlopen();
14866 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014867
14868 ;
14869 return 0;
14870}
14871_ACEOF
14872rm -f conftest.$ac_objext conftest$ac_exeext
14873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874 (eval $ac_link) 2>conftest.er1
14875 ac_status=$?
14876 grep -v '^ *+' conftest.er1 >conftest.err
14877 rm -f conftest.er1
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -z "$ac_c_werror_flag"
14882 || test ! -s conftest.err'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; } &&
14888 { ac_try='test -s conftest$ac_exeext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 echo "$as_me:$LINENO: result: yes" >&5
14895echo "${ECHO_T}yes" >&6;
14896
14897cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014898#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014899_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014900
14901else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014902 echo "$as_me: failed program was:" >&5
14903sed 's/^/| /' conftest.$ac_ext >&5
14904
14905echo "$as_me:$LINENO: result: no" >&5
14906echo "${ECHO_T}no" >&6;
14907 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14908echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014909 olibs=$LIBS
14910 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014911 cat >conftest.$ac_ext <<_ACEOF
14912/* confdefs.h. */
14913_ACEOF
14914cat confdefs.h >>conftest.$ac_ext
14915cat >>conftest.$ac_ext <<_ACEOF
14916/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014917
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014918int
14919main ()
14920{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014921
14922 extern void* dlopen();
14923 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014924
14925 ;
14926 return 0;
14927}
14928_ACEOF
14929rm -f conftest.$ac_objext conftest$ac_exeext
14930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14931 (eval $ac_link) 2>conftest.er1
14932 ac_status=$?
14933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } &&
14938 { ac_try='test -z "$ac_c_werror_flag"
14939 || test ! -s conftest.err'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; } &&
14945 { ac_try='test -s conftest$ac_exeext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 echo "$as_me:$LINENO: result: yes" >&5
14952echo "${ECHO_T}yes" >&6;
14953
14954cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014955#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014956_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014957
14958else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014959 echo "$as_me: failed program was:" >&5
14960sed 's/^/| /' conftest.$ac_ext >&5
14961
14962echo "$as_me:$LINENO: result: no" >&5
14963echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014964 LIBS=$olibs
14965fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014966rm -f conftest.err conftest.$ac_objext \
14967 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014968fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014969rm -f conftest.err conftest.$ac_objext \
14970 conftest$ac_exeext conftest.$ac_ext
14971 echo "$as_me:$LINENO: checking for dlsym()" >&5
14972echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14973 cat >conftest.$ac_ext <<_ACEOF
14974/* confdefs.h. */
14975_ACEOF
14976cat confdefs.h >>conftest.$ac_ext
14977cat >>conftest.$ac_ext <<_ACEOF
14978/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014979
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014980int
14981main ()
14982{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014983
14984 extern void* dlsym();
14985 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014986
14987 ;
14988 return 0;
14989}
14990_ACEOF
14991rm -f conftest.$ac_objext conftest$ac_exeext
14992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14993 (eval $ac_link) 2>conftest.er1
14994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
15000 { ac_try='test -z "$ac_c_werror_flag"
15001 || test ! -s conftest.err'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest$ac_exeext'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }; then
15013 echo "$as_me:$LINENO: result: yes" >&5
15014echo "${ECHO_T}yes" >&6;
15015
15016cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015017#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015018_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015019
15020else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015021 echo "$as_me: failed program was:" >&5
15022sed 's/^/| /' conftest.$ac_ext >&5
15023
15024echo "$as_me:$LINENO: result: no" >&5
15025echo "${ECHO_T}no" >&6;
15026 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
15027echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015028 olibs=$LIBS
15029 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015030 cat >conftest.$ac_ext <<_ACEOF
15031/* confdefs.h. */
15032_ACEOF
15033cat confdefs.h >>conftest.$ac_ext
15034cat >>conftest.$ac_ext <<_ACEOF
15035/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015036
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015037int
15038main ()
15039{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015040
15041 extern void* dlsym();
15042 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015043
15044 ;
15045 return 0;
15046}
15047_ACEOF
15048rm -f conftest.$ac_objext conftest$ac_exeext
15049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15050 (eval $ac_link) 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_c_werror_flag"
15058 || test ! -s conftest.err'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest$ac_exeext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 echo "$as_me:$LINENO: result: yes" >&5
15071echo "${ECHO_T}yes" >&6;
15072
15073cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015074#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015075_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015076
15077else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015078 echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081echo "$as_me:$LINENO: result: no" >&5
15082echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015083 LIBS=$olibs
15084fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015085rm -f conftest.err conftest.$ac_objext \
15086 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015087fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015088rm -f conftest.err conftest.$ac_objext \
15089 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015090elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015091
15092cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015093#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015094_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015095
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015096 echo "$as_me:$LINENO: checking for shl_load()" >&5
15097echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15098 cat >conftest.$ac_ext <<_ACEOF
15099/* confdefs.h. */
15100_ACEOF
15101cat confdefs.h >>conftest.$ac_ext
15102cat >>conftest.$ac_ext <<_ACEOF
15103/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015104
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015105int
15106main ()
15107{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015108
15109 extern void* shl_load();
15110 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015111
15112 ;
15113 return 0;
15114}
15115_ACEOF
15116rm -f conftest.$ac_objext conftest$ac_exeext
15117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15118 (eval $ac_link) 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -z "$ac_c_werror_flag"
15126 || test ! -s conftest.err'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; } &&
15132 { ac_try='test -s conftest$ac_exeext'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 echo "$as_me:$LINENO: result: yes" >&5
15139echo "${ECHO_T}yes" >&6;
15140
15141cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015142#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015143_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015144
15145else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015146 echo "$as_me: failed program was:" >&5
15147sed 's/^/| /' conftest.$ac_ext >&5
15148
15149echo "$as_me:$LINENO: result: no" >&5
15150echo "${ECHO_T}no" >&6;
15151 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15152echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015153 olibs=$LIBS
15154 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015155 cat >conftest.$ac_ext <<_ACEOF
15156/* confdefs.h. */
15157_ACEOF
15158cat confdefs.h >>conftest.$ac_ext
15159cat >>conftest.$ac_ext <<_ACEOF
15160/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015161
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015162int
15163main ()
15164{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015165
15166 extern void* shl_load();
15167 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015168
15169 ;
15170 return 0;
15171}
15172_ACEOF
15173rm -f conftest.$ac_objext conftest$ac_exeext
15174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15175 (eval $ac_link) 2>conftest.er1
15176 ac_status=$?
15177 grep -v '^ *+' conftest.er1 >conftest.err
15178 rm -f conftest.er1
15179 cat conftest.err >&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
15182 { ac_try='test -z "$ac_c_werror_flag"
15183 || test ! -s conftest.err'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; } &&
15189 { ac_try='test -s conftest$ac_exeext'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 echo "$as_me:$LINENO: result: yes" >&5
15196echo "${ECHO_T}yes" >&6;
15197
15198cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015199#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015200_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015201
15202else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015203 echo "$as_me: failed program was:" >&5
15204sed 's/^/| /' conftest.$ac_ext >&5
15205
15206echo "$as_me:$LINENO: result: no" >&5
15207echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015208 LIBS=$olibs
15209fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015210rm -f conftest.err conftest.$ac_objext \
15211 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015212fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015213rm -f conftest.err conftest.$ac_objext \
15214 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015215fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015216
15217for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000015218do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15220if eval "test \"\${$as_ac_Header+set}\" = set"; then
15221 echo "$as_me:$LINENO: checking for $ac_header" >&5
15222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15223if eval "test \"\${$as_ac_Header+set}\" = set"; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015225fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015228else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015229 # Is the header compilable?
15230echo "$as_me:$LINENO: checking $ac_header usability" >&5
15231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15232cat >conftest.$ac_ext <<_ACEOF
15233/* confdefs.h. */
15234_ACEOF
15235cat confdefs.h >>conftest.$ac_ext
15236cat >>conftest.$ac_ext <<_ACEOF
15237/* end confdefs.h. */
15238$ac_includes_default
15239#include <$ac_header>
15240_ACEOF
15241rm -f conftest.$ac_objext
15242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15243 (eval $ac_compile) 2>conftest.er1
15244 ac_status=$?
15245 grep -v '^ *+' conftest.er1 >conftest.err
15246 rm -f conftest.er1
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } &&
15250 { ac_try='test -z "$ac_c_werror_flag"
15251 || test ! -s conftest.err'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest.$ac_objext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_header_compiler=yes
15264else
15265 echo "$as_me: failed program was:" >&5
15266sed 's/^/| /' conftest.$ac_ext >&5
15267
15268ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015269fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15272echo "${ECHO_T}$ac_header_compiler" >&6
15273
15274# Is the header present?
15275echo "$as_me:$LINENO: checking $ac_header presence" >&5
15276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15277cat >conftest.$ac_ext <<_ACEOF
15278/* confdefs.h. */
15279_ACEOF
15280cat confdefs.h >>conftest.$ac_ext
15281cat >>conftest.$ac_ext <<_ACEOF
15282/* end confdefs.h. */
15283#include <$ac_header>
15284_ACEOF
15285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } >/dev/null; then
15293 if test -s conftest.err; then
15294 ac_cpp_err=$ac_c_preproc_warn_flag
15295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15296 else
15297 ac_cpp_err=
15298 fi
15299else
15300 ac_cpp_err=yes
15301fi
15302if test -z "$ac_cpp_err"; then
15303 ac_header_preproc=yes
15304else
15305 echo "$as_me: failed program was:" >&5
15306sed 's/^/| /' conftest.$ac_ext >&5
15307
15308 ac_header_preproc=no
15309fi
15310rm -f conftest.err conftest.$ac_ext
15311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15312echo "${ECHO_T}$ac_header_preproc" >&6
15313
15314# So? What about this header?
15315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15316 yes:no: )
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15321 ac_header_preproc=yes
15322 ;;
15323 no:yes:* )
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15331echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15336 (
15337 cat <<\_ASBOX
15338## ------------------------------------------ ##
15339## Report this to the AC_PACKAGE_NAME lists. ##
15340## ------------------------------------------ ##
15341_ASBOX
15342 ) |
15343 sed "s/^/$as_me: WARNING: /" >&2
15344 ;;
15345esac
15346echo "$as_me:$LINENO: checking for $ac_header" >&5
15347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15348if eval "test \"\${$as_ac_Header+set}\" = set"; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
15351 eval "$as_ac_Header=\$ac_header_preproc"
15352fi
15353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15355
15356fi
15357if test `eval echo '${'$as_ac_Header'}'` = yes; then
15358 cat >>confdefs.h <<_ACEOF
15359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15360_ACEOF
15361
15362fi
15363
Bram Moolenaar071d4272004-06-13 20:20:40 +000015364done
15365
15366
15367if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15368 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15369 LIBS=`echo $LIBS | sed s/-ldl//`
15370 PERL_LIBS="$PERL_LIBS -ldl"
15371 fi
15372fi
15373
15374if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15375 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015376 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15377echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaarb90daee2006-10-17 09:49:09 +000015378 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
Bram Moolenaar071d4272004-06-13 20:20:40 +000015379 || test "x$features" = "xhuge"; then
15380 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015381 echo "$as_me:$LINENO: result: yes" >&5
15382echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015383 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015384 echo "$as_me:$LINENO: result: no" >&5
15385echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015386 fi
15387fi
Bram Moolenaare224ffa2006-03-01 00:01:28 +000015388if test "x$MACARCH" = "xboth"; then
15389 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15390fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015391
Bram Moolenaara5792f52005-11-23 21:25:05 +000015392echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15393echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015394DEPEND_CFLAGS_FILTER=
15395if test "$GCC" = yes; then
Bram Moolenaar2217cae2006-03-25 21:55:52 +000015396 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
Bram Moolenaarf740b292006-02-16 22:11:02 +000015397 if test "$gccmajor" -gt "2"; then
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015398 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15399 fi
15400fi
Bram Moolenaara5792f52005-11-23 21:25:05 +000015401if test "$DEPEND_CFLAGS_FILTER" = ""; then
15402 echo "$as_me:$LINENO: result: no" >&5
15403echo "${ECHO_T}no" >&6
15404else
15405 echo "$as_me:$LINENO: result: yes" >&5
15406echo "${ECHO_T}yes" >&6
15407fi
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015408
Bram Moolenaar071d4272004-06-13 20:20:40 +000015409
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015410 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15411cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015412# This file is a shell script that caches the results of configure
15413# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015414# scripts and configure runs, see configure's option --config-cache.
15415# It is not useful on other systems. If it contains results you don't
15416# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015417#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015418# config.status only pays attention to the cache file if you give it
15419# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015420#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015421# `ac_cv_env_foo' variables (set or unset) will be overridden when
15422# loading this file, other *unset* `ac_cv_foo' will be assigned the
15423# following values.
15424
15425_ACEOF
15426
Bram Moolenaar071d4272004-06-13 20:20:40 +000015427# The following way of writing the cache mishandles newlines in values,
15428# but we know of no workaround that is simple, portable, and efficient.
15429# So, don't put newlines in cache variables' values.
15430# Ultrix sh set writes to stderr and can't be redirected directly,
15431# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015432{
15433 (set) 2>&1 |
15434 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15435 *ac_space=\ *)
15436 # `set' does not quote correctly, so add quotes (double-quote
15437 # substitution turns \\\\ into \\, and sed turns \\ into \).
15438 sed -n \
15439 "s/'/'\\\\''/g;
15440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15441 ;;
15442 *)
15443 # `set' quotes correctly as required by POSIX, so do not add quotes.
15444 sed -n \
15445 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15446 ;;
15447 esac;
15448} |
15449 sed '
15450 t clear
15451 : clear
15452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15453 t end
15454 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15455 : end' >>confcache
15456if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000015457 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015458 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15459 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000015460 else
15461 echo "not updating unwritable cache $cache_file"
15462 fi
15463fi
15464rm -f confcache
15465
Bram Moolenaar071d4272004-06-13 20:20:40 +000015466test "x$prefix" = xNONE && prefix=$ac_default_prefix
15467# Let make expand exec_prefix.
15468test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15469
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015470# VPATH may cause trouble with some makes, so we remove $(srcdir),
15471# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15472# trailing colons and then remove the whole line if VPATH becomes empty
15473# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000015474if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015475 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15476s/:*\$(srcdir):*/:/;
15477s/:*\${srcdir}:*/:/;
15478s/:*@srcdir@:*/:/;
15479s/^\([^=]*=[ ]*\):*/\1/;
15480s/:*$//;
15481s/^[^=]*=[ ]*$//;
15482}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015483fi
15484
Bram Moolenaar071d4272004-06-13 20:20:40 +000015485DEFS=-DHAVE_CONFIG_H
15486
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015487ac_libobjs=
15488ac_ltlibobjs=
15489for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15490 # 1. Remove the extension, and $U if already installed.
15491 ac_i=`echo "$ac_i" |
15492 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15493 # 2. Add them.
15494 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15495 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15496done
15497LIBOBJS=$ac_libobjs
15498
15499LTLIBOBJS=$ac_ltlibobjs
15500
15501
15502
Bram Moolenaar071d4272004-06-13 20:20:40 +000015503: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015504ac_clean_files_save=$ac_clean_files
15505ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15506{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15507echo "$as_me: creating $CONFIG_STATUS" >&6;}
15508cat >$CONFIG_STATUS <<_ACEOF
15509#! $SHELL
15510# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015511# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015512# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015513# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015514
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015515debug=false
15516ac_cs_recheck=false
15517ac_cs_silent=false
15518SHELL=\${CONFIG_SHELL-$SHELL}
15519_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015520
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015521cat >>$CONFIG_STATUS <<\_ACEOF
15522## --------------------- ##
15523## M4sh Initialization. ##
15524## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000015525
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015526# Be Bourne compatible
15527if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15528 emulate sh
15529 NULLCMD=:
15530 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15531 # is contrary to our usage. Disable this feature.
15532 alias -g '${1+"$@"}'='"$@"'
15533elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15534 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000015535fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015536DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000015537
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015538# Support unset when possible.
15539if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15540 as_unset=unset
15541else
15542 as_unset=false
15543fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015544
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015545
15546# Work around bugs in pre-3.0 UWIN ksh.
15547$as_unset ENV MAIL MAILPATH
15548PS1='$ '
15549PS2='> '
15550PS4='+ '
15551
15552# NLS nuisances.
15553for as_var in \
15554 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15555 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15556 LC_TELEPHONE LC_TIME
15557do
15558 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15559 eval $as_var=C; export $as_var
15560 else
15561 $as_unset $as_var
15562 fi
15563done
15564
15565# Required to use basename.
15566if expr a : '\(a\)' >/dev/null 2>&1; then
15567 as_expr=expr
15568else
15569 as_expr=false
15570fi
15571
15572if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15573 as_basename=basename
15574else
15575 as_basename=false
15576fi
15577
15578
15579# Name of the executable.
15580as_me=`$as_basename "$0" ||
15581$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15582 X"$0" : 'X\(//\)$' \| \
15583 X"$0" : 'X\(/\)$' \| \
15584 . : '\(.\)' 2>/dev/null ||
15585echo X/"$0" |
15586 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15587 /^X\/\(\/\/\)$/{ s//\1/; q; }
15588 /^X\/\(\/\).*/{ s//\1/; q; }
15589 s/.*/./; q'`
15590
15591
15592# PATH needs CR, and LINENO needs CR and PATH.
15593# Avoid depending upon Character Ranges.
15594as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15595as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15596as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15597as_cr_digits='0123456789'
15598as_cr_alnum=$as_cr_Letters$as_cr_digits
15599
15600# The user is always right.
15601if test "${PATH_SEPARATOR+set}" != set; then
15602 echo "#! /bin/sh" >conf$$.sh
15603 echo "exit 0" >>conf$$.sh
15604 chmod +x conf$$.sh
15605 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15606 PATH_SEPARATOR=';'
15607 else
15608 PATH_SEPARATOR=:
15609 fi
15610 rm -f conf$$.sh
15611fi
15612
15613
15614 as_lineno_1=$LINENO
15615 as_lineno_2=$LINENO
15616 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15617 test "x$as_lineno_1" != "x$as_lineno_2" &&
15618 test "x$as_lineno_3" = "x$as_lineno_2" || {
15619 # Find who we are. Look in the path if we contain no path at all
15620 # relative or not.
15621 case $0 in
15622 *[\\/]* ) as_myself=$0 ;;
15623 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15624for as_dir in $PATH
15625do
15626 IFS=$as_save_IFS
15627 test -z "$as_dir" && as_dir=.
15628 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15629done
15630
15631 ;;
15632 esac
15633 # We did not find ourselves, most probably we were run as `sh COMMAND'
15634 # in which case we are not to be found in the path.
15635 if test "x$as_myself" = x; then
15636 as_myself=$0
15637 fi
15638 if test ! -f "$as_myself"; then
15639 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15640echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15641 { (exit 1); exit 1; }; }
15642 fi
15643 case $CONFIG_SHELL in
15644 '')
15645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15646for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15647do
15648 IFS=$as_save_IFS
15649 test -z "$as_dir" && as_dir=.
15650 for as_base in sh bash ksh sh5; do
15651 case $as_dir in
15652 /*)
15653 if ("$as_dir/$as_base" -c '
15654 as_lineno_1=$LINENO
15655 as_lineno_2=$LINENO
15656 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15657 test "x$as_lineno_1" != "x$as_lineno_2" &&
15658 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15659 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15660 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15661 CONFIG_SHELL=$as_dir/$as_base
15662 export CONFIG_SHELL
15663 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15664 fi;;
15665 esac
15666 done
15667done
15668;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015669 esac
15670
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015671 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15672 # uniformly replaced by the line number. The first 'sed' inserts a
15673 # line-number line before each line; the second 'sed' does the real
15674 # work. The second script uses 'N' to pair each line-number line
15675 # with the numbered line, and appends trailing '-' during
15676 # substitution so that $LINENO is not a special case at line end.
15677 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15678 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15679 sed '=' <$as_myself |
15680 sed '
15681 N
15682 s,$,-,
15683 : loop
15684 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15685 t loop
15686 s,-$,,
15687 s,^['$as_cr_digits']*\n,,
15688 ' >$as_me.lineno &&
15689 chmod +x $as_me.lineno ||
15690 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15691echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15692 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000015693
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015694 # Don't try to exec as it changes $[0], causing all sort of problems
15695 # (the dirname of $[0] is not the place where we might find the
15696 # original and so on. Autoconf is especially sensible to this).
15697 . ./$as_me.lineno
15698 # Exit status is that of the last command.
15699 exit
15700}
15701
15702
15703case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15704 *c*,-n*) ECHO_N= ECHO_C='
15705' ECHO_T=' ' ;;
15706 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15707 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15708esac
15709
15710if expr a : '\(a\)' >/dev/null 2>&1; then
15711 as_expr=expr
15712else
15713 as_expr=false
15714fi
15715
15716rm -f conf$$ conf$$.exe conf$$.file
15717echo >conf$$.file
15718if ln -s conf$$.file conf$$ 2>/dev/null; then
15719 # We could just check for DJGPP; but this test a) works b) is more generic
15720 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15721 if test -f conf$$.exe; then
15722 # Don't use ln at all; we don't have any links
15723 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015724 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015725 as_ln_s='ln -s'
15726 fi
15727elif ln conf$$.file conf$$ 2>/dev/null; then
15728 as_ln_s=ln
15729else
15730 as_ln_s='cp -p'
15731fi
15732rm -f conf$$ conf$$.exe conf$$.file
15733
15734if mkdir -p . 2>/dev/null; then
15735 as_mkdir_p=:
15736else
15737 test -d ./-p && rmdir ./-p
15738 as_mkdir_p=false
15739fi
15740
15741as_executable_p="test -f"
15742
15743# Sed expression to map a string onto a valid CPP name.
15744as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15745
15746# Sed expression to map a string onto a valid variable name.
15747as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15748
15749
15750# IFS
15751# We need space, tab and new line, in precisely that order.
15752as_nl='
15753'
15754IFS=" $as_nl"
15755
15756# CDPATH.
15757$as_unset CDPATH
15758
15759exec 6>&1
15760
15761# Open the log real soon, to keep \$[0] and so on meaningful, and to
15762# report actual input values of CONFIG_FILES etc. instead of their
15763# values after options handling. Logging --version etc. is OK.
Bram Moolenaarc7453f52006-02-10 23:20:28 +000015764exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015765{
15766 echo
15767 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15768## Running $as_me. ##
15769_ASBOX
15770} >&5
15771cat >&5 <<_CSEOF
15772
15773This file was extended by $as_me, which was
15774generated by GNU Autoconf 2.59. Invocation command line was
15775
15776 CONFIG_FILES = $CONFIG_FILES
15777 CONFIG_HEADERS = $CONFIG_HEADERS
15778 CONFIG_LINKS = $CONFIG_LINKS
15779 CONFIG_COMMANDS = $CONFIG_COMMANDS
15780 $ $0 $@
15781
15782_CSEOF
15783echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15784echo >&5
15785_ACEOF
15786
15787# Files that config.status was made for.
15788if test -n "$ac_config_files"; then
15789 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15790fi
15791
15792if test -n "$ac_config_headers"; then
15793 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15794fi
15795
15796if test -n "$ac_config_links"; then
15797 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15798fi
15799
15800if test -n "$ac_config_commands"; then
15801 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15802fi
15803
15804cat >>$CONFIG_STATUS <<\_ACEOF
15805
15806ac_cs_usage="\
15807\`$as_me' instantiates files from templates according to the
15808current configuration.
15809
15810Usage: $0 [OPTIONS] [FILE]...
15811
15812 -h, --help print this help, then exit
15813 -V, --version print version number, then exit
15814 -q, --quiet do not print progress messages
15815 -d, --debug don't remove temporary files
15816 --recheck update $as_me by reconfiguring in the same conditions
15817 --file=FILE[:TEMPLATE]
15818 instantiate the configuration file FILE
15819 --header=FILE[:TEMPLATE]
15820 instantiate the configuration header FILE
15821
15822Configuration files:
15823$config_files
15824
15825Configuration headers:
15826$config_headers
15827
15828Report bugs to <bug-autoconf@gnu.org>."
15829_ACEOF
15830
15831cat >>$CONFIG_STATUS <<_ACEOF
15832ac_cs_version="\\
15833config.status
15834configured by $0, generated by GNU Autoconf 2.59,
15835 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15836
15837Copyright (C) 2003 Free Software Foundation, Inc.
15838This config.status script is free software; the Free Software Foundation
15839gives unlimited permission to copy, distribute and modify it."
15840srcdir=$srcdir
15841_ACEOF
15842
15843cat >>$CONFIG_STATUS <<\_ACEOF
15844# If no file are specified by the user, then we need to provide default
15845# value. By we need to know if files were specified by the user.
15846ac_need_defaults=:
15847while test $# != 0
15848do
15849 case $1 in
15850 --*=*)
15851 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15852 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15853 ac_shift=:
15854 ;;
15855 -*)
15856 ac_option=$1
15857 ac_optarg=$2
15858 ac_shift=shift
15859 ;;
15860 *) # This is not an option, so the user has probably given explicit
15861 # arguments.
15862 ac_option=$1
15863 ac_need_defaults=false;;
15864 esac
15865
15866 case $ac_option in
15867 # Handling of the options.
15868_ACEOF
15869cat >>$CONFIG_STATUS <<\_ACEOF
15870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15871 ac_cs_recheck=: ;;
15872 --version | --vers* | -V )
15873 echo "$ac_cs_version"; exit 0 ;;
15874 --he | --h)
15875 # Conflict between --help and --header
15876 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15877Try \`$0 --help' for more information." >&5
15878echo "$as_me: error: ambiguous option: $1
15879Try \`$0 --help' for more information." >&2;}
15880 { (exit 1); exit 1; }; };;
15881 --help | --hel | -h )
15882 echo "$ac_cs_usage"; exit 0 ;;
15883 --debug | --d* | -d )
15884 debug=: ;;
15885 --file | --fil | --fi | --f )
15886 $ac_shift
15887 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15888 ac_need_defaults=false;;
15889 --header | --heade | --head | --hea )
15890 $ac_shift
15891 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15892 ac_need_defaults=false;;
15893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15894 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15895 ac_cs_silent=: ;;
15896
15897 # This is an error.
15898 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15899Try \`$0 --help' for more information." >&5
15900echo "$as_me: error: unrecognized option: $1
15901Try \`$0 --help' for more information." >&2;}
15902 { (exit 1); exit 1; }; } ;;
15903
15904 *) ac_config_targets="$ac_config_targets $1" ;;
15905
15906 esac
15907 shift
15908done
15909
15910ac_configure_extra_args=
15911
15912if $ac_cs_silent; then
15913 exec 6>/dev/null
15914 ac_configure_extra_args="$ac_configure_extra_args --silent"
15915fi
15916
15917_ACEOF
15918cat >>$CONFIG_STATUS <<_ACEOF
15919if \$ac_cs_recheck; then
15920 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15921 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15922fi
15923
15924_ACEOF
15925
15926
15927
15928
15929
15930cat >>$CONFIG_STATUS <<\_ACEOF
15931for ac_config_target in $ac_config_targets
15932do
15933 case "$ac_config_target" in
15934 # Handling of arguments.
15935 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15936 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15937 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15938echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15939 { (exit 1); exit 1; }; };;
15940 esac
15941done
15942
15943# If the user did not use the arguments to specify the items to instantiate,
15944# then the envvar interface is used. Set only those that are not.
15945# We use the long form for the default assignment because of an extremely
15946# bizarre bug on SunOS 4.1.3.
15947if $ac_need_defaults; then
15948 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15949 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15950fi
15951
15952# Have a temporary directory for convenience. Make it in the build tree
15953# simply because there is no reason to put it here, and in addition,
15954# creating and moving files from /tmp can sometimes cause problems.
15955# Create a temporary directory, and hook for its removal unless debugging.
15956$debug ||
15957{
15958 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15959 trap '{ (exit 1); exit 1; }' 1 2 13 15
15960}
15961
15962# Create a (secure) tmp directory for tmp files.
15963
15964{
15965 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15966 test -n "$tmp" && test -d "$tmp"
15967} ||
15968{
15969 tmp=./confstat$$-$RANDOM
15970 (umask 077 && mkdir $tmp)
15971} ||
15972{
15973 echo "$me: cannot create a temporary directory in ." >&2
15974 { (exit 1); exit 1; }
15975}
15976
15977_ACEOF
15978
15979cat >>$CONFIG_STATUS <<_ACEOF
15980
15981#
15982# CONFIG_FILES section.
15983#
15984
15985# No need to generate the scripts if there are no CONFIG_FILES.
15986# This happens for instance when ./config.status config.h
15987if test -n "\$CONFIG_FILES"; then
15988 # Protect against being on the right side of a sed subst in config.status.
15989 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15990 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15991s,@SHELL@,$SHELL,;t t
15992s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15993s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15994s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15995s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15996s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15997s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15998s,@exec_prefix@,$exec_prefix,;t t
15999s,@prefix@,$prefix,;t t
16000s,@program_transform_name@,$program_transform_name,;t t
16001s,@bindir@,$bindir,;t t
16002s,@sbindir@,$sbindir,;t t
16003s,@libexecdir@,$libexecdir,;t t
16004s,@datadir@,$datadir,;t t
16005s,@sysconfdir@,$sysconfdir,;t t
16006s,@sharedstatedir@,$sharedstatedir,;t t
16007s,@localstatedir@,$localstatedir,;t t
16008s,@libdir@,$libdir,;t t
16009s,@includedir@,$includedir,;t t
16010s,@oldincludedir@,$oldincludedir,;t t
16011s,@infodir@,$infodir,;t t
16012s,@mandir@,$mandir,;t t
16013s,@build_alias@,$build_alias,;t t
16014s,@host_alias@,$host_alias,;t t
16015s,@target_alias@,$target_alias,;t t
16016s,@DEFS@,$DEFS,;t t
16017s,@ECHO_C@,$ECHO_C,;t t
16018s,@ECHO_N@,$ECHO_N,;t t
16019s,@ECHO_T@,$ECHO_T,;t t
16020s,@LIBS@,$LIBS,;t t
16021s,@SET_MAKE@,$SET_MAKE,;t t
16022s,@CC@,$CC,;t t
16023s,@CFLAGS@,$CFLAGS,;t t
16024s,@LDFLAGS@,$LDFLAGS,;t t
16025s,@CPPFLAGS@,$CPPFLAGS,;t t
16026s,@ac_ct_CC@,$ac_ct_CC,;t t
16027s,@EXEEXT@,$EXEEXT,;t t
16028s,@OBJEXT@,$OBJEXT,;t t
16029s,@CPP@,$CPP,;t t
16030s,@EGREP@,$EGREP,;t t
16031s,@AWK@,$AWK,;t t
16032s,@STRIP@,$STRIP,;t t
16033s,@CPP_MM@,$CPP_MM,;t t
16034s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
16035s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
16036s,@VIMNAME@,$VIMNAME,;t t
16037s,@EXNAME@,$EXNAME,;t t
16038s,@VIEWNAME@,$VIEWNAME,;t t
16039s,@line_break@,$line_break,;t t
16040s,@dovimdiff@,$dovimdiff,;t t
16041s,@dogvimdiff@,$dogvimdiff,;t t
16042s,@compiledby@,$compiledby,;t t
16043s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
16044s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
16045s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
16046s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
16047s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
16048s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
16049s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
16050s,@vi_cv_perllib@,$vi_cv_perllib,;t t
16051s,@shrpenv@,$shrpenv,;t t
16052s,@PERL_SRC@,$PERL_SRC,;t t
16053s,@PERL_OBJ@,$PERL_OBJ,;t t
16054s,@PERL_PRO@,$PERL_PRO,;t t
16055s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
16056s,@PERL_LIBS@,$PERL_LIBS,;t t
16057s,@vi_cv_path_python@,$vi_cv_path_python,;t t
16058s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
16059s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
16060s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
16061s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
16062s,@PYTHON_SRC@,$PYTHON_SRC,;t t
16063s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
16064s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
16065s,@TCL_SRC@,$TCL_SRC,;t t
16066s,@TCL_OBJ@,$TCL_OBJ,;t t
16067s,@TCL_PRO@,$TCL_PRO,;t t
16068s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
16069s,@TCL_LIBS@,$TCL_LIBS,;t t
16070s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
16071s,@RUBY_SRC@,$RUBY_SRC,;t t
16072s,@RUBY_OBJ@,$RUBY_OBJ,;t t
16073s,@RUBY_PRO@,$RUBY_PRO,;t t
16074s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16075s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16076s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16077s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16078s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16079s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16080s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16081s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16082s,@xmkmfpath@,$xmkmfpath,;t t
16083s,@X_CFLAGS@,$X_CFLAGS,;t t
16084s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16085s,@X_LIBS@,$X_LIBS,;t t
16086s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16087s,@X_LIB@,$X_LIB,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016088s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16089s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16090s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16091s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16092s,@GTK_LIBS@,$GTK_LIBS,;t t
16093s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16094s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16095s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16096s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16097s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16098s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16099s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16100s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16101s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16102s,@GUITYPE@,$GUITYPE,;t t
16103s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16104s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16105s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16106s,@TAGPRG@,$TAGPRG,;t t
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000016107s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16108s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016109s,@MSGFMT@,$MSGFMT,;t t
16110s,@MAKEMO@,$MAKEMO,;t t
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000016111s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016112s,@LIBOBJS@,$LIBOBJS,;t t
16113s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16114CEOF
16115
16116_ACEOF
16117
16118 cat >>$CONFIG_STATUS <<\_ACEOF
16119 # Split the substitutions into bite-sized pieces for seds with
16120 # small command number limits, like on Digital OSF/1 and HP-UX.
16121 ac_max_sed_lines=48
16122 ac_sed_frag=1 # Number of current file.
16123 ac_beg=1 # First line for current file.
16124 ac_end=$ac_max_sed_lines # Line after last line for current file.
16125 ac_more_lines=:
16126 ac_sed_cmds=
16127 while $ac_more_lines; do
16128 if test $ac_beg -gt 1; then
16129 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16130 else
16131 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16132 fi
16133 if test ! -s $tmp/subs.frag; then
16134 ac_more_lines=false
16135 else
16136 # The purpose of the label and of the branching condition is to
16137 # speed up the sed processing (if there are no `@' at all, there
16138 # is no need to browse any of the substitutions).
16139 # These are the two extra sed commands mentioned above.
16140 (echo ':t
16141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16142 if test -z "$ac_sed_cmds"; then
16143 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16144 else
16145 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16146 fi
16147 ac_sed_frag=`expr $ac_sed_frag + 1`
16148 ac_beg=$ac_end
16149 ac_end=`expr $ac_end + $ac_max_sed_lines`
16150 fi
16151 done
16152 if test -z "$ac_sed_cmds"; then
16153 ac_sed_cmds=cat
16154 fi
16155fi # test -n "$CONFIG_FILES"
16156
16157_ACEOF
16158cat >>$CONFIG_STATUS <<\_ACEOF
16159for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16161 case $ac_file in
16162 - | *:- | *:-:* ) # input from stdin
16163 cat >$tmp/stdin
16164 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16166 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16168 * ) ac_file_in=$ac_file.in ;;
16169 esac
16170
16171 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16172 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16173$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16174 X"$ac_file" : 'X\(//\)[^/]' \| \
16175 X"$ac_file" : 'X\(//\)$' \| \
16176 X"$ac_file" : 'X\(/\)' \| \
16177 . : '\(.\)' 2>/dev/null ||
16178echo X"$ac_file" |
16179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16181 /^X\(\/\/\)$/{ s//\1/; q; }
16182 /^X\(\/\).*/{ s//\1/; q; }
16183 s/.*/./; q'`
16184 { if $as_mkdir_p; then
16185 mkdir -p "$ac_dir"
16186 else
16187 as_dir="$ac_dir"
16188 as_dirs=
16189 while test ! -d "$as_dir"; do
16190 as_dirs="$as_dir $as_dirs"
16191 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16192$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16193 X"$as_dir" : 'X\(//\)[^/]' \| \
16194 X"$as_dir" : 'X\(//\)$' \| \
16195 X"$as_dir" : 'X\(/\)' \| \
16196 . : '\(.\)' 2>/dev/null ||
16197echo X"$as_dir" |
16198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16200 /^X\(\/\/\)$/{ s//\1/; q; }
16201 /^X\(\/\).*/{ s//\1/; q; }
16202 s/.*/./; q'`
16203 done
16204 test ! -n "$as_dirs" || mkdir $as_dirs
16205 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16206echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16207 { (exit 1); exit 1; }; }; }
16208
16209 ac_builddir=.
16210
16211if test "$ac_dir" != .; then
16212 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16213 # A "../" for each directory in $ac_dir_suffix.
16214 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16215else
16216 ac_dir_suffix= ac_top_builddir=
16217fi
16218
16219case $srcdir in
16220 .) # No --srcdir option. We are building in place.
16221 ac_srcdir=.
16222 if test -z "$ac_top_builddir"; then
16223 ac_top_srcdir=.
16224 else
16225 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16226 fi ;;
16227 [\\/]* | ?:[\\/]* ) # Absolute path.
16228 ac_srcdir=$srcdir$ac_dir_suffix;
16229 ac_top_srcdir=$srcdir ;;
16230 *) # Relative path.
16231 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16232 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16233esac
16234
16235# Do not use `cd foo && pwd` to compute absolute paths, because
16236# the directories may not exist.
16237case `pwd` in
16238.) ac_abs_builddir="$ac_dir";;
16239*)
16240 case "$ac_dir" in
16241 .) ac_abs_builddir=`pwd`;;
16242 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16243 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16244 esac;;
16245esac
16246case $ac_abs_builddir in
16247.) ac_abs_top_builddir=${ac_top_builddir}.;;
16248*)
16249 case ${ac_top_builddir}. in
16250 .) ac_abs_top_builddir=$ac_abs_builddir;;
16251 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16252 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16253 esac;;
16254esac
16255case $ac_abs_builddir in
16256.) ac_abs_srcdir=$ac_srcdir;;
16257*)
16258 case $ac_srcdir in
16259 .) ac_abs_srcdir=$ac_abs_builddir;;
16260 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16261 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16262 esac;;
16263esac
16264case $ac_abs_builddir in
16265.) ac_abs_top_srcdir=$ac_top_srcdir;;
16266*)
16267 case $ac_top_srcdir in
16268 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16269 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16270 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16271 esac;;
16272esac
16273
16274
16275
16276 if test x"$ac_file" != x-; then
16277 { echo "$as_me:$LINENO: creating $ac_file" >&5
16278echo "$as_me: creating $ac_file" >&6;}
16279 rm -f "$ac_file"
16280 fi
16281 # Let's still pretend it is `configure' which instantiates (i.e., don't
16282 # use $as_me), people would be surprised to read:
16283 # /* config.h. Generated by config.status. */
16284 if test x"$ac_file" = x-; then
16285 configure_input=
16286 else
16287 configure_input="$ac_file. "
16288 fi
16289 configure_input=$configure_input"Generated from `echo $ac_file_in |
16290 sed 's,.*/,,'` by configure."
16291
16292 # First look for the input files in the build tree, otherwise in the
16293 # src tree.
16294 ac_file_inputs=`IFS=:
16295 for f in $ac_file_in; do
16296 case $f in
16297 -) echo $tmp/stdin ;;
16298 [\\/$]*)
16299 # Absolute (can't be DOS-style, as IFS=:)
16300 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16301echo "$as_me: error: cannot find input file: $f" >&2;}
16302 { (exit 1); exit 1; }; }
16303 echo "$f";;
16304 *) # Relative
16305 if test -f "$f"; then
16306 # Build tree
16307 echo "$f"
16308 elif test -f "$srcdir/$f"; then
16309 # Source tree
16310 echo "$srcdir/$f"
16311 else
16312 # /dev/null tree
16313 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16314echo "$as_me: error: cannot find input file: $f" >&2;}
16315 { (exit 1); exit 1; }; }
16316 fi;;
16317 esac
16318 done` || { (exit 1); exit 1; }
16319_ACEOF
16320cat >>$CONFIG_STATUS <<_ACEOF
16321 sed "$ac_vpsub
16322$extrasub
16323_ACEOF
16324cat >>$CONFIG_STATUS <<\_ACEOF
16325:t
16326/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16327s,@configure_input@,$configure_input,;t t
16328s,@srcdir@,$ac_srcdir,;t t
16329s,@abs_srcdir@,$ac_abs_srcdir,;t t
16330s,@top_srcdir@,$ac_top_srcdir,;t t
16331s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16332s,@builddir@,$ac_builddir,;t t
16333s,@abs_builddir@,$ac_abs_builddir,;t t
16334s,@top_builddir@,$ac_top_builddir,;t t
16335s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16336" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16337 rm -f $tmp/stdin
16338 if test x"$ac_file" != x-; then
16339 mv $tmp/out $ac_file
16340 else
16341 cat $tmp/out
16342 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000016343 fi
16344
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016345done
16346_ACEOF
16347cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016348
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016349#
16350# CONFIG_HEADER section.
16351#
Bram Moolenaar071d4272004-06-13 20:20:40 +000016352
16353# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16354# NAME is the cpp macro being defined and VALUE is the value it is being given.
16355#
16356# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016357ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16358ac_dB='[ ].*$,\1#\2'
16359ac_dC=' '
16360ac_dD=',;t'
16361# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16362ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16363ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016364ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016365ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016366
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016367for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000016368 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016369 case $ac_file in
16370 - | *:- | *:-:* ) # input from stdin
16371 cat >$tmp/stdin
16372 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16373 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16374 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16375 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16376 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016377 esac
16378
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016379 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16380echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000016381
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016382 # First look for the input files in the build tree, otherwise in the
16383 # src tree.
16384 ac_file_inputs=`IFS=:
16385 for f in $ac_file_in; do
16386 case $f in
16387 -) echo $tmp/stdin ;;
16388 [\\/$]*)
16389 # Absolute (can't be DOS-style, as IFS=:)
16390 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16391echo "$as_me: error: cannot find input file: $f" >&2;}
16392 { (exit 1); exit 1; }; }
16393 # Do quote $f, to prevent DOS paths from being IFS'd.
16394 echo "$f";;
16395 *) # Relative
16396 if test -f "$f"; then
16397 # Build tree
16398 echo "$f"
16399 elif test -f "$srcdir/$f"; then
16400 # Source tree
16401 echo "$srcdir/$f"
16402 else
16403 # /dev/null tree
16404 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16405echo "$as_me: error: cannot find input file: $f" >&2;}
16406 { (exit 1); exit 1; }; }
16407 fi;;
16408 esac
16409 done` || { (exit 1); exit 1; }
16410 # Remove the trailing spaces.
16411 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000016412
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016413_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016414
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016415# Transform confdefs.h into two sed scripts, `conftest.defines' and
16416# `conftest.undefs', that substitutes the proper values into
16417# config.h.in to produce config.h. The first handles `#define'
16418# templates, and the second `#undef' templates.
16419# And first: Protect against being on the right side of a sed subst in
16420# config.status. Protect against being in an unquoted here document
16421# in config.status.
16422rm -f conftest.defines conftest.undefs
16423# Using a here document instead of a string reduces the quoting nightmare.
16424# Putting comments in sed scripts is not portable.
16425#
16426# `end' is used to avoid that the second main sed command (meant for
16427# 0-ary CPP macros) applies to n-ary macro definitions.
16428# See the Autoconf documentation for `clear'.
16429cat >confdef2sed.sed <<\_ACEOF
16430s/[\\&,]/\\&/g
16431s,[\\$`],\\&,g
16432t clear
16433: clear
16434s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16435t end
16436s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16437: end
16438_ACEOF
16439# If some macros were called several times there might be several times
16440# the same #defines, which is useless. Nevertheless, we may not want to
16441# sort them, since we want the *last* AC-DEFINE to be honored.
16442uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16443sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16444rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000016445
16446# This sed command replaces #undef with comments. This is necessary, for
16447# example, in the case of _POSIX_SOURCE, which is predefined and required
16448# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016449cat >>conftest.undefs <<\_ACEOF
16450s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16451_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016452
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016453# Break up conftest.defines because some shells have a limit on the size
16454# of here documents, and old seds have small limits too (100 cmds).
16455echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16456echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16457echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16458echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016459rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016460while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000016461do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016462 # Write a limited-size here document to $tmp/defines.sed.
16463 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16464 # Speed up: don't consider the non `#define' lines.
16465 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16466 # Work around the forget-to-reset-the-flag bug.
16467 echo 't clr' >>$CONFIG_STATUS
16468 echo ': clr' >>$CONFIG_STATUS
16469 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016470 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016471 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16472 rm -f $tmp/in
16473 mv $tmp/out $tmp/in
16474' >>$CONFIG_STATUS
16475 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16476 rm -f conftest.defines
16477 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000016478done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016479rm -f conftest.defines
16480echo ' fi # grep' >>$CONFIG_STATUS
16481echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016482
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016483# Break up conftest.undefs because some shells have a limit on the size
16484# of here documents, and old seds have small limits too (100 cmds).
16485echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16486rm -f conftest.tail
16487while grep . conftest.undefs >/dev/null
16488do
16489 # Write a limited-size here document to $tmp/undefs.sed.
16490 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16491 # Speed up: don't consider the non `#undef'
16492 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16493 # Work around the forget-to-reset-the-flag bug.
16494 echo 't clr' >>$CONFIG_STATUS
16495 echo ': clr' >>$CONFIG_STATUS
16496 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16497 echo 'CEOF
16498 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16499 rm -f $tmp/in
16500 mv $tmp/out $tmp/in
16501' >>$CONFIG_STATUS
16502 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16503 rm -f conftest.undefs
16504 mv conftest.tail conftest.undefs
16505done
16506rm -f conftest.undefs
16507
16508cat >>$CONFIG_STATUS <<\_ACEOF
16509 # Let's still pretend it is `configure' which instantiates (i.e., don't
16510 # use $as_me), people would be surprised to read:
16511 # /* config.h. Generated by config.status. */
16512 if test x"$ac_file" = x-; then
16513 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016514 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016515 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016516 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016517 cat $tmp/in >>$tmp/config.h
16518 rm -f $tmp/in
16519 if test x"$ac_file" != x-; then
16520 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16521 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16522echo "$as_me: $ac_file is unchanged" >&6;}
16523 else
16524 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16525$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16526 X"$ac_file" : 'X\(//\)[^/]' \| \
16527 X"$ac_file" : 'X\(//\)$' \| \
16528 X"$ac_file" : 'X\(/\)' \| \
16529 . : '\(.\)' 2>/dev/null ||
16530echo X"$ac_file" |
16531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16533 /^X\(\/\/\)$/{ s//\1/; q; }
16534 /^X\(\/\).*/{ s//\1/; q; }
16535 s/.*/./; q'`
16536 { if $as_mkdir_p; then
16537 mkdir -p "$ac_dir"
16538 else
16539 as_dir="$ac_dir"
16540 as_dirs=
16541 while test ! -d "$as_dir"; do
16542 as_dirs="$as_dir $as_dirs"
16543 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16544$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16545 X"$as_dir" : 'X\(//\)[^/]' \| \
16546 X"$as_dir" : 'X\(//\)$' \| \
16547 X"$as_dir" : 'X\(/\)' \| \
16548 . : '\(.\)' 2>/dev/null ||
16549echo X"$as_dir" |
16550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16552 /^X\(\/\/\)$/{ s//\1/; q; }
16553 /^X\(\/\).*/{ s//\1/; q; }
16554 s/.*/./; q'`
16555 done
16556 test ! -n "$as_dirs" || mkdir $as_dirs
16557 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16558echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16559 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016560
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016561 rm -f $ac_file
16562 mv $tmp/config.h $ac_file
16563 fi
16564 else
16565 cat $tmp/config.h
16566 rm -f $tmp/config.h
16567 fi
16568done
16569_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016570
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016571cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016572
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016573{ (exit 0); exit 0; }
16574_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016575chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016576ac_clean_files=$ac_clean_files_save
16577
16578
16579# configure is writing to config.log, and then calls config.status.
16580# config.status does its own redirection, appending to config.log.
16581# Unfortunately, on DOS this fails, as config.log is still kept open
16582# by configure, so config.status won't be able to write to it; its
16583# output is simply discarded. So we exec the FD to /dev/null,
16584# effectively closing config.log, so it can be properly (re)opened and
16585# appended to by config.status. When coming back to configure, we
16586# need to make the FD available again.
16587if test "$no_create" != yes; then
16588 ac_cs_success=:
16589 ac_config_status_args=
16590 test "$silent" = yes &&
16591 ac_config_status_args="$ac_config_status_args --quiet"
16592 exec 5>/dev/null
16593 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Bram Moolenaarc7453f52006-02-10 23:20:28 +000016594 exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016595 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16596 # would make configure fail if this is the last instruction.
16597 $ac_cs_success || { (exit 1); exit 1; }
16598fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016599
16600