blob: 2eea4afd3dec9866f529fb73356fe8052eac7e2d [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 Moolenaar2217cae2006-03-25 21:55:52 +00002784 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
Bram Moolenaara5792f52005-11-23 21:25:05 +00002785 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002786 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
Bram Moolenaar071d4272004-06-13 20:20:40 +00002787 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2788 else
2789 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2790 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2791 CFLAGS="$CFLAGS -fno-strength-reduce"
2792 fi
2793 fi
2794fi
2795
2796if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002797 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2798 (cross compiling doesn't work)" >&5
2799echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2800 (cross compiling doesn't work)" >&2;}
2801 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00002802fi
2803
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002804test "$GCC" = yes && CPP_MM=M;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002805
2806if test -f ./toolcheck; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002807 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2808echo "$as_me: checking for buggy tools..." >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +00002809 sh ./toolcheck 1>&6
2810fi
2811
2812OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2813
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002814echo "$as_me:$LINENO: checking for BeOS" >&5
2815echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002816case `uname` in
2817 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002818 BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2819echo "${ECHO_T}yes" >&6;;
2820 *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2821echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002822esac
2823
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002824echo "$as_me:$LINENO: checking for QNX" >&5
2825echo $ECHO_N "checking for QNX... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002826case `uname` in
2827 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2828 test -z "$with_x" && with_x=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002829 QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2830echo "${ECHO_T}yes" >&6;;
2831 *) QNX=no; echo "$as_me:$LINENO: result: no" >&5
2832echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002833esac
2834
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002835echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2836echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002837if test "`(uname) 2>/dev/null`" = Darwin; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002838 echo "$as_me:$LINENO: result: yes" >&5
2839echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002840
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002841 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2842echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002843 # Check whether --enable-darwin or --disable-darwin was given.
2844if test "${enable_darwin+set}" = set; then
2845 enableval="$enable_darwin"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002846
Bram Moolenaar071d4272004-06-13 20:20:40 +00002847else
2848 enable_darwin="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002849fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002850 if test "$enable_darwin" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002851 echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
2853 echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2854echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002855 if test -f os_macosx.c; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002856 echo "$as_me:$LINENO: result: yes" >&5
2857echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002858 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002859 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2860echo "${ECHO_T}no, Darwin support disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002861 enable_darwin=no
2862 fi
2863 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002864 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2865echo "${ECHO_T}yes, Darwin support excluded" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002866 fi
2867
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002868 echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2869echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2870
2871# Check whether --with-mac-arch or --without-mac-arch was given.
2872if test "${with_mac_arch+set}" = set; then
2873 withval="$with_mac_arch"
2874 MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2875echo "${ECHO_T}$MACARCH" >&6
2876else
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002877 MACARCH="current"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002878echo "${ECHO_T}defaulting to $MACARCH" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002879fi;
2880
2881 if test "x$MACARCH" = "xboth"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002882 echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
2883echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6
2884 save_cppflags="$CPPFLAGS"
2885 save_cflags="$CFLAGS"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002886 save_ldflags="$LDFLAGS"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002887 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002888 cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h. */
2894
2895int
2896main ()
2897{
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903rm -f conftest.$ac_objext conftest$ac_exeext
2904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2905 (eval $ac_link) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest$ac_exeext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002925 echo "$as_me:$LINENO: result: found" >&5
2926echo "${ECHO_T}found" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002927else
2928 echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002931echo "$as_me:$LINENO: result: not found" >&5
2932echo "${ECHO_T}not found" >&6
Bram Moolenaar1f35bf92006-03-07 22:38:47 +00002933 CFLAGS="$save_cflags"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002934 echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002935echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002936 CPPFLAGS="$CPPFLAGS -arch i386"
2937 LDFLAGS="$save_ldflags -arch i386"
2938 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002939/* confdefs.h. */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h. */
2944
2945int
2946main ()
2947{
2948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953rm -f conftest.$ac_objext conftest$ac_exeext
2954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2955 (eval $ac_link) 2>conftest.er1
2956 ac_status=$?
2957 grep -v '^ *+' conftest.er1 >conftest.err
2958 rm -f conftest.er1
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -z "$ac_c_werror_flag"
2963 || test ! -s conftest.err'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 (eval $ac_try) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; } &&
2969 { ac_try='test -s conftest$ac_exeext'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 (eval $ac_try) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 echo "$as_me:$LINENO: result: yes" >&5
2976echo "${ECHO_T}yes" >&6; MACARCH="intel"
2977else
2978 echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981echo "$as_me:$LINENO: result: no" >&5
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002982echo "${ECHO_T}no" >&6
2983 MACARCH="ppc"
2984 CPPFLAGS="$save_cppflags -arch ppc"
2985 LDFLAGS="$save_ldflags -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002986fi
2987rm -f conftest.err conftest.$ac_objext \
2988 conftest$ac_exeext conftest.$ac_ext
2989fi
2990rm -f conftest.err conftest.$ac_objext \
2991 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002992 elif test "x$MACARCH" = "xintel"; then
2993 CPPFLAGS="$CPPFLAGS -arch intel"
2994 LDFLAGS="$LDFLAGS -arch intel"
2995 else
2996 CPPFLAGS="$CPPFLAGS -arch ppc"
2997 LDFLAGS="$LDFLAGS -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002998 fi
2999
Bram Moolenaar071d4272004-06-13 20:20:40 +00003000 if test "$enable_darwin" = "yes"; then
3001 MACOSX=yes
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003002 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3003 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003004 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3005 if test "x$MACARCH" = "xboth"; then
3006 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3007 else
3008 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3009 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00003010
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003011 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3012echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3013if test "${ac_cv_header_stdc+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003015else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
3022#include <stdlib.h>
3023#include <stdarg.h>
3024#include <string.h>
3025#include <float.h>
3026
3027int
3028main ()
3029{
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext
3036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037 (eval $ac_compile) 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_c_werror_flag"
3045 || test ! -s conftest.err'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_header_stdc=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003058else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003059 echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062ac_cv_header_stdc=no
3063fi
3064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3065
3066if test $ac_cv_header_stdc = yes; then
3067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3068 cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h. */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h. */
3074#include <string.h>
3075
3076_ACEOF
3077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3078 $EGREP "memchr" >/dev/null 2>&1; then
3079 :
3080else
3081 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003082fi
3083rm -f conftest*
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003084
Bram Moolenaar071d4272004-06-13 20:20:40 +00003085fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003086
3087if test $ac_cv_header_stdc = yes; then
3088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3089 cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h. */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h. */
3095#include <stdlib.h>
3096
3097_ACEOF
3098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3099 $EGREP "free" >/dev/null 2>&1; then
3100 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00003101else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003102 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003103fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003104rm -f conftest*
3105
3106fi
3107
3108if test $ac_cv_header_stdc = yes; then
3109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3110 if test "$cross_compiling" = yes; then
3111 :
3112else
3113 cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
3119#include <ctype.h>
3120#if ((' ' & 0x0FF) == 0x020)
3121# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3122# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3123#else
3124# define ISLOWER(c) \
3125 (('a' <= (c) && (c) <= 'i') \
3126 || ('j' <= (c) && (c) <= 'r') \
3127 || ('s' <= (c) && (c) <= 'z'))
3128# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3129#endif
3130
3131#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3132int
3133main ()
3134{
3135 int i;
3136 for (i = 0; i < 256; i++)
3137 if (XOR (islower (i), ISLOWER (i))
3138 || toupper (i) != TOUPPER (i))
3139 exit(2);
3140 exit (0);
3141}
3142_ACEOF
3143rm -f conftest$ac_exeext
3144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3145 (eval $ac_link) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 :
3155else
3156 echo "$as_me: program exited with status $ac_status" >&5
3157echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160( exit $ac_status )
3161ac_cv_header_stdc=no
3162fi
3163rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3164fi
3165fi
3166fi
3167echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3168echo "${ECHO_T}$ac_cv_header_stdc" >&6
3169if test $ac_cv_header_stdc = yes; then
3170
3171cat >>confdefs.h <<\_ACEOF
3172#define STDC_HEADERS 1
3173_ACEOF
3174
3175fi
3176
3177# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3188 inttypes.h stdint.h unistd.h
3189do
3190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3191echo "$as_me:$LINENO: checking for $ac_header" >&5
3192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3193if eval "test \"\${$as_ac_Header+set}\" = set"; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196 cat >conftest.$ac_ext <<_ACEOF
3197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
3202$ac_includes_default
3203
3204#include <$ac_header>
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } &&
3215 { ac_try='test -z "$ac_c_werror_flag"
3216 || test ! -s conftest.err'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 (eval $ac_try) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 (eval $ac_try) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 eval "$as_ac_Header=yes"
3229else
3230 echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233eval "$as_ac_Header=no"
3234fi
3235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3236fi
3237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3239if test `eval echo '${'$as_ac_Header'}'` = yes; then
3240 cat >>confdefs.h <<_ACEOF
3241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3242_ACEOF
3243
3244fi
3245
3246done
3247
3248
3249if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3250 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3251echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3252if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254fi
3255echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3256echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3257else
3258 # Is the header compilable?
3259echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3260echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3261cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h. */
3267$ac_includes_default
3268#include <Carbon/Carbon.h>
3269_ACEOF
3270rm -f conftest.$ac_objext
3271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272 (eval $ac_compile) 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -z "$ac_c_werror_flag"
3280 || test ! -s conftest.err'
3281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 (eval $ac_try) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 (eval $ac_try) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 ac_header_compiler=yes
3293else
3294 echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297ac_header_compiler=no
3298fi
3299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3301echo "${ECHO_T}$ac_header_compiler" >&6
3302
3303# Is the header present?
3304echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3305echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3306cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h. */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h. */
3312#include <Carbon/Carbon.h>
3313_ACEOF
3314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3316 ac_status=$?
3317 grep -v '^ *+' conftest.er1 >conftest.err
3318 rm -f conftest.er1
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } >/dev/null; then
3322 if test -s conftest.err; then
3323 ac_cpp_err=$ac_c_preproc_warn_flag
3324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325 else
3326 ac_cpp_err=
3327 fi
3328else
3329 ac_cpp_err=yes
3330fi
3331if test -z "$ac_cpp_err"; then
3332 ac_header_preproc=yes
3333else
3334 echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 ac_header_preproc=no
3338fi
3339rm -f conftest.err conftest.$ac_ext
3340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3341echo "${ECHO_T}$ac_header_preproc" >&6
3342
3343# So? What about this header?
3344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3345 yes:no: )
3346 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3347echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3348 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3349echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3350 ac_header_preproc=yes
3351 ;;
3352 no:yes:* )
3353 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3354echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3355 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3356echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3357 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3358echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3359 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3360echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3361 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3362echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3363 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3364echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3365 (
3366 cat <<\_ASBOX
3367## ------------------------------------------ ##
3368## Report this to the AC_PACKAGE_NAME lists. ##
3369## ------------------------------------------ ##
3370_ASBOX
3371 ) |
3372 sed "s/^/$as_me: WARNING: /" >&2
3373 ;;
3374esac
3375echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3376echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3377if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3381fi
3382echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3383echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3384
3385fi
3386if test $ac_cv_header_Carbon_Carbon_h = yes; then
3387 CARBON=yes
3388fi
3389
Bram Moolenaar071d4272004-06-13 20:20:40 +00003390
3391 if test "x$CARBON" = "xyes"; then
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003392 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 +00003393 with_x=no
Bram Moolenaarefd2bf12006-03-16 21:41:35 +00003394
3395 if test x$prefix = xNONE; then
3396 prefix=/Applications
3397 fi
Bram Moolenaard2cec5b2006-03-28 21:08:56 +00003398
3399 datadir='${prefix}/Vim.app/Contents/Resources'
Bram Moolenaar071d4272004-06-13 20:20:40 +00003400 fi
3401 fi
3402 fi
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003403
Bram Moolenaarfd2ac762006-03-01 22:09:21 +00003404 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003405 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3406 fi
3407
Bram Moolenaar071d4272004-06-13 20:20:40 +00003408else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003409 echo "$as_me:$LINENO: result: no" >&5
3410echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003411fi
3412
3413
3414
3415
3416have_local_include=''
3417have_local_lib=''
3418if test "$GCC" = yes; then
3419 echo 'void f(){}' > conftest.c
3420 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3421 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3422 rm -f conftest.c conftest.o
3423fi
3424if test -z "$have_local_lib" -a -d /usr/local/lib; then
3425 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3426 if test "$tt" = "$LDFLAGS"; then
3427 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3428 fi
3429fi
3430if test -z "$have_local_include" -a -d /usr/local/include; then
3431 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3432 if test "$tt" = "$CPPFLAGS"; then
3433 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3434 fi
3435fi
3436
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003437echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3438echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3439
Bram Moolenaar071d4272004-06-13 20:20:40 +00003440# Check whether --with-vim-name or --without-vim-name was given.
3441if test "${with_vim_name+set}" = set; then
3442 withval="$with_vim_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003443 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3444echo "${ECHO_T}$VIMNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003445else
Bram Moolenaare344bea2005-09-01 20:46:49 +00003446 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003447echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3448fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003449
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003450echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3451echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003452
Bram Moolenaar071d4272004-06-13 20:20:40 +00003453# Check whether --with-ex-name or --without-ex-name was given.
3454if test "${with_ex_name+set}" = set; then
3455 withval="$with_ex_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003456 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3457echo "${ECHO_T}$EXNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003458else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003459 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3460echo "${ECHO_T}Defaulting to ex" >&6
3461fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003462
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003463echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3464echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003465
Bram Moolenaar071d4272004-06-13 20:20:40 +00003466# Check whether --with-view-name or --without-view-name was given.
3467if test "${with_view_name+set}" = set; then
3468 withval="$with_view_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003469 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3470echo "${ECHO_T}$VIEWNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003471else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003472 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3473echo "${ECHO_T}Defaulting to view" >&6
3474fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003475
3476
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003477echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3478echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003479
Bram Moolenaar071d4272004-06-13 20:20:40 +00003480# Check whether --with-global-runtime or --without-global-runtime was given.
3481if test "${with_global_runtime+set}" = set; then
3482 withval="$with_global_runtime"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003483 echo "$as_me:$LINENO: result: $withval" >&5
3484echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003485#define RUNTIME_GLOBAL "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003486_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003487
3488else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003489 echo "$as_me:$LINENO: result: no" >&5
3490echo "${ECHO_T}no" >&6
3491fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003492
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003493echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3494echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003495
Bram Moolenaar071d4272004-06-13 20:20:40 +00003496# Check whether --with-modified-by or --without-modified-by was given.
3497if test "${with_modified_by+set}" = set; then
3498 withval="$with_modified_by"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003499 echo "$as_me:$LINENO: result: $withval" >&5
3500echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003501#define MODIFIED_BY "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003502_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003503
3504else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003505 echo "$as_me:$LINENO: result: no" >&5
3506echo "${ECHO_T}no" >&6
3507fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003508
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003509echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3510echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3511cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003517
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003518int
3519main ()
3520{
Bram Moolenaar071d4272004-06-13 20:20:40 +00003521 /* TryCompile function for CharSet.
3522 Treat any failure as ASCII for compatibility with existing art.
3523 Use compile-time rather than run-time tests for cross-compiler
3524 tolerance. */
3525#if '0'!=240
3526make an error "Character set is not EBCDIC"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003527#endif
3528 ;
3529 return 0;
3530}
3531_ACEOF
3532rm -f conftest.$ac_objext
3533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3534 (eval $ac_compile) 2>conftest.er1
3535 ac_status=$?
3536 grep -v '^ *+' conftest.er1 >conftest.err
3537 rm -f conftest.er1
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } &&
3541 { ac_try='test -z "$ac_c_werror_flag"
3542 || test ! -s conftest.err'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 (eval $ac_try) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; } &&
3548 { ac_try='test -s conftest.$ac_objext'
3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 (eval $ac_try) 2>&5
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003554 # TryCompile action if true
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003555cf_cv_ebcdic=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003556else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003557 echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
3559
3560 # TryCompile action if false
Bram Moolenaar071d4272004-06-13 20:20:40 +00003561cf_cv_ebcdic=no
3562fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003564# end of TryCompile ])
3565# end of CacheVal CvEbcdic
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003566echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3567echo "${ECHO_T}$cf_cv_ebcdic" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003568case "$cf_cv_ebcdic" in #(vi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003569 yes) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003570#define EBCDIC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003571_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003572
3573 line_break='"\\n"'
3574 ;;
3575 *) line_break='"\\012"';;
3576esac
3577
3578
3579if test "$cf_cv_ebcdic" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003580echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3581echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003582case `uname` in
3583 OS/390) OS390Unix="yes";
3584 if test "$CC" = "cc"; then
3585 ccm="$_CC_CCMODE"
3586 ccn="CC"
3587 else
3588 if test "$CC" = "c89"; then
3589 ccm="$_CC_C89MODE"
3590 ccn="C89"
3591 else
3592 ccm=1
3593 fi
3594 fi
3595 if test "$ccm" != "1"; then
3596 echo ""
3597 echo "------------------------------------------"
3598 echo " On OS/390 Unix, the environment variable"
3599 echo " __CC_${ccn}MODE must be set to \"1\"!"
3600 echo " Do:"
3601 echo " export _CC_${ccn}MODE=1"
3602 echo " and then call configure again."
3603 echo "------------------------------------------"
3604 exit 1
3605 fi
3606 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003607 echo "$as_me:$LINENO: result: yes" >&5
3608echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003609 ;;
3610 *) OS390Unix="no";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003611 echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003613 ;;
3614esac
3615fi
3616
3617
3618
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003619echo "$as_me:$LINENO: checking --with-features argument" >&5
3620echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3621
Bram Moolenaar071d4272004-06-13 20:20:40 +00003622# Check whether --with-features or --without-features was given.
3623if test "${with_features+set}" = set; then
3624 withval="$with_features"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003625 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3626echo "${ECHO_T}$features" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003627else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003628 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3629echo "${ECHO_T}Defaulting to normal" >&6
3630fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003631
3632dovimdiff=""
3633dogvimdiff=""
3634case "$features" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003635 tiny) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003636#define FEAT_TINY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003637_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003638 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003639 small) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003640#define FEAT_SMALL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003641_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003642 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003643 normal) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003644#define FEAT_NORMAL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003645_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003646 dovimdiff="installvimdiff";
3647 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003648 big) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003649#define FEAT_BIG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003650_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003651 dovimdiff="installvimdiff";
3652 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003653 huge) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003654#define FEAT_HUGE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003655_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003656 dovimdiff="installvimdiff";
3657 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003658 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3659echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003660esac
3661
3662
3663
3664
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003665echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3666echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3667
Bram Moolenaar071d4272004-06-13 20:20:40 +00003668# Check whether --with-compiledby or --without-compiledby was given.
3669if test "${with_compiledby+set}" = set; then
3670 withval="$with_compiledby"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003671 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3672echo "${ECHO_T}$withval" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003673else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003674 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3675echo "${ECHO_T}no" >&6
3676fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003677
3678
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003679echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3680echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003681# Check whether --enable-xsmp or --disable-xsmp was given.
3682if test "${enable_xsmp+set}" = set; then
3683 enableval="$enable_xsmp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003684
Bram Moolenaar071d4272004-06-13 20:20:40 +00003685else
3686 enable_xsmp="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003687fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003688
3689if test "$enable_xsmp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003690 echo "$as_me:$LINENO: result: no" >&5
3691echo "${ECHO_T}no" >&6
3692 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3693echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003694 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3695if test "${enable_xsmp_interact+set}" = set; then
3696 enableval="$enable_xsmp_interact"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003697
Bram Moolenaar071d4272004-06-13 20:20:40 +00003698else
3699 enable_xsmp_interact="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003700fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003701 if test "$enable_xsmp_interact" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003702 echo "$as_me:$LINENO: result: no" >&5
3703echo "${ECHO_T}no" >&6
3704 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003705#define USE_XSMP_INTERACT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003706_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003707
3708 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003709 echo "$as_me:$LINENO: result: yes" >&5
3710echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003711 fi
3712else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003713 echo "$as_me:$LINENO: result: yes" >&5
3714echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003715fi
3716
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003717echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3718echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003719# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3720if test "${enable_mzschemeinterp+set}" = set; then
3721 enableval="$enable_mzschemeinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003722
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003723else
3724 enable_mzschemeinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003725fi;
3726echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3727echo "${ECHO_T}$enable_mzschemeinterp" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003728
3729if test "$enable_mzschemeinterp" = "yes"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003730
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003731
3732 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3733echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3734
3735# Check whether --with-plthome or --without-plthome was given.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003736if test "${with_plthome+set}" = set; then
3737 withval="$with_plthome"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003738 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3739echo "${ECHO_T}$with_plthome" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003740else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003741 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3742echo "${ECHO_T}\"no\"" >&6
3743fi;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003744
3745 if test "X$with_plthome" != "X"; then
3746 vi_cv_path_mzscheme_pfx="$with_plthome"
3747 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003748 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3749echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003750 if test "X$PLTHOME" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003751 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3752echo "${ECHO_T}\"$PLTHOME\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003753 vi_cv_path_mzscheme_pfx="$PLTHOME"
3754 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003755 echo "$as_me:$LINENO: result: \"not set\"" >&5
3756echo "${ECHO_T}\"not set\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003757 # Extract the first word of "mzscheme", so it can be a program name with args.
3758set dummy mzscheme; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003759echo "$as_me:$LINENO: checking for $ac_word" >&5
3760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003763else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003764 case $vi_cv_path_mzscheme in
3765 [\\/]* | ?:[\\/]*)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003766 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3767 ;;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003768 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780done
3781done
3782
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003783 ;;
3784esac
3785fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003786vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3787
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003788if test -n "$vi_cv_path_mzscheme"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003789 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3790echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003791else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003792 echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003794fi
3795
3796
3797 if test "X$vi_cv_path_mzscheme" != "X"; then
3798 lsout=`ls -l $vi_cv_path_mzscheme`
3799 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3800 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3801 fi
3802 fi
3803
3804 if test "X$vi_cv_path_mzscheme" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003805 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3806echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3807if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003809else
3810 vi_cv_path_mzscheme_pfx=`
3811 ${vi_cv_path_mzscheme} -evm \
3812 "(display (simplify-path \
3813 (build-path (call-with-values \
3814 (lambda () (split-path (find-system-path (quote exec-file)))) \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003815 (lambda (base name must-be-dir?) base)) (quote up))))"`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003816fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003817echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3818echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003819 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3820 fi
3821 fi
3822 fi
3823
3824 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003825 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3826echo $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 +00003827 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003828 echo "$as_me:$LINENO: result: \"yes\"" >&5
3829echo "${ECHO_T}\"yes\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003830 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003831 echo "$as_me:$LINENO: result: \"no\"" >&5
3832echo "${ECHO_T}\"no\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003833 vi_cv_path_mzscheme_pfx=
3834 fi
3835 fi
3836
3837 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3838 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3839 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3840 else
3841 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003842 if test "$GCC" = yes; then
3843 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003844 elif test "`(uname) 2>/dev/null`" = SunOS &&
3845 uname -r | grep '^5' >/dev/null; then
3846 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003847 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003848 fi
3849 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \
3850 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3851 MZSCHEME_SRC="if_mzsch.c"
3852 MZSCHEME_OBJ="objects/if_mzsch.o"
3853 MZSCHEME_PRO="if_mzsch.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003854 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003855#define FEAT_MZSCHEME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003856_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003857
3858 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003859
3860
3861
3862
3863
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003864fi
3865
3866
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003867echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3868echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003869# Check whether --enable-perlinterp or --disable-perlinterp was given.
3870if test "${enable_perlinterp+set}" = set; then
3871 enableval="$enable_perlinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003872
Bram Moolenaar071d4272004-06-13 20:20:40 +00003873else
3874 enable_perlinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003875fi;
3876echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3877echo "${ECHO_T}$enable_perlinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003878if test "$enable_perlinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003879
Bram Moolenaar071d4272004-06-13 20:20:40 +00003880 # Extract the first word of "perl", so it can be a program name with args.
3881set dummy perl; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003882echo "$as_me:$LINENO: checking for $ac_word" >&5
3883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003886else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003887 case $vi_cv_path_perl in
3888 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003889 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3890 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003891 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903done
3904done
3905
Bram Moolenaar071d4272004-06-13 20:20:40 +00003906 ;;
3907esac
3908fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003909vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3910
Bram Moolenaar071d4272004-06-13 20:20:40 +00003911if test -n "$vi_cv_path_perl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003912 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3913echo "${ECHO_T}$vi_cv_path_perl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003914else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003915 echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003917fi
3918
3919 if test "X$vi_cv_path_perl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003920 echo "$as_me:$LINENO: checking Perl version" >&5
3921echo $ECHO_N "checking Perl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003922 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3923 eval `$vi_cv_path_perl -V:usethreads`
3924 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3925 badthreads=no
3926 else
3927 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3928 eval `$vi_cv_path_perl -V:use5005threads`
3929 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3930 badthreads=no
3931 else
3932 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003933 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3934echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003935 fi
3936 else
3937 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003938 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3939echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003940 fi
3941 fi
3942 if test $badthreads = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003943 echo "$as_me:$LINENO: result: OK" >&5
3944echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003945 eval `$vi_cv_path_perl -V:shrpenv`
3946 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3947 shrpenv=""
3948 fi
3949 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003950
Bram Moolenaar071d4272004-06-13 20:20:40 +00003951 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3952 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3953 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3954 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3955 -e 's/-bE:perl.exp//' -e 's/-lc //'`
3956 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3957 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3958
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003959 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3960echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003961 cflags_save=$CFLAGS
3962 libs_save=$LIBS
3963 ldflags_save=$LDFLAGS
3964 CFLAGS="$CFLAGS $perlcppflags"
3965 LIBS="$LIBS $perllibs"
3966 LDFLAGS="$perlldflags $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003967 cat >conftest.$ac_ext <<_ACEOF
3968/* confdefs.h. */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
3972/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003973
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003974int
3975main ()
3976{
3977
3978 ;
3979 return 0;
3980}
3981_ACEOF
3982rm -f conftest.$ac_objext conftest$ac_exeext
3983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3984 (eval $ac_link) 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -z "$ac_c_werror_flag"
3992 || test ! -s conftest.err'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; } &&
3998 { ac_try='test -s conftest$ac_exeext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 echo "$as_me:$LINENO: result: yes" >&5
4005echo "${ECHO_T}yes" >&6; perl_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004006else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004007 echo "$as_me: failed program was:" >&5
4008sed 's/^/| /' conftest.$ac_ext >&5
4009
4010echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4011echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004012fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004013rm -f conftest.err conftest.$ac_objext \
4014 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004015 CFLAGS=$cflags_save
4016 LIBS=$libs_save
4017 LDFLAGS=$ldflags_save
4018 if test $perl_ok = yes; then
4019 if test "X$perlcppflags" != "X"; then
4020 PERL_CFLAGS="$perlcppflags"
4021 fi
4022 if test "X$perlldflags" != "X"; then
4023 LDFLAGS="$perlldflags $LDFLAGS"
4024 fi
4025 PERL_LIBS=$perllibs
4026 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4027 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4028 PERL_PRO="if_perl.pro if_perlsfio.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004029 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004030#define FEAT_PERL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004031_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004032
4033 fi
4034 fi
4035 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004036 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4037echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004038 fi
4039 fi
4040
4041 if test "x$MACOSX" = "xyes"; then
4042 dir=/System/Library/Perl
4043 darwindir=$dir/darwin
4044 if test -d $darwindir; then
4045 PERL=/usr/bin/perl
4046 else
4047 dir=/System/Library/Perl/5.8.1
4048 darwindir=$dir/darwin-thread-multi-2level
4049 if test -d $darwindir; then
4050 PERL=/usr/bin/perl
4051 fi
4052 fi
4053 if test -n "$PERL"; then
4054 PERL_DIR="$dir"
4055 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4056 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4057 PERL_LIBS="-L$darwindir/CORE -lperl"
4058 fi
4059 fi
4060fi
4061
4062
4063
4064
4065
4066
4067
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004068echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4069echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004070# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4071if test "${enable_pythoninterp+set}" = set; then
4072 enableval="$enable_pythoninterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004073
Bram Moolenaar071d4272004-06-13 20:20:40 +00004074else
4075 enable_pythoninterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004076fi;
4077echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4078echo "${ECHO_T}$enable_pythoninterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004079if test "$enable_pythoninterp" = "yes"; then
4080 # Extract the first word of "python", so it can be a program name with args.
4081set dummy python; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004082echo "$as_me:$LINENO: checking for $ac_word" >&5
4083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004086else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004087 case $vi_cv_path_python in
4088 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004089 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4090 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004091 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093for as_dir in $PATH
4094do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4102 fi
4103done
4104done
4105
Bram Moolenaar071d4272004-06-13 20:20:40 +00004106 ;;
4107esac
4108fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004109vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4110
Bram Moolenaar071d4272004-06-13 20:20:40 +00004111if test -n "$vi_cv_path_python"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004112 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4113echo "${ECHO_T}$vi_cv_path_python" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004114else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004115 echo "$as_me:$LINENO: result: no" >&5
4116echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004117fi
4118
4119 if test "X$vi_cv_path_python" != "X"; then
4120
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004121 echo "$as_me:$LINENO: checking Python version" >&5
4122echo $ECHO_N "checking Python version... $ECHO_C" >&6
4123if test "${vi_cv_var_python_version+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004125else
4126 vi_cv_var_python_version=`
4127 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004128
Bram Moolenaar071d4272004-06-13 20:20:40 +00004129fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004130echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4131echo "${ECHO_T}$vi_cv_var_python_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004132
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004133 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4134echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004135 if ${vi_cv_path_python} -c \
4136 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4137 then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004138 echo "$as_me:$LINENO: result: yep" >&5
4139echo "${ECHO_T}yep" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004140
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004141 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4142echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4143if test "${vi_cv_path_python_pfx+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004145else
4146 vi_cv_path_python_pfx=`
4147 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004148 "import sys; print sys.prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004149fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004150echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4151echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004152
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004153 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4154echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4155if test "${vi_cv_path_python_epfx+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004157else
4158 vi_cv_path_python_epfx=`
4159 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004160 "import sys; print sys.exec_prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004161fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004162echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4163echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004164
Bram Moolenaar071d4272004-06-13 20:20:40 +00004165
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004166 if test "${vi_cv_path_pythonpath+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004168else
4169 vi_cv_path_pythonpath=`
4170 unset PYTHONPATH;
4171 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004172 "import sys, string; print string.join(sys.path,':')"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004173fi
4174
4175
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004176
4177
4178# Check whether --with-python-config-dir or --without-python-config-dir was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004179if test "${with_python_config_dir+set}" = set; then
4180 withval="$with_python_config_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004181 vi_cv_path_python_conf="${withval}"
4182fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004183
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004184 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4185echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4186if test "${vi_cv_path_python_conf+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004188else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004189
Bram Moolenaar071d4272004-06-13 20:20:40 +00004190 vi_cv_path_python_conf=
4191 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4192 for subdir in lib share; do
4193 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4194 if test -d "$d" && test -f "$d/config.c"; then
4195 vi_cv_path_python_conf="$d"
4196 fi
4197 done
4198 done
Bram Moolenaar071d4272004-06-13 20:20:40 +00004199
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004200fi
4201echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4202echo "${ECHO_T}$vi_cv_path_python_conf" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004203
4204 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4205
4206 if test "X$PYTHON_CONFDIR" = "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004207 echo "$as_me:$LINENO: result: can't find it!" >&5
4208echo "${ECHO_T}can't find it!" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004209 else
4210
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004211 if test "${vi_cv_path_python_plibs+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004213else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004214
Bram Moolenaar071d4272004-06-13 20:20:40 +00004215 tmp_mkf="/tmp/Makefile-conf$$"
4216 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4217__:
4218 @echo "python_MODLIBS='$(MODLIBS)'"
4219 @echo "python_LIBS='$(LIBS)'"
4220 @echo "python_SYSLIBS='$(SYSLIBS)'"
4221 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4222eof
4223 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4224 rm -f ${tmp_mkf}
4225 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4226 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4227 vi_cv_path_python_plibs="-framework Python"
4228 else
4229 if test "${vi_cv_var_python_version}" = "1.4"; then
4230 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4231 else
4232 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4233 fi
4234 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4235 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4236 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004237
Bram Moolenaar071d4272004-06-13 20:20:40 +00004238fi
4239
4240
4241 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4242 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4243 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4244 else
4245 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}"
4246 fi
4247 PYTHON_SRC="if_python.c"
4248 if test "x$MACOSX" = "xyes"; then
4249 PYTHON_OBJ="objects/if_python.o"
4250 else
4251 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4252 fi
4253 if test "${vi_cv_var_python_version}" = "1.4"; then
4254 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4255 fi
4256 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4257
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004258 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4259echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004260 threadsafe_flag=
4261 thread_lib=
4262 if test "x$MACOSX" != "xyes"; then
4263 test "$GCC" = yes && threadsafe_flag="-pthread"
4264 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4265 threadsafe_flag="-D_THREAD_SAFE"
4266 thread_lib="-pthread"
4267 fi
4268 fi
4269 libs_save_old=$LIBS
4270 if test -n "$threadsafe_flag"; then
4271 cflags_save=$CFLAGS
4272 CFLAGS="$CFLAGS $threadsafe_flag"
4273 LIBS="$LIBS $thread_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004274 cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h. */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004280
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004281int
4282main ()
4283{
4284
4285 ;
4286 return 0;
4287}
4288_ACEOF
4289rm -f conftest.$ac_objext conftest$ac_exeext
4290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4291 (eval $ac_link) 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest$ac_exeext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 echo "$as_me:$LINENO: result: yes" >&5
4312echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004313else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004314 echo "$as_me: failed program was:" >&5
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
4317echo "$as_me:$LINENO: result: no" >&5
4318echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4319
Bram Moolenaar071d4272004-06-13 20:20:40 +00004320fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004321rm -f conftest.err conftest.$ac_objext \
4322 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004323 CFLAGS=$cflags_save
4324 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004325 echo "$as_me:$LINENO: result: no" >&5
4326echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004327 fi
4328
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004329 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4330echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004331 cflags_save=$CFLAGS
4332 libs_save=$LIBS
4333 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4334 LIBS="$LIBS $PYTHON_LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004335 cat >conftest.$ac_ext <<_ACEOF
4336/* confdefs.h. */
4337_ACEOF
4338cat confdefs.h >>conftest.$ac_ext
4339cat >>conftest.$ac_ext <<_ACEOF
4340/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004341
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004342int
4343main ()
4344{
4345
4346 ;
4347 return 0;
4348}
4349_ACEOF
4350rm -f conftest.$ac_objext conftest$ac_exeext
4351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4352 (eval $ac_link) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -z "$ac_c_werror_flag"
4360 || test ! -s conftest.err'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try='test -s conftest$ac_exeext'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 echo "$as_me:$LINENO: result: yes" >&5
4373echo "${ECHO_T}yes" >&6; python_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004374else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004375 echo "$as_me: failed program was:" >&5
4376sed 's/^/| /' conftest.$ac_ext >&5
4377
4378echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4379echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004380fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004381rm -f conftest.err conftest.$ac_objext \
4382 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004383 CFLAGS=$cflags_save
4384 LIBS=$libs_save
4385 if test $python_ok = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004386 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004387#define FEAT_PYTHON 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004388_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004389
4390 else
4391 LIBS=$libs_save_old
4392 PYTHON_SRC=
4393 PYTHON_OBJ=
4394 PYTHON_LIBS=
4395 PYTHON_CFLAGS=
4396 fi
4397
4398 fi
4399 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004400 echo "$as_me:$LINENO: result: too old" >&5
4401echo "${ECHO_T}too old" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004402 fi
4403 fi
4404fi
4405
4406
4407
4408
4409
4410
4411
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004412echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4413echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004414# Check whether --enable-tclinterp or --disable-tclinterp was given.
4415if test "${enable_tclinterp+set}" = set; then
4416 enableval="$enable_tclinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004417
Bram Moolenaar071d4272004-06-13 20:20:40 +00004418else
4419 enable_tclinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004420fi;
4421echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4422echo "${ECHO_T}$enable_tclinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004423
4424if test "$enable_tclinterp" = "yes"; then
4425
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004426 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4427echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4428
4429# Check whether --with-tclsh or --without-tclsh was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004430if test "${with_tclsh+set}" = set; then
4431 withval="$with_tclsh"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004432 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4433echo "${ECHO_T}$tclsh_name" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004434else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004435 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4436echo "${ECHO_T}no" >&6
4437fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004438 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4439set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004440echo "$as_me:$LINENO: checking for $ac_word" >&5
4441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004444else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004445 case $vi_cv_path_tcl in
4446 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004447 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4448 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004449 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4460 fi
4461done
4462done
4463
Bram Moolenaar071d4272004-06-13 20:20:40 +00004464 ;;
4465esac
4466fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004467vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4468
Bram Moolenaar071d4272004-06-13 20:20:40 +00004469if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004470 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4471echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004472else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004473 echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004475fi
4476
Bram Moolenaar071d4272004-06-13 20:20:40 +00004477
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004478
4479 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004480 tclsh_name="tclsh8.2"
4481 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4482set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004483echo "$as_me:$LINENO: checking for $ac_word" >&5
4484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4485if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004487else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004488 case $vi_cv_path_tcl in
4489 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004490 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4491 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004492 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494for as_dir in $PATH
4495do
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4503 fi
4504done
4505done
4506
Bram Moolenaar071d4272004-06-13 20:20:40 +00004507 ;;
4508esac
4509fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004510vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4511
Bram Moolenaar071d4272004-06-13 20:20:40 +00004512if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004513 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4514echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004515else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004516 echo "$as_me:$LINENO: result: no" >&5
4517echo "${ECHO_T}no" >&6
4518fi
4519
4520 fi
4521 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4522 tclsh_name="tclsh8.0"
4523 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4524set dummy $tclsh_name; ac_word=$2
4525echo "$as_me:$LINENO: checking for $ac_word" >&5
4526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4527if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530 case $vi_cv_path_tcl in
4531 [\\/]* | ?:[\\/]*)
4532 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4533 ;;
4534 *)
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546done
4547done
4548
4549 ;;
4550esac
4551fi
4552vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4553
4554if test -n "$vi_cv_path_tcl"; then
4555 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4556echo "${ECHO_T}$vi_cv_path_tcl" >&6
4557else
4558 echo "$as_me:$LINENO: result: no" >&5
4559echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004560fi
4561
4562 fi
4563 if test "X$vi_cv_path_tcl" = "X"; then
4564 tclsh_name="tclsh"
4565 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4566set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004567echo "$as_me:$LINENO: checking for $ac_word" >&5
4568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004571else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004572 case $vi_cv_path_tcl in
4573 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004574 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4575 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004576 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588done
4589done
4590
Bram Moolenaar071d4272004-06-13 20:20:40 +00004591 ;;
4592esac
4593fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004594vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4595
Bram Moolenaar071d4272004-06-13 20:20:40 +00004596if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004597 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4598echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004599else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004600 echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004602fi
4603
4604 fi
4605 if test "X$vi_cv_path_tcl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004606 echo "$as_me:$LINENO: checking Tcl version" >&5
4607echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004608 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4609 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004610 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4611echo "${ECHO_T}$tclver - OK" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004612 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 -`
4613
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004614 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4615echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004616 if test "x$MACOSX" != "xyes"; then
Bram Moolenaar47136d72004-10-12 20:02:24 +00004617 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004618 else
4619 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4620 fi
4621 for try in $tclinc; do
4622 if test -f "$try/tcl.h"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004623 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4624echo "${ECHO_T}$try/tcl.h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004625 TCL_INC=$try
4626 break
4627 fi
4628 done
4629 if test -z "$TCL_INC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004630 echo "$as_me:$LINENO: result: <not found>" >&5
4631echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004632 SKIP_TCL=YES
4633 fi
4634 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004635 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4636echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004637 if test "x$MACOSX" != "xyes"; then
4638 tclcnf=`echo $tclinc | sed s/include/lib/g`
4639 else
4640 tclcnf="/System/Library/Frameworks/Tcl.framework"
4641 fi
4642 for try in $tclcnf; do
4643 if test -f $try/tclConfig.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004644 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4645echo "${ECHO_T}$try/tclConfig.sh" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004646 . $try/tclConfig.sh
4647 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
Bram Moolenaar9372a112005-12-06 19:59:18 +00004648 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 +00004649 break
4650 fi
4651 done
4652 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004653 echo "$as_me:$LINENO: result: <not found>" >&5
4654echo "${ECHO_T}<not found>" >&6
4655 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4656echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004657 tcllib=`echo $tclinc | sed s/include/lib/g`
4658 for ext in .so .a ; do
4659 for ver in "" $tclver ; do
4660 for try in $tcllib ; do
4661 trylib=tcl$ver$ext
4662 if test -f $try/lib$trylib ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004663 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4664echo "${ECHO_T}$try/lib$trylib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004665 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4666 if test "`(uname) 2>/dev/null`" = SunOS &&
4667 uname -r | grep '^5' >/dev/null; then
4668 TCL_LIBS="$TCL_LIBS -R $try"
4669 fi
4670 break 3
4671 fi
4672 done
4673 done
4674 done
4675 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004676 echo "$as_me:$LINENO: result: <not found>" >&5
4677echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004678 SKIP_TCL=YES
4679 fi
4680 fi
4681 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004682 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004683#define FEAT_TCL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004684_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004685
4686 TCL_SRC=if_tcl.c
4687 TCL_OBJ=objects/if_tcl.o
4688 TCL_PRO=if_tcl.pro
4689 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4690 fi
4691 fi
4692 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004693 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4694echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004695 fi
4696 fi
4697fi
4698
4699
4700
4701
4702
4703
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004704echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4705echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004706# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4707if test "${enable_rubyinterp+set}" = set; then
4708 enableval="$enable_rubyinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004709
Bram Moolenaar071d4272004-06-13 20:20:40 +00004710else
4711 enable_rubyinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004712fi;
4713echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4714echo "${ECHO_T}$enable_rubyinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004715if test "$enable_rubyinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004716
Bram Moolenaar071d4272004-06-13 20:20:40 +00004717 # Extract the first word of "ruby", so it can be a program name with args.
4718set dummy ruby; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004719echo "$as_me:$LINENO: checking for $ac_word" >&5
4720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4721if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004723else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004724 case $vi_cv_path_ruby in
4725 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004726 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4727 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004728 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4736 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4739 fi
4740done
4741done
4742
Bram Moolenaar071d4272004-06-13 20:20:40 +00004743 ;;
4744esac
4745fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004746vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4747
Bram Moolenaar071d4272004-06-13 20:20:40 +00004748if test -n "$vi_cv_path_ruby"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004749 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4750echo "${ECHO_T}$vi_cv_path_ruby" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004751else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004752 echo "$as_me:$LINENO: result: no" >&5
4753echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004754fi
4755
4756 if test "X$vi_cv_path_ruby" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004757 echo "$as_me:$LINENO: checking Ruby version" >&5
4758echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
Bram Moolenaar0cb032e2005-04-23 20:52:00 +00004759 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 +00004760 echo "$as_me:$LINENO: result: OK" >&5
4761echo "${ECHO_T}OK" >&6
4762 echo "$as_me:$LINENO: checking Ruby header files" >&5
4763echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004764 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4765 if test "X$rubyhdrdir" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004766 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4767echo "${ECHO_T}$rubyhdrdir" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004768 RUBY_CFLAGS="-I$rubyhdrdir"
4769 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4770 if test "X$rubylibs" != "X"; then
4771 RUBY_LIBS="$rubylibs"
4772 fi
4773 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4774 if test -f "$rubyhdrdir/$librubyarg"; then
4775 librubyarg="$rubyhdrdir/$librubyarg"
4776 else
4777 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4778 if test -f "$rubylibdir/$librubyarg"; then
4779 librubyarg="$rubylibdir/$librubyarg"
4780 elif test "$librubyarg" = "libruby.a"; then
4781 librubyarg="-lruby"
4782 else
4783 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4784 fi
4785 fi
4786
4787 if test "X$librubyarg" != "X"; then
4788 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4789 fi
4790 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4791 if test "X$rubyldflags" != "X"; then
4792 LDFLAGS="$rubyldflags $LDFLAGS"
4793 fi
4794 RUBY_SRC="if_ruby.c"
4795 RUBY_OBJ="objects/if_ruby.o"
4796 RUBY_PRO="if_ruby.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004797 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004798#define FEAT_RUBY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004799_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004800
4801 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004802 echo "$as_me:$LINENO: result: not found" >&5
4803echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004804 fi
4805 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004806 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4807echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004808 fi
4809 fi
4810fi
4811
4812
4813
4814
4815
4816
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004817echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4818echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004819# Check whether --enable-cscope or --disable-cscope was given.
4820if test "${enable_cscope+set}" = set; then
4821 enableval="$enable_cscope"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004822
Bram Moolenaar071d4272004-06-13 20:20:40 +00004823else
4824 enable_cscope="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004825fi;
4826echo "$as_me:$LINENO: result: $enable_cscope" >&5
4827echo "${ECHO_T}$enable_cscope" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004828if test "$enable_cscope" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004829 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004830#define FEAT_CSCOPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004831_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004832
4833fi
4834
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004835echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4836echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004837# Check whether --enable-workshop or --disable-workshop was given.
4838if test "${enable_workshop+set}" = set; then
4839 enableval="$enable_workshop"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004840
Bram Moolenaar071d4272004-06-13 20:20:40 +00004841else
4842 enable_workshop="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004843fi;
4844echo "$as_me:$LINENO: result: $enable_workshop" >&5
4845echo "${ECHO_T}$enable_workshop" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004846if test "$enable_workshop" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004847 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004848#define FEAT_SUN_WORKSHOP 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004849_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004850
4851 WORKSHOP_SRC="workshop.c integration.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004852
Bram Moolenaar071d4272004-06-13 20:20:40 +00004853 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004854
Bram Moolenaar071d4272004-06-13 20:20:40 +00004855 if test "${enable_gui-xxx}" = xxx; then
4856 enable_gui=motif
4857 fi
4858fi
4859
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004860echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4861echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004862# Check whether --enable-netbeans or --disable-netbeans was given.
4863if test "${enable_netbeans+set}" = set; then
4864 enableval="$enable_netbeans"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004865
Bram Moolenaar071d4272004-06-13 20:20:40 +00004866else
4867 enable_netbeans="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004868fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004869if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004870 echo "$as_me:$LINENO: result: no" >&5
4871echo "${ECHO_T}no" >&6
4872
4873echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4874echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4875if test "${ac_cv_lib_socket_socket+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004877else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004878 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004879LIBS="-lsocket $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004880cat >conftest.$ac_ext <<_ACEOF
4881/* confdefs.h. */
4882_ACEOF
4883cat confdefs.h >>conftest.$ac_ext
4884cat >>conftest.$ac_ext <<_ACEOF
4885/* end confdefs.h. */
4886
Bram Moolenaar071d4272004-06-13 20:20:40 +00004887/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004888#ifdef __cplusplus
4889extern "C"
4890#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004891/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004892 builtin and then its argument prototype would still apply. */
4893char socket ();
4894int
4895main ()
4896{
4897socket ();
4898 ;
4899 return 0;
4900}
4901_ACEOF
4902rm -f conftest.$ac_objext conftest$ac_exeext
4903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4904 (eval $ac_link) 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest$ac_exeext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_cv_lib_socket_socket=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004925else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004926 echo "$as_me: failed program was:" >&5
4927sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004928
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004929ac_cv_lib_socket_socket=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004930fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004931rm -f conftest.err conftest.$ac_objext \
4932 conftest$ac_exeext conftest.$ac_ext
4933LIBS=$ac_check_lib_save_LIBS
4934fi
4935echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4936echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4937if test $ac_cv_lib_socket_socket = yes; then
4938 cat >>confdefs.h <<_ACEOF
4939#define HAVE_LIBSOCKET 1
4940_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004941
4942 LIBS="-lsocket $LIBS"
4943
Bram Moolenaar071d4272004-06-13 20:20:40 +00004944fi
4945
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004946
4947echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4948echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4949if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004951else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004952 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004953LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004954cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960
Bram Moolenaar071d4272004-06-13 20:20:40 +00004961/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004962#ifdef __cplusplus
4963extern "C"
4964#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004965/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004966 builtin and then its argument prototype would still apply. */
4967char gethostbyname ();
4968int
4969main ()
4970{
4971gethostbyname ();
4972 ;
4973 return 0;
4974}
4975_ACEOF
4976rm -f conftest.$ac_objext conftest$ac_exeext
4977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4978 (eval $ac_link) 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } &&
4985 { ac_try='test -z "$ac_c_werror_flag"
4986 || test ! -s conftest.err'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; } &&
4992 { ac_try='test -s conftest$ac_exeext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004999else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005000 echo "$as_me: failed program was:" >&5
5001sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005002
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005003ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005004fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005005rm -f conftest.err conftest.$ac_objext \
5006 conftest$ac_exeext conftest.$ac_ext
5007LIBS=$ac_check_lib_save_LIBS
5008fi
5009echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5010echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5011if test $ac_cv_lib_nsl_gethostbyname = yes; then
5012 cat >>confdefs.h <<_ACEOF
5013#define HAVE_LIBNSL 1
5014_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005015
5016 LIBS="-lnsl $LIBS"
5017
Bram Moolenaar071d4272004-06-13 20:20:40 +00005018fi
5019
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005020 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5021echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5022 cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h. */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005028
5029#include <stdio.h>
5030#include <stdlib.h>
5031#include <stdarg.h>
5032#include <fcntl.h>
5033#include <netdb.h>
5034#include <netinet/in.h>
5035#include <errno.h>
5036#include <sys/types.h>
5037#include <sys/socket.h>
5038 /* Check bitfields */
5039 struct nbbuf {
5040 unsigned int initDone:1;
5041 ushort signmaplen;
5042 };
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005043
5044int
5045main ()
5046{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005047
5048 /* Check creating a socket. */
5049 struct sockaddr_in server;
5050 (void)socket(AF_INET, SOCK_STREAM, 0);
5051 (void)htons(100);
5052 (void)gethostbyname("microsoft.com");
5053 if (errno == ECONNREFUSED)
5054 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005055
5056 ;
5057 return 0;
5058}
5059_ACEOF
5060rm -f conftest.$ac_objext conftest$ac_exeext
5061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062 (eval $ac_link) 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -z "$ac_c_werror_flag"
5070 || test ! -s conftest.err'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try='test -s conftest$ac_exeext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 echo "$as_me:$LINENO: result: yes" >&5
5083echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005084else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005085 echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
5088echo "$as_me:$LINENO: result: no" >&5
5089echo "${ECHO_T}no" >&6; enable_netbeans="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005090fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005091rm -f conftest.err conftest.$ac_objext \
5092 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005093else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005094 echo "$as_me:$LINENO: result: yes" >&5
5095echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005096fi
5097if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005098 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005099#define FEAT_NETBEANS_INTG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005100_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005101
5102 NETBEANS_SRC="netbeans.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005103
Bram Moolenaar071d4272004-06-13 20:20:40 +00005104 NETBEANS_OBJ="objects/netbeans.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005105
Bram Moolenaar071d4272004-06-13 20:20:40 +00005106fi
5107
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005108echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5109echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005110# Check whether --enable-sniff or --disable-sniff was given.
5111if test "${enable_sniff+set}" = set; then
5112 enableval="$enable_sniff"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005113
Bram Moolenaar071d4272004-06-13 20:20:40 +00005114else
5115 enable_sniff="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005116fi;
5117echo "$as_me:$LINENO: result: $enable_sniff" >&5
5118echo "${ECHO_T}$enable_sniff" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005119if test "$enable_sniff" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005120 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005121#define FEAT_SNIFF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005122_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005123
5124 SNIFF_SRC="if_sniff.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005125
Bram Moolenaar071d4272004-06-13 20:20:40 +00005126 SNIFF_OBJ="objects/if_sniff.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005127
Bram Moolenaar071d4272004-06-13 20:20:40 +00005128fi
5129
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005130echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5131echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005132# Check whether --enable-multibyte or --disable-multibyte was given.
5133if test "${enable_multibyte+set}" = set; then
5134 enableval="$enable_multibyte"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005135
Bram Moolenaar071d4272004-06-13 20:20:40 +00005136else
5137 enable_multibyte="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005138fi;
5139echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5140echo "${ECHO_T}$enable_multibyte" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005141if test "$enable_multibyte" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005142 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005143#define FEAT_MBYTE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005144_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005145
5146fi
5147
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005148echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5149echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005150# Check whether --enable-hangulinput or --disable-hangulinput was given.
5151if test "${enable_hangulinput+set}" = set; then
5152 enableval="$enable_hangulinput"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005153
Bram Moolenaar071d4272004-06-13 20:20:40 +00005154else
5155 enable_hangulinput="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005156fi;
5157echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5158echo "${ECHO_T}$enable_hangulinput" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005159
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005160echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5161echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005162# Check whether --enable-xim or --disable-xim was given.
5163if test "${enable_xim+set}" = set; then
5164 enableval="$enable_xim"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005165 echo "$as_me:$LINENO: result: $enable_xim" >&5
5166echo "${ECHO_T}$enable_xim" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005167else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005168 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5169echo "${ECHO_T}defaulting to auto" >&6
5170fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005171
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005172echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5173echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005174# Check whether --enable-fontset or --disable-fontset was given.
5175if test "${enable_fontset+set}" = set; then
5176 enableval="$enable_fontset"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005177
Bram Moolenaar071d4272004-06-13 20:20:40 +00005178else
5179 enable_fontset="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005180fi;
5181echo "$as_me:$LINENO: result: $enable_fontset" >&5
5182echo "${ECHO_T}$enable_fontset" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005183
5184test -z "$with_x" && with_x=yes
5185test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5186if test "$with_x" = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005187 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5188echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005189else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005190
Bram Moolenaar071d4272004-06-13 20:20:40 +00005191 # Extract the first word of "xmkmf", so it can be a program name with args.
5192set dummy xmkmf; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005193echo "$as_me:$LINENO: checking for $ac_word" >&5
5194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195if test "${ac_cv_path_xmkmfpath+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005197else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005198 case $xmkmfpath in
5199 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005200 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5201 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005202 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214done
5215done
5216
Bram Moolenaar071d4272004-06-13 20:20:40 +00005217 ;;
5218esac
5219fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005220xmkmfpath=$ac_cv_path_xmkmfpath
5221
Bram Moolenaar071d4272004-06-13 20:20:40 +00005222if test -n "$xmkmfpath"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005223 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5224echo "${ECHO_T}$xmkmfpath" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005225else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005228fi
5229
5230
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005231 echo "$as_me:$LINENO: checking for X" >&5
5232echo $ECHO_N "checking for X... $ECHO_C" >&6
5233
Bram Moolenaar071d4272004-06-13 20:20:40 +00005234
5235# Check whether --with-x or --without-x was given.
5236if test "${with_x+set}" = set; then
5237 withval="$with_x"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005238
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005239fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005240# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5241if test "x$with_x" = xno; then
5242 # The user explicitly disabled X.
5243 have_x=disabled
5244else
5245 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5246 # Both variables are already set.
5247 have_x=yes
5248 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005249 if test "${ac_cv_have_x+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005251else
5252 # One or both of the vars are not set, and there is no cached value.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005253ac_x_includes=no ac_x_libraries=no
5254rm -fr conftest.dir
5255if mkdir conftest.dir; then
5256 cd conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005257 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005258 cat >Imakefile <<'_ACEOF'
Bram Moolenaar071d4272004-06-13 20:20:40 +00005259acfindx:
5260 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005261_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005262 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5263 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5264 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5265 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5266 for ac_extension in a so sl; do
5267 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005268 test -f $ac_im_libdir/libX11.$ac_extension; then
5269 ac_im_usrlibdir=$ac_im_libdir; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00005270 fi
5271 done
5272 # Screen out bogus values from the imake configuration. They are
5273 # bogus both because they are the default anyway, and because
5274 # using them would break gcc on systems where it needs fixed includes.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005275 case $ac_im_incroot in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005276 /usr/include) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005277 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005278 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005279 case $ac_im_usrlibdir in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005280 /usr/lib | /lib) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005281 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005282 esac
5283 fi
5284 cd ..
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005285 rm -fr conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005286fi
5287
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005288# Standard set of common directories for X headers.
5289# Check X11 before X11Rn because it is often a symlink to the current release.
5290ac_x_header_dirs='
5291/usr/X11/include
5292/usr/X11R6/include
5293/usr/X11R5/include
5294/usr/X11R4/include
Bram Moolenaar071d4272004-06-13 20:20:40 +00005295
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005296/usr/include/X11
5297/usr/include/X11R6
5298/usr/include/X11R5
5299/usr/include/X11R4
5300
5301/usr/local/X11/include
5302/usr/local/X11R6/include
5303/usr/local/X11R5/include
5304/usr/local/X11R4/include
5305
5306/usr/local/include/X11
5307/usr/local/include/X11R6
5308/usr/local/include/X11R5
5309/usr/local/include/X11R4
5310
5311/usr/X386/include
5312/usr/x386/include
5313/usr/XFree86/include/X11
5314
5315/usr/include
5316/usr/local/include
5317/usr/unsupported/include
5318/usr/athena/include
5319/usr/local/x11r5/include
5320/usr/lpp/Xamples/include
5321
5322/usr/openwin/include
5323/usr/openwin/share/include'
5324
5325if test "$ac_x_includes" = no; then
5326 # Guess where to find include files, by looking for Intrinsic.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005327 # First, try using that file with no special directory specified.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005328 cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h. */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
5333/* end confdefs.h. */
5334#include <X11/Intrinsic.h>
5335_ACEOF
5336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } >/dev/null; then
5344 if test -s conftest.err; then
5345 ac_cpp_err=$ac_c_preproc_warn_flag
5346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5347 else
5348 ac_cpp_err=
5349 fi
5350else
5351 ac_cpp_err=yes
5352fi
5353if test -z "$ac_cpp_err"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005354 # We can compile using X headers with no special include directory.
5355ac_x_includes=
5356else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005357 echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 for ac_dir in $ac_x_header_dirs; do
5361 if test -r "$ac_dir/X11/Intrinsic.h"; then
5362 ac_x_includes=$ac_dir
5363 break
5364 fi
5365done
Bram Moolenaar071d4272004-06-13 20:20:40 +00005366fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005367rm -f conftest.err conftest.$ac_ext
5368fi # $ac_x_includes = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005369
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005370if test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005371 # Check for the libraries.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005372 # See if we find them without any special options.
5373 # Don't add to $LIBS permanently.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005374 ac_save_LIBS=$LIBS
5375 LIBS="-lXt $LIBS"
5376 cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h. */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h. */
5382#include <X11/Intrinsic.h>
5383int
5384main ()
5385{
5386XtMalloc (0)
5387 ;
5388 return 0;
5389}
5390_ACEOF
5391rm -f conftest.$ac_objext conftest$ac_exeext
5392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5393 (eval $ac_link) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag"
5401 || test ! -s conftest.err'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 (eval $ac_try) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; } &&
5407 { ac_try='test -s conftest$ac_exeext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 LIBS=$ac_save_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005414# We can link X programs with no special library path.
5415ac_x_libraries=
5416else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005417 echo "$as_me: failed program was:" >&5
5418sed 's/^/| /' conftest.$ac_ext >&5
5419
5420LIBS=$ac_save_LIBS
5421for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Bram Moolenaar071d4272004-06-13 20:20:40 +00005422do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005423 # Don't even attempt the hair of trying to link an X program!
Bram Moolenaar071d4272004-06-13 20:20:40 +00005424 for ac_extension in a so sl; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005425 if test -r $ac_dir/libXt.$ac_extension; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005426 ac_x_libraries=$ac_dir
5427 break 2
5428 fi
5429 done
5430done
5431fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005432rm -f conftest.err conftest.$ac_objext \
5433 conftest$ac_exeext conftest.$ac_ext
5434fi # $ac_x_libraries = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005435
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005436if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005437 # Didn't find X anywhere. Cache the known absence of X.
5438 ac_cv_have_x="have_x=no"
5439else
5440 # Record where we found X for the cache.
5441 ac_cv_have_x="have_x=yes \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005442 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005443fi
5444fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005445
Bram Moolenaar071d4272004-06-13 20:20:40 +00005446 fi
5447 eval "$ac_cv_have_x"
5448fi # $with_x != no
5449
5450if test "$have_x" != yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005451 echo "$as_me:$LINENO: result: $have_x" >&5
5452echo "${ECHO_T}$have_x" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005453 no_x=yes
5454else
5455 # If each of the values was on the command line, it overrides each guess.
5456 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5457 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5458 # Update the cache value to reflect the command line values.
5459 ac_cv_have_x="have_x=yes \
5460 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005461 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5462echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005463fi
5464
5465if test "$no_x" = yes; then
5466 # Not all programs may use this symbol, but it does not hurt to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005467
5468cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005469#define X_DISPLAY_MISSING 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005470_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005471
5472 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5473else
5474 if test -n "$x_includes"; then
5475 X_CFLAGS="$X_CFLAGS -I$x_includes"
5476 fi
5477
5478 # It would also be nice to do this for all -L options, not just this one.
5479 if test -n "$x_libraries"; then
5480 X_LIBS="$X_LIBS -L$x_libraries"
5481 # For Solaris; some versions of Sun CC require a space after -R and
5482 # others require no space. Words are not sufficient . . . .
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005483 case `(uname -sr) 2>/dev/null` in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005484 "SunOS 5"*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005485 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5486echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5487 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5488 cat >conftest.$ac_ext <<_ACEOF
5489/* confdefs.h. */
5490_ACEOF
5491cat confdefs.h >>conftest.$ac_ext
5492cat >>conftest.$ac_ext <<_ACEOF
5493/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005494
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005495int
5496main ()
5497{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005498
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005499 ;
5500 return 0;
5501}
5502_ACEOF
5503rm -f conftest.$ac_objext conftest$ac_exeext
5504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5505 (eval $ac_link) 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try='test -s conftest$ac_exeext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005525 ac_R_nospace=yes
5526else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005527 echo "$as_me: failed program was:" >&5
5528sed 's/^/| /' conftest.$ac_ext >&5
5529
5530ac_R_nospace=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005531fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005532rm -f conftest.err conftest.$ac_objext \
5533 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005534 if test $ac_R_nospace = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005535 echo "$as_me:$LINENO: result: no" >&5
5536echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005537 X_LIBS="$X_LIBS -R$x_libraries"
5538 else
5539 LIBS="$ac_xsave_LIBS -R $x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005540 cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h. */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005546
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005547int
5548main ()
5549{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005550
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005551 ;
5552 return 0;
5553}
5554_ACEOF
5555rm -f conftest.$ac_objext conftest$ac_exeext
5556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest$ac_exeext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005577 ac_R_space=yes
5578else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005579 echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
5582ac_R_space=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005583fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005584rm -f conftest.err conftest.$ac_objext \
5585 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005586 if test $ac_R_space = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005587 echo "$as_me:$LINENO: result: yes" >&5
5588echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005589 X_LIBS="$X_LIBS -R $x_libraries"
5590 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005591 echo "$as_me:$LINENO: result: neither works" >&5
5592echo "${ECHO_T}neither works" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005593 fi
5594 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005595 LIBS=$ac_xsave_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005596 esac
5597 fi
5598
5599 # Check for system-dependent libraries X programs must link with.
5600 # Do this before checking for the system-independent R6 libraries
5601 # (-lICE), since we may need -lsocket or whatever for X linking.
5602
5603 if test "$ISC" = yes; then
5604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5605 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005606 # Martyn Johnson says this is needed for Ultrix, if the X
5607 # libraries were built with DECnet support. And Karl Berry says
Bram Moolenaar071d4272004-06-13 20:20:40 +00005608 # the Alpha needs dnet_stub (dnet does not exist).
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005609 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5610 cat >conftest.$ac_ext <<_ACEOF
5611/* confdefs.h. */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h. */
5616
Bram Moolenaar071d4272004-06-13 20:20:40 +00005617/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005618#ifdef __cplusplus
5619extern "C"
5620#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005621/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005622 builtin and then its argument prototype would still apply. */
5623char XOpenDisplay ();
5624int
5625main ()
5626{
5627XOpenDisplay ();
5628 ;
5629 return 0;
5630}
5631_ACEOF
5632rm -f conftest.$ac_objext conftest$ac_exeext
5633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5634 (eval $ac_link) 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_c_werror_flag"
5642 || test ! -s conftest.err'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; } &&
5648 { ac_try='test -s conftest$ac_exeext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00005655else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005656 echo "$as_me: failed program was:" >&5
5657sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005658
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005659echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5660echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5661if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664 ac_check_lib_save_LIBS=$LIBS
5665LIBS="-ldnet $LIBS"
5666cat >conftest.$ac_ext <<_ACEOF
5667/* confdefs.h. */
5668_ACEOF
5669cat confdefs.h >>conftest.$ac_ext
5670cat >>conftest.$ac_ext <<_ACEOF
5671/* end confdefs.h. */
5672
5673/* Override any gcc2 internal prototype to avoid an error. */
5674#ifdef __cplusplus
5675extern "C"
5676#endif
5677/* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5679char dnet_ntoa ();
5680int
5681main ()
5682{
5683dnet_ntoa ();
5684 ;
5685 return 0;
5686}
5687_ACEOF
5688rm -f conftest.$ac_objext conftest$ac_exeext
5689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_c_werror_flag"
5698 || test ! -s conftest.err'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 (eval $ac_try) 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; } &&
5704 { ac_try='test -s conftest$ac_exeext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 (eval $ac_try) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5710 ac_cv_lib_dnet_dnet_ntoa=yes
5711else
5712 echo "$as_me: failed program was:" >&5
5713sed 's/^/| /' conftest.$ac_ext >&5
5714
5715ac_cv_lib_dnet_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005716fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005717rm -f conftest.err conftest.$ac_objext \
5718 conftest$ac_exeext conftest.$ac_ext
5719LIBS=$ac_check_lib_save_LIBS
5720fi
5721echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5722echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5723if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005724 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005725fi
5726
5727 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005728 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5729echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5730if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005732else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005733 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005734LIBS="-ldnet_stub $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005735cat >conftest.$ac_ext <<_ACEOF
5736/* confdefs.h. */
5737_ACEOF
5738cat confdefs.h >>conftest.$ac_ext
5739cat >>conftest.$ac_ext <<_ACEOF
5740/* end confdefs.h. */
5741
Bram Moolenaar071d4272004-06-13 20:20:40 +00005742/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005743#ifdef __cplusplus
5744extern "C"
5745#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005746/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005747 builtin and then its argument prototype would still apply. */
5748char dnet_ntoa ();
5749int
5750main ()
5751{
5752dnet_ntoa ();
5753 ;
5754 return 0;
5755}
5756_ACEOF
5757rm -f conftest.$ac_objext conftest$ac_exeext
5758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest$ac_exeext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005780else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005781 echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005783
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005784ac_cv_lib_dnet_stub_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005785fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005786rm -f conftest.err conftest.$ac_objext \
5787 conftest$ac_exeext conftest.$ac_ext
5788LIBS=$ac_check_lib_save_LIBS
5789fi
5790echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5791echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5792if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005793 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005794fi
5795
5796 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005797fi
5798rm -f conftest.err conftest.$ac_objext \
5799 conftest$ac_exeext conftest.$ac_ext
5800 LIBS="$ac_xsave_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005801
5802 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5803 # to get the SysV transport functions.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005804 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005805 # needs -lnsl.
5806 # The nsl library prevents programs from opening the X display
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005807 # on Irix 5.2, according to T.E. Dickey.
5808 # The functions gethostbyname, getservbyname, and inet_addr are
5809 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5810 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5811echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5812if test "${ac_cv_func_gethostbyname+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005814else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005815 cat >conftest.$ac_ext <<_ACEOF
5816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
5821/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5823#define gethostbyname innocuous_gethostbyname
5824
Bram Moolenaar071d4272004-06-13 20:20:40 +00005825/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005826 which can conflict with char gethostbyname (); below.
5827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5828 <limits.h> exists even on freestanding compilers. */
5829
5830#ifdef __STDC__
5831# include <limits.h>
5832#else
5833# include <assert.h>
5834#endif
5835
5836#undef gethostbyname
5837
Bram Moolenaar071d4272004-06-13 20:20:40 +00005838/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005839#ifdef __cplusplus
5840extern "C"
5841{
5842#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005843/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005844 builtin and then its argument prototype would still apply. */
5845char gethostbyname ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005846/* The GNU C library defines this for functions which it implements
5847 to always fail with ENOSYS. Some functions are actually named
5848 something starting with __ and the normal name is an alias. */
5849#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5850choke me
5851#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005852char (*f) () = gethostbyname;
5853#endif
5854#ifdef __cplusplus
5855}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005856#endif
5857
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005858int
5859main ()
5860{
5861return f != gethostbyname;
5862 ;
5863 return 0;
5864}
5865_ACEOF
5866rm -f conftest.$ac_objext conftest$ac_exeext
5867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5868 (eval $ac_link) 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest$ac_exeext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_func_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005889else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005890 echo "$as_me: failed program was:" >&5
5891sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005892
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005893ac_cv_func_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005894fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005895rm -f conftest.err conftest.$ac_objext \
5896 conftest$ac_exeext conftest.$ac_ext
5897fi
5898echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5899echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005900
5901 if test $ac_cv_func_gethostbyname = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005902 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5903echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5904if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005906else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005907 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005908LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005909cat >conftest.$ac_ext <<_ACEOF
5910/* confdefs.h. */
5911_ACEOF
5912cat confdefs.h >>conftest.$ac_ext
5913cat >>conftest.$ac_ext <<_ACEOF
5914/* end confdefs.h. */
5915
Bram Moolenaar071d4272004-06-13 20:20:40 +00005916/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005917#ifdef __cplusplus
5918extern "C"
5919#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005920/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005921 builtin and then its argument prototype would still apply. */
5922char gethostbyname ();
5923int
5924main ()
5925{
5926gethostbyname ();
5927 ;
5928 return 0;
5929}
5930_ACEOF
5931rm -f conftest.$ac_objext conftest$ac_exeext
5932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5933 (eval $ac_link) 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_c_werror_flag"
5941 || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try='test -s conftest$ac_exeext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005954else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005955 echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005957
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005958ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005959fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005960rm -f conftest.err conftest.$ac_objext \
5961 conftest$ac_exeext conftest.$ac_ext
5962LIBS=$ac_check_lib_save_LIBS
5963fi
5964echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5965echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5966if test $ac_cv_lib_nsl_gethostbyname = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005967 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005968fi
5969
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005970 if test $ac_cv_lib_nsl_gethostbyname = no; then
5971 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5972echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5973if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976 ac_check_lib_save_LIBS=$LIBS
5977LIBS="-lbsd $LIBS"
5978cat >conftest.$ac_ext <<_ACEOF
5979/* confdefs.h. */
5980_ACEOF
5981cat confdefs.h >>conftest.$ac_ext
5982cat >>conftest.$ac_ext <<_ACEOF
5983/* end confdefs.h. */
5984
5985/* Override any gcc2 internal prototype to avoid an error. */
5986#ifdef __cplusplus
5987extern "C"
5988#endif
5989/* We use char because int might match the return type of a gcc2
5990 builtin and then its argument prototype would still apply. */
5991char gethostbyname ();
5992int
5993main ()
5994{
5995gethostbyname ();
5996 ;
5997 return 0;
5998}
5999_ACEOF
6000rm -f conftest.$ac_objext conftest$ac_exeext
6001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002 (eval $ac_link) 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_c_werror_flag"
6010 || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_lib_bsd_gethostbyname=yes
6023else
6024 echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
6027ac_cv_lib_bsd_gethostbyname=no
6028fi
6029rm -f conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6031LIBS=$ac_check_lib_save_LIBS
6032fi
6033echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6034echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6035if test $ac_cv_lib_bsd_gethostbyname = yes; then
6036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6037fi
6038
6039 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00006040 fi
6041
6042 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6043 # socket/setsockopt and other routines are undefined under SCO ODT
6044 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006045 # on later versions), says Simon Leinen: it contains gethostby*
6046 # variants that don't use the name server (or something). -lsocket
6047 # must be given before -lnsl if both are needed. We assume that
6048 # if connect needs -lnsl, so does gethostbyname.
6049 echo "$as_me:$LINENO: checking for connect" >&5
6050echo $ECHO_N "checking for connect... $ECHO_C" >&6
6051if test "${ac_cv_func_connect+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006053else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006054 cat >conftest.$ac_ext <<_ACEOF
6055/* confdefs.h. */
6056_ACEOF
6057cat confdefs.h >>conftest.$ac_ext
6058cat >>conftest.$ac_ext <<_ACEOF
6059/* end confdefs.h. */
6060/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6062#define connect innocuous_connect
6063
Bram Moolenaar071d4272004-06-13 20:20:40 +00006064/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006065 which can conflict with char connect (); below.
6066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6067 <limits.h> exists even on freestanding compilers. */
6068
6069#ifdef __STDC__
6070# include <limits.h>
6071#else
6072# include <assert.h>
6073#endif
6074
6075#undef connect
6076
Bram Moolenaar071d4272004-06-13 20:20:40 +00006077/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006078#ifdef __cplusplus
6079extern "C"
6080{
6081#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006082/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006083 builtin and then its argument prototype would still apply. */
6084char connect ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006085/* The GNU C library defines this for functions which it implements
6086 to always fail with ENOSYS. Some functions are actually named
6087 something starting with __ and the normal name is an alias. */
6088#if defined (__stub_connect) || defined (__stub___connect)
6089choke me
6090#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006091char (*f) () = connect;
6092#endif
6093#ifdef __cplusplus
6094}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006095#endif
6096
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006097int
6098main ()
6099{
6100return f != connect;
6101 ;
6102 return 0;
6103}
6104_ACEOF
6105rm -f conftest.$ac_objext conftest$ac_exeext
6106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107 (eval $ac_link) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest$ac_exeext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_func_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006128else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006129 echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006131
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006132ac_cv_func_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006133fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006134rm -f conftest.err conftest.$ac_objext \
6135 conftest$ac_exeext conftest.$ac_ext
6136fi
6137echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6138echo "${ECHO_T}$ac_cv_func_connect" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006139
6140 if test $ac_cv_func_connect = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006141 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6142echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6143if test "${ac_cv_lib_socket_connect+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006145else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006146 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006147LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006148cat >conftest.$ac_ext <<_ACEOF
6149/* confdefs.h. */
6150_ACEOF
6151cat confdefs.h >>conftest.$ac_ext
6152cat >>conftest.$ac_ext <<_ACEOF
6153/* end confdefs.h. */
6154
Bram Moolenaar071d4272004-06-13 20:20:40 +00006155/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006156#ifdef __cplusplus
6157extern "C"
6158#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006159/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006160 builtin and then its argument prototype would still apply. */
6161char connect ();
6162int
6163main ()
6164{
6165connect ();
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170rm -f conftest.$ac_objext conftest$ac_exeext
6171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_c_werror_flag"
6180 || test ! -s conftest.err'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest$ac_exeext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 ac_cv_lib_socket_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006193else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006194 echo "$as_me: failed program was:" >&5
6195sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006196
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006197ac_cv_lib_socket_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006198fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006199rm -f conftest.err conftest.$ac_objext \
6200 conftest$ac_exeext conftest.$ac_ext
6201LIBS=$ac_check_lib_save_LIBS
6202fi
6203echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6204echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6205if test $ac_cv_lib_socket_connect = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006206 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006207fi
6208
6209 fi
6210
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006211 # Guillermo Gomez says -lposix is necessary on A/UX.
6212 echo "$as_me:$LINENO: checking for remove" >&5
6213echo $ECHO_N "checking for remove... $ECHO_C" >&6
6214if test "${ac_cv_func_remove+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006216else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006217 cat >conftest.$ac_ext <<_ACEOF
6218/* confdefs.h. */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h. */
6223/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6225#define remove innocuous_remove
6226
Bram Moolenaar071d4272004-06-13 20:20:40 +00006227/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006228 which can conflict with char remove (); below.
6229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6230 <limits.h> exists even on freestanding compilers. */
6231
6232#ifdef __STDC__
6233# include <limits.h>
6234#else
6235# include <assert.h>
6236#endif
6237
6238#undef remove
6239
Bram Moolenaar071d4272004-06-13 20:20:40 +00006240/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006241#ifdef __cplusplus
6242extern "C"
6243{
6244#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006245/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006246 builtin and then its argument prototype would still apply. */
6247char remove ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006248/* The GNU C library defines this for functions which it implements
6249 to always fail with ENOSYS. Some functions are actually named
6250 something starting with __ and the normal name is an alias. */
6251#if defined (__stub_remove) || defined (__stub___remove)
6252choke me
6253#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006254char (*f) () = remove;
6255#endif
6256#ifdef __cplusplus
6257}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006258#endif
6259
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006260int
6261main ()
6262{
6263return f != remove;
6264 ;
6265 return 0;
6266}
6267_ACEOF
6268rm -f conftest.$ac_objext conftest$ac_exeext
6269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6270 (eval $ac_link) 2>conftest.er1
6271 ac_status=$?
6272 grep -v '^ *+' conftest.er1 >conftest.err
6273 rm -f conftest.er1
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -z "$ac_c_werror_flag"
6278 || test ! -s conftest.err'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 (eval $ac_try) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; } &&
6284 { ac_try='test -s conftest$ac_exeext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 ac_cv_func_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006291else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006292 echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006294
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006295ac_cv_func_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006296fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006297rm -f conftest.err conftest.$ac_objext \
6298 conftest$ac_exeext conftest.$ac_ext
6299fi
6300echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6301echo "${ECHO_T}$ac_cv_func_remove" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006302
6303 if test $ac_cv_func_remove = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006304 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6305echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6306if test "${ac_cv_lib_posix_remove+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006308else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006309 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006310LIBS="-lposix $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006311cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h. */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
6316/* end confdefs.h. */
6317
Bram Moolenaar071d4272004-06-13 20:20:40 +00006318/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006319#ifdef __cplusplus
6320extern "C"
6321#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006322/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006323 builtin and then its argument prototype would still apply. */
6324char remove ();
6325int
6326main ()
6327{
6328remove ();
6329 ;
6330 return 0;
6331}
6332_ACEOF
6333rm -f conftest.$ac_objext conftest$ac_exeext
6334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest$ac_exeext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_cv_lib_posix_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006356else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006357 echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006359
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006360ac_cv_lib_posix_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006361fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006362rm -f conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext conftest.$ac_ext
6364LIBS=$ac_check_lib_save_LIBS
6365fi
6366echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6367echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6368if test $ac_cv_lib_posix_remove = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006369 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006370fi
6371
6372 fi
6373
6374 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006375 echo "$as_me:$LINENO: checking for shmat" >&5
6376echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6377if test "${ac_cv_func_shmat+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006379else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006380 cat >conftest.$ac_ext <<_ACEOF
6381/* confdefs.h. */
6382_ACEOF
6383cat confdefs.h >>conftest.$ac_ext
6384cat >>conftest.$ac_ext <<_ACEOF
6385/* end confdefs.h. */
6386/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6388#define shmat innocuous_shmat
6389
Bram Moolenaar071d4272004-06-13 20:20:40 +00006390/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006391 which can conflict with char shmat (); below.
6392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6393 <limits.h> exists even on freestanding compilers. */
6394
6395#ifdef __STDC__
6396# include <limits.h>
6397#else
6398# include <assert.h>
6399#endif
6400
6401#undef shmat
6402
Bram Moolenaar071d4272004-06-13 20:20:40 +00006403/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006404#ifdef __cplusplus
6405extern "C"
6406{
6407#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006408/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006409 builtin and then its argument prototype would still apply. */
6410char shmat ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006411/* The GNU C library defines this for functions which it implements
6412 to always fail with ENOSYS. Some functions are actually named
6413 something starting with __ and the normal name is an alias. */
6414#if defined (__stub_shmat) || defined (__stub___shmat)
6415choke me
6416#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006417char (*f) () = shmat;
6418#endif
6419#ifdef __cplusplus
6420}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006421#endif
6422
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006423int
6424main ()
6425{
6426return f != shmat;
6427 ;
6428 return 0;
6429}
6430_ACEOF
6431rm -f conftest.$ac_objext conftest$ac_exeext
6432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433 (eval $ac_link) 2>conftest.er1
6434 ac_status=$?
6435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_c_werror_flag"
6441 || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest$ac_exeext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 (eval $ac_try) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 ac_cv_func_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006454else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006455 echo "$as_me: failed program was:" >&5
6456sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006457
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006458ac_cv_func_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006459fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006460rm -f conftest.err conftest.$ac_objext \
6461 conftest$ac_exeext conftest.$ac_ext
6462fi
6463echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6464echo "${ECHO_T}$ac_cv_func_shmat" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006465
6466 if test $ac_cv_func_shmat = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006467 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6468echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6469if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006471else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006472 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006473LIBS="-lipc $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006474cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h. */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h. */
6480
Bram Moolenaar071d4272004-06-13 20:20:40 +00006481/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006482#ifdef __cplusplus
6483extern "C"
6484#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006485/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006486 builtin and then its argument prototype would still apply. */
6487char shmat ();
6488int
6489main ()
6490{
6491shmat ();
6492 ;
6493 return 0;
6494}
6495_ACEOF
6496rm -f conftest.$ac_objext conftest$ac_exeext
6497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498 (eval $ac_link) 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_c_werror_flag"
6506 || test ! -s conftest.err'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try='test -s conftest$ac_exeext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_cv_lib_ipc_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006519else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006520 echo "$as_me: failed program was:" >&5
6521sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006522
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006523ac_cv_lib_ipc_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006524fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006525rm -f conftest.err conftest.$ac_objext \
6526 conftest$ac_exeext conftest.$ac_ext
6527LIBS=$ac_check_lib_save_LIBS
6528fi
6529echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6530echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6531if test $ac_cv_lib_ipc_shmat = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006532 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006533fi
6534
6535 fi
6536 fi
6537
6538 # Check for libraries that X11R6 Xt/Xaw programs need.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006539 ac_save_LDFLAGS=$LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006540 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6541 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6542 # check for ICE first), but we must link in the order -lSM -lICE or
6543 # we get undefined symbols. So assume we have SM if we have ICE.
6544 # These have to be linked with before -lX11, unlike the other
6545 # libraries we check for below, so use a different variable.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006546 # John Interrante, Karl Berry
6547 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6548echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6549if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006551else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006552 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006553LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006554cat >conftest.$ac_ext <<_ACEOF
6555/* confdefs.h. */
6556_ACEOF
6557cat confdefs.h >>conftest.$ac_ext
6558cat >>conftest.$ac_ext <<_ACEOF
6559/* end confdefs.h. */
6560
Bram Moolenaar071d4272004-06-13 20:20:40 +00006561/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006562#ifdef __cplusplus
6563extern "C"
6564#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006565/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006566 builtin and then its argument prototype would still apply. */
6567char IceConnectionNumber ();
6568int
6569main ()
6570{
6571IceConnectionNumber ();
6572 ;
6573 return 0;
6574}
6575_ACEOF
6576rm -f conftest.$ac_objext conftest$ac_exeext
6577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578 (eval $ac_link) 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag"
6586 || test ! -s conftest.err'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest$ac_exeext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_lib_ICE_IceConnectionNumber=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006599else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006600 echo "$as_me: failed program was:" >&5
6601sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006602
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006603ac_cv_lib_ICE_IceConnectionNumber=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006604fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006605rm -f conftest.err conftest.$ac_objext \
6606 conftest$ac_exeext conftest.$ac_ext
6607LIBS=$ac_check_lib_save_LIBS
6608fi
6609echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6610echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6611if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006612 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006613fi
6614
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006615 LDFLAGS=$ac_save_LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006616
6617fi
6618
6619
6620 if test "$OS390Unix" = "yes"; then
6621 CFLAGS="$CFLAGS -W c,dll"
6622 LDFLAGS="$LDFLAGS -W l,dll"
6623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6624 fi
6625
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006626
Bram Moolenaar071d4272004-06-13 20:20:40 +00006627 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6628 x_libraries=`echo "$x_includes" | sed s/include/lib/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006629 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6630echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006631 X_LIBS="$X_LIBS -L$x_libraries"
6632 if test "`(uname) 2>/dev/null`" = SunOS &&
6633 uname -r | grep '^5' >/dev/null; then
6634 X_LIBS="$X_LIBS -R $x_libraries"
6635 fi
6636 fi
6637
6638 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6639 x_includes=`echo "$x_libraries" | sed s/lib/include/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006640 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6641echo "${ECHO_T}Corrected X includes to $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006642 X_CFLAGS="$X_CFLAGS -I$x_includes"
6643 fi
6644
6645 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6646 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6647 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6648
6649
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006650 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6651echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006652 cflags_save=$CFLAGS
6653 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006654 cat >conftest.$ac_ext <<_ACEOF
6655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006660#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006661int
6662main ()
6663{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006664
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006665 ;
6666 return 0;
6667}
6668_ACEOF
6669rm -f conftest.$ac_objext
6670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671 (eval $ac_compile) 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -z "$ac_c_werror_flag"
6679 || test ! -s conftest.err'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; } &&
6685 { ac_try='test -s conftest.$ac_objext'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6691 echo "$as_me:$LINENO: result: yes" >&5
6692echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006693else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006694 echo "$as_me: failed program was:" >&5
6695sed 's/^/| /' conftest.$ac_ext >&5
6696
6697echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6; no_x=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006699fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006701 CFLAGS=$cflags_save
6702
6703 if test "${no_x-no}" = yes; then
6704 with_x=no
6705 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006706 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006707#define HAVE_X11 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006708_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006709
6710 X_LIB="-lXt -lX11";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006711
Bram Moolenaar071d4272004-06-13 20:20:40 +00006712
6713 ac_save_LDFLAGS="$LDFLAGS"
6714 LDFLAGS="-L$x_libraries $LDFLAGS"
6715
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006716 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6717echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6718if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006720else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006721 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006722LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006723cat >conftest.$ac_ext <<_ACEOF
6724/* confdefs.h. */
6725_ACEOF
6726cat confdefs.h >>conftest.$ac_ext
6727cat >>conftest.$ac_ext <<_ACEOF
6728/* end confdefs.h. */
6729
Bram Moolenaar071d4272004-06-13 20:20:40 +00006730/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006731#ifdef __cplusplus
6732extern "C"
6733#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006734/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006735 builtin and then its argument prototype would still apply. */
6736char _XdmcpAuthDoIt ();
6737int
6738main ()
6739{
6740_XdmcpAuthDoIt ();
6741 ;
6742 return 0;
6743}
6744_ACEOF
6745rm -f conftest.$ac_objext conftest$ac_exeext
6746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6747 (eval $ac_link) 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try='test -z "$ac_c_werror_flag"
6755 || test ! -s conftest.err'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; } &&
6761 { ac_try='test -s conftest$ac_exeext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006768else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006769 echo "$as_me: failed program was:" >&5
6770sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006771
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006772ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006773fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006774rm -f conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6776LIBS=$ac_check_lib_save_LIBS
6777fi
6778echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6779echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6780if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006781 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006782fi
6783
6784
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006785 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6786echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6787if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006789else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006790 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006791LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006792cat >conftest.$ac_ext <<_ACEOF
6793/* confdefs.h. */
6794_ACEOF
6795cat confdefs.h >>conftest.$ac_ext
6796cat >>conftest.$ac_ext <<_ACEOF
6797/* end confdefs.h. */
6798
Bram Moolenaar071d4272004-06-13 20:20:40 +00006799/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006800#ifdef __cplusplus
6801extern "C"
6802#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006803/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006804 builtin and then its argument prototype would still apply. */
6805char IceOpenConnection ();
6806int
6807main ()
6808{
6809IceOpenConnection ();
6810 ;
6811 return 0;
6812}
6813_ACEOF
6814rm -f conftest.$ac_objext conftest$ac_exeext
6815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6816 (eval $ac_link) 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try='test -z "$ac_c_werror_flag"
6824 || test ! -s conftest.err'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest$ac_exeext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 ac_cv_lib_ICE_IceOpenConnection=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006837else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006838 echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006840
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006841ac_cv_lib_ICE_IceOpenConnection=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006842fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006843rm -f conftest.err conftest.$ac_objext \
6844 conftest$ac_exeext conftest.$ac_ext
6845LIBS=$ac_check_lib_save_LIBS
6846fi
6847echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6848echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6849if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006850 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006851fi
6852
6853
6854 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006855 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6856echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6857if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006859else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006860 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006861LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006862cat >conftest.$ac_ext <<_ACEOF
6863/* confdefs.h. */
6864_ACEOF
6865cat confdefs.h >>conftest.$ac_ext
6866cat >>conftest.$ac_ext <<_ACEOF
6867/* end confdefs.h. */
6868
Bram Moolenaar071d4272004-06-13 20:20:40 +00006869/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006870#ifdef __cplusplus
6871extern "C"
6872#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006873/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006874 builtin and then its argument prototype would still apply. */
6875char XpmCreatePixmapFromData ();
6876int
6877main ()
6878{
6879XpmCreatePixmapFromData ();
6880 ;
6881 return 0;
6882}
6883_ACEOF
6884rm -f conftest.$ac_objext conftest$ac_exeext
6885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886 (eval $ac_link) 2>conftest.er1
6887 ac_status=$?
6888 grep -v '^ *+' conftest.er1 >conftest.err
6889 rm -f conftest.er1
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try='test -z "$ac_c_werror_flag"
6894 || test ! -s conftest.err'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 (eval $ac_try) 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; } &&
6900 { ac_try='test -s conftest$ac_exeext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006907else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006908 echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006910
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006911ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006912fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006913rm -f conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
6915LIBS=$ac_check_lib_save_LIBS
6916fi
6917echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6918echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6919if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006920 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006921fi
6922
6923
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006924 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6925echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006926 cflags_save=$CFLAGS
6927 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006928 cat >conftest.$ac_ext <<_ACEOF
6929/* confdefs.h. */
6930_ACEOF
6931cat confdefs.h >>conftest.$ac_ext
6932cat >>conftest.$ac_ext <<_ACEOF
6933/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006934#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006935int
6936main ()
6937{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006938
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006939 ;
6940 return 0;
6941}
6942_ACEOF
6943rm -f conftest.$ac_objext
6944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6945 (eval $ac_compile) 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -z "$ac_c_werror_flag"
6953 || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try='test -s conftest.$ac_objext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006967else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006968 echo "$as_me: failed program was:" >&5
6969sed 's/^/| /' conftest.$ac_ext >&5
6970
6971CFLAGS="$CFLAGS -Wno-implicit-int"
6972 cat >conftest.$ac_ext <<_ACEOF
6973/* confdefs.h. */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006978#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006979int
6980main ()
6981{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006982
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006983 ;
6984 return 0;
6985}
6986_ACEOF
6987rm -f conftest.$ac_objext
6988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6989 (eval $ac_compile) 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -z "$ac_c_werror_flag"
6997 || test ! -s conftest.err'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 (eval $ac_try) 2>&5
7000 ac_status=$?
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; } &&
7003 { ac_try='test -s conftest.$ac_objext'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009 echo "$as_me:$LINENO: result: yes" >&5
7010echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007011else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007012 echo "$as_me: failed program was:" >&5
7013sed 's/^/| /' conftest.$ac_ext >&5
7014
7015echo "$as_me:$LINENO: result: test failed" >&5
7016echo "${ECHO_T}test failed" >&6
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
7020
Bram Moolenaar071d4272004-06-13 20:20:40 +00007021fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00007023 CFLAGS=$cflags_save
7024
7025 LDFLAGS="$ac_save_LDFLAGS"
7026
7027 fi
7028fi
7029
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00007030test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00007031
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007032echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7033echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007034# Check whether --enable-gui or --disable-gui was given.
7035if test "${enable_gui+set}" = set; then
7036 enableval="$enable_gui"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007037
Bram Moolenaar071d4272004-06-13 20:20:40 +00007038else
7039 enable_gui="auto"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007040fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007041
7042enable_gui_canon=`echo "_$enable_gui" | \
7043 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7044
7045SKIP_GTK=YES
7046SKIP_GTK2=YES
7047SKIP_GNOME=YES
7048SKIP_MOTIF=YES
7049SKIP_ATHENA=YES
7050SKIP_NEXTAW=YES
7051SKIP_PHOTON=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00007052SKIP_CARBON=YES
7053GUITYPE=NONE
7054
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007055if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007056 SKIP_PHOTON=
7057 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007058 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7059echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007060 SKIP_PHOTON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007061 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7062echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7063 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7064echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7065 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
7066echo "${ECHO_T}Photon GUI support" >&6 ;;
7067 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7068echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007069 SKIP_PHOTON=YES ;;
7070 esac
7071
7072elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7073 SKIP_CARBON=
7074 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007075 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7076echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007077 SKIP_CARBON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007078 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7079echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7080 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7081echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7082 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7083echo "${ECHO_T}Carbon GUI support" >&6 ;;
7084 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7085echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007086 SKIP_CARBON=YES ;;
7087 esac
7088
7089else
7090
Bram Moolenaar071d4272004-06-13 20:20:40 +00007091 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007092 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
7093echo "${ECHO_T}no GUI support" >&6 ;;
7094 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7095echo "${ECHO_T}yes/auto - automatic GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007096 SKIP_GTK=
7097 SKIP_GTK2=
7098 SKIP_GNOME=
7099 SKIP_MOTIF=
7100 SKIP_ATHENA=
7101 SKIP_NEXTAW=
7102 SKIP_CARBON=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007103 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7104echo "${ECHO_T}GTK+ 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007105 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007106 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7107echo "${ECHO_T}GTK+ 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007108 SKIP_GTK=
7109 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007110 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7111echo "${ECHO_T}GNOME 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007112 SKIP_GNOME=
7113 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007114 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7115echo "${ECHO_T}GNOME 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007116 SKIP_GNOME=
7117 SKIP_GTK=
7118 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007119 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
7120echo "${ECHO_T}Motif GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007121 SKIP_MOTIF=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007122 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7123echo "${ECHO_T}Athena GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007124 SKIP_ATHENA=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007125 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7126echo "${ECHO_T}neXtaw GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007127 SKIP_NEXTAW=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007128 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7129echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007130 esac
7131
7132fi
7133
7134if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007135 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7136echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007137 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7138if test "${enable_gtk_check+set}" = set; then
7139 enableval="$enable_gtk_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007140
Bram Moolenaar071d4272004-06-13 20:20:40 +00007141else
7142 enable_gtk_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007143fi;
7144 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7145echo "${ECHO_T}$enable_gtk_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007146 if test "x$enable_gtk_check" = "xno"; then
7147 SKIP_GTK=YES
7148 SKIP_GNOME=YES
7149 fi
7150fi
7151
7152if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7153 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007154 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7155echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007156 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7157if test "${enable_gtk2_check+set}" = set; then
7158 enableval="$enable_gtk2_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007159
Bram Moolenaar071d4272004-06-13 20:20:40 +00007160else
7161 enable_gtk2_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007162fi;
7163 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7164echo "${ECHO_T}$enable_gtk2_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007165 if test "x$enable_gtk2_check" = "xno"; then
7166 SKIP_GTK2=YES
7167 fi
7168fi
7169
7170if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7171 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007172 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7173echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007174 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7175if test "${enable_gnome_check+set}" = set; then
7176 enableval="$enable_gnome_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007177
Bram Moolenaar071d4272004-06-13 20:20:40 +00007178else
7179 enable_gnome_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007180fi;
7181 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7182echo "${ECHO_T}$enable_gnome_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007183 if test "x$enable_gnome_check" = "xno"; then
7184 SKIP_GNOME=YES
7185 fi
7186fi
7187
7188if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007189 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7190echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007191 # Check whether --enable-motif-check or --disable-motif-check was given.
7192if test "${enable_motif_check+set}" = set; then
7193 enableval="$enable_motif_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007194
Bram Moolenaar071d4272004-06-13 20:20:40 +00007195else
7196 enable_motif_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007197fi;
7198 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7199echo "${ECHO_T}$enable_motif_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007200 if test "x$enable_motif_check" = "xno"; then
7201 SKIP_MOTIF=YES
7202 fi
7203fi
7204
7205if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007206 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7207echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007208 # Check whether --enable-athena-check or --disable-athena-check was given.
7209if test "${enable_athena_check+set}" = set; then
7210 enableval="$enable_athena_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007211
Bram Moolenaar071d4272004-06-13 20:20:40 +00007212else
7213 enable_athena_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007214fi;
7215 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7216echo "${ECHO_T}$enable_athena_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007217 if test "x$enable_athena_check" = "xno"; then
7218 SKIP_ATHENA=YES
7219 fi
7220fi
7221
7222if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007223 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7224echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007225 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7226if test "${enable_nextaw_check+set}" = set; then
7227 enableval="$enable_nextaw_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007228
Bram Moolenaar071d4272004-06-13 20:20:40 +00007229else
7230 enable_nextaw_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007231fi;
7232 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7233echo "${ECHO_T}$enable_nextaw_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007234 if test "x$enable_nextaw_check" = "xno"; then
7235 SKIP_NEXTAW=YES
7236 fi
7237fi
7238
7239if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007240 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7241echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007242 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7243if test "${enable_carbon_check+set}" = set; then
7244 enableval="$enable_carbon_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007245
Bram Moolenaar071d4272004-06-13 20:20:40 +00007246else
7247 enable_carbon_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007248fi;
7249 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7250echo "${ECHO_T}$enable_carbon_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007251 if test "x$enable_carbon_check" = "xno"; then
7252 SKIP_CARBON=YES
7253 fi
7254fi
7255
Bram Moolenaar843ee412004-06-30 16:16:41 +00007256
Bram Moolenaar071d4272004-06-13 20:20:40 +00007257if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007258 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7259echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7260 echo "$as_me:$LINENO: result: yes" >&5
7261echo "${ECHO_T}yes" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007262 GUITYPE=CARBONGUI
Bram Moolenaare344bea2005-09-01 20:46:49 +00007263 if test "$VIMNAME" = "vim"; then
7264 VIMNAME=Vim
7265 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007266 SKIP_GTK=YES;
7267 SKIP_GTK2=YES;
7268 SKIP_GNOME=YES;
7269 SKIP_MOTIF=YES;
7270 SKIP_ATHENA=YES;
7271 SKIP_NEXTAW=YES;
7272 SKIP_PHOTON=YES;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007273 SKIP_CARBON=YES
7274fi
7275
7276
7277
7278
7279
7280
7281
7282
7283
Bram Moolenaar071d4272004-06-13 20:20:40 +00007284if test -z "$SKIP_GTK"; then
7285
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007286 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7287echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7288
7289# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007290if test "${with_gtk_prefix+set}" = set; then
7291 withval="$with_gtk_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007292 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7293echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007294else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007295 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6
7297fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007298
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007299 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7300echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007301
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007302# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007303if test "${with_gtk_exec_prefix+set}" = set; then
7304 withval="$with_gtk_exec_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007305 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7306echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007307else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007308 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7309echo "${ECHO_T}no" >&6
7310fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007311
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007312 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7313echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007314 # Check whether --enable-gtktest or --disable-gtktest was given.
7315if test "${enable_gtktest+set}" = set; then
7316 enableval="$enable_gtktest"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007317
Bram Moolenaar071d4272004-06-13 20:20:40 +00007318else
7319 enable_gtktest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007320fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007321 if test "x$enable_gtktest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007322 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7323echo "${ECHO_T}gtk test enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007324 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007325 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7326echo "${ECHO_T}gtk test disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007327 fi
7328
7329 if test "x$gtk_config_prefix" != "x" ; then
7330 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7331 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7332 fi
7333 if test "x$gtk_config_exec_prefix" != "x" ; then
7334 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7335 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7336 fi
7337 if test "X$GTK_CONFIG" = "X"; then
7338 # Extract the first word of "gtk-config", so it can be a program name with args.
7339set dummy gtk-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007340echo "$as_me:$LINENO: checking for $ac_word" >&5
7341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7342if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007344else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007345 case $GTK_CONFIG in
7346 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007347 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7348 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007349 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362done
7363
Bram Moolenaar071d4272004-06-13 20:20:40 +00007364 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7365 ;;
7366esac
7367fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007368GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7369
Bram Moolenaar071d4272004-06-13 20:20:40 +00007370if test -n "$GTK_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007371 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7372echo "${ECHO_T}$GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007373else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007376fi
7377
7378 if test "X$GTK_CONFIG" = "Xno"; then
7379 # Extract the first word of "gtk12-config", so it can be a program name with args.
7380set dummy gtk12-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007381echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7383if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007385else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007386 case $GTK12_CONFIG in
7387 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007388 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7389 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007390 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402done
7403done
7404
Bram Moolenaar071d4272004-06-13 20:20:40 +00007405 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7406 ;;
7407esac
7408fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007409GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7410
Bram Moolenaar071d4272004-06-13 20:20:40 +00007411if test -n "$GTK12_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007412 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7413echo "${ECHO_T}$GTK12_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007414else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007417fi
7418
7419 GTK_CONFIG="$GTK12_CONFIG"
7420 fi
7421 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007422 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7423echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007424 fi
7425 if test "X$PKG_CONFIG" = "X"; then
7426 # Extract the first word of "pkg-config", so it can be a program name with args.
7427set dummy pkg-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007428echo "$as_me:$LINENO: checking for $ac_word" >&5
7429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007432else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007433 case $PKG_CONFIG in
7434 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7436 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007437 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449done
7450done
7451
Bram Moolenaar071d4272004-06-13 20:20:40 +00007452 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7453 ;;
7454esac
7455fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007456PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7457
Bram Moolenaar071d4272004-06-13 20:20:40 +00007458if test -n "$PKG_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007459 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7460echo "${ECHO_T}$PKG_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007461else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007462 echo "$as_me:$LINENO: result: no" >&5
7463echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007464fi
7465
7466 fi
7467
7468 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7469 if test "X$SKIP_GTK2" != "XYES"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007470
Bram Moolenaar071d4272004-06-13 20:20:40 +00007471 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7472 {
7473 min_gtk_version=2.2.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007474 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7475echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007476 no_gtk=""
7477 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7478 && $PKG_CONFIG --exists gtk+-2.0; then
7479 {
7480 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007481 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007482 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7483 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7484 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7485 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7486 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7487 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7488 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7489 }
7490 elif test "X$GTK_CONFIG" != "Xno"; then
7491 {
7492 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007493 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007494 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7495 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7496 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7497 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7498 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7499 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7500 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7501 }
7502 else
7503 no_gtk=yes
7504 fi
7505
7506 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7507 {
7508 ac_save_CFLAGS="$CFLAGS"
7509 ac_save_LIBS="$LIBS"
7510 CFLAGS="$CFLAGS $GTK_CFLAGS"
7511 LIBS="$LIBS $GTK_LIBS"
7512
7513 rm -f conf.gtktest
7514 if test "$cross_compiling" = yes; then
7515 echo $ac_n "cross compiling; assumed OK... $ac_c"
7516else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007517 cat >conftest.$ac_ext <<_ACEOF
7518/* confdefs.h. */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007523
7524#include <gtk/gtk.h>
7525#include <stdio.h>
7526
7527int
7528main ()
7529{
7530int major, minor, micro;
7531char *tmp_version;
7532
7533system ("touch conf.gtktest");
7534
7535/* HP/UX 9 (%@#!) writes to sscanf strings */
7536tmp_version = g_strdup("$min_gtk_version");
7537if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7538 printf("%s, bad version string\n", "$min_gtk_version");
7539 exit(1);
7540 }
7541
7542if ((gtk_major_version > major) ||
7543 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7544 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7545 (gtk_micro_version >= micro)))
7546{
7547 return 0;
7548}
7549return 1;
7550}
7551
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007552_ACEOF
7553rm -f conftest$ac_exeext
7554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 (eval $ac_try) 2>&5
7561 ac_status=$?
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007564 :
7565else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007566 echo "$as_me: program exited with status $ac_status" >&5
7567echo "$as_me: failed program was:" >&5
7568sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007569
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007570( exit $ac_status )
7571no_gtk=yes
7572fi
7573rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7574fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007575 CFLAGS="$ac_save_CFLAGS"
7576 LIBS="$ac_save_LIBS"
7577 }
7578 fi
7579 if test "x$no_gtk" = x ; then
7580 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007581 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7582echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007583 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007584 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7585echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007586 fi
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007587 GUI_LIB_LOC="$GTK_LIBDIR"
7588 GTK_LIBNAME="$GTK_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007589 GUI_INC_LOC="$GTK_CFLAGS"
7590 else
7591 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007592 echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007594 GTK_CFLAGS=""
7595 GTK_LIBS=""
7596 :
7597 }
7598 fi
7599 }
7600 else
7601 GTK_CFLAGS=""
7602 GTK_LIBS=""
7603 :
7604 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007605
7606
Bram Moolenaar071d4272004-06-13 20:20:40 +00007607 rm -f conf.gtktest
7608
7609 if test "x$GTK_CFLAGS" != "x"; then
7610 SKIP_ATHENA=YES
7611 SKIP_NEXTAW=YES
7612 SKIP_MOTIF=YES
7613 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007614
Bram Moolenaar071d4272004-06-13 20:20:40 +00007615 fi
7616 fi
7617
7618 if test "x$GUITYPE" != "xGTK"; then
7619 SKIP_GTK2=YES
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007620
Bram Moolenaar071d4272004-06-13 20:20:40 +00007621 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7622 {
7623 min_gtk_version=1.1.16
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007624 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7625echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007626 no_gtk=""
7627 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7628 && $PKG_CONFIG --exists gtk+-2.0; then
7629 {
7630 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007631 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007632 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7633 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7634 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7635 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7636 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7637 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7638 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7639 }
7640 elif test "X$GTK_CONFIG" != "Xno"; then
7641 {
7642 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007643 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007644 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7645 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7646 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7647 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7648 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7649 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7650 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7651 }
7652 else
7653 no_gtk=yes
7654 fi
7655
7656 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7657 {
7658 ac_save_CFLAGS="$CFLAGS"
7659 ac_save_LIBS="$LIBS"
7660 CFLAGS="$CFLAGS $GTK_CFLAGS"
7661 LIBS="$LIBS $GTK_LIBS"
7662
7663 rm -f conf.gtktest
7664 if test "$cross_compiling" = yes; then
7665 echo $ac_n "cross compiling; assumed OK... $ac_c"
7666else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007667 cat >conftest.$ac_ext <<_ACEOF
7668/* confdefs.h. */
7669_ACEOF
7670cat confdefs.h >>conftest.$ac_ext
7671cat >>conftest.$ac_ext <<_ACEOF
7672/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007673
7674#include <gtk/gtk.h>
7675#include <stdio.h>
7676
7677int
7678main ()
7679{
7680int major, minor, micro;
7681char *tmp_version;
7682
7683system ("touch conf.gtktest");
7684
7685/* HP/UX 9 (%@#!) writes to sscanf strings */
7686tmp_version = g_strdup("$min_gtk_version");
7687if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7688 printf("%s, bad version string\n", "$min_gtk_version");
7689 exit(1);
7690 }
7691
7692if ((gtk_major_version > major) ||
7693 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7694 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7695 (gtk_micro_version >= micro)))
7696{
7697 return 0;
7698}
7699return 1;
7700}
7701
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007702_ACEOF
7703rm -f conftest$ac_exeext
7704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705 (eval $ac_link) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007714 :
7715else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007716 echo "$as_me: program exited with status $ac_status" >&5
7717echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007719
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007720( exit $ac_status )
7721no_gtk=yes
7722fi
7723rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7724fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007725 CFLAGS="$ac_save_CFLAGS"
7726 LIBS="$ac_save_LIBS"
7727 }
7728 fi
7729 if test "x$no_gtk" = x ; then
7730 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007731 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7732echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007733 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007734 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7735echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007736 fi
7737 GTK_LIBNAME="$GTK_LIBS"
7738 GUI_INC_LOC="$GTK_CFLAGS"
7739 else
7740 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007741 echo "$as_me:$LINENO: result: no" >&5
7742echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007743 GTK_CFLAGS=""
7744 GTK_LIBS=""
7745 :
7746 }
7747 fi
7748 }
7749 else
7750 GTK_CFLAGS=""
7751 GTK_LIBS=""
7752 :
7753 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007754
7755
Bram Moolenaar071d4272004-06-13 20:20:40 +00007756 rm -f conf.gtktest
7757
7758 if test "x$GTK_CFLAGS" != "x"; then
7759 SKIP_ATHENA=YES
7760 SKIP_NEXTAW=YES
7761 SKIP_MOTIF=YES
7762 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007763
Bram Moolenaar071d4272004-06-13 20:20:40 +00007764 fi
7765 fi
7766 fi
7767 if test "x$GUITYPE" = "xGTK"; then
7768 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7769 -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 +00007770 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7771echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007772 else
7773 {
7774 if test "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007775 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007776#define HAVE_GTK2 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007777_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007778
7779 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7780 || test "0$gtk_minor_version" -ge 2 \
7781 || test "0$gtk_major_version" -gt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007782 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007783#define HAVE_GTK_MULTIHEAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007784_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007785
7786 fi
7787 fi
7788 if test -z "$SKIP_GNOME"; then
7789 {
Bram Moolenaar071d4272004-06-13 20:20:40 +00007790
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007791
7792
7793
7794
7795
7796# Check whether --with-gnome-includes or --without-gnome-includes was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007797if test "${with_gnome_includes+set}" = set; then
7798 withval="$with_gnome_includes"
7799 CFLAGS="$CFLAGS -I$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007800
7801fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007802
7803
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007804# Check whether --with-gnome-libs or --without-gnome-libs was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007805if test "${with_gnome_libs+set}" = set; then
7806 withval="$with_gnome_libs"
7807 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007808
7809fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007810
7811
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007812# Check whether --with-gnome or --without-gnome was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007813if test "${with_gnome+set}" = set; then
7814 withval="$with_gnome"
7815 if test x$withval = xyes; then
7816 want_gnome=yes
7817 have_gnome=yes
7818 else
7819 if test "x$withval" = xno; then
7820 want_gnome=no
7821 else
7822 want_gnome=yes
7823 LDFLAGS="$LDFLAGS -L$withval/lib"
7824 CFLAGS="$CFLAGS -I$withval/include"
7825 gnome_prefix=$withval/lib
7826 fi
7827 fi
7828else
7829 want_gnome=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007830fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007831
7832 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7833 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007834 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7835echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007836 if $PKG_CONFIG --exists libgnomeui-2.0; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007837 echo "$as_me:$LINENO: result: yes" >&5
7838echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007839 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7840 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7841 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
Bram Moolenaar97b2ad32006-03-18 21:40:56 +00007842
7843 echo "$as_me:$LINENO: checking for FreeBSD" >&5
7844echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7845 if test "`(uname) 2>/dev/null`" = FreeBSD; then
7846 echo "$as_me:$LINENO: result: yes" >&5
7847echo "${ECHO_T}yes" >&6
7848 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
7849 GNOME_LIBS="$GNOME_LIBS -pthread"
7850 else
7851 echo "$as_me:$LINENO: result: no" >&5
7852echo "${ECHO_T}no" >&6
7853 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007854 have_gnome=yes
7855 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007856 echo "$as_me:$LINENO: result: not found" >&5
7857echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007858 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007859 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7860echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7861 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007862 fi
7863 fi
7864 }
7865 elif test "x$want_gnome" = xyes; then
7866 {
7867 # Extract the first word of "gnome-config", so it can be a program name with args.
7868set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007869echo "$as_me:$LINENO: checking for $ac_word" >&5
7870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7871if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007873else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007874 case $GNOME_CONFIG in
7875 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007876 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7877 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007878 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7889 fi
7890done
7891done
7892
Bram Moolenaar071d4272004-06-13 20:20:40 +00007893 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7894 ;;
7895esac
7896fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007897GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7898
Bram Moolenaar071d4272004-06-13 20:20:40 +00007899if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007900 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7901echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007902else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007903 echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007905fi
7906
7907 if test "$GNOME_CONFIG" = "no"; then
7908 no_gnome_config="yes"
7909 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007910 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7911echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007912 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007913 echo "$as_me:$LINENO: result: yes" >&5
7914echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007915 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7916 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7917 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7918 have_gnome=yes
7919 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007920 echo "$as_me:$LINENO: result: no" >&5
7921echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007922 no_gnome_config="yes"
7923 fi
7924 fi
7925
7926 if test x$exec_prefix = xNONE; then
7927 if test x$prefix = xNONE; then
7928 gnome_prefix=$ac_default_prefix/lib
7929 else
7930 gnome_prefix=$prefix/lib
7931 fi
7932 else
7933 gnome_prefix=`eval echo \`echo $libdir\``
7934 fi
7935
7936 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007937 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7938echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007939 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007940 echo "$as_me:$LINENO: result: found" >&5
7941echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007942 echo "loading gnome configuration from" \
7943 "$gnome_prefix/gnomeConf.sh"
7944 . $gnome_prefix/gnomeConf.sh
7945 have_gnome=yes
7946 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007947 echo "$as_me:$LINENO: result: not found" >&5
7948echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007949 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007950 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7951echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7952 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007953 fi
7954 fi
7955 fi
7956 }
7957 fi
7958
7959 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007960 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007961#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007962_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007963
7964 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7965 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7966 fi
7967 }
7968 fi
7969 }
7970 fi
7971 fi
7972fi
7973
7974
7975if test -z "$SKIP_MOTIF"; then
7976 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"
7977 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7978
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007979 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7980echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007981 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7982 GUI_INC_LOC=
7983 for try in $gui_includes; do
7984 if test -f "$try/Xm/Xm.h"; then
7985 GUI_INC_LOC=$try
7986 fi
7987 done
7988 if test -n "$GUI_INC_LOC"; then
7989 if test "$GUI_INC_LOC" = /usr/include; then
7990 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007991 echo "$as_me:$LINENO: result: in default path" >&5
7992echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007993 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007994 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
7995echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007996 fi
7997 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007998 echo "$as_me:$LINENO: result: <not found>" >&5
7999echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008000 SKIP_MOTIF=YES
8001 fi
8002fi
8003
8004
8005if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008006 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8007echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8008
8009# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008010if test "${with_motif_lib+set}" = set; then
8011 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008012 MOTIF_LIBNAME="${withval}"
8013fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008014
8015 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008016 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8017echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008018 GUI_LIB_LOC=
8019 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008020 echo "$as_me:$LINENO: result: no" >&5
8021echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008022
8023 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8024
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008025 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8026echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008027 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"
8028 GUI_LIB_LOC=
8029 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008030 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00008031 if test -f "$libtry"; then
8032 GUI_LIB_LOC=$try
8033 fi
8034 done
8035 done
8036 if test -n "$GUI_LIB_LOC"; then
8037 if test "$GUI_LIB_LOC" = /usr/lib; then
8038 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008039 echo "$as_me:$LINENO: result: in default path" >&5
8040echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008041 else
8042 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008043 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8044echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008045 if test "`(uname) 2>/dev/null`" = SunOS &&
8046 uname -r | grep '^5' >/dev/null; then
8047 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8048 fi
8049 fi
8050 fi
8051 MOTIF_LIBNAME=-lXm
8052 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008053 echo "$as_me:$LINENO: result: <not found>" >&5
8054echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008055 SKIP_MOTIF=YES
8056 fi
8057 fi
8058fi
8059
8060if test -z "$SKIP_MOTIF"; then
8061 SKIP_ATHENA=YES
8062 SKIP_NEXTAW=YES
8063 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008064
Bram Moolenaar071d4272004-06-13 20:20:40 +00008065fi
8066
8067
8068GUI_X_LIBS=
8069
8070if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008071 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8072echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008073 cflags_save=$CFLAGS
8074 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008075 cat >conftest.$ac_ext <<_ACEOF
8076/* confdefs.h. */
8077_ACEOF
8078cat confdefs.h >>conftest.$ac_ext
8079cat >>conftest.$ac_ext <<_ACEOF
8080/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008081
8082#include <X11/Intrinsic.h>
8083#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008084int
8085main ()
8086{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008087
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008088 ;
8089 return 0;
8090}
8091_ACEOF
8092rm -f conftest.$ac_objext
8093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8094 (eval $ac_compile) 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_c_werror_flag"
8102 || test ! -s conftest.err'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; } &&
8108 { ac_try='test -s conftest.$ac_objext'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 echo "$as_me:$LINENO: result: yes" >&5
8115echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008116else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008117 echo "$as_me: failed program was:" >&5
8118sed 's/^/| /' conftest.$ac_ext >&5
8119
8120echo "$as_me:$LINENO: result: no" >&5
8121echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008122fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008124 CFLAGS=$cflags_save
8125fi
8126
8127if test -z "$SKIP_ATHENA"; then
8128 GUITYPE=ATHENA
8129fi
8130
8131if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008132 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8133echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008134 cflags_save=$CFLAGS
8135 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008136 cat >conftest.$ac_ext <<_ACEOF
8137/* confdefs.h. */
8138_ACEOF
8139cat confdefs.h >>conftest.$ac_ext
8140cat >>conftest.$ac_ext <<_ACEOF
8141/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008142
8143#include <X11/Intrinsic.h>
8144#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008145int
8146main ()
8147{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008148
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008149 ;
8150 return 0;
8151}
8152_ACEOF
8153rm -f conftest.$ac_objext
8154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8155 (eval $ac_compile) 2>conftest.er1
8156 ac_status=$?
8157 grep -v '^ *+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } &&
8162 { ac_try='test -z "$ac_c_werror_flag"
8163 || test ! -s conftest.err'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 (eval $ac_try) 2>&5
8166 ac_status=$?
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; } &&
8169 { ac_try='test -s conftest.$ac_objext'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 (eval $ac_try) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 echo "$as_me:$LINENO: result: yes" >&5
8176echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008177else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008178 echo "$as_me: failed program was:" >&5
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
8181echo "$as_me:$LINENO: result: no" >&5
8182echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008183fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008185 CFLAGS=$cflags_save
8186fi
8187
8188if test -z "$SKIP_NEXTAW"; then
8189 GUITYPE=NEXTAW
8190fi
8191
8192if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8193 if test -n "$GUI_INC_LOC"; then
8194 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8195 fi
8196 if test -n "$GUI_LIB_LOC"; then
8197 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8198 fi
8199
8200 ldflags_save=$LDFLAGS
8201 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008202 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8203echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8204if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008206else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008207 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008208LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008209cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h. */
8215
Bram Moolenaar071d4272004-06-13 20:20:40 +00008216/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008217#ifdef __cplusplus
8218extern "C"
8219#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008220/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008221 builtin and then its argument prototype would still apply. */
8222char XShapeQueryExtension ();
8223int
8224main ()
8225{
8226XShapeQueryExtension ();
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231rm -f conftest.$ac_objext conftest$ac_exeext
8232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8233 (eval $ac_link) 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -z "$ac_c_werror_flag"
8241 || test ! -s conftest.err'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 (eval $ac_try) 2>&5
8244 ac_status=$?
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; } &&
8247 { ac_try='test -s conftest$ac_exeext'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249 (eval $ac_try) 2>&5
8250 ac_status=$?
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008254else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008255 echo "$as_me: failed program was:" >&5
8256sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008257
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008258ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008259fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008260rm -f conftest.err conftest.$ac_objext \
8261 conftest$ac_exeext conftest.$ac_ext
8262LIBS=$ac_check_lib_save_LIBS
8263fi
8264echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8265echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8266if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008267 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008268fi
8269
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008270 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8271echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8272if test "${ac_cv_lib_w_wslen+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008274else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008275 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008276LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008277cat >conftest.$ac_ext <<_ACEOF
8278/* confdefs.h. */
8279_ACEOF
8280cat confdefs.h >>conftest.$ac_ext
8281cat >>conftest.$ac_ext <<_ACEOF
8282/* end confdefs.h. */
8283
Bram Moolenaar071d4272004-06-13 20:20:40 +00008284/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008285#ifdef __cplusplus
8286extern "C"
8287#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008288/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008289 builtin and then its argument prototype would still apply. */
8290char wslen ();
8291int
8292main ()
8293{
8294wslen ();
8295 ;
8296 return 0;
8297}
8298_ACEOF
8299rm -f conftest.$ac_objext conftest$ac_exeext
8300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8301 (eval $ac_link) 2>conftest.er1
8302 ac_status=$?
8303 grep -v '^ *+' conftest.er1 >conftest.err
8304 rm -f conftest.er1
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try='test -z "$ac_c_werror_flag"
8309 || test ! -s conftest.err'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; } &&
8315 { ac_try='test -s conftest$ac_exeext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 (eval $ac_try) 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008322else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008323 echo "$as_me: failed program was:" >&5
8324sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008325
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008326ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008327fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008328rm -f conftest.err conftest.$ac_objext \
8329 conftest$ac_exeext conftest.$ac_ext
8330LIBS=$ac_check_lib_save_LIBS
8331fi
8332echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8333echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8334if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008336fi
8337
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008338 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8339echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8340if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008342else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008343 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008344LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008345cat >conftest.$ac_ext <<_ACEOF
8346/* confdefs.h. */
8347_ACEOF
8348cat confdefs.h >>conftest.$ac_ext
8349cat >>conftest.$ac_ext <<_ACEOF
8350/* end confdefs.h. */
8351
Bram Moolenaar071d4272004-06-13 20:20:40 +00008352/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008353#ifdef __cplusplus
8354extern "C"
8355#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008356/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008357 builtin and then its argument prototype would still apply. */
8358char dlsym ();
8359int
8360main ()
8361{
8362dlsym ();
8363 ;
8364 return 0;
8365}
8366_ACEOF
8367rm -f conftest.$ac_objext conftest$ac_exeext
8368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -z "$ac_c_werror_flag"
8377 || test ! -s conftest.err'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 (eval $ac_try) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008390else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008391 echo "$as_me: failed program was:" >&5
8392sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008393
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008394ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008395fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008396rm -f conftest.err conftest.$ac_objext \
8397 conftest$ac_exeext conftest.$ac_ext
8398LIBS=$ac_check_lib_save_LIBS
8399fi
8400echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8401echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8402if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008403 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008404fi
8405
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008406 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8407echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8408if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008410else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008411 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008412LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008413cat >conftest.$ac_ext <<_ACEOF
8414/* confdefs.h. */
8415_ACEOF
8416cat confdefs.h >>conftest.$ac_ext
8417cat >>conftest.$ac_ext <<_ACEOF
8418/* end confdefs.h. */
8419
Bram Moolenaar071d4272004-06-13 20:20:40 +00008420/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008421#ifdef __cplusplus
8422extern "C"
8423#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008424/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008425 builtin and then its argument prototype would still apply. */
8426char XmuCreateStippledPixmap ();
8427int
8428main ()
8429{
8430XmuCreateStippledPixmap ();
8431 ;
8432 return 0;
8433}
8434_ACEOF
8435rm -f conftest.$ac_objext conftest$ac_exeext
8436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437 (eval $ac_link) 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try='test -z "$ac_c_werror_flag"
8445 || test ! -s conftest.err'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try='test -s conftest$ac_exeext'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 (eval $ac_try) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008458else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008459 echo "$as_me: failed program was:" >&5
8460sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008461
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008462ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008463fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008464rm -f conftest.err conftest.$ac_objext \
8465 conftest$ac_exeext conftest.$ac_ext
8466LIBS=$ac_check_lib_save_LIBS
8467fi
8468echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8469echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8470if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008471 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008472fi
8473
8474 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008475 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8476echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8477if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008479else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008480 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008481LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008482cat >conftest.$ac_ext <<_ACEOF
8483/* confdefs.h. */
8484_ACEOF
8485cat confdefs.h >>conftest.$ac_ext
8486cat >>conftest.$ac_ext <<_ACEOF
8487/* end confdefs.h. */
8488
Bram Moolenaar071d4272004-06-13 20:20:40 +00008489/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008490#ifdef __cplusplus
8491extern "C"
8492#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008493/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008494 builtin and then its argument prototype would still apply. */
8495char XpEndJob ();
8496int
8497main ()
8498{
8499XpEndJob ();
8500 ;
8501 return 0;
8502}
8503_ACEOF
8504rm -f conftest.$ac_objext conftest$ac_exeext
8505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506 (eval $ac_link) 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -z "$ac_c_werror_flag"
8514 || test ! -s conftest.err'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 (eval $ac_try) 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; } &&
8520 { ac_try='test -s conftest$ac_exeext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008527else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008528 echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008530
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008531ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008532fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008533rm -f conftest.err conftest.$ac_objext \
8534 conftest$ac_exeext conftest.$ac_ext
8535LIBS=$ac_check_lib_save_LIBS
8536fi
8537echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8538echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8539if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008540 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008541fi
8542
8543 fi
8544 LDFLAGS=$ldflags_save
8545
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008546 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8547echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008548 NARROW_PROTO=
8549 rm -fr conftestdir
8550 if mkdir conftestdir; then
8551 cd conftestdir
8552 cat > Imakefile <<'EOF'
8553acfindx:
8554 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8555EOF
8556 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8557 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8558 fi
8559 cd ..
8560 rm -fr conftestdir
8561 fi
8562 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008565 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008566 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8567echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008568 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008569
Bram Moolenaar071d4272004-06-13 20:20:40 +00008570fi
8571
8572if test "$enable_xsmp" = "yes"; then
8573 cppflags_save=$CPPFLAGS
8574 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008575
8576for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008577do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579if eval "test \"\${$as_ac_Header+set}\" = set"; then
8580 echo "$as_me:$LINENO: checking for $ac_header" >&5
8581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8582if eval "test \"\${$as_ac_Header+set}\" = set"; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008584fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008587else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008588 # Is the header compilable?
8589echo "$as_me:$LINENO: checking $ac_header usability" >&5
8590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8591cat >conftest.$ac_ext <<_ACEOF
8592/* confdefs.h. */
8593_ACEOF
8594cat confdefs.h >>conftest.$ac_ext
8595cat >>conftest.$ac_ext <<_ACEOF
8596/* end confdefs.h. */
8597$ac_includes_default
8598#include <$ac_header>
8599_ACEOF
8600rm -f conftest.$ac_objext
8601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8602 (eval $ac_compile) 2>conftest.er1
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest.$ac_objext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_header_compiler=yes
8623else
8624 echo "$as_me: failed program was:" >&5
8625sed 's/^/| /' conftest.$ac_ext >&5
8626
8627ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008628fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8630echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8631echo "${ECHO_T}$ac_header_compiler" >&6
8632
8633# Is the header present?
8634echo "$as_me:$LINENO: checking $ac_header presence" >&5
8635echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8636cat >conftest.$ac_ext <<_ACEOF
8637/* confdefs.h. */
8638_ACEOF
8639cat confdefs.h >>conftest.$ac_ext
8640cat >>conftest.$ac_ext <<_ACEOF
8641/* end confdefs.h. */
8642#include <$ac_header>
8643_ACEOF
8644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8646 ac_status=$?
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } >/dev/null; then
8652 if test -s conftest.err; then
8653 ac_cpp_err=$ac_c_preproc_warn_flag
8654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8655 else
8656 ac_cpp_err=
8657 fi
8658else
8659 ac_cpp_err=yes
8660fi
8661if test -z "$ac_cpp_err"; then
8662 ac_header_preproc=yes
8663else
8664 echo "$as_me: failed program was:" >&5
8665sed 's/^/| /' conftest.$ac_ext >&5
8666
8667 ac_header_preproc=no
8668fi
8669rm -f conftest.err conftest.$ac_ext
8670echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8671echo "${ECHO_T}$ac_header_preproc" >&6
8672
8673# So? What about this header?
8674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8675 yes:no: )
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8677echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8679echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8680 ac_header_preproc=yes
8681 ;;
8682 no:yes:* )
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8686echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8688echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8690echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8694echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8695 (
8696 cat <<\_ASBOX
8697## ------------------------------------------ ##
8698## Report this to the AC_PACKAGE_NAME lists. ##
8699## ------------------------------------------ ##
8700_ASBOX
8701 ) |
8702 sed "s/^/$as_me: WARNING: /" >&2
8703 ;;
8704esac
8705echo "$as_me:$LINENO: checking for $ac_header" >&5
8706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8707if eval "test \"\${$as_ac_Header+set}\" = set"; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709else
8710 eval "$as_ac_Header=\$ac_header_preproc"
8711fi
8712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8714
8715fi
8716if test `eval echo '${'$as_ac_Header'}'` = yes; then
8717 cat >>confdefs.h <<_ACEOF
8718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8719_ACEOF
8720
8721fi
8722
Bram Moolenaar071d4272004-06-13 20:20:40 +00008723done
8724
8725 CPPFLAGS=$cppflags_save
8726fi
8727
8728
8729if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8730 cppflags_save=$CPPFLAGS
8731 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008732
8733
8734for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008735do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8737if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738 echo "$as_me:$LINENO: checking for $ac_header" >&5
8739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8740if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008742fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008745else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008746 # Is the header compilable?
8747echo "$as_me:$LINENO: checking $ac_header usability" >&5
8748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8749cat >conftest.$ac_ext <<_ACEOF
8750/* confdefs.h. */
8751_ACEOF
8752cat confdefs.h >>conftest.$ac_ext
8753cat >>conftest.$ac_ext <<_ACEOF
8754/* end confdefs.h. */
8755$ac_includes_default
8756#include <$ac_header>
8757_ACEOF
8758rm -f conftest.$ac_objext
8759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8760 (eval $ac_compile) 2>conftest.er1
8761 ac_status=$?
8762 grep -v '^ *+' conftest.er1 >conftest.err
8763 rm -f conftest.er1
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_c_werror_flag"
8768 || test ! -s conftest.err'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; } &&
8774 { ac_try='test -s conftest.$ac_objext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 (eval $ac_try) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_header_compiler=yes
8781else
8782 echo "$as_me: failed program was:" >&5
8783sed 's/^/| /' conftest.$ac_ext >&5
8784
8785ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008786fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8788echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8789echo "${ECHO_T}$ac_header_compiler" >&6
8790
8791# Is the header present?
8792echo "$as_me:$LINENO: checking $ac_header presence" >&5
8793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8794cat >conftest.$ac_ext <<_ACEOF
8795/* confdefs.h. */
8796_ACEOF
8797cat confdefs.h >>conftest.$ac_ext
8798cat >>conftest.$ac_ext <<_ACEOF
8799/* end confdefs.h. */
8800#include <$ac_header>
8801_ACEOF
8802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } >/dev/null; then
8810 if test -s conftest.err; then
8811 ac_cpp_err=$ac_c_preproc_warn_flag
8812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8813 else
8814 ac_cpp_err=
8815 fi
8816else
8817 ac_cpp_err=yes
8818fi
8819if test -z "$ac_cpp_err"; then
8820 ac_header_preproc=yes
8821else
8822 echo "$as_me: failed program was:" >&5
8823sed 's/^/| /' conftest.$ac_ext >&5
8824
8825 ac_header_preproc=no
8826fi
8827rm -f conftest.err conftest.$ac_ext
8828echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8829echo "${ECHO_T}$ac_header_preproc" >&6
8830
8831# So? What about this header?
8832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8833 yes:no: )
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8835echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8837echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8838 ac_header_preproc=yes
8839 ;;
8840 no:yes:* )
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8842echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8844echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8846echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8848echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8850echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8852echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8853 (
8854 cat <<\_ASBOX
8855## ------------------------------------------ ##
8856## Report this to the AC_PACKAGE_NAME lists. ##
8857## ------------------------------------------ ##
8858_ASBOX
8859 ) |
8860 sed "s/^/$as_me: WARNING: /" >&2
8861 ;;
8862esac
8863echo "$as_me:$LINENO: checking for $ac_header" >&5
8864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8865if eval "test \"\${$as_ac_Header+set}\" = set"; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8867else
8868 eval "$as_ac_Header=\$ac_header_preproc"
8869fi
8870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8872
8873fi
8874if test `eval echo '${'$as_ac_Header'}'` = yes; then
8875 cat >>confdefs.h <<_ACEOF
8876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8877_ACEOF
8878
8879fi
8880
Bram Moolenaar071d4272004-06-13 20:20:40 +00008881done
8882
8883
8884 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008885 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8886echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8887 cat >conftest.$ac_ext <<_ACEOF
8888/* confdefs.h. */
8889_ACEOF
8890cat confdefs.h >>conftest.$ac_ext
8891cat >>conftest.$ac_ext <<_ACEOF
8892/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008893#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008894_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008896 $EGREP "XIMText" >/dev/null 2>&1; then
8897 echo "$as_me:$LINENO: result: yes" >&5
8898echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008899else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008900 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8901echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008902fi
8903rm -f conftest*
8904
8905 fi
8906 CPPFLAGS=$cppflags_save
8907
8908 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8909 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008910 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8911echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008912 enable_xim="yes"
8913 fi
8914fi
8915
8916if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8917 cppflags_save=$CPPFLAGS
8918 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008919 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8920echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8921 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008922/* confdefs.h. */
8923_ACEOF
8924cat confdefs.h >>conftest.$ac_ext
8925cat >>conftest.$ac_ext <<_ACEOF
8926/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008927
8928#include <X11/Intrinsic.h>
8929#include <X11/Xmu/Editres.h>
8930int
8931main ()
8932{
8933int i; i = 0;
8934 ;
8935 return 0;
8936}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008937_ACEOF
8938rm -f conftest.$ac_objext
8939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940 (eval $ac_compile) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest.$ac_objext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008960 echo "$as_me:$LINENO: result: yes" >&5
8961echo "${ECHO_T}yes" >&6
8962 cat >>confdefs.h <<\_ACEOF
8963#define HAVE_X11_XMU_EDITRES_H 1
8964_ACEOF
8965
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008966else
8967 echo "$as_me: failed program was:" >&5
8968sed 's/^/| /' conftest.$ac_ext >&5
8969
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008970echo "$as_me:$LINENO: result: no" >&5
8971echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008972fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008974 CPPFLAGS=$cppflags_save
8975fi
8976
8977if test -z "$SKIP_MOTIF"; then
8978 cppflags_save=$CPPFLAGS
8979 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008980
8981
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008982
8983
8984
8985
8986for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8987 Xm/UnhighlightT.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008988do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8990if eval "test \"\${$as_ac_Header+set}\" = set"; then
8991 echo "$as_me:$LINENO: checking for $ac_header" >&5
8992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8993if eval "test \"\${$as_ac_Header+set}\" = set"; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008995fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008998else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008999 # Is the header compilable?
9000echo "$as_me:$LINENO: checking $ac_header usability" >&5
9001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9002cat >conftest.$ac_ext <<_ACEOF
9003/* confdefs.h. */
9004_ACEOF
9005cat confdefs.h >>conftest.$ac_ext
9006cat >>conftest.$ac_ext <<_ACEOF
9007/* end confdefs.h. */
9008$ac_includes_default
9009#include <$ac_header>
9010_ACEOF
9011rm -f conftest.$ac_objext
9012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9013 (eval $ac_compile) 2>conftest.er1
9014 ac_status=$?
9015 grep -v '^ *+' conftest.er1 >conftest.err
9016 rm -f conftest.er1
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -z "$ac_c_werror_flag"
9021 || test ! -s conftest.err'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; } &&
9027 { ac_try='test -s conftest.$ac_objext'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 (eval $ac_try) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; }; then
9033 ac_header_compiler=yes
9034else
9035 echo "$as_me: failed program was:" >&5
9036sed 's/^/| /' conftest.$ac_ext >&5
9037
9038ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009039fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9042echo "${ECHO_T}$ac_header_compiler" >&6
9043
9044# Is the header present?
9045echo "$as_me:$LINENO: checking $ac_header presence" >&5
9046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9047cat >conftest.$ac_ext <<_ACEOF
9048/* confdefs.h. */
9049_ACEOF
9050cat confdefs.h >>conftest.$ac_ext
9051cat >>conftest.$ac_ext <<_ACEOF
9052/* end confdefs.h. */
9053#include <$ac_header>
9054_ACEOF
9055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } >/dev/null; then
9063 if test -s conftest.err; then
9064 ac_cpp_err=$ac_c_preproc_warn_flag
9065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9066 else
9067 ac_cpp_err=
9068 fi
9069else
9070 ac_cpp_err=yes
9071fi
9072if test -z "$ac_cpp_err"; then
9073 ac_header_preproc=yes
9074else
9075 echo "$as_me: failed program was:" >&5
9076sed 's/^/| /' conftest.$ac_ext >&5
9077
9078 ac_header_preproc=no
9079fi
9080rm -f conftest.err conftest.$ac_ext
9081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9082echo "${ECHO_T}$ac_header_preproc" >&6
9083
9084# So? What about this header?
9085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9086 yes:no: )
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9090echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9091 ac_header_preproc=yes
9092 ;;
9093 no:yes:* )
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9097echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9099echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9101echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9105echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9106 (
9107 cat <<\_ASBOX
9108## ------------------------------------------ ##
9109## Report this to the AC_PACKAGE_NAME lists. ##
9110## ------------------------------------------ ##
9111_ASBOX
9112 ) |
9113 sed "s/^/$as_me: WARNING: /" >&2
9114 ;;
9115esac
9116echo "$as_me:$LINENO: checking for $ac_header" >&5
9117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9118if eval "test \"\${$as_ac_Header+set}\" = set"; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120else
9121 eval "$as_ac_Header=\$ac_header_preproc"
9122fi
9123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9125
9126fi
9127if test `eval echo '${'$as_ac_Header'}'` = yes; then
9128 cat >>confdefs.h <<_ACEOF
9129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9130_ACEOF
9131
9132fi
9133
Bram Moolenaar071d4272004-06-13 20:20:40 +00009134done
9135
9136 CPPFLAGS=$cppflags_save
9137fi
9138
9139if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009140 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9141echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009142 enable_xim="no"
9143fi
9144if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009145 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9146echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009147 enable_fontset="no"
9148fi
9149if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009150 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9151echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009152 enable_fontset="no"
9153fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009154
9155if test -z "$SKIP_PHOTON"; then
9156 GUITYPE=PHOTONGUI
9157fi
9158
9159
9160
9161
9162
9163
9164if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009165 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9166echo "$as_me: error: cannot use workshop without Motif" >&2;}
9167 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009168fi
9169
9170if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009171 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009172#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009173_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009174
9175fi
9176if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009177 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009178#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009179_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009180
9181fi
9182
9183
9184
9185
9186if test "$enable_hangulinput" = "yes"; then
9187 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009188 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9189echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009190 enable_hangulinput=no
9191 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009192 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009193#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009194_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009195
9196 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009197
Bram Moolenaar071d4272004-06-13 20:20:40 +00009198 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009199
Bram Moolenaar071d4272004-06-13 20:20:40 +00009200 fi
9201fi
9202
9203
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009204echo "$as_me:$LINENO: checking quality of toupper" >&5
9205echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009206if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009207 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9208echo "$as_me: error: failed to compile test program" >&2;}
9209 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009210else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009211 cat >conftest.$ac_ext <<_ACEOF
9212/* confdefs.h. */
9213_ACEOF
9214cat confdefs.h >>conftest.$ac_ext
9215cat >>conftest.$ac_ext <<_ACEOF
9216/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009217#include <ctype.h>
9218main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009219_ACEOF
9220rm -f conftest$ac_exeext
9221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 (eval $ac_try) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009232#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009233_ACEOF
9234 echo "$as_me:$LINENO: result: bad" >&5
9235echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009236else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009237 echo "$as_me: program exited with status $ac_status" >&5
9238echo "$as_me: failed program was:" >&5
9239sed 's/^/| /' conftest.$ac_ext >&5
9240
9241( exit $ac_status )
9242echo "$as_me:$LINENO: result: good" >&5
9243echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009244fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009245rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009246fi
9247
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009248echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9249echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9250cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h. */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
9255/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009256
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009257int
9258main ()
9259{
Bram Moolenaar071d4272004-06-13 20:20:40 +00009260printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009261 ;
9262 return 0;
9263}
9264_ACEOF
9265rm -f conftest.$ac_objext
9266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9267 (eval $ac_compile) 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } &&
9274 { ac_try='test -z "$ac_c_werror_flag"
9275 || test ! -s conftest.err'
9276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 (eval $ac_try) 2>&5
9278 ac_status=$?
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; } &&
9281 { ac_try='test -s conftest.$ac_objext'
9282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283 (eval $ac_try) 2>&5
9284 ac_status=$?
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }; }; then
9287 echo "$as_me:$LINENO: result: yes" >&5
9288echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009289#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009290_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009291
9292else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009293 echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296echo "$as_me:$LINENO: result: no" >&5
9297echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009298fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009300
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009301if test "${ac_cv_header_elf_h+set}" = set; then
9302 echo "$as_me:$LINENO: checking for elf.h" >&5
9303echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9304if test "${ac_cv_header_elf_h+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306fi
9307echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9308echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009309else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009310 # Is the header compilable?
9311echo "$as_me:$LINENO: checking elf.h usability" >&5
9312echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9313cat >conftest.$ac_ext <<_ACEOF
9314/* confdefs.h. */
9315_ACEOF
9316cat confdefs.h >>conftest.$ac_ext
9317cat >>conftest.$ac_ext <<_ACEOF
9318/* end confdefs.h. */
9319$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +00009320#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009321_ACEOF
9322rm -f conftest.$ac_objext
9323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9324 (eval $ac_compile) 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -z "$ac_c_werror_flag"
9332 || test ! -s conftest.err'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 (eval $ac_try) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try='test -s conftest.$ac_objext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009345else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009346 echo "$as_me: failed program was:" >&5
9347sed 's/^/| /' conftest.$ac_ext >&5
9348
9349ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009350fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9353echo "${ECHO_T}$ac_header_compiler" >&6
9354
9355# Is the header present?
9356echo "$as_me:$LINENO: checking elf.h presence" >&5
9357echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9358cat >conftest.$ac_ext <<_ACEOF
9359/* confdefs.h. */
9360_ACEOF
9361cat confdefs.h >>conftest.$ac_ext
9362cat >>conftest.$ac_ext <<_ACEOF
9363/* end confdefs.h. */
9364#include <elf.h>
9365_ACEOF
9366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } >/dev/null; then
9374 if test -s conftest.err; then
9375 ac_cpp_err=$ac_c_preproc_warn_flag
9376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9377 else
9378 ac_cpp_err=
9379 fi
9380else
9381 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009382fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009383if test -z "$ac_cpp_err"; then
9384 ac_header_preproc=yes
9385else
9386 echo "$as_me: failed program was:" >&5
9387sed 's/^/| /' conftest.$ac_ext >&5
9388
9389 ac_header_preproc=no
9390fi
9391rm -f conftest.err conftest.$ac_ext
9392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9393echo "${ECHO_T}$ac_header_preproc" >&6
9394
9395# So? What about this header?
9396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9397 yes:no: )
9398 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9399echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9401echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9402 ac_header_preproc=yes
9403 ;;
9404 no:yes:* )
9405 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9406echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9408echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9410echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9412echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9414echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9416echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9417 (
9418 cat <<\_ASBOX
9419## ------------------------------------------ ##
9420## Report this to the AC_PACKAGE_NAME lists. ##
9421## ------------------------------------------ ##
9422_ASBOX
9423 ) |
9424 sed "s/^/$as_me: WARNING: /" >&2
9425 ;;
9426esac
9427echo "$as_me:$LINENO: checking for elf.h" >&5
9428echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9429if test "${ac_cv_header_elf_h+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432 ac_cv_header_elf_h=$ac_header_preproc
9433fi
9434echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9435echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9436
9437fi
9438if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009439 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +00009440fi
9441
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009442
Bram Moolenaar071d4272004-06-13 20:20:40 +00009443if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009444
9445echo "$as_me:$LINENO: checking for main in -lelf" >&5
9446echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9447if test "${ac_cv_lib_elf_main+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009449else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009450 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009451LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009452cat >conftest.$ac_ext <<_ACEOF
9453/* confdefs.h. */
9454_ACEOF
9455cat confdefs.h >>conftest.$ac_ext
9456cat >>conftest.$ac_ext <<_ACEOF
9457/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009458
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009459
9460int
9461main ()
9462{
9463main ();
9464 ;
9465 return 0;
9466}
9467_ACEOF
9468rm -f conftest.$ac_objext conftest$ac_exeext
9469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9470 (eval $ac_link) 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } &&
9477 { ac_try='test -z "$ac_c_werror_flag"
9478 || test ! -s conftest.err'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 (eval $ac_try) 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; } &&
9484 { ac_try='test -s conftest$ac_exeext'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 (eval $ac_try) 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9490 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009491else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009492 echo "$as_me: failed program was:" >&5
9493sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009494
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009495ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009496fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009497rm -f conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499LIBS=$ac_check_lib_save_LIBS
9500fi
9501echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9502echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9503if test $ac_cv_lib_elf_main = yes; then
9504 cat >>confdefs.h <<_ACEOF
9505#define HAVE_LIBELF 1
9506_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009507
9508 LIBS="-lelf $LIBS"
9509
Bram Moolenaar071d4272004-06-13 20:20:40 +00009510fi
9511
9512fi
9513
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009514
9515
9516
9517
9518
Bram Moolenaar071d4272004-06-13 20:20:40 +00009519ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009520for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9521 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9522echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9523echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9524if eval "test \"\${$as_ac_Header+set}\" = set"; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009526else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009527 cat >conftest.$ac_ext <<_ACEOF
9528/* confdefs.h. */
9529_ACEOF
9530cat confdefs.h >>conftest.$ac_ext
9531cat >>conftest.$ac_ext <<_ACEOF
9532/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009533#include <sys/types.h>
9534#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009535
9536int
9537main ()
9538{
9539if ((DIR *) 0)
9540return 0;
9541 ;
9542 return 0;
9543}
9544_ACEOF
9545rm -f conftest.$ac_objext
9546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547 (eval $ac_compile) 2>conftest.er1
9548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -z "$ac_c_werror_flag"
9555 || test ! -s conftest.err'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 (eval $ac_try) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; } &&
9561 { ac_try='test -s conftest.$ac_objext'
9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 (eval $ac_try) 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009568else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009569 echo "$as_me: failed program was:" >&5
9570sed 's/^/| /' conftest.$ac_ext >&5
9571
9572eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009573fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009575fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9578if test `eval echo '${'$as_ac_Header'}'` = yes; then
9579 cat >>confdefs.h <<_ACEOF
9580#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9581_ACEOF
9582
9583ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009584fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009585
Bram Moolenaar071d4272004-06-13 20:20:40 +00009586done
9587# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9588if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009589 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9590echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9591if test "${ac_cv_search_opendir+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009593else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009594 ac_func_search_save_LIBS=$LIBS
9595ac_cv_search_opendir=no
9596cat >conftest.$ac_ext <<_ACEOF
9597/* confdefs.h. */
9598_ACEOF
9599cat confdefs.h >>conftest.$ac_ext
9600cat >>conftest.$ac_ext <<_ACEOF
9601/* end confdefs.h. */
9602
Bram Moolenaar071d4272004-06-13 20:20:40 +00009603/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009604#ifdef __cplusplus
9605extern "C"
9606#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009607/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009608 builtin and then its argument prototype would still apply. */
9609char opendir ();
9610int
9611main ()
9612{
9613opendir ();
9614 ;
9615 return 0;
9616}
9617_ACEOF
9618rm -f conftest.$ac_objext conftest$ac_exeext
9619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620 (eval $ac_link) 2>conftest.er1
9621 ac_status=$?
9622 grep -v '^ *+' conftest.er1 >conftest.err
9623 rm -f conftest.er1
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -z "$ac_c_werror_flag"
9628 || test ! -s conftest.err'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 (eval $ac_try) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; } &&
9634 { ac_try='test -s conftest$ac_exeext'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 (eval $ac_try) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9640 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009641else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009642 echo "$as_me: failed program was:" >&5
9643sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009644
9645fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009646rm -f conftest.err conftest.$ac_objext \
9647 conftest$ac_exeext conftest.$ac_ext
9648if test "$ac_cv_search_opendir" = no; then
9649 for ac_lib in dir; do
9650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9651 cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009657
Bram Moolenaar071d4272004-06-13 20:20:40 +00009658/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009659#ifdef __cplusplus
9660extern "C"
9661#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009662/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009663 builtin and then its argument prototype would still apply. */
9664char opendir ();
9665int
9666main ()
9667{
9668opendir ();
9669 ;
9670 return 0;
9671}
9672_ACEOF
9673rm -f conftest.$ac_objext conftest$ac_exeext
9674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675 (eval $ac_link) 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -z "$ac_c_werror_flag"
9683 || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 (eval $ac_try) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_search_opendir="-l$ac_lib"
9696break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009697else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009698 echo "$as_me: failed program was:" >&5
9699sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009700
9701fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009702rm -f conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 done
9705fi
9706LIBS=$ac_func_search_save_LIBS
9707fi
9708echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9709echo "${ECHO_T}$ac_cv_search_opendir" >&6
9710if test "$ac_cv_search_opendir" != no; then
9711 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9712
9713fi
9714
Bram Moolenaar071d4272004-06-13 20:20:40 +00009715else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009716 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9717echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9718if test "${ac_cv_search_opendir+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009720else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009721 ac_func_search_save_LIBS=$LIBS
9722ac_cv_search_opendir=no
9723cat >conftest.$ac_ext <<_ACEOF
9724/* confdefs.h. */
9725_ACEOF
9726cat confdefs.h >>conftest.$ac_ext
9727cat >>conftest.$ac_ext <<_ACEOF
9728/* end confdefs.h. */
9729
9730/* Override any gcc2 internal prototype to avoid an error. */
9731#ifdef __cplusplus
9732extern "C"
9733#endif
9734/* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736char opendir ();
9737int
9738main ()
9739{
9740opendir ();
9741 ;
9742 return 0;
9743}
9744_ACEOF
9745rm -f conftest.$ac_objext conftest$ac_exeext
9746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747 (eval $ac_link) 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_cv_search_opendir="none required"
9768else
9769 echo "$as_me: failed program was:" >&5
9770sed 's/^/| /' conftest.$ac_ext >&5
9771
9772fi
9773rm -f conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
9775if test "$ac_cv_search_opendir" = no; then
9776 for ac_lib in x; do
9777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9778 cat >conftest.$ac_ext <<_ACEOF
9779/* confdefs.h. */
9780_ACEOF
9781cat confdefs.h >>conftest.$ac_ext
9782cat >>conftest.$ac_ext <<_ACEOF
9783/* end confdefs.h. */
9784
9785/* Override any gcc2 internal prototype to avoid an error. */
9786#ifdef __cplusplus
9787extern "C"
9788#endif
9789/* We use char because int might match the return type of a gcc2
9790 builtin and then its argument prototype would still apply. */
9791char opendir ();
9792int
9793main ()
9794{
9795opendir ();
9796 ;
9797 return 0;
9798}
9799_ACEOF
9800rm -f conftest.$ac_objext conftest$ac_exeext
9801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9802 (eval $ac_link) 2>conftest.er1
9803 ac_status=$?
9804 grep -v '^ *+' conftest.er1 >conftest.err
9805 rm -f conftest.er1
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -z "$ac_c_werror_flag"
9810 || test ! -s conftest.err'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 (eval $ac_try) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_cv_search_opendir="-l$ac_lib"
9823break
9824else
9825 echo "$as_me: failed program was:" >&5
9826sed 's/^/| /' conftest.$ac_ext >&5
9827
9828fi
9829rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831 done
9832fi
9833LIBS=$ac_func_search_save_LIBS
9834fi
9835echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9836echo "${ECHO_T}$ac_cv_search_opendir" >&6
9837if test "$ac_cv_search_opendir" != no; then
9838 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9839
9840fi
9841
9842fi
9843
9844
9845echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9846echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9847if test "${ac_cv_header_stdc+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849else
9850 cat >conftest.$ac_ext <<_ACEOF
9851/* confdefs.h. */
9852_ACEOF
9853cat confdefs.h >>conftest.$ac_ext
9854cat >>conftest.$ac_ext <<_ACEOF
9855/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009856#include <stdlib.h>
9857#include <stdarg.h>
9858#include <string.h>
9859#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009860
9861int
9862main ()
9863{
9864
9865 ;
9866 return 0;
9867}
9868_ACEOF
9869rm -f conftest.$ac_objext
9870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871 (eval $ac_compile) 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_objext'
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
Bram Moolenaar071d4272004-06-13 20:20:40 +00009891 ac_cv_header_stdc=yes
9892else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009893 echo "$as_me: failed program was:" >&5
9894sed 's/^/| /' conftest.$ac_ext >&5
9895
9896ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009897fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009899
9900if test $ac_cv_header_stdc = yes; then
9901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009902 cat >conftest.$ac_ext <<_ACEOF
9903/* confdefs.h. */
9904_ACEOF
9905cat confdefs.h >>conftest.$ac_ext
9906cat >>conftest.$ac_ext <<_ACEOF
9907/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009908#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009909
9910_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009912 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009913 :
9914else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009915 ac_cv_header_stdc=no
9916fi
9917rm -f conftest*
9918
9919fi
9920
9921if test $ac_cv_header_stdc = yes; then
9922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009923 cat >conftest.$ac_ext <<_ACEOF
9924/* confdefs.h. */
9925_ACEOF
9926cat confdefs.h >>conftest.$ac_ext
9927cat >>conftest.$ac_ext <<_ACEOF
9928/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009929#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009930
9931_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009933 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009934 :
9935else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009936 ac_cv_header_stdc=no
9937fi
9938rm -f conftest*
9939
9940fi
9941
9942if test $ac_cv_header_stdc = yes; then
9943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009944 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009945 :
9946else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009947 cat >conftest.$ac_ext <<_ACEOF
9948/* confdefs.h. */
9949_ACEOF
9950cat confdefs.h >>conftest.$ac_ext
9951cat >>conftest.$ac_ext <<_ACEOF
9952/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009953#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009954#if ((' ' & 0x0FF) == 0x020)
9955# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9956# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9957#else
9958# define ISLOWER(c) \
9959 (('a' <= (c) && (c) <= 'i') \
9960 || ('j' <= (c) && (c) <= 'r') \
9961 || ('s' <= (c) && (c) <= 'z'))
9962# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9963#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009964
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009965#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9966int
9967main ()
9968{
9969 int i;
9970 for (i = 0; i < 256; i++)
9971 if (XOR (islower (i), ISLOWER (i))
9972 || toupper (i) != TOUPPER (i))
9973 exit(2);
9974 exit (0);
9975}
9976_ACEOF
9977rm -f conftest$ac_exeext
9978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9979 (eval $ac_link) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 (eval $ac_try) 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009988 :
9989else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009990 echo "$as_me: program exited with status $ac_status" >&5
9991echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009993
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009994( exit $ac_status )
9995ac_cv_header_stdc=no
9996fi
9997rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009998fi
9999fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010000fi
10001echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10002echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010003if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010004
10005cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010006#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010007_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010008
10009fi
10010
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010011echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10012echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10013if test "${ac_cv_header_sys_wait_h+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010015else
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 <sys/types.h>
10023#include <sys/wait.h>
10024#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010025# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010026#endif
10027#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010028# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010029#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010030
10031int
10032main ()
10033{
10034 int s;
10035 wait (&s);
10036 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10037 ;
10038 return 0;
10039}
10040_ACEOF
10041rm -f conftest.$ac_objext
10042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag"
10051 || test ! -s conftest.err'
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); }; } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010063 ac_cv_header_sys_wait_h=yes
10064else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010065 echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010067
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010068ac_cv_header_sys_wait_h=no
10069fi
10070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071fi
10072echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10073echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010074if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010075
10076cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010077#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010078_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010079
10080fi
10081
10082
10083if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010084 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10085echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10086 cat >conftest.$ac_ext <<_ACEOF
10087/* confdefs.h. */
10088_ACEOF
10089cat confdefs.h >>conftest.$ac_ext
10090cat >>conftest.$ac_ext <<_ACEOF
10091/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010092#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010093int
10094main ()
10095{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010096union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010097 ;
10098 return 0;
10099}
10100_ACEOF
10101rm -f conftest.$ac_objext
10102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -z "$ac_c_werror_flag"
10111 || test ! -s conftest.err'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try='test -s conftest.$ac_objext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 echo "$as_me:$LINENO: result: yes" >&5
10124echo "${ECHO_T}yes" >&6
10125 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010126#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010127_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010128
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010129 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010130#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010131_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010132
10133else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010134 echo "$as_me: failed program was:" >&5
10135sed 's/^/| /' conftest.$ac_ext >&5
10136
10137echo "$as_me:$LINENO: result: no" >&5
10138echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010139fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010141fi
10142
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010182
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010183for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010184 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10185 iconv.h langinfo.h unistd.h stropts.h errno.h \
10186 sys/resource.h sys/systeminfo.h locale.h \
10187 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10188 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010189 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010190 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010191do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10193if eval "test \"\${$as_ac_Header+set}\" = set"; then
10194 echo "$as_me:$LINENO: checking for $ac_header" >&5
10195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10196if eval "test \"\${$as_ac_Header+set}\" = set"; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010198fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010201else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010202 # Is the header compilable?
10203echo "$as_me:$LINENO: checking $ac_header usability" >&5
10204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10205cat >conftest.$ac_ext <<_ACEOF
10206/* confdefs.h. */
10207_ACEOF
10208cat confdefs.h >>conftest.$ac_ext
10209cat >>conftest.$ac_ext <<_ACEOF
10210/* end confdefs.h. */
10211$ac_includes_default
10212#include <$ac_header>
10213_ACEOF
10214rm -f conftest.$ac_objext
10215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10216 (eval $ac_compile) 2>conftest.er1
10217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -z "$ac_c_werror_flag"
10224 || test ! -s conftest.err'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; } &&
10230 { ac_try='test -s conftest.$ac_objext'
10231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232 (eval $ac_try) 2>&5
10233 ac_status=$?
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; }; then
10236 ac_header_compiler=yes
10237else
10238 echo "$as_me: failed program was:" >&5
10239sed 's/^/| /' conftest.$ac_ext >&5
10240
10241ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010242fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10245echo "${ECHO_T}$ac_header_compiler" >&6
10246
10247# Is the header present?
10248echo "$as_me:$LINENO: checking $ac_header presence" >&5
10249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10250cat >conftest.$ac_ext <<_ACEOF
10251/* confdefs.h. */
10252_ACEOF
10253cat confdefs.h >>conftest.$ac_ext
10254cat >>conftest.$ac_ext <<_ACEOF
10255/* end confdefs.h. */
10256#include <$ac_header>
10257_ACEOF
10258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } >/dev/null; then
10266 if test -s conftest.err; then
10267 ac_cpp_err=$ac_c_preproc_warn_flag
10268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10269 else
10270 ac_cpp_err=
10271 fi
10272else
10273 ac_cpp_err=yes
10274fi
10275if test -z "$ac_cpp_err"; then
10276 ac_header_preproc=yes
10277else
10278 echo "$as_me: failed program was:" >&5
10279sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 ac_header_preproc=no
10282fi
10283rm -f conftest.err conftest.$ac_ext
10284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10285echo "${ECHO_T}$ac_header_preproc" >&6
10286
10287# So? What about this header?
10288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10289 yes:no: )
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10294 ac_header_preproc=yes
10295 ;;
10296 no:yes:* )
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10309 (
10310 cat <<\_ASBOX
10311## ------------------------------------------ ##
10312## Report this to the AC_PACKAGE_NAME lists. ##
10313## ------------------------------------------ ##
10314_ASBOX
10315 ) |
10316 sed "s/^/$as_me: WARNING: /" >&2
10317 ;;
10318esac
10319echo "$as_me:$LINENO: checking for $ac_header" >&5
10320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10321if eval "test \"\${$as_ac_Header+set}\" = set"; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323else
10324 eval "$as_ac_Header=\$ac_header_preproc"
10325fi
10326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10328
10329fi
10330if test `eval echo '${'$as_ac_Header'}'` = yes; then
10331 cat >>confdefs.h <<_ACEOF
10332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10333_ACEOF
10334
10335fi
10336
Bram Moolenaar071d4272004-06-13 20:20:40 +000010337done
10338
10339
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010340echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10341echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10342cat >conftest.$ac_ext <<_ACEOF
10343/* confdefs.h. */
10344_ACEOF
10345cat confdefs.h >>conftest.$ac_ext
10346cat >>conftest.$ac_ext <<_ACEOF
10347/* end confdefs.h. */
10348
10349#include <pthread.h>
10350#include <pthread_np.h>
10351int
10352main ()
10353{
10354int i; i = 0;
10355 ;
10356 return 0;
10357}
10358_ACEOF
10359rm -f conftest.$ac_objext
10360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361 (eval $ac_compile) 2>conftest.er1
10362 ac_status=$?
10363 grep -v '^ *+' conftest.er1 >conftest.err
10364 rm -f conftest.er1
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } &&
10368 { ac_try='test -z "$ac_c_werror_flag"
10369 || test ! -s conftest.err'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; } &&
10375 { ac_try='test -s conftest.$ac_objext'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; }; then
10381 echo "$as_me:$LINENO: result: yes" >&5
10382echo "${ECHO_T}yes" >&6
10383 cat >>confdefs.h <<\_ACEOF
10384#define HAVE_PTHREAD_NP_H 1
10385_ACEOF
10386
10387else
10388 echo "$as_me: failed program was:" >&5
10389sed 's/^/| /' conftest.$ac_ext >&5
10390
10391echo "$as_me:$LINENO: result: no" >&5
10392echo "${ECHO_T}no" >&6
10393fi
10394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10395
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010396
10397for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010398do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10400if eval "test \"\${$as_ac_Header+set}\" = set"; then
10401 echo "$as_me:$LINENO: checking for $ac_header" >&5
10402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10403if eval "test \"\${$as_ac_Header+set}\" = set"; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010405fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010408else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010409 # Is the header compilable?
10410echo "$as_me:$LINENO: checking $ac_header usability" >&5
10411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10412cat >conftest.$ac_ext <<_ACEOF
10413/* confdefs.h. */
10414_ACEOF
10415cat confdefs.h >>conftest.$ac_ext
10416cat >>conftest.$ac_ext <<_ACEOF
10417/* end confdefs.h. */
10418$ac_includes_default
10419#include <$ac_header>
10420_ACEOF
10421rm -f conftest.$ac_objext
10422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423 (eval $ac_compile) 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
10430 { ac_try='test -z "$ac_c_werror_flag"
10431 || test ! -s conftest.err'
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; } &&
10437 { ac_try='test -s conftest.$ac_objext'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_header_compiler=yes
10444else
10445 echo "$as_me: failed program was:" >&5
10446sed 's/^/| /' conftest.$ac_ext >&5
10447
10448ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010449fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10452echo "${ECHO_T}$ac_header_compiler" >&6
10453
10454# Is the header present?
10455echo "$as_me:$LINENO: checking $ac_header presence" >&5
10456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10457cat >conftest.$ac_ext <<_ACEOF
10458/* confdefs.h. */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h. */
10463#include <$ac_header>
10464_ACEOF
10465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } >/dev/null; then
10473 if test -s conftest.err; then
10474 ac_cpp_err=$ac_c_preproc_warn_flag
10475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10476 else
10477 ac_cpp_err=
10478 fi
10479else
10480 ac_cpp_err=yes
10481fi
10482if test -z "$ac_cpp_err"; then
10483 ac_header_preproc=yes
10484else
10485 echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 ac_header_preproc=no
10489fi
10490rm -f conftest.err conftest.$ac_ext
10491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10492echo "${ECHO_T}$ac_header_preproc" >&6
10493
10494# So? What about this header?
10495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10496 yes:no: )
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10501 ac_header_preproc=yes
10502 ;;
10503 no:yes:* )
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10516 (
10517 cat <<\_ASBOX
10518## ------------------------------------------ ##
10519## Report this to the AC_PACKAGE_NAME lists. ##
10520## ------------------------------------------ ##
10521_ASBOX
10522 ) |
10523 sed "s/^/$as_me: WARNING: /" >&2
10524 ;;
10525esac
10526echo "$as_me:$LINENO: checking for $ac_header" >&5
10527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10528if eval "test \"\${$as_ac_Header+set}\" = set"; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530else
10531 eval "$as_ac_Header=\$ac_header_preproc"
10532fi
10533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10535
10536fi
10537if test `eval echo '${'$as_ac_Header'}'` = yes; then
10538 cat >>confdefs.h <<_ACEOF
10539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10540_ACEOF
10541
10542fi
10543
Bram Moolenaar071d4272004-06-13 20:20:40 +000010544done
10545
Bram Moolenaar9372a112005-12-06 19:59:18 +000010546if test "x$MACOSX" = "xyes"; then
10547 cat >>confdefs.h <<\_ACEOF
10548#define NO_STRINGS_WITH_STRING_H 1
10549_ACEOF
10550
10551else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010552
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010553echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10554echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010555cppflags_save=$CPPFLAGS
10556CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010557cat >conftest.$ac_ext <<_ACEOF
10558/* confdefs.h. */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010563
10564#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10565# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10566 /* but don't do it on AIX 5.1 (Uribarri) */
10567#endif
10568#ifdef HAVE_XM_XM_H
10569# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10570#endif
10571#ifdef HAVE_STRING_H
10572# include <string.h>
10573#endif
10574#if defined(HAVE_STRINGS_H)
10575# include <strings.h>
10576#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010577
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010578int
10579main ()
10580{
10581int i; i = 0;
10582 ;
10583 return 0;
10584}
10585_ACEOF
10586rm -f conftest.$ac_objext
10587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10588 (eval $ac_compile) 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -z "$ac_c_werror_flag"
10596 || test ! -s conftest.err'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; } &&
10602 { ac_try='test -s conftest.$ac_objext'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 echo "$as_me:$LINENO: result: yes" >&5
10609echo "${ECHO_T}yes" >&6
10610else
10611 echo "$as_me: failed program was:" >&5
10612sed 's/^/| /' conftest.$ac_ext >&5
10613
10614cat >>confdefs.h <<\_ACEOF
10615#define NO_STRINGS_WITH_STRING_H 1
10616_ACEOF
10617
10618 echo "$as_me:$LINENO: result: no" >&5
10619echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010620fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010622CPPFLAGS=$cppflags_save
Bram Moolenaar9372a112005-12-06 19:59:18 +000010623fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000010624
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010625if test $ac_cv_c_compiler_gnu = yes; then
10626 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10627echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10628if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010630else
10631 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010632 cat >conftest.$ac_ext <<_ACEOF
10633/* confdefs.h. */
10634_ACEOF
10635cat confdefs.h >>conftest.$ac_ext
10636cat >>conftest.$ac_ext <<_ACEOF
10637/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010638#include <sgtty.h>
10639Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010640_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010642 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010643 ac_cv_prog_gcc_traditional=yes
10644else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010645 ac_cv_prog_gcc_traditional=no
10646fi
10647rm -f conftest*
10648
10649
10650 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010651 cat >conftest.$ac_ext <<_ACEOF
10652/* confdefs.h. */
10653_ACEOF
10654cat confdefs.h >>conftest.$ac_ext
10655cat >>conftest.$ac_ext <<_ACEOF
10656/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010657#include <termio.h>
10658Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010659_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010661 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010662 ac_cv_prog_gcc_traditional=yes
10663fi
10664rm -f conftest*
10665
10666 fi
10667fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010668echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10669echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010670 if test $ac_cv_prog_gcc_traditional = yes; then
10671 CC="$CC -traditional"
10672 fi
10673fi
10674
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010675echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10676echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10677if test "${ac_cv_c_const+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010679else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010680 cat >conftest.$ac_ext <<_ACEOF
10681/* confdefs.h. */
10682_ACEOF
10683cat confdefs.h >>conftest.$ac_ext
10684cat >>conftest.$ac_ext <<_ACEOF
10685/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010686
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010687int
10688main ()
10689{
10690/* FIXME: Include the comments suggested by Paul. */
10691#ifndef __cplusplus
10692 /* Ultrix mips cc rejects this. */
10693 typedef int charset[2];
10694 const charset x;
10695 /* SunOS 4.1.1 cc rejects this. */
10696 char const *const *ccp;
10697 char **p;
10698 /* NEC SVR4.0.2 mips cc rejects this. */
10699 struct point {int x, y;};
10700 static struct point const zero = {0,0};
10701 /* AIX XL C 1.02.0.0 rejects this.
10702 It does not let you subtract one const X* pointer from another in
10703 an arm of an if-expression whose if-part is not a constant
10704 expression */
10705 const char *g = "string";
10706 ccp = &g + (g ? g-g : 0);
10707 /* HPUX 7.0 cc rejects these. */
10708 ++ccp;
10709 p = (char**) ccp;
10710 ccp = (char const *const *) p;
10711 { /* SCO 3.2v4 cc rejects this. */
10712 char *t;
10713 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010714
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010715 *t++ = 0;
10716 }
10717 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10718 int x[] = {25, 17};
10719 const int *foo = &x[0];
10720 ++foo;
10721 }
10722 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10723 typedef const int *iptr;
10724 iptr p = 0;
10725 ++p;
10726 }
10727 { /* AIX XL C 1.02.0.0 rejects this saying
10728 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10729 struct s { int j; const int *ap[3]; };
10730 struct s *b; b->j = 5;
10731 }
10732 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10733 const int foo = 10;
10734 }
10735#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010736
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010737 ;
10738 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010739}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010740_ACEOF
10741rm -f conftest.$ac_objext
10742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10743 (eval $ac_compile) 2>conftest.er1
10744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -z "$ac_c_werror_flag"
10751 || test ! -s conftest.err'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; } &&
10757 { ac_try='test -s conftest.$ac_objext'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010763 ac_cv_c_const=yes
10764else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010765 echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010767
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010768ac_cv_c_const=no
10769fi
10770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10771fi
10772echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10773echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010774if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010775
10776cat >>confdefs.h <<\_ACEOF
10777#define const
10778_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010779
10780fi
10781
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010782echo "$as_me:$LINENO: checking for mode_t" >&5
10783echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10784if test "${ac_cv_type_mode_t+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010786else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010787 cat >conftest.$ac_ext <<_ACEOF
10788/* confdefs.h. */
10789_ACEOF
10790cat confdefs.h >>conftest.$ac_ext
10791cat >>conftest.$ac_ext <<_ACEOF
10792/* end confdefs.h. */
10793$ac_includes_default
10794int
10795main ()
10796{
10797if ((mode_t *) 0)
10798 return 0;
10799if (sizeof (mode_t))
10800 return 0;
10801 ;
10802 return 0;
10803}
10804_ACEOF
10805rm -f conftest.$ac_objext
10806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10807 (eval $ac_compile) 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -z "$ac_c_werror_flag"
10815 || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest.$ac_objext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010827 ac_cv_type_mode_t=yes
10828else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010829 echo "$as_me: failed program was:" >&5
10830sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010831
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010832ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010833fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010835fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010836echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10837echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10838if test $ac_cv_type_mode_t = yes; then
10839 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010840else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010841
10842cat >>confdefs.h <<_ACEOF
10843#define mode_t int
10844_ACEOF
10845
10846fi
10847
10848echo "$as_me:$LINENO: checking for off_t" >&5
10849echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10850if test "${ac_cv_type_off_t+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 cat >conftest.$ac_ext <<_ACEOF
10854/* confdefs.h. */
10855_ACEOF
10856cat confdefs.h >>conftest.$ac_ext
10857cat >>conftest.$ac_ext <<_ACEOF
10858/* end confdefs.h. */
10859$ac_includes_default
10860int
10861main ()
10862{
10863if ((off_t *) 0)
10864 return 0;
10865if (sizeof (off_t))
10866 return 0;
10867 ;
10868 return 0;
10869}
10870_ACEOF
10871rm -f conftest.$ac_objext
10872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10873 (eval $ac_compile) 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag"
10881 || test ! -s conftest.err'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; } &&
10887 { ac_try='test -s conftest.$ac_objext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010893 ac_cv_type_off_t=yes
10894else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010895 echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010897
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010898ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010899fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010901fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010902echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10903echo "${ECHO_T}$ac_cv_type_off_t" >&6
10904if test $ac_cv_type_off_t = yes; then
10905 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010906else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010907
10908cat >>confdefs.h <<_ACEOF
10909#define off_t long
10910_ACEOF
10911
10912fi
10913
10914echo "$as_me:$LINENO: checking for pid_t" >&5
10915echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10916if test "${ac_cv_type_pid_t+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10918else
10919 cat >conftest.$ac_ext <<_ACEOF
10920/* confdefs.h. */
10921_ACEOF
10922cat confdefs.h >>conftest.$ac_ext
10923cat >>conftest.$ac_ext <<_ACEOF
10924/* end confdefs.h. */
10925$ac_includes_default
10926int
10927main ()
10928{
10929if ((pid_t *) 0)
10930 return 0;
10931if (sizeof (pid_t))
10932 return 0;
10933 ;
10934 return 0;
10935}
10936_ACEOF
10937rm -f conftest.$ac_objext
10938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10939 (eval $ac_compile) 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -z "$ac_c_werror_flag"
10947 || test ! -s conftest.err'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010959 ac_cv_type_pid_t=yes
10960else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010961 echo "$as_me: failed program was:" >&5
10962sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010963
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010964ac_cv_type_pid_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010965fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010967fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010968echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10969echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10970if test $ac_cv_type_pid_t = yes; then
10971 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010972else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010973
10974cat >>confdefs.h <<_ACEOF
10975#define pid_t int
10976_ACEOF
10977
10978fi
10979
10980echo "$as_me:$LINENO: checking for size_t" >&5
10981echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10982if test "${ac_cv_type_size_t+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984else
10985 cat >conftest.$ac_ext <<_ACEOF
10986/* confdefs.h. */
10987_ACEOF
10988cat confdefs.h >>conftest.$ac_ext
10989cat >>conftest.$ac_ext <<_ACEOF
10990/* end confdefs.h. */
10991$ac_includes_default
10992int
10993main ()
10994{
10995if ((size_t *) 0)
10996 return 0;
10997if (sizeof (size_t))
10998 return 0;
10999 ;
11000 return 0;
11001}
11002_ACEOF
11003rm -f conftest.$ac_objext
11004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005 (eval $ac_compile) 2>conftest.er1
11006 ac_status=$?
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } &&
11012 { ac_try='test -z "$ac_c_werror_flag"
11013 || test ! -s conftest.err'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest.$ac_objext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011025 ac_cv_type_size_t=yes
11026else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011027 echo "$as_me: failed program was:" >&5
11028sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011029
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011030ac_cv_type_size_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011031fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011033fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011034echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11035echo "${ECHO_T}$ac_cv_type_size_t" >&6
11036if test $ac_cv_type_size_t = yes; then
11037 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011038else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011039
11040cat >>confdefs.h <<_ACEOF
11041#define size_t unsigned
11042_ACEOF
11043
11044fi
11045
11046echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11047echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11048if test "${ac_cv_type_uid_t+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050else
11051 cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011057#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011058
11059_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011061 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011062 ac_cv_type_uid_t=yes
11063else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011064 ac_cv_type_uid_t=no
11065fi
11066rm -f conftest*
11067
11068fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011069echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11070echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011071if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011072
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011073cat >>confdefs.h <<\_ACEOF
11074#define uid_t int
11075_ACEOF
11076
11077
11078cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011079#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011080_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011081
11082fi
11083
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011084echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11085echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11086if test "${ac_cv_header_time+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011088else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011089 cat >conftest.$ac_ext <<_ACEOF
11090/* confdefs.h. */
11091_ACEOF
11092cat confdefs.h >>conftest.$ac_ext
11093cat >>conftest.$ac_ext <<_ACEOF
11094/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011095#include <sys/types.h>
11096#include <sys/time.h>
11097#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011098
11099int
11100main ()
11101{
11102if ((struct tm *) 0)
11103return 0;
11104 ;
11105 return 0;
11106}
11107_ACEOF
11108rm -f conftest.$ac_objext
11109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11110 (eval $ac_compile) 2>conftest.er1
11111 ac_status=$?
11112 grep -v '^ *+' conftest.er1 >conftest.err
11113 rm -f conftest.er1
11114 cat conftest.err >&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
11117 { ac_try='test -z "$ac_c_werror_flag"
11118 || test ! -s conftest.err'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; } &&
11124 { ac_try='test -s conftest.$ac_objext'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011130 ac_cv_header_time=yes
11131else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011132 echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011134
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011135ac_cv_header_time=no
11136fi
11137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11138fi
11139echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11140echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011141if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011142
11143cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011144#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011145_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011146
11147fi
11148
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011149echo "$as_me:$LINENO: checking for ino_t" >&5
11150echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11151if test "${ac_cv_type_ino_t+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011153else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011154 cat >conftest.$ac_ext <<_ACEOF
11155/* confdefs.h. */
11156_ACEOF
11157cat confdefs.h >>conftest.$ac_ext
11158cat >>conftest.$ac_ext <<_ACEOF
11159/* end confdefs.h. */
11160$ac_includes_default
11161int
11162main ()
11163{
11164if ((ino_t *) 0)
11165 return 0;
11166if (sizeof (ino_t))
11167 return 0;
11168 ;
11169 return 0;
11170}
11171_ACEOF
11172rm -f conftest.$ac_objext
11173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174 (eval $ac_compile) 2>conftest.er1
11175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag"
11182 || test ! -s conftest.err'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011194 ac_cv_type_ino_t=yes
11195else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011196 echo "$as_me: failed program was:" >&5
11197sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011198
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011199ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011200fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011202fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011203echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11204echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11205if test $ac_cv_type_ino_t = yes; then
11206 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011207else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011208
11209cat >>confdefs.h <<_ACEOF
11210#define ino_t long
11211_ACEOF
11212
11213fi
11214
11215echo "$as_me:$LINENO: checking for dev_t" >&5
11216echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11217if test "${ac_cv_type_dev_t+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else
11220 cat >conftest.$ac_ext <<_ACEOF
11221/* confdefs.h. */
11222_ACEOF
11223cat confdefs.h >>conftest.$ac_ext
11224cat >>conftest.$ac_ext <<_ACEOF
11225/* end confdefs.h. */
11226$ac_includes_default
11227int
11228main ()
11229{
11230if ((dev_t *) 0)
11231 return 0;
11232if (sizeof (dev_t))
11233 return 0;
11234 ;
11235 return 0;
11236}
11237_ACEOF
11238rm -f conftest.$ac_objext
11239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11240 (eval $ac_compile) 2>conftest.er1
11241 ac_status=$?
11242 grep -v '^ *+' conftest.er1 >conftest.err
11243 rm -f conftest.er1
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -z "$ac_c_werror_flag"
11248 || test ! -s conftest.err'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest.$ac_objext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011260 ac_cv_type_dev_t=yes
11261else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011262 echo "$as_me: failed program was:" >&5
11263sed 's/^/| /' conftest.$ac_ext >&5
11264
11265ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011266fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011268fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011269echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11270echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11271if test $ac_cv_type_dev_t = yes; then
11272 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011273else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011274
11275cat >>confdefs.h <<_ACEOF
11276#define dev_t unsigned
11277_ACEOF
11278
11279fi
11280
11281
11282echo "$as_me:$LINENO: checking for rlim_t" >&5
11283echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11284if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11285 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11286echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11287else
11288 cat >conftest.$ac_ext <<_ACEOF
11289/* confdefs.h. */
11290_ACEOF
11291cat confdefs.h >>conftest.$ac_ext
11292cat >>conftest.$ac_ext <<_ACEOF
11293/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011294
11295#include <sys/types.h>
11296#if STDC_HEADERS
11297#include <stdlib.h>
11298#include <stddef.h>
11299#endif
11300#ifdef HAVE_SYS_RESOURCE_H
11301#include <sys/resource.h>
11302#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011303
11304_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011306 $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 +000011307 ac_cv_type_rlim_t=yes
11308else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011309 ac_cv_type_rlim_t=no
11310fi
11311rm -f conftest*
11312
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011313 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11314echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011315fi
11316if test $ac_cv_type_rlim_t = no; then
11317 cat >> confdefs.h <<\EOF
11318#define rlim_t unsigned long
11319EOF
11320fi
11321
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011322echo "$as_me:$LINENO: checking for stack_t" >&5
11323echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011324if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011325 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11326echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011327else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011328 cat >conftest.$ac_ext <<_ACEOF
11329/* confdefs.h. */
11330_ACEOF
11331cat confdefs.h >>conftest.$ac_ext
11332cat >>conftest.$ac_ext <<_ACEOF
11333/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011334
11335#include <sys/types.h>
11336#if STDC_HEADERS
11337#include <stdlib.h>
11338#include <stddef.h>
11339#endif
11340#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011341
11342_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011344 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011345 ac_cv_type_stack_t=yes
11346else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011347 ac_cv_type_stack_t=no
11348fi
11349rm -f conftest*
11350
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011351 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11352echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011353fi
11354if test $ac_cv_type_stack_t = no; then
11355 cat >> confdefs.h <<\EOF
11356#define stack_t struct sigaltstack
11357EOF
11358fi
11359
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011360echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11361echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11362cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011368
11369#include <sys/types.h>
11370#if STDC_HEADERS
11371#include <stdlib.h>
11372#include <stddef.h>
11373#endif
11374#include <signal.h>
11375#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011376
11377int
11378main ()
11379{
11380stack_t sigstk; sigstk.ss_base = 0;
11381 ;
11382 return 0;
11383}
11384_ACEOF
11385rm -f conftest.$ac_objext
11386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11387 (eval $ac_compile) 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -z "$ac_c_werror_flag"
11395 || test ! -s conftest.err'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; } &&
11401 { ac_try='test -s conftest.$ac_objext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 echo "$as_me:$LINENO: result: yes" >&5
11408echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011409#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011410_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011411
11412else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011413 echo "$as_me: failed program was:" >&5
11414sed 's/^/| /' conftest.$ac_ext >&5
11415
11416echo "$as_me:$LINENO: result: no" >&5
11417echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011418fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011420
11421olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011422echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11423echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11424
Bram Moolenaar071d4272004-06-13 20:20:40 +000011425# Check whether --with-tlib or --without-tlib was given.
11426if test "${with_tlib+set}" = set; then
11427 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011428
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011429fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011430if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011431 echo "$as_me:$LINENO: result: $with_tlib" >&5
11432echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011433 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011434 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11435echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11436 cat >conftest.$ac_ext <<_ACEOF
11437/* confdefs.h. */
11438_ACEOF
11439cat confdefs.h >>conftest.$ac_ext
11440cat >>conftest.$ac_ext <<_ACEOF
11441/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011442
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011443int
11444main ()
11445{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011446
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011447 ;
11448 return 0;
11449}
11450_ACEOF
11451rm -f conftest.$ac_objext conftest$ac_exeext
11452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11453 (eval $ac_link) 2>conftest.er1
11454 ac_status=$?
11455 grep -v '^ *+' conftest.er1 >conftest.err
11456 rm -f conftest.er1
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -z "$ac_c_werror_flag"
11461 || test ! -s conftest.err'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; } &&
11467 { ac_try='test -s conftest$ac_exeext'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 echo "$as_me:$LINENO: result: OK" >&5
11474echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011475else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011476 echo "$as_me: failed program was:" >&5
11477sed 's/^/| /' conftest.$ac_ext >&5
11478
11479{ { echo "$as_me:$LINENO: error: FAILED" >&5
11480echo "$as_me: error: FAILED" >&2;}
11481 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011482fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011483rm -f conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011485 olibs="$LIBS"
11486else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011487 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11488echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011489 case "`uname -s 2>/dev/null`" in
11490 OSF1) tlibs="ncurses curses termlib termcap";;
11491 *) tlibs="ncurses termlib termcap curses";;
11492 esac
11493 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011494
11495as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11496echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11497echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11498if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011500else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011501 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000011502LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011503cat >conftest.$ac_ext <<_ACEOF
11504/* confdefs.h. */
11505_ACEOF
11506cat confdefs.h >>conftest.$ac_ext
11507cat >>conftest.$ac_ext <<_ACEOF
11508/* end confdefs.h. */
11509
Bram Moolenaar071d4272004-06-13 20:20:40 +000011510/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011511#ifdef __cplusplus
11512extern "C"
11513#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011514/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011515 builtin and then its argument prototype would still apply. */
11516char tgetent ();
11517int
11518main ()
11519{
11520tgetent ();
11521 ;
11522 return 0;
11523}
11524_ACEOF
11525rm -f conftest.$ac_objext conftest$ac_exeext
11526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11527 (eval $ac_link) 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_c_werror_flag"
11535 || test ! -s conftest.err'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; } &&
11541 { ac_try='test -s conftest$ac_exeext'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011548else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011549 echo "$as_me: failed program was:" >&5
11550sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011551
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011552eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011553fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011554rm -f conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11556LIBS=$ac_check_lib_save_LIBS
11557fi
11558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11559echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11560if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11561 cat >>confdefs.h <<_ACEOF
11562#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11563_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011564
11565 LIBS="-l${libname} $LIBS"
11566
Bram Moolenaar071d4272004-06-13 20:20:40 +000011567fi
11568
11569 if test "x$olibs" != "x$LIBS"; then
11570 if test "$cross_compiling" = yes; then
11571 res="FAIL"
11572else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011573 cat >conftest.$ac_ext <<_ACEOF
11574/* confdefs.h. */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011579
11580#ifdef HAVE_TERMCAP_H
11581# include <termcap.h>
11582#endif
11583main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011584_ACEOF
11585rm -f conftest$ac_exeext
11586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11587 (eval $ac_link) 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011596 res="OK"
11597else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011598 echo "$as_me: program exited with status $ac_status" >&5
11599echo "$as_me: failed program was:" >&5
11600sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011601
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011602( exit $ac_status )
11603res="FAIL"
11604fi
11605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11606fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011607 if test "$res" = "OK"; then
11608 break
11609 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011610 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11611echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011612 LIBS="$olibs"
11613 fi
11614 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011615 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011616 echo "$as_me:$LINENO: result: no terminal library found" >&5
11617echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011618 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011619fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011620
11621if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011622 echo "$as_me:$LINENO: checking for tgetent()" >&5
11623echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11624 cat >conftest.$ac_ext <<_ACEOF
11625/* confdefs.h. */
11626_ACEOF
11627cat confdefs.h >>conftest.$ac_ext
11628cat >>conftest.$ac_ext <<_ACEOF
11629/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011630
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011631int
11632main ()
11633{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011634char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011635 ;
11636 return 0;
11637}
11638_ACEOF
11639rm -f conftest.$ac_objext conftest$ac_exeext
11640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try='test -z "$ac_c_werror_flag"
11649 || test ! -s conftest.err'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try='test -s conftest$ac_exeext'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11661 echo "$as_me:$LINENO: result: yes" >&5
11662echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011663else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011664 echo "$as_me: failed program was:" >&5
11665sed 's/^/| /' conftest.$ac_ext >&5
11666
11667{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011668 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011669 Or specify the name of the library with --with-tlib." >&5
11670echo "$as_me: error: NOT FOUND!
11671 You need to install a terminal library; for example ncurses.
11672 Or specify the name of the library with --with-tlib." >&2;}
11673 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011674fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011675rm -f conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011677fi
11678
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011679echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11680echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011681if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011682 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11683echo "$as_me: error: failed to compile test program." >&2;}
11684 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011685else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011686 cat >conftest.$ac_ext <<_ACEOF
11687/* confdefs.h. */
11688_ACEOF
11689cat confdefs.h >>conftest.$ac_ext
11690cat >>conftest.$ac_ext <<_ACEOF
11691/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011692
11693#ifdef HAVE_TERMCAP_H
11694# include <termcap.h>
11695#endif
11696main()
11697{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011698_ACEOF
11699rm -f conftest$ac_exeext
11700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11701 (eval $ac_link) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11711echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011712else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011713 echo "$as_me: program exited with status $ac_status" >&5
11714echo "$as_me: failed program was:" >&5
11715sed 's/^/| /' conftest.$ac_ext >&5
11716
11717( exit $ac_status )
11718echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11719echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011720#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011721_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011722
11723fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011724rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011725fi
11726
Bram Moolenaar071d4272004-06-13 20:20:40 +000011727if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011728 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11729echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011730 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011731 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11732echo "$as_me: error: failed to compile test program." >&2;}
11733 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011734else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011735 cat >conftest.$ac_ext <<_ACEOF
11736/* confdefs.h. */
11737_ACEOF
11738cat confdefs.h >>conftest.$ac_ext
11739cat >>conftest.$ac_ext <<_ACEOF
11740/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011741
11742#ifdef HAVE_TERMCAP_H
11743# include <termcap.h>
11744#endif
11745main()
11746{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011747_ACEOF
11748rm -f conftest$ac_exeext
11749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11750 (eval $ac_link) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; }; then
11759 echo "$as_me:$LINENO: result: zero" >&5
11760echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011761#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011762_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011763
11764else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011765 echo "$as_me: program exited with status $ac_status" >&5
11766echo "$as_me: failed program was:" >&5
11767sed 's/^/| /' conftest.$ac_ext >&5
11768
11769( exit $ac_status )
11770echo "$as_me:$LINENO: result: non-zero" >&5
11771echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011772fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011773rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11774fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011775fi
11776
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011777echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11778echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11779cat >conftest.$ac_ext <<_ACEOF
11780/* confdefs.h. */
11781_ACEOF
11782cat confdefs.h >>conftest.$ac_ext
11783cat >>conftest.$ac_ext <<_ACEOF
11784/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011785
11786#ifdef HAVE_TERMCAP_H
11787# include <termcap.h>
11788#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011789
11790int
11791main ()
11792{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011793ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011794 ;
11795 return 0;
11796}
11797_ACEOF
11798rm -f conftest.$ac_objext conftest$ac_exeext
11799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800 (eval $ac_link) 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag"
11808 || test ! -s conftest.err'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try='test -s conftest$ac_exeext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 echo "$as_me:$LINENO: result: yes" >&5
11821echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011822#define HAVE_OSPEED 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011823_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011824
11825else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011826 echo "$as_me: failed program was:" >&5
11827sed 's/^/| /' conftest.$ac_ext >&5
11828
11829echo "$as_me:$LINENO: result: no" >&5
11830echo "${ECHO_T}no" >&6
11831 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11832echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11833 cat >conftest.$ac_ext <<_ACEOF
11834/* confdefs.h. */
11835_ACEOF
11836cat confdefs.h >>conftest.$ac_ext
11837cat >>conftest.$ac_ext <<_ACEOF
11838/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011839
11840#ifdef HAVE_TERMCAP_H
11841# include <termcap.h>
11842#endif
11843extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011844
11845int
11846main ()
11847{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011848ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011849 ;
11850 return 0;
11851}
11852_ACEOF
11853rm -f conftest.$ac_objext conftest$ac_exeext
11854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag"
11863 || test ! -s conftest.err'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 echo "$as_me:$LINENO: result: yes" >&5
11876echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011877#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011878_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011879
11880else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011881 echo "$as_me: failed program was:" >&5
11882sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011883
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011884echo "$as_me:$LINENO: result: no" >&5
11885echo "${ECHO_T}no" >&6
11886fi
11887rm -f conftest.err conftest.$ac_objext \
11888 conftest$ac_exeext conftest.$ac_ext
11889
11890fi
11891rm -f conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11893
11894echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11895echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11896cat >conftest.$ac_ext <<_ACEOF
11897/* confdefs.h. */
11898_ACEOF
11899cat confdefs.h >>conftest.$ac_ext
11900cat >>conftest.$ac_ext <<_ACEOF
11901/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011902
11903#ifdef HAVE_TERMCAP_H
11904# include <termcap.h>
11905#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011906
11907int
11908main ()
11909{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011910if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011911 ;
11912 return 0;
11913}
11914_ACEOF
11915rm -f conftest.$ac_objext conftest$ac_exeext
11916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917 (eval $ac_link) 2>conftest.er1
11918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag"
11925 || test ! -s conftest.err'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; } &&
11931 { ac_try='test -s conftest$ac_exeext'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 echo "$as_me:$LINENO: result: yes" >&5
11938echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011939#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011940_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011941
11942else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011943 echo "$as_me: failed program was:" >&5
11944sed 's/^/| /' conftest.$ac_ext >&5
11945
11946echo "$as_me:$LINENO: result: no" >&5
11947echo "${ECHO_T}no" >&6
11948 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
11949echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
11950 cat >conftest.$ac_ext <<_ACEOF
11951/* confdefs.h. */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011956
11957#ifdef HAVE_TERMCAP_H
11958# include <termcap.h>
11959#endif
11960extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011961
11962int
11963main ()
11964{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011965if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011966 ;
11967 return 0;
11968}
11969_ACEOF
11970rm -f conftest.$ac_objext conftest$ac_exeext
11971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11972 (eval $ac_link) 2>conftest.er1
11973 ac_status=$?
11974 grep -v '^ *+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } &&
11979 { ac_try='test -z "$ac_c_werror_flag"
11980 || test ! -s conftest.err'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest$ac_exeext'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 echo "$as_me:$LINENO: result: yes" >&5
11993echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011994#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011995_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011996
11997else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011998 echo "$as_me: failed program was:" >&5
11999sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012001echo "$as_me:$LINENO: result: no" >&5
12002echo "${ECHO_T}no" >&6
12003fi
12004rm -f conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12006
12007fi
12008rm -f conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
12010
12011echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12012echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12013cat >conftest.$ac_ext <<_ACEOF
12014/* confdefs.h. */
12015_ACEOF
12016cat confdefs.h >>conftest.$ac_ext
12017cat >>conftest.$ac_ext <<_ACEOF
12018/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012019
12020#ifdef HAVE_TERMCAP_H
12021# include <termcap.h>
12022#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012023
12024int
12025main ()
12026{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012027extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012028 ;
12029 return 0;
12030}
12031_ACEOF
12032rm -f conftest.$ac_objext
12033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12034 (eval $ac_compile) 2>conftest.er1
12035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_c_werror_flag"
12042 || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest.$ac_objext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 echo "$as_me:$LINENO: result: yes" >&5
12055echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012056#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012057_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012058
12059else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012060 echo "$as_me: failed program was:" >&5
12061sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012062
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012063echo "$as_me:$LINENO: result: no" >&5
12064echo "${ECHO_T}no" >&6
12065fi
12066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12067
12068echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12069echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12070cat >conftest.$ac_ext <<_ACEOF
12071/* confdefs.h. */
12072_ACEOF
12073cat confdefs.h >>conftest.$ac_ext
12074cat >>conftest.$ac_ext <<_ACEOF
12075/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012076
12077#include <sys/types.h>
12078#include <sys/time.h>
12079#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012080int
12081main ()
12082{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012083
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012084 ;
12085 return 0;
12086}
12087_ACEOF
12088rm -f conftest.$ac_objext
12089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12090 (eval $ac_compile) 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_c_werror_flag"
12098 || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest.$ac_objext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 echo "$as_me:$LINENO: result: yes" >&5
12111echo "${ECHO_T}yes" >&6
12112 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012113#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012114_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012115
12116else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012117 echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
12120echo "$as_me:$LINENO: result: no" >&5
12121echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012122fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012124
12125
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012126echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12127echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012128if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012129 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012130#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012131_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012132
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012133 echo "$as_me:$LINENO: result: yes" >&5
12134echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012135else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012136 echo "$as_me:$LINENO: result: no" >&5
12137echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012138fi
12139
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012140echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12141echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012142if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012143 cat >conftest.$ac_ext <<_ACEOF
12144/* confdefs.h. */
12145_ACEOF
12146cat confdefs.h >>conftest.$ac_ext
12147cat >>conftest.$ac_ext <<_ACEOF
12148/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012149
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012150int
12151main ()
12152{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012153ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012154 ;
12155 return 0;
12156}
12157_ACEOF
12158rm -f conftest.$ac_objext conftest$ac_exeext
12159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12160 (eval $ac_link) 2>conftest.er1
12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try='test -z "$ac_c_werror_flag"
12168 || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest$ac_exeext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 echo "$as_me:$LINENO: result: yes" >&5
12181echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012182#define HAVE_SVR4_PTYS 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 \
12193 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012194else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012195 echo "$as_me:$LINENO: result: no" >&5
12196echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012197fi
12198
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012199echo "$as_me:$LINENO: checking for ptyranges" >&5
12200echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012201if test -d /dev/ptym ; then
12202 pdir='/dev/ptym'
12203else
12204 pdir='/dev'
12205fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012206cat >conftest.$ac_ext <<_ACEOF
12207/* confdefs.h. */
12208_ACEOF
12209cat confdefs.h >>conftest.$ac_ext
12210cat >>conftest.$ac_ext <<_ACEOF
12211/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012212#ifdef M_UNIX
12213 yes;
12214#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012215
12216_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012218 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012219 ptys=`echo /dev/ptyp??`
12220else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012221 ptys=`echo $pdir/pty??`
12222fi
12223rm -f conftest*
12224
12225if test "$ptys" != "$pdir/pty??" ; then
12226 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12227 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012228 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012229#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012230_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012231
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012232 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012233#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012234_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012235
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012236 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12237echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012238else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012239 echo "$as_me:$LINENO: result: don't know" >&5
12240echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012241fi
12242
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012243echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12244echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012245rm -f conftest_grp
12246if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012247 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12248echo "$as_me: error: failed to compile test program" >&2;}
12249 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012250else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012251 cat >conftest.$ac_ext <<_ACEOF
12252/* confdefs.h. */
12253_ACEOF
12254cat confdefs.h >>conftest.$ac_ext
12255cat >>conftest.$ac_ext <<_ACEOF
12256/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012257
12258#include <sys/types.h>
12259#include <sys/stat.h>
12260#include <stdio.h>
12261main()
12262{
12263 struct stat sb;
12264 char *x,*ttyname();
12265 int om, m;
12266 FILE *fp;
12267
12268 if (!(x = ttyname(0))) exit(1);
12269 if (stat(x, &sb)) exit(1);
12270 om = sb.st_mode;
12271 if (om & 002) exit(0);
12272 m = system("mesg y");
12273 if (m == -1 || m == 127) exit(1);
12274 if (stat(x, &sb)) exit(1);
12275 m = sb.st_mode;
12276 if (chmod(x, om)) exit(1);
12277 if (m & 002) exit(0);
12278 if (sb.st_gid == getgid()) exit(1);
12279 if (!(fp=fopen("conftest_grp", "w")))
12280 exit(1);
12281 fprintf(fp, "%d\n", sb.st_gid);
12282 fclose(fp);
12283 exit(0);
12284}
12285
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012286_ACEOF
12287rm -f conftest$ac_exeext
12288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12289 (eval $ac_link) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; }; then
12298
Bram Moolenaar071d4272004-06-13 20:20:40 +000012299 if test -f conftest_grp; then
12300 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012301 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12302echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12303 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012304#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012305_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012306
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012307 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012308#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012309_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012310
12311 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012312 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12313echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012314 fi
12315
12316else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012317 echo "$as_me: program exited with status $ac_status" >&5
12318echo "$as_me: failed program was:" >&5
12319sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012320
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012321( exit $ac_status )
12322echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12323echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12324fi
12325rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12326fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012327rm -f conftest_grp
12328
12329
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012330echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12331echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12332if test "${ac_cv_type_signal+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012334else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012335 cat >conftest.$ac_ext <<_ACEOF
12336/* confdefs.h. */
12337_ACEOF
12338cat confdefs.h >>conftest.$ac_ext
12339cat >>conftest.$ac_ext <<_ACEOF
12340/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012341#include <sys/types.h>
12342#include <signal.h>
12343#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012344# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000012345#endif
12346#ifdef __cplusplus
12347extern "C" void (*signal (int, void (*)(int)))(int);
12348#else
12349void (*signal ()) ();
12350#endif
12351
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012352int
12353main ()
12354{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012355int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012356 ;
12357 return 0;
12358}
12359_ACEOF
12360rm -f conftest.$ac_objext
12361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12362 (eval $ac_compile) 2>conftest.er1
12363 ac_status=$?
12364 grep -v '^ *+' conftest.er1 >conftest.err
12365 rm -f conftest.er1
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_c_werror_flag"
12370 || test ! -s conftest.err'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012382 ac_cv_type_signal=void
12383else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012384 echo "$as_me: failed program was:" >&5
12385sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012386
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012387ac_cv_type_signal=int
12388fi
12389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12390fi
12391echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12392echo "${ECHO_T}$ac_cv_type_signal" >&6
12393
12394cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012395#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012396_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012397
12398
12399
12400if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012401 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012402#define SIGRETURN return
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012403_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012404
12405else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012406 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012407#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012408_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012409
12410fi
12411
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012412echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12413echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12414cat >conftest.$ac_ext <<_ACEOF
12415/* confdefs.h. */
12416_ACEOF
12417cat confdefs.h >>conftest.$ac_ext
12418cat >>conftest.$ac_ext <<_ACEOF
12419/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012420
12421#include <signal.h>
12422test_sig()
12423{
12424 struct sigcontext *scont;
12425 scont = (struct sigcontext *)0;
12426 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012427}
12428int
12429main ()
12430{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012431
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012432 ;
12433 return 0;
12434}
12435_ACEOF
12436rm -f conftest.$ac_objext
12437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12438 (eval $ac_compile) 2>conftest.er1
12439 ac_status=$?
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try='test -z "$ac_c_werror_flag"
12446 || test ! -s conftest.err'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try='test -s conftest.$ac_objext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 echo "$as_me:$LINENO: result: yes" >&5
12459echo "${ECHO_T}yes" >&6
12460 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012461#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012462_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012463
12464else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012465 echo "$as_me: failed program was:" >&5
12466sed 's/^/| /' conftest.$ac_ext >&5
12467
12468echo "$as_me:$LINENO: result: no" >&5
12469echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012470fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012472
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012473echo "$as_me:$LINENO: checking getcwd implementation" >&5
12474echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012475if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012476 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12477echo "$as_me: error: failed to compile test program" >&2;}
12478 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012479else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012480 cat >conftest.$ac_ext <<_ACEOF
12481/* confdefs.h. */
12482_ACEOF
12483cat confdefs.h >>conftest.$ac_ext
12484cat >>conftest.$ac_ext <<_ACEOF
12485/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012486
12487char *dagger[] = { "IFS=pwd", 0 };
12488main()
12489{
12490 char buffer[500];
12491 extern char **environ;
12492 environ = dagger;
12493 return getcwd(buffer, 500) ? 0 : 1;
12494}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012495_ACEOF
12496rm -f conftest$ac_exeext
12497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12498 (eval $ac_link) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 echo "$as_me:$LINENO: result: it is usable" >&5
12508echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012509else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012510 echo "$as_me: program exited with status $ac_status" >&5
12511echo "$as_me: failed program was:" >&5
12512sed 's/^/| /' conftest.$ac_ext >&5
12513
12514( exit $ac_status )
12515echo "$as_me:$LINENO: result: it stinks" >&5
12516echo "${ECHO_T}it stinks" >&6
12517 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012518#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012519_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012520
12521fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012522rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012523fi
12524
12525
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
Bram Moolenaar071d4272004-06-13 20:20:40 +000012571for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12572 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12573 memset nanosleep opendir putenv qsort readlink select setenv \
12574 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000012575 sigvec strcasecmp strerror strftime stricmp strncasecmp \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000012576 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12577 usleep utime utimes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012578do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12580echo "$as_me:$LINENO: checking for $ac_func" >&5
12581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12582if eval "test \"\${$as_ac_var+set}\" = set"; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012584else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012585 cat >conftest.$ac_ext <<_ACEOF
12586/* confdefs.h. */
12587_ACEOF
12588cat confdefs.h >>conftest.$ac_ext
12589cat >>conftest.$ac_ext <<_ACEOF
12590/* end confdefs.h. */
12591/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12593#define $ac_func innocuous_$ac_func
12594
Bram Moolenaar071d4272004-06-13 20:20:40 +000012595/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012596 which can conflict with char $ac_func (); below.
12597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12598 <limits.h> exists even on freestanding compilers. */
12599
12600#ifdef __STDC__
12601# include <limits.h>
12602#else
12603# include <assert.h>
12604#endif
12605
12606#undef $ac_func
12607
Bram Moolenaar071d4272004-06-13 20:20:40 +000012608/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012609#ifdef __cplusplus
12610extern "C"
12611{
12612#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012613/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012614 builtin and then its argument prototype would still apply. */
12615char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000012616/* The GNU C library defines this for functions which it implements
12617 to always fail with ENOSYS. Some functions are actually named
12618 something starting with __ and the normal name is an alias. */
12619#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12620choke me
12621#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012622char (*f) () = $ac_func;
12623#endif
12624#ifdef __cplusplus
12625}
Bram Moolenaar071d4272004-06-13 20:20:40 +000012626#endif
12627
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012628int
12629main ()
12630{
12631return f != $ac_func;
12632 ;
12633 return 0;
12634}
12635_ACEOF
12636rm -f conftest.$ac_objext conftest$ac_exeext
12637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12638 (eval $ac_link) 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
12645 { ac_try='test -z "$ac_c_werror_flag"
12646 || test ! -s conftest.err'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012659else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012660 echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012662
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012663eval "$as_ac_var=no"
12664fi
12665rm -f conftest.err conftest.$ac_objext \
12666 conftest$ac_exeext conftest.$ac_ext
12667fi
12668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12669echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12670if test `eval echo '${'$as_ac_var'}'` = yes; then
12671 cat >>confdefs.h <<_ACEOF
12672#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12673_ACEOF
12674
Bram Moolenaar071d4272004-06-13 20:20:40 +000012675fi
12676done
12677
12678
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012679echo "$as_me:$LINENO: checking for st_blksize" >&5
12680echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12681cat >conftest.$ac_ext <<_ACEOF
12682/* confdefs.h. */
12683_ACEOF
12684cat confdefs.h >>conftest.$ac_ext
12685cat >>conftest.$ac_ext <<_ACEOF
12686/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012687#include <sys/types.h>
12688#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012689int
12690main ()
12691{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012692 struct stat st;
12693 int n;
12694
12695 stat("/", &st);
12696 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012697 ;
12698 return 0;
12699}
12700_ACEOF
12701rm -f conftest.$ac_objext
12702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag"
12711 || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try='test -s conftest.$ac_objext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 echo "$as_me:$LINENO: result: yes" >&5
12724echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012725#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012726_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012727
12728else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
12732echo "$as_me:$LINENO: result: no" >&5
12733echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012734fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012736
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012737echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12738echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012739if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012740 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12741echo "$as_me: error: failed to compile test program" >&2;}
12742 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012743else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012744 cat >conftest.$ac_ext <<_ACEOF
12745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012750#include <sys/types.h>
12751#include <sys/stat.h>
12752main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012753_ACEOF
12754rm -f conftest$ac_exeext
12755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 echo "$as_me:$LINENO: result: yes" >&5
12766echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012767#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012768_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012769
12770else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012771 echo "$as_me: program exited with status $ac_status" >&5
12772echo "$as_me: failed program was:" >&5
12773sed 's/^/| /' conftest.$ac_ext >&5
12774
12775( exit $ac_status )
12776echo "$as_me:$LINENO: result: no" >&5
12777echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012778fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012779rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012780fi
12781
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012782echo "$as_me:$LINENO: checking for iconv_open()" >&5
12783echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012784save_LIBS="$LIBS"
12785LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012786cat >conftest.$ac_ext <<_ACEOF
12787/* confdefs.h. */
12788_ACEOF
12789cat confdefs.h >>conftest.$ac_ext
12790cat >>conftest.$ac_ext <<_ACEOF
12791/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012792
12793#ifdef HAVE_ICONV_H
12794# include <iconv.h>
12795#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012796
12797int
12798main ()
12799{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012800iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012801 ;
12802 return 0;
12803}
12804_ACEOF
12805rm -f conftest.$ac_objext conftest$ac_exeext
12806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12807 (eval $ac_link) 2>conftest.er1
12808 ac_status=$?
12809 grep -v '^ *+' conftest.er1 >conftest.err
12810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -z "$ac_c_werror_flag"
12815 || test ! -s conftest.err'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; } &&
12821 { ac_try='test -s conftest$ac_exeext'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12827 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12828echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012829#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012830_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012831
12832else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012833 echo "$as_me: failed program was:" >&5
12834sed 's/^/| /' conftest.$ac_ext >&5
12835
12836LIBS="$save_LIBS"
12837 cat >conftest.$ac_ext <<_ACEOF
12838/* confdefs.h. */
12839_ACEOF
12840cat confdefs.h >>conftest.$ac_ext
12841cat >>conftest.$ac_ext <<_ACEOF
12842/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012843
12844#ifdef HAVE_ICONV_H
12845# include <iconv.h>
12846#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012847
12848int
12849main ()
12850{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012851iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012852 ;
12853 return 0;
12854}
12855_ACEOF
12856rm -f conftest.$ac_objext conftest$ac_exeext
12857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858 (eval $ac_link) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -z "$ac_c_werror_flag"
12866 || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest$ac_exeext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 echo "$as_me:$LINENO: result: yes" >&5
12879echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012880#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012881_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012882
12883else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012884 echo "$as_me: failed program was:" >&5
12885sed 's/^/| /' conftest.$ac_ext >&5
12886
12887echo "$as_me:$LINENO: result: no" >&5
12888echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012889fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012890rm -f conftest.err conftest.$ac_objext \
12891 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012892fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012893rm -f conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012895
12896
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012897echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12898echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12899cat >conftest.$ac_ext <<_ACEOF
12900/* confdefs.h. */
12901_ACEOF
12902cat confdefs.h >>conftest.$ac_ext
12903cat >>conftest.$ac_ext <<_ACEOF
12904/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012905
12906#ifdef HAVE_LANGINFO_H
12907# include <langinfo.h>
12908#endif
12909
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012910int
12911main ()
12912{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012913char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012914 ;
12915 return 0;
12916}
12917_ACEOF
12918rm -f conftest.$ac_objext conftest$ac_exeext
12919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920 (eval $ac_link) 2>conftest.er1
12921 ac_status=$?
12922 grep -v '^ *+' conftest.er1 >conftest.err
12923 rm -f conftest.er1
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } &&
12927 { ac_try='test -z "$ac_c_werror_flag"
12928 || test ! -s conftest.err'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; } &&
12934 { ac_try='test -s conftest$ac_exeext'
12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 (eval $ac_try) 2>&5
12937 ac_status=$?
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; }; then
12940 echo "$as_me:$LINENO: result: yes" >&5
12941echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012942#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012943_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012944
12945else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012946 echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012948
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012949echo "$as_me:$LINENO: result: no" >&5
12950echo "${ECHO_T}no" >&6
12951fi
12952rm -f conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12954
12955echo "$as_me:$LINENO: checking --disable-acl argument" >&5
12956echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012957# Check whether --enable-acl or --disable-acl was given.
12958if test "${enable_acl+set}" = set; then
12959 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012960
Bram Moolenaar071d4272004-06-13 20:20:40 +000012961else
12962 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012963fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000012964if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012965echo "$as_me:$LINENO: result: no" >&5
12966echo "${ECHO_T}no" >&6
12967echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
12968echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
12969if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012971else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012972 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000012973LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012974cat >conftest.$ac_ext <<_ACEOF
12975/* confdefs.h. */
12976_ACEOF
12977cat confdefs.h >>conftest.$ac_ext
12978cat >>conftest.$ac_ext <<_ACEOF
12979/* end confdefs.h. */
12980
Bram Moolenaar071d4272004-06-13 20:20:40 +000012981/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012982#ifdef __cplusplus
12983extern "C"
12984#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012985/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012986 builtin and then its argument prototype would still apply. */
12987char acl_get_file ();
12988int
12989main ()
12990{
12991acl_get_file ();
12992 ;
12993 return 0;
12994}
12995_ACEOF
12996rm -f conftest.$ac_objext conftest$ac_exeext
12997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_c_werror_flag"
13006 || test ! -s conftest.err'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try='test -s conftest$ac_exeext'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013019else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013020 echo "$as_me: failed program was:" >&5
13021sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013022
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013023ac_cv_lib_posix1e_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013024fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013025rm -f conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13027LIBS=$ac_check_lib_save_LIBS
13028fi
13029echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13030echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13031if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013032 LIBS="$LIBS -lposix1e"
13033else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013034 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13035echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13036if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013038else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013039 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013040LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013041cat >conftest.$ac_ext <<_ACEOF
13042/* confdefs.h. */
13043_ACEOF
13044cat confdefs.h >>conftest.$ac_ext
13045cat >>conftest.$ac_ext <<_ACEOF
13046/* end confdefs.h. */
13047
Bram Moolenaar071d4272004-06-13 20:20:40 +000013048/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013049#ifdef __cplusplus
13050extern "C"
13051#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013052/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013053 builtin and then its argument prototype would still apply. */
13054char acl_get_file ();
13055int
13056main ()
13057{
13058acl_get_file ();
13059 ;
13060 return 0;
13061}
13062_ACEOF
13063rm -f conftest.$ac_objext conftest$ac_exeext
13064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13065 (eval $ac_link) 2>conftest.er1
13066 ac_status=$?
13067 grep -v '^ *+' conftest.er1 >conftest.err
13068 rm -f conftest.er1
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
13072 { ac_try='test -z "$ac_c_werror_flag"
13073 || test ! -s conftest.err'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest$ac_exeext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013086else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013087 echo "$as_me: failed program was:" >&5
13088sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013089
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013090ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013091fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013092rm -f conftest.err conftest.$ac_objext \
13093 conftest$ac_exeext conftest.$ac_ext
13094LIBS=$ac_check_lib_save_LIBS
13095fi
13096echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13097echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13098if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013099 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013100 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13101echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13102if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013104else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013105 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013106LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013107cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
13113
Bram Moolenaar071d4272004-06-13 20:20:40 +000013114/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013115#ifdef __cplusplus
13116extern "C"
13117#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013118/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013119 builtin and then its argument prototype would still apply. */
13120char fgetxattr ();
13121int
13122main ()
13123{
13124fgetxattr ();
13125 ;
13126 return 0;
13127}
13128_ACEOF
13129rm -f conftest.$ac_objext conftest$ac_exeext
13130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13131 (eval $ac_link) 2>conftest.er1
13132 ac_status=$?
13133 grep -v '^ *+' conftest.er1 >conftest.err
13134 rm -f conftest.er1
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
13138 { ac_try='test -z "$ac_c_werror_flag"
13139 || test ! -s conftest.err'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; } &&
13145 { ac_try='test -s conftest$ac_exeext'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; }; then
13151 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013152else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013153 echo "$as_me: failed program was:" >&5
13154sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013155
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013156ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013157fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013158rm -f conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13160LIBS=$ac_check_lib_save_LIBS
13161fi
13162echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13163echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13164if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013165 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013166fi
13167
Bram Moolenaar071d4272004-06-13 20:20:40 +000013168fi
13169
13170fi
13171
13172
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013173echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13174echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13175cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013181
13182#include <sys/types.h>
13183#ifdef HAVE_SYS_ACL_H
13184# include <sys/acl.h>
13185#endif
13186acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013187int
13188main ()
13189{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013190acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13191 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13192 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013193 ;
13194 return 0;
13195}
13196_ACEOF
13197rm -f conftest.$ac_objext conftest$ac_exeext
13198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199 (eval $ac_link) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest$ac_exeext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 echo "$as_me:$LINENO: result: yes" >&5
13220echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013221#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013222_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013223
13224else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013225 echo "$as_me: failed program was:" >&5
13226sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013227
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013228echo "$as_me:$LINENO: result: no" >&5
13229echo "${ECHO_T}no" >&6
13230fi
13231rm -f conftest.err conftest.$ac_objext \
13232 conftest$ac_exeext conftest.$ac_ext
13233
13234echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13235echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13236cat >conftest.$ac_ext <<_ACEOF
13237/* confdefs.h. */
13238_ACEOF
13239cat confdefs.h >>conftest.$ac_ext
13240cat >>conftest.$ac_ext <<_ACEOF
13241/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013242
13243#ifdef HAVE_SYS_ACL_H
13244# include <sys/acl.h>
13245#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013246int
13247main ()
13248{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013249acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013250
13251 ;
13252 return 0;
13253}
13254_ACEOF
13255rm -f conftest.$ac_objext conftest$ac_exeext
13256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13257 (eval $ac_link) 2>conftest.er1
13258 ac_status=$?
13259 grep -v '^ *+' conftest.er1 >conftest.err
13260 rm -f conftest.er1
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -z "$ac_c_werror_flag"
13265 || test ! -s conftest.err'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; } &&
13271 { ac_try='test -s conftest$ac_exeext'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13274 ac_status=$?
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13277 echo "$as_me:$LINENO: result: yes" >&5
13278echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013279#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013280_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013281
13282else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013283 echo "$as_me: failed program was:" >&5
13284sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013285
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013286echo "$as_me:$LINENO: result: no" >&5
13287echo "${ECHO_T}no" >&6
13288fi
13289rm -f conftest.err conftest.$ac_objext \
13290 conftest$ac_exeext conftest.$ac_ext
13291
13292echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13293echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13294cat >conftest.$ac_ext <<_ACEOF
13295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
13299/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013300
13301#ifdef HAVE_SYS_ACL_H
13302# include <sys/acl.h>
13303#endif
13304#ifdef HAVE_SYS_ACCESS_H
13305# include <sys/access.h>
13306#endif
13307#define _ALL_SOURCE
13308
13309#include <sys/stat.h>
13310
13311int aclsize;
13312struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013313int
13314main ()
13315{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013316aclsize = sizeof(struct acl);
13317 aclent = (void *)malloc(aclsize);
13318 statacl("foo", STX_NORMAL, aclent, aclsize);
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_AIX_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
13354
13355echo "$as_me:$LINENO: result: no" >&5
13356echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013357fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013358rm -f conftest.err conftest.$ac_objext \
13359 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013360else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013361 echo "$as_me:$LINENO: result: yes" >&5
13362echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013363fi
13364
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013365echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13366echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013367# Check whether --enable-gpm or --disable-gpm was given.
13368if test "${enable_gpm+set}" = set; then
13369 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013370
Bram Moolenaar071d4272004-06-13 20:20:40 +000013371else
13372 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013373fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013374
13375if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013376 echo "$as_me:$LINENO: result: no" >&5
13377echo "${ECHO_T}no" >&6
13378 echo "$as_me:$LINENO: checking for gpm" >&5
13379echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13380if test "${vi_cv_have_gpm+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013382else
13383 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013384 cat >conftest.$ac_ext <<_ACEOF
13385/* confdefs.h. */
13386_ACEOF
13387cat confdefs.h >>conftest.$ac_ext
13388cat >>conftest.$ac_ext <<_ACEOF
13389/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013390#include <gpm.h>
13391 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013392int
13393main ()
13394{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013395Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013396 ;
13397 return 0;
13398}
13399_ACEOF
13400rm -f conftest.$ac_objext conftest$ac_exeext
13401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13402 (eval $ac_link) 2>conftest.er1
13403 ac_status=$?
13404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try='test -z "$ac_c_werror_flag"
13410 || test ! -s conftest.err'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; } &&
13416 { ac_try='test -s conftest$ac_exeext'
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013422 vi_cv_have_gpm=yes
13423else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013424 echo "$as_me: failed program was:" >&5
13425sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013426
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013427vi_cv_have_gpm=no
13428fi
13429rm -f conftest.err conftest.$ac_objext \
13430 conftest$ac_exeext conftest.$ac_ext
13431 LIBS="$olibs"
13432
13433fi
13434echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13435echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013436 if test $vi_cv_have_gpm = yes; then
13437 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013438 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013439#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013440_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013441
13442 fi
13443else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013444 echo "$as_me:$LINENO: result: yes" >&5
13445echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013446fi
13447
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013448echo "$as_me:$LINENO: checking for rename" >&5
13449echo $ECHO_N "checking for rename... $ECHO_C" >&6
13450cat >conftest.$ac_ext <<_ACEOF
13451/* confdefs.h. */
13452_ACEOF
13453cat confdefs.h >>conftest.$ac_ext
13454cat >>conftest.$ac_ext <<_ACEOF
13455/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013456#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013457int
13458main ()
13459{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013460rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013461 ;
13462 return 0;
13463}
13464_ACEOF
13465rm -f conftest.$ac_objext conftest$ac_exeext
13466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13467 (eval $ac_link) 2>conftest.er1
13468 ac_status=$?
13469 grep -v '^ *+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } &&
13474 { ac_try='test -z "$ac_c_werror_flag"
13475 || test ! -s conftest.err'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest$ac_exeext'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; }; then
13487 echo "$as_me:$LINENO: result: yes" >&5
13488echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013489#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013490_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013491
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 +000013496echo "$as_me:$LINENO: result: no" >&5
13497echo "${ECHO_T}no" >&6
13498fi
13499rm -f conftest.err conftest.$ac_objext \
13500 conftest$ac_exeext conftest.$ac_ext
13501
13502echo "$as_me:$LINENO: checking for sysctl" >&5
13503echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13504cat >conftest.$ac_ext <<_ACEOF
13505/* confdefs.h. */
13506_ACEOF
13507cat confdefs.h >>conftest.$ac_ext
13508cat >>conftest.$ac_ext <<_ACEOF
13509/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013510#include <sys/types.h>
13511#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013512int
13513main ()
13514{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013515 int mib[2], r;
13516 size_t len;
13517
13518 mib[0] = CTL_HW;
13519 mib[1] = HW_USERMEM;
13520 len = sizeof(r);
13521 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013522
13523 ;
13524 return 0;
13525}
13526_ACEOF
13527rm -f conftest.$ac_objext
13528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 echo "$as_me:$LINENO: result: yes" >&5
13550echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013551#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013552_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013553
13554else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013555 echo "$as_me: failed program was:" >&5
13556sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013557
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013558echo "$as_me:$LINENO: result: not usable" >&5
13559echo "${ECHO_T}not usable" >&6
13560fi
13561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13562
13563echo "$as_me:$LINENO: checking for sysinfo" >&5
13564echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13565cat >conftest.$ac_ext <<_ACEOF
13566/* confdefs.h. */
13567_ACEOF
13568cat confdefs.h >>conftest.$ac_ext
13569cat >>conftest.$ac_ext <<_ACEOF
13570/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013571#include <sys/types.h>
13572#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013573int
13574main ()
13575{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013576 struct sysinfo sinfo;
13577 int t;
13578
13579 (void)sysinfo(&sinfo);
13580 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013581
13582 ;
13583 return 0;
13584}
13585_ACEOF
13586rm -f conftest.$ac_objext
13587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13588 (eval $ac_compile) 2>conftest.er1
13589 ac_status=$?
13590 grep -v '^ *+' conftest.er1 >conftest.err
13591 rm -f conftest.er1
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -z "$ac_c_werror_flag"
13596 || test ! -s conftest.err'
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13599 ac_status=$?
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; } &&
13602 { ac_try='test -s conftest.$ac_objext'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 echo "$as_me:$LINENO: result: yes" >&5
13609echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013610#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013611_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013612
13613else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013614 echo "$as_me: failed program was:" >&5
13615sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013616
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013617echo "$as_me:$LINENO: result: not usable" >&5
13618echo "${ECHO_T}not usable" >&6
13619fi
13620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13621
13622echo "$as_me:$LINENO: checking for sysconf" >&5
13623echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13624cat >conftest.$ac_ext <<_ACEOF
13625/* confdefs.h. */
13626_ACEOF
13627cat confdefs.h >>conftest.$ac_ext
13628cat >>conftest.$ac_ext <<_ACEOF
13629/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013630#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013631int
13632main ()
13633{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013634 (void)sysconf(_SC_PAGESIZE);
13635 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013636
13637 ;
13638 return 0;
13639}
13640_ACEOF
13641rm -f conftest.$ac_objext
13642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643 (eval $ac_compile) 2>conftest.er1
13644 ac_status=$?
13645 grep -v '^ *+' conftest.er1 >conftest.err
13646 rm -f conftest.er1
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -z "$ac_c_werror_flag"
13651 || test ! -s conftest.err'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; } &&
13657 { ac_try='test -s conftest.$ac_objext'
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13660 ac_status=$?
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663 echo "$as_me:$LINENO: result: yes" >&5
13664echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013665#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013666_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013667
13668else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013669 echo "$as_me: failed program was:" >&5
13670sed 's/^/| /' conftest.$ac_ext >&5
13671
13672echo "$as_me:$LINENO: result: not usable" >&5
13673echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013674fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013676
13677
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013678echo "$as_me:$LINENO: checking size of int" >&5
13679echo $ECHO_N "checking size of int... $ECHO_C" >&6
13680if test "${ac_cv_sizeof_int+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013682else
13683 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013684 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13685echo "$as_me: error: failed to compile test program" >&2;}
13686 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013687else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013688 cat >conftest.$ac_ext <<_ACEOF
13689/* confdefs.h. */
13690_ACEOF
13691cat confdefs.h >>conftest.$ac_ext
13692cat >>conftest.$ac_ext <<_ACEOF
13693/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013694#include <stdio.h>
13695 main()
13696 {
13697 FILE *f=fopen("conftestval", "w");
13698 if (!f) exit(1);
13699 fprintf(f, "%d\n", (int)sizeof(int));
13700 exit(0);
13701 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013702_ACEOF
13703rm -f conftest$ac_exeext
13704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13705 (eval $ac_link) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013714 ac_cv_sizeof_int=`cat conftestval`
13715else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013716 echo "$as_me: program exited with status $ac_status" >&5
13717echo "$as_me: failed program was:" >&5
13718sed 's/^/| /' conftest.$ac_ext >&5
13719
13720( exit $ac_status )
13721ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000013722fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013723rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13724fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013725fi
13726
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013727echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13728echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13729cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013730#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013731_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013732
13733
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013734echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13735echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013736bcopy_test_prog='
13737main() {
13738 char buf[10];
13739 strcpy(buf, "abcdefghi");
13740 mch_memmove(buf, buf + 2, 3);
13741 if (strncmp(buf, "ababcf", 6))
13742 exit(1);
13743 strcpy(buf, "abcdefghi");
13744 mch_memmove(buf + 2, buf, 3);
13745 if (strncmp(buf, "cdedef", 6))
13746 exit(1);
13747 exit(0); /* libc version works properly. */
13748}'
13749
13750
13751if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013752 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13753echo "$as_me: error: failed to compile test program" >&2;}
13754 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013755else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013756 cat >conftest.$ac_ext <<_ACEOF
13757/* confdefs.h. */
13758_ACEOF
13759cat confdefs.h >>conftest.$ac_ext
13760cat >>conftest.$ac_ext <<_ACEOF
13761/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013762#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013763_ACEOF
13764rm -f conftest$ac_exeext
13765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013776#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013777_ACEOF
13778 echo "$as_me:$LINENO: result: memmove does" >&5
13779echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013780else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013781 echo "$as_me: program exited with status $ac_status" >&5
13782echo "$as_me: failed program was:" >&5
13783sed 's/^/| /' conftest.$ac_ext >&5
13784
13785( exit $ac_status )
13786if test "$cross_compiling" = yes; then
13787 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13788echo "$as_me: error: failed to compile test program" >&2;}
13789 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013790else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013791 cat >conftest.$ac_ext <<_ACEOF
13792/* confdefs.h. */
13793_ACEOF
13794cat confdefs.h >>conftest.$ac_ext
13795cat >>conftest.$ac_ext <<_ACEOF
13796/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013797#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013798_ACEOF
13799rm -f conftest$ac_exeext
13800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13801 (eval $ac_link) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013811#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013812_ACEOF
13813 echo "$as_me:$LINENO: result: bcopy does" >&5
13814echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013815else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013816 echo "$as_me: program exited with status $ac_status" >&5
13817echo "$as_me: failed program was:" >&5
13818sed 's/^/| /' conftest.$ac_ext >&5
13819
13820( exit $ac_status )
13821if test "$cross_compiling" = yes; then
13822 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13823echo "$as_me: error: failed to compile test program" >&2;}
13824 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013825else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013826 cat >conftest.$ac_ext <<_ACEOF
13827/* confdefs.h. */
13828_ACEOF
13829cat confdefs.h >>conftest.$ac_ext
13830cat >>conftest.$ac_ext <<_ACEOF
13831/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013832#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013833_ACEOF
13834rm -f conftest$ac_exeext
13835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836 (eval $ac_link) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013846#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013847_ACEOF
13848 echo "$as_me:$LINENO: result: memcpy does" >&5
13849echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013850else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013851 echo "$as_me: program exited with status $ac_status" >&5
13852echo "$as_me: failed program was:" >&5
13853sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013854
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013855( exit $ac_status )
13856echo "$as_me:$LINENO: result: no" >&5
13857echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013858fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013859rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013860fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013861fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013863fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013864fi
13865rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13866fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013867
13868
13869if test "$enable_multibyte" = "yes"; then
13870 cflags_save=$CFLAGS
13871 ldflags_save=$LDFLAGS
13872 if test -n "$x_includes" ; then
13873 CFLAGS="$CFLAGS -I$x_includes"
13874 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013875 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
13876echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
13877 cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013883#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013884int
13885main ()
13886{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013887
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013888 ;
13889 return 0;
13890}
13891_ACEOF
13892rm -f conftest.$ac_objext
13893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13894 (eval $ac_compile) 2>conftest.er1
13895 ac_status=$?
13896 grep -v '^ *+' conftest.er1 >conftest.err
13897 rm -f conftest.er1
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -z "$ac_c_werror_flag"
13902 || test ! -s conftest.err'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest.$ac_objext'
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 >conftest.$ac_ext <<_ACEOF
13915/* confdefs.h. */
13916_ACEOF
13917cat confdefs.h >>conftest.$ac_ext
13918cat >>conftest.$ac_ext <<_ACEOF
13919/* end confdefs.h. */
13920
Bram Moolenaar071d4272004-06-13 20:20:40 +000013921/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013922#ifdef __cplusplus
13923extern "C"
13924#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013925/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013926 builtin and then its argument prototype would still apply. */
13927char _Xsetlocale ();
13928int
13929main ()
13930{
13931_Xsetlocale ();
13932 ;
13933 return 0;
13934}
13935_ACEOF
13936rm -f conftest.$ac_objext conftest$ac_exeext
13937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13938 (eval $ac_link) 2>conftest.er1
13939 ac_status=$?
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -z "$ac_c_werror_flag"
13946 || test ! -s conftest.err'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try='test -s conftest$ac_exeext'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 echo "$as_me:$LINENO: result: yes" >&5
13959echo "${ECHO_T}yes" >&6
13960 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013961#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013962_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013963
13964else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013965 echo "$as_me: failed program was:" >&5
13966sed 's/^/| /' conftest.$ac_ext >&5
13967
13968echo "$as_me:$LINENO: result: no" >&5
13969echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013970fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013971rm -f conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013973else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013974 echo "$as_me: failed program was:" >&5
13975sed 's/^/| /' conftest.$ac_ext >&5
13976
13977echo "$as_me:$LINENO: result: no" >&5
13978echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013979fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013981 fi
13982 CFLAGS=$cflags_save
13983 LDFLAGS=$ldflags_save
13984fi
13985
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013986echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
13987echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
13988if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013990else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013991 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013992LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013993cat >conftest.$ac_ext <<_ACEOF
13994/* confdefs.h. */
13995_ACEOF
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
13998/* end confdefs.h. */
13999
Bram Moolenaar071d4272004-06-13 20:20:40 +000014000/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014001#ifdef __cplusplus
14002extern "C"
14003#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014004/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014005 builtin and then its argument prototype would still apply. */
14006char _xpg4_setrunelocale ();
14007int
14008main ()
14009{
14010_xpg4_setrunelocale ();
14011 ;
14012 return 0;
14013}
14014_ACEOF
14015rm -f conftest.$ac_objext conftest$ac_exeext
14016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14017 (eval $ac_link) 2>conftest.er1
14018 ac_status=$?
14019 grep -v '^ *+' conftest.er1 >conftest.err
14020 rm -f conftest.er1
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } &&
14024 { ac_try='test -z "$ac_c_werror_flag"
14025 || test ! -s conftest.err'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try='test -s conftest$ac_exeext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014038else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014039 echo "$as_me: failed program was:" >&5
14040sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014041
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014042ac_cv_lib_xpg4__xpg4_setrunelocale=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014043fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014044rm -f conftest.err conftest.$ac_objext \
14045 conftest$ac_exeext conftest.$ac_ext
14046LIBS=$ac_check_lib_save_LIBS
14047fi
14048echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14049echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14050if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014051 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014052fi
14053
14054
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014055echo "$as_me:$LINENO: checking how to create tags" >&5
14056echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014057test -f tags && mv tags tags.save
14058if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
Bram Moolenaar78984f52005-08-01 07:19:10 +000014059 TAGPRG="ctags -I INIT+"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014060else
14061 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14062 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14063 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14064 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14065 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14066 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14067 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14068fi
14069test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014070echo "$as_me:$LINENO: result: $TAGPRG" >&5
14071echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014072
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014073echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14074echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014075MANDEF="man"
14076(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014077echo "$as_me:$LINENO: result: $MANDEF" >&5
14078echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014079if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014080 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014081#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014082_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014083
14084fi
14085
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014086echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14087echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014088# Check whether --enable-nls or --disable-nls was given.
14089if test "${enable_nls+set}" = set; then
14090 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014091
Bram Moolenaar071d4272004-06-13 20:20:40 +000014092else
14093 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014094fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014095
14096if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014097 echo "$as_me:$LINENO: result: no" >&5
14098echo "${ECHO_T}no" >&6
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000014099
14100 INSTALL_LANGS=install-languages
14101
14102 INSTALL_TOOL_LANGS=install-tool-languages
14103
14104
Bram Moolenaar071d4272004-06-13 20:20:40 +000014105 # Extract the first word of "msgfmt", so it can be a program name with args.
14106set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014107echo "$as_me:$LINENO: checking for $ac_word" >&5
14108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14109if test "${ac_cv_prog_MSGFMT+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014111else
14112 if test -n "$MSGFMT"; then
14113 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14114else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116for as_dir in $PATH
14117do
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
14120 for ac_exec_ext in '' $ac_executable_extensions; do
14121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14122 ac_cv_prog_MSGFMT="msgfmt"
14123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14124 break 2
14125 fi
14126done
14127done
14128
Bram Moolenaar071d4272004-06-13 20:20:40 +000014129fi
14130fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014131MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000014132if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014133 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14134echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014135else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014136 echo "$as_me:$LINENO: result: no" >&5
14137echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014138fi
14139
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014140 echo "$as_me:$LINENO: checking for NLS" >&5
14141echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014142 if test -f po/Makefile; then
14143 have_gettext="no"
14144 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014145 cat >conftest.$ac_ext <<_ACEOF
14146/* confdefs.h. */
14147_ACEOF
14148cat confdefs.h >>conftest.$ac_ext
14149cat >>conftest.$ac_ext <<_ACEOF
14150/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014151#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014152int
14153main ()
14154{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014155gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014156 ;
14157 return 0;
14158}
14159_ACEOF
14160rm -f conftest.$ac_objext conftest$ac_exeext
14161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14162 (eval $ac_link) 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -z "$ac_c_werror_flag"
14170 || test ! -s conftest.err'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest$ac_exeext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 echo "$as_me:$LINENO: result: gettext() works" >&5
14183echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014184else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014185 echo "$as_me: failed program was:" >&5
14186sed 's/^/| /' conftest.$ac_ext >&5
14187
14188olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014189 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014190 cat >conftest.$ac_ext <<_ACEOF
14191/* confdefs.h. */
14192_ACEOF
14193cat confdefs.h >>conftest.$ac_ext
14194cat >>conftest.$ac_ext <<_ACEOF
14195/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014196#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014197int
14198main ()
14199{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014200gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014201 ;
14202 return 0;
14203}
14204_ACEOF
14205rm -f conftest.$ac_objext conftest$ac_exeext
14206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14207 (eval $ac_link) 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag"
14215 || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest$ac_exeext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14228echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014229else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014230 echo "$as_me: failed program was:" >&5
14231sed 's/^/| /' conftest.$ac_ext >&5
14232
14233echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14234echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014235 LIBS=$olibs
14236fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014237rm -f conftest.err conftest.$ac_objext \
14238 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014239fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014240rm -f conftest.err conftest.$ac_objext \
14241 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014242 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014243 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14244echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014245 fi
14246 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014247 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014248#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014249_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014250
14251 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014252
14253
14254for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000014255do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14257echo "$as_me:$LINENO: checking for $ac_func" >&5
14258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14259if eval "test \"\${$as_ac_var+set}\" = set"; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014261else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014262 cat >conftest.$ac_ext <<_ACEOF
14263/* confdefs.h. */
14264_ACEOF
14265cat confdefs.h >>conftest.$ac_ext
14266cat >>conftest.$ac_ext <<_ACEOF
14267/* end confdefs.h. */
14268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14270#define $ac_func innocuous_$ac_func
14271
Bram Moolenaar071d4272004-06-13 20:20:40 +000014272/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014273 which can conflict with char $ac_func (); below.
14274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14275 <limits.h> exists even on freestanding compilers. */
14276
14277#ifdef __STDC__
14278# include <limits.h>
14279#else
14280# include <assert.h>
14281#endif
14282
14283#undef $ac_func
14284
Bram Moolenaar071d4272004-06-13 20:20:40 +000014285/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014286#ifdef __cplusplus
14287extern "C"
14288{
14289#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014290/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014291 builtin and then its argument prototype would still apply. */
14292char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000014293/* The GNU C library defines this for functions which it implements
14294 to always fail with ENOSYS. Some functions are actually named
14295 something starting with __ and the normal name is an alias. */
14296#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14297choke me
14298#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014299char (*f) () = $ac_func;
14300#endif
14301#ifdef __cplusplus
14302}
Bram Moolenaar071d4272004-06-13 20:20:40 +000014303#endif
14304
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014305int
14306main ()
14307{
14308return f != $ac_func;
14309 ;
14310 return 0;
14311}
14312_ACEOF
14313rm -f conftest.$ac_objext conftest$ac_exeext
14314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14315 (eval $ac_link) 2>conftest.er1
14316 ac_status=$?
14317 grep -v '^ *+' conftest.er1 >conftest.err
14318 rm -f conftest.er1
14319 cat conftest.err >&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } &&
14322 { ac_try='test -z "$ac_c_werror_flag"
14323 || test ! -s conftest.err'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014336else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014337 echo "$as_me: failed program was:" >&5
14338sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014339
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014340eval "$as_ac_var=no"
14341fi
14342rm -f conftest.err conftest.$ac_objext \
14343 conftest$ac_exeext conftest.$ac_ext
14344fi
14345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14346echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14347if test `eval echo '${'$as_ac_var'}'` = yes; then
14348 cat >>confdefs.h <<_ACEOF
14349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14350_ACEOF
14351
Bram Moolenaar071d4272004-06-13 20:20:40 +000014352fi
14353done
14354
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014355 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14356echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14357 cat >conftest.$ac_ext <<_ACEOF
14358/* confdefs.h. */
14359_ACEOF
14360cat confdefs.h >>conftest.$ac_ext
14361cat >>conftest.$ac_ext <<_ACEOF
14362/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014363#include <libintl.h>
14364 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014365int
14366main ()
14367{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014368++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014369 ;
14370 return 0;
14371}
14372_ACEOF
14373rm -f conftest.$ac_objext conftest$ac_exeext
14374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14375 (eval $ac_link) 2>conftest.er1
14376 ac_status=$?
14377 grep -v '^ *+' conftest.er1 >conftest.err
14378 rm -f conftest.er1
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag"
14383 || test ! -s conftest.err'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; } &&
14389 { ac_try='test -s conftest$ac_exeext'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14392 ac_status=$?
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }; then
14395 echo "$as_me:$LINENO: result: yes" >&5
14396echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014397#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014398_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014399
14400else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014401 echo "$as_me: failed program was:" >&5
14402sed 's/^/| /' conftest.$ac_ext >&5
14403
14404echo "$as_me:$LINENO: result: no" >&5
14405echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014406fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014407rm -f conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014409 fi
14410 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014411 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14412echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014413 fi
14414else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014415 echo "$as_me:$LINENO: result: yes" >&5
14416echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014417fi
14418
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014419if test "${ac_cv_header_dlfcn_h+set}" = set; then
14420 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14421echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14422if test "${ac_cv_header_dlfcn_h+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14424fi
14425echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14426echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014427else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014428 # Is the header compilable?
14429echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14430echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14431cat >conftest.$ac_ext <<_ACEOF
14432/* confdefs.h. */
14433_ACEOF
14434cat confdefs.h >>conftest.$ac_ext
14435cat >>conftest.$ac_ext <<_ACEOF
14436/* end confdefs.h. */
14437$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014438#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014439_ACEOF
14440rm -f conftest.$ac_objext
14441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14442 (eval $ac_compile) 2>conftest.er1
14443 ac_status=$?
14444 grep -v '^ *+' conftest.er1 >conftest.err
14445 rm -f conftest.er1
14446 cat conftest.err >&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -z "$ac_c_werror_flag"
14450 || test ! -s conftest.err'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest.$ac_objext'
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14459 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; }; then
14462 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014463else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014464 echo "$as_me: failed program was:" >&5
14465sed 's/^/| /' conftest.$ac_ext >&5
14466
14467ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014468fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14470echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14471echo "${ECHO_T}$ac_header_compiler" >&6
14472
14473# Is the header present?
14474echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14475echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14476cat >conftest.$ac_ext <<_ACEOF
14477/* confdefs.h. */
14478_ACEOF
14479cat confdefs.h >>conftest.$ac_ext
14480cat >>conftest.$ac_ext <<_ACEOF
14481/* end confdefs.h. */
14482#include <dlfcn.h>
14483_ACEOF
14484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14486 ac_status=$?
14487 grep -v '^ *+' conftest.er1 >conftest.err
14488 rm -f conftest.er1
14489 cat conftest.err >&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } >/dev/null; then
14492 if test -s conftest.err; then
14493 ac_cpp_err=$ac_c_preproc_warn_flag
14494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14495 else
14496 ac_cpp_err=
14497 fi
14498else
14499 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014500fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014501if test -z "$ac_cpp_err"; then
14502 ac_header_preproc=yes
14503else
14504 echo "$as_me: failed program was:" >&5
14505sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 ac_header_preproc=no
14508fi
14509rm -f conftest.err conftest.$ac_ext
14510echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14511echo "${ECHO_T}$ac_header_preproc" >&6
14512
14513# So? What about this header?
14514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14515 yes:no: )
14516 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14517echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14519echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14520 ac_header_preproc=yes
14521 ;;
14522 no:yes:* )
14523 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14524echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14526echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14528echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14530echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14532echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14534echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14535 (
14536 cat <<\_ASBOX
14537## ------------------------------------------ ##
14538## Report this to the AC_PACKAGE_NAME lists. ##
14539## ------------------------------------------ ##
14540_ASBOX
14541 ) |
14542 sed "s/^/$as_me: WARNING: /" >&2
14543 ;;
14544esac
14545echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14546echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14547if test "${ac_cv_header_dlfcn_h+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14549else
14550 ac_cv_header_dlfcn_h=$ac_header_preproc
14551fi
14552echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14553echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14554
14555fi
14556if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014557 DLL=dlfcn.h
14558else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014559 if test "${ac_cv_header_dl_h+set}" = set; then
14560 echo "$as_me:$LINENO: checking for dl.h" >&5
14561echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14562if test "${ac_cv_header_dl_h+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14564fi
14565echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14566echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014567else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014568 # Is the header compilable?
14569echo "$as_me:$LINENO: checking dl.h usability" >&5
14570echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14571cat >conftest.$ac_ext <<_ACEOF
14572/* confdefs.h. */
14573_ACEOF
14574cat confdefs.h >>conftest.$ac_ext
14575cat >>conftest.$ac_ext <<_ACEOF
14576/* end confdefs.h. */
14577$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014578#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014579_ACEOF
14580rm -f conftest.$ac_objext
14581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582 (eval $ac_compile) 2>conftest.er1
14583 ac_status=$?
14584 grep -v '^ *+' conftest.er1 >conftest.err
14585 rm -f conftest.er1
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } &&
14589 { ac_try='test -z "$ac_c_werror_flag"
14590 || test ! -s conftest.err'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014603else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014604 echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014608fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14610echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14611echo "${ECHO_T}$ac_header_compiler" >&6
14612
14613# Is the header present?
14614echo "$as_me:$LINENO: checking dl.h presence" >&5
14615echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14616cat >conftest.$ac_ext <<_ACEOF
14617/* confdefs.h. */
14618_ACEOF
14619cat confdefs.h >>conftest.$ac_ext
14620cat >>conftest.$ac_ext <<_ACEOF
14621/* end confdefs.h. */
14622#include <dl.h>
14623_ACEOF
14624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14626 ac_status=$?
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } >/dev/null; then
14632 if test -s conftest.err; then
14633 ac_cpp_err=$ac_c_preproc_warn_flag
14634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14635 else
14636 ac_cpp_err=
14637 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014638else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014639 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014640fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014641if test -z "$ac_cpp_err"; then
14642 ac_header_preproc=yes
14643else
14644 echo "$as_me: failed program was:" >&5
14645sed 's/^/| /' conftest.$ac_ext >&5
14646
14647 ac_header_preproc=no
14648fi
14649rm -f conftest.err conftest.$ac_ext
14650echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14651echo "${ECHO_T}$ac_header_preproc" >&6
14652
14653# So? What about this header?
14654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14655 yes:no: )
14656 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14657echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14658 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14659echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14660 ac_header_preproc=yes
14661 ;;
14662 no:yes:* )
14663 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14664echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14665 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14666echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14668echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14670echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14671 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14672echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14674echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14675 (
14676 cat <<\_ASBOX
14677## ------------------------------------------ ##
14678## Report this to the AC_PACKAGE_NAME lists. ##
14679## ------------------------------------------ ##
14680_ASBOX
14681 ) |
14682 sed "s/^/$as_me: WARNING: /" >&2
14683 ;;
14684esac
14685echo "$as_me:$LINENO: checking for dl.h" >&5
14686echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14687if test "${ac_cv_header_dl_h+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14689else
14690 ac_cv_header_dl_h=$ac_header_preproc
14691fi
14692echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14693echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014694
14695fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014696if test $ac_cv_header_dl_h = yes; then
14697 DLL=dl.h
14698fi
14699
14700
14701fi
14702
Bram Moolenaar071d4272004-06-13 20:20:40 +000014703
14704if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014705
14706cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014707#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014708_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014709
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014710 echo "$as_me:$LINENO: checking for dlopen()" >&5
14711echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14712 cat >conftest.$ac_ext <<_ACEOF
14713/* confdefs.h. */
14714_ACEOF
14715cat confdefs.h >>conftest.$ac_ext
14716cat >>conftest.$ac_ext <<_ACEOF
14717/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014718
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014719int
14720main ()
14721{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014722
14723 extern void* dlopen();
14724 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014725
14726 ;
14727 return 0;
14728}
14729_ACEOF
14730rm -f conftest.$ac_objext conftest$ac_exeext
14731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>conftest.er1
14733 ac_status=$?
14734 grep -v '^ *+' conftest.er1 >conftest.err
14735 rm -f conftest.er1
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -z "$ac_c_werror_flag"
14740 || test ! -s conftest.err'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 echo "$as_me:$LINENO: result: yes" >&5
14753echo "${ECHO_T}yes" >&6;
14754
14755cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014756#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014757_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014758
14759else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014760 echo "$as_me: failed program was:" >&5
14761sed 's/^/| /' conftest.$ac_ext >&5
14762
14763echo "$as_me:$LINENO: result: no" >&5
14764echo "${ECHO_T}no" >&6;
14765 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14766echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014767 olibs=$LIBS
14768 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014769 cat >conftest.$ac_ext <<_ACEOF
14770/* confdefs.h. */
14771_ACEOF
14772cat confdefs.h >>conftest.$ac_ext
14773cat >>conftest.$ac_ext <<_ACEOF
14774/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014775
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014776int
14777main ()
14778{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014779
14780 extern void* dlopen();
14781 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014782
14783 ;
14784 return 0;
14785}
14786_ACEOF
14787rm -f conftest.$ac_objext conftest$ac_exeext
14788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14789 (eval $ac_link) 2>conftest.er1
14790 ac_status=$?
14791 grep -v '^ *+' conftest.er1 >conftest.err
14792 rm -f conftest.er1
14793 cat conftest.err >&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } &&
14796 { ac_try='test -z "$ac_c_werror_flag"
14797 || test ! -s conftest.err'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; } &&
14803 { ac_try='test -s conftest$ac_exeext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 echo "$as_me:$LINENO: result: yes" >&5
14810echo "${ECHO_T}yes" >&6;
14811
14812cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014813#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014814_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014815
14816else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014817 echo "$as_me: failed program was:" >&5
14818sed 's/^/| /' conftest.$ac_ext >&5
14819
14820echo "$as_me:$LINENO: result: no" >&5
14821echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014822 LIBS=$olibs
14823fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014824rm -f conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014826fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014827rm -f conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14829 echo "$as_me:$LINENO: checking for dlsym()" >&5
14830echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14831 cat >conftest.$ac_ext <<_ACEOF
14832/* confdefs.h. */
14833_ACEOF
14834cat confdefs.h >>conftest.$ac_ext
14835cat >>conftest.$ac_ext <<_ACEOF
14836/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014837
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014838int
14839main ()
14840{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014841
14842 extern void* dlsym();
14843 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014844
14845 ;
14846 return 0;
14847}
14848_ACEOF
14849rm -f conftest.$ac_objext conftest$ac_exeext
14850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14851 (eval $ac_link) 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -z "$ac_c_werror_flag"
14859 || test ! -s conftest.err'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest$ac_exeext'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; }; then
14871 echo "$as_me:$LINENO: result: yes" >&5
14872echo "${ECHO_T}yes" >&6;
14873
14874cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014875#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014876_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014877
14878else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014879 echo "$as_me: failed program was:" >&5
14880sed 's/^/| /' conftest.$ac_ext >&5
14881
14882echo "$as_me:$LINENO: result: no" >&5
14883echo "${ECHO_T}no" >&6;
14884 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
14885echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014886 olibs=$LIBS
14887 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014888 cat >conftest.$ac_ext <<_ACEOF
14889/* confdefs.h. */
14890_ACEOF
14891cat confdefs.h >>conftest.$ac_ext
14892cat >>conftest.$ac_ext <<_ACEOF
14893/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014894
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014895int
14896main ()
14897{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014898
14899 extern void* dlsym();
14900 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014901
14902 ;
14903 return 0;
14904}
14905_ACEOF
14906rm -f conftest.$ac_objext conftest$ac_exeext
14907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14908 (eval $ac_link) 2>conftest.er1
14909 ac_status=$?
14910 grep -v '^ *+' conftest.er1 >conftest.err
14911 rm -f conftest.er1
14912 cat conftest.err >&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -z "$ac_c_werror_flag"
14916 || test ! -s conftest.err'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; } &&
14922 { ac_try='test -s conftest$ac_exeext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 echo "$as_me:$LINENO: result: yes" >&5
14929echo "${ECHO_T}yes" >&6;
14930
14931cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014932#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014933_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014934
14935else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014936 echo "$as_me: failed program was:" >&5
14937sed 's/^/| /' conftest.$ac_ext >&5
14938
14939echo "$as_me:$LINENO: result: no" >&5
14940echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014941 LIBS=$olibs
14942fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014943rm -f conftest.err conftest.$ac_objext \
14944 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014945fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014946rm -f conftest.err conftest.$ac_objext \
14947 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014948elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014949
14950cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014951#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014952_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014953
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014954 echo "$as_me:$LINENO: checking for shl_load()" >&5
14955echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
14956 cat >conftest.$ac_ext <<_ACEOF
14957/* confdefs.h. */
14958_ACEOF
14959cat confdefs.h >>conftest.$ac_ext
14960cat >>conftest.$ac_ext <<_ACEOF
14961/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014962
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014963int
14964main ()
14965{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014966
14967 extern void* shl_load();
14968 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014969
14970 ;
14971 return 0;
14972}
14973_ACEOF
14974rm -f conftest.$ac_objext conftest$ac_exeext
14975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976 (eval $ac_link) 2>conftest.er1
14977 ac_status=$?
14978 grep -v '^ *+' conftest.er1 >conftest.err
14979 rm -f conftest.er1
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } &&
14983 { ac_try='test -z "$ac_c_werror_flag"
14984 || test ! -s conftest.err'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; } &&
14990 { ac_try='test -s conftest$ac_exeext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 echo "$as_me:$LINENO: result: yes" >&5
14997echo "${ECHO_T}yes" >&6;
14998
14999cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015000#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015001_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015002
15003else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015004 echo "$as_me: failed program was:" >&5
15005sed 's/^/| /' conftest.$ac_ext >&5
15006
15007echo "$as_me:$LINENO: result: no" >&5
15008echo "${ECHO_T}no" >&6;
15009 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15010echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015011 olibs=$LIBS
15012 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015013 cat >conftest.$ac_ext <<_ACEOF
15014/* confdefs.h. */
15015_ACEOF
15016cat confdefs.h >>conftest.$ac_ext
15017cat >>conftest.$ac_ext <<_ACEOF
15018/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015019
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015020int
15021main ()
15022{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015023
15024 extern void* shl_load();
15025 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015026
15027 ;
15028 return 0;
15029}
15030_ACEOF
15031rm -f conftest.$ac_objext conftest$ac_exeext
15032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033 (eval $ac_link) 2>conftest.er1
15034 ac_status=$?
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -z "$ac_c_werror_flag"
15041 || test ! -s conftest.err'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; } &&
15047 { ac_try='test -s conftest$ac_exeext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 echo "$as_me:$LINENO: result: yes" >&5
15054echo "${ECHO_T}yes" >&6;
15055
15056cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015057#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015058_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015059
15060else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015061 echo "$as_me: failed program was:" >&5
15062sed 's/^/| /' conftest.$ac_ext >&5
15063
15064echo "$as_me:$LINENO: result: no" >&5
15065echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015066 LIBS=$olibs
15067fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015068rm -f conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015070fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015071rm -f conftest.err conftest.$ac_objext \
15072 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015073fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015074
15075for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000015076do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15078if eval "test \"\${$as_ac_Header+set}\" = set"; then
15079 echo "$as_me:$LINENO: checking for $ac_header" >&5
15080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15081if eval "test \"\${$as_ac_Header+set}\" = set"; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015083fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015086else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015087 # Is the header compilable?
15088echo "$as_me:$LINENO: checking $ac_header usability" >&5
15089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15090cat >conftest.$ac_ext <<_ACEOF
15091/* confdefs.h. */
15092_ACEOF
15093cat confdefs.h >>conftest.$ac_ext
15094cat >>conftest.$ac_ext <<_ACEOF
15095/* end confdefs.h. */
15096$ac_includes_default
15097#include <$ac_header>
15098_ACEOF
15099rm -f conftest.$ac_objext
15100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15101 (eval $ac_compile) 2>conftest.er1
15102 ac_status=$?
15103 grep -v '^ *+' conftest.er1 >conftest.err
15104 rm -f conftest.er1
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -z "$ac_c_werror_flag"
15109 || test ! -s conftest.err'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest.$ac_objext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_header_compiler=yes
15122else
15123 echo "$as_me: failed program was:" >&5
15124sed 's/^/| /' conftest.$ac_ext >&5
15125
15126ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015127fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15130echo "${ECHO_T}$ac_header_compiler" >&6
15131
15132# Is the header present?
15133echo "$as_me:$LINENO: checking $ac_header presence" >&5
15134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15135cat >conftest.$ac_ext <<_ACEOF
15136/* confdefs.h. */
15137_ACEOF
15138cat confdefs.h >>conftest.$ac_ext
15139cat >>conftest.$ac_ext <<_ACEOF
15140/* end confdefs.h. */
15141#include <$ac_header>
15142_ACEOF
15143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } >/dev/null; then
15151 if test -s conftest.err; then
15152 ac_cpp_err=$ac_c_preproc_warn_flag
15153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15154 else
15155 ac_cpp_err=
15156 fi
15157else
15158 ac_cpp_err=yes
15159fi
15160if test -z "$ac_cpp_err"; then
15161 ac_header_preproc=yes
15162else
15163 echo "$as_me: failed program was:" >&5
15164sed 's/^/| /' conftest.$ac_ext >&5
15165
15166 ac_header_preproc=no
15167fi
15168rm -f conftest.err conftest.$ac_ext
15169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15170echo "${ECHO_T}$ac_header_preproc" >&6
15171
15172# So? What about this header?
15173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15174 yes:no: )
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15179 ac_header_preproc=yes
15180 ;;
15181 no:yes:* )
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15194 (
15195 cat <<\_ASBOX
15196## ------------------------------------------ ##
15197## Report this to the AC_PACKAGE_NAME lists. ##
15198## ------------------------------------------ ##
15199_ASBOX
15200 ) |
15201 sed "s/^/$as_me: WARNING: /" >&2
15202 ;;
15203esac
15204echo "$as_me:$LINENO: checking for $ac_header" >&5
15205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15206if eval "test \"\${$as_ac_Header+set}\" = set"; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15208else
15209 eval "$as_ac_Header=\$ac_header_preproc"
15210fi
15211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15213
15214fi
15215if test `eval echo '${'$as_ac_Header'}'` = yes; then
15216 cat >>confdefs.h <<_ACEOF
15217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15218_ACEOF
15219
15220fi
15221
Bram Moolenaar071d4272004-06-13 20:20:40 +000015222done
15223
15224
15225if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15226 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15227 LIBS=`echo $LIBS | sed s/-ldl//`
15228 PERL_LIBS="$PERL_LIBS -ldl"
15229 fi
15230fi
15231
15232if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15233 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015234 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15235echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015236 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
15237 || test "x$features" = "xhuge"; then
15238 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015239 echo "$as_me:$LINENO: result: yes" >&5
15240echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015241 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015242 echo "$as_me:$LINENO: result: no" >&5
15243echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015244 fi
15245fi
Bram Moolenaare224ffa2006-03-01 00:01:28 +000015246if test "x$MACARCH" = "xboth"; then
15247 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15248fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015249
Bram Moolenaara5792f52005-11-23 21:25:05 +000015250echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15251echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015252DEPEND_CFLAGS_FILTER=
15253if test "$GCC" = yes; then
Bram Moolenaar2217cae2006-03-25 21:55:52 +000015254 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
Bram Moolenaarf740b292006-02-16 22:11:02 +000015255 if test "$gccmajor" -gt "2"; then
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015256 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15257 fi
15258fi
Bram Moolenaara5792f52005-11-23 21:25:05 +000015259if test "$DEPEND_CFLAGS_FILTER" = ""; then
15260 echo "$as_me:$LINENO: result: no" >&5
15261echo "${ECHO_T}no" >&6
15262else
15263 echo "$as_me:$LINENO: result: yes" >&5
15264echo "${ECHO_T}yes" >&6
15265fi
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015266
Bram Moolenaar071d4272004-06-13 20:20:40 +000015267
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015268 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15269cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015270# This file is a shell script that caches the results of configure
15271# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015272# scripts and configure runs, see configure's option --config-cache.
15273# It is not useful on other systems. If it contains results you don't
15274# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015275#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015276# config.status only pays attention to the cache file if you give it
15277# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015278#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015279# `ac_cv_env_foo' variables (set or unset) will be overridden when
15280# loading this file, other *unset* `ac_cv_foo' will be assigned the
15281# following values.
15282
15283_ACEOF
15284
Bram Moolenaar071d4272004-06-13 20:20:40 +000015285# The following way of writing the cache mishandles newlines in values,
15286# but we know of no workaround that is simple, portable, and efficient.
15287# So, don't put newlines in cache variables' values.
15288# Ultrix sh set writes to stderr and can't be redirected directly,
15289# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015290{
15291 (set) 2>&1 |
15292 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15293 *ac_space=\ *)
15294 # `set' does not quote correctly, so add quotes (double-quote
15295 # substitution turns \\\\ into \\, and sed turns \\ into \).
15296 sed -n \
15297 "s/'/'\\\\''/g;
15298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15299 ;;
15300 *)
15301 # `set' quotes correctly as required by POSIX, so do not add quotes.
15302 sed -n \
15303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15304 ;;
15305 esac;
15306} |
15307 sed '
15308 t clear
15309 : clear
15310 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15311 t end
15312 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15313 : end' >>confcache
15314if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000015315 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015316 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15317 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000015318 else
15319 echo "not updating unwritable cache $cache_file"
15320 fi
15321fi
15322rm -f confcache
15323
Bram Moolenaar071d4272004-06-13 20:20:40 +000015324test "x$prefix" = xNONE && prefix=$ac_default_prefix
15325# Let make expand exec_prefix.
15326test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15327
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015328# VPATH may cause trouble with some makes, so we remove $(srcdir),
15329# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15330# trailing colons and then remove the whole line if VPATH becomes empty
15331# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000015332if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015333 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15334s/:*\$(srcdir):*/:/;
15335s/:*\${srcdir}:*/:/;
15336s/:*@srcdir@:*/:/;
15337s/^\([^=]*=[ ]*\):*/\1/;
15338s/:*$//;
15339s/^[^=]*=[ ]*$//;
15340}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015341fi
15342
Bram Moolenaar071d4272004-06-13 20:20:40 +000015343DEFS=-DHAVE_CONFIG_H
15344
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015345ac_libobjs=
15346ac_ltlibobjs=
15347for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15348 # 1. Remove the extension, and $U if already installed.
15349 ac_i=`echo "$ac_i" |
15350 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15351 # 2. Add them.
15352 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15353 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15354done
15355LIBOBJS=$ac_libobjs
15356
15357LTLIBOBJS=$ac_ltlibobjs
15358
15359
15360
Bram Moolenaar071d4272004-06-13 20:20:40 +000015361: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015362ac_clean_files_save=$ac_clean_files
15363ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15364{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15365echo "$as_me: creating $CONFIG_STATUS" >&6;}
15366cat >$CONFIG_STATUS <<_ACEOF
15367#! $SHELL
15368# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015369# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015370# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015371# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015372
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015373debug=false
15374ac_cs_recheck=false
15375ac_cs_silent=false
15376SHELL=\${CONFIG_SHELL-$SHELL}
15377_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015378
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015379cat >>$CONFIG_STATUS <<\_ACEOF
15380## --------------------- ##
15381## M4sh Initialization. ##
15382## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000015383
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015384# Be Bourne compatible
15385if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15386 emulate sh
15387 NULLCMD=:
15388 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15389 # is contrary to our usage. Disable this feature.
15390 alias -g '${1+"$@"}'='"$@"'
15391elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15392 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000015393fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015394DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000015395
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015396# Support unset when possible.
15397if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15398 as_unset=unset
15399else
15400 as_unset=false
15401fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015402
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015403
15404# Work around bugs in pre-3.0 UWIN ksh.
15405$as_unset ENV MAIL MAILPATH
15406PS1='$ '
15407PS2='> '
15408PS4='+ '
15409
15410# NLS nuisances.
15411for as_var in \
15412 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15413 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15414 LC_TELEPHONE LC_TIME
15415do
15416 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15417 eval $as_var=C; export $as_var
15418 else
15419 $as_unset $as_var
15420 fi
15421done
15422
15423# Required to use basename.
15424if expr a : '\(a\)' >/dev/null 2>&1; then
15425 as_expr=expr
15426else
15427 as_expr=false
15428fi
15429
15430if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15431 as_basename=basename
15432else
15433 as_basename=false
15434fi
15435
15436
15437# Name of the executable.
15438as_me=`$as_basename "$0" ||
15439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15440 X"$0" : 'X\(//\)$' \| \
15441 X"$0" : 'X\(/\)$' \| \
15442 . : '\(.\)' 2>/dev/null ||
15443echo X/"$0" |
15444 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15445 /^X\/\(\/\/\)$/{ s//\1/; q; }
15446 /^X\/\(\/\).*/{ s//\1/; q; }
15447 s/.*/./; q'`
15448
15449
15450# PATH needs CR, and LINENO needs CR and PATH.
15451# Avoid depending upon Character Ranges.
15452as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15453as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15454as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15455as_cr_digits='0123456789'
15456as_cr_alnum=$as_cr_Letters$as_cr_digits
15457
15458# The user is always right.
15459if test "${PATH_SEPARATOR+set}" != set; then
15460 echo "#! /bin/sh" >conf$$.sh
15461 echo "exit 0" >>conf$$.sh
15462 chmod +x conf$$.sh
15463 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15464 PATH_SEPARATOR=';'
15465 else
15466 PATH_SEPARATOR=:
15467 fi
15468 rm -f conf$$.sh
15469fi
15470
15471
15472 as_lineno_1=$LINENO
15473 as_lineno_2=$LINENO
15474 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15475 test "x$as_lineno_1" != "x$as_lineno_2" &&
15476 test "x$as_lineno_3" = "x$as_lineno_2" || {
15477 # Find who we are. Look in the path if we contain no path at all
15478 # relative or not.
15479 case $0 in
15480 *[\\/]* ) as_myself=$0 ;;
15481 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15482for as_dir in $PATH
15483do
15484 IFS=$as_save_IFS
15485 test -z "$as_dir" && as_dir=.
15486 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15487done
15488
15489 ;;
15490 esac
15491 # We did not find ourselves, most probably we were run as `sh COMMAND'
15492 # in which case we are not to be found in the path.
15493 if test "x$as_myself" = x; then
15494 as_myself=$0
15495 fi
15496 if test ! -f "$as_myself"; then
15497 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15498echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15499 { (exit 1); exit 1; }; }
15500 fi
15501 case $CONFIG_SHELL in
15502 '')
15503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15504for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15505do
15506 IFS=$as_save_IFS
15507 test -z "$as_dir" && as_dir=.
15508 for as_base in sh bash ksh sh5; do
15509 case $as_dir in
15510 /*)
15511 if ("$as_dir/$as_base" -c '
15512 as_lineno_1=$LINENO
15513 as_lineno_2=$LINENO
15514 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15515 test "x$as_lineno_1" != "x$as_lineno_2" &&
15516 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15517 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15518 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15519 CONFIG_SHELL=$as_dir/$as_base
15520 export CONFIG_SHELL
15521 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15522 fi;;
15523 esac
15524 done
15525done
15526;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015527 esac
15528
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015529 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15530 # uniformly replaced by the line number. The first 'sed' inserts a
15531 # line-number line before each line; the second 'sed' does the real
15532 # work. The second script uses 'N' to pair each line-number line
15533 # with the numbered line, and appends trailing '-' during
15534 # substitution so that $LINENO is not a special case at line end.
15535 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15536 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15537 sed '=' <$as_myself |
15538 sed '
15539 N
15540 s,$,-,
15541 : loop
15542 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15543 t loop
15544 s,-$,,
15545 s,^['$as_cr_digits']*\n,,
15546 ' >$as_me.lineno &&
15547 chmod +x $as_me.lineno ||
15548 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15549echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15550 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000015551
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015552 # Don't try to exec as it changes $[0], causing all sort of problems
15553 # (the dirname of $[0] is not the place where we might find the
15554 # original and so on. Autoconf is especially sensible to this).
15555 . ./$as_me.lineno
15556 # Exit status is that of the last command.
15557 exit
15558}
15559
15560
15561case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15562 *c*,-n*) ECHO_N= ECHO_C='
15563' ECHO_T=' ' ;;
15564 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15565 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15566esac
15567
15568if expr a : '\(a\)' >/dev/null 2>&1; then
15569 as_expr=expr
15570else
15571 as_expr=false
15572fi
15573
15574rm -f conf$$ conf$$.exe conf$$.file
15575echo >conf$$.file
15576if ln -s conf$$.file conf$$ 2>/dev/null; then
15577 # We could just check for DJGPP; but this test a) works b) is more generic
15578 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15579 if test -f conf$$.exe; then
15580 # Don't use ln at all; we don't have any links
15581 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015582 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015583 as_ln_s='ln -s'
15584 fi
15585elif ln conf$$.file conf$$ 2>/dev/null; then
15586 as_ln_s=ln
15587else
15588 as_ln_s='cp -p'
15589fi
15590rm -f conf$$ conf$$.exe conf$$.file
15591
15592if mkdir -p . 2>/dev/null; then
15593 as_mkdir_p=:
15594else
15595 test -d ./-p && rmdir ./-p
15596 as_mkdir_p=false
15597fi
15598
15599as_executable_p="test -f"
15600
15601# Sed expression to map a string onto a valid CPP name.
15602as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15603
15604# Sed expression to map a string onto a valid variable name.
15605as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15606
15607
15608# IFS
15609# We need space, tab and new line, in precisely that order.
15610as_nl='
15611'
15612IFS=" $as_nl"
15613
15614# CDPATH.
15615$as_unset CDPATH
15616
15617exec 6>&1
15618
15619# Open the log real soon, to keep \$[0] and so on meaningful, and to
15620# report actual input values of CONFIG_FILES etc. instead of their
15621# values after options handling. Logging --version etc. is OK.
Bram Moolenaarc7453f52006-02-10 23:20:28 +000015622exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015623{
15624 echo
15625 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15626## Running $as_me. ##
15627_ASBOX
15628} >&5
15629cat >&5 <<_CSEOF
15630
15631This file was extended by $as_me, which was
15632generated by GNU Autoconf 2.59. Invocation command line was
15633
15634 CONFIG_FILES = $CONFIG_FILES
15635 CONFIG_HEADERS = $CONFIG_HEADERS
15636 CONFIG_LINKS = $CONFIG_LINKS
15637 CONFIG_COMMANDS = $CONFIG_COMMANDS
15638 $ $0 $@
15639
15640_CSEOF
15641echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15642echo >&5
15643_ACEOF
15644
15645# Files that config.status was made for.
15646if test -n "$ac_config_files"; then
15647 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15648fi
15649
15650if test -n "$ac_config_headers"; then
15651 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15652fi
15653
15654if test -n "$ac_config_links"; then
15655 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15656fi
15657
15658if test -n "$ac_config_commands"; then
15659 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15660fi
15661
15662cat >>$CONFIG_STATUS <<\_ACEOF
15663
15664ac_cs_usage="\
15665\`$as_me' instantiates files from templates according to the
15666current configuration.
15667
15668Usage: $0 [OPTIONS] [FILE]...
15669
15670 -h, --help print this help, then exit
15671 -V, --version print version number, then exit
15672 -q, --quiet do not print progress messages
15673 -d, --debug don't remove temporary files
15674 --recheck update $as_me by reconfiguring in the same conditions
15675 --file=FILE[:TEMPLATE]
15676 instantiate the configuration file FILE
15677 --header=FILE[:TEMPLATE]
15678 instantiate the configuration header FILE
15679
15680Configuration files:
15681$config_files
15682
15683Configuration headers:
15684$config_headers
15685
15686Report bugs to <bug-autoconf@gnu.org>."
15687_ACEOF
15688
15689cat >>$CONFIG_STATUS <<_ACEOF
15690ac_cs_version="\\
15691config.status
15692configured by $0, generated by GNU Autoconf 2.59,
15693 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15694
15695Copyright (C) 2003 Free Software Foundation, Inc.
15696This config.status script is free software; the Free Software Foundation
15697gives unlimited permission to copy, distribute and modify it."
15698srcdir=$srcdir
15699_ACEOF
15700
15701cat >>$CONFIG_STATUS <<\_ACEOF
15702# If no file are specified by the user, then we need to provide default
15703# value. By we need to know if files were specified by the user.
15704ac_need_defaults=:
15705while test $# != 0
15706do
15707 case $1 in
15708 --*=*)
15709 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15710 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15711 ac_shift=:
15712 ;;
15713 -*)
15714 ac_option=$1
15715 ac_optarg=$2
15716 ac_shift=shift
15717 ;;
15718 *) # This is not an option, so the user has probably given explicit
15719 # arguments.
15720 ac_option=$1
15721 ac_need_defaults=false;;
15722 esac
15723
15724 case $ac_option in
15725 # Handling of the options.
15726_ACEOF
15727cat >>$CONFIG_STATUS <<\_ACEOF
15728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15729 ac_cs_recheck=: ;;
15730 --version | --vers* | -V )
15731 echo "$ac_cs_version"; exit 0 ;;
15732 --he | --h)
15733 # Conflict between --help and --header
15734 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15735Try \`$0 --help' for more information." >&5
15736echo "$as_me: error: ambiguous option: $1
15737Try \`$0 --help' for more information." >&2;}
15738 { (exit 1); exit 1; }; };;
15739 --help | --hel | -h )
15740 echo "$ac_cs_usage"; exit 0 ;;
15741 --debug | --d* | -d )
15742 debug=: ;;
15743 --file | --fil | --fi | --f )
15744 $ac_shift
15745 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15746 ac_need_defaults=false;;
15747 --header | --heade | --head | --hea )
15748 $ac_shift
15749 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15750 ac_need_defaults=false;;
15751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15752 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15753 ac_cs_silent=: ;;
15754
15755 # This is an error.
15756 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15757Try \`$0 --help' for more information." >&5
15758echo "$as_me: error: unrecognized option: $1
15759Try \`$0 --help' for more information." >&2;}
15760 { (exit 1); exit 1; }; } ;;
15761
15762 *) ac_config_targets="$ac_config_targets $1" ;;
15763
15764 esac
15765 shift
15766done
15767
15768ac_configure_extra_args=
15769
15770if $ac_cs_silent; then
15771 exec 6>/dev/null
15772 ac_configure_extra_args="$ac_configure_extra_args --silent"
15773fi
15774
15775_ACEOF
15776cat >>$CONFIG_STATUS <<_ACEOF
15777if \$ac_cs_recheck; then
15778 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15779 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15780fi
15781
15782_ACEOF
15783
15784
15785
15786
15787
15788cat >>$CONFIG_STATUS <<\_ACEOF
15789for ac_config_target in $ac_config_targets
15790do
15791 case "$ac_config_target" in
15792 # Handling of arguments.
15793 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15794 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15795 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15796echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15797 { (exit 1); exit 1; }; };;
15798 esac
15799done
15800
15801# If the user did not use the arguments to specify the items to instantiate,
15802# then the envvar interface is used. Set only those that are not.
15803# We use the long form for the default assignment because of an extremely
15804# bizarre bug on SunOS 4.1.3.
15805if $ac_need_defaults; then
15806 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15807 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15808fi
15809
15810# Have a temporary directory for convenience. Make it in the build tree
15811# simply because there is no reason to put it here, and in addition,
15812# creating and moving files from /tmp can sometimes cause problems.
15813# Create a temporary directory, and hook for its removal unless debugging.
15814$debug ||
15815{
15816 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15817 trap '{ (exit 1); exit 1; }' 1 2 13 15
15818}
15819
15820# Create a (secure) tmp directory for tmp files.
15821
15822{
15823 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15824 test -n "$tmp" && test -d "$tmp"
15825} ||
15826{
15827 tmp=./confstat$$-$RANDOM
15828 (umask 077 && mkdir $tmp)
15829} ||
15830{
15831 echo "$me: cannot create a temporary directory in ." >&2
15832 { (exit 1); exit 1; }
15833}
15834
15835_ACEOF
15836
15837cat >>$CONFIG_STATUS <<_ACEOF
15838
15839#
15840# CONFIG_FILES section.
15841#
15842
15843# No need to generate the scripts if there are no CONFIG_FILES.
15844# This happens for instance when ./config.status config.h
15845if test -n "\$CONFIG_FILES"; then
15846 # Protect against being on the right side of a sed subst in config.status.
15847 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15848 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15849s,@SHELL@,$SHELL,;t t
15850s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15851s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15852s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15853s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15854s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15855s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15856s,@exec_prefix@,$exec_prefix,;t t
15857s,@prefix@,$prefix,;t t
15858s,@program_transform_name@,$program_transform_name,;t t
15859s,@bindir@,$bindir,;t t
15860s,@sbindir@,$sbindir,;t t
15861s,@libexecdir@,$libexecdir,;t t
15862s,@datadir@,$datadir,;t t
15863s,@sysconfdir@,$sysconfdir,;t t
15864s,@sharedstatedir@,$sharedstatedir,;t t
15865s,@localstatedir@,$localstatedir,;t t
15866s,@libdir@,$libdir,;t t
15867s,@includedir@,$includedir,;t t
15868s,@oldincludedir@,$oldincludedir,;t t
15869s,@infodir@,$infodir,;t t
15870s,@mandir@,$mandir,;t t
15871s,@build_alias@,$build_alias,;t t
15872s,@host_alias@,$host_alias,;t t
15873s,@target_alias@,$target_alias,;t t
15874s,@DEFS@,$DEFS,;t t
15875s,@ECHO_C@,$ECHO_C,;t t
15876s,@ECHO_N@,$ECHO_N,;t t
15877s,@ECHO_T@,$ECHO_T,;t t
15878s,@LIBS@,$LIBS,;t t
15879s,@SET_MAKE@,$SET_MAKE,;t t
15880s,@CC@,$CC,;t t
15881s,@CFLAGS@,$CFLAGS,;t t
15882s,@LDFLAGS@,$LDFLAGS,;t t
15883s,@CPPFLAGS@,$CPPFLAGS,;t t
15884s,@ac_ct_CC@,$ac_ct_CC,;t t
15885s,@EXEEXT@,$EXEEXT,;t t
15886s,@OBJEXT@,$OBJEXT,;t t
15887s,@CPP@,$CPP,;t t
15888s,@EGREP@,$EGREP,;t t
15889s,@AWK@,$AWK,;t t
15890s,@STRIP@,$STRIP,;t t
15891s,@CPP_MM@,$CPP_MM,;t t
15892s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
15893s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
15894s,@VIMNAME@,$VIMNAME,;t t
15895s,@EXNAME@,$EXNAME,;t t
15896s,@VIEWNAME@,$VIEWNAME,;t t
15897s,@line_break@,$line_break,;t t
15898s,@dovimdiff@,$dovimdiff,;t t
15899s,@dogvimdiff@,$dogvimdiff,;t t
15900s,@compiledby@,$compiledby,;t t
15901s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
15902s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
15903s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
15904s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
15905s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
15906s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
15907s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
15908s,@vi_cv_perllib@,$vi_cv_perllib,;t t
15909s,@shrpenv@,$shrpenv,;t t
15910s,@PERL_SRC@,$PERL_SRC,;t t
15911s,@PERL_OBJ@,$PERL_OBJ,;t t
15912s,@PERL_PRO@,$PERL_PRO,;t t
15913s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
15914s,@PERL_LIBS@,$PERL_LIBS,;t t
15915s,@vi_cv_path_python@,$vi_cv_path_python,;t t
15916s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
15917s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
15918s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
15919s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
15920s,@PYTHON_SRC@,$PYTHON_SRC,;t t
15921s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
15922s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
15923s,@TCL_SRC@,$TCL_SRC,;t t
15924s,@TCL_OBJ@,$TCL_OBJ,;t t
15925s,@TCL_PRO@,$TCL_PRO,;t t
15926s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
15927s,@TCL_LIBS@,$TCL_LIBS,;t t
15928s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
15929s,@RUBY_SRC@,$RUBY_SRC,;t t
15930s,@RUBY_OBJ@,$RUBY_OBJ,;t t
15931s,@RUBY_PRO@,$RUBY_PRO,;t t
15932s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
15933s,@RUBY_LIBS@,$RUBY_LIBS,;t t
15934s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
15935s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
15936s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
15937s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
15938s,@SNIFF_SRC@,$SNIFF_SRC,;t t
15939s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
15940s,@xmkmfpath@,$xmkmfpath,;t t
15941s,@X_CFLAGS@,$X_CFLAGS,;t t
15942s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15943s,@X_LIBS@,$X_LIBS,;t t
15944s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15945s,@X_LIB@,$X_LIB,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015946s,@GTK_CONFIG@,$GTK_CONFIG,;t t
15947s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
15948s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15949s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15950s,@GTK_LIBS@,$GTK_LIBS,;t t
15951s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
15952s,@GNOME_LIBS@,$GNOME_LIBS,;t t
15953s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
15954s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
15955s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
15956s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
15957s,@NARROW_PROTO@,$NARROW_PROTO,;t t
15958s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
15959s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
15960s,@GUITYPE@,$GUITYPE,;t t
15961s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
15962s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
15963s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
15964s,@TAGPRG@,$TAGPRG,;t t
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000015965s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
15966s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015967s,@MSGFMT@,$MSGFMT,;t t
15968s,@MAKEMO@,$MAKEMO,;t t
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015969s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015970s,@LIBOBJS@,$LIBOBJS,;t t
15971s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15972CEOF
15973
15974_ACEOF
15975
15976 cat >>$CONFIG_STATUS <<\_ACEOF
15977 # Split the substitutions into bite-sized pieces for seds with
15978 # small command number limits, like on Digital OSF/1 and HP-UX.
15979 ac_max_sed_lines=48
15980 ac_sed_frag=1 # Number of current file.
15981 ac_beg=1 # First line for current file.
15982 ac_end=$ac_max_sed_lines # Line after last line for current file.
15983 ac_more_lines=:
15984 ac_sed_cmds=
15985 while $ac_more_lines; do
15986 if test $ac_beg -gt 1; then
15987 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15988 else
15989 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15990 fi
15991 if test ! -s $tmp/subs.frag; then
15992 ac_more_lines=false
15993 else
15994 # The purpose of the label and of the branching condition is to
15995 # speed up the sed processing (if there are no `@' at all, there
15996 # is no need to browse any of the substitutions).
15997 # These are the two extra sed commands mentioned above.
15998 (echo ':t
15999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16000 if test -z "$ac_sed_cmds"; then
16001 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16002 else
16003 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16004 fi
16005 ac_sed_frag=`expr $ac_sed_frag + 1`
16006 ac_beg=$ac_end
16007 ac_end=`expr $ac_end + $ac_max_sed_lines`
16008 fi
16009 done
16010 if test -z "$ac_sed_cmds"; then
16011 ac_sed_cmds=cat
16012 fi
16013fi # test -n "$CONFIG_FILES"
16014
16015_ACEOF
16016cat >>$CONFIG_STATUS <<\_ACEOF
16017for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16019 case $ac_file in
16020 - | *:- | *:-:* ) # input from stdin
16021 cat >$tmp/stdin
16022 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16024 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16026 * ) ac_file_in=$ac_file.in ;;
16027 esac
16028
16029 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16030 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16031$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16032 X"$ac_file" : 'X\(//\)[^/]' \| \
16033 X"$ac_file" : 'X\(//\)$' \| \
16034 X"$ac_file" : 'X\(/\)' \| \
16035 . : '\(.\)' 2>/dev/null ||
16036echo X"$ac_file" |
16037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16039 /^X\(\/\/\)$/{ s//\1/; q; }
16040 /^X\(\/\).*/{ s//\1/; q; }
16041 s/.*/./; q'`
16042 { if $as_mkdir_p; then
16043 mkdir -p "$ac_dir"
16044 else
16045 as_dir="$ac_dir"
16046 as_dirs=
16047 while test ! -d "$as_dir"; do
16048 as_dirs="$as_dir $as_dirs"
16049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16051 X"$as_dir" : 'X\(//\)[^/]' \| \
16052 X"$as_dir" : 'X\(//\)$' \| \
16053 X"$as_dir" : 'X\(/\)' \| \
16054 . : '\(.\)' 2>/dev/null ||
16055echo X"$as_dir" |
16056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16058 /^X\(\/\/\)$/{ s//\1/; q; }
16059 /^X\(\/\).*/{ s//\1/; q; }
16060 s/.*/./; q'`
16061 done
16062 test ! -n "$as_dirs" || mkdir $as_dirs
16063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16064echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16065 { (exit 1); exit 1; }; }; }
16066
16067 ac_builddir=.
16068
16069if test "$ac_dir" != .; then
16070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16071 # A "../" for each directory in $ac_dir_suffix.
16072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16073else
16074 ac_dir_suffix= ac_top_builddir=
16075fi
16076
16077case $srcdir in
16078 .) # No --srcdir option. We are building in place.
16079 ac_srcdir=.
16080 if test -z "$ac_top_builddir"; then
16081 ac_top_srcdir=.
16082 else
16083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16084 fi ;;
16085 [\\/]* | ?:[\\/]* ) # Absolute path.
16086 ac_srcdir=$srcdir$ac_dir_suffix;
16087 ac_top_srcdir=$srcdir ;;
16088 *) # Relative path.
16089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16091esac
16092
16093# Do not use `cd foo && pwd` to compute absolute paths, because
16094# the directories may not exist.
16095case `pwd` in
16096.) ac_abs_builddir="$ac_dir";;
16097*)
16098 case "$ac_dir" in
16099 .) ac_abs_builddir=`pwd`;;
16100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16101 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16102 esac;;
16103esac
16104case $ac_abs_builddir in
16105.) ac_abs_top_builddir=${ac_top_builddir}.;;
16106*)
16107 case ${ac_top_builddir}. in
16108 .) ac_abs_top_builddir=$ac_abs_builddir;;
16109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16111 esac;;
16112esac
16113case $ac_abs_builddir in
16114.) ac_abs_srcdir=$ac_srcdir;;
16115*)
16116 case $ac_srcdir in
16117 .) ac_abs_srcdir=$ac_abs_builddir;;
16118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16120 esac;;
16121esac
16122case $ac_abs_builddir in
16123.) ac_abs_top_srcdir=$ac_top_srcdir;;
16124*)
16125 case $ac_top_srcdir in
16126 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16129 esac;;
16130esac
16131
16132
16133
16134 if test x"$ac_file" != x-; then
16135 { echo "$as_me:$LINENO: creating $ac_file" >&5
16136echo "$as_me: creating $ac_file" >&6;}
16137 rm -f "$ac_file"
16138 fi
16139 # Let's still pretend it is `configure' which instantiates (i.e., don't
16140 # use $as_me), people would be surprised to read:
16141 # /* config.h. Generated by config.status. */
16142 if test x"$ac_file" = x-; then
16143 configure_input=
16144 else
16145 configure_input="$ac_file. "
16146 fi
16147 configure_input=$configure_input"Generated from `echo $ac_file_in |
16148 sed 's,.*/,,'` by configure."
16149
16150 # First look for the input files in the build tree, otherwise in the
16151 # src tree.
16152 ac_file_inputs=`IFS=:
16153 for f in $ac_file_in; do
16154 case $f in
16155 -) echo $tmp/stdin ;;
16156 [\\/$]*)
16157 # Absolute (can't be DOS-style, as IFS=:)
16158 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16159echo "$as_me: error: cannot find input file: $f" >&2;}
16160 { (exit 1); exit 1; }; }
16161 echo "$f";;
16162 *) # Relative
16163 if test -f "$f"; then
16164 # Build tree
16165 echo "$f"
16166 elif test -f "$srcdir/$f"; then
16167 # Source tree
16168 echo "$srcdir/$f"
16169 else
16170 # /dev/null tree
16171 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16172echo "$as_me: error: cannot find input file: $f" >&2;}
16173 { (exit 1); exit 1; }; }
16174 fi;;
16175 esac
16176 done` || { (exit 1); exit 1; }
16177_ACEOF
16178cat >>$CONFIG_STATUS <<_ACEOF
16179 sed "$ac_vpsub
16180$extrasub
16181_ACEOF
16182cat >>$CONFIG_STATUS <<\_ACEOF
16183:t
16184/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16185s,@configure_input@,$configure_input,;t t
16186s,@srcdir@,$ac_srcdir,;t t
16187s,@abs_srcdir@,$ac_abs_srcdir,;t t
16188s,@top_srcdir@,$ac_top_srcdir,;t t
16189s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16190s,@builddir@,$ac_builddir,;t t
16191s,@abs_builddir@,$ac_abs_builddir,;t t
16192s,@top_builddir@,$ac_top_builddir,;t t
16193s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16194" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16195 rm -f $tmp/stdin
16196 if test x"$ac_file" != x-; then
16197 mv $tmp/out $ac_file
16198 else
16199 cat $tmp/out
16200 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000016201 fi
16202
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016203done
16204_ACEOF
16205cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016206
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016207#
16208# CONFIG_HEADER section.
16209#
Bram Moolenaar071d4272004-06-13 20:20:40 +000016210
16211# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16212# NAME is the cpp macro being defined and VALUE is the value it is being given.
16213#
16214# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016215ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16216ac_dB='[ ].*$,\1#\2'
16217ac_dC=' '
16218ac_dD=',;t'
16219# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16220ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16221ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016222ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016223ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016224
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016225for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000016226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016227 case $ac_file in
16228 - | *:- | *:-:* ) # input from stdin
16229 cat >$tmp/stdin
16230 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16232 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16234 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016235 esac
16236
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016237 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16238echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000016239
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016240 # First look for the input files in the build tree, otherwise in the
16241 # src tree.
16242 ac_file_inputs=`IFS=:
16243 for f in $ac_file_in; do
16244 case $f in
16245 -) echo $tmp/stdin ;;
16246 [\\/$]*)
16247 # Absolute (can't be DOS-style, as IFS=:)
16248 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16249echo "$as_me: error: cannot find input file: $f" >&2;}
16250 { (exit 1); exit 1; }; }
16251 # Do quote $f, to prevent DOS paths from being IFS'd.
16252 echo "$f";;
16253 *) # Relative
16254 if test -f "$f"; then
16255 # Build tree
16256 echo "$f"
16257 elif test -f "$srcdir/$f"; then
16258 # Source tree
16259 echo "$srcdir/$f"
16260 else
16261 # /dev/null tree
16262 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16263echo "$as_me: error: cannot find input file: $f" >&2;}
16264 { (exit 1); exit 1; }; }
16265 fi;;
16266 esac
16267 done` || { (exit 1); exit 1; }
16268 # Remove the trailing spaces.
16269 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000016270
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016271_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016272
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016273# Transform confdefs.h into two sed scripts, `conftest.defines' and
16274# `conftest.undefs', that substitutes the proper values into
16275# config.h.in to produce config.h. The first handles `#define'
16276# templates, and the second `#undef' templates.
16277# And first: Protect against being on the right side of a sed subst in
16278# config.status. Protect against being in an unquoted here document
16279# in config.status.
16280rm -f conftest.defines conftest.undefs
16281# Using a here document instead of a string reduces the quoting nightmare.
16282# Putting comments in sed scripts is not portable.
16283#
16284# `end' is used to avoid that the second main sed command (meant for
16285# 0-ary CPP macros) applies to n-ary macro definitions.
16286# See the Autoconf documentation for `clear'.
16287cat >confdef2sed.sed <<\_ACEOF
16288s/[\\&,]/\\&/g
16289s,[\\$`],\\&,g
16290t clear
16291: clear
16292s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16293t end
16294s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16295: end
16296_ACEOF
16297# If some macros were called several times there might be several times
16298# the same #defines, which is useless. Nevertheless, we may not want to
16299# sort them, since we want the *last* AC-DEFINE to be honored.
16300uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16301sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16302rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000016303
16304# This sed command replaces #undef with comments. This is necessary, for
16305# example, in the case of _POSIX_SOURCE, which is predefined and required
16306# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016307cat >>conftest.undefs <<\_ACEOF
16308s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16309_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016310
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016311# Break up conftest.defines because some shells have a limit on the size
16312# of here documents, and old seds have small limits too (100 cmds).
16313echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16314echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16315echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16316echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016317rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016318while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000016319do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016320 # Write a limited-size here document to $tmp/defines.sed.
16321 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16322 # Speed up: don't consider the non `#define' lines.
16323 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16324 # Work around the forget-to-reset-the-flag bug.
16325 echo 't clr' >>$CONFIG_STATUS
16326 echo ': clr' >>$CONFIG_STATUS
16327 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016328 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016329 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16330 rm -f $tmp/in
16331 mv $tmp/out $tmp/in
16332' >>$CONFIG_STATUS
16333 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16334 rm -f conftest.defines
16335 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000016336done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016337rm -f conftest.defines
16338echo ' fi # grep' >>$CONFIG_STATUS
16339echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016340
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016341# Break up conftest.undefs because some shells have a limit on the size
16342# of here documents, and old seds have small limits too (100 cmds).
16343echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16344rm -f conftest.tail
16345while grep . conftest.undefs >/dev/null
16346do
16347 # Write a limited-size here document to $tmp/undefs.sed.
16348 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16349 # Speed up: don't consider the non `#undef'
16350 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16351 # Work around the forget-to-reset-the-flag bug.
16352 echo 't clr' >>$CONFIG_STATUS
16353 echo ': clr' >>$CONFIG_STATUS
16354 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16355 echo 'CEOF
16356 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16357 rm -f $tmp/in
16358 mv $tmp/out $tmp/in
16359' >>$CONFIG_STATUS
16360 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16361 rm -f conftest.undefs
16362 mv conftest.tail conftest.undefs
16363done
16364rm -f conftest.undefs
16365
16366cat >>$CONFIG_STATUS <<\_ACEOF
16367 # Let's still pretend it is `configure' which instantiates (i.e., don't
16368 # use $as_me), people would be surprised to read:
16369 # /* config.h. Generated by config.status. */
16370 if test x"$ac_file" = x-; then
16371 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016372 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016373 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016374 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016375 cat $tmp/in >>$tmp/config.h
16376 rm -f $tmp/in
16377 if test x"$ac_file" != x-; then
16378 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16379 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16380echo "$as_me: $ac_file is unchanged" >&6;}
16381 else
16382 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16383$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16384 X"$ac_file" : 'X\(//\)[^/]' \| \
16385 X"$ac_file" : 'X\(//\)$' \| \
16386 X"$ac_file" : 'X\(/\)' \| \
16387 . : '\(.\)' 2>/dev/null ||
16388echo X"$ac_file" |
16389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16390 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16391 /^X\(\/\/\)$/{ s//\1/; q; }
16392 /^X\(\/\).*/{ s//\1/; q; }
16393 s/.*/./; q'`
16394 { if $as_mkdir_p; then
16395 mkdir -p "$ac_dir"
16396 else
16397 as_dir="$ac_dir"
16398 as_dirs=
16399 while test ! -d "$as_dir"; do
16400 as_dirs="$as_dir $as_dirs"
16401 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16402$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16403 X"$as_dir" : 'X\(//\)[^/]' \| \
16404 X"$as_dir" : 'X\(//\)$' \| \
16405 X"$as_dir" : 'X\(/\)' \| \
16406 . : '\(.\)' 2>/dev/null ||
16407echo X"$as_dir" |
16408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16410 /^X\(\/\/\)$/{ s//\1/; q; }
16411 /^X\(\/\).*/{ s//\1/; q; }
16412 s/.*/./; q'`
16413 done
16414 test ! -n "$as_dirs" || mkdir $as_dirs
16415 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16416echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16417 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016418
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016419 rm -f $ac_file
16420 mv $tmp/config.h $ac_file
16421 fi
16422 else
16423 cat $tmp/config.h
16424 rm -f $tmp/config.h
16425 fi
16426done
16427_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016428
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016429cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016430
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016431{ (exit 0); exit 0; }
16432_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016433chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016434ac_clean_files=$ac_clean_files_save
16435
16436
16437# configure is writing to config.log, and then calls config.status.
16438# config.status does its own redirection, appending to config.log.
16439# Unfortunately, on DOS this fails, as config.log is still kept open
16440# by configure, so config.status won't be able to write to it; its
16441# output is simply discarded. So we exec the FD to /dev/null,
16442# effectively closing config.log, so it can be properly (re)opened and
16443# appended to by config.status. When coming back to configure, we
16444# need to make the FD available again.
16445if test "$no_create" != yes; then
16446 ac_cs_success=:
16447 ac_config_status_args=
16448 test "$silent" = yes &&
16449 ac_config_status_args="$ac_config_status_args --quiet"
16450 exec 5>/dev/null
16451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Bram Moolenaarc7453f52006-02-10 23:20:28 +000016452 exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16454 # would make configure fail if this is the last instruction.
16455 $ac_cs_success || { (exit 1); exit 1; }
16456fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016457
16458