blob: c941bc0db93dc4b988f5e52ccb4c28b441244187 [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
3821 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003822 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3823echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003824 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003825 echo "$as_me:$LINENO: result: \"yes\"" >&5
3826echo "${ECHO_T}\"yes\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003827 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003828 echo "$as_me:$LINENO: result: \"no\"" >&5
3829echo "${ECHO_T}\"no\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003830 vi_cv_path_mzscheme_pfx=
3831 fi
3832 fi
3833
3834 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3835 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3836 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3837 else
3838 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003839 if test "$GCC" = yes; then
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003840 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003841 elif test "`(uname) 2>/dev/null`" = SunOS &&
3842 uname -r | grep '^5' >/dev/null; then
3843 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003844 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003845 fi
3846 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \
3847 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3848 MZSCHEME_SRC="if_mzsch.c"
3849 MZSCHEME_OBJ="objects/if_mzsch.o"
3850 MZSCHEME_PRO="if_mzsch.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003851 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003852#define FEAT_MZSCHEME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003853_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003854
3855 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003856
3857
3858
3859
3860
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003861fi
3862
3863
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003864echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3865echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003866# Check whether --enable-perlinterp or --disable-perlinterp was given.
3867if test "${enable_perlinterp+set}" = set; then
3868 enableval="$enable_perlinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003869
Bram Moolenaar071d4272004-06-13 20:20:40 +00003870else
3871 enable_perlinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003872fi;
3873echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3874echo "${ECHO_T}$enable_perlinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003875if test "$enable_perlinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003876
Bram Moolenaar071d4272004-06-13 20:20:40 +00003877 # Extract the first word of "perl", so it can be a program name with args.
3878set dummy perl; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003879echo "$as_me:$LINENO: checking for $ac_word" >&5
3880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003883else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003884 case $vi_cv_path_perl in
3885 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003886 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3887 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003888 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3899 fi
3900done
3901done
3902
Bram Moolenaar071d4272004-06-13 20:20:40 +00003903 ;;
3904esac
3905fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003906vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3907
Bram Moolenaar071d4272004-06-13 20:20:40 +00003908if test -n "$vi_cv_path_perl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003909 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3910echo "${ECHO_T}$vi_cv_path_perl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003911else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003912 echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003914fi
3915
3916 if test "X$vi_cv_path_perl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003917 echo "$as_me:$LINENO: checking Perl version" >&5
3918echo $ECHO_N "checking Perl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003919 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3920 eval `$vi_cv_path_perl -V:usethreads`
3921 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3922 badthreads=no
3923 else
3924 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3925 eval `$vi_cv_path_perl -V:use5005threads`
3926 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3927 badthreads=no
3928 else
3929 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003930 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3931echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003932 fi
3933 else
3934 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003935 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3936echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003937 fi
3938 fi
3939 if test $badthreads = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003940 echo "$as_me:$LINENO: result: OK" >&5
3941echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003942 eval `$vi_cv_path_perl -V:shrpenv`
3943 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3944 shrpenv=""
3945 fi
3946 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003947
Bram Moolenaar071d4272004-06-13 20:20:40 +00003948 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3949 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3950 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3951 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3952 -e 's/-bE:perl.exp//' -e 's/-lc //'`
3953 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3954 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3955
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003956 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3957echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003958 cflags_save=$CFLAGS
3959 libs_save=$LIBS
3960 ldflags_save=$LDFLAGS
3961 CFLAGS="$CFLAGS $perlcppflags"
3962 LIBS="$LIBS $perllibs"
3963 LDFLAGS="$perlldflags $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003964 cat >conftest.$ac_ext <<_ACEOF
3965/* confdefs.h. */
3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
3969/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003970
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003971int
3972main ()
3973{
3974
3975 ;
3976 return 0;
3977}
3978_ACEOF
3979rm -f conftest.$ac_objext conftest$ac_exeext
3980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3981 (eval $ac_link) 2>conftest.er1
3982 ac_status=$?
3983 grep -v '^ *+' conftest.er1 >conftest.err
3984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
3988 { ac_try='test -z "$ac_c_werror_flag"
3989 || test ! -s conftest.err'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; } &&
3995 { ac_try='test -s conftest$ac_exeext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 echo "$as_me:$LINENO: result: yes" >&5
4002echo "${ECHO_T}yes" >&6; perl_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004003else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004004 echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4008echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004009fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004010rm -f conftest.err conftest.$ac_objext \
4011 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004012 CFLAGS=$cflags_save
4013 LIBS=$libs_save
4014 LDFLAGS=$ldflags_save
4015 if test $perl_ok = yes; then
4016 if test "X$perlcppflags" != "X"; then
Bram Moolenaarc218a2e2006-09-05 15:32:11 +00004017 PERL_CFLAGS=`echo "$perlcppflags" | sed 's/-pipe //'`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004018 fi
4019 if test "X$perlldflags" != "X"; then
4020 LDFLAGS="$perlldflags $LDFLAGS"
4021 fi
4022 PERL_LIBS=$perllibs
4023 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4024 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4025 PERL_PRO="if_perl.pro if_perlsfio.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004026 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004027#define FEAT_PERL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004028_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004029
4030 fi
4031 fi
4032 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004033 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4034echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004035 fi
4036 fi
4037
4038 if test "x$MACOSX" = "xyes"; then
4039 dir=/System/Library/Perl
4040 darwindir=$dir/darwin
4041 if test -d $darwindir; then
4042 PERL=/usr/bin/perl
4043 else
4044 dir=/System/Library/Perl/5.8.1
4045 darwindir=$dir/darwin-thread-multi-2level
4046 if test -d $darwindir; then
4047 PERL=/usr/bin/perl
4048 fi
4049 fi
4050 if test -n "$PERL"; then
4051 PERL_DIR="$dir"
4052 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4053 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4054 PERL_LIBS="-L$darwindir/CORE -lperl"
4055 fi
4056 fi
4057fi
4058
4059
4060
4061
4062
4063
4064
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004065echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4066echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004067# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4068if test "${enable_pythoninterp+set}" = set; then
4069 enableval="$enable_pythoninterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004070
Bram Moolenaar071d4272004-06-13 20:20:40 +00004071else
4072 enable_pythoninterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004073fi;
4074echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4075echo "${ECHO_T}$enable_pythoninterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004076if test "$enable_pythoninterp" = "yes"; then
4077 # Extract the first word of "python", so it can be a program name with args.
4078set dummy python; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004079echo "$as_me:$LINENO: checking for $ac_word" >&5
4080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004083else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004084 case $vi_cv_path_python in
4085 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004086 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4087 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004088 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4099 fi
4100done
4101done
4102
Bram Moolenaar071d4272004-06-13 20:20:40 +00004103 ;;
4104esac
4105fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004106vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4107
Bram Moolenaar071d4272004-06-13 20:20:40 +00004108if test -n "$vi_cv_path_python"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004109 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4110echo "${ECHO_T}$vi_cv_path_python" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004111else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004112 echo "$as_me:$LINENO: result: no" >&5
4113echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004114fi
4115
4116 if test "X$vi_cv_path_python" != "X"; then
4117
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004118 echo "$as_me:$LINENO: checking Python version" >&5
4119echo $ECHO_N "checking Python version... $ECHO_C" >&6
4120if test "${vi_cv_var_python_version+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004122else
4123 vi_cv_var_python_version=`
4124 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004125
Bram Moolenaar071d4272004-06-13 20:20:40 +00004126fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004127echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4128echo "${ECHO_T}$vi_cv_var_python_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004129
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004130 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4131echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004132 if ${vi_cv_path_python} -c \
4133 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4134 then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004135 echo "$as_me:$LINENO: result: yep" >&5
4136echo "${ECHO_T}yep" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004137
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004138 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4139echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4140if test "${vi_cv_path_python_pfx+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004142else
4143 vi_cv_path_python_pfx=`
4144 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004145 "import sys; print sys.prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004146fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004147echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4148echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004149
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004150 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4151echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4152if test "${vi_cv_path_python_epfx+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004154else
4155 vi_cv_path_python_epfx=`
4156 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004157 "import sys; print sys.exec_prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004158fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004159echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4160echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004161
Bram Moolenaar071d4272004-06-13 20:20:40 +00004162
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004163 if test "${vi_cv_path_pythonpath+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004165else
4166 vi_cv_path_pythonpath=`
4167 unset PYTHONPATH;
4168 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004169 "import sys, string; print string.join(sys.path,':')"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004170fi
4171
4172
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004173
4174
4175# Check whether --with-python-config-dir or --without-python-config-dir was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004176if test "${with_python_config_dir+set}" = set; then
4177 withval="$with_python_config_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004178 vi_cv_path_python_conf="${withval}"
4179fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004180
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004181 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4182echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4183if test "${vi_cv_path_python_conf+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004185else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004186
Bram Moolenaar071d4272004-06-13 20:20:40 +00004187 vi_cv_path_python_conf=
4188 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4189 for subdir in lib share; do
4190 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4191 if test -d "$d" && test -f "$d/config.c"; then
4192 vi_cv_path_python_conf="$d"
4193 fi
4194 done
4195 done
Bram Moolenaar071d4272004-06-13 20:20:40 +00004196
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004197fi
4198echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4199echo "${ECHO_T}$vi_cv_path_python_conf" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004200
4201 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4202
4203 if test "X$PYTHON_CONFDIR" = "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004204 echo "$as_me:$LINENO: result: can't find it!" >&5
4205echo "${ECHO_T}can't find it!" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004206 else
4207
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004208 if test "${vi_cv_path_python_plibs+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004210else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004211
Bram Moolenaar071d4272004-06-13 20:20:40 +00004212 tmp_mkf="/tmp/Makefile-conf$$"
4213 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4214__:
4215 @echo "python_MODLIBS='$(MODLIBS)'"
4216 @echo "python_LIBS='$(LIBS)'"
4217 @echo "python_SYSLIBS='$(SYSLIBS)'"
4218 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4219eof
4220 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4221 rm -f ${tmp_mkf}
4222 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4223 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4224 vi_cv_path_python_plibs="-framework Python"
4225 else
4226 if test "${vi_cv_var_python_version}" = "1.4"; then
4227 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4228 else
4229 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4230 fi
4231 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4232 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4233 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004234
Bram Moolenaar071d4272004-06-13 20:20:40 +00004235fi
4236
4237
4238 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4239 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4240 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4241 else
4242 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
4243 fi
4244 PYTHON_SRC="if_python.c"
4245 if test "x$MACOSX" = "xyes"; then
4246 PYTHON_OBJ="objects/if_python.o"
4247 else
4248 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4249 fi
4250 if test "${vi_cv_var_python_version}" = "1.4"; then
4251 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4252 fi
4253 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4254
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004255 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4256echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004257 threadsafe_flag=
4258 thread_lib=
Bram Moolenaara1b5aa52006-10-10 09:41:28 +00004259 if test "`(uname) 2>/dev/null`" != Darwin; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004260 test "$GCC" = yes && threadsafe_flag="-pthread"
4261 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4262 threadsafe_flag="-D_THREAD_SAFE"
4263 thread_lib="-pthread"
4264 fi
4265 fi
4266 libs_save_old=$LIBS
4267 if test -n "$threadsafe_flag"; then
4268 cflags_save=$CFLAGS
4269 CFLAGS="$CFLAGS $threadsafe_flag"
4270 LIBS="$LIBS $thread_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004271 cat >conftest.$ac_ext <<_ACEOF
4272/* confdefs.h. */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004277
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004278int
4279main ()
4280{
4281
4282 ;
4283 return 0;
4284}
4285_ACEOF
4286rm -f conftest.$ac_objext conftest$ac_exeext
4287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag"
4296 || test ! -s conftest.err'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try='test -s conftest$ac_exeext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 echo "$as_me:$LINENO: result: yes" >&5
4309echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004310else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004311 echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
4314echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4316
Bram Moolenaar071d4272004-06-13 20:20:40 +00004317fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004318rm -f conftest.err conftest.$ac_objext \
4319 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004320 CFLAGS=$cflags_save
4321 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004322 echo "$as_me:$LINENO: result: no" >&5
4323echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004324 fi
4325
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004326 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4327echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004328 cflags_save=$CFLAGS
4329 libs_save=$LIBS
4330 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4331 LIBS="$LIBS $PYTHON_LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004332 cat >conftest.$ac_ext <<_ACEOF
4333/* confdefs.h. */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004338
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004339int
4340main ()
4341{
4342
4343 ;
4344 return 0;
4345}
4346_ACEOF
4347rm -f conftest.$ac_objext conftest$ac_exeext
4348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4349 (eval $ac_link) 2>conftest.er1
4350 ac_status=$?
4351 grep -v '^ *+' conftest.er1 >conftest.err
4352 rm -f conftest.er1
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try='test -z "$ac_c_werror_flag"
4357 || test ! -s conftest.err'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6; python_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004371else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004372 echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4376echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004377fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004378rm -f conftest.err conftest.$ac_objext \
4379 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004380 CFLAGS=$cflags_save
4381 LIBS=$libs_save
4382 if test $python_ok = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004383 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004384#define FEAT_PYTHON 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004385_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004386
4387 else
4388 LIBS=$libs_save_old
4389 PYTHON_SRC=
4390 PYTHON_OBJ=
4391 PYTHON_LIBS=
4392 PYTHON_CFLAGS=
4393 fi
4394
4395 fi
4396 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004397 echo "$as_me:$LINENO: result: too old" >&5
4398echo "${ECHO_T}too old" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004399 fi
4400 fi
4401fi
4402
4403
4404
4405
4406
4407
4408
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004409echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4410echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004411# Check whether --enable-tclinterp or --disable-tclinterp was given.
4412if test "${enable_tclinterp+set}" = set; then
4413 enableval="$enable_tclinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004414
Bram Moolenaar071d4272004-06-13 20:20:40 +00004415else
4416 enable_tclinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004417fi;
4418echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4419echo "${ECHO_T}$enable_tclinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004420
4421if test "$enable_tclinterp" = "yes"; then
4422
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004423 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4424echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4425
4426# Check whether --with-tclsh or --without-tclsh was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004427if test "${with_tclsh+set}" = set; then
4428 withval="$with_tclsh"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004429 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4430echo "${ECHO_T}$tclsh_name" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004431else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004432 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4433echo "${ECHO_T}no" >&6
4434fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004435 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4436set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004437echo "$as_me:$LINENO: checking for $ac_word" >&5
4438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004441else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004442 case $vi_cv_path_tcl in
4443 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004444 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4445 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004446 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458done
4459done
4460
Bram Moolenaar071d4272004-06-13 20:20:40 +00004461 ;;
4462esac
4463fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004464vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4465
Bram Moolenaar071d4272004-06-13 20:20:40 +00004466if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004467 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4468echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004469else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004470 echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004472fi
4473
Bram Moolenaar071d4272004-06-13 20:20:40 +00004474
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004475
4476 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004477 tclsh_name="tclsh8.2"
4478 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4479set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004480echo "$as_me:$LINENO: checking for $ac_word" >&5
4481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004484else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004485 case $vi_cv_path_tcl in
4486 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004487 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4488 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004489 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491for as_dir in $PATH
4492do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501done
4502done
4503
Bram Moolenaar071d4272004-06-13 20:20:40 +00004504 ;;
4505esac
4506fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004507vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4508
Bram Moolenaar071d4272004-06-13 20:20:40 +00004509if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004510 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4511echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004512else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004513 echo "$as_me:$LINENO: result: no" >&5
4514echo "${ECHO_T}no" >&6
4515fi
4516
4517 fi
4518 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4519 tclsh_name="tclsh8.0"
4520 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4521set dummy $tclsh_name; ac_word=$2
4522echo "$as_me:$LINENO: checking for $ac_word" >&5
4523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4524if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526else
4527 case $vi_cv_path_tcl in
4528 [\\/]* | ?:[\\/]*)
4529 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4530 ;;
4531 *)
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533for as_dir in $PATH
4534do
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4542 fi
4543done
4544done
4545
4546 ;;
4547esac
4548fi
4549vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4550
4551if test -n "$vi_cv_path_tcl"; then
4552 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4553echo "${ECHO_T}$vi_cv_path_tcl" >&6
4554else
4555 echo "$as_me:$LINENO: result: no" >&5
4556echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004557fi
4558
4559 fi
4560 if test "X$vi_cv_path_tcl" = "X"; then
4561 tclsh_name="tclsh"
4562 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4563set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004564echo "$as_me:$LINENO: checking for $ac_word" >&5
4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004568else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004569 case $vi_cv_path_tcl in
4570 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004571 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4572 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004573 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585done
4586done
4587
Bram Moolenaar071d4272004-06-13 20:20:40 +00004588 ;;
4589esac
4590fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004591vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4592
Bram Moolenaar071d4272004-06-13 20:20:40 +00004593if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004594 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4595echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004596else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004597 echo "$as_me:$LINENO: result: no" >&5
4598echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004599fi
4600
4601 fi
4602 if test "X$vi_cv_path_tcl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004603 echo "$as_me:$LINENO: checking Tcl version" >&5
4604echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004605 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4606 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004607 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4608echo "${ECHO_T}$tclver - OK" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004609 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
4610
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004611 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4612echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004613 if test "x$MACOSX" != "xyes"; then
Bram Moolenaar47136d72004-10-12 20:02:24 +00004614 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004615 else
4616 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4617 fi
4618 for try in $tclinc; do
4619 if test -f "$try/tcl.h"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004620 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4621echo "${ECHO_T}$try/tcl.h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004622 TCL_INC=$try
4623 break
4624 fi
4625 done
4626 if test -z "$TCL_INC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004627 echo "$as_me:$LINENO: result: <not found>" >&5
4628echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004629 SKIP_TCL=YES
4630 fi
4631 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004632 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4633echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004634 if test "x$MACOSX" != "xyes"; then
4635 tclcnf=`echo $tclinc | sed s/include/lib/g`
4636 else
4637 tclcnf="/System/Library/Frameworks/Tcl.framework"
4638 fi
4639 for try in $tclcnf; do
4640 if test -f $try/tclConfig.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004641 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4642echo "${ECHO_T}$try/tclConfig.sh" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004643 . $try/tclConfig.sh
4644 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
Bram Moolenaar9372a112005-12-06 19:59:18 +00004645 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 +00004646 break
4647 fi
4648 done
4649 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004650 echo "$as_me:$LINENO: result: <not found>" >&5
4651echo "${ECHO_T}<not found>" >&6
4652 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4653echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004654 tcllib=`echo $tclinc | sed s/include/lib/g`
4655 for ext in .so .a ; do
4656 for ver in "" $tclver ; do
4657 for try in $tcllib ; do
4658 trylib=tcl$ver$ext
4659 if test -f $try/lib$trylib ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004660 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4661echo "${ECHO_T}$try/lib$trylib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004662 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4663 if test "`(uname) 2>/dev/null`" = SunOS &&
4664 uname -r | grep '^5' >/dev/null; then
4665 TCL_LIBS="$TCL_LIBS -R $try"
4666 fi
4667 break 3
4668 fi
4669 done
4670 done
4671 done
4672 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004673 echo "$as_me:$LINENO: result: <not found>" >&5
4674echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004675 SKIP_TCL=YES
4676 fi
4677 fi
4678 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004679 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004680#define FEAT_TCL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004681_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004682
4683 TCL_SRC=if_tcl.c
4684 TCL_OBJ=objects/if_tcl.o
4685 TCL_PRO=if_tcl.pro
4686 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4687 fi
4688 fi
4689 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004690 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4691echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004692 fi
4693 fi
4694fi
4695
4696
4697
4698
4699
4700
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004701echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4702echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004703# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4704if test "${enable_rubyinterp+set}" = set; then
4705 enableval="$enable_rubyinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004706
Bram Moolenaar071d4272004-06-13 20:20:40 +00004707else
4708 enable_rubyinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004709fi;
4710echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4711echo "${ECHO_T}$enable_rubyinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004712if test "$enable_rubyinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004713
Bram Moolenaar071d4272004-06-13 20:20:40 +00004714 # Extract the first word of "ruby", so it can be a program name with args.
4715set dummy ruby; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004716echo "$as_me:$LINENO: checking for $ac_word" >&5
4717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4718if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004720else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004721 case $vi_cv_path_ruby in
4722 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004723 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4724 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004725 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737done
4738done
4739
Bram Moolenaar071d4272004-06-13 20:20:40 +00004740 ;;
4741esac
4742fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004743vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4744
Bram Moolenaar071d4272004-06-13 20:20:40 +00004745if test -n "$vi_cv_path_ruby"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004746 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4747echo "${ECHO_T}$vi_cv_path_ruby" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004748else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004749 echo "$as_me:$LINENO: result: no" >&5
4750echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004751fi
4752
4753 if test "X$vi_cv_path_ruby" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004754 echo "$as_me:$LINENO: checking Ruby version" >&5
4755echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
Bram Moolenaar0cb032e2005-04-23 20:52:00 +00004756 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 +00004757 echo "$as_me:$LINENO: result: OK" >&5
4758echo "${ECHO_T}OK" >&6
4759 echo "$as_me:$LINENO: checking Ruby header files" >&5
4760echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004761 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4762 if test "X$rubyhdrdir" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004763 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4764echo "${ECHO_T}$rubyhdrdir" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004765 RUBY_CFLAGS="-I$rubyhdrdir"
4766 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4767 if test "X$rubylibs" != "X"; then
4768 RUBY_LIBS="$rubylibs"
4769 fi
4770 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4771 if test -f "$rubyhdrdir/$librubyarg"; then
4772 librubyarg="$rubyhdrdir/$librubyarg"
4773 else
4774 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4775 if test -f "$rubylibdir/$librubyarg"; then
4776 librubyarg="$rubylibdir/$librubyarg"
4777 elif test "$librubyarg" = "libruby.a"; then
4778 librubyarg="-lruby"
4779 else
4780 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4781 fi
4782 fi
4783
4784 if test "X$librubyarg" != "X"; then
4785 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4786 fi
4787 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4788 if test "X$rubyldflags" != "X"; then
4789 LDFLAGS="$rubyldflags $LDFLAGS"
4790 fi
4791 RUBY_SRC="if_ruby.c"
4792 RUBY_OBJ="objects/if_ruby.o"
4793 RUBY_PRO="if_ruby.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004794 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004795#define FEAT_RUBY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004796_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004797
4798 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004799 echo "$as_me:$LINENO: result: not found" >&5
4800echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004801 fi
4802 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004803 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4804echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004805 fi
4806 fi
4807fi
4808
4809
4810
4811
4812
4813
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004814echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4815echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004816# Check whether --enable-cscope or --disable-cscope was given.
4817if test "${enable_cscope+set}" = set; then
4818 enableval="$enable_cscope"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004819
Bram Moolenaar071d4272004-06-13 20:20:40 +00004820else
4821 enable_cscope="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004822fi;
4823echo "$as_me:$LINENO: result: $enable_cscope" >&5
4824echo "${ECHO_T}$enable_cscope" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004825if test "$enable_cscope" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004826 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004827#define FEAT_CSCOPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004828_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004829
4830fi
4831
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004832echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4833echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004834# Check whether --enable-workshop or --disable-workshop was given.
4835if test "${enable_workshop+set}" = set; then
4836 enableval="$enable_workshop"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004837
Bram Moolenaar071d4272004-06-13 20:20:40 +00004838else
4839 enable_workshop="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004840fi;
4841echo "$as_me:$LINENO: result: $enable_workshop" >&5
4842echo "${ECHO_T}$enable_workshop" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004843if test "$enable_workshop" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004844 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004845#define FEAT_SUN_WORKSHOP 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004846_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004847
4848 WORKSHOP_SRC="workshop.c integration.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004849
Bram Moolenaar071d4272004-06-13 20:20:40 +00004850 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004851
Bram Moolenaar071d4272004-06-13 20:20:40 +00004852 if test "${enable_gui-xxx}" = xxx; then
4853 enable_gui=motif
4854 fi
4855fi
4856
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004857echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4858echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004859# Check whether --enable-netbeans or --disable-netbeans was given.
4860if test "${enable_netbeans+set}" = set; then
4861 enableval="$enable_netbeans"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004862
Bram Moolenaar071d4272004-06-13 20:20:40 +00004863else
4864 enable_netbeans="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004865fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004866if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004867 echo "$as_me:$LINENO: result: no" >&5
4868echo "${ECHO_T}no" >&6
4869
4870echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4871echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4872if test "${ac_cv_lib_socket_socket+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004874else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004875 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004876LIBS="-lsocket $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004877cat >conftest.$ac_ext <<_ACEOF
4878/* confdefs.h. */
4879_ACEOF
4880cat confdefs.h >>conftest.$ac_ext
4881cat >>conftest.$ac_ext <<_ACEOF
4882/* end confdefs.h. */
4883
Bram Moolenaar071d4272004-06-13 20:20:40 +00004884/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004885#ifdef __cplusplus
4886extern "C"
4887#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004888/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004889 builtin and then its argument prototype would still apply. */
4890char socket ();
4891int
4892main ()
4893{
4894socket ();
4895 ;
4896 return 0;
4897}
4898_ACEOF
4899rm -f conftest.$ac_objext conftest$ac_exeext
4900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901 (eval $ac_link) 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -z "$ac_c_werror_flag"
4909 || test ! -s conftest.err'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; } &&
4915 { ac_try='test -s conftest$ac_exeext'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 (eval $ac_try) 2>&5
4918 ac_status=$?
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4921 ac_cv_lib_socket_socket=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004922else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004923 echo "$as_me: failed program was:" >&5
4924sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004925
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004926ac_cv_lib_socket_socket=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004927fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004928rm -f conftest.err conftest.$ac_objext \
4929 conftest$ac_exeext conftest.$ac_ext
4930LIBS=$ac_check_lib_save_LIBS
4931fi
4932echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4933echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4934if test $ac_cv_lib_socket_socket = yes; then
4935 cat >>confdefs.h <<_ACEOF
4936#define HAVE_LIBSOCKET 1
4937_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004938
4939 LIBS="-lsocket $LIBS"
4940
Bram Moolenaar071d4272004-06-13 20:20:40 +00004941fi
4942
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004943
4944echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4945echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4946if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004948else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004949 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004950LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004951cat >conftest.$ac_ext <<_ACEOF
4952/* confdefs.h. */
4953_ACEOF
4954cat confdefs.h >>conftest.$ac_ext
4955cat >>conftest.$ac_ext <<_ACEOF
4956/* end confdefs.h. */
4957
Bram Moolenaar071d4272004-06-13 20:20:40 +00004958/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004959#ifdef __cplusplus
4960extern "C"
4961#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004962/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004963 builtin and then its argument prototype would still apply. */
4964char gethostbyname ();
4965int
4966main ()
4967{
4968gethostbyname ();
4969 ;
4970 return 0;
4971}
4972_ACEOF
4973rm -f conftest.$ac_objext conftest$ac_exeext
4974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>conftest.er1
4976 ac_status=$?
4977 grep -v '^ *+' conftest.er1 >conftest.err
4978 rm -f conftest.er1
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -z "$ac_c_werror_flag"
4983 || test ! -s conftest.err'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; } &&
4989 { ac_try='test -s conftest$ac_exeext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004996else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004997 echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004999
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005000ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005001fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005002rm -f conftest.err conftest.$ac_objext \
5003 conftest$ac_exeext conftest.$ac_ext
5004LIBS=$ac_check_lib_save_LIBS
5005fi
5006echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5007echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5008if test $ac_cv_lib_nsl_gethostbyname = yes; then
5009 cat >>confdefs.h <<_ACEOF
5010#define HAVE_LIBNSL 1
5011_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005012
5013 LIBS="-lnsl $LIBS"
5014
Bram Moolenaar071d4272004-06-13 20:20:40 +00005015fi
5016
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005017 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5018echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5019 cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h. */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005025
5026#include <stdio.h>
5027#include <stdlib.h>
5028#include <stdarg.h>
5029#include <fcntl.h>
5030#include <netdb.h>
5031#include <netinet/in.h>
5032#include <errno.h>
5033#include <sys/types.h>
5034#include <sys/socket.h>
5035 /* Check bitfields */
5036 struct nbbuf {
5037 unsigned int initDone:1;
5038 ushort signmaplen;
5039 };
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005040
5041int
5042main ()
5043{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005044
5045 /* Check creating a socket. */
5046 struct sockaddr_in server;
5047 (void)socket(AF_INET, SOCK_STREAM, 0);
5048 (void)htons(100);
5049 (void)gethostbyname("microsoft.com");
5050 if (errno == ECONNREFUSED)
5051 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005052
5053 ;
5054 return 0;
5055}
5056_ACEOF
5057rm -f conftest.$ac_objext conftest$ac_exeext
5058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>conftest.er1
5060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005081else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005082 echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
5085echo "$as_me:$LINENO: result: no" >&5
5086echo "${ECHO_T}no" >&6; enable_netbeans="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005087fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005088rm -f conftest.err conftest.$ac_objext \
5089 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005090else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005091 echo "$as_me:$LINENO: result: yes" >&5
5092echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005093fi
5094if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005095 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005096#define FEAT_NETBEANS_INTG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005097_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005098
5099 NETBEANS_SRC="netbeans.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005100
Bram Moolenaar071d4272004-06-13 20:20:40 +00005101 NETBEANS_OBJ="objects/netbeans.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005102
Bram Moolenaar071d4272004-06-13 20:20:40 +00005103fi
5104
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005105echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5106echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005107# Check whether --enable-sniff or --disable-sniff was given.
5108if test "${enable_sniff+set}" = set; then
5109 enableval="$enable_sniff"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005110
Bram Moolenaar071d4272004-06-13 20:20:40 +00005111else
5112 enable_sniff="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005113fi;
5114echo "$as_me:$LINENO: result: $enable_sniff" >&5
5115echo "${ECHO_T}$enable_sniff" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005116if test "$enable_sniff" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005117 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005118#define FEAT_SNIFF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005119_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005120
5121 SNIFF_SRC="if_sniff.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005122
Bram Moolenaar071d4272004-06-13 20:20:40 +00005123 SNIFF_OBJ="objects/if_sniff.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005124
Bram Moolenaar071d4272004-06-13 20:20:40 +00005125fi
5126
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005127echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5128echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005129# Check whether --enable-multibyte or --disable-multibyte was given.
5130if test "${enable_multibyte+set}" = set; then
5131 enableval="$enable_multibyte"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005132
Bram Moolenaar071d4272004-06-13 20:20:40 +00005133else
5134 enable_multibyte="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005135fi;
5136echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5137echo "${ECHO_T}$enable_multibyte" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005138if test "$enable_multibyte" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005139 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005140#define FEAT_MBYTE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005141_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005142
5143fi
5144
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005145echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5146echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005147# Check whether --enable-hangulinput or --disable-hangulinput was given.
5148if test "${enable_hangulinput+set}" = set; then
5149 enableval="$enable_hangulinput"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005150
Bram Moolenaar071d4272004-06-13 20:20:40 +00005151else
5152 enable_hangulinput="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005153fi;
5154echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5155echo "${ECHO_T}$enable_hangulinput" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005156
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005157echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5158echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005159# Check whether --enable-xim or --disable-xim was given.
5160if test "${enable_xim+set}" = set; then
5161 enableval="$enable_xim"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005162 echo "$as_me:$LINENO: result: $enable_xim" >&5
5163echo "${ECHO_T}$enable_xim" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005164else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005165 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5166echo "${ECHO_T}defaulting to auto" >&6
5167fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005168
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005169echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5170echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005171# Check whether --enable-fontset or --disable-fontset was given.
5172if test "${enable_fontset+set}" = set; then
5173 enableval="$enable_fontset"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005174
Bram Moolenaar071d4272004-06-13 20:20:40 +00005175else
5176 enable_fontset="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005177fi;
5178echo "$as_me:$LINENO: result: $enable_fontset" >&5
5179echo "${ECHO_T}$enable_fontset" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005180
5181test -z "$with_x" && with_x=yes
5182test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5183if test "$with_x" = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005184 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5185echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005186else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005187
Bram Moolenaar071d4272004-06-13 20:20:40 +00005188 # Extract the first word of "xmkmf", so it can be a program name with args.
5189set dummy xmkmf; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005190echo "$as_me:$LINENO: checking for $ac_word" >&5
5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_path_xmkmfpath+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005194else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005195 case $xmkmfpath in
5196 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005197 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5198 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005199 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211done
5212done
5213
Bram Moolenaar071d4272004-06-13 20:20:40 +00005214 ;;
5215esac
5216fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005217xmkmfpath=$ac_cv_path_xmkmfpath
5218
Bram Moolenaar071d4272004-06-13 20:20:40 +00005219if test -n "$xmkmfpath"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005220 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5221echo "${ECHO_T}$xmkmfpath" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005222else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005225fi
5226
5227
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005228 echo "$as_me:$LINENO: checking for X" >&5
5229echo $ECHO_N "checking for X... $ECHO_C" >&6
5230
Bram Moolenaar071d4272004-06-13 20:20:40 +00005231
5232# Check whether --with-x or --without-x was given.
5233if test "${with_x+set}" = set; then
5234 withval="$with_x"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005235
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005236fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005237# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5238if test "x$with_x" = xno; then
5239 # The user explicitly disabled X.
5240 have_x=disabled
5241else
5242 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5243 # Both variables are already set.
5244 have_x=yes
5245 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005246 if test "${ac_cv_have_x+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005248else
5249 # One or both of the vars are not set, and there is no cached value.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005250ac_x_includes=no ac_x_libraries=no
5251rm -fr conftest.dir
5252if mkdir conftest.dir; then
5253 cd conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005254 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005255 cat >Imakefile <<'_ACEOF'
Bram Moolenaar071d4272004-06-13 20:20:40 +00005256acfindx:
5257 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005258_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005259 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5260 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5261 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5262 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5263 for ac_extension in a so sl; do
5264 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005265 test -f $ac_im_libdir/libX11.$ac_extension; then
5266 ac_im_usrlibdir=$ac_im_libdir; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00005267 fi
5268 done
5269 # Screen out bogus values from the imake configuration. They are
5270 # bogus both because they are the default anyway, and because
5271 # using them would break gcc on systems where it needs fixed includes.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005272 case $ac_im_incroot in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005273 /usr/include) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005274 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005275 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005276 case $ac_im_usrlibdir in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005277 /usr/lib | /lib) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005278 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005279 esac
5280 fi
5281 cd ..
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005282 rm -fr conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005283fi
5284
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005285# Standard set of common directories for X headers.
5286# Check X11 before X11Rn because it is often a symlink to the current release.
5287ac_x_header_dirs='
5288/usr/X11/include
5289/usr/X11R6/include
5290/usr/X11R5/include
5291/usr/X11R4/include
Bram Moolenaar071d4272004-06-13 20:20:40 +00005292
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005293/usr/include/X11
5294/usr/include/X11R6
5295/usr/include/X11R5
5296/usr/include/X11R4
5297
5298/usr/local/X11/include
5299/usr/local/X11R6/include
5300/usr/local/X11R5/include
5301/usr/local/X11R4/include
5302
5303/usr/local/include/X11
5304/usr/local/include/X11R6
5305/usr/local/include/X11R5
5306/usr/local/include/X11R4
5307
5308/usr/X386/include
5309/usr/x386/include
5310/usr/XFree86/include/X11
5311
5312/usr/include
5313/usr/local/include
5314/usr/unsupported/include
5315/usr/athena/include
5316/usr/local/x11r5/include
5317/usr/lpp/Xamples/include
5318
5319/usr/openwin/include
5320/usr/openwin/share/include'
5321
5322if test "$ac_x_includes" = no; then
5323 # Guess where to find include files, by looking for Intrinsic.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005324 # First, try using that file with no special directory specified.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005325 cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h. */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h. */
5331#include <X11/Intrinsic.h>
5332_ACEOF
5333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } >/dev/null; then
5341 if test -s conftest.err; then
5342 ac_cpp_err=$ac_c_preproc_warn_flag
5343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5344 else
5345 ac_cpp_err=
5346 fi
5347else
5348 ac_cpp_err=yes
5349fi
5350if test -z "$ac_cpp_err"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005351 # We can compile using X headers with no special include directory.
5352ac_x_includes=
5353else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005354 echo "$as_me: failed program was:" >&5
5355sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 for ac_dir in $ac_x_header_dirs; do
5358 if test -r "$ac_dir/X11/Intrinsic.h"; then
5359 ac_x_includes=$ac_dir
5360 break
5361 fi
5362done
Bram Moolenaar071d4272004-06-13 20:20:40 +00005363fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005364rm -f conftest.err conftest.$ac_ext
5365fi # $ac_x_includes = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005366
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005367if test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005368 # Check for the libraries.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005369 # See if we find them without any special options.
5370 # Don't add to $LIBS permanently.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005371 ac_save_LIBS=$LIBS
5372 LIBS="-lXt $LIBS"
5373 cat >conftest.$ac_ext <<_ACEOF
5374/* confdefs.h. */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h. */
5379#include <X11/Intrinsic.h>
5380int
5381main ()
5382{
5383XtMalloc (0)
5384 ;
5385 return 0;
5386}
5387_ACEOF
5388rm -f conftest.$ac_objext conftest$ac_exeext
5389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5390 (eval $ac_link) 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest$ac_exeext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 LIBS=$ac_save_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005411# We can link X programs with no special library path.
5412ac_x_libraries=
5413else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005414 echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417LIBS=$ac_save_LIBS
5418for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Bram Moolenaar071d4272004-06-13 20:20:40 +00005419do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005420 # Don't even attempt the hair of trying to link an X program!
Bram Moolenaar071d4272004-06-13 20:20:40 +00005421 for ac_extension in a so sl; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005422 if test -r $ac_dir/libXt.$ac_extension; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005423 ac_x_libraries=$ac_dir
5424 break 2
5425 fi
5426 done
5427done
5428fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005429rm -f conftest.err conftest.$ac_objext \
5430 conftest$ac_exeext conftest.$ac_ext
5431fi # $ac_x_libraries = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005432
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005433if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005434 # Didn't find X anywhere. Cache the known absence of X.
5435 ac_cv_have_x="have_x=no"
5436else
5437 # Record where we found X for the cache.
5438 ac_cv_have_x="have_x=yes \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005439 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005440fi
5441fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005442
Bram Moolenaar071d4272004-06-13 20:20:40 +00005443 fi
5444 eval "$ac_cv_have_x"
5445fi # $with_x != no
5446
5447if test "$have_x" != yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005448 echo "$as_me:$LINENO: result: $have_x" >&5
5449echo "${ECHO_T}$have_x" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005450 no_x=yes
5451else
5452 # If each of the values was on the command line, it overrides each guess.
5453 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5454 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5455 # Update the cache value to reflect the command line values.
5456 ac_cv_have_x="have_x=yes \
5457 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005458 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5459echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005460fi
5461
5462if test "$no_x" = yes; then
5463 # Not all programs may use this symbol, but it does not hurt to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005464
5465cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005466#define X_DISPLAY_MISSING 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005467_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005468
5469 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5470else
5471 if test -n "$x_includes"; then
5472 X_CFLAGS="$X_CFLAGS -I$x_includes"
5473 fi
5474
5475 # It would also be nice to do this for all -L options, not just this one.
5476 if test -n "$x_libraries"; then
5477 X_LIBS="$X_LIBS -L$x_libraries"
5478 # For Solaris; some versions of Sun CC require a space after -R and
5479 # others require no space. Words are not sufficient . . . .
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005480 case `(uname -sr) 2>/dev/null` in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005481 "SunOS 5"*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005482 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5483echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5484 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5485 cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h. */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005491
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005492int
5493main ()
5494{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005495
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005496 ;
5497 return 0;
5498}
5499_ACEOF
5500rm -f conftest.$ac_objext conftest$ac_exeext
5501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5502 (eval $ac_link) 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -z "$ac_c_werror_flag"
5510 || test ! -s conftest.err'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try='test -s conftest$ac_exeext'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005522 ac_R_nospace=yes
5523else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005524 echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
5527ac_R_nospace=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005528fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005529rm -f conftest.err conftest.$ac_objext \
5530 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005531 if test $ac_R_nospace = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005532 echo "$as_me:$LINENO: result: no" >&5
5533echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005534 X_LIBS="$X_LIBS -R$x_libraries"
5535 else
5536 LIBS="$ac_xsave_LIBS -R $x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005537 cat >conftest.$ac_ext <<_ACEOF
5538/* confdefs.h. */
5539_ACEOF
5540cat confdefs.h >>conftest.$ac_ext
5541cat >>conftest.$ac_ext <<_ACEOF
5542/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005543
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005544int
5545main ()
5546{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005547
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005548 ;
5549 return 0;
5550}
5551_ACEOF
5552rm -f conftest.$ac_objext conftest$ac_exeext
5553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5554 (eval $ac_link) 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try='test -z "$ac_c_werror_flag"
5562 || test ! -s conftest.err'
5563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 (eval $ac_try) 2>&5
5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; } &&
5568 { ac_try='test -s conftest$ac_exeext'
5569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 (eval $ac_try) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005574 ac_R_space=yes
5575else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005576 echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
5579ac_R_space=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005580fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005581rm -f conftest.err conftest.$ac_objext \
5582 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005583 if test $ac_R_space = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005584 echo "$as_me:$LINENO: result: yes" >&5
5585echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005586 X_LIBS="$X_LIBS -R $x_libraries"
5587 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005588 echo "$as_me:$LINENO: result: neither works" >&5
5589echo "${ECHO_T}neither works" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005590 fi
5591 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005592 LIBS=$ac_xsave_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005593 esac
5594 fi
5595
5596 # Check for system-dependent libraries X programs must link with.
5597 # Do this before checking for the system-independent R6 libraries
5598 # (-lICE), since we may need -lsocket or whatever for X linking.
5599
5600 if test "$ISC" = yes; then
5601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5602 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005603 # Martyn Johnson says this is needed for Ultrix, if the X
5604 # libraries were built with DECnet support. And Karl Berry says
Bram Moolenaar071d4272004-06-13 20:20:40 +00005605 # the Alpha needs dnet_stub (dnet does not exist).
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005606 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5607 cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
5613
Bram Moolenaar071d4272004-06-13 20:20:40 +00005614/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005615#ifdef __cplusplus
5616extern "C"
5617#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005618/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005619 builtin and then its argument prototype would still apply. */
5620char XOpenDisplay ();
5621int
5622main ()
5623{
5624XOpenDisplay ();
5625 ;
5626 return 0;
5627}
5628_ACEOF
5629rm -f conftest.$ac_objext conftest$ac_exeext
5630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631 (eval $ac_link) 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } &&
5638 { ac_try='test -z "$ac_c_werror_flag"
5639 || test ! -s conftest.err'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest$ac_exeext'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 (eval $ac_try) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5651 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00005652else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005653 echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005655
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005656echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5657echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5658if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660else
5661 ac_check_lib_save_LIBS=$LIBS
5662LIBS="-ldnet $LIBS"
5663cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h. */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h. */
5669
5670/* Override any gcc2 internal prototype to avoid an error. */
5671#ifdef __cplusplus
5672extern "C"
5673#endif
5674/* We use char because int might match the return type of a gcc2
5675 builtin and then its argument prototype would still apply. */
5676char dnet_ntoa ();
5677int
5678main ()
5679{
5680dnet_ntoa ();
5681 ;
5682 return 0;
5683}
5684_ACEOF
5685rm -f conftest.$ac_objext conftest$ac_exeext
5686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5687 (eval $ac_link) 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -z "$ac_c_werror_flag"
5695 || test ! -s conftest.err'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest$ac_exeext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_lib_dnet_dnet_ntoa=yes
5708else
5709 echo "$as_me: failed program was:" >&5
5710sed 's/^/| /' conftest.$ac_ext >&5
5711
5712ac_cv_lib_dnet_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005713fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005714rm -f conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5716LIBS=$ac_check_lib_save_LIBS
5717fi
5718echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5719echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5720if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005721 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005722fi
5723
5724 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005725 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5726echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5727if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005729else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005730 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005731LIBS="-ldnet_stub $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005732cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h. */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h. */
5738
Bram Moolenaar071d4272004-06-13 20:20:40 +00005739/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005740#ifdef __cplusplus
5741extern "C"
5742#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005743/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005744 builtin and then its argument prototype would still apply. */
5745char dnet_ntoa ();
5746int
5747main ()
5748{
5749dnet_ntoa ();
5750 ;
5751 return 0;
5752}
5753_ACEOF
5754rm -f conftest.$ac_objext conftest$ac_exeext
5755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756 (eval $ac_link) 2>conftest.er1
5757 ac_status=$?
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -z "$ac_c_werror_flag"
5764 || test ! -s conftest.err'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; } &&
5770 { ac_try='test -s conftest$ac_exeext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005777else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005778 echo "$as_me: failed program was:" >&5
5779sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005780
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005781ac_cv_lib_dnet_stub_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005782fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005783rm -f conftest.err conftest.$ac_objext \
5784 conftest$ac_exeext conftest.$ac_ext
5785LIBS=$ac_check_lib_save_LIBS
5786fi
5787echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5788echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5789if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005790 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005791fi
5792
5793 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005794fi
5795rm -f conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5797 LIBS="$ac_xsave_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005798
5799 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5800 # to get the SysV transport functions.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005801 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005802 # needs -lnsl.
5803 # The nsl library prevents programs from opening the X display
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005804 # on Irix 5.2, according to T.E. Dickey.
5805 # The functions gethostbyname, getservbyname, and inet_addr are
5806 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5807 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5808echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5809if test "${ac_cv_func_gethostbyname+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005811else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005812 cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h. */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h. */
5818/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5820#define gethostbyname innocuous_gethostbyname
5821
Bram Moolenaar071d4272004-06-13 20:20:40 +00005822/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005823 which can conflict with char gethostbyname (); below.
5824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825 <limits.h> exists even on freestanding compilers. */
5826
5827#ifdef __STDC__
5828# include <limits.h>
5829#else
5830# include <assert.h>
5831#endif
5832
5833#undef gethostbyname
5834
Bram Moolenaar071d4272004-06-13 20:20:40 +00005835/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005836#ifdef __cplusplus
5837extern "C"
5838{
5839#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005840/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005841 builtin and then its argument prototype would still apply. */
5842char gethostbyname ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005843/* The GNU C library defines this for functions which it implements
5844 to always fail with ENOSYS. Some functions are actually named
5845 something starting with __ and the normal name is an alias. */
5846#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5847choke me
5848#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005849char (*f) () = gethostbyname;
5850#endif
5851#ifdef __cplusplus
5852}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005853#endif
5854
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005855int
5856main ()
5857{
5858return f != gethostbyname;
5859 ;
5860 return 0;
5861}
5862_ACEOF
5863rm -f conftest.$ac_objext conftest$ac_exeext
5864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865 (eval $ac_link) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try='test -s conftest$ac_exeext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_cv_func_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005886else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005887 echo "$as_me: failed program was:" >&5
5888sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005889
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005890ac_cv_func_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005891fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005892rm -f conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894fi
5895echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5896echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005897
5898 if test $ac_cv_func_gethostbyname = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005899 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5900echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5901if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005903else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005904 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005905LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005906cat >conftest.$ac_ext <<_ACEOF
5907/* confdefs.h. */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
5912
Bram Moolenaar071d4272004-06-13 20:20:40 +00005913/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005914#ifdef __cplusplus
5915extern "C"
5916#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005917/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005918 builtin and then its argument prototype would still apply. */
5919char gethostbyname ();
5920int
5921main ()
5922{
5923gethostbyname ();
5924 ;
5925 return 0;
5926}
5927_ACEOF
5928rm -f conftest.$ac_objext conftest$ac_exeext
5929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest$ac_exeext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005951else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005952 echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005954
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005955ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005956fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005957rm -f conftest.err conftest.$ac_objext \
5958 conftest$ac_exeext conftest.$ac_ext
5959LIBS=$ac_check_lib_save_LIBS
5960fi
5961echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5962echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5963if test $ac_cv_lib_nsl_gethostbyname = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005964 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005965fi
5966
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005967 if test $ac_cv_lib_nsl_gethostbyname = no; then
5968 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5969echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5970if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972else
5973 ac_check_lib_save_LIBS=$LIBS
5974LIBS="-lbsd $LIBS"
5975cat >conftest.$ac_ext <<_ACEOF
5976/* confdefs.h. */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h. */
5981
5982/* Override any gcc2 internal prototype to avoid an error. */
5983#ifdef __cplusplus
5984extern "C"
5985#endif
5986/* We use char because int might match the return type of a gcc2
5987 builtin and then its argument prototype would still apply. */
5988char gethostbyname ();
5989int
5990main ()
5991{
5992gethostbyname ();
5993 ;
5994 return 0;
5995}
5996_ACEOF
5997rm -f conftest.$ac_objext conftest$ac_exeext
5998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_lib_bsd_gethostbyname=yes
6020else
6021 echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024ac_cv_lib_bsd_gethostbyname=no
6025fi
6026rm -f conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6028LIBS=$ac_check_lib_save_LIBS
6029fi
6030echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6031echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6032if test $ac_cv_lib_bsd_gethostbyname = yes; then
6033 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6034fi
6035
6036 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00006037 fi
6038
6039 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6040 # socket/setsockopt and other routines are undefined under SCO ODT
6041 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006042 # on later versions), says Simon Leinen: it contains gethostby*
6043 # variants that don't use the name server (or something). -lsocket
6044 # must be given before -lnsl if both are needed. We assume that
6045 # if connect needs -lnsl, so does gethostbyname.
6046 echo "$as_me:$LINENO: checking for connect" >&5
6047echo $ECHO_N "checking for connect... $ECHO_C" >&6
6048if test "${ac_cv_func_connect+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006050else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006051 cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h. */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h. */
6057/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6059#define connect innocuous_connect
6060
Bram Moolenaar071d4272004-06-13 20:20:40 +00006061/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006062 which can conflict with char connect (); below.
6063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6064 <limits.h> exists even on freestanding compilers. */
6065
6066#ifdef __STDC__
6067# include <limits.h>
6068#else
6069# include <assert.h>
6070#endif
6071
6072#undef connect
6073
Bram Moolenaar071d4272004-06-13 20:20:40 +00006074/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006075#ifdef __cplusplus
6076extern "C"
6077{
6078#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006079/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006080 builtin and then its argument prototype would still apply. */
6081char connect ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006082/* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085#if defined (__stub_connect) || defined (__stub___connect)
6086choke me
6087#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006088char (*f) () = connect;
6089#endif
6090#ifdef __cplusplus
6091}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006092#endif
6093
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006094int
6095main ()
6096{
6097return f != connect;
6098 ;
6099 return 0;
6100}
6101_ACEOF
6102rm -f conftest.$ac_objext conftest$ac_exeext
6103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try='test -z "$ac_c_werror_flag"
6112 || test ! -s conftest.err'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; } &&
6118 { ac_try='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_func_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006125else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006126 echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006128
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006129ac_cv_func_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006130fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006131rm -f conftest.err conftest.$ac_objext \
6132 conftest$ac_exeext conftest.$ac_ext
6133fi
6134echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6135echo "${ECHO_T}$ac_cv_func_connect" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006136
6137 if test $ac_cv_func_connect = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006138 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6139echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6140if test "${ac_cv_lib_socket_connect+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006142else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006143 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006144LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006145cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151
Bram Moolenaar071d4272004-06-13 20:20:40 +00006152/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006153#ifdef __cplusplus
6154extern "C"
6155#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006156/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006157 builtin and then its argument prototype would still apply. */
6158char connect ();
6159int
6160main ()
6161{
6162connect ();
6163 ;
6164 return 0;
6165}
6166_ACEOF
6167rm -f conftest.$ac_objext conftest$ac_exeext
6168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6169 (eval $ac_link) 2>conftest.er1
6170 ac_status=$?
6171 grep -v '^ *+' conftest.er1 >conftest.err
6172 rm -f conftest.er1
6173 cat conftest.err >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -z "$ac_c_werror_flag"
6177 || test ! -s conftest.err'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; } &&
6183 { ac_try='test -s conftest$ac_exeext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_cv_lib_socket_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006190else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006191 echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006193
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006194ac_cv_lib_socket_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006195fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006196rm -f conftest.err conftest.$ac_objext \
6197 conftest$ac_exeext conftest.$ac_ext
6198LIBS=$ac_check_lib_save_LIBS
6199fi
6200echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6201echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6202if test $ac_cv_lib_socket_connect = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006203 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006204fi
6205
6206 fi
6207
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006208 # Guillermo Gomez says -lposix is necessary on A/UX.
6209 echo "$as_me:$LINENO: checking for remove" >&5
6210echo $ECHO_N "checking for remove... $ECHO_C" >&6
6211if test "${ac_cv_func_remove+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006213else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006214 cat >conftest.$ac_ext <<_ACEOF
6215/* confdefs.h. */
6216_ACEOF
6217cat confdefs.h >>conftest.$ac_ext
6218cat >>conftest.$ac_ext <<_ACEOF
6219/* end confdefs.h. */
6220/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6222#define remove innocuous_remove
6223
Bram Moolenaar071d4272004-06-13 20:20:40 +00006224/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006225 which can conflict with char remove (); below.
6226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227 <limits.h> exists even on freestanding compilers. */
6228
6229#ifdef __STDC__
6230# include <limits.h>
6231#else
6232# include <assert.h>
6233#endif
6234
6235#undef remove
6236
Bram Moolenaar071d4272004-06-13 20:20:40 +00006237/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006238#ifdef __cplusplus
6239extern "C"
6240{
6241#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006242/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006243 builtin and then its argument prototype would still apply. */
6244char remove ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006245/* The GNU C library defines this for functions which it implements
6246 to always fail with ENOSYS. Some functions are actually named
6247 something starting with __ and the normal name is an alias. */
6248#if defined (__stub_remove) || defined (__stub___remove)
6249choke me
6250#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006251char (*f) () = remove;
6252#endif
6253#ifdef __cplusplus
6254}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006255#endif
6256
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006257int
6258main ()
6259{
6260return f != remove;
6261 ;
6262 return 0;
6263}
6264_ACEOF
6265rm -f conftest.$ac_objext conftest$ac_exeext
6266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267 (eval $ac_link) 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -z "$ac_c_werror_flag"
6275 || test ! -s conftest.err'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; } &&
6281 { ac_try='test -s conftest$ac_exeext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 ac_cv_func_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006288else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006289 echo "$as_me: failed program was:" >&5
6290sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006291
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006292ac_cv_func_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006293fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006294rm -f conftest.err conftest.$ac_objext \
6295 conftest$ac_exeext conftest.$ac_ext
6296fi
6297echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6298echo "${ECHO_T}$ac_cv_func_remove" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006299
6300 if test $ac_cv_func_remove = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006301 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6302echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6303if test "${ac_cv_lib_posix_remove+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006305else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006306 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006307LIBS="-lposix $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006308cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h. */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h. */
6314
Bram Moolenaar071d4272004-06-13 20:20:40 +00006315/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006316#ifdef __cplusplus
6317extern "C"
6318#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006319/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006320 builtin and then its argument prototype would still apply. */
6321char remove ();
6322int
6323main ()
6324{
6325remove ();
6326 ;
6327 return 0;
6328}
6329_ACEOF
6330rm -f conftest.$ac_objext conftest$ac_exeext
6331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332 (eval $ac_link) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest$ac_exeext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_cv_lib_posix_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006353else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006354 echo "$as_me: failed program was:" >&5
6355sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006356
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006357ac_cv_lib_posix_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006358fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006359rm -f conftest.err conftest.$ac_objext \
6360 conftest$ac_exeext conftest.$ac_ext
6361LIBS=$ac_check_lib_save_LIBS
6362fi
6363echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6364echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6365if test $ac_cv_lib_posix_remove = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006367fi
6368
6369 fi
6370
6371 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006372 echo "$as_me:$LINENO: checking for shmat" >&5
6373echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6374if test "${ac_cv_func_shmat+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006376else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006377 cat >conftest.$ac_ext <<_ACEOF
6378/* confdefs.h. */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h. */
6383/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6385#define shmat innocuous_shmat
6386
Bram Moolenaar071d4272004-06-13 20:20:40 +00006387/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006388 which can conflict with char shmat (); below.
6389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6390 <limits.h> exists even on freestanding compilers. */
6391
6392#ifdef __STDC__
6393# include <limits.h>
6394#else
6395# include <assert.h>
6396#endif
6397
6398#undef shmat
6399
Bram Moolenaar071d4272004-06-13 20:20:40 +00006400/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006401#ifdef __cplusplus
6402extern "C"
6403{
6404#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006405/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006406 builtin and then its argument prototype would still apply. */
6407char shmat ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006408/* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411#if defined (__stub_shmat) || defined (__stub___shmat)
6412choke me
6413#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006414char (*f) () = shmat;
6415#endif
6416#ifdef __cplusplus
6417}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006418#endif
6419
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006420int
6421main ()
6422{
6423return f != shmat;
6424 ;
6425 return 0;
6426}
6427_ACEOF
6428rm -f conftest.$ac_objext conftest$ac_exeext
6429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest$ac_exeext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_cv_func_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006451else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006452 echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006454
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006455ac_cv_func_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006456fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006457rm -f conftest.err conftest.$ac_objext \
6458 conftest$ac_exeext conftest.$ac_ext
6459fi
6460echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6461echo "${ECHO_T}$ac_cv_func_shmat" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006462
6463 if test $ac_cv_func_shmat = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006464 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6465echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6466if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006468else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006469 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006470LIBS="-lipc $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006471cat >conftest.$ac_ext <<_ACEOF
6472/* confdefs.h. */
6473_ACEOF
6474cat confdefs.h >>conftest.$ac_ext
6475cat >>conftest.$ac_ext <<_ACEOF
6476/* end confdefs.h. */
6477
Bram Moolenaar071d4272004-06-13 20:20:40 +00006478/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006479#ifdef __cplusplus
6480extern "C"
6481#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006482/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006483 builtin and then its argument prototype would still apply. */
6484char shmat ();
6485int
6486main ()
6487{
6488shmat ();
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493rm -f conftest.$ac_objext conftest$ac_exeext
6494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6495 (eval $ac_link) 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try='test -z "$ac_c_werror_flag"
6503 || test ! -s conftest.err'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 ac_cv_lib_ipc_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006516else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006517 echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006519
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006520ac_cv_lib_ipc_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006521fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006522rm -f conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524LIBS=$ac_check_lib_save_LIBS
6525fi
6526echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6527echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6528if test $ac_cv_lib_ipc_shmat = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006529 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006530fi
6531
6532 fi
6533 fi
6534
6535 # Check for libraries that X11R6 Xt/Xaw programs need.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006536 ac_save_LDFLAGS=$LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006537 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6538 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6539 # check for ICE first), but we must link in the order -lSM -lICE or
6540 # we get undefined symbols. So assume we have SM if we have ICE.
6541 # These have to be linked with before -lX11, unlike the other
6542 # libraries we check for below, so use a different variable.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006543 # John Interrante, Karl Berry
6544 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6545echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6546if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006548else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006549 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006550LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006551cat >conftest.$ac_ext <<_ACEOF
6552/* confdefs.h. */
6553_ACEOF
6554cat confdefs.h >>conftest.$ac_ext
6555cat >>conftest.$ac_ext <<_ACEOF
6556/* end confdefs.h. */
6557
Bram Moolenaar071d4272004-06-13 20:20:40 +00006558/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006559#ifdef __cplusplus
6560extern "C"
6561#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006562/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006563 builtin and then its argument prototype would still apply. */
6564char IceConnectionNumber ();
6565int
6566main ()
6567{
6568IceConnectionNumber ();
6569 ;
6570 return 0;
6571}
6572_ACEOF
6573rm -f conftest.$ac_objext conftest$ac_exeext
6574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_c_werror_flag"
6583 || test ! -s conftest.err'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest$ac_exeext'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
6595 ac_cv_lib_ICE_IceConnectionNumber=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006596else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006597 echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006599
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006600ac_cv_lib_ICE_IceConnectionNumber=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006601fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006602rm -f conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext conftest.$ac_ext
6604LIBS=$ac_check_lib_save_LIBS
6605fi
6606echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6607echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6608if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006609 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006610fi
6611
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006612 LDFLAGS=$ac_save_LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006613
6614fi
6615
6616
6617 if test "$OS390Unix" = "yes"; then
6618 CFLAGS="$CFLAGS -W c,dll"
6619 LDFLAGS="$LDFLAGS -W l,dll"
6620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6621 fi
6622
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006623
Bram Moolenaar071d4272004-06-13 20:20:40 +00006624 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6625 x_libraries=`echo "$x_includes" | sed s/include/lib/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006626 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6627echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006628 X_LIBS="$X_LIBS -L$x_libraries"
6629 if test "`(uname) 2>/dev/null`" = SunOS &&
6630 uname -r | grep '^5' >/dev/null; then
6631 X_LIBS="$X_LIBS -R $x_libraries"
6632 fi
6633 fi
6634
6635 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6636 x_includes=`echo "$x_libraries" | sed s/lib/include/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006637 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6638echo "${ECHO_T}Corrected X includes to $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006639 X_CFLAGS="$X_CFLAGS -I$x_includes"
6640 fi
6641
6642 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6643 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6644 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6645
6646
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006647 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6648echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006649 cflags_save=$CFLAGS
6650 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006651 cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h. */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006657#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006658int
6659main ()
6660{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006661
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006662 ;
6663 return 0;
6664}
6665_ACEOF
6666rm -f conftest.$ac_objext
6667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6668 (eval $ac_compile) 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } &&
6675 { ac_try='test -z "$ac_c_werror_flag"
6676 || test ! -s conftest.err'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; } &&
6682 { ac_try='test -s conftest.$ac_objext'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 echo "$as_me:$LINENO: result: yes" >&5
6689echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006690else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006691 echo "$as_me: failed program was:" >&5
6692sed 's/^/| /' conftest.$ac_ext >&5
6693
6694echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6; no_x=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006696fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006698 CFLAGS=$cflags_save
6699
6700 if test "${no_x-no}" = yes; then
6701 with_x=no
6702 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006703 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006704#define HAVE_X11 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006705_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006706
6707 X_LIB="-lXt -lX11";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006708
Bram Moolenaar071d4272004-06-13 20:20:40 +00006709
6710 ac_save_LDFLAGS="$LDFLAGS"
6711 LDFLAGS="-L$x_libraries $LDFLAGS"
6712
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006713 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6714echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6715if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006717else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006718 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006719LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006720cat >conftest.$ac_ext <<_ACEOF
6721/* confdefs.h. */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
6725/* end confdefs.h. */
6726
Bram Moolenaar071d4272004-06-13 20:20:40 +00006727/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006728#ifdef __cplusplus
6729extern "C"
6730#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006731/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006732 builtin and then its argument prototype would still apply. */
6733char _XdmcpAuthDoIt ();
6734int
6735main ()
6736{
6737_XdmcpAuthDoIt ();
6738 ;
6739 return 0;
6740}
6741_ACEOF
6742rm -f conftest.$ac_objext conftest$ac_exeext
6743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744 (eval $ac_link) 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try='test -z "$ac_c_werror_flag"
6752 || test ! -s conftest.err'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; } &&
6758 { ac_try='test -s conftest$ac_exeext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006765else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006766 echo "$as_me: failed program was:" >&5
6767sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006768
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006769ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006770fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006771rm -f conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773LIBS=$ac_check_lib_save_LIBS
6774fi
6775echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6776echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6777if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006778 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006779fi
6780
6781
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006782 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6783echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6784if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006786else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006787 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006788LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006789cat >conftest.$ac_ext <<_ACEOF
6790/* confdefs.h. */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h. */
6795
Bram Moolenaar071d4272004-06-13 20:20:40 +00006796/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006797#ifdef __cplusplus
6798extern "C"
6799#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006800/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006801 builtin and then its argument prototype would still apply. */
6802char IceOpenConnection ();
6803int
6804main ()
6805{
6806IceOpenConnection ();
6807 ;
6808 return 0;
6809}
6810_ACEOF
6811rm -f conftest.$ac_objext conftest$ac_exeext
6812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest$ac_exeext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_cv_lib_ICE_IceOpenConnection=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006834else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006835 echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006837
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006838ac_cv_lib_ICE_IceOpenConnection=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006839fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006840rm -f conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
6842LIBS=$ac_check_lib_save_LIBS
6843fi
6844echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6845echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6846if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006848fi
6849
6850
6851 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006852 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6853echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6854if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006856else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006857 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006858LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006859cat >conftest.$ac_ext <<_ACEOF
6860/* confdefs.h. */
6861_ACEOF
6862cat confdefs.h >>conftest.$ac_ext
6863cat >>conftest.$ac_ext <<_ACEOF
6864/* end confdefs.h. */
6865
Bram Moolenaar071d4272004-06-13 20:20:40 +00006866/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006867#ifdef __cplusplus
6868extern "C"
6869#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006870/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006871 builtin and then its argument prototype would still apply. */
6872char XpmCreatePixmapFromData ();
6873int
6874main ()
6875{
6876XpmCreatePixmapFromData ();
6877 ;
6878 return 0;
6879}
6880_ACEOF
6881rm -f conftest.$ac_objext conftest$ac_exeext
6882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>conftest.er1
6884 ac_status=$?
6885 grep -v '^ *+' conftest.er1 >conftest.err
6886 rm -f conftest.er1
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -z "$ac_c_werror_flag"
6891 || test ! -s conftest.err'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; } &&
6897 { ac_try='test -s conftest$ac_exeext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006904else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006905 echo "$as_me: failed program was:" >&5
6906sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006907
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006908ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006909fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006910rm -f conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6912LIBS=$ac_check_lib_save_LIBS
6913fi
6914echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6915echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6916if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006917 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006918fi
6919
6920
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006921 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6922echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006923 cflags_save=$CFLAGS
6924 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006925 cat >conftest.$ac_ext <<_ACEOF
6926/* confdefs.h. */
6927_ACEOF
6928cat confdefs.h >>conftest.$ac_ext
6929cat >>conftest.$ac_ext <<_ACEOF
6930/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006931#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006932int
6933main ()
6934{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006935
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006936 ;
6937 return 0;
6938}
6939_ACEOF
6940rm -f conftest.$ac_objext
6941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6942 (eval $ac_compile) 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try='test -z "$ac_c_werror_flag"
6950 || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest.$ac_objext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006964else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006965 echo "$as_me: failed program was:" >&5
6966sed 's/^/| /' conftest.$ac_ext >&5
6967
6968CFLAGS="$CFLAGS -Wno-implicit-int"
6969 cat >conftest.$ac_ext <<_ACEOF
6970/* confdefs.h. */
6971_ACEOF
6972cat confdefs.h >>conftest.$ac_ext
6973cat >>conftest.$ac_ext <<_ACEOF
6974/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006975#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006976int
6977main ()
6978{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006979
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006980 ;
6981 return 0;
6982}
6983_ACEOF
6984rm -f conftest.$ac_objext
6985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 (eval $ac_compile) 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try='test -z "$ac_c_werror_flag"
6994 || test ! -s conftest.err'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; } &&
7000 { ac_try='test -s conftest.$ac_objext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7006 echo "$as_me:$LINENO: result: yes" >&5
7007echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007008else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007009 echo "$as_me: failed program was:" >&5
7010sed 's/^/| /' conftest.$ac_ext >&5
7011
7012echo "$as_me:$LINENO: result: test failed" >&5
7013echo "${ECHO_T}test failed" >&6
7014
Bram Moolenaar071d4272004-06-13 20:20:40 +00007015fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7017
Bram Moolenaar071d4272004-06-13 20:20:40 +00007018fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00007020 CFLAGS=$cflags_save
7021
7022 LDFLAGS="$ac_save_LDFLAGS"
7023
7024 fi
7025fi
7026
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00007027test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00007028
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007029echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7030echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007031# Check whether --enable-gui or --disable-gui was given.
7032if test "${enable_gui+set}" = set; then
7033 enableval="$enable_gui"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007034
Bram Moolenaar071d4272004-06-13 20:20:40 +00007035else
7036 enable_gui="auto"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007037fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007038
7039enable_gui_canon=`echo "_$enable_gui" | \
7040 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7041
7042SKIP_GTK=YES
7043SKIP_GTK2=YES
7044SKIP_GNOME=YES
7045SKIP_MOTIF=YES
7046SKIP_ATHENA=YES
7047SKIP_NEXTAW=YES
7048SKIP_PHOTON=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00007049SKIP_CARBON=YES
7050GUITYPE=NONE
7051
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007052if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007053 SKIP_PHOTON=
7054 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007055 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7056echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007057 SKIP_PHOTON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007058 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7059echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7060 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7061echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7062 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
7063echo "${ECHO_T}Photon GUI support" >&6 ;;
7064 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7065echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007066 SKIP_PHOTON=YES ;;
7067 esac
7068
7069elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7070 SKIP_CARBON=
7071 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007072 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7073echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007074 SKIP_CARBON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007075 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7076echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7077 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7078echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7079 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7080echo "${ECHO_T}Carbon GUI support" >&6 ;;
7081 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7082echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007083 SKIP_CARBON=YES ;;
7084 esac
7085
7086else
7087
Bram Moolenaar071d4272004-06-13 20:20:40 +00007088 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007089 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
7090echo "${ECHO_T}no GUI support" >&6 ;;
7091 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7092echo "${ECHO_T}yes/auto - automatic GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007093 SKIP_GTK=
7094 SKIP_GTK2=
7095 SKIP_GNOME=
7096 SKIP_MOTIF=
7097 SKIP_ATHENA=
7098 SKIP_NEXTAW=
7099 SKIP_CARBON=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007100 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7101echo "${ECHO_T}GTK+ 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007102 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007103 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7104echo "${ECHO_T}GTK+ 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007105 SKIP_GTK=
7106 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007107 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7108echo "${ECHO_T}GNOME 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007109 SKIP_GNOME=
7110 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007111 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7112echo "${ECHO_T}GNOME 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007113 SKIP_GNOME=
7114 SKIP_GTK=
7115 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007116 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
7117echo "${ECHO_T}Motif GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007118 SKIP_MOTIF=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007119 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7120echo "${ECHO_T}Athena GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007121 SKIP_ATHENA=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007122 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7123echo "${ECHO_T}neXtaw GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007124 SKIP_NEXTAW=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007125 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7126echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007127 esac
7128
7129fi
7130
7131if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007132 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7133echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007134 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7135if test "${enable_gtk_check+set}" = set; then
7136 enableval="$enable_gtk_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007137
Bram Moolenaar071d4272004-06-13 20:20:40 +00007138else
7139 enable_gtk_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007140fi;
7141 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7142echo "${ECHO_T}$enable_gtk_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007143 if test "x$enable_gtk_check" = "xno"; then
7144 SKIP_GTK=YES
7145 SKIP_GNOME=YES
7146 fi
7147fi
7148
7149if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7150 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007151 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7152echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007153 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7154if test "${enable_gtk2_check+set}" = set; then
7155 enableval="$enable_gtk2_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007156
Bram Moolenaar071d4272004-06-13 20:20:40 +00007157else
7158 enable_gtk2_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007159fi;
7160 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7161echo "${ECHO_T}$enable_gtk2_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007162 if test "x$enable_gtk2_check" = "xno"; then
7163 SKIP_GTK2=YES
7164 fi
7165fi
7166
7167if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7168 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007169 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7170echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007171 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7172if test "${enable_gnome_check+set}" = set; then
7173 enableval="$enable_gnome_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007174
Bram Moolenaar071d4272004-06-13 20:20:40 +00007175else
7176 enable_gnome_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007177fi;
7178 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7179echo "${ECHO_T}$enable_gnome_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007180 if test "x$enable_gnome_check" = "xno"; then
7181 SKIP_GNOME=YES
7182 fi
7183fi
7184
7185if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007186 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7187echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007188 # Check whether --enable-motif-check or --disable-motif-check was given.
7189if test "${enable_motif_check+set}" = set; then
7190 enableval="$enable_motif_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007191
Bram Moolenaar071d4272004-06-13 20:20:40 +00007192else
7193 enable_motif_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007194fi;
7195 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7196echo "${ECHO_T}$enable_motif_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007197 if test "x$enable_motif_check" = "xno"; then
7198 SKIP_MOTIF=YES
7199 fi
7200fi
7201
7202if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007203 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7204echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007205 # Check whether --enable-athena-check or --disable-athena-check was given.
7206if test "${enable_athena_check+set}" = set; then
7207 enableval="$enable_athena_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007208
Bram Moolenaar071d4272004-06-13 20:20:40 +00007209else
7210 enable_athena_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007211fi;
7212 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7213echo "${ECHO_T}$enable_athena_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007214 if test "x$enable_athena_check" = "xno"; then
7215 SKIP_ATHENA=YES
7216 fi
7217fi
7218
7219if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007220 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7221echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007222 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7223if test "${enable_nextaw_check+set}" = set; then
7224 enableval="$enable_nextaw_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007225
Bram Moolenaar071d4272004-06-13 20:20:40 +00007226else
7227 enable_nextaw_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007228fi;
7229 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7230echo "${ECHO_T}$enable_nextaw_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007231 if test "x$enable_nextaw_check" = "xno"; then
7232 SKIP_NEXTAW=YES
7233 fi
7234fi
7235
7236if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007237 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7238echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007239 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7240if test "${enable_carbon_check+set}" = set; then
7241 enableval="$enable_carbon_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007242
Bram Moolenaar071d4272004-06-13 20:20:40 +00007243else
7244 enable_carbon_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007245fi;
7246 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7247echo "${ECHO_T}$enable_carbon_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007248 if test "x$enable_carbon_check" = "xno"; then
7249 SKIP_CARBON=YES
7250 fi
7251fi
7252
Bram Moolenaar843ee412004-06-30 16:16:41 +00007253
Bram Moolenaar071d4272004-06-13 20:20:40 +00007254if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007255 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7256echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7257 echo "$as_me:$LINENO: result: yes" >&5
7258echo "${ECHO_T}yes" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007259 GUITYPE=CARBONGUI
Bram Moolenaare344bea2005-09-01 20:46:49 +00007260 if test "$VIMNAME" = "vim"; then
7261 VIMNAME=Vim
7262 fi
Bram Moolenaar14716812006-05-04 21:54:08 +00007263
7264 if test x$prefix = xNONE; then
7265 prefix=/Applications
7266 fi
7267
7268 datadir='${prefix}/Vim.app/Contents/Resources'
7269
Bram Moolenaar071d4272004-06-13 20:20:40 +00007270 SKIP_GTK=YES;
7271 SKIP_GTK2=YES;
7272 SKIP_GNOME=YES;
7273 SKIP_MOTIF=YES;
7274 SKIP_ATHENA=YES;
7275 SKIP_NEXTAW=YES;
7276 SKIP_PHOTON=YES;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007277 SKIP_CARBON=YES
7278fi
7279
7280
7281
7282
7283
7284
7285
7286
7287
Bram Moolenaar071d4272004-06-13 20:20:40 +00007288if test -z "$SKIP_GTK"; then
7289
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007290 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7291echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7292
7293# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007294if test "${with_gtk_prefix+set}" = set; then
7295 withval="$with_gtk_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007296 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7297echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007298else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007299 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6
7301fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007302
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007303 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7304echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007305
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007306# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007307if test "${with_gtk_exec_prefix+set}" = set; then
7308 withval="$with_gtk_exec_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007309 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7310echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007311else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007312 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6
7314fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007315
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007316 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7317echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007318 # Check whether --enable-gtktest or --disable-gtktest was given.
7319if test "${enable_gtktest+set}" = set; then
7320 enableval="$enable_gtktest"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007321
Bram Moolenaar071d4272004-06-13 20:20:40 +00007322else
7323 enable_gtktest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007324fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007325 if test "x$enable_gtktest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007326 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7327echo "${ECHO_T}gtk test enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007328 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007329 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7330echo "${ECHO_T}gtk test disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007331 fi
7332
7333 if test "x$gtk_config_prefix" != "x" ; then
7334 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7335 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7336 fi
7337 if test "x$gtk_config_exec_prefix" != "x" ; then
7338 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7339 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7340 fi
7341 if test "X$GTK_CONFIG" = "X"; then
7342 # Extract the first word of "gtk-config", so it can be a program name with args.
7343set dummy gtk-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007344echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007348else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007349 case $GTK_CONFIG in
7350 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007351 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7352 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007353 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365done
7366done
7367
Bram Moolenaar071d4272004-06-13 20:20:40 +00007368 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7369 ;;
7370esac
7371fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007372GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7373
Bram Moolenaar071d4272004-06-13 20:20:40 +00007374if test -n "$GTK_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007375 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7376echo "${ECHO_T}$GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007377else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007378 echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007380fi
7381
7382 if test "X$GTK_CONFIG" = "Xno"; then
7383 # Extract the first word of "gtk12-config", so it can be a program name with args.
7384set dummy gtk12-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007385echo "$as_me:$LINENO: checking for $ac_word" >&5
7386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7387if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007389else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007390 case $GTK12_CONFIG in
7391 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007392 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7393 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007394 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406done
7407done
7408
Bram Moolenaar071d4272004-06-13 20:20:40 +00007409 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7410 ;;
7411esac
7412fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007413GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7414
Bram Moolenaar071d4272004-06-13 20:20:40 +00007415if test -n "$GTK12_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007416 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7417echo "${ECHO_T}$GTK12_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007418else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007419 echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007421fi
7422
7423 GTK_CONFIG="$GTK12_CONFIG"
7424 fi
7425 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007426 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7427echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007428 fi
7429 if test "X$PKG_CONFIG" = "X"; then
7430 # Extract the first word of "pkg-config", so it can be a program name with args.
7431set dummy pkg-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007432echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7434if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007436else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007437 case $PKG_CONFIG in
7438 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007439 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7440 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007441 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453done
7454done
7455
Bram Moolenaar071d4272004-06-13 20:20:40 +00007456 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7457 ;;
7458esac
7459fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007460PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7461
Bram Moolenaar071d4272004-06-13 20:20:40 +00007462if test -n "$PKG_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007463 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7464echo "${ECHO_T}$PKG_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007465else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007466 echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007468fi
7469
7470 fi
7471
7472 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7473 if test "X$SKIP_GTK2" != "XYES"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007474
Bram Moolenaar071d4272004-06-13 20:20:40 +00007475 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7476 {
7477 min_gtk_version=2.2.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007478 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7479echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007480 no_gtk=""
7481 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7482 && $PKG_CONFIG --exists gtk+-2.0; then
7483 {
7484 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007485 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007486 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7487 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7488 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7489 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7490 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7491 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7492 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7493 }
7494 elif test "X$GTK_CONFIG" != "Xno"; then
7495 {
7496 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007497 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007498 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7499 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7500 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7501 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7502 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7503 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7504 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7505 }
7506 else
7507 no_gtk=yes
7508 fi
7509
7510 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7511 {
7512 ac_save_CFLAGS="$CFLAGS"
7513 ac_save_LIBS="$LIBS"
7514 CFLAGS="$CFLAGS $GTK_CFLAGS"
7515 LIBS="$LIBS $GTK_LIBS"
7516
7517 rm -f conf.gtktest
7518 if test "$cross_compiling" = yes; then
7519 echo $ac_n "cross compiling; assumed OK... $ac_c"
7520else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007521 cat >conftest.$ac_ext <<_ACEOF
7522/* confdefs.h. */
7523_ACEOF
7524cat confdefs.h >>conftest.$ac_ext
7525cat >>conftest.$ac_ext <<_ACEOF
7526/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007527
7528#include <gtk/gtk.h>
7529#include <stdio.h>
7530
7531int
7532main ()
7533{
7534int major, minor, micro;
7535char *tmp_version;
7536
7537system ("touch conf.gtktest");
7538
7539/* HP/UX 9 (%@#!) writes to sscanf strings */
7540tmp_version = g_strdup("$min_gtk_version");
7541if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7542 printf("%s, bad version string\n", "$min_gtk_version");
7543 exit(1);
7544 }
7545
7546if ((gtk_major_version > major) ||
7547 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7548 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7549 (gtk_micro_version >= micro)))
7550{
7551 return 0;
7552}
7553return 1;
7554}
7555
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007556_ACEOF
7557rm -f conftest$ac_exeext
7558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559 (eval $ac_link) 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007568 :
7569else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007570 echo "$as_me: program exited with status $ac_status" >&5
7571echo "$as_me: failed program was:" >&5
7572sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007573
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007574( exit $ac_status )
7575no_gtk=yes
7576fi
7577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7578fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007579 CFLAGS="$ac_save_CFLAGS"
7580 LIBS="$ac_save_LIBS"
7581 }
7582 fi
7583 if test "x$no_gtk" = x ; then
7584 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007585 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7586echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007587 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007588 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7589echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007590 fi
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007591 GUI_LIB_LOC="$GTK_LIBDIR"
7592 GTK_LIBNAME="$GTK_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007593 GUI_INC_LOC="$GTK_CFLAGS"
7594 else
7595 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007596 echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007598 GTK_CFLAGS=""
7599 GTK_LIBS=""
7600 :
7601 }
7602 fi
7603 }
7604 else
7605 GTK_CFLAGS=""
7606 GTK_LIBS=""
7607 :
7608 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007609
7610
Bram Moolenaar071d4272004-06-13 20:20:40 +00007611 rm -f conf.gtktest
7612
7613 if test "x$GTK_CFLAGS" != "x"; then
7614 SKIP_ATHENA=YES
7615 SKIP_NEXTAW=YES
7616 SKIP_MOTIF=YES
7617 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007618
Bram Moolenaar071d4272004-06-13 20:20:40 +00007619 fi
7620 fi
7621
7622 if test "x$GUITYPE" != "xGTK"; then
7623 SKIP_GTK2=YES
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007624
Bram Moolenaar071d4272004-06-13 20:20:40 +00007625 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7626 {
7627 min_gtk_version=1.1.16
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007628 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7629echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007630 no_gtk=""
7631 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7632 && $PKG_CONFIG --exists gtk+-2.0; then
7633 {
7634 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007635 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007636 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7637 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7638 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7639 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7640 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7641 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7642 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7643 }
7644 elif test "X$GTK_CONFIG" != "Xno"; then
7645 {
7646 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007647 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007648 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7649 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7650 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7651 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7652 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7653 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7654 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7655 }
7656 else
7657 no_gtk=yes
7658 fi
7659
7660 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7661 {
7662 ac_save_CFLAGS="$CFLAGS"
7663 ac_save_LIBS="$LIBS"
7664 CFLAGS="$CFLAGS $GTK_CFLAGS"
7665 LIBS="$LIBS $GTK_LIBS"
7666
7667 rm -f conf.gtktest
7668 if test "$cross_compiling" = yes; then
7669 echo $ac_n "cross compiling; assumed OK... $ac_c"
7670else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007671 cat >conftest.$ac_ext <<_ACEOF
7672/* confdefs.h. */
7673_ACEOF
7674cat confdefs.h >>conftest.$ac_ext
7675cat >>conftest.$ac_ext <<_ACEOF
7676/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007677
7678#include <gtk/gtk.h>
7679#include <stdio.h>
7680
7681int
7682main ()
7683{
7684int major, minor, micro;
7685char *tmp_version;
7686
7687system ("touch conf.gtktest");
7688
7689/* HP/UX 9 (%@#!) writes to sscanf strings */
7690tmp_version = g_strdup("$min_gtk_version");
7691if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7692 printf("%s, bad version string\n", "$min_gtk_version");
7693 exit(1);
7694 }
7695
7696if ((gtk_major_version > major) ||
7697 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7698 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7699 (gtk_micro_version >= micro)))
7700{
7701 return 0;
7702}
7703return 1;
7704}
7705
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007706_ACEOF
7707rm -f conftest$ac_exeext
7708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007718 :
7719else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007720 echo "$as_me: program exited with status $ac_status" >&5
7721echo "$as_me: failed program was:" >&5
7722sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007723
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007724( exit $ac_status )
7725no_gtk=yes
7726fi
7727rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7728fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007729 CFLAGS="$ac_save_CFLAGS"
7730 LIBS="$ac_save_LIBS"
7731 }
7732 fi
7733 if test "x$no_gtk" = x ; then
7734 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007735 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7736echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007737 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007738 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7739echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007740 fi
7741 GTK_LIBNAME="$GTK_LIBS"
7742 GUI_INC_LOC="$GTK_CFLAGS"
7743 else
7744 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007745 echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007747 GTK_CFLAGS=""
7748 GTK_LIBS=""
7749 :
7750 }
7751 fi
7752 }
7753 else
7754 GTK_CFLAGS=""
7755 GTK_LIBS=""
7756 :
7757 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007758
7759
Bram Moolenaar071d4272004-06-13 20:20:40 +00007760 rm -f conf.gtktest
7761
7762 if test "x$GTK_CFLAGS" != "x"; then
7763 SKIP_ATHENA=YES
7764 SKIP_NEXTAW=YES
7765 SKIP_MOTIF=YES
7766 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007767
Bram Moolenaar071d4272004-06-13 20:20:40 +00007768 fi
7769 fi
7770 fi
7771 if test "x$GUITYPE" = "xGTK"; then
7772 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7773 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007774 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7775echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007776 else
7777 {
7778 if test "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007779 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007780#define HAVE_GTK2 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007781_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007782
7783 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7784 || test "0$gtk_minor_version" -ge 2 \
7785 || test "0$gtk_major_version" -gt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007786 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007787#define HAVE_GTK_MULTIHEAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007788_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007789
7790 fi
7791 fi
7792 if test -z "$SKIP_GNOME"; then
7793 {
Bram Moolenaar071d4272004-06-13 20:20:40 +00007794
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007795
7796
7797
7798
7799
7800# Check whether --with-gnome-includes or --without-gnome-includes was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007801if test "${with_gnome_includes+set}" = set; then
7802 withval="$with_gnome_includes"
7803 CFLAGS="$CFLAGS -I$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007804
7805fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007806
7807
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007808# Check whether --with-gnome-libs or --without-gnome-libs was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007809if test "${with_gnome_libs+set}" = set; then
7810 withval="$with_gnome_libs"
7811 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007812
7813fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007814
7815
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007816# Check whether --with-gnome or --without-gnome was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007817if test "${with_gnome+set}" = set; then
7818 withval="$with_gnome"
7819 if test x$withval = xyes; then
7820 want_gnome=yes
7821 have_gnome=yes
7822 else
7823 if test "x$withval" = xno; then
7824 want_gnome=no
7825 else
7826 want_gnome=yes
7827 LDFLAGS="$LDFLAGS -L$withval/lib"
7828 CFLAGS="$CFLAGS -I$withval/include"
7829 gnome_prefix=$withval/lib
7830 fi
7831 fi
7832else
7833 want_gnome=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007834fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007835
7836 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7837 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007838 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7839echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007840 if $PKG_CONFIG --exists libgnomeui-2.0; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007841 echo "$as_me:$LINENO: result: yes" >&5
7842echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007843 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7844 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7845 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
Bram Moolenaar97b2ad32006-03-18 21:40:56 +00007846
7847 echo "$as_me:$LINENO: checking for FreeBSD" >&5
7848echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7849 if test "`(uname) 2>/dev/null`" = FreeBSD; then
7850 echo "$as_me:$LINENO: result: yes" >&5
7851echo "${ECHO_T}yes" >&6
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00007852 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
Bram Moolenaar97b2ad32006-03-18 21:40:56 +00007853 GNOME_LIBS="$GNOME_LIBS -pthread"
7854 else
7855 echo "$as_me:$LINENO: result: no" >&5
7856echo "${ECHO_T}no" >&6
7857 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007858 have_gnome=yes
7859 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007860 echo "$as_me:$LINENO: result: not found" >&5
7861echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007862 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007863 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7864echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7865 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007866 fi
7867 fi
7868 }
7869 elif test "x$want_gnome" = xyes; then
7870 {
7871 # Extract the first word of "gnome-config", so it can be a program name with args.
7872set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007873echo "$as_me:$LINENO: checking for $ac_word" >&5
7874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007877else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007878 case $GNOME_CONFIG in
7879 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007880 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7881 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007882 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894done
7895done
7896
Bram Moolenaar071d4272004-06-13 20:20:40 +00007897 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7898 ;;
7899esac
7900fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007901GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7902
Bram Moolenaar071d4272004-06-13 20:20:40 +00007903if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007904 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7905echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007906else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007907 echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007909fi
7910
7911 if test "$GNOME_CONFIG" = "no"; then
7912 no_gnome_config="yes"
7913 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007914 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7915echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007916 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007917 echo "$as_me:$LINENO: result: yes" >&5
7918echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007919 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7920 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7921 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7922 have_gnome=yes
7923 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007924 echo "$as_me:$LINENO: result: no" >&5
7925echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007926 no_gnome_config="yes"
7927 fi
7928 fi
7929
7930 if test x$exec_prefix = xNONE; then
7931 if test x$prefix = xNONE; then
7932 gnome_prefix=$ac_default_prefix/lib
7933 else
7934 gnome_prefix=$prefix/lib
7935 fi
7936 else
7937 gnome_prefix=`eval echo \`echo $libdir\``
7938 fi
7939
7940 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007941 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7942echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007943 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007944 echo "$as_me:$LINENO: result: found" >&5
7945echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007946 echo "loading gnome configuration from" \
7947 "$gnome_prefix/gnomeConf.sh"
7948 . $gnome_prefix/gnomeConf.sh
7949 have_gnome=yes
7950 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007951 echo "$as_me:$LINENO: result: not found" >&5
7952echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007953 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007954 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7955echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7956 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007957 fi
7958 fi
7959 fi
7960 }
7961 fi
7962
7963 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007964 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007965#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007966_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007967
7968 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7969 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7970 fi
7971 }
7972 fi
7973 }
7974 fi
7975 fi
7976fi
7977
7978
7979if test -z "$SKIP_MOTIF"; then
7980 gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
7981 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7982
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007983 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7984echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007985 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7986 GUI_INC_LOC=
7987 for try in $gui_includes; do
7988 if test -f "$try/Xm/Xm.h"; then
7989 GUI_INC_LOC=$try
7990 fi
7991 done
7992 if test -n "$GUI_INC_LOC"; then
7993 if test "$GUI_INC_LOC" = /usr/include; then
7994 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007995 echo "$as_me:$LINENO: result: in default path" >&5
7996echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007997 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007998 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
7999echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008000 fi
8001 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008002 echo "$as_me:$LINENO: result: <not found>" >&5
8003echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008004 SKIP_MOTIF=YES
8005 fi
8006fi
8007
8008
8009if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008010 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8011echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8012
8013# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008014if test "${with_motif_lib+set}" = set; then
8015 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008016 MOTIF_LIBNAME="${withval}"
8017fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008018
8019 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008020 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8021echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008022 GUI_LIB_LOC=
8023 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008024 echo "$as_me:$LINENO: result: no" >&5
8025echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008026
8027 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8028
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008029 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8030echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008031 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
8032 GUI_LIB_LOC=
8033 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008034 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00008035 if test -f "$libtry"; then
8036 GUI_LIB_LOC=$try
8037 fi
8038 done
8039 done
8040 if test -n "$GUI_LIB_LOC"; then
8041 if test "$GUI_LIB_LOC" = /usr/lib; then
8042 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008043 echo "$as_me:$LINENO: result: in default path" >&5
8044echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008045 else
8046 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008047 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8048echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008049 if test "`(uname) 2>/dev/null`" = SunOS &&
8050 uname -r | grep '^5' >/dev/null; then
8051 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8052 fi
8053 fi
8054 fi
8055 MOTIF_LIBNAME=-lXm
8056 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008057 echo "$as_me:$LINENO: result: <not found>" >&5
8058echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008059 SKIP_MOTIF=YES
8060 fi
8061 fi
8062fi
8063
8064if test -z "$SKIP_MOTIF"; then
8065 SKIP_ATHENA=YES
8066 SKIP_NEXTAW=YES
8067 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008068
Bram Moolenaar071d4272004-06-13 20:20:40 +00008069fi
8070
8071
8072GUI_X_LIBS=
8073
8074if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008075 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8076echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008077 cflags_save=$CFLAGS
8078 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008079 cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h. */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008085
8086#include <X11/Intrinsic.h>
8087#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008088int
8089main ()
8090{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008091
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008092 ;
8093 return 0;
8094}
8095_ACEOF
8096rm -f conftest.$ac_objext
8097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8098 (eval $ac_compile) 2>conftest.er1
8099 ac_status=$?
8100 grep -v '^ *+' conftest.er1 >conftest.err
8101 rm -f conftest.er1
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } &&
8105 { ac_try='test -z "$ac_c_werror_flag"
8106 || test ! -s conftest.err'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try='test -s conftest.$ac_objext'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 echo "$as_me:$LINENO: result: yes" >&5
8119echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008120else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008121 echo "$as_me: failed program was:" >&5
8122sed 's/^/| /' conftest.$ac_ext >&5
8123
8124echo "$as_me:$LINENO: result: no" >&5
8125echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008126fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008128 CFLAGS=$cflags_save
8129fi
8130
8131if test -z "$SKIP_ATHENA"; then
8132 GUITYPE=ATHENA
8133fi
8134
8135if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008136 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8137echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008138 cflags_save=$CFLAGS
8139 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008140 cat >conftest.$ac_ext <<_ACEOF
8141/* confdefs.h. */
8142_ACEOF
8143cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008146
8147#include <X11/Intrinsic.h>
8148#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008149int
8150main ()
8151{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008152
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008153 ;
8154 return 0;
8155}
8156_ACEOF
8157rm -f conftest.$ac_objext
8158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8159 (eval $ac_compile) 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -z "$ac_c_werror_flag"
8167 || test ! -s conftest.err'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 (eval $ac_try) 2>&5
8170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; } &&
8173 { ac_try='test -s conftest.$ac_objext'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 (eval $ac_try) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 echo "$as_me:$LINENO: result: yes" >&5
8180echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008181else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008182 echo "$as_me: failed program was:" >&5
8183sed 's/^/| /' conftest.$ac_ext >&5
8184
8185echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008187fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008189 CFLAGS=$cflags_save
8190fi
8191
8192if test -z "$SKIP_NEXTAW"; then
8193 GUITYPE=NEXTAW
8194fi
8195
8196if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8197 if test -n "$GUI_INC_LOC"; then
8198 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8199 fi
8200 if test -n "$GUI_LIB_LOC"; then
8201 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8202 fi
8203
8204 ldflags_save=$LDFLAGS
8205 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008206 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8207echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8208if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008210else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008211 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008212LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008213cat >conftest.$ac_ext <<_ACEOF
8214/* confdefs.h. */
8215_ACEOF
8216cat confdefs.h >>conftest.$ac_ext
8217cat >>conftest.$ac_ext <<_ACEOF
8218/* end confdefs.h. */
8219
Bram Moolenaar071d4272004-06-13 20:20:40 +00008220/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008221#ifdef __cplusplus
8222extern "C"
8223#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008224/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008225 builtin and then its argument prototype would still apply. */
8226char XShapeQueryExtension ();
8227int
8228main ()
8229{
8230XShapeQueryExtension ();
8231 ;
8232 return 0;
8233}
8234_ACEOF
8235rm -f conftest.$ac_objext conftest$ac_exeext
8236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8237 (eval $ac_link) 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -z "$ac_c_werror_flag"
8245 || test ! -s conftest.err'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 (eval $ac_try) 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; } &&
8251 { ac_try='test -s conftest$ac_exeext'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008258else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008259 echo "$as_me: failed program was:" >&5
8260sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008261
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008262ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008263fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008264rm -f conftest.err conftest.$ac_objext \
8265 conftest$ac_exeext conftest.$ac_ext
8266LIBS=$ac_check_lib_save_LIBS
8267fi
8268echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8269echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8270if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008271 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008272fi
8273
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008274 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8275echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8276if test "${ac_cv_lib_w_wslen+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008278else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008279 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008280LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008281cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h. */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h. */
8287
Bram Moolenaar071d4272004-06-13 20:20:40 +00008288/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008289#ifdef __cplusplus
8290extern "C"
8291#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008292/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008293 builtin and then its argument prototype would still apply. */
8294char wslen ();
8295int
8296main ()
8297{
8298wslen ();
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext conftest$ac_exeext
8304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>conftest.er1
8306 ac_status=$?
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_c_werror_flag"
8313 || test ! -s conftest.err'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 (eval $ac_try) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008326else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008327 echo "$as_me: failed program was:" >&5
8328sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008329
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008330ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008331fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008332rm -f conftest.err conftest.$ac_objext \
8333 conftest$ac_exeext conftest.$ac_ext
8334LIBS=$ac_check_lib_save_LIBS
8335fi
8336echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8337echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8338if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008339 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008340fi
8341
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008342 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8343echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8344if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008346else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008347 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008348LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008349cat >conftest.$ac_ext <<_ACEOF
8350/* confdefs.h. */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
8354/* end confdefs.h. */
8355
Bram Moolenaar071d4272004-06-13 20:20:40 +00008356/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008357#ifdef __cplusplus
8358extern "C"
8359#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008360/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008361 builtin and then its argument prototype would still apply. */
8362char dlsym ();
8363int
8364main ()
8365{
8366dlsym ();
8367 ;
8368 return 0;
8369}
8370_ACEOF
8371rm -f conftest.$ac_objext conftest$ac_exeext
8372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373 (eval $ac_link) 2>conftest.er1
8374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag"
8381 || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try='test -s conftest$ac_exeext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008394else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008395 echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008397
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008398ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008399fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008400rm -f conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
8402LIBS=$ac_check_lib_save_LIBS
8403fi
8404echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8405echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8406if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008407 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008408fi
8409
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008410 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8411echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8412if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008414else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008415 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008416LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008417cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h. */
8423
Bram Moolenaar071d4272004-06-13 20:20:40 +00008424/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008425#ifdef __cplusplus
8426extern "C"
8427#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008428/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008429 builtin and then its argument prototype would still apply. */
8430char XmuCreateStippledPixmap ();
8431int
8432main ()
8433{
8434XmuCreateStippledPixmap ();
8435 ;
8436 return 0;
8437}
8438_ACEOF
8439rm -f conftest.$ac_objext conftest$ac_exeext
8440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441 (eval $ac_link) 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag"
8449 || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 (eval $ac_try) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest$ac_exeext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008462else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008463 echo "$as_me: failed program was:" >&5
8464sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008465
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008466ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008467fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008468rm -f conftest.err conftest.$ac_objext \
8469 conftest$ac_exeext conftest.$ac_ext
8470LIBS=$ac_check_lib_save_LIBS
8471fi
8472echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8473echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8474if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008475 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008476fi
8477
8478 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008479 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8480echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8481if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008483else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008484 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008485LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008486cat >conftest.$ac_ext <<_ACEOF
8487/* confdefs.h. */
8488_ACEOF
8489cat confdefs.h >>conftest.$ac_ext
8490cat >>conftest.$ac_ext <<_ACEOF
8491/* end confdefs.h. */
8492
Bram Moolenaar071d4272004-06-13 20:20:40 +00008493/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008494#ifdef __cplusplus
8495extern "C"
8496#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008497/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008498 builtin and then its argument prototype would still apply. */
8499char XpEndJob ();
8500int
8501main ()
8502{
8503XpEndJob ();
8504 ;
8505 return 0;
8506}
8507_ACEOF
8508rm -f conftest.$ac_objext conftest$ac_exeext
8509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8510 (eval $ac_link) 2>conftest.er1
8511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -z "$ac_c_werror_flag"
8518 || test ! -s conftest.err'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; } &&
8524 { ac_try='test -s conftest$ac_exeext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008531else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008532 echo "$as_me: failed program was:" >&5
8533sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008534
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008535ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008536fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008537rm -f conftest.err conftest.$ac_objext \
8538 conftest$ac_exeext conftest.$ac_ext
8539LIBS=$ac_check_lib_save_LIBS
8540fi
8541echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8542echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8543if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008544 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008545fi
8546
8547 fi
8548 LDFLAGS=$ldflags_save
8549
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008550 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8551echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008552 NARROW_PROTO=
8553 rm -fr conftestdir
8554 if mkdir conftestdir; then
8555 cd conftestdir
8556 cat > Imakefile <<'EOF'
8557acfindx:
8558 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8559EOF
8560 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8561 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8562 fi
8563 cd ..
8564 rm -fr conftestdir
8565 fi
8566 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008567 echo "$as_me:$LINENO: result: no" >&5
8568echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008569 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008570 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8571echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008572 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008573
Bram Moolenaar071d4272004-06-13 20:20:40 +00008574fi
8575
8576if test "$enable_xsmp" = "yes"; then
8577 cppflags_save=$CPPFLAGS
8578 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008579
8580for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008581do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8583if eval "test \"\${$as_ac_Header+set}\" = set"; then
8584 echo "$as_me:$LINENO: checking for $ac_header" >&5
8585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8586if eval "test \"\${$as_ac_Header+set}\" = set"; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008588fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008591else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008592 # Is the header compilable?
8593echo "$as_me:$LINENO: checking $ac_header usability" >&5
8594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8595cat >conftest.$ac_ext <<_ACEOF
8596/* confdefs.h. */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
8600/* end confdefs.h. */
8601$ac_includes_default
8602#include <$ac_header>
8603_ACEOF
8604rm -f conftest.$ac_objext
8605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag"
8614 || test ! -s conftest.err'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; } &&
8620 { ac_try='test -s conftest.$ac_objext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 (eval $ac_try) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 ac_header_compiler=yes
8627else
8628 echo "$as_me: failed program was:" >&5
8629sed 's/^/| /' conftest.$ac_ext >&5
8630
8631ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008632fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8635echo "${ECHO_T}$ac_header_compiler" >&6
8636
8637# Is the header present?
8638echo "$as_me:$LINENO: checking $ac_header presence" >&5
8639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8640cat >conftest.$ac_ext <<_ACEOF
8641/* confdefs.h. */
8642_ACEOF
8643cat confdefs.h >>conftest.$ac_ext
8644cat >>conftest.$ac_ext <<_ACEOF
8645/* end confdefs.h. */
8646#include <$ac_header>
8647_ACEOF
8648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } >/dev/null; then
8656 if test -s conftest.err; then
8657 ac_cpp_err=$ac_c_preproc_warn_flag
8658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8659 else
8660 ac_cpp_err=
8661 fi
8662else
8663 ac_cpp_err=yes
8664fi
8665if test -z "$ac_cpp_err"; then
8666 ac_header_preproc=yes
8667else
8668 echo "$as_me: failed program was:" >&5
8669sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_header_preproc=no
8672fi
8673rm -f conftest.err conftest.$ac_ext
8674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8675echo "${ECHO_T}$ac_header_preproc" >&6
8676
8677# So? What about this header?
8678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8679 yes:no: )
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8684 ac_header_preproc=yes
8685 ;;
8686 no:yes:* )
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8690echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8694echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8699 (
8700 cat <<\_ASBOX
8701## ------------------------------------------ ##
8702## Report this to the AC_PACKAGE_NAME lists. ##
8703## ------------------------------------------ ##
8704_ASBOX
8705 ) |
8706 sed "s/^/$as_me: WARNING: /" >&2
8707 ;;
8708esac
8709echo "$as_me:$LINENO: checking for $ac_header" >&5
8710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8711if eval "test \"\${$as_ac_Header+set}\" = set"; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713else
8714 eval "$as_ac_Header=\$ac_header_preproc"
8715fi
8716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8718
8719fi
8720if test `eval echo '${'$as_ac_Header'}'` = yes; then
8721 cat >>confdefs.h <<_ACEOF
8722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8723_ACEOF
8724
8725fi
8726
Bram Moolenaar071d4272004-06-13 20:20:40 +00008727done
8728
8729 CPPFLAGS=$cppflags_save
8730fi
8731
8732
8733if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8734 cppflags_save=$CPPFLAGS
8735 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008736
8737
8738for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008739do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8741if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742 echo "$as_me:$LINENO: checking for $ac_header" >&5
8743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8744if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008746fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008749else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008750 # Is the header compilable?
8751echo "$as_me:$LINENO: checking $ac_header usability" >&5
8752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8753cat >conftest.$ac_ext <<_ACEOF
8754/* confdefs.h. */
8755_ACEOF
8756cat confdefs.h >>conftest.$ac_ext
8757cat >>conftest.$ac_ext <<_ACEOF
8758/* end confdefs.h. */
8759$ac_includes_default
8760#include <$ac_header>
8761_ACEOF
8762rm -f conftest.$ac_objext
8763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>conftest.er1
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag"
8772 || test ! -s conftest.err'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; } &&
8778 { ac_try='test -s conftest.$ac_objext'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 (eval $ac_try) 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 ac_header_compiler=yes
8785else
8786 echo "$as_me: failed program was:" >&5
8787sed 's/^/| /' conftest.$ac_ext >&5
8788
8789ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008790fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8792echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8793echo "${ECHO_T}$ac_header_compiler" >&6
8794
8795# Is the header present?
8796echo "$as_me:$LINENO: checking $ac_header presence" >&5
8797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8798cat >conftest.$ac_ext <<_ACEOF
8799/* confdefs.h. */
8800_ACEOF
8801cat confdefs.h >>conftest.$ac_ext
8802cat >>conftest.$ac_ext <<_ACEOF
8803/* end confdefs.h. */
8804#include <$ac_header>
8805_ACEOF
8806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8808 ac_status=$?
8809 grep -v '^ *+' conftest.er1 >conftest.err
8810 rm -f conftest.er1
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } >/dev/null; then
8814 if test -s conftest.err; then
8815 ac_cpp_err=$ac_c_preproc_warn_flag
8816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8817 else
8818 ac_cpp_err=
8819 fi
8820else
8821 ac_cpp_err=yes
8822fi
8823if test -z "$ac_cpp_err"; then
8824 ac_header_preproc=yes
8825else
8826 echo "$as_me: failed program was:" >&5
8827sed 's/^/| /' conftest.$ac_ext >&5
8828
8829 ac_header_preproc=no
8830fi
8831rm -f conftest.err conftest.$ac_ext
8832echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8833echo "${ECHO_T}$ac_header_preproc" >&6
8834
8835# So? What about this header?
8836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8837 yes:no: )
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8839echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8841echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8842 ac_header_preproc=yes
8843 ;;
8844 no:yes:* )
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8846echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8848echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8850echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8852echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8854echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8856echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8857 (
8858 cat <<\_ASBOX
8859## ------------------------------------------ ##
8860## Report this to the AC_PACKAGE_NAME lists. ##
8861## ------------------------------------------ ##
8862_ASBOX
8863 ) |
8864 sed "s/^/$as_me: WARNING: /" >&2
8865 ;;
8866esac
8867echo "$as_me:$LINENO: checking for $ac_header" >&5
8868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8869if eval "test \"\${$as_ac_Header+set}\" = set"; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871else
8872 eval "$as_ac_Header=\$ac_header_preproc"
8873fi
8874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8876
8877fi
8878if test `eval echo '${'$as_ac_Header'}'` = yes; then
8879 cat >>confdefs.h <<_ACEOF
8880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8881_ACEOF
8882
8883fi
8884
Bram Moolenaar071d4272004-06-13 20:20:40 +00008885done
8886
8887
8888 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008889 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8890echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8891 cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h. */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008897#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008898_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008900 $EGREP "XIMText" >/dev/null 2>&1; then
8901 echo "$as_me:$LINENO: result: yes" >&5
8902echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008903else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008904 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8905echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008906fi
8907rm -f conftest*
8908
8909 fi
8910 CPPFLAGS=$cppflags_save
8911
8912 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8913 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008914 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8915echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008916 enable_xim="yes"
8917 fi
8918fi
8919
8920if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8921 cppflags_save=$CPPFLAGS
8922 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008923 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8924echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8925 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008926/* confdefs.h. */
8927_ACEOF
8928cat confdefs.h >>conftest.$ac_ext
8929cat >>conftest.$ac_ext <<_ACEOF
8930/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008931
8932#include <X11/Intrinsic.h>
8933#include <X11/Xmu/Editres.h>
8934int
8935main ()
8936{
8937int i; i = 0;
8938 ;
8939 return 0;
8940}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008941_ACEOF
8942rm -f conftest.$ac_objext
8943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8944 (eval $ac_compile) 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest.$ac_objext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008964 echo "$as_me:$LINENO: result: yes" >&5
8965echo "${ECHO_T}yes" >&6
8966 cat >>confdefs.h <<\_ACEOF
8967#define HAVE_X11_XMU_EDITRES_H 1
8968_ACEOF
8969
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008970else
8971 echo "$as_me: failed program was:" >&5
8972sed 's/^/| /' conftest.$ac_ext >&5
8973
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008974echo "$as_me:$LINENO: result: no" >&5
8975echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008976fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008978 CPPFLAGS=$cppflags_save
8979fi
8980
8981if test -z "$SKIP_MOTIF"; then
8982 cppflags_save=$CPPFLAGS
8983 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008984
8985
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008986
8987
8988
8989
Bram Moolenaarfc1421e2006-04-20 22:17:20 +00008990
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008991for 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 +00008992 Xm/UnhighlightT.h Xm/Notebook.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008993do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8995if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996 echo "$as_me:$LINENO: checking for $ac_header" >&5
8997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8998if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009000fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009003else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009004 # Is the header compilable?
9005echo "$as_me:$LINENO: checking $ac_header usability" >&5
9006echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9007cat >conftest.$ac_ext <<_ACEOF
9008/* confdefs.h. */
9009_ACEOF
9010cat confdefs.h >>conftest.$ac_ext
9011cat >>conftest.$ac_ext <<_ACEOF
9012/* end confdefs.h. */
9013$ac_includes_default
9014#include <$ac_header>
9015_ACEOF
9016rm -f conftest.$ac_objext
9017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9018 (eval $ac_compile) 2>conftest.er1
9019 ac_status=$?
9020 grep -v '^ *+' conftest.er1 >conftest.err
9021 rm -f conftest.er1
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } &&
9025 { ac_try='test -z "$ac_c_werror_flag"
9026 || test ! -s conftest.err'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; } &&
9032 { ac_try='test -s conftest.$ac_objext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 (eval $ac_try) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 ac_header_compiler=yes
9039else
9040 echo "$as_me: failed program was:" >&5
9041sed 's/^/| /' conftest.$ac_ext >&5
9042
9043ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009044fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9046echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9047echo "${ECHO_T}$ac_header_compiler" >&6
9048
9049# Is the header present?
9050echo "$as_me:$LINENO: checking $ac_header presence" >&5
9051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9052cat >conftest.$ac_ext <<_ACEOF
9053/* confdefs.h. */
9054_ACEOF
9055cat confdefs.h >>conftest.$ac_ext
9056cat >>conftest.$ac_ext <<_ACEOF
9057/* end confdefs.h. */
9058#include <$ac_header>
9059_ACEOF
9060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } >/dev/null; then
9068 if test -s conftest.err; then
9069 ac_cpp_err=$ac_c_preproc_warn_flag
9070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9071 else
9072 ac_cpp_err=
9073 fi
9074else
9075 ac_cpp_err=yes
9076fi
9077if test -z "$ac_cpp_err"; then
9078 ac_header_preproc=yes
9079else
9080 echo "$as_me: failed program was:" >&5
9081sed 's/^/| /' conftest.$ac_ext >&5
9082
9083 ac_header_preproc=no
9084fi
9085rm -f conftest.err conftest.$ac_ext
9086echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9087echo "${ECHO_T}$ac_header_preproc" >&6
9088
9089# So? What about this header?
9090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9091 yes:no: )
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9095echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9096 ac_header_preproc=yes
9097 ;;
9098 no:yes:* )
9099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9102echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9104echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9106echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9110echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9111 (
9112 cat <<\_ASBOX
9113## ------------------------------------------ ##
9114## Report this to the AC_PACKAGE_NAME lists. ##
9115## ------------------------------------------ ##
9116_ASBOX
9117 ) |
9118 sed "s/^/$as_me: WARNING: /" >&2
9119 ;;
9120esac
9121echo "$as_me:$LINENO: checking for $ac_header" >&5
9122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9123if eval "test \"\${$as_ac_Header+set}\" = set"; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9125else
9126 eval "$as_ac_Header=\$ac_header_preproc"
9127fi
9128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9129echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9130
9131fi
9132if test `eval echo '${'$as_ac_Header'}'` = yes; then
9133 cat >>confdefs.h <<_ACEOF
9134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9135_ACEOF
9136
9137fi
9138
Bram Moolenaar071d4272004-06-13 20:20:40 +00009139done
9140
Bram Moolenaar910f66f2006-04-05 20:41:53 +00009141
9142 if test $ac_cv_header_Xm_XpmP_h = yes; then
9143 echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9144echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9145 cat >conftest.$ac_ext <<_ACEOF
9146/* confdefs.h. */
9147_ACEOF
9148cat confdefs.h >>conftest.$ac_ext
9149cat >>conftest.$ac_ext <<_ACEOF
9150/* end confdefs.h. */
9151#include <Xm/XpmP.h>
9152int
9153main ()
9154{
9155XpmAttributes_21 attr;
9156 ;
9157 return 0;
9158}
9159_ACEOF
9160rm -f conftest.$ac_objext
9161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9162 (eval $ac_compile) 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -z "$ac_c_werror_flag"
9170 || test ! -s conftest.err'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; } &&
9176 { ac_try='test -s conftest.$ac_objext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 echo "$as_me:$LINENO: result: yes" >&5
9183echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9184#define XPMATTRIBUTES_TYPE XpmAttributes_21
9185_ACEOF
9186
9187else
9188 echo "$as_me: failed program was:" >&5
9189sed 's/^/| /' conftest.$ac_ext >&5
9190
9191echo "$as_me:$LINENO: result: no" >&5
9192echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
9193#define XPMATTRIBUTES_TYPE XpmAttributes
9194_ACEOF
9195
9196
9197fi
9198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9199 else
9200 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar57657d82006-04-21 22:12:41 +00009201#define XPMATTRIBUTES_TYPE XpmAttributes
Bram Moolenaar910f66f2006-04-05 20:41:53 +00009202_ACEOF
9203
9204 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009205 CPPFLAGS=$cppflags_save
9206fi
9207
9208if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009209 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9210echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009211 enable_xim="no"
9212fi
9213if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009214 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9215echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009216 enable_fontset="no"
9217fi
9218if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009219 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9220echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009221 enable_fontset="no"
9222fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009223
9224if test -z "$SKIP_PHOTON"; then
9225 GUITYPE=PHOTONGUI
9226fi
9227
9228
9229
9230
9231
9232
9233if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009234 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9235echo "$as_me: error: cannot use workshop without Motif" >&2;}
9236 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009237fi
9238
9239if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009240 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009241#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009242_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009243
9244fi
9245if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009246 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009247#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009248_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009249
9250fi
9251
9252
9253
9254
9255if test "$enable_hangulinput" = "yes"; then
9256 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009257 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9258echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009259 enable_hangulinput=no
9260 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009261 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009262#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009263_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009264
9265 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009266
Bram Moolenaar071d4272004-06-13 20:20:40 +00009267 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009268
Bram Moolenaar071d4272004-06-13 20:20:40 +00009269 fi
9270fi
9271
9272
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009273echo "$as_me:$LINENO: checking quality of toupper" >&5
9274echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009275if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009276 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9277echo "$as_me: error: failed to compile test program" >&2;}
9278 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009279else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009280 cat >conftest.$ac_ext <<_ACEOF
9281/* confdefs.h. */
9282_ACEOF
9283cat confdefs.h >>conftest.$ac_ext
9284cat >>conftest.$ac_ext <<_ACEOF
9285/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009286#include <ctype.h>
9287main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009288_ACEOF
9289rm -f conftest$ac_exeext
9290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291 (eval $ac_link) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009301#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009302_ACEOF
9303 echo "$as_me:$LINENO: result: bad" >&5
9304echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009305else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009306 echo "$as_me: program exited with status $ac_status" >&5
9307echo "$as_me: failed program was:" >&5
9308sed 's/^/| /' conftest.$ac_ext >&5
9309
9310( exit $ac_status )
9311echo "$as_me:$LINENO: result: good" >&5
9312echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009313fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009314rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009315fi
9316
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009317echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9318echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9319cat >conftest.$ac_ext <<_ACEOF
9320/* confdefs.h. */
9321_ACEOF
9322cat confdefs.h >>conftest.$ac_ext
9323cat >>conftest.$ac_ext <<_ACEOF
9324/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009325
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009326int
9327main ()
9328{
Bram Moolenaar071d4272004-06-13 20:20:40 +00009329printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009330 ;
9331 return 0;
9332}
9333_ACEOF
9334rm -f conftest.$ac_objext
9335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9336 (eval $ac_compile) 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -z "$ac_c_werror_flag"
9344 || test ! -s conftest.err'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 (eval $ac_try) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; } &&
9350 { ac_try='test -s conftest.$ac_objext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 (eval $ac_try) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 echo "$as_me:$LINENO: result: yes" >&5
9357echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009358#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009359_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009360
9361else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009362 echo "$as_me: failed program was:" >&5
9363sed 's/^/| /' conftest.$ac_ext >&5
9364
9365echo "$as_me:$LINENO: result: no" >&5
9366echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009367fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009369
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009370if test "${ac_cv_header_elf_h+set}" = set; then
9371 echo "$as_me:$LINENO: checking for elf.h" >&5
9372echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9373if test "${ac_cv_header_elf_h+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9375fi
9376echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9377echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009378else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009379 # Is the header compilable?
9380echo "$as_me:$LINENO: checking elf.h usability" >&5
9381echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9382cat >conftest.$ac_ext <<_ACEOF
9383/* confdefs.h. */
9384_ACEOF
9385cat confdefs.h >>conftest.$ac_ext
9386cat >>conftest.$ac_ext <<_ACEOF
9387/* end confdefs.h. */
9388$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +00009389#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009390_ACEOF
9391rm -f conftest.$ac_objext
9392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9393 (eval $ac_compile) 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -z "$ac_c_werror_flag"
9401 || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest.$ac_objext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009414else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009415 echo "$as_me: failed program was:" >&5
9416sed 's/^/| /' conftest.$ac_ext >&5
9417
9418ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009419fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9422echo "${ECHO_T}$ac_header_compiler" >&6
9423
9424# Is the header present?
9425echo "$as_me:$LINENO: checking elf.h presence" >&5
9426echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9427cat >conftest.$ac_ext <<_ACEOF
9428/* confdefs.h. */
9429_ACEOF
9430cat confdefs.h >>conftest.$ac_ext
9431cat >>conftest.$ac_ext <<_ACEOF
9432/* end confdefs.h. */
9433#include <elf.h>
9434_ACEOF
9435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9437 ac_status=$?
9438 grep -v '^ *+' conftest.er1 >conftest.err
9439 rm -f conftest.er1
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } >/dev/null; then
9443 if test -s conftest.err; then
9444 ac_cpp_err=$ac_c_preproc_warn_flag
9445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9446 else
9447 ac_cpp_err=
9448 fi
9449else
9450 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009451fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009452if test -z "$ac_cpp_err"; then
9453 ac_header_preproc=yes
9454else
9455 echo "$as_me: failed program was:" >&5
9456sed 's/^/| /' conftest.$ac_ext >&5
9457
9458 ac_header_preproc=no
9459fi
9460rm -f conftest.err conftest.$ac_ext
9461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9462echo "${ECHO_T}$ac_header_preproc" >&6
9463
9464# So? What about this header?
9465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9466 yes:no: )
9467 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9468echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9470echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9471 ac_header_preproc=yes
9472 ;;
9473 no:yes:* )
9474 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9475echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9477echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9478 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9479echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9481echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9483echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9484 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9485echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9486 (
9487 cat <<\_ASBOX
9488## ------------------------------------------ ##
9489## Report this to the AC_PACKAGE_NAME lists. ##
9490## ------------------------------------------ ##
9491_ASBOX
9492 ) |
9493 sed "s/^/$as_me: WARNING: /" >&2
9494 ;;
9495esac
9496echo "$as_me:$LINENO: checking for elf.h" >&5
9497echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9498if test "${ac_cv_header_elf_h+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500else
9501 ac_cv_header_elf_h=$ac_header_preproc
9502fi
9503echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9504echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9505
9506fi
9507if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009508 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +00009509fi
9510
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009511
Bram Moolenaar071d4272004-06-13 20:20:40 +00009512if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009513
9514echo "$as_me:$LINENO: checking for main in -lelf" >&5
9515echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9516if test "${ac_cv_lib_elf_main+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009518else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009519 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009520LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009521cat >conftest.$ac_ext <<_ACEOF
9522/* confdefs.h. */
9523_ACEOF
9524cat confdefs.h >>conftest.$ac_ext
9525cat >>conftest.$ac_ext <<_ACEOF
9526/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009527
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009528
9529int
9530main ()
9531{
9532main ();
9533 ;
9534 return 0;
9535}
9536_ACEOF
9537rm -f conftest.$ac_objext conftest$ac_exeext
9538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try='test -z "$ac_c_werror_flag"
9547 || test ! -s conftest.err'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 (eval $ac_try) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; } &&
9553 { ac_try='test -s conftest$ac_exeext'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 (eval $ac_try) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9559 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009560else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009561 echo "$as_me: failed program was:" >&5
9562sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009563
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009564ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009565fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009566rm -f conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568LIBS=$ac_check_lib_save_LIBS
9569fi
9570echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9571echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9572if test $ac_cv_lib_elf_main = yes; then
9573 cat >>confdefs.h <<_ACEOF
9574#define HAVE_LIBELF 1
9575_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009576
9577 LIBS="-lelf $LIBS"
9578
Bram Moolenaar071d4272004-06-13 20:20:40 +00009579fi
9580
9581fi
9582
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009583
9584
9585
9586
9587
Bram Moolenaar071d4272004-06-13 20:20:40 +00009588ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009589for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9590 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9591echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9592echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9593if eval "test \"\${$as_ac_Header+set}\" = set"; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009595else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009596 cat >conftest.$ac_ext <<_ACEOF
9597/* confdefs.h. */
9598_ACEOF
9599cat confdefs.h >>conftest.$ac_ext
9600cat >>conftest.$ac_ext <<_ACEOF
9601/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009602#include <sys/types.h>
9603#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009604
9605int
9606main ()
9607{
9608if ((DIR *) 0)
9609return 0;
9610 ;
9611 return 0;
9612}
9613_ACEOF
9614rm -f conftest.$ac_objext
9615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9616 (eval $ac_compile) 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try='test -z "$ac_c_werror_flag"
9624 || test ! -s conftest.err'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 (eval $ac_try) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; } &&
9630 { ac_try='test -s conftest.$ac_objext'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 (eval $ac_try) 2>&5
9633 ac_status=$?
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9636 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009637else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009638 echo "$as_me: failed program was:" >&5
9639sed 's/^/| /' conftest.$ac_ext >&5
9640
9641eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009642fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009644fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9647if test `eval echo '${'$as_ac_Header'}'` = yes; then
9648 cat >>confdefs.h <<_ACEOF
9649#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9650_ACEOF
9651
9652ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009653fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009654
Bram Moolenaar071d4272004-06-13 20:20:40 +00009655done
9656# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9657if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009658 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9659echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9660if test "${ac_cv_search_opendir+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009662else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009663 ac_func_search_save_LIBS=$LIBS
9664ac_cv_search_opendir=no
9665cat >conftest.$ac_ext <<_ACEOF
9666/* confdefs.h. */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h. */
9671
Bram Moolenaar071d4272004-06-13 20:20:40 +00009672/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009673#ifdef __cplusplus
9674extern "C"
9675#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009676/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009677 builtin and then its argument prototype would still apply. */
9678char opendir ();
9679int
9680main ()
9681{
9682opendir ();
9683 ;
9684 return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext conftest$ac_exeext
9688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>conftest.er1
9690 ac_status=$?
9691 grep -v '^ *+' conftest.er1 >conftest.err
9692 rm -f conftest.er1
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -z "$ac_c_werror_flag"
9697 || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009710else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009711 echo "$as_me: failed program was:" >&5
9712sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009713
9714fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009715rm -f conftest.err conftest.$ac_objext \
9716 conftest$ac_exeext conftest.$ac_ext
9717if test "$ac_cv_search_opendir" = no; then
9718 for ac_lib in dir; do
9719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9720 cat >conftest.$ac_ext <<_ACEOF
9721/* confdefs.h. */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009726
Bram Moolenaar071d4272004-06-13 20:20:40 +00009727/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009728#ifdef __cplusplus
9729extern "C"
9730#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009731/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009732 builtin and then its argument prototype would still apply. */
9733char opendir ();
9734int
9735main ()
9736{
9737opendir ();
9738 ;
9739 return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
9743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744 (eval $ac_link) 2>conftest.er1
9745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -z "$ac_c_werror_flag"
9752 || test ! -s conftest.err'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; } &&
9758 { ac_try='test -s conftest$ac_exeext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_cv_search_opendir="-l$ac_lib"
9765break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009766else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009767 echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009769
9770fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009771rm -f conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773 done
9774fi
9775LIBS=$ac_func_search_save_LIBS
9776fi
9777echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9778echo "${ECHO_T}$ac_cv_search_opendir" >&6
9779if test "$ac_cv_search_opendir" != no; then
9780 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9781
9782fi
9783
Bram Moolenaar071d4272004-06-13 20:20:40 +00009784else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009785 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9786echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9787if test "${ac_cv_search_opendir+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009789else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009790 ac_func_search_save_LIBS=$LIBS
9791ac_cv_search_opendir=no
9792cat >conftest.$ac_ext <<_ACEOF
9793/* confdefs.h. */
9794_ACEOF
9795cat confdefs.h >>conftest.$ac_ext
9796cat >>conftest.$ac_ext <<_ACEOF
9797/* end confdefs.h. */
9798
9799/* Override any gcc2 internal prototype to avoid an error. */
9800#ifdef __cplusplus
9801extern "C"
9802#endif
9803/* We use char because int might match the return type of a gcc2
9804 builtin and then its argument prototype would still apply. */
9805char opendir ();
9806int
9807main ()
9808{
9809opendir ();
9810 ;
9811 return 0;
9812}
9813_ACEOF
9814rm -f conftest.$ac_objext conftest$ac_exeext
9815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9816 (eval $ac_link) 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 (eval $ac_try) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest$ac_exeext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_search_opendir="none required"
9837else
9838 echo "$as_me: failed program was:" >&5
9839sed 's/^/| /' conftest.$ac_ext >&5
9840
9841fi
9842rm -f conftest.err conftest.$ac_objext \
9843 conftest$ac_exeext conftest.$ac_ext
9844if test "$ac_cv_search_opendir" = no; then
9845 for ac_lib in x; do
9846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9847 cat >conftest.$ac_ext <<_ACEOF
9848/* confdefs.h. */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h. */
9853
9854/* Override any gcc2 internal prototype to avoid an error. */
9855#ifdef __cplusplus
9856extern "C"
9857#endif
9858/* We use char because int might match the return type of a gcc2
9859 builtin and then its argument prototype would still apply. */
9860char opendir ();
9861int
9862main ()
9863{
9864opendir ();
9865 ;
9866 return 0;
9867}
9868_ACEOF
9869rm -f conftest.$ac_objext conftest$ac_exeext
9870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag"
9879 || test ! -s conftest.err'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 (eval $ac_try) 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try='test -s conftest$ac_exeext'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; }; then
9891 ac_cv_search_opendir="-l$ac_lib"
9892break
9893else
9894 echo "$as_me: failed program was:" >&5
9895sed 's/^/| /' conftest.$ac_ext >&5
9896
9897fi
9898rm -f conftest.err conftest.$ac_objext \
9899 conftest$ac_exeext conftest.$ac_ext
9900 done
9901fi
9902LIBS=$ac_func_search_save_LIBS
9903fi
9904echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9905echo "${ECHO_T}$ac_cv_search_opendir" >&6
9906if test "$ac_cv_search_opendir" != no; then
9907 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9908
9909fi
9910
9911fi
9912
9913
9914echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9915echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9916if test "${ac_cv_header_stdc+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918else
9919 cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h. */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009925#include <stdlib.h>
9926#include <stdarg.h>
9927#include <string.h>
9928#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009929
9930int
9931main ()
9932{
9933
9934 ;
9935 return 0;
9936}
9937_ACEOF
9938rm -f conftest.$ac_objext
9939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9940 (eval $ac_compile) 2>conftest.er1
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -z "$ac_c_werror_flag"
9948 || test ! -s conftest.err'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 (eval $ac_try) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest.$ac_objext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009960 ac_cv_header_stdc=yes
9961else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009962 echo "$as_me: failed program was:" >&5
9963sed 's/^/| /' conftest.$ac_ext >&5
9964
9965ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009966fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009968
9969if test $ac_cv_header_stdc = yes; then
9970 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009971 cat >conftest.$ac_ext <<_ACEOF
9972/* confdefs.h. */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009977#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009978
9979_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009981 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009982 :
9983else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009984 ac_cv_header_stdc=no
9985fi
9986rm -f conftest*
9987
9988fi
9989
9990if test $ac_cv_header_stdc = yes; then
9991 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009992 cat >conftest.$ac_ext <<_ACEOF
9993/* confdefs.h. */
9994_ACEOF
9995cat confdefs.h >>conftest.$ac_ext
9996cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009998#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009999
10000_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010002 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010003 :
10004else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010005 ac_cv_header_stdc=no
10006fi
10007rm -f conftest*
10008
10009fi
10010
10011if test $ac_cv_header_stdc = yes; then
10012 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010013 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010014 :
10015else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010016 cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h. */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010022#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010023#if ((' ' & 0x0FF) == 0x020)
10024# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10025# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10026#else
10027# define ISLOWER(c) \
10028 (('a' <= (c) && (c) <= 'i') \
10029 || ('j' <= (c) && (c) <= 'r') \
10030 || ('s' <= (c) && (c) <= 'z'))
10031# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10032#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010033
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010034#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10035int
10036main ()
10037{
10038 int i;
10039 for (i = 0; i < 256; i++)
10040 if (XOR (islower (i), ISLOWER (i))
10041 || toupper (i) != TOUPPER (i))
10042 exit(2);
10043 exit (0);
10044}
10045_ACEOF
10046rm -f conftest$ac_exeext
10047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048 (eval $ac_link) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010057 :
10058else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010059 echo "$as_me: program exited with status $ac_status" >&5
10060echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010062
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010063( exit $ac_status )
10064ac_cv_header_stdc=no
10065fi
10066rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010067fi
10068fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010069fi
10070echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10071echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010072if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010073
10074cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010075#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010076_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010077
10078fi
10079
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010080echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10081echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10082if test "${ac_cv_header_sys_wait_h+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010084else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010085 cat >conftest.$ac_ext <<_ACEOF
10086/* confdefs.h. */
10087_ACEOF
10088cat confdefs.h >>conftest.$ac_ext
10089cat >>conftest.$ac_ext <<_ACEOF
10090/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010091#include <sys/types.h>
10092#include <sys/wait.h>
10093#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010094# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010095#endif
10096#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010097# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010098#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010099
10100int
10101main ()
10102{
10103 int s;
10104 wait (&s);
10105 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10106 ;
10107 return 0;
10108}
10109_ACEOF
10110rm -f conftest.$ac_objext
10111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10112 (eval $ac_compile) 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -z "$ac_c_werror_flag"
10120 || test ! -s conftest.err'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; } &&
10126 { ac_try='test -s conftest.$ac_objext'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010132 ac_cv_header_sys_wait_h=yes
10133else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010134 echo "$as_me: failed program was:" >&5
10135sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010136
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010137ac_cv_header_sys_wait_h=no
10138fi
10139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10140fi
10141echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10142echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010143if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010144
10145cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010146#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010147_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010148
10149fi
10150
10151
10152if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010153 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10154echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10155 cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010161#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010162int
10163main ()
10164{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010165union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010166 ;
10167 return 0;
10168}
10169_ACEOF
10170rm -f conftest.$ac_objext
10171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest.$ac_objext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 echo "$as_me:$LINENO: result: yes" >&5
10193echo "${ECHO_T}yes" >&6
10194 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010195#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010196_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010197
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010198 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010199#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010200_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010201
10202else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010203 echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206echo "$as_me:$LINENO: result: no" >&5
10207echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010208fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010210fi
10211
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010251
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010252for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010253 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10254 iconv.h langinfo.h unistd.h stropts.h errno.h \
10255 sys/resource.h sys/systeminfo.h locale.h \
10256 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10257 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010258 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010259 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010260do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10262if eval "test \"\${$as_ac_Header+set}\" = set"; then
10263 echo "$as_me:$LINENO: checking for $ac_header" >&5
10264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10265if eval "test \"\${$as_ac_Header+set}\" = set"; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010267fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010270else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010271 # Is the header compilable?
10272echo "$as_me:$LINENO: checking $ac_header usability" >&5
10273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10274cat >conftest.$ac_ext <<_ACEOF
10275/* confdefs.h. */
10276_ACEOF
10277cat confdefs.h >>conftest.$ac_ext
10278cat >>conftest.$ac_ext <<_ACEOF
10279/* end confdefs.h. */
10280$ac_includes_default
10281#include <$ac_header>
10282_ACEOF
10283rm -f conftest.$ac_objext
10284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>conftest.er1
10286 ac_status=$?
10287 grep -v '^ *+' conftest.er1 >conftest.err
10288 rm -f conftest.er1
10289 cat conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try='test -z "$ac_c_werror_flag"
10293 || test ! -s conftest.err'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_header_compiler=yes
10306else
10307 echo "$as_me: failed program was:" >&5
10308sed 's/^/| /' conftest.$ac_ext >&5
10309
10310ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010311fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314echo "${ECHO_T}$ac_header_compiler" >&6
10315
10316# Is the header present?
10317echo "$as_me:$LINENO: checking $ac_header presence" >&5
10318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10319cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h. */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h. */
10325#include <$ac_header>
10326_ACEOF
10327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } >/dev/null; then
10335 if test -s conftest.err; then
10336 ac_cpp_err=$ac_c_preproc_warn_flag
10337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10338 else
10339 ac_cpp_err=
10340 fi
10341else
10342 ac_cpp_err=yes
10343fi
10344if test -z "$ac_cpp_err"; then
10345 ac_header_preproc=yes
10346else
10347 echo "$as_me: failed program was:" >&5
10348sed 's/^/| /' conftest.$ac_ext >&5
10349
10350 ac_header_preproc=no
10351fi
10352rm -f conftest.err conftest.$ac_ext
10353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10354echo "${ECHO_T}$ac_header_preproc" >&6
10355
10356# So? What about this header?
10357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10358 yes:no: )
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10363 ac_header_preproc=yes
10364 ;;
10365 no:yes:* )
10366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10373echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10378 (
10379 cat <<\_ASBOX
10380## ------------------------------------------ ##
10381## Report this to the AC_PACKAGE_NAME lists. ##
10382## ------------------------------------------ ##
10383_ASBOX
10384 ) |
10385 sed "s/^/$as_me: WARNING: /" >&2
10386 ;;
10387esac
10388echo "$as_me:$LINENO: checking for $ac_header" >&5
10389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10390if eval "test \"\${$as_ac_Header+set}\" = set"; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10392else
10393 eval "$as_ac_Header=\$ac_header_preproc"
10394fi
10395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10397
10398fi
10399if test `eval echo '${'$as_ac_Header'}'` = yes; then
10400 cat >>confdefs.h <<_ACEOF
10401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10402_ACEOF
10403
10404fi
10405
Bram Moolenaar071d4272004-06-13 20:20:40 +000010406done
10407
10408
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010409echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10410echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10411cat >conftest.$ac_ext <<_ACEOF
10412/* confdefs.h. */
10413_ACEOF
10414cat confdefs.h >>conftest.$ac_ext
10415cat >>conftest.$ac_ext <<_ACEOF
10416/* end confdefs.h. */
10417
10418#include <pthread.h>
10419#include <pthread_np.h>
10420int
10421main ()
10422{
10423int i; i = 0;
10424 ;
10425 return 0;
10426}
10427_ACEOF
10428rm -f conftest.$ac_objext
10429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430 (eval $ac_compile) 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -z "$ac_c_werror_flag"
10438 || test ! -s conftest.err'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 echo "$as_me:$LINENO: result: yes" >&5
10451echo "${ECHO_T}yes" >&6
10452 cat >>confdefs.h <<\_ACEOF
10453#define HAVE_PTHREAD_NP_H 1
10454_ACEOF
10455
10456else
10457 echo "$as_me: failed program was:" >&5
10458sed 's/^/| /' conftest.$ac_ext >&5
10459
10460echo "$as_me:$LINENO: result: no" >&5
10461echo "${ECHO_T}no" >&6
10462fi
10463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10464
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010465
10466for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010467do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10469if eval "test \"\${$as_ac_Header+set}\" = set"; then
10470 echo "$as_me:$LINENO: checking for $ac_header" >&5
10471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10472if eval "test \"\${$as_ac_Header+set}\" = set"; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010474fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010477else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010478 # Is the header compilable?
10479echo "$as_me:$LINENO: checking $ac_header usability" >&5
10480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10481cat >conftest.$ac_ext <<_ACEOF
10482/* confdefs.h. */
10483_ACEOF
10484cat confdefs.h >>conftest.$ac_ext
10485cat >>conftest.$ac_ext <<_ACEOF
10486/* end confdefs.h. */
10487$ac_includes_default
10488#include <$ac_header>
10489_ACEOF
10490rm -f conftest.$ac_objext
10491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10492 (eval $ac_compile) 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -z "$ac_c_werror_flag"
10500 || test ! -s conftest.err'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; } &&
10506 { ac_try='test -s conftest.$ac_objext'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 ac_header_compiler=yes
10513else
10514 echo "$as_me: failed program was:" >&5
10515sed 's/^/| /' conftest.$ac_ext >&5
10516
10517ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010518fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10520echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10521echo "${ECHO_T}$ac_header_compiler" >&6
10522
10523# Is the header present?
10524echo "$as_me:$LINENO: checking $ac_header presence" >&5
10525echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10526cat >conftest.$ac_ext <<_ACEOF
10527/* confdefs.h. */
10528_ACEOF
10529cat confdefs.h >>conftest.$ac_ext
10530cat >>conftest.$ac_ext <<_ACEOF
10531/* end confdefs.h. */
10532#include <$ac_header>
10533_ACEOF
10534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10536 ac_status=$?
10537 grep -v '^ *+' conftest.er1 >conftest.err
10538 rm -f conftest.er1
10539 cat conftest.err >&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } >/dev/null; then
10542 if test -s conftest.err; then
10543 ac_cpp_err=$ac_c_preproc_warn_flag
10544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10545 else
10546 ac_cpp_err=
10547 fi
10548else
10549 ac_cpp_err=yes
10550fi
10551if test -z "$ac_cpp_err"; then
10552 ac_header_preproc=yes
10553else
10554 echo "$as_me: failed program was:" >&5
10555sed 's/^/| /' conftest.$ac_ext >&5
10556
10557 ac_header_preproc=no
10558fi
10559rm -f conftest.err conftest.$ac_ext
10560echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10561echo "${ECHO_T}$ac_header_preproc" >&6
10562
10563# So? What about this header?
10564case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10565 yes:no: )
10566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10567echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10569echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10570 ac_header_preproc=yes
10571 ;;
10572 no:yes:* )
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10574echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10576echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10578echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10580echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10584echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10585 (
10586 cat <<\_ASBOX
10587## ------------------------------------------ ##
10588## Report this to the AC_PACKAGE_NAME lists. ##
10589## ------------------------------------------ ##
10590_ASBOX
10591 ) |
10592 sed "s/^/$as_me: WARNING: /" >&2
10593 ;;
10594esac
10595echo "$as_me:$LINENO: checking for $ac_header" >&5
10596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10597if eval "test \"\${$as_ac_Header+set}\" = set"; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10599else
10600 eval "$as_ac_Header=\$ac_header_preproc"
10601fi
10602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10604
10605fi
10606if test `eval echo '${'$as_ac_Header'}'` = yes; then
10607 cat >>confdefs.h <<_ACEOF
10608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10609_ACEOF
10610
10611fi
10612
Bram Moolenaar071d4272004-06-13 20:20:40 +000010613done
10614
Bram Moolenaar9372a112005-12-06 19:59:18 +000010615if test "x$MACOSX" = "xyes"; then
10616 cat >>confdefs.h <<\_ACEOF
10617#define NO_STRINGS_WITH_STRING_H 1
10618_ACEOF
10619
10620else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010621
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010622echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10623echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010624cppflags_save=$CPPFLAGS
10625CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010626cat >conftest.$ac_ext <<_ACEOF
10627/* confdefs.h. */
10628_ACEOF
10629cat confdefs.h >>conftest.$ac_ext
10630cat >>conftest.$ac_ext <<_ACEOF
10631/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010632
10633#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10634# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10635 /* but don't do it on AIX 5.1 (Uribarri) */
10636#endif
10637#ifdef HAVE_XM_XM_H
10638# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10639#endif
10640#ifdef HAVE_STRING_H
10641# include <string.h>
10642#endif
10643#if defined(HAVE_STRINGS_H)
10644# include <strings.h>
10645#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010646
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010647int
10648main ()
10649{
10650int i; i = 0;
10651 ;
10652 return 0;
10653}
10654_ACEOF
10655rm -f conftest.$ac_objext
10656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657 (eval $ac_compile) 2>conftest.er1
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -z "$ac_c_werror_flag"
10665 || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 echo "$as_me:$LINENO: result: yes" >&5
10678echo "${ECHO_T}yes" >&6
10679else
10680 echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682
10683cat >>confdefs.h <<\_ACEOF
10684#define NO_STRINGS_WITH_STRING_H 1
10685_ACEOF
10686
10687 echo "$as_me:$LINENO: result: no" >&5
10688echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010689fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010691CPPFLAGS=$cppflags_save
Bram Moolenaar9372a112005-12-06 19:59:18 +000010692fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000010693
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010694if test $ac_cv_c_compiler_gnu = yes; then
10695 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10696echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10697if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010699else
10700 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010701 cat >conftest.$ac_ext <<_ACEOF
10702/* confdefs.h. */
10703_ACEOF
10704cat confdefs.h >>conftest.$ac_ext
10705cat >>conftest.$ac_ext <<_ACEOF
10706/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010707#include <sgtty.h>
10708Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010709_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010711 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010712 ac_cv_prog_gcc_traditional=yes
10713else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010714 ac_cv_prog_gcc_traditional=no
10715fi
10716rm -f conftest*
10717
10718
10719 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010720 cat >conftest.$ac_ext <<_ACEOF
10721/* confdefs.h. */
10722_ACEOF
10723cat confdefs.h >>conftest.$ac_ext
10724cat >>conftest.$ac_ext <<_ACEOF
10725/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010726#include <termio.h>
10727Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010728_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010730 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010731 ac_cv_prog_gcc_traditional=yes
10732fi
10733rm -f conftest*
10734
10735 fi
10736fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010737echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10738echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010739 if test $ac_cv_prog_gcc_traditional = yes; then
10740 CC="$CC -traditional"
10741 fi
10742fi
10743
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010744echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10745echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10746if test "${ac_cv_c_const+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010748else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010749 cat >conftest.$ac_ext <<_ACEOF
10750/* confdefs.h. */
10751_ACEOF
10752cat confdefs.h >>conftest.$ac_ext
10753cat >>conftest.$ac_ext <<_ACEOF
10754/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010755
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010756int
10757main ()
10758{
10759/* FIXME: Include the comments suggested by Paul. */
10760#ifndef __cplusplus
10761 /* Ultrix mips cc rejects this. */
10762 typedef int charset[2];
10763 const charset x;
10764 /* SunOS 4.1.1 cc rejects this. */
10765 char const *const *ccp;
10766 char **p;
10767 /* NEC SVR4.0.2 mips cc rejects this. */
10768 struct point {int x, y;};
10769 static struct point const zero = {0,0};
10770 /* AIX XL C 1.02.0.0 rejects this.
10771 It does not let you subtract one const X* pointer from another in
10772 an arm of an if-expression whose if-part is not a constant
10773 expression */
10774 const char *g = "string";
10775 ccp = &g + (g ? g-g : 0);
10776 /* HPUX 7.0 cc rejects these. */
10777 ++ccp;
10778 p = (char**) ccp;
10779 ccp = (char const *const *) p;
10780 { /* SCO 3.2v4 cc rejects this. */
10781 char *t;
10782 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010783
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010784 *t++ = 0;
10785 }
10786 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10787 int x[] = {25, 17};
10788 const int *foo = &x[0];
10789 ++foo;
10790 }
10791 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10792 typedef const int *iptr;
10793 iptr p = 0;
10794 ++p;
10795 }
10796 { /* AIX XL C 1.02.0.0 rejects this saying
10797 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10798 struct s { int j; const int *ap[3]; };
10799 struct s *b; b->j = 5;
10800 }
10801 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10802 const int foo = 10;
10803 }
10804#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010805
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010806 ;
10807 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010808}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010809_ACEOF
10810rm -f conftest.$ac_objext
10811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -z "$ac_c_werror_flag"
10820 || test ! -s conftest.err'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; } &&
10826 { ac_try='test -s conftest.$ac_objext'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010832 ac_cv_c_const=yes
10833else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010834 echo "$as_me: failed program was:" >&5
10835sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010836
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010837ac_cv_c_const=no
10838fi
10839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10840fi
10841echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10842echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010843if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010844
10845cat >>confdefs.h <<\_ACEOF
10846#define const
10847_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010848
10849fi
10850
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010851echo "$as_me:$LINENO: checking for mode_t" >&5
10852echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10853if test "${ac_cv_type_mode_t+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010855else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010856 cat >conftest.$ac_ext <<_ACEOF
10857/* confdefs.h. */
10858_ACEOF
10859cat confdefs.h >>conftest.$ac_ext
10860cat >>conftest.$ac_ext <<_ACEOF
10861/* end confdefs.h. */
10862$ac_includes_default
10863int
10864main ()
10865{
10866if ((mode_t *) 0)
10867 return 0;
10868if (sizeof (mode_t))
10869 return 0;
10870 ;
10871 return 0;
10872}
10873_ACEOF
10874rm -f conftest.$ac_objext
10875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag"
10884 || test ! -s conftest.err'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010896 ac_cv_type_mode_t=yes
10897else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010898 echo "$as_me: failed program was:" >&5
10899sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010900
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010901ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010902fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010904fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010905echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10906echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10907if test $ac_cv_type_mode_t = yes; then
10908 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010909else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010910
10911cat >>confdefs.h <<_ACEOF
10912#define mode_t int
10913_ACEOF
10914
10915fi
10916
10917echo "$as_me:$LINENO: checking for off_t" >&5
10918echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10919if test "${ac_cv_type_off_t+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10921else
10922 cat >conftest.$ac_ext <<_ACEOF
10923/* confdefs.h. */
10924_ACEOF
10925cat confdefs.h >>conftest.$ac_ext
10926cat >>conftest.$ac_ext <<_ACEOF
10927/* end confdefs.h. */
10928$ac_includes_default
10929int
10930main ()
10931{
10932if ((off_t *) 0)
10933 return 0;
10934if (sizeof (off_t))
10935 return 0;
10936 ;
10937 return 0;
10938}
10939_ACEOF
10940rm -f conftest.$ac_objext
10941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag"
10950 || test ! -s conftest.err'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest.$ac_objext'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010962 ac_cv_type_off_t=yes
10963else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010964 echo "$as_me: failed program was:" >&5
10965sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010966
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010967ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010968fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010970fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010971echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10972echo "${ECHO_T}$ac_cv_type_off_t" >&6
10973if test $ac_cv_type_off_t = yes; then
10974 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010975else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010976
10977cat >>confdefs.h <<_ACEOF
10978#define off_t long
10979_ACEOF
10980
10981fi
10982
10983echo "$as_me:$LINENO: checking for pid_t" >&5
10984echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10985if test "${ac_cv_type_pid_t+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987else
10988 cat >conftest.$ac_ext <<_ACEOF
10989/* confdefs.h. */
10990_ACEOF
10991cat confdefs.h >>conftest.$ac_ext
10992cat >>conftest.$ac_ext <<_ACEOF
10993/* end confdefs.h. */
10994$ac_includes_default
10995int
10996main ()
10997{
10998if ((pid_t *) 0)
10999 return 0;
11000if (sizeof (pid_t))
11001 return 0;
11002 ;
11003 return 0;
11004}
11005_ACEOF
11006rm -f conftest.$ac_objext
11007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008 (eval $ac_compile) 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag"
11016 || test ! -s conftest.err'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; } &&
11022 { ac_try='test -s conftest.$ac_objext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011028 ac_cv_type_pid_t=yes
11029else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011030 echo "$as_me: failed program was:" >&5
11031sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011032
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011033ac_cv_type_pid_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011034fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011036fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011037echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11038echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11039if test $ac_cv_type_pid_t = yes; then
11040 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011041else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011042
11043cat >>confdefs.h <<_ACEOF
11044#define pid_t int
11045_ACEOF
11046
11047fi
11048
11049echo "$as_me:$LINENO: checking for size_t" >&5
11050echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11051if test "${ac_cv_type_size_t+set}" = set; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11053else
11054 cat >conftest.$ac_ext <<_ACEOF
11055/* confdefs.h. */
11056_ACEOF
11057cat confdefs.h >>conftest.$ac_ext
11058cat >>conftest.$ac_ext <<_ACEOF
11059/* end confdefs.h. */
11060$ac_includes_default
11061int
11062main ()
11063{
11064if ((size_t *) 0)
11065 return 0;
11066if (sizeof (size_t))
11067 return 0;
11068 ;
11069 return 0;
11070}
11071_ACEOF
11072rm -f conftest.$ac_objext
11073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11074 (eval $ac_compile) 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -z "$ac_c_werror_flag"
11082 || test ! -s conftest.err'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; } &&
11088 { ac_try='test -s conftest.$ac_objext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011094 ac_cv_type_size_t=yes
11095else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011096 echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011098
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011099ac_cv_type_size_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011100fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011102fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011103echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11104echo "${ECHO_T}$ac_cv_type_size_t" >&6
11105if test $ac_cv_type_size_t = yes; then
11106 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011107else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011108
11109cat >>confdefs.h <<_ACEOF
11110#define size_t unsigned
11111_ACEOF
11112
11113fi
11114
11115echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11116echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11117if test "${ac_cv_type_uid_t+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119else
11120 cat >conftest.$ac_ext <<_ACEOF
11121/* confdefs.h. */
11122_ACEOF
11123cat confdefs.h >>conftest.$ac_ext
11124cat >>conftest.$ac_ext <<_ACEOF
11125/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011126#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011127
11128_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011130 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011131 ac_cv_type_uid_t=yes
11132else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011133 ac_cv_type_uid_t=no
11134fi
11135rm -f conftest*
11136
11137fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011138echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11139echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011140if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011141
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011142cat >>confdefs.h <<\_ACEOF
11143#define uid_t int
11144_ACEOF
11145
11146
11147cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011148#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011149_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011150
11151fi
11152
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011153echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11154echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11155if test "${ac_cv_header_time+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011157else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011158 cat >conftest.$ac_ext <<_ACEOF
11159/* confdefs.h. */
11160_ACEOF
11161cat confdefs.h >>conftest.$ac_ext
11162cat >>conftest.$ac_ext <<_ACEOF
11163/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011164#include <sys/types.h>
11165#include <sys/time.h>
11166#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011167
11168int
11169main ()
11170{
11171if ((struct tm *) 0)
11172return 0;
11173 ;
11174 return 0;
11175}
11176_ACEOF
11177rm -f conftest.$ac_objext
11178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11179 (eval $ac_compile) 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } &&
11186 { ac_try='test -z "$ac_c_werror_flag"
11187 || test ! -s conftest.err'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; } &&
11193 { ac_try='test -s conftest.$ac_objext'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011199 ac_cv_header_time=yes
11200else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011201 echo "$as_me: failed program was:" >&5
11202sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011203
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011204ac_cv_header_time=no
11205fi
11206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11207fi
11208echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11209echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011210if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011211
11212cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011213#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011214_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011215
11216fi
11217
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011218echo "$as_me:$LINENO: checking for ino_t" >&5
11219echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11220if test "${ac_cv_type_ino_t+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011222else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011223 cat >conftest.$ac_ext <<_ACEOF
11224/* confdefs.h. */
11225_ACEOF
11226cat confdefs.h >>conftest.$ac_ext
11227cat >>conftest.$ac_ext <<_ACEOF
11228/* end confdefs.h. */
11229$ac_includes_default
11230int
11231main ()
11232{
11233if ((ino_t *) 0)
11234 return 0;
11235if (sizeof (ino_t))
11236 return 0;
11237 ;
11238 return 0;
11239}
11240_ACEOF
11241rm -f conftest.$ac_objext
11242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11243 (eval $ac_compile) 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -z "$ac_c_werror_flag"
11251 || test ! -s conftest.err'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try='test -s conftest.$ac_objext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011263 ac_cv_type_ino_t=yes
11264else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011265 echo "$as_me: failed program was:" >&5
11266sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011267
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011268ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011269fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011271fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011272echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11273echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11274if test $ac_cv_type_ino_t = yes; then
11275 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011276else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011277
11278cat >>confdefs.h <<_ACEOF
11279#define ino_t long
11280_ACEOF
11281
11282fi
11283
11284echo "$as_me:$LINENO: checking for dev_t" >&5
11285echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11286if test "${ac_cv_type_dev_t+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288else
11289 cat >conftest.$ac_ext <<_ACEOF
11290/* confdefs.h. */
11291_ACEOF
11292cat confdefs.h >>conftest.$ac_ext
11293cat >>conftest.$ac_ext <<_ACEOF
11294/* end confdefs.h. */
11295$ac_includes_default
11296int
11297main ()
11298{
11299if ((dev_t *) 0)
11300 return 0;
11301if (sizeof (dev_t))
11302 return 0;
11303 ;
11304 return 0;
11305}
11306_ACEOF
11307rm -f conftest.$ac_objext
11308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11309 (eval $ac_compile) 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try='test -z "$ac_c_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try='test -s conftest.$ac_objext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011329 ac_cv_type_dev_t=yes
11330else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011331 echo "$as_me: failed program was:" >&5
11332sed 's/^/| /' conftest.$ac_ext >&5
11333
11334ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011335fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011337fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011338echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11339echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11340if test $ac_cv_type_dev_t = yes; then
11341 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011342else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011343
11344cat >>confdefs.h <<_ACEOF
11345#define dev_t unsigned
11346_ACEOF
11347
11348fi
11349
11350
11351echo "$as_me:$LINENO: checking for rlim_t" >&5
11352echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11353if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11354 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11355echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11356else
11357 cat >conftest.$ac_ext <<_ACEOF
11358/* confdefs.h. */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011363
11364#include <sys/types.h>
11365#if STDC_HEADERS
11366#include <stdlib.h>
11367#include <stddef.h>
11368#endif
11369#ifdef HAVE_SYS_RESOURCE_H
11370#include <sys/resource.h>
11371#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011372
11373_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011375 $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 +000011376 ac_cv_type_rlim_t=yes
11377else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011378 ac_cv_type_rlim_t=no
11379fi
11380rm -f conftest*
11381
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011382 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11383echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011384fi
11385if test $ac_cv_type_rlim_t = no; then
11386 cat >> confdefs.h <<\EOF
11387#define rlim_t unsigned long
11388EOF
11389fi
11390
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011391echo "$as_me:$LINENO: checking for stack_t" >&5
11392echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011393if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011394 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11395echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011396else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011397 cat >conftest.$ac_ext <<_ACEOF
11398/* confdefs.h. */
11399_ACEOF
11400cat confdefs.h >>conftest.$ac_ext
11401cat >>conftest.$ac_ext <<_ACEOF
11402/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011403
11404#include <sys/types.h>
11405#if STDC_HEADERS
11406#include <stdlib.h>
11407#include <stddef.h>
11408#endif
11409#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011410
11411_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011413 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011414 ac_cv_type_stack_t=yes
11415else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011416 ac_cv_type_stack_t=no
11417fi
11418rm -f conftest*
11419
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011420 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11421echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011422fi
11423if test $ac_cv_type_stack_t = no; then
11424 cat >> confdefs.h <<\EOF
11425#define stack_t struct sigaltstack
11426EOF
11427fi
11428
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011429echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11430echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11431cat >conftest.$ac_ext <<_ACEOF
11432/* confdefs.h. */
11433_ACEOF
11434cat confdefs.h >>conftest.$ac_ext
11435cat >>conftest.$ac_ext <<_ACEOF
11436/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011437
11438#include <sys/types.h>
11439#if STDC_HEADERS
11440#include <stdlib.h>
11441#include <stddef.h>
11442#endif
11443#include <signal.h>
11444#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011445
11446int
11447main ()
11448{
11449stack_t sigstk; sigstk.ss_base = 0;
11450 ;
11451 return 0;
11452}
11453_ACEOF
11454rm -f conftest.$ac_objext
11455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11456 (eval $ac_compile) 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
11463 { ac_try='test -z "$ac_c_werror_flag"
11464 || test ! -s conftest.err'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 echo "$as_me:$LINENO: result: yes" >&5
11477echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011478#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011479_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011480
11481else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011482 echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
11485echo "$as_me:$LINENO: result: no" >&5
11486echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011487fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011489
11490olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011491echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11492echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11493
Bram Moolenaar071d4272004-06-13 20:20:40 +000011494# Check whether --with-tlib or --without-tlib was given.
11495if test "${with_tlib+set}" = set; then
11496 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011497
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011498fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011499if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011500 echo "$as_me:$LINENO: result: $with_tlib" >&5
11501echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011502 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011503 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11504echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11505 cat >conftest.$ac_ext <<_ACEOF
11506/* confdefs.h. */
11507_ACEOF
11508cat confdefs.h >>conftest.$ac_ext
11509cat >>conftest.$ac_ext <<_ACEOF
11510/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011511
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011512int
11513main ()
11514{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011515
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011516 ;
11517 return 0;
11518}
11519_ACEOF
11520rm -f conftest.$ac_objext conftest$ac_exeext
11521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11522 (eval $ac_link) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -z "$ac_c_werror_flag"
11530 || test ! -s conftest.err'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try='test -s conftest$ac_exeext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 echo "$as_me:$LINENO: result: OK" >&5
11543echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011544else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011545 echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548{ { echo "$as_me:$LINENO: error: FAILED" >&5
11549echo "$as_me: error: FAILED" >&2;}
11550 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011551fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011552rm -f conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011554 olibs="$LIBS"
11555else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011556 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11557echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaara1b5aa52006-10-10 09:41:28 +000011558 case "`uname -s 2>/dev/null`" in
11559 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011560 *) tlibs="ncurses termlib termcap curses";;
11561 esac
11562 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011563
11564as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11565echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11566echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11567if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011569else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011570 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000011571LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011572cat >conftest.$ac_ext <<_ACEOF
11573/* confdefs.h. */
11574_ACEOF
11575cat confdefs.h >>conftest.$ac_ext
11576cat >>conftest.$ac_ext <<_ACEOF
11577/* end confdefs.h. */
11578
Bram Moolenaar071d4272004-06-13 20:20:40 +000011579/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011580#ifdef __cplusplus
11581extern "C"
11582#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011583/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011584 builtin and then its argument prototype would still apply. */
11585char tgetent ();
11586int
11587main ()
11588{
11589tgetent ();
11590 ;
11591 return 0;
11592}
11593_ACEOF
11594rm -f conftest.$ac_objext conftest$ac_exeext
11595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11596 (eval $ac_link) 2>conftest.er1
11597 ac_status=$?
11598 grep -v '^ *+' conftest.er1 >conftest.err
11599 rm -f conftest.er1
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } &&
11603 { ac_try='test -z "$ac_c_werror_flag"
11604 || test ! -s conftest.err'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; } &&
11610 { ac_try='test -s conftest$ac_exeext'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011617else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011618 echo "$as_me: failed program was:" >&5
11619sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011621eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011622fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011623rm -f conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625LIBS=$ac_check_lib_save_LIBS
11626fi
11627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11628echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11629if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11630 cat >>confdefs.h <<_ACEOF
11631#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11632_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011633
11634 LIBS="-l${libname} $LIBS"
11635
Bram Moolenaar071d4272004-06-13 20:20:40 +000011636fi
11637
11638 if test "x$olibs" != "x$LIBS"; then
11639 if test "$cross_compiling" = yes; then
11640 res="FAIL"
11641else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011642 cat >conftest.$ac_ext <<_ACEOF
11643/* confdefs.h. */
11644_ACEOF
11645cat confdefs.h >>conftest.$ac_ext
11646cat >>conftest.$ac_ext <<_ACEOF
11647/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011648
11649#ifdef HAVE_TERMCAP_H
11650# include <termcap.h>
11651#endif
11652main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011653_ACEOF
11654rm -f conftest$ac_exeext
11655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656 (eval $ac_link) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011665 res="OK"
11666else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011667 echo "$as_me: program exited with status $ac_status" >&5
11668echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011670
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011671( exit $ac_status )
11672res="FAIL"
11673fi
11674rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11675fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011676 if test "$res" = "OK"; then
11677 break
11678 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011679 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11680echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011681 LIBS="$olibs"
11682 fi
11683 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011684 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011685 echo "$as_me:$LINENO: result: no terminal library found" >&5
11686echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011687 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011688fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011689
11690if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011691 echo "$as_me:$LINENO: checking for tgetent()" >&5
11692echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11693 cat >conftest.$ac_ext <<_ACEOF
11694/* confdefs.h. */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011699
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011700int
11701main ()
11702{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011703char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011704 ;
11705 return 0;
11706}
11707_ACEOF
11708rm -f conftest.$ac_objext conftest$ac_exeext
11709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11710 (eval $ac_link) 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -z "$ac_c_werror_flag"
11718 || test ! -s conftest.err'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; } &&
11724 { ac_try='test -s conftest$ac_exeext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 echo "$as_me:$LINENO: result: yes" >&5
11731echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011732else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011737 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011738 Or specify the name of the library with --with-tlib." >&5
11739echo "$as_me: error: NOT FOUND!
11740 You need to install a terminal library; for example ncurses.
11741 Or specify the name of the library with --with-tlib." >&2;}
11742 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011743fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011744rm -f conftest.err conftest.$ac_objext \
11745 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011746fi
11747
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011748echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11749echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011750if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011751 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11752echo "$as_me: error: failed to compile test program." >&2;}
11753 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011754else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011755 cat >conftest.$ac_ext <<_ACEOF
11756/* confdefs.h. */
11757_ACEOF
11758cat confdefs.h >>conftest.$ac_ext
11759cat >>conftest.$ac_ext <<_ACEOF
11760/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011761
11762#ifdef HAVE_TERMCAP_H
11763# include <termcap.h>
11764#endif
11765main()
11766{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011767_ACEOF
11768rm -f conftest$ac_exeext
11769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770 (eval $ac_link) 2>&5
11771 ac_status=$?
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11780echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011781else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011782 echo "$as_me: program exited with status $ac_status" >&5
11783echo "$as_me: failed program was:" >&5
11784sed 's/^/| /' conftest.$ac_ext >&5
11785
11786( exit $ac_status )
11787echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11788echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011789#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011790_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011791
11792fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011794fi
11795
Bram Moolenaar071d4272004-06-13 20:20:40 +000011796if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011797 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11798echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011799 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011800 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11801echo "$as_me: error: failed to compile test program." >&2;}
11802 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011803else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011804 cat >conftest.$ac_ext <<_ACEOF
11805/* confdefs.h. */
11806_ACEOF
11807cat confdefs.h >>conftest.$ac_ext
11808cat >>conftest.$ac_ext <<_ACEOF
11809/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011810
11811#ifdef HAVE_TERMCAP_H
11812# include <termcap.h>
11813#endif
11814main()
11815{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011816_ACEOF
11817rm -f conftest$ac_exeext
11818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819 (eval $ac_link) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 echo "$as_me:$LINENO: result: zero" >&5
11829echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011830#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011831_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011832
11833else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011834 echo "$as_me: program exited with status $ac_status" >&5
11835echo "$as_me: failed program was:" >&5
11836sed 's/^/| /' conftest.$ac_ext >&5
11837
11838( exit $ac_status )
11839echo "$as_me:$LINENO: result: non-zero" >&5
11840echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011841fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011842rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11843fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011844fi
11845
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011846echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11847echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11848cat >conftest.$ac_ext <<_ACEOF
11849/* confdefs.h. */
11850_ACEOF
11851cat confdefs.h >>conftest.$ac_ext
11852cat >>conftest.$ac_ext <<_ACEOF
11853/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011854
11855#ifdef HAVE_TERMCAP_H
11856# include <termcap.h>
11857#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011858
11859int
11860main ()
11861{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011862ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011863 ;
11864 return 0;
11865}
11866_ACEOF
11867rm -f conftest.$ac_objext conftest$ac_exeext
11868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11869 (eval $ac_link) 2>conftest.er1
11870 ac_status=$?
11871 grep -v '^ *+' conftest.er1 >conftest.err
11872 rm -f conftest.er1
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } &&
11876 { ac_try='test -z "$ac_c_werror_flag"
11877 || test ! -s conftest.err'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest$ac_exeext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 echo "$as_me:$LINENO: result: yes" >&5
11890echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011891#define HAVE_OSPEED 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011892_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011893
11894else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011895 echo "$as_me: failed program was:" >&5
11896sed 's/^/| /' conftest.$ac_ext >&5
11897
11898echo "$as_me:$LINENO: result: no" >&5
11899echo "${ECHO_T}no" >&6
11900 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11901echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11902 cat >conftest.$ac_ext <<_ACEOF
11903/* confdefs.h. */
11904_ACEOF
11905cat confdefs.h >>conftest.$ac_ext
11906cat >>conftest.$ac_ext <<_ACEOF
11907/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011908
11909#ifdef HAVE_TERMCAP_H
11910# include <termcap.h>
11911#endif
11912extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011913
11914int
11915main ()
11916{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011917ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011918 ;
11919 return 0;
11920}
11921_ACEOF
11922rm -f conftest.$ac_objext conftest$ac_exeext
11923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924 (eval $ac_link) 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } &&
11931 { ac_try='test -z "$ac_c_werror_flag"
11932 || test ! -s conftest.err'
11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11935 ac_status=$?
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; } &&
11938 { ac_try='test -s conftest$ac_exeext'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 echo "$as_me:$LINENO: result: yes" >&5
11945echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011946#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011947_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011948
11949else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011950 echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011952
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011953echo "$as_me:$LINENO: result: no" >&5
11954echo "${ECHO_T}no" >&6
11955fi
11956rm -f conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11958
11959fi
11960rm -f conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962
11963echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11964echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11965cat >conftest.$ac_ext <<_ACEOF
11966/* confdefs.h. */
11967_ACEOF
11968cat confdefs.h >>conftest.$ac_ext
11969cat >>conftest.$ac_ext <<_ACEOF
11970/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011971
11972#ifdef HAVE_TERMCAP_H
11973# include <termcap.h>
11974#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011975
11976int
11977main ()
11978{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011979if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011980 ;
11981 return 0;
11982}
11983_ACEOF
11984rm -f conftest.$ac_objext conftest$ac_exeext
11985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11986 (eval $ac_link) 2>conftest.er1
11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -z "$ac_c_werror_flag"
11994 || test ! -s conftest.err'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest$ac_exeext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 echo "$as_me:$LINENO: result: yes" >&5
12007echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012008#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012009_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012010
12011else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012012 echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
12015echo "$as_me:$LINENO: result: no" >&5
12016echo "${ECHO_T}no" >&6
12017 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12018echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12019 cat >conftest.$ac_ext <<_ACEOF
12020/* confdefs.h. */
12021_ACEOF
12022cat confdefs.h >>conftest.$ac_ext
12023cat >>conftest.$ac_ext <<_ACEOF
12024/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012025
12026#ifdef HAVE_TERMCAP_H
12027# include <termcap.h>
12028#endif
12029extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012030
12031int
12032main ()
12033{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012034if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012035 ;
12036 return 0;
12037}
12038_ACEOF
12039rm -f conftest.$ac_objext conftest$ac_exeext
12040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12041 (eval $ac_link) 2>conftest.er1
12042 ac_status=$?
12043 grep -v '^ *+' conftest.er1 >conftest.err
12044 rm -f conftest.er1
12045 cat conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } &&
12048 { ac_try='test -z "$ac_c_werror_flag"
12049 || test ! -s conftest.err'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; } &&
12055 { ac_try='test -s conftest$ac_exeext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 echo "$as_me:$LINENO: result: yes" >&5
12062echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012063#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012064_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012065
12066else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012067 echo "$as_me: failed program was:" >&5
12068sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012069
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012070echo "$as_me:$LINENO: result: no" >&5
12071echo "${ECHO_T}no" >&6
12072fi
12073rm -f conftest.err conftest.$ac_objext \
12074 conftest$ac_exeext conftest.$ac_ext
12075
12076fi
12077rm -f conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
12079
12080echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12081echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12082cat >conftest.$ac_ext <<_ACEOF
12083/* confdefs.h. */
12084_ACEOF
12085cat confdefs.h >>conftest.$ac_ext
12086cat >>conftest.$ac_ext <<_ACEOF
12087/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012088
12089#ifdef HAVE_TERMCAP_H
12090# include <termcap.h>
12091#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012092
12093int
12094main ()
12095{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012096extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012097 ;
12098 return 0;
12099}
12100_ACEOF
12101rm -f conftest.$ac_objext
12102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103 (eval $ac_compile) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try='test -z "$ac_c_werror_flag"
12111 || test ! -s conftest.err'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; } &&
12117 { ac_try='test -s conftest.$ac_objext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 echo "$as_me:$LINENO: result: yes" >&5
12124echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012125#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012126_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012127
12128else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012129 echo "$as_me: failed program was:" >&5
12130sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012131
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012132echo "$as_me:$LINENO: result: no" >&5
12133echo "${ECHO_T}no" >&6
12134fi
12135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12136
12137echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12138echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12139cat >conftest.$ac_ext <<_ACEOF
12140/* confdefs.h. */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012145
12146#include <sys/types.h>
12147#include <sys/time.h>
12148#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012149int
12150main ()
12151{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012152
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012153 ;
12154 return 0;
12155}
12156_ACEOF
12157rm -f conftest.$ac_objext
12158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12159 (eval $ac_compile) 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -z "$ac_c_werror_flag"
12167 || test ! -s conftest.err'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest.$ac_objext'
12174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12176 ac_status=$?
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179 echo "$as_me:$LINENO: result: yes" >&5
12180echo "${ECHO_T}yes" >&6
12181 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012182#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012183_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012184
12185else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012186 echo "$as_me: failed program was:" >&5
12187sed 's/^/| /' conftest.$ac_ext >&5
12188
12189echo "$as_me:$LINENO: result: no" >&5
12190echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012191fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012193
12194
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012195echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12196echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012197if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012198 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012199#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012200_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012201
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012202 echo "$as_me:$LINENO: result: yes" >&5
12203echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012204else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012205 echo "$as_me:$LINENO: result: no" >&5
12206echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012207fi
12208
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012209echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12210echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012211if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012212 cat >conftest.$ac_ext <<_ACEOF
12213/* confdefs.h. */
12214_ACEOF
12215cat confdefs.h >>conftest.$ac_ext
12216cat >>conftest.$ac_ext <<_ACEOF
12217/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012218
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012219int
12220main ()
12221{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012222ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012223 ;
12224 return 0;
12225}
12226_ACEOF
12227rm -f conftest.$ac_objext conftest$ac_exeext
12228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12229 (eval $ac_link) 2>conftest.er1
12230 ac_status=$?
12231 grep -v '^ *+' conftest.er1 >conftest.err
12232 rm -f conftest.er1
12233 cat conftest.err >&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -z "$ac_c_werror_flag"
12237 || test ! -s conftest.err'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12240 ac_status=$?
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; } &&
12243 { ac_try='test -s conftest$ac_exeext'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 echo "$as_me:$LINENO: result: yes" >&5
12250echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012251#define HAVE_SVR4_PTYS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012252_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012253
12254else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012255 echo "$as_me: failed program was:" >&5
12256sed 's/^/| /' conftest.$ac_ext >&5
12257
12258echo "$as_me:$LINENO: result: no" >&5
12259echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012260fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012261rm -f conftest.err conftest.$ac_objext \
12262 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012263else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012264 echo "$as_me:$LINENO: result: no" >&5
12265echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012266fi
12267
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012268echo "$as_me:$LINENO: checking for ptyranges" >&5
12269echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012270if test -d /dev/ptym ; then
12271 pdir='/dev/ptym'
12272else
12273 pdir='/dev'
12274fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012275cat >conftest.$ac_ext <<_ACEOF
12276/* confdefs.h. */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012281#ifdef M_UNIX
12282 yes;
12283#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012284
12285_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012287 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012288 ptys=`echo /dev/ptyp??`
12289else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012290 ptys=`echo $pdir/pty??`
12291fi
12292rm -f conftest*
12293
12294if test "$ptys" != "$pdir/pty??" ; then
12295 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12296 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012297 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012298#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012299_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012300
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012301 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012302#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012303_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012304
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012305 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12306echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012307else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012308 echo "$as_me:$LINENO: result: don't know" >&5
12309echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012310fi
12311
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012312echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12313echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012314rm -f conftest_grp
12315if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012316 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12317echo "$as_me: error: failed to compile test program" >&2;}
12318 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012319else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012320 cat >conftest.$ac_ext <<_ACEOF
12321/* confdefs.h. */
12322_ACEOF
12323cat confdefs.h >>conftest.$ac_ext
12324cat >>conftest.$ac_ext <<_ACEOF
12325/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012326
12327#include <sys/types.h>
12328#include <sys/stat.h>
12329#include <stdio.h>
12330main()
12331{
12332 struct stat sb;
12333 char *x,*ttyname();
12334 int om, m;
12335 FILE *fp;
12336
12337 if (!(x = ttyname(0))) exit(1);
12338 if (stat(x, &sb)) exit(1);
12339 om = sb.st_mode;
12340 if (om & 002) exit(0);
12341 m = system("mesg y");
12342 if (m == -1 || m == 127) exit(1);
12343 if (stat(x, &sb)) exit(1);
12344 m = sb.st_mode;
12345 if (chmod(x, om)) exit(1);
12346 if (m & 002) exit(0);
12347 if (sb.st_gid == getgid()) exit(1);
12348 if (!(fp=fopen("conftest_grp", "w")))
12349 exit(1);
12350 fprintf(fp, "%d\n", sb.st_gid);
12351 fclose(fp);
12352 exit(0);
12353}
12354
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012355_ACEOF
12356rm -f conftest$ac_exeext
12357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358 (eval $ac_link) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367
Bram Moolenaar071d4272004-06-13 20:20:40 +000012368 if test -f conftest_grp; then
12369 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012370 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12371echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12372 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012373#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012374_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012375
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012376 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012377#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012378_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012379
12380 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012381 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12382echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012383 fi
12384
12385else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012386 echo "$as_me: program exited with status $ac_status" >&5
12387echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012389
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012390( exit $ac_status )
12391echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12392echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12393fi
12394rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12395fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012396rm -f conftest_grp
12397
12398
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012399echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12400echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12401if test "${ac_cv_type_signal+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012403else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012404 cat >conftest.$ac_ext <<_ACEOF
12405/* confdefs.h. */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
12409/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012410#include <sys/types.h>
12411#include <signal.h>
12412#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012413# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000012414#endif
12415#ifdef __cplusplus
12416extern "C" void (*signal (int, void (*)(int)))(int);
12417#else
12418void (*signal ()) ();
12419#endif
12420
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012421int
12422main ()
12423{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012424int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012425 ;
12426 return 0;
12427}
12428_ACEOF
12429rm -f conftest.$ac_objext
12430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12431 (eval $ac_compile) 2>conftest.er1
12432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } &&
12438 { ac_try='test -z "$ac_c_werror_flag"
12439 || test ! -s conftest.err'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try='test -s conftest.$ac_objext'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012451 ac_cv_type_signal=void
12452else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012453 echo "$as_me: failed program was:" >&5
12454sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012455
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012456ac_cv_type_signal=int
12457fi
12458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12459fi
12460echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12461echo "${ECHO_T}$ac_cv_type_signal" >&6
12462
12463cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012464#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012465_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012466
12467
12468
12469if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012470 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012471#define SIGRETURN return
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012472_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012473
12474else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012475 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012476#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012477_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012478
12479fi
12480
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012481echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12482echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12483cat >conftest.$ac_ext <<_ACEOF
12484/* confdefs.h. */
12485_ACEOF
12486cat confdefs.h >>conftest.$ac_ext
12487cat >>conftest.$ac_ext <<_ACEOF
12488/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012489
12490#include <signal.h>
12491test_sig()
12492{
12493 struct sigcontext *scont;
12494 scont = (struct sigcontext *)0;
12495 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012496}
12497int
12498main ()
12499{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012500
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012501 ;
12502 return 0;
12503}
12504_ACEOF
12505rm -f conftest.$ac_objext
12506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507 (eval $ac_compile) 2>conftest.er1
12508 ac_status=$?
12509 grep -v '^ *+' conftest.er1 >conftest.err
12510 rm -f conftest.er1
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -z "$ac_c_werror_flag"
12515 || test ! -s conftest.err'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; } &&
12521 { ac_try='test -s conftest.$ac_objext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 echo "$as_me:$LINENO: result: yes" >&5
12528echo "${ECHO_T}yes" >&6
12529 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012530#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012531_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012532
12533else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012534 echo "$as_me: failed program was:" >&5
12535sed 's/^/| /' conftest.$ac_ext >&5
12536
12537echo "$as_me:$LINENO: result: no" >&5
12538echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012539fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012541
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012542echo "$as_me:$LINENO: checking getcwd implementation" >&5
12543echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012544if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012545 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12546echo "$as_me: error: failed to compile test program" >&2;}
12547 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012548else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012549 cat >conftest.$ac_ext <<_ACEOF
12550/* confdefs.h. */
12551_ACEOF
12552cat confdefs.h >>conftest.$ac_ext
12553cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012555
12556char *dagger[] = { "IFS=pwd", 0 };
12557main()
12558{
12559 char buffer[500];
12560 extern char **environ;
12561 environ = dagger;
12562 return getcwd(buffer, 500) ? 0 : 1;
12563}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012564_ACEOF
12565rm -f conftest$ac_exeext
12566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567 (eval $ac_link) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 echo "$as_me:$LINENO: result: it is usable" >&5
12577echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012578else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012579 echo "$as_me: program exited with status $ac_status" >&5
12580echo "$as_me: failed program was:" >&5
12581sed 's/^/| /' conftest.$ac_ext >&5
12582
12583( exit $ac_status )
12584echo "$as_me:$LINENO: result: it stinks" >&5
12585echo "${ECHO_T}it stinks" >&6
12586 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012587#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012588_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012589
12590fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012591rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012592fi
12593
12594
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
Bram Moolenaar071d4272004-06-13 20:20:40 +000012640for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12641 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12642 memset nanosleep opendir putenv qsort readlink select setenv \
12643 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000012644 sigvec strcasecmp strerror strftime stricmp strncasecmp \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000012645 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12646 usleep utime utimes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012647do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12649echo "$as_me:$LINENO: checking for $ac_func" >&5
12650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12651if eval "test \"\${$as_ac_var+set}\" = set"; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012653else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012654 cat >conftest.$ac_ext <<_ACEOF
12655/* confdefs.h. */
12656_ACEOF
12657cat confdefs.h >>conftest.$ac_ext
12658cat >>conftest.$ac_ext <<_ACEOF
12659/* end confdefs.h. */
12660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12662#define $ac_func innocuous_$ac_func
12663
Bram Moolenaar071d4272004-06-13 20:20:40 +000012664/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012665 which can conflict with char $ac_func (); below.
12666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667 <limits.h> exists even on freestanding compilers. */
12668
12669#ifdef __STDC__
12670# include <limits.h>
12671#else
12672# include <assert.h>
12673#endif
12674
12675#undef $ac_func
12676
Bram Moolenaar071d4272004-06-13 20:20:40 +000012677/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012678#ifdef __cplusplus
12679extern "C"
12680{
12681#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012682/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012683 builtin and then its argument prototype would still apply. */
12684char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000012685/* The GNU C library defines this for functions which it implements
12686 to always fail with ENOSYS. Some functions are actually named
12687 something starting with __ and the normal name is an alias. */
12688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12689choke me
12690#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012691char (*f) () = $ac_func;
12692#endif
12693#ifdef __cplusplus
12694}
Bram Moolenaar071d4272004-06-13 20:20:40 +000012695#endif
12696
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012697int
12698main ()
12699{
12700return f != $ac_func;
12701 ;
12702 return 0;
12703}
12704_ACEOF
12705rm -f conftest.$ac_objext conftest$ac_exeext
12706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707 (eval $ac_link) 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
12714 { ac_try='test -z "$ac_c_werror_flag"
12715 || test ! -s conftest.err'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest$ac_exeext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012728else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012731
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012732eval "$as_ac_var=no"
12733fi
12734rm -f conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12736fi
12737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12738echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12739if test `eval echo '${'$as_ac_var'}'` = yes; then
12740 cat >>confdefs.h <<_ACEOF
12741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12742_ACEOF
12743
Bram Moolenaar071d4272004-06-13 20:20:40 +000012744fi
12745done
12746
12747
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012748echo "$as_me:$LINENO: checking for st_blksize" >&5
12749echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12750cat >conftest.$ac_ext <<_ACEOF
12751/* confdefs.h. */
12752_ACEOF
12753cat confdefs.h >>conftest.$ac_ext
12754cat >>conftest.$ac_ext <<_ACEOF
12755/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012756#include <sys/types.h>
12757#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012758int
12759main ()
12760{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012761 struct stat st;
12762 int n;
12763
12764 stat("/", &st);
12765 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012766 ;
12767 return 0;
12768}
12769_ACEOF
12770rm -f conftest.$ac_objext
12771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12772 (eval $ac_compile) 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag"
12780 || test ! -s conftest.err'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest.$ac_objext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 echo "$as_me:$LINENO: result: yes" >&5
12793echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012794#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012795_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012796
12797else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012798 echo "$as_me: failed program was:" >&5
12799sed 's/^/| /' conftest.$ac_ext >&5
12800
12801echo "$as_me:$LINENO: result: no" >&5
12802echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012803fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012805
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012806echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12807echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012808if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012809 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12810echo "$as_me: error: failed to compile test program" >&2;}
12811 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012812else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012813 cat >conftest.$ac_ext <<_ACEOF
12814/* confdefs.h. */
12815_ACEOF
12816cat confdefs.h >>conftest.$ac_ext
12817cat >>conftest.$ac_ext <<_ACEOF
12818/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012819#include <sys/types.h>
12820#include <sys/stat.h>
12821main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012822_ACEOF
12823rm -f conftest$ac_exeext
12824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12825 (eval $ac_link) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; }; then
12834 echo "$as_me:$LINENO: result: yes" >&5
12835echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012836#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012837_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012838
12839else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012840 echo "$as_me: program exited with status $ac_status" >&5
12841echo "$as_me: failed program was:" >&5
12842sed 's/^/| /' conftest.$ac_ext >&5
12843
12844( exit $ac_status )
12845echo "$as_me:$LINENO: result: no" >&5
12846echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012847fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012848rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012849fi
12850
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012851echo "$as_me:$LINENO: checking for iconv_open()" >&5
12852echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012853save_LIBS="$LIBS"
12854LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012855cat >conftest.$ac_ext <<_ACEOF
12856/* confdefs.h. */
12857_ACEOF
12858cat confdefs.h >>conftest.$ac_ext
12859cat >>conftest.$ac_ext <<_ACEOF
12860/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012861
12862#ifdef HAVE_ICONV_H
12863# include <iconv.h>
12864#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012865
12866int
12867main ()
12868{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012869iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012870 ;
12871 return 0;
12872}
12873_ACEOF
12874rm -f conftest.$ac_objext conftest$ac_exeext
12875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12897echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012898#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012899_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012900
12901else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012902 echo "$as_me: failed program was:" >&5
12903sed 's/^/| /' conftest.$ac_ext >&5
12904
12905LIBS="$save_LIBS"
12906 cat >conftest.$ac_ext <<_ACEOF
12907/* confdefs.h. */
12908_ACEOF
12909cat confdefs.h >>conftest.$ac_ext
12910cat >>conftest.$ac_ext <<_ACEOF
12911/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012912
12913#ifdef HAVE_ICONV_H
12914# include <iconv.h>
12915#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012916
12917int
12918main ()
12919{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012920iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012921 ;
12922 return 0;
12923}
12924_ACEOF
12925rm -f conftest.$ac_objext conftest$ac_exeext
12926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12927 (eval $ac_link) 2>conftest.er1
12928 ac_status=$?
12929 grep -v '^ *+' conftest.er1 >conftest.err
12930 rm -f conftest.er1
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -z "$ac_c_werror_flag"
12935 || test ! -s conftest.err'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; } &&
12941 { ac_try='test -s conftest$ac_exeext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 echo "$as_me:$LINENO: result: yes" >&5
12948echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012949#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012950_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012951
12952else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012953 echo "$as_me: failed program was:" >&5
12954sed 's/^/| /' conftest.$ac_ext >&5
12955
12956echo "$as_me:$LINENO: result: no" >&5
12957echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012958fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012959rm -f conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012961fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012962rm -f conftest.err conftest.$ac_objext \
12963 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012964
12965
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012966echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12967echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12968cat >conftest.$ac_ext <<_ACEOF
12969/* confdefs.h. */
12970_ACEOF
12971cat confdefs.h >>conftest.$ac_ext
12972cat >>conftest.$ac_ext <<_ACEOF
12973/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012974
12975#ifdef HAVE_LANGINFO_H
12976# include <langinfo.h>
12977#endif
12978
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012979int
12980main ()
12981{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012982char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012983 ;
12984 return 0;
12985}
12986_ACEOF
12987rm -f conftest.$ac_objext conftest$ac_exeext
12988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989 (eval $ac_link) 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag"
12997 || test ! -s conftest.err'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } &&
13003 { ac_try='test -s conftest$ac_exeext'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 echo "$as_me:$LINENO: result: yes" >&5
13010echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013011#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013012_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013013
13014else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013015 echo "$as_me: failed program was:" >&5
13016sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013017
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013018echo "$as_me:$LINENO: result: no" >&5
13019echo "${ECHO_T}no" >&6
13020fi
13021rm -f conftest.err conftest.$ac_objext \
13022 conftest$ac_exeext conftest.$ac_ext
13023
13024echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13025echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013026# Check whether --enable-acl or --disable-acl was given.
13027if test "${enable_acl+set}" = set; then
13028 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013029
Bram Moolenaar071d4272004-06-13 20:20:40 +000013030else
13031 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013032fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013033if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013034echo "$as_me:$LINENO: result: no" >&5
13035echo "${ECHO_T}no" >&6
13036echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13037echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13038if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013040else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013041 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013042LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013043cat >conftest.$ac_ext <<_ACEOF
13044/* confdefs.h. */
13045_ACEOF
13046cat confdefs.h >>conftest.$ac_ext
13047cat >>conftest.$ac_ext <<_ACEOF
13048/* end confdefs.h. */
13049
Bram Moolenaar071d4272004-06-13 20:20:40 +000013050/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013051#ifdef __cplusplus
13052extern "C"
13053#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013054/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013055 builtin and then its argument prototype would still apply. */
13056char acl_get_file ();
13057int
13058main ()
13059{
13060acl_get_file ();
13061 ;
13062 return 0;
13063}
13064_ACEOF
13065rm -f conftest.$ac_objext conftest$ac_exeext
13066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067 (eval $ac_link) 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag"
13075 || test ! -s conftest.err'
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13078 ac_status=$?
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; } &&
13081 { ac_try='test -s conftest$ac_exeext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013088else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013089 echo "$as_me: failed program was:" >&5
13090sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013091
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013092ac_cv_lib_posix1e_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013093fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013094rm -f conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13096LIBS=$ac_check_lib_save_LIBS
13097fi
13098echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13099echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13100if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013101 LIBS="$LIBS -lposix1e"
13102else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013103 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13104echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13105if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013107else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013108 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013109LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013110cat >conftest.$ac_ext <<_ACEOF
13111/* confdefs.h. */
13112_ACEOF
13113cat confdefs.h >>conftest.$ac_ext
13114cat >>conftest.$ac_ext <<_ACEOF
13115/* end confdefs.h. */
13116
Bram Moolenaar071d4272004-06-13 20:20:40 +000013117/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013118#ifdef __cplusplus
13119extern "C"
13120#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013121/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013122 builtin and then its argument prototype would still apply. */
13123char acl_get_file ();
13124int
13125main ()
13126{
13127acl_get_file ();
13128 ;
13129 return 0;
13130}
13131_ACEOF
13132rm -f conftest.$ac_objext conftest$ac_exeext
13133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13134 (eval $ac_link) 2>conftest.er1
13135 ac_status=$?
13136 grep -v '^ *+' conftest.er1 >conftest.err
13137 rm -f conftest.er1
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag"
13142 || test ! -s conftest.err'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; } &&
13148 { ac_try='test -s conftest$ac_exeext'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013155else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013156 echo "$as_me: failed program was:" >&5
13157sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013158
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013159ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013160fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013161rm -f conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13163LIBS=$ac_check_lib_save_LIBS
13164fi
13165echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13166echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13167if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013168 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013169 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13170echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13171if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013173else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013174 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013175LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013176cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
13182
Bram Moolenaar071d4272004-06-13 20:20:40 +000013183/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013184#ifdef __cplusplus
13185extern "C"
13186#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013187/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013188 builtin and then its argument prototype would still apply. */
13189char fgetxattr ();
13190int
13191main ()
13192{
13193fgetxattr ();
13194 ;
13195 return 0;
13196}
13197_ACEOF
13198rm -f conftest.$ac_objext conftest$ac_exeext
13199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13200 (eval $ac_link) 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_c_werror_flag"
13208 || test ! -s conftest.err'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; } &&
13214 { ac_try='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013221else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013222 echo "$as_me: failed program was:" >&5
13223sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013224
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013225ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013226fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013227rm -f conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext conftest.$ac_ext
13229LIBS=$ac_check_lib_save_LIBS
13230fi
13231echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13232echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13233if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013234 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013235fi
13236
Bram Moolenaar071d4272004-06-13 20:20:40 +000013237fi
13238
13239fi
13240
13241
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013242echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13243echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13244cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013250
13251#include <sys/types.h>
13252#ifdef HAVE_SYS_ACL_H
13253# include <sys/acl.h>
13254#endif
13255acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013256int
13257main ()
13258{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013259acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13260 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13261 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013262 ;
13263 return 0;
13264}
13265_ACEOF
13266rm -f conftest.$ac_objext conftest$ac_exeext
13267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268 (eval $ac_link) 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -z "$ac_c_werror_flag"
13276 || test ! -s conftest.err'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; } &&
13282 { ac_try='test -s conftest$ac_exeext'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 echo "$as_me:$LINENO: result: yes" >&5
13289echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013290#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013291_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013292
13293else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013294 echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013296
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013297echo "$as_me:$LINENO: result: no" >&5
13298echo "${ECHO_T}no" >&6
13299fi
13300rm -f conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13302
13303echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13304echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13305cat >conftest.$ac_ext <<_ACEOF
13306/* confdefs.h. */
13307_ACEOF
13308cat confdefs.h >>conftest.$ac_ext
13309cat >>conftest.$ac_ext <<_ACEOF
13310/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013311
13312#ifdef HAVE_SYS_ACL_H
13313# include <sys/acl.h>
13314#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013315int
13316main ()
13317{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013318acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013319
13320 ;
13321 return 0;
13322}
13323_ACEOF
13324rm -f conftest.$ac_objext conftest$ac_exeext
13325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13326 (eval $ac_link) 2>conftest.er1
13327 ac_status=$?
13328 grep -v '^ *+' conftest.er1 >conftest.err
13329 rm -f conftest.er1
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -z "$ac_c_werror_flag"
13334 || test ! -s conftest.err'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; } &&
13340 { ac_try='test -s conftest$ac_exeext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 echo "$as_me:$LINENO: result: yes" >&5
13347echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013348#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013349_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013350
13351else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013352 echo "$as_me: failed program was:" >&5
13353sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013354
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013355echo "$as_me:$LINENO: result: no" >&5
13356echo "${ECHO_T}no" >&6
13357fi
13358rm -f conftest.err conftest.$ac_objext \
13359 conftest$ac_exeext conftest.$ac_ext
13360
13361echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13362echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13363cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013369
13370#ifdef HAVE_SYS_ACL_H
13371# include <sys/acl.h>
13372#endif
13373#ifdef HAVE_SYS_ACCESS_H
13374# include <sys/access.h>
13375#endif
13376#define _ALL_SOURCE
13377
13378#include <sys/stat.h>
13379
13380int aclsize;
13381struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013382int
13383main ()
13384{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013385aclsize = sizeof(struct acl);
13386 aclent = (void *)malloc(aclsize);
13387 statacl("foo", STX_NORMAL, aclent, aclsize);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013388
13389 ;
13390 return 0;
13391}
13392_ACEOF
13393rm -f conftest.$ac_objext conftest$ac_exeext
13394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13395 (eval $ac_link) 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -z "$ac_c_werror_flag"
13403 || test ! -s conftest.err'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; } &&
13409 { ac_try='test -s conftest$ac_exeext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 echo "$as_me:$LINENO: result: yes" >&5
13416echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013417#define HAVE_AIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013418_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013419
13420else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013421 echo "$as_me: failed program was:" >&5
13422sed 's/^/| /' conftest.$ac_ext >&5
13423
13424echo "$as_me:$LINENO: result: no" >&5
13425echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013426fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013427rm -f conftest.err conftest.$ac_objext \
13428 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013429else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013430 echo "$as_me:$LINENO: result: yes" >&5
13431echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013432fi
13433
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013434echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13435echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013436# Check whether --enable-gpm or --disable-gpm was given.
13437if test "${enable_gpm+set}" = set; then
13438 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013439
Bram Moolenaar071d4272004-06-13 20:20:40 +000013440else
13441 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013442fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013443
13444if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013445 echo "$as_me:$LINENO: result: no" >&5
13446echo "${ECHO_T}no" >&6
13447 echo "$as_me:$LINENO: checking for gpm" >&5
13448echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13449if test "${vi_cv_have_gpm+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013451else
13452 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013453 cat >conftest.$ac_ext <<_ACEOF
13454/* confdefs.h. */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
13458/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013459#include <gpm.h>
13460 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013461int
13462main ()
13463{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013464Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013465 ;
13466 return 0;
13467}
13468_ACEOF
13469rm -f conftest.$ac_objext conftest$ac_exeext
13470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13471 (eval $ac_link) 2>conftest.er1
13472 ac_status=$?
13473 grep -v '^ *+' conftest.er1 >conftest.err
13474 rm -f conftest.er1
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_c_werror_flag"
13479 || test ! -s conftest.err'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try='test -s conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013491 vi_cv_have_gpm=yes
13492else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013493 echo "$as_me: failed program was:" >&5
13494sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013495
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013496vi_cv_have_gpm=no
13497fi
13498rm -f conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext conftest.$ac_ext
13500 LIBS="$olibs"
13501
13502fi
13503echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13504echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013505 if test $vi_cv_have_gpm = yes; then
13506 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013507 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013508#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013509_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013510
13511 fi
13512else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013513 echo "$as_me:$LINENO: result: yes" >&5
13514echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013515fi
13516
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013517echo "$as_me:$LINENO: checking for rename" >&5
13518echo $ECHO_N "checking for rename... $ECHO_C" >&6
13519cat >conftest.$ac_ext <<_ACEOF
13520/* confdefs.h. */
13521_ACEOF
13522cat confdefs.h >>conftest.$ac_ext
13523cat >>conftest.$ac_ext <<_ACEOF
13524/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013525#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013526int
13527main ()
13528{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013529rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013530 ;
13531 return 0;
13532}
13533_ACEOF
13534rm -f conftest.$ac_objext conftest$ac_exeext
13535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13536 (eval $ac_link) 2>conftest.er1
13537 ac_status=$?
13538 grep -v '^ *+' conftest.er1 >conftest.err
13539 rm -f conftest.er1
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
13543 { ac_try='test -z "$ac_c_werror_flag"
13544 || test ! -s conftest.err'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try='test -s conftest$ac_exeext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 echo "$as_me:$LINENO: result: yes" >&5
13557echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013558#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013559_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013560
13561else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013562 echo "$as_me: failed program was:" >&5
13563sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013564
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013565echo "$as_me:$LINENO: result: no" >&5
13566echo "${ECHO_T}no" >&6
13567fi
13568rm -f conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13570
13571echo "$as_me:$LINENO: checking for sysctl" >&5
13572echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13573cat >conftest.$ac_ext <<_ACEOF
13574/* confdefs.h. */
13575_ACEOF
13576cat confdefs.h >>conftest.$ac_ext
13577cat >>conftest.$ac_ext <<_ACEOF
13578/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013579#include <sys/types.h>
13580#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013581int
13582main ()
13583{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013584 int mib[2], r;
13585 size_t len;
13586
13587 mib[0] = CTL_HW;
13588 mib[1] = HW_USERMEM;
13589 len = sizeof(r);
13590 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013591
13592 ;
13593 return 0;
13594}
13595_ACEOF
13596rm -f conftest.$ac_objext
13597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598 (eval $ac_compile) 2>conftest.er1
13599 ac_status=$?
13600 grep -v '^ *+' conftest.er1 >conftest.err
13601 rm -f conftest.er1
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -z "$ac_c_werror_flag"
13606 || test ! -s conftest.err'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13609 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; } &&
13612 { ac_try='test -s conftest.$ac_objext'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 echo "$as_me:$LINENO: result: yes" >&5
13619echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013620#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013621_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013622
13623else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013624 echo "$as_me: failed program was:" >&5
13625sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013626
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013627echo "$as_me:$LINENO: result: not usable" >&5
13628echo "${ECHO_T}not usable" >&6
13629fi
13630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13631
13632echo "$as_me:$LINENO: checking for sysinfo" >&5
13633echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13634cat >conftest.$ac_ext <<_ACEOF
13635/* confdefs.h. */
13636_ACEOF
13637cat confdefs.h >>conftest.$ac_ext
13638cat >>conftest.$ac_ext <<_ACEOF
13639/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013640#include <sys/types.h>
13641#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013642int
13643main ()
13644{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013645 struct sysinfo sinfo;
13646 int t;
13647
13648 (void)sysinfo(&sinfo);
13649 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013650
13651 ;
13652 return 0;
13653}
13654_ACEOF
13655rm -f conftest.$ac_objext
13656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657 (eval $ac_compile) 2>conftest.er1
13658 ac_status=$?
13659 grep -v '^ *+' conftest.er1 >conftest.err
13660 rm -f conftest.er1
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -z "$ac_c_werror_flag"
13665 || test ! -s conftest.err'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest.$ac_objext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 echo "$as_me:$LINENO: result: yes" >&5
13678echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013679#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013680_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013681
13682else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013683 echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013685
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013686echo "$as_me:$LINENO: result: not usable" >&5
13687echo "${ECHO_T}not usable" >&6
13688fi
13689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13690
13691echo "$as_me:$LINENO: checking for sysconf" >&5
13692echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13693cat >conftest.$ac_ext <<_ACEOF
13694/* confdefs.h. */
13695_ACEOF
13696cat confdefs.h >>conftest.$ac_ext
13697cat >>conftest.$ac_ext <<_ACEOF
13698/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013699#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013700int
13701main ()
13702{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013703 (void)sysconf(_SC_PAGESIZE);
13704 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013705
13706 ;
13707 return 0;
13708}
13709_ACEOF
13710rm -f conftest.$ac_objext
13711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13712 (eval $ac_compile) 2>conftest.er1
13713 ac_status=$?
13714 grep -v '^ *+' conftest.er1 >conftest.err
13715 rm -f conftest.er1
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try='test -z "$ac_c_werror_flag"
13720 || test ! -s conftest.err'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest.$ac_objext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 echo "$as_me:$LINENO: result: yes" >&5
13733echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013734#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013735_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013736
13737else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013738 echo "$as_me: failed program was:" >&5
13739sed 's/^/| /' conftest.$ac_ext >&5
13740
13741echo "$as_me:$LINENO: result: not usable" >&5
13742echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013743fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013745
13746
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013747echo "$as_me:$LINENO: checking size of int" >&5
13748echo $ECHO_N "checking size of int... $ECHO_C" >&6
13749if test "${ac_cv_sizeof_int+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013751else
13752 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013753 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13754echo "$as_me: error: failed to compile test program" >&2;}
13755 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013756else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013757 cat >conftest.$ac_ext <<_ACEOF
13758/* confdefs.h. */
13759_ACEOF
13760cat confdefs.h >>conftest.$ac_ext
13761cat >>conftest.$ac_ext <<_ACEOF
13762/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013763#include <stdio.h>
13764 main()
13765 {
13766 FILE *f=fopen("conftestval", "w");
13767 if (!f) exit(1);
13768 fprintf(f, "%d\n", (int)sizeof(int));
13769 exit(0);
13770 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013771_ACEOF
13772rm -f conftest$ac_exeext
13773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13774 (eval $ac_link) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013783 ac_cv_sizeof_int=`cat conftestval`
13784else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013785 echo "$as_me: program exited with status $ac_status" >&5
13786echo "$as_me: failed program was:" >&5
13787sed 's/^/| /' conftest.$ac_ext >&5
13788
13789( exit $ac_status )
13790ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000013791fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013792rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13793fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013794fi
13795
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013796echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13797echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13798cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013799#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013800_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013801
13802
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013803echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13804echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013805bcopy_test_prog='
13806main() {
13807 char buf[10];
13808 strcpy(buf, "abcdefghi");
13809 mch_memmove(buf, buf + 2, 3);
13810 if (strncmp(buf, "ababcf", 6))
13811 exit(1);
13812 strcpy(buf, "abcdefghi");
13813 mch_memmove(buf + 2, buf, 3);
13814 if (strncmp(buf, "cdedef", 6))
13815 exit(1);
13816 exit(0); /* libc version works properly. */
13817}'
13818
13819
13820if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013821 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13822echo "$as_me: error: failed to compile test program" >&2;}
13823 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013824else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013825 cat >conftest.$ac_ext <<_ACEOF
13826/* confdefs.h. */
13827_ACEOF
13828cat confdefs.h >>conftest.$ac_ext
13829cat >>conftest.$ac_ext <<_ACEOF
13830/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013831#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013832_ACEOF
13833rm -f conftest$ac_exeext
13834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13835 (eval $ac_link) 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013845#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013846_ACEOF
13847 echo "$as_me:$LINENO: result: memmove does" >&5
13848echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013849else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013850 echo "$as_me: program exited with status $ac_status" >&5
13851echo "$as_me: failed program was:" >&5
13852sed 's/^/| /' conftest.$ac_ext >&5
13853
13854( exit $ac_status )
13855if test "$cross_compiling" = yes; then
13856 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13857echo "$as_me: error: failed to compile test program" >&2;}
13858 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013859else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013860 cat >conftest.$ac_ext <<_ACEOF
13861/* confdefs.h. */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
13865/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013866#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013867_ACEOF
13868rm -f conftest$ac_exeext
13869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870 (eval $ac_link) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13876 ac_status=$?
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13879 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013880#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013881_ACEOF
13882 echo "$as_me:$LINENO: result: bcopy does" >&5
13883echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013884else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013885 echo "$as_me: program exited with status $ac_status" >&5
13886echo "$as_me: failed program was:" >&5
13887sed 's/^/| /' conftest.$ac_ext >&5
13888
13889( exit $ac_status )
13890if test "$cross_compiling" = yes; then
13891 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13892echo "$as_me: error: failed to compile test program" >&2;}
13893 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013894else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013895 cat >conftest.$ac_ext <<_ACEOF
13896/* confdefs.h. */
13897_ACEOF
13898cat confdefs.h >>conftest.$ac_ext
13899cat >>conftest.$ac_ext <<_ACEOF
13900/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013901#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013902_ACEOF
13903rm -f conftest$ac_exeext
13904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13905 (eval $ac_link) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013915#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013916_ACEOF
13917 echo "$as_me:$LINENO: result: memcpy does" >&5
13918echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013919else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013920 echo "$as_me: program exited with status $ac_status" >&5
13921echo "$as_me: failed program was:" >&5
13922sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013923
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013924( exit $ac_status )
13925echo "$as_me:$LINENO: result: no" >&5
13926echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013927fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013929fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013930fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013932fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013933fi
13934rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13935fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013936
13937
13938if test "$enable_multibyte" = "yes"; then
13939 cflags_save=$CFLAGS
13940 ldflags_save=$LDFLAGS
13941 if test -n "$x_includes" ; then
13942 CFLAGS="$CFLAGS -I$x_includes"
13943 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013944 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
13945echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
13946 cat >conftest.$ac_ext <<_ACEOF
13947/* confdefs.h. */
13948_ACEOF
13949cat confdefs.h >>conftest.$ac_ext
13950cat >>conftest.$ac_ext <<_ACEOF
13951/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013952#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013953int
13954main ()
13955{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013956
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013957 ;
13958 return 0;
13959}
13960_ACEOF
13961rm -f conftest.$ac_objext
13962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13963 (eval $ac_compile) 2>conftest.er1
13964 ac_status=$?
13965 grep -v '^ *+' conftest.er1 >conftest.err
13966 rm -f conftest.er1
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } &&
13970 { ac_try='test -z "$ac_c_werror_flag"
13971 || test ! -s conftest.err'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } &&
13977 { ac_try='test -s conftest.$ac_objext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983 cat >conftest.$ac_ext <<_ACEOF
13984/* confdefs.h. */
13985_ACEOF
13986cat confdefs.h >>conftest.$ac_ext
13987cat >>conftest.$ac_ext <<_ACEOF
13988/* end confdefs.h. */
13989
Bram Moolenaar071d4272004-06-13 20:20:40 +000013990/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013991#ifdef __cplusplus
13992extern "C"
13993#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013994/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013995 builtin and then its argument prototype would still apply. */
13996char _Xsetlocale ();
13997int
13998main ()
13999{
14000_Xsetlocale ();
14001 ;
14002 return 0;
14003}
14004_ACEOF
14005rm -f conftest.$ac_objext conftest$ac_exeext
14006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14007 (eval $ac_link) 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try='test -z "$ac_c_werror_flag"
14015 || test ! -s conftest.err'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; } &&
14021 { ac_try='test -s conftest$ac_exeext'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 echo "$as_me:$LINENO: result: yes" >&5
14028echo "${ECHO_T}yes" >&6
14029 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014030#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014031_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014032
14033else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014034 echo "$as_me: failed program was:" >&5
14035sed 's/^/| /' conftest.$ac_ext >&5
14036
14037echo "$as_me:$LINENO: result: no" >&5
14038echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014039fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014040rm -f conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014042else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014043 echo "$as_me: failed program was:" >&5
14044sed 's/^/| /' conftest.$ac_ext >&5
14045
14046echo "$as_me:$LINENO: result: no" >&5
14047echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014048fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014050 fi
14051 CFLAGS=$cflags_save
14052 LDFLAGS=$ldflags_save
14053fi
14054
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014055echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14056echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14057if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014059else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014060 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014061LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014062cat >conftest.$ac_ext <<_ACEOF
14063/* confdefs.h. */
14064_ACEOF
14065cat confdefs.h >>conftest.$ac_ext
14066cat >>conftest.$ac_ext <<_ACEOF
14067/* end confdefs.h. */
14068
Bram Moolenaar071d4272004-06-13 20:20:40 +000014069/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014070#ifdef __cplusplus
14071extern "C"
14072#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014073/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014074 builtin and then its argument prototype would still apply. */
14075char _xpg4_setrunelocale ();
14076int
14077main ()
14078{
14079_xpg4_setrunelocale ();
14080 ;
14081 return 0;
14082}
14083_ACEOF
14084rm -f conftest.$ac_objext conftest$ac_exeext
14085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086 (eval $ac_link) 2>conftest.er1
14087 ac_status=$?
14088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
14093 { ac_try='test -z "$ac_c_werror_flag"
14094 || test ! -s conftest.err'
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); }; } &&
14100 { ac_try='test -s conftest$ac_exeext'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }; then
14106 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014107else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014108 echo "$as_me: failed program was:" >&5
14109sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014110
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014111ac_cv_lib_xpg4__xpg4_setrunelocale=no
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
14115LIBS=$ac_check_lib_save_LIBS
14116fi
14117echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14118echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14119if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014120 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014121fi
14122
14123
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014124echo "$as_me:$LINENO: checking how to create tags" >&5
14125echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014126test -f tags && mv tags tags.save
14127if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
Bram Moolenaarb21e5842006-04-16 18:30:08 +000014128 TAGPRG="ctags -I INIT+ --fields=+S"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014129else
14130 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14131 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14132 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14133 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14134 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14135 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14136 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14137fi
14138test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014139echo "$as_me:$LINENO: result: $TAGPRG" >&5
14140echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014141
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014142echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14143echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014144MANDEF="man"
14145(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014146echo "$as_me:$LINENO: result: $MANDEF" >&5
14147echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014148if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014149 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014150#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014151_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014152
14153fi
14154
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014155echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14156echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014157# Check whether --enable-nls or --disable-nls was given.
14158if test "${enable_nls+set}" = set; then
14159 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014160
Bram Moolenaar071d4272004-06-13 20:20:40 +000014161else
14162 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014163fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014164
14165if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014166 echo "$as_me:$LINENO: result: no" >&5
14167echo "${ECHO_T}no" >&6
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000014168
14169 INSTALL_LANGS=install-languages
14170
14171 INSTALL_TOOL_LANGS=install-tool-languages
14172
14173
Bram Moolenaar071d4272004-06-13 20:20:40 +000014174 # Extract the first word of "msgfmt", so it can be a program name with args.
14175set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014176echo "$as_me:$LINENO: checking for $ac_word" >&5
14177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14178if test "${ac_cv_prog_MSGFMT+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014180else
14181 if test -n "$MSGFMT"; then
14182 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14183else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14185for as_dir in $PATH
14186do
14187 IFS=$as_save_IFS
14188 test -z "$as_dir" && as_dir=.
14189 for ac_exec_ext in '' $ac_executable_extensions; do
14190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14191 ac_cv_prog_MSGFMT="msgfmt"
14192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14193 break 2
14194 fi
14195done
14196done
14197
Bram Moolenaar071d4272004-06-13 20:20:40 +000014198fi
14199fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014200MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000014201if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014202 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14203echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014204else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014205 echo "$as_me:$LINENO: result: no" >&5
14206echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014207fi
14208
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014209 echo "$as_me:$LINENO: checking for NLS" >&5
14210echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014211 if test -f po/Makefile; then
14212 have_gettext="no"
14213 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014214 cat >conftest.$ac_ext <<_ACEOF
14215/* confdefs.h. */
14216_ACEOF
14217cat confdefs.h >>conftest.$ac_ext
14218cat >>conftest.$ac_ext <<_ACEOF
14219/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014220#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014221int
14222main ()
14223{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014224gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014225 ;
14226 return 0;
14227}
14228_ACEOF
14229rm -f conftest.$ac_objext conftest$ac_exeext
14230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14231 (eval $ac_link) 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag"
14239 || test ! -s conftest.err'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest$ac_exeext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 echo "$as_me:$LINENO: result: gettext() works" >&5
14252echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014253else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014254 echo "$as_me: failed program was:" >&5
14255sed 's/^/| /' conftest.$ac_ext >&5
14256
14257olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014258 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014259 cat >conftest.$ac_ext <<_ACEOF
14260/* confdefs.h. */
14261_ACEOF
14262cat confdefs.h >>conftest.$ac_ext
14263cat >>conftest.$ac_ext <<_ACEOF
14264/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014265#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014266int
14267main ()
14268{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014269gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014270 ;
14271 return 0;
14272}
14273_ACEOF
14274rm -f conftest.$ac_objext conftest$ac_exeext
14275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14276 (eval $ac_link) 2>conftest.er1
14277 ac_status=$?
14278 grep -v '^ *+' conftest.er1 >conftest.err
14279 rm -f conftest.er1
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } &&
14283 { ac_try='test -z "$ac_c_werror_flag"
14284 || test ! -s conftest.err'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; } &&
14290 { ac_try='test -s conftest$ac_exeext'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14293 ac_status=$?
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14296 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14297echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014298else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014299 echo "$as_me: failed program was:" >&5
14300sed 's/^/| /' conftest.$ac_ext >&5
14301
14302echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14303echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014304 LIBS=$olibs
14305fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014306rm -f conftest.err conftest.$ac_objext \
14307 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014308fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014309rm -f conftest.err conftest.$ac_objext \
14310 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014311 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014312 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14313echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014314 fi
14315 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014316 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014317#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014318_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014319
14320 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014321
14322
14323for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000014324do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14326echo "$as_me:$LINENO: checking for $ac_func" >&5
14327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14328if eval "test \"\${$as_ac_var+set}\" = set"; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014330else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014331 cat >conftest.$ac_ext <<_ACEOF
14332/* confdefs.h. */
14333_ACEOF
14334cat confdefs.h >>conftest.$ac_ext
14335cat >>conftest.$ac_ext <<_ACEOF
14336/* end confdefs.h. */
14337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14339#define $ac_func innocuous_$ac_func
14340
Bram Moolenaar071d4272004-06-13 20:20:40 +000014341/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014342 which can conflict with char $ac_func (); below.
14343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14344 <limits.h> exists even on freestanding compilers. */
14345
14346#ifdef __STDC__
14347# include <limits.h>
14348#else
14349# include <assert.h>
14350#endif
14351
14352#undef $ac_func
14353
Bram Moolenaar071d4272004-06-13 20:20:40 +000014354/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014355#ifdef __cplusplus
14356extern "C"
14357{
14358#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014359/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014360 builtin and then its argument prototype would still apply. */
14361char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000014362/* The GNU C library defines this for functions which it implements
14363 to always fail with ENOSYS. Some functions are actually named
14364 something starting with __ and the normal name is an alias. */
14365#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14366choke me
14367#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014368char (*f) () = $ac_func;
14369#endif
14370#ifdef __cplusplus
14371}
Bram Moolenaar071d4272004-06-13 20:20:40 +000014372#endif
14373
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014374int
14375main ()
14376{
14377return f != $ac_func;
14378 ;
14379 return 0;
14380}
14381_ACEOF
14382rm -f conftest.$ac_objext conftest$ac_exeext
14383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384 (eval $ac_link) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag"
14392 || test ! -s conftest.err'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; } &&
14398 { ac_try='test -s conftest$ac_exeext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014405else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014406 echo "$as_me: failed program was:" >&5
14407sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014408
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014409eval "$as_ac_var=no"
14410fi
14411rm -f conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext conftest.$ac_ext
14413fi
14414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14415echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14416if test `eval echo '${'$as_ac_var'}'` = yes; then
14417 cat >>confdefs.h <<_ACEOF
14418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14419_ACEOF
14420
Bram Moolenaar071d4272004-06-13 20:20:40 +000014421fi
14422done
14423
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014424 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14425echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14426 cat >conftest.$ac_ext <<_ACEOF
14427/* confdefs.h. */
14428_ACEOF
14429cat confdefs.h >>conftest.$ac_ext
14430cat >>conftest.$ac_ext <<_ACEOF
14431/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014432#include <libintl.h>
14433 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014434int
14435main ()
14436{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014437++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014438 ;
14439 return 0;
14440}
14441_ACEOF
14442rm -f conftest.$ac_objext conftest$ac_exeext
14443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14444 (eval $ac_link) 2>conftest.er1
14445 ac_status=$?
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -z "$ac_c_werror_flag"
14452 || test ! -s conftest.err'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try='test -s conftest$ac_exeext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 echo "$as_me:$LINENO: result: yes" >&5
14465echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014466#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014467_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014468
14469else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
14473echo "$as_me:$LINENO: result: no" >&5
14474echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014475fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014476rm -f conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014478 fi
14479 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014480 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14481echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014482 fi
14483else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014484 echo "$as_me:$LINENO: result: yes" >&5
14485echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014486fi
14487
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014488if test "${ac_cv_header_dlfcn_h+set}" = set; then
14489 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14490echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14491if test "${ac_cv_header_dlfcn_h+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493fi
14494echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14495echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014496else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014497 # Is the header compilable?
14498echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14499echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14500cat >conftest.$ac_ext <<_ACEOF
14501/* confdefs.h. */
14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
14505/* end confdefs.h. */
14506$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014507#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014508_ACEOF
14509rm -f conftest.$ac_objext
14510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_c_werror_flag"
14519 || test ! -s conftest.err'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14531 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014532else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014533 echo "$as_me: failed program was:" >&5
14534sed 's/^/| /' conftest.$ac_ext >&5
14535
14536ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014537fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14540echo "${ECHO_T}$ac_header_compiler" >&6
14541
14542# Is the header present?
14543echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14544echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14545cat >conftest.$ac_ext <<_ACEOF
14546/* confdefs.h. */
14547_ACEOF
14548cat confdefs.h >>conftest.$ac_ext
14549cat >>conftest.$ac_ext <<_ACEOF
14550/* end confdefs.h. */
14551#include <dlfcn.h>
14552_ACEOF
14553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } >/dev/null; then
14561 if test -s conftest.err; then
14562 ac_cpp_err=$ac_c_preproc_warn_flag
14563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14564 else
14565 ac_cpp_err=
14566 fi
14567else
14568 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014569fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014570if test -z "$ac_cpp_err"; then
14571 ac_header_preproc=yes
14572else
14573 echo "$as_me: failed program was:" >&5
14574sed 's/^/| /' conftest.$ac_ext >&5
14575
14576 ac_header_preproc=no
14577fi
14578rm -f conftest.err conftest.$ac_ext
14579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14580echo "${ECHO_T}$ac_header_preproc" >&6
14581
14582# So? What about this header?
14583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14584 yes:no: )
14585 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14586echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14587 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14588echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14589 ac_header_preproc=yes
14590 ;;
14591 no:yes:* )
14592 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14593echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14595echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14597echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14599echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14601echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14603echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14604 (
14605 cat <<\_ASBOX
14606## ------------------------------------------ ##
14607## Report this to the AC_PACKAGE_NAME lists. ##
14608## ------------------------------------------ ##
14609_ASBOX
14610 ) |
14611 sed "s/^/$as_me: WARNING: /" >&2
14612 ;;
14613esac
14614echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14615echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14616if test "${ac_cv_header_dlfcn_h+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618else
14619 ac_cv_header_dlfcn_h=$ac_header_preproc
14620fi
14621echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14622echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14623
14624fi
14625if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014626 DLL=dlfcn.h
14627else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014628 if test "${ac_cv_header_dl_h+set}" = set; then
14629 echo "$as_me:$LINENO: checking for dl.h" >&5
14630echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14631if test "${ac_cv_header_dl_h+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633fi
14634echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14635echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014636else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014637 # Is the header compilable?
14638echo "$as_me:$LINENO: checking dl.h usability" >&5
14639echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14640cat >conftest.$ac_ext <<_ACEOF
14641/* confdefs.h. */
14642_ACEOF
14643cat confdefs.h >>conftest.$ac_ext
14644cat >>conftest.$ac_ext <<_ACEOF
14645/* end confdefs.h. */
14646$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014647#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014648_ACEOF
14649rm -f conftest.$ac_objext
14650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag"
14659 || test ! -s conftest.err'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest.$ac_objext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14671 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014672else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014673 echo "$as_me: failed program was:" >&5
14674sed 's/^/| /' conftest.$ac_ext >&5
14675
14676ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014677fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14680echo "${ECHO_T}$ac_header_compiler" >&6
14681
14682# Is the header present?
14683echo "$as_me:$LINENO: checking dl.h presence" >&5
14684echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14685cat >conftest.$ac_ext <<_ACEOF
14686/* confdefs.h. */
14687_ACEOF
14688cat confdefs.h >>conftest.$ac_ext
14689cat >>conftest.$ac_ext <<_ACEOF
14690/* end confdefs.h. */
14691#include <dl.h>
14692_ACEOF
14693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14695 ac_status=$?
14696 grep -v '^ *+' conftest.er1 >conftest.err
14697 rm -f conftest.er1
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } >/dev/null; then
14701 if test -s conftest.err; then
14702 ac_cpp_err=$ac_c_preproc_warn_flag
14703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14704 else
14705 ac_cpp_err=
14706 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014707else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014708 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014709fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014710if test -z "$ac_cpp_err"; then
14711 ac_header_preproc=yes
14712else
14713 echo "$as_me: failed program was:" >&5
14714sed 's/^/| /' conftest.$ac_ext >&5
14715
14716 ac_header_preproc=no
14717fi
14718rm -f conftest.err conftest.$ac_ext
14719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14720echo "${ECHO_T}$ac_header_preproc" >&6
14721
14722# So? What about this header?
14723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14724 yes:no: )
14725 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14726echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14728echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14729 ac_header_preproc=yes
14730 ;;
14731 no:yes:* )
14732 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14733echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14734 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14735echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14737echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14739echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14741echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14742 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14743echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14744 (
14745 cat <<\_ASBOX
14746## ------------------------------------------ ##
14747## Report this to the AC_PACKAGE_NAME lists. ##
14748## ------------------------------------------ ##
14749_ASBOX
14750 ) |
14751 sed "s/^/$as_me: WARNING: /" >&2
14752 ;;
14753esac
14754echo "$as_me:$LINENO: checking for dl.h" >&5
14755echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14756if test "${ac_cv_header_dl_h+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14758else
14759 ac_cv_header_dl_h=$ac_header_preproc
14760fi
14761echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14762echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014763
14764fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014765if test $ac_cv_header_dl_h = yes; then
14766 DLL=dl.h
14767fi
14768
14769
14770fi
14771
Bram Moolenaar071d4272004-06-13 20:20:40 +000014772
14773if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014774
14775cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014776#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014777_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014778
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014779 echo "$as_me:$LINENO: checking for dlopen()" >&5
14780echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14781 cat >conftest.$ac_ext <<_ACEOF
14782/* confdefs.h. */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
14786/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014787
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014788int
14789main ()
14790{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014791
14792 extern void* dlopen();
14793 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014794
14795 ;
14796 return 0;
14797}
14798_ACEOF
14799rm -f conftest.$ac_objext conftest$ac_exeext
14800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14801 (eval $ac_link) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
14808 { ac_try='test -z "$ac_c_werror_flag"
14809 || test ! -s conftest.err'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; } &&
14815 { ac_try='test -s conftest$ac_exeext'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 echo "$as_me:$LINENO: result: yes" >&5
14822echo "${ECHO_T}yes" >&6;
14823
14824cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014825#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014826_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014827
14828else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014829 echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
14831
14832echo "$as_me:$LINENO: result: no" >&5
14833echo "${ECHO_T}no" >&6;
14834 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14835echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014836 olibs=$LIBS
14837 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014838 cat >conftest.$ac_ext <<_ACEOF
14839/* confdefs.h. */
14840_ACEOF
14841cat confdefs.h >>conftest.$ac_ext
14842cat >>conftest.$ac_ext <<_ACEOF
14843/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014844
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014845int
14846main ()
14847{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014848
14849 extern void* dlopen();
14850 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014851
14852 ;
14853 return 0;
14854}
14855_ACEOF
14856rm -f conftest.$ac_objext conftest$ac_exeext
14857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14858 (eval $ac_link) 2>conftest.er1
14859 ac_status=$?
14860 grep -v '^ *+' conftest.er1 >conftest.err
14861 rm -f conftest.er1
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try='test -z "$ac_c_werror_flag"
14866 || test ! -s conftest.err'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; } &&
14872 { ac_try='test -s conftest$ac_exeext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 echo "$as_me:$LINENO: result: yes" >&5
14879echo "${ECHO_T}yes" >&6;
14880
14881cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014882#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014883_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014884
14885else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014886 echo "$as_me: failed program was:" >&5
14887sed 's/^/| /' conftest.$ac_ext >&5
14888
14889echo "$as_me:$LINENO: result: no" >&5
14890echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014891 LIBS=$olibs
14892fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014893rm -f conftest.err conftest.$ac_objext \
14894 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014895fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014896rm -f conftest.err conftest.$ac_objext \
14897 conftest$ac_exeext conftest.$ac_ext
14898 echo "$as_me:$LINENO: checking for dlsym()" >&5
14899echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14900 cat >conftest.$ac_ext <<_ACEOF
14901/* confdefs.h. */
14902_ACEOF
14903cat confdefs.h >>conftest.$ac_ext
14904cat >>conftest.$ac_ext <<_ACEOF
14905/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014906
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014907int
14908main ()
14909{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014910
14911 extern void* dlsym();
14912 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014913
14914 ;
14915 return 0;
14916}
14917_ACEOF
14918rm -f conftest.$ac_objext conftest$ac_exeext
14919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14920 (eval $ac_link) 2>conftest.er1
14921 ac_status=$?
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -f conftest.er1
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
14927 { ac_try='test -z "$ac_c_werror_flag"
14928 || test ! -s conftest.err'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest$ac_exeext'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 echo "$as_me:$LINENO: result: yes" >&5
14941echo "${ECHO_T}yes" >&6;
14942
14943cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014944#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014945_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014946
14947else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014948 echo "$as_me: failed program was:" >&5
14949sed 's/^/| /' conftest.$ac_ext >&5
14950
14951echo "$as_me:$LINENO: result: no" >&5
14952echo "${ECHO_T}no" >&6;
14953 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
14954echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014955 olibs=$LIBS
14956 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014957 cat >conftest.$ac_ext <<_ACEOF
14958/* confdefs.h. */
14959_ACEOF
14960cat confdefs.h >>conftest.$ac_ext
14961cat >>conftest.$ac_ext <<_ACEOF
14962/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014963
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014964int
14965main ()
14966{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014967
14968 extern void* dlsym();
14969 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014970
14971 ;
14972 return 0;
14973}
14974_ACEOF
14975rm -f conftest.$ac_objext conftest$ac_exeext
14976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14977 (eval $ac_link) 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest$ac_exeext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 echo "$as_me:$LINENO: result: yes" >&5
14998echo "${ECHO_T}yes" >&6;
14999
15000cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015001#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015002_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015003
15004else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015005 echo "$as_me: failed program was:" >&5
15006sed 's/^/| /' conftest.$ac_ext >&5
15007
15008echo "$as_me:$LINENO: result: no" >&5
15009echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015010 LIBS=$olibs
15011fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015012rm -f conftest.err conftest.$ac_objext \
15013 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015014fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015015rm -f conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015017elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015018
15019cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015020#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015021_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015022
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015023 echo "$as_me:$LINENO: checking for shl_load()" >&5
15024echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15025 cat >conftest.$ac_ext <<_ACEOF
15026/* confdefs.h. */
15027_ACEOF
15028cat confdefs.h >>conftest.$ac_ext
15029cat >>conftest.$ac_ext <<_ACEOF
15030/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015031
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015032int
15033main ()
15034{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015035
15036 extern void* shl_load();
15037 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015038
15039 ;
15040 return 0;
15041}
15042_ACEOF
15043rm -f conftest.$ac_objext conftest$ac_exeext
15044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15045 (eval $ac_link) 2>conftest.er1
15046 ac_status=$?
15047 grep -v '^ *+' conftest.er1 >conftest.err
15048 rm -f conftest.er1
15049 cat conftest.err >&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } &&
15052 { ac_try='test -z "$ac_c_werror_flag"
15053 || test ! -s conftest.err'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; } &&
15059 { ac_try='test -s conftest$ac_exeext'
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
15065 echo "$as_me:$LINENO: result: yes" >&5
15066echo "${ECHO_T}yes" >&6;
15067
15068cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015069#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015070_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015071
15072else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076echo "$as_me:$LINENO: result: no" >&5
15077echo "${ECHO_T}no" >&6;
15078 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15079echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015080 olibs=$LIBS
15081 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015082 cat >conftest.$ac_ext <<_ACEOF
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
15087/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015088
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015089int
15090main ()
15091{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015092
15093 extern void* shl_load();
15094 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015095
15096 ;
15097 return 0;
15098}
15099_ACEOF
15100rm -f conftest.$ac_objext conftest$ac_exeext
15101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15102 (eval $ac_link) 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
15109 { ac_try='test -z "$ac_c_werror_flag"
15110 || test ! -s conftest.err'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; } &&
15116 { ac_try='test -s conftest$ac_exeext'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 echo "$as_me:$LINENO: result: yes" >&5
15123echo "${ECHO_T}yes" >&6;
15124
15125cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015126#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015127_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015128
15129else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015130 echo "$as_me: failed program was:" >&5
15131sed 's/^/| /' conftest.$ac_ext >&5
15132
15133echo "$as_me:$LINENO: result: no" >&5
15134echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015135 LIBS=$olibs
15136fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015137rm -f conftest.err conftest.$ac_objext \
15138 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015139fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015140rm -f conftest.err conftest.$ac_objext \
15141 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015142fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015143
15144for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000015145do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15147if eval "test \"\${$as_ac_Header+set}\" = set"; then
15148 echo "$as_me:$LINENO: checking for $ac_header" >&5
15149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15150if eval "test \"\${$as_ac_Header+set}\" = set"; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015152fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015155else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015156 # Is the header compilable?
15157echo "$as_me:$LINENO: checking $ac_header usability" >&5
15158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15159cat >conftest.$ac_ext <<_ACEOF
15160/* confdefs.h. */
15161_ACEOF
15162cat confdefs.h >>conftest.$ac_ext
15163cat >>conftest.$ac_ext <<_ACEOF
15164/* end confdefs.h. */
15165$ac_includes_default
15166#include <$ac_header>
15167_ACEOF
15168rm -f conftest.$ac_objext
15169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15170 (eval $ac_compile) 2>conftest.er1
15171 ac_status=$?
15172 grep -v '^ *+' conftest.er1 >conftest.err
15173 rm -f conftest.er1
15174 cat conftest.err >&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
15177 { ac_try='test -z "$ac_c_werror_flag"
15178 || test ! -s conftest.err'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_header_compiler=yes
15191else
15192 echo "$as_me: failed program was:" >&5
15193sed 's/^/| /' conftest.$ac_ext >&5
15194
15195ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015196fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15199echo "${ECHO_T}$ac_header_compiler" >&6
15200
15201# Is the header present?
15202echo "$as_me:$LINENO: checking $ac_header presence" >&5
15203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15204cat >conftest.$ac_ext <<_ACEOF
15205/* confdefs.h. */
15206_ACEOF
15207cat confdefs.h >>conftest.$ac_ext
15208cat >>conftest.$ac_ext <<_ACEOF
15209/* end confdefs.h. */
15210#include <$ac_header>
15211_ACEOF
15212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } >/dev/null; then
15220 if test -s conftest.err; then
15221 ac_cpp_err=$ac_c_preproc_warn_flag
15222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15223 else
15224 ac_cpp_err=
15225 fi
15226else
15227 ac_cpp_err=yes
15228fi
15229if test -z "$ac_cpp_err"; then
15230 ac_header_preproc=yes
15231else
15232 echo "$as_me: failed program was:" >&5
15233sed 's/^/| /' conftest.$ac_ext >&5
15234
15235 ac_header_preproc=no
15236fi
15237rm -f conftest.err conftest.$ac_ext
15238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15239echo "${ECHO_T}$ac_header_preproc" >&6
15240
15241# So? What about this header?
15242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15243 yes:no: )
15244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15248 ac_header_preproc=yes
15249 ;;
15250 no:yes:* )
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15263 (
15264 cat <<\_ASBOX
15265## ------------------------------------------ ##
15266## Report this to the AC_PACKAGE_NAME lists. ##
15267## ------------------------------------------ ##
15268_ASBOX
15269 ) |
15270 sed "s/^/$as_me: WARNING: /" >&2
15271 ;;
15272esac
15273echo "$as_me:$LINENO: checking for $ac_header" >&5
15274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15275if eval "test \"\${$as_ac_Header+set}\" = set"; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277else
15278 eval "$as_ac_Header=\$ac_header_preproc"
15279fi
15280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15282
15283fi
15284if test `eval echo '${'$as_ac_Header'}'` = yes; then
15285 cat >>confdefs.h <<_ACEOF
15286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15287_ACEOF
15288
15289fi
15290
Bram Moolenaar071d4272004-06-13 20:20:40 +000015291done
15292
15293
15294if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15295 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15296 LIBS=`echo $LIBS | sed s/-ldl//`
15297 PERL_LIBS="$PERL_LIBS -ldl"
15298 fi
15299fi
15300
15301if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15302 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015303 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15304echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015305 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
15306 || test "x$features" = "xhuge"; then
15307 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015308 echo "$as_me:$LINENO: result: yes" >&5
15309echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015310 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015311 echo "$as_me:$LINENO: result: no" >&5
15312echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015313 fi
15314fi
Bram Moolenaare224ffa2006-03-01 00:01:28 +000015315if test "x$MACARCH" = "xboth"; then
15316 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15317fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015318
Bram Moolenaara5792f52005-11-23 21:25:05 +000015319echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15320echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015321DEPEND_CFLAGS_FILTER=
15322if test "$GCC" = yes; then
Bram Moolenaar2217cae2006-03-25 21:55:52 +000015323 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
Bram Moolenaarf740b292006-02-16 22:11:02 +000015324 if test "$gccmajor" -gt "2"; then
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015325 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15326 fi
15327fi
Bram Moolenaara5792f52005-11-23 21:25:05 +000015328if test "$DEPEND_CFLAGS_FILTER" = ""; then
15329 echo "$as_me:$LINENO: result: no" >&5
15330echo "${ECHO_T}no" >&6
15331else
15332 echo "$as_me:$LINENO: result: yes" >&5
15333echo "${ECHO_T}yes" >&6
15334fi
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015335
Bram Moolenaar071d4272004-06-13 20:20:40 +000015336
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015337 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15338cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015339# This file is a shell script that caches the results of configure
15340# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015341# scripts and configure runs, see configure's option --config-cache.
15342# It is not useful on other systems. If it contains results you don't
15343# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015344#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015345# config.status only pays attention to the cache file if you give it
15346# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015347#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015348# `ac_cv_env_foo' variables (set or unset) will be overridden when
15349# loading this file, other *unset* `ac_cv_foo' will be assigned the
15350# following values.
15351
15352_ACEOF
15353
Bram Moolenaar071d4272004-06-13 20:20:40 +000015354# The following way of writing the cache mishandles newlines in values,
15355# but we know of no workaround that is simple, portable, and efficient.
15356# So, don't put newlines in cache variables' values.
15357# Ultrix sh set writes to stderr and can't be redirected directly,
15358# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015359{
15360 (set) 2>&1 |
15361 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15362 *ac_space=\ *)
15363 # `set' does not quote correctly, so add quotes (double-quote
15364 # substitution turns \\\\ into \\, and sed turns \\ into \).
15365 sed -n \
15366 "s/'/'\\\\''/g;
15367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15368 ;;
15369 *)
15370 # `set' quotes correctly as required by POSIX, so do not add quotes.
15371 sed -n \
15372 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15373 ;;
15374 esac;
15375} |
15376 sed '
15377 t clear
15378 : clear
15379 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15380 t end
15381 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15382 : end' >>confcache
15383if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000015384 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015385 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15386 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000015387 else
15388 echo "not updating unwritable cache $cache_file"
15389 fi
15390fi
15391rm -f confcache
15392
Bram Moolenaar071d4272004-06-13 20:20:40 +000015393test "x$prefix" = xNONE && prefix=$ac_default_prefix
15394# Let make expand exec_prefix.
15395test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15396
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015397# VPATH may cause trouble with some makes, so we remove $(srcdir),
15398# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15399# trailing colons and then remove the whole line if VPATH becomes empty
15400# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000015401if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015402 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15403s/:*\$(srcdir):*/:/;
15404s/:*\${srcdir}:*/:/;
15405s/:*@srcdir@:*/:/;
15406s/^\([^=]*=[ ]*\):*/\1/;
15407s/:*$//;
15408s/^[^=]*=[ ]*$//;
15409}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015410fi
15411
Bram Moolenaar071d4272004-06-13 20:20:40 +000015412DEFS=-DHAVE_CONFIG_H
15413
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015414ac_libobjs=
15415ac_ltlibobjs=
15416for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15417 # 1. Remove the extension, and $U if already installed.
15418 ac_i=`echo "$ac_i" |
15419 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15420 # 2. Add them.
15421 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15422 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15423done
15424LIBOBJS=$ac_libobjs
15425
15426LTLIBOBJS=$ac_ltlibobjs
15427
15428
15429
Bram Moolenaar071d4272004-06-13 20:20:40 +000015430: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015431ac_clean_files_save=$ac_clean_files
15432ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15433{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15434echo "$as_me: creating $CONFIG_STATUS" >&6;}
15435cat >$CONFIG_STATUS <<_ACEOF
15436#! $SHELL
15437# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015438# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015439# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015440# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015441
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015442debug=false
15443ac_cs_recheck=false
15444ac_cs_silent=false
15445SHELL=\${CONFIG_SHELL-$SHELL}
15446_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015447
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015448cat >>$CONFIG_STATUS <<\_ACEOF
15449## --------------------- ##
15450## M4sh Initialization. ##
15451## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000015452
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015453# Be Bourne compatible
15454if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15455 emulate sh
15456 NULLCMD=:
15457 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15458 # is contrary to our usage. Disable this feature.
15459 alias -g '${1+"$@"}'='"$@"'
15460elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15461 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000015462fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015463DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000015464
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015465# Support unset when possible.
15466if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15467 as_unset=unset
15468else
15469 as_unset=false
15470fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015471
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015472
15473# Work around bugs in pre-3.0 UWIN ksh.
15474$as_unset ENV MAIL MAILPATH
15475PS1='$ '
15476PS2='> '
15477PS4='+ '
15478
15479# NLS nuisances.
15480for as_var in \
15481 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15482 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15483 LC_TELEPHONE LC_TIME
15484do
15485 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15486 eval $as_var=C; export $as_var
15487 else
15488 $as_unset $as_var
15489 fi
15490done
15491
15492# Required to use basename.
15493if expr a : '\(a\)' >/dev/null 2>&1; then
15494 as_expr=expr
15495else
15496 as_expr=false
15497fi
15498
15499if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15500 as_basename=basename
15501else
15502 as_basename=false
15503fi
15504
15505
15506# Name of the executable.
15507as_me=`$as_basename "$0" ||
15508$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15509 X"$0" : 'X\(//\)$' \| \
15510 X"$0" : 'X\(/\)$' \| \
15511 . : '\(.\)' 2>/dev/null ||
15512echo X/"$0" |
15513 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15514 /^X\/\(\/\/\)$/{ s//\1/; q; }
15515 /^X\/\(\/\).*/{ s//\1/; q; }
15516 s/.*/./; q'`
15517
15518
15519# PATH needs CR, and LINENO needs CR and PATH.
15520# Avoid depending upon Character Ranges.
15521as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15522as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15523as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15524as_cr_digits='0123456789'
15525as_cr_alnum=$as_cr_Letters$as_cr_digits
15526
15527# The user is always right.
15528if test "${PATH_SEPARATOR+set}" != set; then
15529 echo "#! /bin/sh" >conf$$.sh
15530 echo "exit 0" >>conf$$.sh
15531 chmod +x conf$$.sh
15532 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15533 PATH_SEPARATOR=';'
15534 else
15535 PATH_SEPARATOR=:
15536 fi
15537 rm -f conf$$.sh
15538fi
15539
15540
15541 as_lineno_1=$LINENO
15542 as_lineno_2=$LINENO
15543 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15544 test "x$as_lineno_1" != "x$as_lineno_2" &&
15545 test "x$as_lineno_3" = "x$as_lineno_2" || {
15546 # Find who we are. Look in the path if we contain no path at all
15547 # relative or not.
15548 case $0 in
15549 *[\\/]* ) as_myself=$0 ;;
15550 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15551for as_dir in $PATH
15552do
15553 IFS=$as_save_IFS
15554 test -z "$as_dir" && as_dir=.
15555 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15556done
15557
15558 ;;
15559 esac
15560 # We did not find ourselves, most probably we were run as `sh COMMAND'
15561 # in which case we are not to be found in the path.
15562 if test "x$as_myself" = x; then
15563 as_myself=$0
15564 fi
15565 if test ! -f "$as_myself"; then
15566 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15567echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15568 { (exit 1); exit 1; }; }
15569 fi
15570 case $CONFIG_SHELL in
15571 '')
15572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15573for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15574do
15575 IFS=$as_save_IFS
15576 test -z "$as_dir" && as_dir=.
15577 for as_base in sh bash ksh sh5; do
15578 case $as_dir in
15579 /*)
15580 if ("$as_dir/$as_base" -c '
15581 as_lineno_1=$LINENO
15582 as_lineno_2=$LINENO
15583 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15584 test "x$as_lineno_1" != "x$as_lineno_2" &&
15585 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15586 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15587 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15588 CONFIG_SHELL=$as_dir/$as_base
15589 export CONFIG_SHELL
15590 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15591 fi;;
15592 esac
15593 done
15594done
15595;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015596 esac
15597
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015598 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15599 # uniformly replaced by the line number. The first 'sed' inserts a
15600 # line-number line before each line; the second 'sed' does the real
15601 # work. The second script uses 'N' to pair each line-number line
15602 # with the numbered line, and appends trailing '-' during
15603 # substitution so that $LINENO is not a special case at line end.
15604 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15605 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15606 sed '=' <$as_myself |
15607 sed '
15608 N
15609 s,$,-,
15610 : loop
15611 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15612 t loop
15613 s,-$,,
15614 s,^['$as_cr_digits']*\n,,
15615 ' >$as_me.lineno &&
15616 chmod +x $as_me.lineno ||
15617 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15618echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15619 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000015620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015621 # Don't try to exec as it changes $[0], causing all sort of problems
15622 # (the dirname of $[0] is not the place where we might find the
15623 # original and so on. Autoconf is especially sensible to this).
15624 . ./$as_me.lineno
15625 # Exit status is that of the last command.
15626 exit
15627}
15628
15629
15630case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15631 *c*,-n*) ECHO_N= ECHO_C='
15632' ECHO_T=' ' ;;
15633 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15634 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15635esac
15636
15637if expr a : '\(a\)' >/dev/null 2>&1; then
15638 as_expr=expr
15639else
15640 as_expr=false
15641fi
15642
15643rm -f conf$$ conf$$.exe conf$$.file
15644echo >conf$$.file
15645if ln -s conf$$.file conf$$ 2>/dev/null; then
15646 # We could just check for DJGPP; but this test a) works b) is more generic
15647 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15648 if test -f conf$$.exe; then
15649 # Don't use ln at all; we don't have any links
15650 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015651 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015652 as_ln_s='ln -s'
15653 fi
15654elif ln conf$$.file conf$$ 2>/dev/null; then
15655 as_ln_s=ln
15656else
15657 as_ln_s='cp -p'
15658fi
15659rm -f conf$$ conf$$.exe conf$$.file
15660
15661if mkdir -p . 2>/dev/null; then
15662 as_mkdir_p=:
15663else
15664 test -d ./-p && rmdir ./-p
15665 as_mkdir_p=false
15666fi
15667
15668as_executable_p="test -f"
15669
15670# Sed expression to map a string onto a valid CPP name.
15671as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15672
15673# Sed expression to map a string onto a valid variable name.
15674as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15675
15676
15677# IFS
15678# We need space, tab and new line, in precisely that order.
15679as_nl='
15680'
15681IFS=" $as_nl"
15682
15683# CDPATH.
15684$as_unset CDPATH
15685
15686exec 6>&1
15687
15688# Open the log real soon, to keep \$[0] and so on meaningful, and to
15689# report actual input values of CONFIG_FILES etc. instead of their
15690# values after options handling. Logging --version etc. is OK.
Bram Moolenaarc7453f52006-02-10 23:20:28 +000015691exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015692{
15693 echo
15694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15695## Running $as_me. ##
15696_ASBOX
15697} >&5
15698cat >&5 <<_CSEOF
15699
15700This file was extended by $as_me, which was
15701generated by GNU Autoconf 2.59. Invocation command line was
15702
15703 CONFIG_FILES = $CONFIG_FILES
15704 CONFIG_HEADERS = $CONFIG_HEADERS
15705 CONFIG_LINKS = $CONFIG_LINKS
15706 CONFIG_COMMANDS = $CONFIG_COMMANDS
15707 $ $0 $@
15708
15709_CSEOF
15710echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15711echo >&5
15712_ACEOF
15713
15714# Files that config.status was made for.
15715if test -n "$ac_config_files"; then
15716 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15717fi
15718
15719if test -n "$ac_config_headers"; then
15720 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15721fi
15722
15723if test -n "$ac_config_links"; then
15724 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15725fi
15726
15727if test -n "$ac_config_commands"; then
15728 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15729fi
15730
15731cat >>$CONFIG_STATUS <<\_ACEOF
15732
15733ac_cs_usage="\
15734\`$as_me' instantiates files from templates according to the
15735current configuration.
15736
15737Usage: $0 [OPTIONS] [FILE]...
15738
15739 -h, --help print this help, then exit
15740 -V, --version print version number, then exit
15741 -q, --quiet do not print progress messages
15742 -d, --debug don't remove temporary files
15743 --recheck update $as_me by reconfiguring in the same conditions
15744 --file=FILE[:TEMPLATE]
15745 instantiate the configuration file FILE
15746 --header=FILE[:TEMPLATE]
15747 instantiate the configuration header FILE
15748
15749Configuration files:
15750$config_files
15751
15752Configuration headers:
15753$config_headers
15754
15755Report bugs to <bug-autoconf@gnu.org>."
15756_ACEOF
15757
15758cat >>$CONFIG_STATUS <<_ACEOF
15759ac_cs_version="\\
15760config.status
15761configured by $0, generated by GNU Autoconf 2.59,
15762 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15763
15764Copyright (C) 2003 Free Software Foundation, Inc.
15765This config.status script is free software; the Free Software Foundation
15766gives unlimited permission to copy, distribute and modify it."
15767srcdir=$srcdir
15768_ACEOF
15769
15770cat >>$CONFIG_STATUS <<\_ACEOF
15771# If no file are specified by the user, then we need to provide default
15772# value. By we need to know if files were specified by the user.
15773ac_need_defaults=:
15774while test $# != 0
15775do
15776 case $1 in
15777 --*=*)
15778 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15779 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15780 ac_shift=:
15781 ;;
15782 -*)
15783 ac_option=$1
15784 ac_optarg=$2
15785 ac_shift=shift
15786 ;;
15787 *) # This is not an option, so the user has probably given explicit
15788 # arguments.
15789 ac_option=$1
15790 ac_need_defaults=false;;
15791 esac
15792
15793 case $ac_option in
15794 # Handling of the options.
15795_ACEOF
15796cat >>$CONFIG_STATUS <<\_ACEOF
15797 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15798 ac_cs_recheck=: ;;
15799 --version | --vers* | -V )
15800 echo "$ac_cs_version"; exit 0 ;;
15801 --he | --h)
15802 # Conflict between --help and --header
15803 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15804Try \`$0 --help' for more information." >&5
15805echo "$as_me: error: ambiguous option: $1
15806Try \`$0 --help' for more information." >&2;}
15807 { (exit 1); exit 1; }; };;
15808 --help | --hel | -h )
15809 echo "$ac_cs_usage"; exit 0 ;;
15810 --debug | --d* | -d )
15811 debug=: ;;
15812 --file | --fil | --fi | --f )
15813 $ac_shift
15814 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15815 ac_need_defaults=false;;
15816 --header | --heade | --head | --hea )
15817 $ac_shift
15818 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15819 ac_need_defaults=false;;
15820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15821 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15822 ac_cs_silent=: ;;
15823
15824 # This is an error.
15825 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15826Try \`$0 --help' for more information." >&5
15827echo "$as_me: error: unrecognized option: $1
15828Try \`$0 --help' for more information." >&2;}
15829 { (exit 1); exit 1; }; } ;;
15830
15831 *) ac_config_targets="$ac_config_targets $1" ;;
15832
15833 esac
15834 shift
15835done
15836
15837ac_configure_extra_args=
15838
15839if $ac_cs_silent; then
15840 exec 6>/dev/null
15841 ac_configure_extra_args="$ac_configure_extra_args --silent"
15842fi
15843
15844_ACEOF
15845cat >>$CONFIG_STATUS <<_ACEOF
15846if \$ac_cs_recheck; then
15847 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15848 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15849fi
15850
15851_ACEOF
15852
15853
15854
15855
15856
15857cat >>$CONFIG_STATUS <<\_ACEOF
15858for ac_config_target in $ac_config_targets
15859do
15860 case "$ac_config_target" in
15861 # Handling of arguments.
15862 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15863 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15864 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15865echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15866 { (exit 1); exit 1; }; };;
15867 esac
15868done
15869
15870# If the user did not use the arguments to specify the items to instantiate,
15871# then the envvar interface is used. Set only those that are not.
15872# We use the long form for the default assignment because of an extremely
15873# bizarre bug on SunOS 4.1.3.
15874if $ac_need_defaults; then
15875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15877fi
15878
15879# Have a temporary directory for convenience. Make it in the build tree
15880# simply because there is no reason to put it here, and in addition,
15881# creating and moving files from /tmp can sometimes cause problems.
15882# Create a temporary directory, and hook for its removal unless debugging.
15883$debug ||
15884{
15885 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15886 trap '{ (exit 1); exit 1; }' 1 2 13 15
15887}
15888
15889# Create a (secure) tmp directory for tmp files.
15890
15891{
15892 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15893 test -n "$tmp" && test -d "$tmp"
15894} ||
15895{
15896 tmp=./confstat$$-$RANDOM
15897 (umask 077 && mkdir $tmp)
15898} ||
15899{
15900 echo "$me: cannot create a temporary directory in ." >&2
15901 { (exit 1); exit 1; }
15902}
15903
15904_ACEOF
15905
15906cat >>$CONFIG_STATUS <<_ACEOF
15907
15908#
15909# CONFIG_FILES section.
15910#
15911
15912# No need to generate the scripts if there are no CONFIG_FILES.
15913# This happens for instance when ./config.status config.h
15914if test -n "\$CONFIG_FILES"; then
15915 # Protect against being on the right side of a sed subst in config.status.
15916 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15917 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15918s,@SHELL@,$SHELL,;t t
15919s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15920s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15921s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15922s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15923s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15924s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15925s,@exec_prefix@,$exec_prefix,;t t
15926s,@prefix@,$prefix,;t t
15927s,@program_transform_name@,$program_transform_name,;t t
15928s,@bindir@,$bindir,;t t
15929s,@sbindir@,$sbindir,;t t
15930s,@libexecdir@,$libexecdir,;t t
15931s,@datadir@,$datadir,;t t
15932s,@sysconfdir@,$sysconfdir,;t t
15933s,@sharedstatedir@,$sharedstatedir,;t t
15934s,@localstatedir@,$localstatedir,;t t
15935s,@libdir@,$libdir,;t t
15936s,@includedir@,$includedir,;t t
15937s,@oldincludedir@,$oldincludedir,;t t
15938s,@infodir@,$infodir,;t t
15939s,@mandir@,$mandir,;t t
15940s,@build_alias@,$build_alias,;t t
15941s,@host_alias@,$host_alias,;t t
15942s,@target_alias@,$target_alias,;t t
15943s,@DEFS@,$DEFS,;t t
15944s,@ECHO_C@,$ECHO_C,;t t
15945s,@ECHO_N@,$ECHO_N,;t t
15946s,@ECHO_T@,$ECHO_T,;t t
15947s,@LIBS@,$LIBS,;t t
15948s,@SET_MAKE@,$SET_MAKE,;t t
15949s,@CC@,$CC,;t t
15950s,@CFLAGS@,$CFLAGS,;t t
15951s,@LDFLAGS@,$LDFLAGS,;t t
15952s,@CPPFLAGS@,$CPPFLAGS,;t t
15953s,@ac_ct_CC@,$ac_ct_CC,;t t
15954s,@EXEEXT@,$EXEEXT,;t t
15955s,@OBJEXT@,$OBJEXT,;t t
15956s,@CPP@,$CPP,;t t
15957s,@EGREP@,$EGREP,;t t
15958s,@AWK@,$AWK,;t t
15959s,@STRIP@,$STRIP,;t t
15960s,@CPP_MM@,$CPP_MM,;t t
15961s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
15962s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
15963s,@VIMNAME@,$VIMNAME,;t t
15964s,@EXNAME@,$EXNAME,;t t
15965s,@VIEWNAME@,$VIEWNAME,;t t
15966s,@line_break@,$line_break,;t t
15967s,@dovimdiff@,$dovimdiff,;t t
15968s,@dogvimdiff@,$dogvimdiff,;t t
15969s,@compiledby@,$compiledby,;t t
15970s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
15971s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
15972s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
15973s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
15974s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
15975s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
15976s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
15977s,@vi_cv_perllib@,$vi_cv_perllib,;t t
15978s,@shrpenv@,$shrpenv,;t t
15979s,@PERL_SRC@,$PERL_SRC,;t t
15980s,@PERL_OBJ@,$PERL_OBJ,;t t
15981s,@PERL_PRO@,$PERL_PRO,;t t
15982s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
15983s,@PERL_LIBS@,$PERL_LIBS,;t t
15984s,@vi_cv_path_python@,$vi_cv_path_python,;t t
15985s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
15986s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
15987s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
15988s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
15989s,@PYTHON_SRC@,$PYTHON_SRC,;t t
15990s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
15991s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
15992s,@TCL_SRC@,$TCL_SRC,;t t
15993s,@TCL_OBJ@,$TCL_OBJ,;t t
15994s,@TCL_PRO@,$TCL_PRO,;t t
15995s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
15996s,@TCL_LIBS@,$TCL_LIBS,;t t
15997s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
15998s,@RUBY_SRC@,$RUBY_SRC,;t t
15999s,@RUBY_OBJ@,$RUBY_OBJ,;t t
16000s,@RUBY_PRO@,$RUBY_PRO,;t t
16001s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16002s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16003s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16004s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16005s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16006s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16007s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16008s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16009s,@xmkmfpath@,$xmkmfpath,;t t
16010s,@X_CFLAGS@,$X_CFLAGS,;t t
16011s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16012s,@X_LIBS@,$X_LIBS,;t t
16013s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16014s,@X_LIB@,$X_LIB,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016015s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16016s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16017s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16018s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16019s,@GTK_LIBS@,$GTK_LIBS,;t t
16020s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16021s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16022s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16023s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16024s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16025s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16026s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16027s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16028s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16029s,@GUITYPE@,$GUITYPE,;t t
16030s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16031s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16032s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16033s,@TAGPRG@,$TAGPRG,;t t
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000016034s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16035s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016036s,@MSGFMT@,$MSGFMT,;t t
16037s,@MAKEMO@,$MAKEMO,;t t
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000016038s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016039s,@LIBOBJS@,$LIBOBJS,;t t
16040s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16041CEOF
16042
16043_ACEOF
16044
16045 cat >>$CONFIG_STATUS <<\_ACEOF
16046 # Split the substitutions into bite-sized pieces for seds with
16047 # small command number limits, like on Digital OSF/1 and HP-UX.
16048 ac_max_sed_lines=48
16049 ac_sed_frag=1 # Number of current file.
16050 ac_beg=1 # First line for current file.
16051 ac_end=$ac_max_sed_lines # Line after last line for current file.
16052 ac_more_lines=:
16053 ac_sed_cmds=
16054 while $ac_more_lines; do
16055 if test $ac_beg -gt 1; then
16056 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16057 else
16058 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16059 fi
16060 if test ! -s $tmp/subs.frag; then
16061 ac_more_lines=false
16062 else
16063 # The purpose of the label and of the branching condition is to
16064 # speed up the sed processing (if there are no `@' at all, there
16065 # is no need to browse any of the substitutions).
16066 # These are the two extra sed commands mentioned above.
16067 (echo ':t
16068 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16069 if test -z "$ac_sed_cmds"; then
16070 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16071 else
16072 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16073 fi
16074 ac_sed_frag=`expr $ac_sed_frag + 1`
16075 ac_beg=$ac_end
16076 ac_end=`expr $ac_end + $ac_max_sed_lines`
16077 fi
16078 done
16079 if test -z "$ac_sed_cmds"; then
16080 ac_sed_cmds=cat
16081 fi
16082fi # test -n "$CONFIG_FILES"
16083
16084_ACEOF
16085cat >>$CONFIG_STATUS <<\_ACEOF
16086for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16088 case $ac_file in
16089 - | *:- | *:-:* ) # input from stdin
16090 cat >$tmp/stdin
16091 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16093 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16094 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16095 * ) ac_file_in=$ac_file.in ;;
16096 esac
16097
16098 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16099 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16100$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16101 X"$ac_file" : 'X\(//\)[^/]' \| \
16102 X"$ac_file" : 'X\(//\)$' \| \
16103 X"$ac_file" : 'X\(/\)' \| \
16104 . : '\(.\)' 2>/dev/null ||
16105echo X"$ac_file" |
16106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16108 /^X\(\/\/\)$/{ s//\1/; q; }
16109 /^X\(\/\).*/{ s//\1/; q; }
16110 s/.*/./; q'`
16111 { if $as_mkdir_p; then
16112 mkdir -p "$ac_dir"
16113 else
16114 as_dir="$ac_dir"
16115 as_dirs=
16116 while test ! -d "$as_dir"; do
16117 as_dirs="$as_dir $as_dirs"
16118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16119$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16120 X"$as_dir" : 'X\(//\)[^/]' \| \
16121 X"$as_dir" : 'X\(//\)$' \| \
16122 X"$as_dir" : 'X\(/\)' \| \
16123 . : '\(.\)' 2>/dev/null ||
16124echo X"$as_dir" |
16125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16127 /^X\(\/\/\)$/{ s//\1/; q; }
16128 /^X\(\/\).*/{ s//\1/; q; }
16129 s/.*/./; q'`
16130 done
16131 test ! -n "$as_dirs" || mkdir $as_dirs
16132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16133echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16134 { (exit 1); exit 1; }; }; }
16135
16136 ac_builddir=.
16137
16138if test "$ac_dir" != .; then
16139 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16140 # A "../" for each directory in $ac_dir_suffix.
16141 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16142else
16143 ac_dir_suffix= ac_top_builddir=
16144fi
16145
16146case $srcdir in
16147 .) # No --srcdir option. We are building in place.
16148 ac_srcdir=.
16149 if test -z "$ac_top_builddir"; then
16150 ac_top_srcdir=.
16151 else
16152 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16153 fi ;;
16154 [\\/]* | ?:[\\/]* ) # Absolute path.
16155 ac_srcdir=$srcdir$ac_dir_suffix;
16156 ac_top_srcdir=$srcdir ;;
16157 *) # Relative path.
16158 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16159 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16160esac
16161
16162# Do not use `cd foo && pwd` to compute absolute paths, because
16163# the directories may not exist.
16164case `pwd` in
16165.) ac_abs_builddir="$ac_dir";;
16166*)
16167 case "$ac_dir" in
16168 .) ac_abs_builddir=`pwd`;;
16169 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16170 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16171 esac;;
16172esac
16173case $ac_abs_builddir in
16174.) ac_abs_top_builddir=${ac_top_builddir}.;;
16175*)
16176 case ${ac_top_builddir}. in
16177 .) ac_abs_top_builddir=$ac_abs_builddir;;
16178 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16179 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16180 esac;;
16181esac
16182case $ac_abs_builddir in
16183.) ac_abs_srcdir=$ac_srcdir;;
16184*)
16185 case $ac_srcdir in
16186 .) ac_abs_srcdir=$ac_abs_builddir;;
16187 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16188 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16189 esac;;
16190esac
16191case $ac_abs_builddir in
16192.) ac_abs_top_srcdir=$ac_top_srcdir;;
16193*)
16194 case $ac_top_srcdir in
16195 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16196 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16197 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16198 esac;;
16199esac
16200
16201
16202
16203 if test x"$ac_file" != x-; then
16204 { echo "$as_me:$LINENO: creating $ac_file" >&5
16205echo "$as_me: creating $ac_file" >&6;}
16206 rm -f "$ac_file"
16207 fi
16208 # Let's still pretend it is `configure' which instantiates (i.e., don't
16209 # use $as_me), people would be surprised to read:
16210 # /* config.h. Generated by config.status. */
16211 if test x"$ac_file" = x-; then
16212 configure_input=
16213 else
16214 configure_input="$ac_file. "
16215 fi
16216 configure_input=$configure_input"Generated from `echo $ac_file_in |
16217 sed 's,.*/,,'` by configure."
16218
16219 # First look for the input files in the build tree, otherwise in the
16220 # src tree.
16221 ac_file_inputs=`IFS=:
16222 for f in $ac_file_in; do
16223 case $f in
16224 -) echo $tmp/stdin ;;
16225 [\\/$]*)
16226 # Absolute (can't be DOS-style, as IFS=:)
16227 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16228echo "$as_me: error: cannot find input file: $f" >&2;}
16229 { (exit 1); exit 1; }; }
16230 echo "$f";;
16231 *) # Relative
16232 if test -f "$f"; then
16233 # Build tree
16234 echo "$f"
16235 elif test -f "$srcdir/$f"; then
16236 # Source tree
16237 echo "$srcdir/$f"
16238 else
16239 # /dev/null tree
16240 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16241echo "$as_me: error: cannot find input file: $f" >&2;}
16242 { (exit 1); exit 1; }; }
16243 fi;;
16244 esac
16245 done` || { (exit 1); exit 1; }
16246_ACEOF
16247cat >>$CONFIG_STATUS <<_ACEOF
16248 sed "$ac_vpsub
16249$extrasub
16250_ACEOF
16251cat >>$CONFIG_STATUS <<\_ACEOF
16252:t
16253/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16254s,@configure_input@,$configure_input,;t t
16255s,@srcdir@,$ac_srcdir,;t t
16256s,@abs_srcdir@,$ac_abs_srcdir,;t t
16257s,@top_srcdir@,$ac_top_srcdir,;t t
16258s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16259s,@builddir@,$ac_builddir,;t t
16260s,@abs_builddir@,$ac_abs_builddir,;t t
16261s,@top_builddir@,$ac_top_builddir,;t t
16262s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16263" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16264 rm -f $tmp/stdin
16265 if test x"$ac_file" != x-; then
16266 mv $tmp/out $ac_file
16267 else
16268 cat $tmp/out
16269 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000016270 fi
16271
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016272done
16273_ACEOF
16274cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016275
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016276#
16277# CONFIG_HEADER section.
16278#
Bram Moolenaar071d4272004-06-13 20:20:40 +000016279
16280# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16281# NAME is the cpp macro being defined and VALUE is the value it is being given.
16282#
16283# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016284ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16285ac_dB='[ ].*$,\1#\2'
16286ac_dC=' '
16287ac_dD=',;t'
16288# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16289ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16290ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016291ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016292ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016293
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016294for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000016295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016296 case $ac_file in
16297 - | *:- | *:-:* ) # input from stdin
16298 cat >$tmp/stdin
16299 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16300 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16301 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16302 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16303 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016304 esac
16305
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016306 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16307echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000016308
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016309 # First look for the input files in the build tree, otherwise in the
16310 # src tree.
16311 ac_file_inputs=`IFS=:
16312 for f in $ac_file_in; do
16313 case $f in
16314 -) echo $tmp/stdin ;;
16315 [\\/$]*)
16316 # Absolute (can't be DOS-style, as IFS=:)
16317 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16318echo "$as_me: error: cannot find input file: $f" >&2;}
16319 { (exit 1); exit 1; }; }
16320 # Do quote $f, to prevent DOS paths from being IFS'd.
16321 echo "$f";;
16322 *) # Relative
16323 if test -f "$f"; then
16324 # Build tree
16325 echo "$f"
16326 elif test -f "$srcdir/$f"; then
16327 # Source tree
16328 echo "$srcdir/$f"
16329 else
16330 # /dev/null tree
16331 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16332echo "$as_me: error: cannot find input file: $f" >&2;}
16333 { (exit 1); exit 1; }; }
16334 fi;;
16335 esac
16336 done` || { (exit 1); exit 1; }
16337 # Remove the trailing spaces.
16338 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000016339
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016340_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016341
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016342# Transform confdefs.h into two sed scripts, `conftest.defines' and
16343# `conftest.undefs', that substitutes the proper values into
16344# config.h.in to produce config.h. The first handles `#define'
16345# templates, and the second `#undef' templates.
16346# And first: Protect against being on the right side of a sed subst in
16347# config.status. Protect against being in an unquoted here document
16348# in config.status.
16349rm -f conftest.defines conftest.undefs
16350# Using a here document instead of a string reduces the quoting nightmare.
16351# Putting comments in sed scripts is not portable.
16352#
16353# `end' is used to avoid that the second main sed command (meant for
16354# 0-ary CPP macros) applies to n-ary macro definitions.
16355# See the Autoconf documentation for `clear'.
16356cat >confdef2sed.sed <<\_ACEOF
16357s/[\\&,]/\\&/g
16358s,[\\$`],\\&,g
16359t clear
16360: clear
16361s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16362t end
16363s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16364: end
16365_ACEOF
16366# If some macros were called several times there might be several times
16367# the same #defines, which is useless. Nevertheless, we may not want to
16368# sort them, since we want the *last* AC-DEFINE to be honored.
16369uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16370sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16371rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000016372
16373# This sed command replaces #undef with comments. This is necessary, for
16374# example, in the case of _POSIX_SOURCE, which is predefined and required
16375# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016376cat >>conftest.undefs <<\_ACEOF
16377s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16378_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016379
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016380# Break up conftest.defines because some shells have a limit on the size
16381# of here documents, and old seds have small limits too (100 cmds).
16382echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16383echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16384echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16385echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016386rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016387while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000016388do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016389 # Write a limited-size here document to $tmp/defines.sed.
16390 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16391 # Speed up: don't consider the non `#define' lines.
16392 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16393 # Work around the forget-to-reset-the-flag bug.
16394 echo 't clr' >>$CONFIG_STATUS
16395 echo ': clr' >>$CONFIG_STATUS
16396 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016397 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016398 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16399 rm -f $tmp/in
16400 mv $tmp/out $tmp/in
16401' >>$CONFIG_STATUS
16402 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16403 rm -f conftest.defines
16404 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000016405done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016406rm -f conftest.defines
16407echo ' fi # grep' >>$CONFIG_STATUS
16408echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016409
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016410# Break up conftest.undefs because some shells have a limit on the size
16411# of here documents, and old seds have small limits too (100 cmds).
16412echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16413rm -f conftest.tail
16414while grep . conftest.undefs >/dev/null
16415do
16416 # Write a limited-size here document to $tmp/undefs.sed.
16417 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16418 # Speed up: don't consider the non `#undef'
16419 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16420 # Work around the forget-to-reset-the-flag bug.
16421 echo 't clr' >>$CONFIG_STATUS
16422 echo ': clr' >>$CONFIG_STATUS
16423 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16424 echo 'CEOF
16425 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16426 rm -f $tmp/in
16427 mv $tmp/out $tmp/in
16428' >>$CONFIG_STATUS
16429 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16430 rm -f conftest.undefs
16431 mv conftest.tail conftest.undefs
16432done
16433rm -f conftest.undefs
16434
16435cat >>$CONFIG_STATUS <<\_ACEOF
16436 # Let's still pretend it is `configure' which instantiates (i.e., don't
16437 # use $as_me), people would be surprised to read:
16438 # /* config.h. Generated by config.status. */
16439 if test x"$ac_file" = x-; then
16440 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016441 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016442 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016443 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016444 cat $tmp/in >>$tmp/config.h
16445 rm -f $tmp/in
16446 if test x"$ac_file" != x-; then
16447 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16448 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16449echo "$as_me: $ac_file is unchanged" >&6;}
16450 else
16451 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16452$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16453 X"$ac_file" : 'X\(//\)[^/]' \| \
16454 X"$ac_file" : 'X\(//\)$' \| \
16455 X"$ac_file" : 'X\(/\)' \| \
16456 . : '\(.\)' 2>/dev/null ||
16457echo X"$ac_file" |
16458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16460 /^X\(\/\/\)$/{ s//\1/; q; }
16461 /^X\(\/\).*/{ s//\1/; q; }
16462 s/.*/./; q'`
16463 { if $as_mkdir_p; then
16464 mkdir -p "$ac_dir"
16465 else
16466 as_dir="$ac_dir"
16467 as_dirs=
16468 while test ! -d "$as_dir"; do
16469 as_dirs="$as_dir $as_dirs"
16470 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16471$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16472 X"$as_dir" : 'X\(//\)[^/]' \| \
16473 X"$as_dir" : 'X\(//\)$' \| \
16474 X"$as_dir" : 'X\(/\)' \| \
16475 . : '\(.\)' 2>/dev/null ||
16476echo X"$as_dir" |
16477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16479 /^X\(\/\/\)$/{ s//\1/; q; }
16480 /^X\(\/\).*/{ s//\1/; q; }
16481 s/.*/./; q'`
16482 done
16483 test ! -n "$as_dirs" || mkdir $as_dirs
16484 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16485echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16486 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016487
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016488 rm -f $ac_file
16489 mv $tmp/config.h $ac_file
16490 fi
16491 else
16492 cat $tmp/config.h
16493 rm -f $tmp/config.h
16494 fi
16495done
16496_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016497
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016498cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016499
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016500{ (exit 0); exit 0; }
16501_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016502chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016503ac_clean_files=$ac_clean_files_save
16504
16505
16506# configure is writing to config.log, and then calls config.status.
16507# config.status does its own redirection, appending to config.log.
16508# Unfortunately, on DOS this fails, as config.log is still kept open
16509# by configure, so config.status won't be able to write to it; its
16510# output is simply discarded. So we exec the FD to /dev/null,
16511# effectively closing config.log, so it can be properly (re)opened and
16512# appended to by config.status. When coming back to configure, we
16513# need to make the FD available again.
16514if test "$no_create" != yes; then
16515 ac_cs_success=:
16516 ac_config_status_args=
16517 test "$silent" = yes &&
16518 ac_config_status_args="$ac_config_status_args --quiet"
16519 exec 5>/dev/null
16520 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Bram Moolenaarc7453f52006-02-10 23:20:28 +000016521 exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016522 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16523 # would make configure fail if this is the last instruction.
16524 $ac_cs_success || { (exit 1); exit 1; }
16525fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016526
16527