blob: 7a308a7e8ded077b8c2095ce0577b831b0bf76c2 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#! /bin/sh
Bram Moolenaar071d4272004-06-13 20:20:40 +00002# Guess values for system-dependent variables and create Makefiles.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003# Generated by GNU Autoconf 2.59.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004#
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Bram Moolenaar071d4272004-06-13 20:20:40 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000011
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
Bram Moolenaar071d4272004-06-13 20:20:40 +0000254ac_default_prefix=/usr/local
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="vim.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
Bram Moolenaar9372a112005-12-06 19:59:18 +0000312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK STRIP CPP_MM OS_EXTRA_SRC OS_EXTRA_OBJ VIMNAME EXNAME VIEWNAME line_break dovimdiff dogvimdiff compiledby vi_cv_path_mzscheme MZSCHEME_SRC MZSCHEME_OBJ MZSCHEME_PRO MZSCHEME_LIBS MZSCHEME_CFLAGS vi_cv_path_perl vi_cv_perllib shrpenv PERL_SRC PERL_OBJ PERL_PRO PERL_CFLAGS PERL_LIBS vi_cv_path_python PYTHON_CONFDIR PYTHON_LIBS PYTHON_GETPATH_CFLAGS PYTHON_CFLAGS PYTHON_SRC PYTHON_OBJ vi_cv_path_tcl TCL_SRC TCL_OBJ TCL_PRO TCL_CFLAGS TCL_LIBS vi_cv_path_ruby RUBY_SRC RUBY_OBJ RUBY_PRO RUBY_CFLAGS RUBY_LIBS WORKSHOP_SRC WORKSHOP_OBJ NETBEANS_SRC NETBEANS_OBJ SNIFF_SRC SNIFF_OBJ xmkmfpath X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIB GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG INSTALL_LANGS INSTALL_TOOL_LANGS MSGFMT MAKEMO DEPEND_CFLAGS_FILTER LIBOBJS LTLIBOBJS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000313ac_subst_files=''
Bram Moolenaar071d4272004-06-13 20:20:40 +0000314
315# Initialize some variables set by options.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000316ac_init_help=
317ac_init_version=false
Bram Moolenaar071d4272004-06-13 20:20:40 +0000318# The variables have the same names as the options, with
319# dashes changed to underlines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000320cache_file=/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +0000321exec_prefix=NONE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000322no_create=
Bram Moolenaar071d4272004-06-13 20:20:40 +0000323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
Bram Moolenaar071d4272004-06-13 20:20:40 +0000331verbose=
332x_includes=NONE
333x_libraries=NONE
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
Bram Moolenaar071d4272004-06-13 20:20:40 +0000353ac_prev=
354for ac_option
355do
Bram Moolenaar071d4272004-06-13 20:20:40 +0000356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000367 case $ac_option in
Bram Moolenaar071d4272004-06-13 20:20:40 +0000368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000372 bindir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000373
374 -build | --build | --buil | --bui | --bu)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000375 ac_prev=build_alias ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000377 build_alias=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000393 datadir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000394
395 -disable-* | --disable-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000397 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000403
404 -enable-* | --enable-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000406 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000413 *) ac_optarg=yes ;;
414 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000415 eval "enable_$ac_feature='$ac_optarg'" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000424 exec_prefix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000436
437 -host | --host | --hos | --ho)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000438 ac_prev=host_alias ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000439 -host=* | --host=* | --hos=* | --ho=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000440 host_alias=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000447 includedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000452 infodir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000457 libdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000464 libexecdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000473 localstatedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000478 mandir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000485 | --no-cr | --no-c | -n)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000499 oldincludedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000504 prefix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000511 program_prefix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000518 program_suffix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000535 program_transform_name=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000545 sbindir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000556 sharedstatedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000561 site=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000566 srcdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000573 sysconfdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000576 ac_prev=target_alias ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000578 target_alias=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000585
586 -with-* | --with-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000588 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000592 ac_package=`echo $ac_package| sed 's/-/_/g'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000595 *) ac_optarg=yes ;;
596 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000597 eval "with_$ac_package='$ac_optarg'" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000598
599 -without-* | --without-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000601 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000617 x_includes=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000624 x_libraries=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000625
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000629 ;;
630
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
Bram Moolenaar071d4272004-06-13 20:20:40 +0000641 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000656fi
657
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
Bram Moolenaar071d4272004-06-13 20:20:40 +0000660do
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000666 esac
667done
668
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
Bram Moolenaar071d4272004-06-13 20:20:40 +0000680
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
Bram Moolenaar071d4272004-06-13 20:20:40 +0000687
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
Bram Moolenaar071d4272004-06-13 20:20:40 +0000704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000732 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000735 fi
736fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
Bram Moolenaar071d4272004-06-13 20:20:40 +0000773
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834X features:
835 --x-includes=DIR X include files are in DIR
836 --x-libraries=DIR X library files are in DIR
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --disable-darwin Disable Darwin (Mac OS X) support.
848 --disable-xsmp Disable XSMP session management
849 --disable-xsmp-interact Disable XSMP interaction
850 --enable-mzschemeinterp Include MzScheme interpreter.
851 --enable-perlinterp Include Perl interpreter.
852 --enable-pythoninterp Include Python interpreter.
853 --enable-tclinterp Include Tcl interpreter.
854 --enable-rubyinterp Include Ruby interpreter.
855 --enable-cscope Include cscope interface.
856 --enable-workshop Include Sun Visual Workshop support.
857 --disable-netbeans Disable NetBeans integration support.
858 --enable-sniff Include Sniff interface.
859 --enable-multibyte Include multibyte editing support.
860 --enable-hangulinput Include Hangul input support.
861 --enable-xim Include XIM input support.
862 --enable-fontset Include X fontset output support.
Bram Moolenaar9372a112005-12-06 19:59:18 +0000863 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000864 --enable-gtk-check If auto-select GUI, check for GTK default=yes
865 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
866 --enable-gnome-check If GTK GUI, check for GNOME default=no
867 --enable-motif-check If auto-select GUI, check for Motif default=yes
868 --enable-athena-check If auto-select GUI, check for Athena default=yes
869 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
870 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000871 --disable-gtktest Do not try to compile and run a test GTK program
872 --disable-acl Don't check for ACL support.
873 --disable-gpm Don't use gpm (Linux mouse daemon).
874 --disable-nls Don't support NLS (gettext()).
875
876Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Bram Moolenaar899dddf2006-03-26 21:06:50 +0000879 --with-mac-arch=ARCH current, intel, ppc or both
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000880 --with-vim-name=NAME what to call the Vim executable
881 --with-ex-name=NAME what to call the Ex executable
882 --with-view-name=NAME what to call the View executable
883 --with-global-runtime=DIR global runtime directory in 'runtimepath'
884 --with-modified-by=NAME name of who modified a release version
885 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
886 --with-compiledby=NAME name to show in :version message
887 --with-plthome=PLTHOME Use PLTHOME.
888 --with-python-config-dir=PATH Python's config directory
889 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
890 --with-x use the X Window System
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000891 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
892 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
893 --with-gnome-includes=DIR Specify location of GNOME headers
894 --with-gnome-libs=DIR Specify location of GNOME libs
895 --with-gnome Specify prefix for GNOME files
896 --with-motif-lib=STRING Library for Motif
897 --with-tlib=library terminal library to be used
898
899Some influential environment variables:
900 CC C compiler command
901 CFLAGS C compiler flags
902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903 nonstandard directory <lib dir>
904 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905 headers in a nonstandard directory <include dir>
906 CPP C preprocessor
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000907
908Use these variables to override the choices made by `configure' or to help
909it to find libraries and programs with nonstandard names/locations.
910
911_ACEOF
912fi
913
914if test "$ac_init_help" = "recursive"; then
915 # If there are subdirs, report their specific --help.
916 ac_popdir=`pwd`
917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918 test -d $ac_dir || continue
919 ac_builddir=.
920
921if test "$ac_dir" != .; then
922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923 # A "../" for each directory in $ac_dir_suffix.
924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925else
926 ac_dir_suffix= ac_top_builddir=
927fi
928
929case $srcdir in
930 .) # No --srcdir option. We are building in place.
931 ac_srcdir=.
932 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=.
934 else
935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936 fi ;;
937 [\\/]* | ?:[\\/]* ) # Absolute path.
938 ac_srcdir=$srcdir$ac_dir_suffix;
939 ac_top_srcdir=$srcdir ;;
940 *) # Relative path.
941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
943esac
944
945# Do not use `cd foo && pwd` to compute absolute paths, because
946# the directories may not exist.
947case `pwd` in
948.) ac_abs_builddir="$ac_dir";;
949*)
950 case "$ac_dir" in
951 .) ac_abs_builddir=`pwd`;;
952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
954 esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_builddir=${ac_top_builddir}.;;
958*)
959 case ${ac_top_builddir}. in
960 .) ac_abs_top_builddir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
963 esac;;
964esac
965case $ac_abs_builddir in
966.) ac_abs_srcdir=$ac_srcdir;;
967*)
968 case $ac_srcdir in
969 .) ac_abs_srcdir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
972 esac;;
973esac
974case $ac_abs_builddir in
975.) ac_abs_top_srcdir=$ac_top_srcdir;;
976*)
977 case $ac_top_srcdir in
978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
981 esac;;
982esac
983
984 cd $ac_dir
985 # Check for guested configure; otherwise get Cygnus style configure.
986 if test -f $ac_srcdir/configure.gnu; then
987 echo
988 $SHELL $ac_srcdir/configure.gnu --help=recursive
989 elif test -f $ac_srcdir/configure; then
990 echo
991 $SHELL $ac_srcdir/configure --help=recursive
992 elif test -f $ac_srcdir/configure.ac ||
993 test -f $ac_srcdir/configure.in; then
994 echo
995 $ac_configure --help
996 else
997 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 fi
999 cd $ac_popdir
1000 done
1001fi
1002
1003test -n "$ac_init_help" && exit 0
1004if $ac_init_version; then
1005 cat <<\_ACEOF
1006
1007Copyright (C) 2003 Free Software Foundation, Inc.
1008This configure script is free software; the Free Software Foundation
1009gives unlimited permission to copy, distribute and modify it.
1010_ACEOF
1011 exit 0
1012fi
Bram Moolenaarc7453f52006-02-10 23:20:28 +00001013exec 5>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001014cat >&5 <<_ACEOF
1015This file contains any messages produced by compilers while
1016running configure, to aid debugging if configure makes a mistake.
1017
1018It was created by $as_me, which was
1019generated by GNU Autoconf 2.59. Invocation command line was
1020
1021 $ $0 $@
1022
1023_ACEOF
1024{
1025cat <<_ASUNAME
1026## --------- ##
1027## Platform. ##
1028## --------- ##
1029
1030hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035
1036/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1038
1039/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1040/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1041/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1043/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1044/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1045/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1046
1047_ASUNAME
1048
1049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050for as_dir in $PATH
1051do
1052 IFS=$as_save_IFS
1053 test -z "$as_dir" && as_dir=.
1054 echo "PATH: $as_dir"
1055done
1056
1057} >&5
1058
1059cat >&5 <<_ACEOF
1060
1061
1062## ----------- ##
1063## Core tests. ##
1064## ----------- ##
1065
1066_ACEOF
1067
1068
1069# Keep a trace of the command line.
1070# Strip out --no-create and --no-recursion so they do not pile up.
1071# Strip out --silent because we don't want to record it for future runs.
1072# Also quote any args containing shell meta-characters.
1073# Make two passes to allow for proper duplicate-argument suppression.
1074ac_configure_args=
1075ac_configure_args0=
1076ac_configure_args1=
1077ac_sep=
1078ac_must_keep_next=false
1079for ac_pass in 1 2
1080do
1081 for ac_arg
1082 do
1083 case $ac_arg in
1084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 continue ;;
1088 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090 esac
1091 case $ac_pass in
1092 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093 2)
1094 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095 if test $ac_must_keep_next = true; then
1096 ac_must_keep_next=false # Got value, back to normal.
1097 else
1098 case $ac_arg in
1099 *=* | --config-cache | -C | -disable-* | --disable-* \
1100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102 | -with-* | --with-* | -without-* | --without-* | --x)
1103 case "$ac_configure_args0 " in
1104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105 esac
1106 ;;
1107 -* ) ac_must_keep_next=true ;;
1108 esac
1109 fi
1110 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111 # Get rid of the leading space.
1112 ac_sep=" "
1113 ;;
1114 esac
1115 done
1116done
1117$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119
1120# When interrupted or exit'd, cleanup temporary files, and complete
1121# config.log. We remove comments because anyway the quotes in there
1122# would cause problems or look ugly.
1123# WARNING: Be sure not to use single quotes in there, as some shells,
1124# such as our DU 5.0 friend, will then `close' the trap.
1125trap 'exit_status=$?
1126 # Save into config.log some information that might help in debugging.
1127 {
1128 echo
1129
1130 cat <<\_ASBOX
1131## ---------------- ##
1132## Cache variables. ##
1133## ---------------- ##
1134_ASBOX
1135 echo
1136 # The following way of writing the cache mishandles newlines in values,
1137{
1138 (set) 2>&1 |
1139 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140 *ac_space=\ *)
1141 sed -n \
1142 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144 ;;
1145 *)
1146 sed -n \
1147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148 ;;
1149 esac;
1150}
1151 echo
1152
1153 cat <<\_ASBOX
1154## ----------------- ##
1155## Output variables. ##
1156## ----------------- ##
1157_ASBOX
1158 echo
1159 for ac_var in $ac_subst_vars
1160 do
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1163 done | sort
1164 echo
1165
1166 if test -n "$ac_subst_files"; then
1167 cat <<\_ASBOX
1168## ------------- ##
1169## Output files. ##
1170## ------------- ##
1171_ASBOX
1172 echo
1173 for ac_var in $ac_subst_files
1174 do
1175 eval ac_val=$`echo $ac_var`
1176 echo "$ac_var='"'"'$ac_val'"'"'"
1177 done | sort
1178 echo
1179 fi
1180
1181 if test -s confdefs.h; then
1182 cat <<\_ASBOX
1183## ----------- ##
1184## confdefs.h. ##
1185## ----------- ##
1186_ASBOX
1187 echo
1188 sed "/^$/d" confdefs.h | sort
1189 echo
1190 fi
1191 test "$ac_signal" != 0 &&
1192 echo "$as_me: caught signal $ac_signal"
1193 echo "$as_me: exit $exit_status"
1194 } >&5
1195 rm -f core *.core &&
1196 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197 exit $exit_status
1198 ' 0
1199for ac_signal in 1 2 13 15; do
1200 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201done
1202ac_signal=0
1203
1204# confdefs.h avoids OS command line length limits that DEFS can exceed.
1205rm -rf conftest* confdefs.h
1206# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207echo >confdefs.h
1208
1209# Predefined preprocessor variables.
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_NAME "$PACKAGE_NAME"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_VERSION "$PACKAGE_VERSION"
1223_ACEOF
1224
1225
1226cat >>confdefs.h <<_ACEOF
1227#define PACKAGE_STRING "$PACKAGE_STRING"
1228_ACEOF
1229
1230
1231cat >>confdefs.h <<_ACEOF
1232#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233_ACEOF
1234
1235
1236# Let the site file select an alternate cache file if it wants to.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001237# Prefer explicitly selected file to automatically selected ones.
1238if test -z "$CONFIG_SITE"; then
1239 if test "x$prefix" != xNONE; then
1240 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241 else
1242 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243 fi
1244fi
1245for ac_site_file in $CONFIG_SITE; do
1246 if test -r "$ac_site_file"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001247 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248echo "$as_me: loading site script $ac_site_file" >&6;}
1249 sed 's/^/| /' "$ac_site_file" >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00001250 . "$ac_site_file"
1251 fi
1252done
1253
1254if test -r "$cache_file"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001255 # Some versions of bash will fail to source /dev/null (special
1256 # files actually), so we avoid doing that.
1257 if test -f "$cache_file"; then
1258 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259echo "$as_me: loading cache $cache_file" >&6;}
1260 case $cache_file in
1261 [\\/]* | ?:[\\/]* ) . $cache_file;;
1262 *) . ./$cache_file;;
1263 esac
1264 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001265else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001266 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267echo "$as_me: creating cache $cache_file" >&6;}
1268 >$cache_file
1269fi
1270
1271# Check that the precious variables saved in the cache have kept the same
1272# value.
1273ac_cache_corrupted=false
1274for ac_var in `(set) 2>&1 |
1275 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277 eval ac_new_set=\$ac_env_${ac_var}_set
1278 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279 eval ac_new_val="\$ac_env_${ac_var}_value"
1280 case $ac_old_set,$ac_new_set in
1281 set,)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,set)
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1289 ,);;
1290 *)
1291 if test "x$ac_old_val" != "x$ac_new_val"; then
1292 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1295echo "$as_me: former value: $ac_old_val" >&2;}
1296 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1297echo "$as_me: current value: $ac_new_val" >&2;}
1298 ac_cache_corrupted=:
1299 fi;;
1300 esac
1301 # Pass precious variables to config.status.
1302 if test "$ac_new_set" = set; then
1303 case $ac_new_val in
1304 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306 *) ac_arg=$ac_var=$ac_new_val ;;
1307 esac
1308 case " $ac_configure_args " in
1309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1310 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311 esac
1312 fi
1313done
1314if $ac_cache_corrupted; then
1315 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00001320fi
1321
1322ac_ext=c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001323ac_cpp='$CPP $CPPFLAGS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bram Moolenaar071d4272004-06-13 20:20:40 +00001327
1328
1329
1330
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1347
1348
1349cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001350#define UNIX 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001351_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001352
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001353echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1354echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1355set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1356if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001358else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001359 cat >conftest.make <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001360all:
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001361 @echo 'ac_maketemp="$(MAKE)"'
1362_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001363# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001364eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Bram Moolenaar071d4272004-06-13 20:20:40 +00001365if test -n "$ac_maketemp"; then
1366 eval ac_cv_prog_make_${ac_make}_set=yes
1367else
1368 eval ac_cv_prog_make_${ac_make}_set=no
1369fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001370rm -f conftest.make
Bram Moolenaar071d4272004-06-13 20:20:40 +00001371fi
1372if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001373 echo "$as_me:$LINENO: result: yes" >&5
1374echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001375 SET_MAKE=
1376else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001377 echo "$as_me:$LINENO: result: no" >&5
1378echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001379 SET_MAKE="MAKE=${MAKE-make}"
1380fi
1381
1382
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001383ac_ext=c
1384ac_cpp='$CPP $CPPFLAGS'
1385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1387ac_compiler_gnu=$ac_cv_c_compiler_gnu
1388if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1390set dummy ${ac_tool_prefix}gcc; ac_word=$2
1391echo "$as_me:$LINENO: checking for $ac_word" >&5
1392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393if test "${ac_cv_prog_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001395else
1396 if test -n "$CC"; then
1397 ac_cv_prog_CC="$CC" # Let the user override the test.
1398else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400for as_dir in $PATH
1401do
1402 IFS=$as_save_IFS
1403 test -z "$as_dir" && as_dir=.
1404 for ac_exec_ext in '' $ac_executable_extensions; do
1405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1406 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408 break 2
1409 fi
1410done
1411done
1412
Bram Moolenaar071d4272004-06-13 20:20:40 +00001413fi
1414fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001415CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001416if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001417 echo "$as_me:$LINENO: result: $CC" >&5
1418echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001419else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001420 echo "$as_me:$LINENO: result: no" >&5
1421echo "${ECHO_T}no" >&6
1422fi
1423
1424fi
1425if test -z "$ac_cv_prog_CC"; then
1426 ac_ct_CC=$CC
1427 # Extract the first word of "gcc", so it can be a program name with args.
1428set dummy gcc; ac_word=$2
1429echo "$as_me:$LINENO: checking for $ac_word" >&5
1430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1433else
1434 if test -n "$ac_ct_CC"; then
1435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1436else
1437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438for as_dir in $PATH
1439do
1440 IFS=$as_save_IFS
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_prog_ac_ct_CC="gcc"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446 break 2
1447 fi
1448done
1449done
1450
1451fi
1452fi
1453ac_ct_CC=$ac_cv_prog_ac_ct_CC
1454if test -n "$ac_ct_CC"; then
1455 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1456echo "${ECHO_T}$ac_ct_CC" >&6
1457else
1458 echo "$as_me:$LINENO: result: no" >&5
1459echo "${ECHO_T}no" >&6
1460fi
1461
1462 CC=$ac_ct_CC
1463else
1464 CC="$ac_cv_prog_CC"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001465fi
1466
1467if test -z "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001468 if test -n "$ac_tool_prefix"; then
1469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1470set dummy ${ac_tool_prefix}cc; ac_word=$2
1471echo "$as_me:$LINENO: checking for $ac_word" >&5
1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473if test "${ac_cv_prog_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001475else
1476 if test -n "$CC"; then
1477 ac_cv_prog_CC="$CC" # Let the user override the test.
1478else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480for as_dir in $PATH
1481do
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_CC="${ac_tool_prefix}cc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
1489 fi
1490done
1491done
1492
1493fi
1494fi
1495CC=$ac_cv_prog_CC
1496if test -n "$CC"; then
1497 echo "$as_me:$LINENO: result: $CC" >&5
1498echo "${ECHO_T}$CC" >&6
1499else
1500 echo "$as_me:$LINENO: result: no" >&5
1501echo "${ECHO_T}no" >&6
1502fi
1503
1504fi
1505if test -z "$ac_cv_prog_CC"; then
1506 ac_ct_CC=$CC
1507 # Extract the first word of "cc", so it can be a program name with args.
1508set dummy cc; ac_word=$2
1509echo "$as_me:$LINENO: checking for $ac_word" >&5
1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514 if test -n "$ac_ct_CC"; then
1515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516else
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520 IFS=$as_save_IFS
1521 test -z "$as_dir" && as_dir=.
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_ac_ct_CC="cc"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526 break 2
1527 fi
1528done
1529done
1530
1531fi
1532fi
1533ac_ct_CC=$ac_cv_prog_ac_ct_CC
1534if test -n "$ac_ct_CC"; then
1535 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1536echo "${ECHO_T}$ac_ct_CC" >&6
1537else
1538 echo "$as_me:$LINENO: result: no" >&5
1539echo "${ECHO_T}no" >&6
1540fi
1541
1542 CC=$ac_ct_CC
1543else
1544 CC="$ac_cv_prog_CC"
1545fi
1546
1547fi
1548if test -z "$CC"; then
1549 # Extract the first word of "cc", so it can be a program name with args.
1550set dummy cc; ac_word=$2
1551echo "$as_me:$LINENO: checking for $ac_word" >&5
1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553if test "${ac_cv_prog_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 if test -n "$CC"; then
1557 ac_cv_prog_CC="$CC" # Let the user override the test.
1558else
Bram Moolenaar071d4272004-06-13 20:20:40 +00001559 ac_prog_rejected=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561for as_dir in $PATH
1562do
1563 IFS=$as_save_IFS
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1568 ac_prog_rejected=yes
1569 continue
1570 fi
1571 ac_cv_prog_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1574 fi
1575done
1576done
1577
Bram Moolenaar071d4272004-06-13 20:20:40 +00001578if test $ac_prog_rejected = yes; then
1579 # We found a bogon in the path, so make sure we never use it.
1580 set dummy $ac_cv_prog_CC
1581 shift
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001582 if test $# != 0; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00001583 # We chose a different compiler from the bogus one.
1584 # However, it has the same basename, so the bogon will be chosen
1585 # first if we set CC to just the basename; use the full file name.
1586 shift
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001588 fi
1589fi
1590fi
1591fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001592CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001593if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001594 echo "$as_me:$LINENO: result: $CC" >&5
1595echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001596else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001597 echo "$as_me:$LINENO: result: no" >&5
1598echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001599fi
1600
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001601fi
1602if test -z "$CC"; then
1603 if test -n "$ac_tool_prefix"; then
1604 for ac_prog in cl
1605 do
1606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1608echo "$as_me:$LINENO: checking for $ac_word" >&5
1609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001612else
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1615else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1626 fi
1627done
1628done
1629
Bram Moolenaar071d4272004-06-13 20:20:40 +00001630fi
1631fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001632CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001633if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001634 echo "$as_me:$LINENO: result: $CC" >&5
1635echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001636else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001637 echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001639fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001640
1641 test -n "$CC" && break
1642 done
1643fi
1644if test -z "$CC"; then
1645 ac_ct_CC=$CC
1646 for ac_prog in cl
1647do
1648 # Extract the first word of "$ac_prog", so it can be a program name with args.
1649set dummy $ac_prog; ac_word=$2
1650echo "$as_me:$LINENO: checking for $ac_word" >&5
1651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 if test -n "$ac_ct_CC"; then
1656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657else
1658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659for as_dir in $PATH
1660do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_ac_ct_CC="$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
Bram Moolenaar071d4272004-06-13 20:20:40 +00001668 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001669done
1670done
1671
1672fi
1673fi
1674ac_ct_CC=$ac_cv_prog_ac_ct_CC
1675if test -n "$ac_ct_CC"; then
1676 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1677echo "${ECHO_T}$ac_ct_CC" >&6
1678else
1679 echo "$as_me:$LINENO: result: no" >&5
1680echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001681fi
1682
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001683 test -n "$ac_ct_CC" && break
1684done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001685
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001686 CC=$ac_ct_CC
1687fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001688
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001689fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001690
Bram Moolenaar071d4272004-06-13 20:20:40 +00001691
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001692test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1693See \`config.log' for more details." >&5
1694echo "$as_me: error: no acceptable C compiler found in \$PATH
1695See \`config.log' for more details." >&2;}
1696 { (exit 1); exit 1; }; }
1697
1698# Provide some information about the compiler.
1699echo "$as_me:$LINENO:" \
1700 "checking for C compiler version" >&5
1701ac_compiler=`set X $ac_compile; echo $2`
1702{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1703 (eval $ac_compiler --version </dev/null >&5) 2>&5
1704 ac_status=$?
1705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1707{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1708 (eval $ac_compiler -v </dev/null >&5) 2>&5
1709 ac_status=$?
1710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711 (exit $ac_status); }
1712{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1713 (eval $ac_compiler -V </dev/null >&5) 2>&5
1714 ac_status=$?
1715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716 (exit $ac_status); }
1717
1718cat >conftest.$ac_ext <<_ACEOF
1719/* confdefs.h. */
1720_ACEOF
1721cat confdefs.h >>conftest.$ac_ext
1722cat >>conftest.$ac_ext <<_ACEOF
1723/* end confdefs.h. */
1724
1725int
1726main ()
1727{
1728
1729 ;
1730 return 0;
1731}
1732_ACEOF
1733ac_clean_files_save=$ac_clean_files
1734ac_clean_files="$ac_clean_files a.out a.exe b.out"
1735# Try to create an executable without -o first, disregard a.out.
1736# It will help us diagnose broken compilers, and finding out an intuition
1737# of exeext.
1738echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1739echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1740ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1741if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1742 (eval $ac_link_default) 2>&5
1743 ac_status=$?
1744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745 (exit $ac_status); }; then
1746 # Find the output, starting from the most likely. This scheme is
1747# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1748# resort.
1749
1750# Be careful to initialize this variable, since it used to be cached.
1751# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1752ac_cv_exeext=
1753# b.out is created by i960 compilers.
1754for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1755do
1756 test -f "$ac_file" || continue
1757 case $ac_file in
1758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1759 ;;
1760 conftest.$ac_ext )
1761 # This is the source file.
1762 ;;
1763 [ab].out )
1764 # We found the default executable, but exeext='' is most
1765 # certainly right.
1766 break;;
1767 *.* )
1768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1769 # FIXME: I believe we export ac_cv_exeext for Libtool,
1770 # but it would be cool to find out if it's true. Does anybody
1771 # maintain Libtool? --akim.
1772 export ac_cv_exeext
1773 break;;
1774 * )
1775 break;;
1776 esac
1777done
1778else
1779 echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1783See \`config.log' for more details." >&5
1784echo "$as_me: error: C compiler cannot create executables
1785See \`config.log' for more details." >&2;}
1786 { (exit 77); exit 77; }; }
1787fi
1788
1789ac_exeext=$ac_cv_exeext
1790echo "$as_me:$LINENO: result: $ac_file" >&5
1791echo "${ECHO_T}$ac_file" >&6
1792
1793# Check the compiler produces executables we can run. If not, either
1794# the compiler is broken, or we cross compile.
1795echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1796echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1797# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1798# If not cross compiling, check that we can run a simple program.
1799if test "$cross_compiling" != yes; then
1800 if { ac_try='./$ac_file'
1801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1802 (eval $ac_try) 2>&5
1803 ac_status=$?
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1806 cross_compiling=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00001807 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001808 if test "$cross_compiling" = maybe; then
1809 cross_compiling=yes
1810 else
1811 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1812If you meant to cross compile, use \`--host'.
1813See \`config.log' for more details." >&5
1814echo "$as_me: error: cannot run C compiled programs.
1815If you meant to cross compile, use \`--host'.
1816See \`config.log' for more details." >&2;}
1817 { (exit 1); exit 1; }; }
1818 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001819 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001820fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001821echo "$as_me:$LINENO: result: yes" >&5
1822echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001823
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001824rm -f a.out a.exe conftest$ac_cv_exeext b.out
1825ac_clean_files=$ac_clean_files_save
1826# Check the compiler produces executables we can run. If not, either
1827# the compiler is broken, or we cross compile.
1828echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1829echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1830echo "$as_me:$LINENO: result: $cross_compiling" >&5
1831echo "${ECHO_T}$cross_compiling" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001832
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001833echo "$as_me:$LINENO: checking for suffix of executables" >&5
1834echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1836 (eval $ac_link) 2>&5
1837 ac_status=$?
1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839 (exit $ac_status); }; then
1840 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1841# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1842# work properly (i.e., refer to `conftest.exe'), while it won't with
1843# `rm'.
1844for ac_file in conftest.exe conftest conftest.*; do
1845 test -f "$ac_file" || continue
1846 case $ac_file in
1847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1849 export ac_cv_exeext
1850 break;;
1851 * ) break;;
1852 esac
1853done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001854else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001855 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1856See \`config.log' for more details." >&5
1857echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1858See \`config.log' for more details." >&2;}
1859 { (exit 1); exit 1; }; }
1860fi
1861
1862rm -f conftest$ac_cv_exeext
1863echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1864echo "${ECHO_T}$ac_cv_exeext" >&6
1865
1866rm -f conftest.$ac_ext
1867EXEEXT=$ac_cv_exeext
1868ac_exeext=$EXEEXT
1869echo "$as_me:$LINENO: checking for suffix of object files" >&5
1870echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1871if test "${ac_cv_objext+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874 cat >conftest.$ac_ext <<_ACEOF
1875/* confdefs.h. */
1876_ACEOF
1877cat confdefs.h >>conftest.$ac_ext
1878cat >>conftest.$ac_ext <<_ACEOF
1879/* end confdefs.h. */
1880
1881int
1882main ()
1883{
1884
1885 ;
1886 return 0;
1887}
1888_ACEOF
1889rm -f conftest.o conftest.obj
1890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1891 (eval $ac_compile) 2>&5
1892 ac_status=$?
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; then
1895 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1898 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1899 break;;
1900 esac
1901done
1902else
1903 echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1907See \`config.log' for more details." >&5
1908echo "$as_me: error: cannot compute suffix of object files: cannot compile
1909See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }
1911fi
1912
1913rm -f conftest.$ac_cv_objext conftest.$ac_ext
1914fi
1915echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1916echo "${ECHO_T}$ac_cv_objext" >&6
1917OBJEXT=$ac_cv_objext
1918ac_objext=$OBJEXT
1919echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1920echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1921if test "${ac_cv_c_compiler_gnu+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 cat >conftest.$ac_ext <<_ACEOF
1925/* confdefs.h. */
1926_ACEOF
1927cat confdefs.h >>conftest.$ac_ext
1928cat >>conftest.$ac_ext <<_ACEOF
1929/* end confdefs.h. */
1930
1931int
1932main ()
1933{
1934#ifndef __GNUC__
1935 choke me
Bram Moolenaar071d4272004-06-13 20:20:40 +00001936#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00001937
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001938 ;
1939 return 0;
1940}
1941_ACEOF
1942rm -f conftest.$ac_objext
1943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>conftest.er1
1945 ac_status=$?
1946 grep -v '^ *+' conftest.er1 >conftest.err
1947 rm -f conftest.er1
1948 cat conftest.err >&5
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); } &&
1951 { ac_try='test -z "$ac_c_werror_flag"
1952 || test ! -s conftest.err'
1953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954 (eval $ac_try) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }; } &&
1958 { ac_try='test -s conftest.$ac_objext'
1959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960 (eval $ac_try) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; }; then
1964 ac_compiler_gnu=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00001965else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001966 echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969ac_compiler_gnu=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00001970fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1972ac_cv_c_compiler_gnu=$ac_compiler_gnu
Bram Moolenaar071d4272004-06-13 20:20:40 +00001973
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001974fi
1975echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1976echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1977GCC=`test $ac_compiler_gnu = yes && echo yes`
1978ac_test_CFLAGS=${CFLAGS+set}
1979ac_save_CFLAGS=$CFLAGS
1980CFLAGS="-g"
1981echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1982echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1983if test "${ac_cv_prog_cc_g+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001985else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001986 cat >conftest.$ac_ext <<_ACEOF
1987/* confdefs.h. */
1988_ACEOF
1989cat confdefs.h >>conftest.$ac_ext
1990cat >>conftest.$ac_ext <<_ACEOF
1991/* end confdefs.h. */
1992
1993int
1994main ()
1995{
1996
1997 ;
1998 return 0;
1999}
2000_ACEOF
2001rm -f conftest.$ac_objext
2002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2003 (eval $ac_compile) 2>conftest.er1
2004 ac_status=$?
2005 grep -v '^ *+' conftest.er1 >conftest.err
2006 rm -f conftest.er1
2007 cat conftest.err >&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); } &&
2010 { ac_try='test -z "$ac_c_werror_flag"
2011 || test ! -s conftest.err'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; } &&
2017 { ac_try='test -s conftest.$ac_objext'
2018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019 (eval $ac_try) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00002023 ac_cv_prog_cc_g=yes
2024else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002025 echo "$as_me: failed program was:" >&5
2026sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00002027
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002028ac_cv_prog_cc_g=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002029fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2033echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002034if test "$ac_test_CFLAGS" = set; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002035 CFLAGS=$ac_save_CFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00002036elif test $ac_cv_prog_cc_g = yes; then
2037 if test "$GCC" = yes; then
2038 CFLAGS="-g -O2"
2039 else
2040 CFLAGS="-g"
2041 fi
2042else
2043 if test "$GCC" = yes; then
2044 CFLAGS="-O2"
2045 else
2046 CFLAGS=
2047 fi
2048fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002049echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2050echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2051if test "${ac_cv_prog_cc_stdc+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053else
2054 ac_cv_prog_cc_stdc=no
2055ac_save_CC=$CC
2056cat >conftest.$ac_ext <<_ACEOF
2057/* confdefs.h. */
2058_ACEOF
2059cat confdefs.h >>conftest.$ac_ext
2060cat >>conftest.$ac_ext <<_ACEOF
2061/* end confdefs.h. */
2062#include <stdarg.h>
2063#include <stdio.h>
2064#include <sys/types.h>
2065#include <sys/stat.h>
2066/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2067struct buf { int x; };
2068FILE * (*rcsopen) (struct buf *, struct stat *, int);
2069static char *e (p, i)
2070 char **p;
2071 int i;
2072{
2073 return p[i];
2074}
2075static char *f (char * (*g) (char **, int), char **p, ...)
2076{
2077 char *s;
2078 va_list v;
2079 va_start (v,p);
2080 s = g (p, va_arg (v,int));
2081 va_end (v);
2082 return s;
2083}
2084
2085/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2086 function prototypes and stuff, but not '\xHH' hex character constants.
2087 These don't provoke an error unfortunately, instead are silently treated
2088 as 'x'. The following induces an error, until -std1 is added to get
2089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2090 array size at least. It's necessary to write '\x00'==0 to get something
2091 that's true only with -std1. */
2092int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2093
2094int test (int i, double x);
2095struct s1 {int (*f) (int a);};
2096struct s2 {int (*f) (double a);};
2097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2098int argc;
2099char **argv;
2100int
2101main ()
2102{
2103return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108# Don't try gcc -ansi; that turns off useful extensions and
2109# breaks some systems' header files.
2110# AIX -qlanglvl=ansi
2111# Ultrix and OSF/1 -std1
2112# HP-UX 10.20 and later -Ae
2113# HP-UX older versions -Aa -D_HPUX_SOURCE
2114# SVR4 -Xc -D__EXTENSIONS__
2115for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2116do
2117 CC="$ac_save_CC $ac_arg"
2118 rm -f conftest.$ac_objext
2119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2120 (eval $ac_compile) 2>conftest.er1
2121 ac_status=$?
2122 grep -v '^ *+' conftest.er1 >conftest.err
2123 rm -f conftest.er1
2124 cat conftest.err >&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); } &&
2127 { ac_try='test -z "$ac_c_werror_flag"
2128 || test ! -s conftest.err'
2129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130 (eval $ac_try) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; } &&
2134 { ac_try='test -s conftest.$ac_objext'
2135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136 (eval $ac_try) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; }; then
2140 ac_cv_prog_cc_stdc=$ac_arg
2141break
2142else
2143 echo "$as_me: failed program was:" >&5
2144sed 's/^/| /' conftest.$ac_ext >&5
2145
2146fi
2147rm -f conftest.err conftest.$ac_objext
2148done
2149rm -f conftest.$ac_ext conftest.$ac_objext
2150CC=$ac_save_CC
2151
2152fi
2153
2154case "x$ac_cv_prog_cc_stdc" in
2155 x|xno)
2156 echo "$as_me:$LINENO: result: none needed" >&5
2157echo "${ECHO_T}none needed" >&6 ;;
2158 *)
2159 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2160echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2161 CC="$CC $ac_cv_prog_cc_stdc" ;;
2162esac
2163
2164# Some people use a C++ compiler to compile C. Since we use `exit',
2165# in C++ we need to declare it. In case someone uses the same compiler
2166# for both compiling C and C++ we need to have the C++ compiler decide
2167# the declaration of exit, since it's the most demanding environment.
2168cat >conftest.$ac_ext <<_ACEOF
2169#ifndef __cplusplus
2170 choke me
2171#endif
2172_ACEOF
2173rm -f conftest.$ac_objext
2174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>conftest.er1
2176 ac_status=$?
2177 grep -v '^ *+' conftest.er1 >conftest.err
2178 rm -f conftest.er1
2179 cat conftest.err >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); } &&
2182 { ac_try='test -z "$ac_c_werror_flag"
2183 || test ! -s conftest.err'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; } &&
2189 { ac_try='test -s conftest.$ac_objext'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 (eval $ac_try) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; }; then
2195 for ac_declaration in \
2196 '' \
2197 'extern "C" void std::exit (int) throw (); using std::exit;' \
2198 'extern "C" void std::exit (int); using std::exit;' \
2199 'extern "C" void exit (int) throw ();' \
2200 'extern "C" void exit (int);' \
2201 'void exit (int);'
2202do
2203 cat >conftest.$ac_ext <<_ACEOF
2204/* confdefs.h. */
2205_ACEOF
2206cat confdefs.h >>conftest.$ac_ext
2207cat >>conftest.$ac_ext <<_ACEOF
2208/* end confdefs.h. */
2209$ac_declaration
2210#include <stdlib.h>
2211int
2212main ()
2213{
2214exit (42);
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2222 ac_status=$?
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -z "$ac_c_werror_flag"
2229 || test ! -s conftest.err'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 :
2242else
2243 echo "$as_me: failed program was:" >&5
2244sed 's/^/| /' conftest.$ac_ext >&5
2245
2246continue
2247fi
2248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2249 cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h. */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h. */
2255$ac_declaration
2256int
2257main ()
2258{
2259exit (42);
2260 ;
2261 return 0;
2262}
2263_ACEOF
2264rm -f conftest.$ac_objext
2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2267 ac_status=$?
2268 grep -v '^ *+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -z "$ac_c_werror_flag"
2274 || test ! -s conftest.err'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 break
2287else
2288 echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291fi
2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293done
2294rm -f conftest*
2295if test -n "$ac_declaration"; then
2296 echo '#ifdef __cplusplus' >>confdefs.h
2297 echo $ac_declaration >>confdefs.h
2298 echo '#endif' >>confdefs.h
2299fi
2300
2301else
2302 echo "$as_me: failed program was:" >&5
2303sed 's/^/| /' conftest.$ac_ext >&5
2304
2305fi
2306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312 ac_ext=c
2313ac_cpp='$CPP $CPPFLAGS'
2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2318echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002319# On Suns, sometimes $CPP names a directory.
2320if test -n "$CPP" && test -d "$CPP"; then
2321 CPP=
2322fi
2323if test -z "$CPP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002324 if test "${ac_cv_prog_CPP+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002326else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002327 # Double quotes because CPP needs to be expanded
2328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2329 do
2330 ac_preproc_ok=false
2331for ac_c_preproc_warn_flag in '' yes
2332do
2333 # Use a header file that comes with gcc, so configuring glibc
2334 # with a fresh cross-compiler works.
2335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2336 # <limits.h> exists even on freestanding compilers.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002337 # On the NeXT, cc -E runs the code through the compiler's parser,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002338 # not just through cpp. "Syntax error" is here to catch this case.
2339 cat >conftest.$ac_ext <<_ACEOF
2340/* confdefs.h. */
2341_ACEOF
2342cat confdefs.h >>conftest.$ac_ext
2343cat >>conftest.$ac_ext <<_ACEOF
2344/* end confdefs.h. */
2345#ifdef __STDC__
2346# include <limits.h>
2347#else
2348# include <assert.h>
2349#endif
2350 Syntax error
2351_ACEOF
2352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2354 ac_status=$?
2355 grep -v '^ *+' conftest.er1 >conftest.err
2356 rm -f conftest.er1
2357 cat conftest.err >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } >/dev/null; then
2360 if test -s conftest.err; then
2361 ac_cpp_err=$ac_c_preproc_warn_flag
2362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Bram Moolenaar071d4272004-06-13 20:20:40 +00002363 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002364 ac_cpp_err=
Bram Moolenaar071d4272004-06-13 20:20:40 +00002365 fi
2366else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002367 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002368fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002369if test -z "$ac_cpp_err"; then
2370 :
2371else
2372 echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 # Broken: fails on valid input.
2376continue
2377fi
2378rm -f conftest.err conftest.$ac_ext
2379
2380 # OK, works on sane cases. Now check whether non-existent headers
2381 # can be detected and how.
2382 cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h. */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h. */
2388#include <ac_nonexistent.h>
2389_ACEOF
2390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } >/dev/null; then
2398 if test -s conftest.err; then
2399 ac_cpp_err=$ac_c_preproc_warn_flag
2400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2401 else
2402 ac_cpp_err=
2403 fi
2404else
2405 ac_cpp_err=yes
2406fi
2407if test -z "$ac_cpp_err"; then
2408 # Broken: success on invalid input.
2409continue
2410else
2411 echo "$as_me: failed program was:" >&5
2412sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 # Passes both tests.
2415ac_preproc_ok=:
2416break
2417fi
2418rm -f conftest.err conftest.$ac_ext
2419
2420done
2421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2422rm -f conftest.err conftest.$ac_ext
2423if $ac_preproc_ok; then
2424 break
2425fi
2426
2427 done
2428 ac_cv_prog_CPP=$CPP
2429
2430fi
2431 CPP=$ac_cv_prog_CPP
2432else
2433 ac_cv_prog_CPP=$CPP
2434fi
2435echo "$as_me:$LINENO: result: $CPP" >&5
2436echo "${ECHO_T}$CPP" >&6
2437ac_preproc_ok=false
2438for ac_c_preproc_warn_flag in '' yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002439do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002440 # Use a header file that comes with gcc, so configuring glibc
2441 # with a fresh cross-compiler works.
2442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2443 # <limits.h> exists even on freestanding compilers.
2444 # On the NeXT, cc -E runs the code through the compiler's parser,
2445 # not just through cpp. "Syntax error" is here to catch this case.
2446 cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h. */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
2451/* end confdefs.h. */
2452#ifdef __STDC__
2453# include <limits.h>
2454#else
2455# include <assert.h>
2456#endif
2457 Syntax error
2458_ACEOF
2459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } >/dev/null; then
2467 if test -s conftest.err; then
2468 ac_cpp_err=$ac_c_preproc_warn_flag
2469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2470 else
2471 ac_cpp_err=
2472 fi
2473else
2474 ac_cpp_err=yes
2475fi
2476if test -z "$ac_cpp_err"; then
2477 :
2478else
2479 echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 # Broken: fails on valid input.
2483continue
2484fi
2485rm -f conftest.err conftest.$ac_ext
2486
2487 # OK, works on sane cases. Now check whether non-existent headers
2488 # can be detected and how.
2489 cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h. */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
2494/* end confdefs.h. */
2495#include <ac_nonexistent.h>
2496_ACEOF
2497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2499 ac_status=$?
2500 grep -v '^ *+' conftest.er1 >conftest.err
2501 rm -f conftest.er1
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } >/dev/null; then
2505 if test -s conftest.err; then
2506 ac_cpp_err=$ac_c_preproc_warn_flag
2507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2508 else
2509 ac_cpp_err=
2510 fi
2511else
2512 ac_cpp_err=yes
2513fi
2514if test -z "$ac_cpp_err"; then
2515 # Broken: success on invalid input.
2516continue
2517else
2518 echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
2520
2521 # Passes both tests.
2522ac_preproc_ok=:
2523break
2524fi
2525rm -f conftest.err conftest.$ac_ext
2526
2527done
2528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2529rm -f conftest.err conftest.$ac_ext
2530if $ac_preproc_ok; then
2531 :
2532else
2533 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2534See \`config.log' for more details." >&5
2535echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2536See \`config.log' for more details." >&2;}
2537 { (exit 1); exit 1; }; }
2538fi
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545
2546
2547echo "$as_me:$LINENO: checking for egrep" >&5
2548echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2549if test "${ac_cv_prog_egrep+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551else
2552 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2553 then ac_cv_prog_egrep='grep -E'
2554 else ac_cv_prog_egrep='egrep'
2555 fi
2556fi
2557echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2558echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2559 EGREP=$ac_cv_prog_egrep
2560
2561
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */
2568
2569_ACEOF
2570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2571 $EGREP "" >/dev/null 2>&1; then
2572 :
2573fi
2574rm -f conftest*
2575 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2576echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2577if test "${ac_cv_search_strerror+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579else
2580 ac_func_search_save_LIBS=$LIBS
2581ac_cv_search_strerror=no
2582cat >conftest.$ac_ext <<_ACEOF
2583/* confdefs.h. */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h. */
2588
2589/* Override any gcc2 internal prototype to avoid an error. */
2590#ifdef __cplusplus
2591extern "C"
2592#endif
2593/* We use char because int might match the return type of a gcc2
2594 builtin and then its argument prototype would still apply. */
2595char strerror ();
2596int
2597main ()
2598{
2599strerror ();
2600 ;
2601 return 0;
2602}
2603_ACEOF
2604rm -f conftest.$ac_objext conftest$ac_exeext
2605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606 (eval $ac_link) 2>conftest.er1
2607 ac_status=$?
2608 grep -v '^ *+' conftest.er1 >conftest.err
2609 rm -f conftest.er1
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest$ac_exeext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_cv_search_strerror="none required"
2627else
2628 echo "$as_me: failed program was:" >&5
2629sed 's/^/| /' conftest.$ac_ext >&5
2630
2631fi
2632rm -f conftest.err conftest.$ac_objext \
2633 conftest$ac_exeext conftest.$ac_ext
2634if test "$ac_cv_search_strerror" = no; then
2635 for ac_lib in cposix; do
2636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2637 cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h. */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h. */
2643
2644/* Override any gcc2 internal prototype to avoid an error. */
2645#ifdef __cplusplus
2646extern "C"
2647#endif
2648/* We use char because int might match the return type of a gcc2
2649 builtin and then its argument prototype would still apply. */
2650char strerror ();
2651int
2652main ()
2653{
2654strerror ();
2655 ;
2656 return 0;
2657}
2658_ACEOF
2659rm -f conftest.$ac_objext conftest$ac_exeext
2660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661 (eval $ac_link) 2>conftest.er1
2662 ac_status=$?
2663 grep -v '^ *+' conftest.er1 >conftest.err
2664 rm -f conftest.er1
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -z "$ac_c_werror_flag"
2669 || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try='test -s conftest$ac_exeext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_search_strerror="-l$ac_lib"
2682break
2683else
2684 echo "$as_me: failed program was:" >&5
2685sed 's/^/| /' conftest.$ac_ext >&5
2686
2687fi
2688rm -f conftest.err conftest.$ac_objext \
2689 conftest$ac_exeext conftest.$ac_ext
2690 done
2691fi
2692LIBS=$ac_func_search_save_LIBS
2693fi
2694echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2695echo "${ECHO_T}$ac_cv_search_strerror" >&6
2696if test "$ac_cv_search_strerror" != no; then
2697 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2698
2699fi
2700 for ac_prog in gawk mawk nawk awk
2701do
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002703set dummy $ac_prog; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002704echo "$as_me:$LINENO: checking for $ac_word" >&5
2705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706if test "${ac_cv_prog_AWK+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002708else
2709 if test -n "$AWK"; then
2710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2711else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_prog_AWK="$ac_prog"
2720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723done
2724done
2725
Bram Moolenaar071d4272004-06-13 20:20:40 +00002726fi
2727fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002728AWK=$ac_cv_prog_AWK
Bram Moolenaar071d4272004-06-13 20:20:40 +00002729if test -n "$AWK"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002730 echo "$as_me:$LINENO: result: $AWK" >&5
2731echo "${ECHO_T}$AWK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002732else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002733 echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002735fi
2736
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002737 test -n "$AWK" && break
Bram Moolenaar071d4272004-06-13 20:20:40 +00002738done
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002739
Bram Moolenaar071d4272004-06-13 20:20:40 +00002740# Extract the first word of "strip", so it can be a program name with args.
2741set dummy strip; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002742echo "$as_me:$LINENO: checking for $ac_word" >&5
2743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744if test "${ac_cv_prog_STRIP+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002746else
2747 if test -n "$STRIP"; then
2748 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2749else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_STRIP="strip"
2758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761done
2762done
2763
Bram Moolenaar071d4272004-06-13 20:20:40 +00002764 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2765fi
2766fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002767STRIP=$ac_cv_prog_STRIP
Bram Moolenaar071d4272004-06-13 20:20:40 +00002768if test -n "$STRIP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002769 echo "$as_me:$LINENO: result: $STRIP" >&5
2770echo "${ECHO_T}$STRIP" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002771else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002772 echo "$as_me:$LINENO: result: no" >&5
2773echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002774fi
2775
2776
Bram Moolenaar071d4272004-06-13 20:20:40 +00002777
2778
2779if test -z "$CFLAGS"; then
2780 CFLAGS="-O"
2781 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
2782fi
2783if test "$GCC" = yes; then
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002784 gccversion=`"$CC" -dumpversion`
2785 if test "x$gccversion" = "x"; then
2786 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
2787 fi
Bram Moolenaara5792f52005-11-23 21:25:05 +00002788 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002789 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
Bram Moolenaar071d4272004-06-13 20:20:40 +00002790 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2791 else
2792 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2793 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2794 CFLAGS="$CFLAGS -fno-strength-reduce"
2795 fi
2796 fi
2797fi
2798
2799if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002800 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2801 (cross compiling doesn't work)" >&5
2802echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2803 (cross compiling doesn't work)" >&2;}
2804 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00002805fi
2806
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002807test "$GCC" = yes && CPP_MM=M;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002808
2809if test -f ./toolcheck; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002810 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2811echo "$as_me: checking for buggy tools..." >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +00002812 sh ./toolcheck 1>&6
2813fi
2814
2815OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2816
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002817echo "$as_me:$LINENO: checking for BeOS" >&5
2818echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002819case `uname` in
2820 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002821 BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2822echo "${ECHO_T}yes" >&6;;
2823 *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2824echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002825esac
2826
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002827echo "$as_me:$LINENO: checking for QNX" >&5
2828echo $ECHO_N "checking for QNX... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002829case `uname` in
2830 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2831 test -z "$with_x" && with_x=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002832 QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2833echo "${ECHO_T}yes" >&6;;
2834 *) QNX=no; echo "$as_me:$LINENO: result: no" >&5
2835echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002836esac
2837
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002838echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2839echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002840if test "`(uname) 2>/dev/null`" = Darwin; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002841 echo "$as_me:$LINENO: result: yes" >&5
2842echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002843
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002844 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2845echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002846 # Check whether --enable-darwin or --disable-darwin was given.
2847if test "${enable_darwin+set}" = set; then
2848 enableval="$enable_darwin"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002849
Bram Moolenaar071d4272004-06-13 20:20:40 +00002850else
2851 enable_darwin="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002852fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002853 if test "$enable_darwin" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002854 echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6
2856 echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2857echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002858 if test -f os_macosx.c; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002859 echo "$as_me:$LINENO: result: yes" >&5
2860echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002861 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002862 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2863echo "${ECHO_T}no, Darwin support disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002864 enable_darwin=no
2865 fi
2866 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002867 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2868echo "${ECHO_T}yes, Darwin support excluded" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002869 fi
2870
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002871 echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2872echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2873
2874# Check whether --with-mac-arch or --without-mac-arch was given.
2875if test "${with_mac_arch+set}" = set; then
2876 withval="$with_mac_arch"
2877 MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2878echo "${ECHO_T}$MACARCH" >&6
2879else
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002880 MACARCH="current"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002881echo "${ECHO_T}defaulting to $MACARCH" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002882fi;
2883
2884 if test "x$MACARCH" = "xboth"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002885 echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
2886echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6
2887 save_cppflags="$CPPFLAGS"
2888 save_cflags="$CFLAGS"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002889 save_ldflags="$LDFLAGS"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002890 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002891 cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h. */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h. */
2897
2898int
2899main ()
2900{
2901
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext conftest$ac_exeext
2907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908 (eval $ac_link) 2>conftest.er1
2909 ac_status=$?
2910 grep -v '^ *+' conftest.er1 >conftest.err
2911 rm -f conftest.er1
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 (eval $ac_try) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest$ac_exeext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002928 echo "$as_me:$LINENO: result: found" >&5
2929echo "${ECHO_T}found" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002930else
2931 echo "$as_me: failed program was:" >&5
2932sed 's/^/| /' conftest.$ac_ext >&5
2933
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002934echo "$as_me:$LINENO: result: not found" >&5
2935echo "${ECHO_T}not found" >&6
Bram Moolenaar1f35bf92006-03-07 22:38:47 +00002936 CFLAGS="$save_cflags"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002937 echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002938echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002939 CPPFLAGS="$CPPFLAGS -arch i386"
2940 LDFLAGS="$save_ldflags -arch i386"
2941 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002942/* confdefs.h. */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h. */
2947
2948int
2949main ()
2950{
2951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956rm -f conftest.$ac_objext conftest$ac_exeext
2957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2958 (eval $ac_link) 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -z "$ac_c_werror_flag"
2966 || test ! -s conftest.err'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 (eval $ac_try) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; } &&
2972 { ac_try='test -s conftest$ac_exeext'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2978 echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6; MACARCH="intel"
2980else
2981 echo "$as_me: failed program was:" >&5
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984echo "$as_me:$LINENO: result: no" >&5
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002985echo "${ECHO_T}no" >&6
2986 MACARCH="ppc"
2987 CPPFLAGS="$save_cppflags -arch ppc"
2988 LDFLAGS="$save_ldflags -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002989fi
2990rm -f conftest.err conftest.$ac_objext \
2991 conftest$ac_exeext conftest.$ac_ext
2992fi
2993rm -f conftest.err conftest.$ac_objext \
2994 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002995 elif test "x$MACARCH" = "xintel"; then
2996 CPPFLAGS="$CPPFLAGS -arch intel"
2997 LDFLAGS="$LDFLAGS -arch intel"
Bram Moolenaare2f98b92006-03-29 21:18:24 +00002998 elif test "x$MACARCH" = "xppc"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002999 CPPFLAGS="$CPPFLAGS -arch ppc"
3000 LDFLAGS="$LDFLAGS -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003001 fi
3002
Bram Moolenaar071d4272004-06-13 20:20:40 +00003003 if test "$enable_darwin" = "yes"; then
3004 MACOSX=yes
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003005 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3006 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003007 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3008 if test "x$MACARCH" = "xboth"; then
3009 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3010 else
3011 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3012 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00003013
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003014 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3015echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3016if test "${ac_cv_header_stdc+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003018else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003019 cat >conftest.$ac_ext <<_ACEOF
3020/* confdefs.h. */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h. */
3025#include <stdlib.h>
3026#include <stdarg.h>
3027#include <string.h>
3028#include <float.h>
3029
3030int
3031main ()
3032{
3033
3034 ;
3035 return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext
3039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_c_werror_flag"
3048 || test ! -s conftest.err'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 ac_cv_header_stdc=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003061else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003062 echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065ac_cv_header_stdc=no
3066fi
3067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068
3069if test $ac_cv_header_stdc = yes; then
3070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3071 cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
3077#include <string.h>
3078
3079_ACEOF
3080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3081 $EGREP "memchr" >/dev/null 2>&1; then
3082 :
3083else
3084 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003085fi
3086rm -f conftest*
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003087
Bram Moolenaar071d4272004-06-13 20:20:40 +00003088fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003089
3090if test $ac_cv_header_stdc = yes; then
3091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3092 cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h. */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h. */
3098#include <stdlib.h>
3099
3100_ACEOF
3101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3102 $EGREP "free" >/dev/null 2>&1; then
3103 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00003104else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003105 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003106fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003107rm -f conftest*
3108
3109fi
3110
3111if test $ac_cv_header_stdc = yes; then
3112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3113 if test "$cross_compiling" = yes; then
3114 :
3115else
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122#include <ctype.h>
3123#if ((' ' & 0x0FF) == 0x020)
3124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3126#else
3127# define ISLOWER(c) \
3128 (('a' <= (c) && (c) <= 'i') \
3129 || ('j' <= (c) && (c) <= 'r') \
3130 || ('s' <= (c) && (c) <= 'z'))
3131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3132#endif
3133
3134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3135int
3136main ()
3137{
3138 int i;
3139 for (i = 0; i < 256; i++)
3140 if (XOR (islower (i), ISLOWER (i))
3141 || toupper (i) != TOUPPER (i))
3142 exit(2);
3143 exit (0);
3144}
3145_ACEOF
3146rm -f conftest$ac_exeext
3147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3148 (eval $ac_link) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 (eval $ac_try) 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 :
3158else
3159 echo "$as_me: program exited with status $ac_status" >&5
3160echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163( exit $ac_status )
3164ac_cv_header_stdc=no
3165fi
3166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3167fi
3168fi
3169fi
3170echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3171echo "${ECHO_T}$ac_cv_header_stdc" >&6
3172if test $ac_cv_header_stdc = yes; then
3173
3174cat >>confdefs.h <<\_ACEOF
3175#define STDC_HEADERS 1
3176_ACEOF
3177
3178fi
3179
3180# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3191 inttypes.h stdint.h unistd.h
3192do
3193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3194echo "$as_me:$LINENO: checking for $ac_header" >&5
3195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3196if eval "test \"\${$as_ac_Header+set}\" = set"; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199 cat >conftest.$ac_ext <<_ACEOF
3200/* confdefs.h. */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h. */
3205$ac_includes_default
3206
3207#include <$ac_header>
3208_ACEOF
3209rm -f conftest.$ac_objext
3210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211 (eval $ac_compile) 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } &&
3218 { ac_try='test -z "$ac_c_werror_flag"
3219 || test ! -s conftest.err'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 (eval $ac_try) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3231 eval "$as_ac_Header=yes"
3232else
3233 echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236eval "$as_ac_Header=no"
3237fi
3238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
3240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3242if test `eval echo '${'$as_ac_Header'}'` = yes; then
3243 cat >>confdefs.h <<_ACEOF
3244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3245_ACEOF
3246
3247fi
3248
3249done
3250
3251
3252if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3253 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3254echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3255if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257fi
3258echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3259echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3260else
3261 # Is the header compilable?
3262echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3263echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3264cat >conftest.$ac_ext <<_ACEOF
3265/* confdefs.h. */
3266_ACEOF
3267cat confdefs.h >>conftest.$ac_ext
3268cat >>conftest.$ac_ext <<_ACEOF
3269/* end confdefs.h. */
3270$ac_includes_default
3271#include <Carbon/Carbon.h>
3272_ACEOF
3273rm -f conftest.$ac_objext
3274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_c_werror_flag"
3283 || test ! -s conftest.err'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 ac_header_compiler=yes
3296else
3297 echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300ac_header_compiler=no
3301fi
3302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3304echo "${ECHO_T}$ac_header_compiler" >&6
3305
3306# Is the header present?
3307echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3308echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3309cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
3315#include <Carbon/Carbon.h>
3316_ACEOF
3317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } >/dev/null; then
3325 if test -s conftest.err; then
3326 ac_cpp_err=$ac_c_preproc_warn_flag
3327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328 else
3329 ac_cpp_err=
3330 fi
3331else
3332 ac_cpp_err=yes
3333fi
3334if test -z "$ac_cpp_err"; then
3335 ac_header_preproc=yes
3336else
3337 echo "$as_me: failed program was:" >&5
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 ac_header_preproc=no
3341fi
3342rm -f conftest.err conftest.$ac_ext
3343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3344echo "${ECHO_T}$ac_header_preproc" >&6
3345
3346# So? What about this header?
3347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3348 yes:no: )
3349 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3350echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3351 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3352echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3353 ac_header_preproc=yes
3354 ;;
3355 no:yes:* )
3356 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3357echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3358 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3359echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3360 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3361echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3362 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3363echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3364 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3365echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3366 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3367echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3368 (
3369 cat <<\_ASBOX
3370## ------------------------------------------ ##
3371## Report this to the AC_PACKAGE_NAME lists. ##
3372## ------------------------------------------ ##
3373_ASBOX
3374 ) |
3375 sed "s/^/$as_me: WARNING: /" >&2
3376 ;;
3377esac
3378echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3379echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3380if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3384fi
3385echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3386echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3387
3388fi
3389if test $ac_cv_header_Carbon_Carbon_h = yes; then
3390 CARBON=yes
3391fi
3392
Bram Moolenaar071d4272004-06-13 20:20:40 +00003393
3394 if test "x$CARBON" = "xyes"; then
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003395 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003396 with_x=no
Bram Moolenaarefd2bf12006-03-16 21:41:35 +00003397
3398 if test x$prefix = xNONE; then
3399 prefix=/Applications
3400 fi
Bram Moolenaard2cec5b2006-03-28 21:08:56 +00003401
3402 datadir='${prefix}/Vim.app/Contents/Resources'
Bram Moolenaar071d4272004-06-13 20:20:40 +00003403 fi
3404 fi
3405 fi
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003406
Bram Moolenaarfd2ac762006-03-01 22:09:21 +00003407 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003408 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3409 fi
3410
Bram Moolenaar071d4272004-06-13 20:20:40 +00003411else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003412 echo "$as_me:$LINENO: result: no" >&5
3413echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003414fi
3415
3416
3417
3418
3419have_local_include=''
3420have_local_lib=''
3421if test "$GCC" = yes; then
3422 echo 'void f(){}' > conftest.c
3423 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3424 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3425 rm -f conftest.c conftest.o
3426fi
3427if test -z "$have_local_lib" -a -d /usr/local/lib; then
3428 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3429 if test "$tt" = "$LDFLAGS"; then
3430 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3431 fi
3432fi
3433if test -z "$have_local_include" -a -d /usr/local/include; then
3434 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3435 if test "$tt" = "$CPPFLAGS"; then
3436 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3437 fi
3438fi
3439
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003440echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3441echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3442
Bram Moolenaar071d4272004-06-13 20:20:40 +00003443# Check whether --with-vim-name or --without-vim-name was given.
3444if test "${with_vim_name+set}" = set; then
3445 withval="$with_vim_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003446 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3447echo "${ECHO_T}$VIMNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003448else
Bram Moolenaare344bea2005-09-01 20:46:49 +00003449 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003450echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3451fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003452
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003453echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3454echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003455
Bram Moolenaar071d4272004-06-13 20:20:40 +00003456# Check whether --with-ex-name or --without-ex-name was given.
3457if test "${with_ex_name+set}" = set; then
3458 withval="$with_ex_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003459 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3460echo "${ECHO_T}$EXNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003461else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003462 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3463echo "${ECHO_T}Defaulting to ex" >&6
3464fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003465
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003466echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3467echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003468
Bram Moolenaar071d4272004-06-13 20:20:40 +00003469# Check whether --with-view-name or --without-view-name was given.
3470if test "${with_view_name+set}" = set; then
3471 withval="$with_view_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003472 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3473echo "${ECHO_T}$VIEWNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003474else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003475 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3476echo "${ECHO_T}Defaulting to view" >&6
3477fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003478
3479
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003480echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3481echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003482
Bram Moolenaar071d4272004-06-13 20:20:40 +00003483# Check whether --with-global-runtime or --without-global-runtime was given.
3484if test "${with_global_runtime+set}" = set; then
3485 withval="$with_global_runtime"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003486 echo "$as_me:$LINENO: result: $withval" >&5
3487echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003488#define RUNTIME_GLOBAL "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003489_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003490
3491else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003492 echo "$as_me:$LINENO: result: no" >&5
3493echo "${ECHO_T}no" >&6
3494fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003495
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003496echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3497echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003498
Bram Moolenaar071d4272004-06-13 20:20:40 +00003499# Check whether --with-modified-by or --without-modified-by was given.
3500if test "${with_modified_by+set}" = set; then
3501 withval="$with_modified_by"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003502 echo "$as_me:$LINENO: result: $withval" >&5
3503echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003504#define MODIFIED_BY "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003505_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003506
3507else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003508 echo "$as_me:$LINENO: result: no" >&5
3509echo "${ECHO_T}no" >&6
3510fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003511
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003512echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3513echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3514cat >conftest.$ac_ext <<_ACEOF
3515/* confdefs.h. */
3516_ACEOF
3517cat confdefs.h >>conftest.$ac_ext
3518cat >>conftest.$ac_ext <<_ACEOF
3519/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003520
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003521int
3522main ()
3523{
Bram Moolenaar071d4272004-06-13 20:20:40 +00003524 /* TryCompile function for CharSet.
3525 Treat any failure as ASCII for compatibility with existing art.
3526 Use compile-time rather than run-time tests for cross-compiler
3527 tolerance. */
3528#if '0'!=240
3529make an error "Character set is not EBCDIC"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003530#endif
3531 ;
3532 return 0;
3533}
3534_ACEOF
3535rm -f conftest.$ac_objext
3536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_c_werror_flag"
3545 || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003557 # TryCompile action if true
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003558cf_cv_ebcdic=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003559else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003560 echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 # TryCompile action if false
Bram Moolenaar071d4272004-06-13 20:20:40 +00003564cf_cv_ebcdic=no
3565fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003567# end of TryCompile ])
3568# end of CacheVal CvEbcdic
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003569echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3570echo "${ECHO_T}$cf_cv_ebcdic" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003571case "$cf_cv_ebcdic" in #(vi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003572 yes) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003573#define EBCDIC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003574_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003575
3576 line_break='"\\n"'
3577 ;;
3578 *) line_break='"\\012"';;
3579esac
3580
3581
3582if test "$cf_cv_ebcdic" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003583echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3584echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003585case `uname` in
3586 OS/390) OS390Unix="yes";
3587 if test "$CC" = "cc"; then
3588 ccm="$_CC_CCMODE"
3589 ccn="CC"
3590 else
3591 if test "$CC" = "c89"; then
3592 ccm="$_CC_C89MODE"
3593 ccn="C89"
3594 else
3595 ccm=1
3596 fi
3597 fi
3598 if test "$ccm" != "1"; then
3599 echo ""
3600 echo "------------------------------------------"
3601 echo " On OS/390 Unix, the environment variable"
3602 echo " __CC_${ccn}MODE must be set to \"1\"!"
3603 echo " Do:"
3604 echo " export _CC_${ccn}MODE=1"
3605 echo " and then call configure again."
3606 echo "------------------------------------------"
3607 exit 1
3608 fi
3609 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003610 echo "$as_me:$LINENO: result: yes" >&5
3611echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003612 ;;
3613 *) OS390Unix="no";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003614 echo "$as_me:$LINENO: result: no" >&5
3615echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003616 ;;
3617esac
3618fi
3619
3620
3621
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003622echo "$as_me:$LINENO: checking --with-features argument" >&5
3623echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3624
Bram Moolenaar071d4272004-06-13 20:20:40 +00003625# Check whether --with-features or --without-features was given.
3626if test "${with_features+set}" = set; then
3627 withval="$with_features"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003628 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3629echo "${ECHO_T}$features" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003630else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003631 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3632echo "${ECHO_T}Defaulting to normal" >&6
3633fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003634
3635dovimdiff=""
3636dogvimdiff=""
3637case "$features" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003638 tiny) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003639#define FEAT_TINY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003640_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003641 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003642 small) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003643#define FEAT_SMALL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003644_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003645 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003646 normal) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003647#define FEAT_NORMAL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003648_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003649 dovimdiff="installvimdiff";
3650 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003651 big) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003652#define FEAT_BIG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003653_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003654 dovimdiff="installvimdiff";
3655 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003656 huge) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003657#define FEAT_HUGE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003658_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003659 dovimdiff="installvimdiff";
3660 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003661 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3662echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003663esac
3664
3665
3666
3667
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003668echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3669echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3670
Bram Moolenaar071d4272004-06-13 20:20:40 +00003671# Check whether --with-compiledby or --without-compiledby was given.
3672if test "${with_compiledby+set}" = set; then
3673 withval="$with_compiledby"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003674 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3675echo "${ECHO_T}$withval" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003676else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003677 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3678echo "${ECHO_T}no" >&6
3679fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003680
3681
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003682echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3683echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003684# Check whether --enable-xsmp or --disable-xsmp was given.
3685if test "${enable_xsmp+set}" = set; then
3686 enableval="$enable_xsmp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003687
Bram Moolenaar071d4272004-06-13 20:20:40 +00003688else
3689 enable_xsmp="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003690fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003691
3692if test "$enable_xsmp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003693 echo "$as_me:$LINENO: result: no" >&5
3694echo "${ECHO_T}no" >&6
3695 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3696echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003697 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3698if test "${enable_xsmp_interact+set}" = set; then
3699 enableval="$enable_xsmp_interact"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003700
Bram Moolenaar071d4272004-06-13 20:20:40 +00003701else
3702 enable_xsmp_interact="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003703fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003704 if test "$enable_xsmp_interact" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003705 echo "$as_me:$LINENO: result: no" >&5
3706echo "${ECHO_T}no" >&6
3707 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003708#define USE_XSMP_INTERACT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003709_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003710
3711 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003712 echo "$as_me:$LINENO: result: yes" >&5
3713echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003714 fi
3715else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003716 echo "$as_me:$LINENO: result: yes" >&5
3717echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003718fi
3719
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003720echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3721echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003722# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3723if test "${enable_mzschemeinterp+set}" = set; then
3724 enableval="$enable_mzschemeinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003725
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003726else
3727 enable_mzschemeinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003728fi;
3729echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3730echo "${ECHO_T}$enable_mzschemeinterp" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003731
3732if test "$enable_mzschemeinterp" = "yes"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003733
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003734
3735 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3736echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3737
3738# Check whether --with-plthome or --without-plthome was given.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003739if test "${with_plthome+set}" = set; then
3740 withval="$with_plthome"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003741 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3742echo "${ECHO_T}$with_plthome" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003743else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003744 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3745echo "${ECHO_T}\"no\"" >&6
3746fi;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003747
3748 if test "X$with_plthome" != "X"; then
3749 vi_cv_path_mzscheme_pfx="$with_plthome"
3750 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003751 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3752echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003753 if test "X$PLTHOME" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003754 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3755echo "${ECHO_T}\"$PLTHOME\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003756 vi_cv_path_mzscheme_pfx="$PLTHOME"
3757 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003758 echo "$as_me:$LINENO: result: \"not set\"" >&5
3759echo "${ECHO_T}\"not set\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003760 # Extract the first word of "mzscheme", so it can be a program name with args.
3761set dummy mzscheme; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003762echo "$as_me:$LINENO: checking for $ac_word" >&5
3763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3764if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003766else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003767 case $vi_cv_path_mzscheme in
3768 [\\/]* | ?:[\\/]*)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003769 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3770 ;;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003771 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783done
3784done
3785
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003786 ;;
3787esac
3788fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003789vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3790
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003791if test -n "$vi_cv_path_mzscheme"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003792 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3793echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003794else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003795 echo "$as_me:$LINENO: result: no" >&5
3796echo "${ECHO_T}no" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003797fi
3798
3799
3800 if test "X$vi_cv_path_mzscheme" != "X"; then
3801 lsout=`ls -l $vi_cv_path_mzscheme`
3802 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3803 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3804 fi
3805 fi
3806
3807 if test "X$vi_cv_path_mzscheme" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003808 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3809echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3810if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003812else
3813 vi_cv_path_mzscheme_pfx=`
3814 ${vi_cv_path_mzscheme} -evm \
3815 "(display (simplify-path \
3816 (build-path (call-with-values \
3817 (lambda () (split-path (find-system-path (quote exec-file)))) \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003818 (lambda (base name must-be-dir?) base)) (quote up))))"`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003819fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003820echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3821echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003822 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3823 fi
3824 fi
3825 fi
3826
3827 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003828 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3829echo $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 +00003830 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003831 echo "$as_me:$LINENO: result: \"yes\"" >&5
3832echo "${ECHO_T}\"yes\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003833 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003834 echo "$as_me:$LINENO: result: \"no\"" >&5
3835echo "${ECHO_T}\"no\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003836 vi_cv_path_mzscheme_pfx=
3837 fi
3838 fi
3839
3840 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3841 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3842 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3843 else
3844 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003845 if test "$GCC" = yes; then
3846 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003847 elif test "`(uname) 2>/dev/null`" = SunOS &&
3848 uname -r | grep '^5' >/dev/null; then
3849 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003850 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003851 fi
3852 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \
3853 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3854 MZSCHEME_SRC="if_mzsch.c"
3855 MZSCHEME_OBJ="objects/if_mzsch.o"
3856 MZSCHEME_PRO="if_mzsch.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003857 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003858#define FEAT_MZSCHEME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003859_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003860
3861 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003862
3863
3864
3865
3866
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003867fi
3868
3869
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003870echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3871echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003872# Check whether --enable-perlinterp or --disable-perlinterp was given.
3873if test "${enable_perlinterp+set}" = set; then
3874 enableval="$enable_perlinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003875
Bram Moolenaar071d4272004-06-13 20:20:40 +00003876else
3877 enable_perlinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003878fi;
3879echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3880echo "${ECHO_T}$enable_perlinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003881if test "$enable_perlinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003882
Bram Moolenaar071d4272004-06-13 20:20:40 +00003883 # Extract the first word of "perl", so it can be a program name with args.
3884set dummy perl; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003885echo "$as_me:$LINENO: checking for $ac_word" >&5
3886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003889else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003890 case $vi_cv_path_perl in
3891 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003892 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3893 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003894 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906done
3907done
3908
Bram Moolenaar071d4272004-06-13 20:20:40 +00003909 ;;
3910esac
3911fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003912vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3913
Bram Moolenaar071d4272004-06-13 20:20:40 +00003914if test -n "$vi_cv_path_perl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003915 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3916echo "${ECHO_T}$vi_cv_path_perl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003917else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003918 echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003920fi
3921
3922 if test "X$vi_cv_path_perl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003923 echo "$as_me:$LINENO: checking Perl version" >&5
3924echo $ECHO_N "checking Perl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003925 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3926 eval `$vi_cv_path_perl -V:usethreads`
3927 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3928 badthreads=no
3929 else
3930 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3931 eval `$vi_cv_path_perl -V:use5005threads`
3932 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3933 badthreads=no
3934 else
3935 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003936 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3937echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003938 fi
3939 else
3940 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003941 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3942echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003943 fi
3944 fi
3945 if test $badthreads = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003946 echo "$as_me:$LINENO: result: OK" >&5
3947echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003948 eval `$vi_cv_path_perl -V:shrpenv`
3949 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3950 shrpenv=""
3951 fi
3952 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003953
Bram Moolenaar071d4272004-06-13 20:20:40 +00003954 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3955 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3956 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3957 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3958 -e 's/-bE:perl.exp//' -e 's/-lc //'`
3959 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3960 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3961
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003962 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3963echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003964 cflags_save=$CFLAGS
3965 libs_save=$LIBS
3966 ldflags_save=$LDFLAGS
3967 CFLAGS="$CFLAGS $perlcppflags"
3968 LIBS="$LIBS $perllibs"
3969 LDFLAGS="$perlldflags $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003970 cat >conftest.$ac_ext <<_ACEOF
3971/* confdefs.h. */
3972_ACEOF
3973cat confdefs.h >>conftest.$ac_ext
3974cat >>conftest.$ac_ext <<_ACEOF
3975/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003976
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003977int
3978main ()
3979{
3980
3981 ;
3982 return 0;
3983}
3984_ACEOF
3985rm -f conftest.$ac_objext conftest$ac_exeext
3986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3987 (eval $ac_link) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest$ac_exeext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 echo "$as_me:$LINENO: result: yes" >&5
4008echo "${ECHO_T}yes" >&6; perl_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004009else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004010 echo "$as_me: failed program was:" >&5
4011sed 's/^/| /' conftest.$ac_ext >&5
4012
4013echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4014echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004015fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004016rm -f conftest.err conftest.$ac_objext \
4017 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004018 CFLAGS=$cflags_save
4019 LIBS=$libs_save
4020 LDFLAGS=$ldflags_save
4021 if test $perl_ok = yes; then
4022 if test "X$perlcppflags" != "X"; then
4023 PERL_CFLAGS="$perlcppflags"
4024 fi
4025 if test "X$perlldflags" != "X"; then
4026 LDFLAGS="$perlldflags $LDFLAGS"
4027 fi
4028 PERL_LIBS=$perllibs
4029 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4030 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4031 PERL_PRO="if_perl.pro if_perlsfio.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004032 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004033#define FEAT_PERL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004034_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004035
4036 fi
4037 fi
4038 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004039 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4040echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004041 fi
4042 fi
4043
4044 if test "x$MACOSX" = "xyes"; then
4045 dir=/System/Library/Perl
4046 darwindir=$dir/darwin
4047 if test -d $darwindir; then
4048 PERL=/usr/bin/perl
4049 else
4050 dir=/System/Library/Perl/5.8.1
4051 darwindir=$dir/darwin-thread-multi-2level
4052 if test -d $darwindir; then
4053 PERL=/usr/bin/perl
4054 fi
4055 fi
4056 if test -n "$PERL"; then
4057 PERL_DIR="$dir"
4058 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4059 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4060 PERL_LIBS="-L$darwindir/CORE -lperl"
4061 fi
4062 fi
4063fi
4064
4065
4066
4067
4068
4069
4070
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004071echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4072echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004073# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4074if test "${enable_pythoninterp+set}" = set; then
4075 enableval="$enable_pythoninterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004076
Bram Moolenaar071d4272004-06-13 20:20:40 +00004077else
4078 enable_pythoninterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004079fi;
4080echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4081echo "${ECHO_T}$enable_pythoninterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004082if test "$enable_pythoninterp" = "yes"; then
4083 # Extract the first word of "python", so it can be a program name with args.
4084set dummy python; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004085echo "$as_me:$LINENO: checking for $ac_word" >&5
4086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004089else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004090 case $vi_cv_path_python in
4091 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004092 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4093 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004094 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 break 2
4105 fi
4106done
4107done
4108
Bram Moolenaar071d4272004-06-13 20:20:40 +00004109 ;;
4110esac
4111fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004112vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4113
Bram Moolenaar071d4272004-06-13 20:20:40 +00004114if test -n "$vi_cv_path_python"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004115 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4116echo "${ECHO_T}$vi_cv_path_python" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004117else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004118 echo "$as_me:$LINENO: result: no" >&5
4119echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004120fi
4121
4122 if test "X$vi_cv_path_python" != "X"; then
4123
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004124 echo "$as_me:$LINENO: checking Python version" >&5
4125echo $ECHO_N "checking Python version... $ECHO_C" >&6
4126if test "${vi_cv_var_python_version+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004128else
4129 vi_cv_var_python_version=`
4130 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004131
Bram Moolenaar071d4272004-06-13 20:20:40 +00004132fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004133echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4134echo "${ECHO_T}$vi_cv_var_python_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004135
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004136 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4137echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004138 if ${vi_cv_path_python} -c \
4139 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4140 then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004141 echo "$as_me:$LINENO: result: yep" >&5
4142echo "${ECHO_T}yep" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004143
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004144 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4145echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4146if test "${vi_cv_path_python_pfx+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004148else
4149 vi_cv_path_python_pfx=`
4150 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004151 "import sys; print sys.prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004152fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004153echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4154echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004155
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004156 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4157echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4158if test "${vi_cv_path_python_epfx+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004160else
4161 vi_cv_path_python_epfx=`
4162 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004163 "import sys; print sys.exec_prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004164fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004165echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4166echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004167
Bram Moolenaar071d4272004-06-13 20:20:40 +00004168
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004169 if test "${vi_cv_path_pythonpath+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004171else
4172 vi_cv_path_pythonpath=`
4173 unset PYTHONPATH;
4174 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004175 "import sys, string; print string.join(sys.path,':')"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004176fi
4177
4178
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004179
4180
4181# Check whether --with-python-config-dir or --without-python-config-dir was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004182if test "${with_python_config_dir+set}" = set; then
4183 withval="$with_python_config_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004184 vi_cv_path_python_conf="${withval}"
4185fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004186
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004187 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4188echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4189if test "${vi_cv_path_python_conf+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004191else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004192
Bram Moolenaar071d4272004-06-13 20:20:40 +00004193 vi_cv_path_python_conf=
4194 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4195 for subdir in lib share; do
4196 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4197 if test -d "$d" && test -f "$d/config.c"; then
4198 vi_cv_path_python_conf="$d"
4199 fi
4200 done
4201 done
Bram Moolenaar071d4272004-06-13 20:20:40 +00004202
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004203fi
4204echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4205echo "${ECHO_T}$vi_cv_path_python_conf" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004206
4207 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4208
4209 if test "X$PYTHON_CONFDIR" = "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004210 echo "$as_me:$LINENO: result: can't find it!" >&5
4211echo "${ECHO_T}can't find it!" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004212 else
4213
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004214 if test "${vi_cv_path_python_plibs+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004216else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004217
Bram Moolenaar071d4272004-06-13 20:20:40 +00004218 tmp_mkf="/tmp/Makefile-conf$$"
4219 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4220__:
4221 @echo "python_MODLIBS='$(MODLIBS)'"
4222 @echo "python_LIBS='$(LIBS)'"
4223 @echo "python_SYSLIBS='$(SYSLIBS)'"
4224 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4225eof
4226 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4227 rm -f ${tmp_mkf}
4228 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4229 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4230 vi_cv_path_python_plibs="-framework Python"
4231 else
4232 if test "${vi_cv_var_python_version}" = "1.4"; then
4233 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4234 else
4235 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4236 fi
4237 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4238 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4239 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004240
Bram Moolenaar071d4272004-06-13 20:20:40 +00004241fi
4242
4243
4244 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4245 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4246 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4247 else
4248 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}"
4249 fi
4250 PYTHON_SRC="if_python.c"
4251 if test "x$MACOSX" = "xyes"; then
4252 PYTHON_OBJ="objects/if_python.o"
4253 else
4254 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4255 fi
4256 if test "${vi_cv_var_python_version}" = "1.4"; then
4257 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4258 fi
4259 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4260
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004261 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4262echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004263 threadsafe_flag=
4264 thread_lib=
4265 if test "x$MACOSX" != "xyes"; then
4266 test "$GCC" = yes && threadsafe_flag="-pthread"
4267 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4268 threadsafe_flag="-D_THREAD_SAFE"
4269 thread_lib="-pthread"
4270 fi
4271 fi
4272 libs_save_old=$LIBS
4273 if test -n "$threadsafe_flag"; then
4274 cflags_save=$CFLAGS
4275 CFLAGS="$CFLAGS $threadsafe_flag"
4276 LIBS="$LIBS $thread_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004277 cat >conftest.$ac_ext <<_ACEOF
4278/* confdefs.h. */
4279_ACEOF
4280cat confdefs.h >>conftest.$ac_ext
4281cat >>conftest.$ac_ext <<_ACEOF
4282/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004283
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004284int
4285main ()
4286{
4287
4288 ;
4289 return 0;
4290}
4291_ACEOF
4292rm -f conftest.$ac_objext conftest$ac_exeext
4293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4294 (eval $ac_link) 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -z "$ac_c_werror_flag"
4302 || test ! -s conftest.err'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; } &&
4308 { ac_try='test -s conftest$ac_exeext'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 echo "$as_me:$LINENO: result: yes" >&5
4315echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004316else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004317 echo "$as_me: failed program was:" >&5
4318sed 's/^/| /' conftest.$ac_ext >&5
4319
4320echo "$as_me:$LINENO: result: no" >&5
4321echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4322
Bram Moolenaar071d4272004-06-13 20:20:40 +00004323fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004324rm -f conftest.err conftest.$ac_objext \
4325 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004326 CFLAGS=$cflags_save
4327 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004328 echo "$as_me:$LINENO: result: no" >&5
4329echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004330 fi
4331
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004332 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4333echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004334 cflags_save=$CFLAGS
4335 libs_save=$LIBS
4336 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4337 LIBS="$LIBS $PYTHON_LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004338 cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h. */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004344
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004345int
4346main ()
4347{
4348
4349 ;
4350 return 0;
4351}
4352_ACEOF
4353rm -f conftest.$ac_objext conftest$ac_exeext
4354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355 (eval $ac_link) 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -z "$ac_c_werror_flag"
4363 || test ! -s conftest.err'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; } &&
4369 { ac_try='test -s conftest$ac_exeext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 echo "$as_me:$LINENO: result: yes" >&5
4376echo "${ECHO_T}yes" >&6; python_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004377else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004378 echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4382echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004383fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004384rm -f conftest.err conftest.$ac_objext \
4385 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004386 CFLAGS=$cflags_save
4387 LIBS=$libs_save
4388 if test $python_ok = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004389 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004390#define FEAT_PYTHON 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004391_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004392
4393 else
4394 LIBS=$libs_save_old
4395 PYTHON_SRC=
4396 PYTHON_OBJ=
4397 PYTHON_LIBS=
4398 PYTHON_CFLAGS=
4399 fi
4400
4401 fi
4402 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004403 echo "$as_me:$LINENO: result: too old" >&5
4404echo "${ECHO_T}too old" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004405 fi
4406 fi
4407fi
4408
4409
4410
4411
4412
4413
4414
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004415echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4416echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004417# Check whether --enable-tclinterp or --disable-tclinterp was given.
4418if test "${enable_tclinterp+set}" = set; then
4419 enableval="$enable_tclinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004420
Bram Moolenaar071d4272004-06-13 20:20:40 +00004421else
4422 enable_tclinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004423fi;
4424echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4425echo "${ECHO_T}$enable_tclinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004426
4427if test "$enable_tclinterp" = "yes"; then
4428
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004429 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4430echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4431
4432# Check whether --with-tclsh or --without-tclsh was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004433if test "${with_tclsh+set}" = set; then
4434 withval="$with_tclsh"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004435 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4436echo "${ECHO_T}$tclsh_name" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004437else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004438 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6
4440fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004441 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4442set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004443echo "$as_me:$LINENO: checking for $ac_word" >&5
4444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004447else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004448 case $vi_cv_path_tcl in
4449 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004450 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4451 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004452 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4463 fi
4464done
4465done
4466
Bram Moolenaar071d4272004-06-13 20:20:40 +00004467 ;;
4468esac
4469fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004470vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4471
Bram Moolenaar071d4272004-06-13 20:20:40 +00004472if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004473 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4474echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004475else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004476 echo "$as_me:$LINENO: result: no" >&5
4477echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004478fi
4479
Bram Moolenaar071d4272004-06-13 20:20:40 +00004480
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004481
4482 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004483 tclsh_name="tclsh8.2"
4484 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4485set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004486echo "$as_me:$LINENO: checking for $ac_word" >&5
4487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4488if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004490else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004491 case $vi_cv_path_tcl in
4492 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004493 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4494 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004495 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497for as_dir in $PATH
4498do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4503 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507done
4508done
4509
Bram Moolenaar071d4272004-06-13 20:20:40 +00004510 ;;
4511esac
4512fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004513vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4514
Bram Moolenaar071d4272004-06-13 20:20:40 +00004515if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004516 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4517echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004518else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004519 echo "$as_me:$LINENO: result: no" >&5
4520echo "${ECHO_T}no" >&6
4521fi
4522
4523 fi
4524 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4525 tclsh_name="tclsh8.0"
4526 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4527set dummy $tclsh_name; ac_word=$2
4528echo "$as_me:$LINENO: checking for $ac_word" >&5
4529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533 case $vi_cv_path_tcl in
4534 [\\/]* | ?:[\\/]*)
4535 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4536 ;;
4537 *)
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4548 fi
4549done
4550done
4551
4552 ;;
4553esac
4554fi
4555vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4556
4557if test -n "$vi_cv_path_tcl"; then
4558 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4559echo "${ECHO_T}$vi_cv_path_tcl" >&6
4560else
4561 echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004563fi
4564
4565 fi
4566 if test "X$vi_cv_path_tcl" = "X"; then
4567 tclsh_name="tclsh"
4568 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4569set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004570echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4572if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004574else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004575 case $vi_cv_path_tcl in
4576 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004577 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4578 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004579 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592done
4593
Bram Moolenaar071d4272004-06-13 20:20:40 +00004594 ;;
4595esac
4596fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004597vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4598
Bram Moolenaar071d4272004-06-13 20:20:40 +00004599if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004600 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4601echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004602else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004603 echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004605fi
4606
4607 fi
4608 if test "X$vi_cv_path_tcl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004609 echo "$as_me:$LINENO: checking Tcl version" >&5
4610echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004611 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4612 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004613 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4614echo "${ECHO_T}$tclver - OK" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004615 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 -`
4616
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004617 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4618echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004619 if test "x$MACOSX" != "xyes"; then
Bram Moolenaar47136d72004-10-12 20:02:24 +00004620 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004621 else
4622 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4623 fi
4624 for try in $tclinc; do
4625 if test -f "$try/tcl.h"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004626 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4627echo "${ECHO_T}$try/tcl.h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004628 TCL_INC=$try
4629 break
4630 fi
4631 done
4632 if test -z "$TCL_INC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004633 echo "$as_me:$LINENO: result: <not found>" >&5
4634echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004635 SKIP_TCL=YES
4636 fi
4637 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004638 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4639echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004640 if test "x$MACOSX" != "xyes"; then
4641 tclcnf=`echo $tclinc | sed s/include/lib/g`
4642 else
4643 tclcnf="/System/Library/Frameworks/Tcl.framework"
4644 fi
4645 for try in $tclcnf; do
4646 if test -f $try/tclConfig.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004647 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4648echo "${ECHO_T}$try/tclConfig.sh" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004649 . $try/tclConfig.sh
4650 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
Bram Moolenaar9372a112005-12-06 19:59:18 +00004651 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 +00004652 break
4653 fi
4654 done
4655 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004656 echo "$as_me:$LINENO: result: <not found>" >&5
4657echo "${ECHO_T}<not found>" >&6
4658 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4659echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004660 tcllib=`echo $tclinc | sed s/include/lib/g`
4661 for ext in .so .a ; do
4662 for ver in "" $tclver ; do
4663 for try in $tcllib ; do
4664 trylib=tcl$ver$ext
4665 if test -f $try/lib$trylib ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004666 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4667echo "${ECHO_T}$try/lib$trylib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004668 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4669 if test "`(uname) 2>/dev/null`" = SunOS &&
4670 uname -r | grep '^5' >/dev/null; then
4671 TCL_LIBS="$TCL_LIBS -R $try"
4672 fi
4673 break 3
4674 fi
4675 done
4676 done
4677 done
4678 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004679 echo "$as_me:$LINENO: result: <not found>" >&5
4680echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004681 SKIP_TCL=YES
4682 fi
4683 fi
4684 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004685 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004686#define FEAT_TCL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004687_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004688
4689 TCL_SRC=if_tcl.c
4690 TCL_OBJ=objects/if_tcl.o
4691 TCL_PRO=if_tcl.pro
4692 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4693 fi
4694 fi
4695 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004696 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4697echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004698 fi
4699 fi
4700fi
4701
4702
4703
4704
4705
4706
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004707echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4708echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004709# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4710if test "${enable_rubyinterp+set}" = set; then
4711 enableval="$enable_rubyinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004712
Bram Moolenaar071d4272004-06-13 20:20:40 +00004713else
4714 enable_rubyinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004715fi;
4716echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4717echo "${ECHO_T}$enable_rubyinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004718if test "$enable_rubyinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004719
Bram Moolenaar071d4272004-06-13 20:20:40 +00004720 # Extract the first word of "ruby", so it can be a program name with args.
4721set dummy ruby; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004722echo "$as_me:$LINENO: checking for $ac_word" >&5
4723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004726else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004727 case $vi_cv_path_ruby in
4728 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004729 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4730 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004731 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4742 fi
4743done
4744done
4745
Bram Moolenaar071d4272004-06-13 20:20:40 +00004746 ;;
4747esac
4748fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004749vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4750
Bram Moolenaar071d4272004-06-13 20:20:40 +00004751if test -n "$vi_cv_path_ruby"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004752 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4753echo "${ECHO_T}$vi_cv_path_ruby" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004754else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004755 echo "$as_me:$LINENO: result: no" >&5
4756echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004757fi
4758
4759 if test "X$vi_cv_path_ruby" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004760 echo "$as_me:$LINENO: checking Ruby version" >&5
4761echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
Bram Moolenaar0cb032e2005-04-23 20:52:00 +00004762 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 +00004763 echo "$as_me:$LINENO: result: OK" >&5
4764echo "${ECHO_T}OK" >&6
4765 echo "$as_me:$LINENO: checking Ruby header files" >&5
4766echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004767 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4768 if test "X$rubyhdrdir" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004769 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4770echo "${ECHO_T}$rubyhdrdir" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004771 RUBY_CFLAGS="-I$rubyhdrdir"
4772 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4773 if test "X$rubylibs" != "X"; then
4774 RUBY_LIBS="$rubylibs"
4775 fi
4776 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4777 if test -f "$rubyhdrdir/$librubyarg"; then
4778 librubyarg="$rubyhdrdir/$librubyarg"
4779 else
4780 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4781 if test -f "$rubylibdir/$librubyarg"; then
4782 librubyarg="$rubylibdir/$librubyarg"
4783 elif test "$librubyarg" = "libruby.a"; then
4784 librubyarg="-lruby"
4785 else
4786 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4787 fi
4788 fi
4789
4790 if test "X$librubyarg" != "X"; then
4791 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4792 fi
4793 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4794 if test "X$rubyldflags" != "X"; then
4795 LDFLAGS="$rubyldflags $LDFLAGS"
4796 fi
4797 RUBY_SRC="if_ruby.c"
4798 RUBY_OBJ="objects/if_ruby.o"
4799 RUBY_PRO="if_ruby.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004800 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004801#define FEAT_RUBY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004802_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004803
4804 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004805 echo "$as_me:$LINENO: result: not found" >&5
4806echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004807 fi
4808 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004809 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4810echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004811 fi
4812 fi
4813fi
4814
4815
4816
4817
4818
4819
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004820echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4821echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004822# Check whether --enable-cscope or --disable-cscope was given.
4823if test "${enable_cscope+set}" = set; then
4824 enableval="$enable_cscope"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004825
Bram Moolenaar071d4272004-06-13 20:20:40 +00004826else
4827 enable_cscope="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004828fi;
4829echo "$as_me:$LINENO: result: $enable_cscope" >&5
4830echo "${ECHO_T}$enable_cscope" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004831if test "$enable_cscope" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004832 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004833#define FEAT_CSCOPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004834_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004835
4836fi
4837
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004838echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4839echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004840# Check whether --enable-workshop or --disable-workshop was given.
4841if test "${enable_workshop+set}" = set; then
4842 enableval="$enable_workshop"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004843
Bram Moolenaar071d4272004-06-13 20:20:40 +00004844else
4845 enable_workshop="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004846fi;
4847echo "$as_me:$LINENO: result: $enable_workshop" >&5
4848echo "${ECHO_T}$enable_workshop" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004849if test "$enable_workshop" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004850 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004851#define FEAT_SUN_WORKSHOP 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004852_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004853
4854 WORKSHOP_SRC="workshop.c integration.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004855
Bram Moolenaar071d4272004-06-13 20:20:40 +00004856 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004857
Bram Moolenaar071d4272004-06-13 20:20:40 +00004858 if test "${enable_gui-xxx}" = xxx; then
4859 enable_gui=motif
4860 fi
4861fi
4862
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004863echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4864echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004865# Check whether --enable-netbeans or --disable-netbeans was given.
4866if test "${enable_netbeans+set}" = set; then
4867 enableval="$enable_netbeans"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004868
Bram Moolenaar071d4272004-06-13 20:20:40 +00004869else
4870 enable_netbeans="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004871fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004872if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004873 echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6
4875
4876echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4877echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4878if test "${ac_cv_lib_socket_socket+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004880else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004881 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004882LIBS="-lsocket $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004883cat >conftest.$ac_ext <<_ACEOF
4884/* confdefs.h. */
4885_ACEOF
4886cat confdefs.h >>conftest.$ac_ext
4887cat >>conftest.$ac_ext <<_ACEOF
4888/* end confdefs.h. */
4889
Bram Moolenaar071d4272004-06-13 20:20:40 +00004890/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004891#ifdef __cplusplus
4892extern "C"
4893#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004894/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004895 builtin and then its argument prototype would still apply. */
4896char socket ();
4897int
4898main ()
4899{
4900socket ();
4901 ;
4902 return 0;
4903}
4904_ACEOF
4905rm -f conftest.$ac_objext conftest$ac_exeext
4906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4907 (eval $ac_link) 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -z "$ac_c_werror_flag"
4915 || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 (eval $ac_try) 2>&5
4918 ac_status=$?
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try='test -s conftest$ac_exeext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 (eval $ac_try) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_lib_socket_socket=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004928else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004929 echo "$as_me: failed program was:" >&5
4930sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004931
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004932ac_cv_lib_socket_socket=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004933fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004934rm -f conftest.err conftest.$ac_objext \
4935 conftest$ac_exeext conftest.$ac_ext
4936LIBS=$ac_check_lib_save_LIBS
4937fi
4938echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4939echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4940if test $ac_cv_lib_socket_socket = yes; then
4941 cat >>confdefs.h <<_ACEOF
4942#define HAVE_LIBSOCKET 1
4943_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004944
4945 LIBS="-lsocket $LIBS"
4946
Bram Moolenaar071d4272004-06-13 20:20:40 +00004947fi
4948
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004949
4950echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4951echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4952if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004954else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004955 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004956LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004957cat >conftest.$ac_ext <<_ACEOF
4958/* confdefs.h. */
4959_ACEOF
4960cat confdefs.h >>conftest.$ac_ext
4961cat >>conftest.$ac_ext <<_ACEOF
4962/* end confdefs.h. */
4963
Bram Moolenaar071d4272004-06-13 20:20:40 +00004964/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004965#ifdef __cplusplus
4966extern "C"
4967#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004968/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004969 builtin and then its argument prototype would still apply. */
4970char gethostbyname ();
4971int
4972main ()
4973{
4974gethostbyname ();
4975 ;
4976 return 0;
4977}
4978_ACEOF
4979rm -f conftest.$ac_objext conftest$ac_exeext
4980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4981 (eval $ac_link) 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -z "$ac_c_werror_flag"
4989 || test ! -s conftest.err'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; } &&
4995 { ac_try='test -s conftest$ac_exeext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 (eval $ac_try) 2>&5
4998 ac_status=$?
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005002else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005003 echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005005
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005006ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005007fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005008rm -f conftest.err conftest.$ac_objext \
5009 conftest$ac_exeext conftest.$ac_ext
5010LIBS=$ac_check_lib_save_LIBS
5011fi
5012echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5013echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5014if test $ac_cv_lib_nsl_gethostbyname = yes; then
5015 cat >>confdefs.h <<_ACEOF
5016#define HAVE_LIBNSL 1
5017_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005018
5019 LIBS="-lnsl $LIBS"
5020
Bram Moolenaar071d4272004-06-13 20:20:40 +00005021fi
5022
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005023 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5024echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5025 cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h. */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005031
5032#include <stdio.h>
5033#include <stdlib.h>
5034#include <stdarg.h>
5035#include <fcntl.h>
5036#include <netdb.h>
5037#include <netinet/in.h>
5038#include <errno.h>
5039#include <sys/types.h>
5040#include <sys/socket.h>
5041 /* Check bitfields */
5042 struct nbbuf {
5043 unsigned int initDone:1;
5044 ushort signmaplen;
5045 };
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005046
5047int
5048main ()
5049{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005050
5051 /* Check creating a socket. */
5052 struct sockaddr_in server;
5053 (void)socket(AF_INET, SOCK_STREAM, 0);
5054 (void)htons(100);
5055 (void)gethostbyname("microsoft.com");
5056 if (errno == ECONNREFUSED)
5057 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005058
5059 ;
5060 return 0;
5061}
5062_ACEOF
5063rm -f conftest.$ac_objext conftest$ac_exeext
5064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065 (eval $ac_link) 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -z "$ac_c_werror_flag"
5073 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 echo "$as_me:$LINENO: result: yes" >&5
5086echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005087else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005088 echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091echo "$as_me:$LINENO: result: no" >&5
5092echo "${ECHO_T}no" >&6; enable_netbeans="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005093fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005094rm -f conftest.err conftest.$ac_objext \
5095 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005096else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005097 echo "$as_me:$LINENO: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005099fi
5100if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005101 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005102#define FEAT_NETBEANS_INTG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005103_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005104
5105 NETBEANS_SRC="netbeans.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005106
Bram Moolenaar071d4272004-06-13 20:20:40 +00005107 NETBEANS_OBJ="objects/netbeans.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005108
Bram Moolenaar071d4272004-06-13 20:20:40 +00005109fi
5110
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005111echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5112echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005113# Check whether --enable-sniff or --disable-sniff was given.
5114if test "${enable_sniff+set}" = set; then
5115 enableval="$enable_sniff"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005116
Bram Moolenaar071d4272004-06-13 20:20:40 +00005117else
5118 enable_sniff="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005119fi;
5120echo "$as_me:$LINENO: result: $enable_sniff" >&5
5121echo "${ECHO_T}$enable_sniff" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005122if test "$enable_sniff" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005123 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005124#define FEAT_SNIFF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005125_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005126
5127 SNIFF_SRC="if_sniff.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005128
Bram Moolenaar071d4272004-06-13 20:20:40 +00005129 SNIFF_OBJ="objects/if_sniff.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005130
Bram Moolenaar071d4272004-06-13 20:20:40 +00005131fi
5132
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005133echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5134echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005135# Check whether --enable-multibyte or --disable-multibyte was given.
5136if test "${enable_multibyte+set}" = set; then
5137 enableval="$enable_multibyte"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005138
Bram Moolenaar071d4272004-06-13 20:20:40 +00005139else
5140 enable_multibyte="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005141fi;
5142echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5143echo "${ECHO_T}$enable_multibyte" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005144if test "$enable_multibyte" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005145 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005146#define FEAT_MBYTE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005147_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005148
5149fi
5150
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005151echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5152echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005153# Check whether --enable-hangulinput or --disable-hangulinput was given.
5154if test "${enable_hangulinput+set}" = set; then
5155 enableval="$enable_hangulinput"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005156
Bram Moolenaar071d4272004-06-13 20:20:40 +00005157else
5158 enable_hangulinput="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005159fi;
5160echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5161echo "${ECHO_T}$enable_hangulinput" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005162
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005163echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5164echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005165# Check whether --enable-xim or --disable-xim was given.
5166if test "${enable_xim+set}" = set; then
5167 enableval="$enable_xim"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005168 echo "$as_me:$LINENO: result: $enable_xim" >&5
5169echo "${ECHO_T}$enable_xim" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005170else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005171 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5172echo "${ECHO_T}defaulting to auto" >&6
5173fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005174
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005175echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5176echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005177# Check whether --enable-fontset or --disable-fontset was given.
5178if test "${enable_fontset+set}" = set; then
5179 enableval="$enable_fontset"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005180
Bram Moolenaar071d4272004-06-13 20:20:40 +00005181else
5182 enable_fontset="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005183fi;
5184echo "$as_me:$LINENO: result: $enable_fontset" >&5
5185echo "${ECHO_T}$enable_fontset" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005186
5187test -z "$with_x" && with_x=yes
5188test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5189if test "$with_x" = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005190 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5191echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005192else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005193
Bram Moolenaar071d4272004-06-13 20:20:40 +00005194 # Extract the first word of "xmkmf", so it can be a program name with args.
5195set dummy xmkmf; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005196echo "$as_me:$LINENO: checking for $ac_word" >&5
5197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198if test "${ac_cv_path_xmkmfpath+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005200else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005201 case $xmkmfpath in
5202 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005203 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5204 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005205 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217done
5218done
5219
Bram Moolenaar071d4272004-06-13 20:20:40 +00005220 ;;
5221esac
5222fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005223xmkmfpath=$ac_cv_path_xmkmfpath
5224
Bram Moolenaar071d4272004-06-13 20:20:40 +00005225if test -n "$xmkmfpath"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005226 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5227echo "${ECHO_T}$xmkmfpath" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005228else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005229 echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005231fi
5232
5233
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005234 echo "$as_me:$LINENO: checking for X" >&5
5235echo $ECHO_N "checking for X... $ECHO_C" >&6
5236
Bram Moolenaar071d4272004-06-13 20:20:40 +00005237
5238# Check whether --with-x or --without-x was given.
5239if test "${with_x+set}" = set; then
5240 withval="$with_x"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005241
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005242fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005243# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5244if test "x$with_x" = xno; then
5245 # The user explicitly disabled X.
5246 have_x=disabled
5247else
5248 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5249 # Both variables are already set.
5250 have_x=yes
5251 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005252 if test "${ac_cv_have_x+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005254else
5255 # One or both of the vars are not set, and there is no cached value.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005256ac_x_includes=no ac_x_libraries=no
5257rm -fr conftest.dir
5258if mkdir conftest.dir; then
5259 cd conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005260 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005261 cat >Imakefile <<'_ACEOF'
Bram Moolenaar071d4272004-06-13 20:20:40 +00005262acfindx:
5263 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005264_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005265 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5266 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5267 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5268 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5269 for ac_extension in a so sl; do
5270 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005271 test -f $ac_im_libdir/libX11.$ac_extension; then
5272 ac_im_usrlibdir=$ac_im_libdir; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00005273 fi
5274 done
5275 # Screen out bogus values from the imake configuration. They are
5276 # bogus both because they are the default anyway, and because
5277 # using them would break gcc on systems where it needs fixed includes.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005278 case $ac_im_incroot in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005279 /usr/include) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005280 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005281 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005282 case $ac_im_usrlibdir in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005283 /usr/lib | /lib) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005284 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005285 esac
5286 fi
5287 cd ..
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005288 rm -fr conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005289fi
5290
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005291# Standard set of common directories for X headers.
5292# Check X11 before X11Rn because it is often a symlink to the current release.
5293ac_x_header_dirs='
5294/usr/X11/include
5295/usr/X11R6/include
5296/usr/X11R5/include
5297/usr/X11R4/include
Bram Moolenaar071d4272004-06-13 20:20:40 +00005298
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005299/usr/include/X11
5300/usr/include/X11R6
5301/usr/include/X11R5
5302/usr/include/X11R4
5303
5304/usr/local/X11/include
5305/usr/local/X11R6/include
5306/usr/local/X11R5/include
5307/usr/local/X11R4/include
5308
5309/usr/local/include/X11
5310/usr/local/include/X11R6
5311/usr/local/include/X11R5
5312/usr/local/include/X11R4
5313
5314/usr/X386/include
5315/usr/x386/include
5316/usr/XFree86/include/X11
5317
5318/usr/include
5319/usr/local/include
5320/usr/unsupported/include
5321/usr/athena/include
5322/usr/local/x11r5/include
5323/usr/lpp/Xamples/include
5324
5325/usr/openwin/include
5326/usr/openwin/share/include'
5327
5328if test "$ac_x_includes" = no; then
5329 # Guess where to find include files, by looking for Intrinsic.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005330 # First, try using that file with no special directory specified.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337#include <X11/Intrinsic.h>
5338_ACEOF
5339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } >/dev/null; then
5347 if test -s conftest.err; then
5348 ac_cpp_err=$ac_c_preproc_warn_flag
5349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5350 else
5351 ac_cpp_err=
5352 fi
5353else
5354 ac_cpp_err=yes
5355fi
5356if test -z "$ac_cpp_err"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005357 # We can compile using X headers with no special include directory.
5358ac_x_includes=
5359else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005360 echo "$as_me: failed program was:" >&5
5361sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 for ac_dir in $ac_x_header_dirs; do
5364 if test -r "$ac_dir/X11/Intrinsic.h"; then
5365 ac_x_includes=$ac_dir
5366 break
5367 fi
5368done
Bram Moolenaar071d4272004-06-13 20:20:40 +00005369fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005370rm -f conftest.err conftest.$ac_ext
5371fi # $ac_x_includes = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005372
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005373if test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005374 # Check for the libraries.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005375 # See if we find them without any special options.
5376 # Don't add to $LIBS permanently.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005377 ac_save_LIBS=$LIBS
5378 LIBS="-lXt $LIBS"
5379 cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h. */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h. */
5385#include <X11/Intrinsic.h>
5386int
5387main ()
5388{
5389XtMalloc (0)
5390 ;
5391 return 0;
5392}
5393_ACEOF
5394rm -f conftest.$ac_objext conftest$ac_exeext
5395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5396 (eval $ac_link) 2>conftest.er1
5397 ac_status=$?
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
5403 { ac_try='test -z "$ac_c_werror_flag"
5404 || test ! -s conftest.err'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; } &&
5410 { ac_try='test -s conftest$ac_exeext'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 (eval $ac_try) 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5416 LIBS=$ac_save_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005417# We can link X programs with no special library path.
5418ac_x_libraries=
5419else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005420 echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423LIBS=$ac_save_LIBS
5424for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Bram Moolenaar071d4272004-06-13 20:20:40 +00005425do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005426 # Don't even attempt the hair of trying to link an X program!
Bram Moolenaar071d4272004-06-13 20:20:40 +00005427 for ac_extension in a so sl; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005428 if test -r $ac_dir/libXt.$ac_extension; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005429 ac_x_libraries=$ac_dir
5430 break 2
5431 fi
5432 done
5433done
5434fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005435rm -f conftest.err conftest.$ac_objext \
5436 conftest$ac_exeext conftest.$ac_ext
5437fi # $ac_x_libraries = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005438
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005439if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005440 # Didn't find X anywhere. Cache the known absence of X.
5441 ac_cv_have_x="have_x=no"
5442else
5443 # Record where we found X for the cache.
5444 ac_cv_have_x="have_x=yes \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005445 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005446fi
5447fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005448
Bram Moolenaar071d4272004-06-13 20:20:40 +00005449 fi
5450 eval "$ac_cv_have_x"
5451fi # $with_x != no
5452
5453if test "$have_x" != yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005454 echo "$as_me:$LINENO: result: $have_x" >&5
5455echo "${ECHO_T}$have_x" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005456 no_x=yes
5457else
5458 # If each of the values was on the command line, it overrides each guess.
5459 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5460 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5461 # Update the cache value to reflect the command line values.
5462 ac_cv_have_x="have_x=yes \
5463 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005464 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5465echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005466fi
5467
5468if test "$no_x" = yes; then
5469 # Not all programs may use this symbol, but it does not hurt to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005470
5471cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005472#define X_DISPLAY_MISSING 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005473_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005474
5475 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5476else
5477 if test -n "$x_includes"; then
5478 X_CFLAGS="$X_CFLAGS -I$x_includes"
5479 fi
5480
5481 # It would also be nice to do this for all -L options, not just this one.
5482 if test -n "$x_libraries"; then
5483 X_LIBS="$X_LIBS -L$x_libraries"
5484 # For Solaris; some versions of Sun CC require a space after -R and
5485 # others require no space. Words are not sufficient . . . .
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005486 case `(uname -sr) 2>/dev/null` in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005487 "SunOS 5"*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005488 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5489echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5490 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5491 cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h. */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005497
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005498int
5499main ()
5500{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005501
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005502 ;
5503 return 0;
5504}
5505_ACEOF
5506rm -f conftest.$ac_objext conftest$ac_exeext
5507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5508 (eval $ac_link) 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -z "$ac_c_werror_flag"
5516 || test ! -s conftest.err'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; } &&
5522 { ac_try='test -s conftest$ac_exeext'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005528 ac_R_nospace=yes
5529else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005530 echo "$as_me: failed program was:" >&5
5531sed 's/^/| /' conftest.$ac_ext >&5
5532
5533ac_R_nospace=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005534fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005535rm -f conftest.err conftest.$ac_objext \
5536 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005537 if test $ac_R_nospace = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005538 echo "$as_me:$LINENO: result: no" >&5
5539echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005540 X_LIBS="$X_LIBS -R$x_libraries"
5541 else
5542 LIBS="$ac_xsave_LIBS -R $x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005543 cat >conftest.$ac_ext <<_ACEOF
5544/* confdefs.h. */
5545_ACEOF
5546cat confdefs.h >>conftest.$ac_ext
5547cat >>conftest.$ac_ext <<_ACEOF
5548/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005549
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005550int
5551main ()
5552{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005553
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005554 ;
5555 return 0;
5556}
5557_ACEOF
5558rm -f conftest.$ac_objext conftest$ac_exeext
5559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5560 (eval $ac_link) 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } &&
5567 { ac_try='test -z "$ac_c_werror_flag"
5568 || test ! -s conftest.err'
5569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 (eval $ac_try) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; } &&
5574 { ac_try='test -s conftest$ac_exeext'
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 (eval $ac_try) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005580 ac_R_space=yes
5581else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005582 echo "$as_me: failed program was:" >&5
5583sed 's/^/| /' conftest.$ac_ext >&5
5584
5585ac_R_space=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005586fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005587rm -f conftest.err conftest.$ac_objext \
5588 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005589 if test $ac_R_space = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005590 echo "$as_me:$LINENO: result: yes" >&5
5591echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005592 X_LIBS="$X_LIBS -R $x_libraries"
5593 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005594 echo "$as_me:$LINENO: result: neither works" >&5
5595echo "${ECHO_T}neither works" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005596 fi
5597 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005598 LIBS=$ac_xsave_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005599 esac
5600 fi
5601
5602 # Check for system-dependent libraries X programs must link with.
5603 # Do this before checking for the system-independent R6 libraries
5604 # (-lICE), since we may need -lsocket or whatever for X linking.
5605
5606 if test "$ISC" = yes; then
5607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5608 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005609 # Martyn Johnson says this is needed for Ultrix, if the X
5610 # libraries were built with DECnet support. And Karl Berry says
Bram Moolenaar071d4272004-06-13 20:20:40 +00005611 # the Alpha needs dnet_stub (dnet does not exist).
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005612 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5613 cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h. */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h. */
5619
Bram Moolenaar071d4272004-06-13 20:20:40 +00005620/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005621#ifdef __cplusplus
5622extern "C"
5623#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005624/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005625 builtin and then its argument prototype would still apply. */
5626char XOpenDisplay ();
5627int
5628main ()
5629{
5630XOpenDisplay ();
5631 ;
5632 return 0;
5633}
5634_ACEOF
5635rm -f conftest.$ac_objext conftest$ac_exeext
5636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5637 (eval $ac_link) 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -z "$ac_c_werror_flag"
5645 || test ! -s conftest.err'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 (eval $ac_try) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; } &&
5651 { ac_try='test -s conftest$ac_exeext'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; }; then
5657 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00005658else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005659 echo "$as_me: failed program was:" >&5
5660sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005661
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005662echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5663echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5664if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666else
5667 ac_check_lib_save_LIBS=$LIBS
5668LIBS="-ldnet $LIBS"
5669cat >conftest.$ac_ext <<_ACEOF
5670/* confdefs.h. */
5671_ACEOF
5672cat confdefs.h >>conftest.$ac_ext
5673cat >>conftest.$ac_ext <<_ACEOF
5674/* end confdefs.h. */
5675
5676/* Override any gcc2 internal prototype to avoid an error. */
5677#ifdef __cplusplus
5678extern "C"
5679#endif
5680/* We use char because int might match the return type of a gcc2
5681 builtin and then its argument prototype would still apply. */
5682char dnet_ntoa ();
5683int
5684main ()
5685{
5686dnet_ntoa ();
5687 ;
5688 return 0;
5689}
5690_ACEOF
5691rm -f conftest.$ac_objext conftest$ac_exeext
5692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693 (eval $ac_link) 2>conftest.er1
5694 ac_status=$?
5695 grep -v '^ *+' conftest.er1 >conftest.err
5696 rm -f conftest.er1
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try='test -z "$ac_c_werror_flag"
5701 || test ! -s conftest.err'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest$ac_exeext'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 (eval $ac_try) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5713 ac_cv_lib_dnet_dnet_ntoa=yes
5714else
5715 echo "$as_me: failed program was:" >&5
5716sed 's/^/| /' conftest.$ac_ext >&5
5717
5718ac_cv_lib_dnet_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005719fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005720rm -f conftest.err conftest.$ac_objext \
5721 conftest$ac_exeext conftest.$ac_ext
5722LIBS=$ac_check_lib_save_LIBS
5723fi
5724echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5725echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5726if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005727 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005728fi
5729
5730 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005731 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5732echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5733if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005735else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005736 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005737LIBS="-ldnet_stub $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005738cat >conftest.$ac_ext <<_ACEOF
5739/* confdefs.h. */
5740_ACEOF
5741cat confdefs.h >>conftest.$ac_ext
5742cat >>conftest.$ac_ext <<_ACEOF
5743/* end confdefs.h. */
5744
Bram Moolenaar071d4272004-06-13 20:20:40 +00005745/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005746#ifdef __cplusplus
5747extern "C"
5748#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005749/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005750 builtin and then its argument prototype would still apply. */
5751char dnet_ntoa ();
5752int
5753main ()
5754{
5755dnet_ntoa ();
5756 ;
5757 return 0;
5758}
5759_ACEOF
5760rm -f conftest.$ac_objext conftest$ac_exeext
5761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762 (eval $ac_link) 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -z "$ac_c_werror_flag"
5770 || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try='test -s conftest$ac_exeext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005783else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005784 echo "$as_me: failed program was:" >&5
5785sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005786
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005787ac_cv_lib_dnet_stub_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005788fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005789rm -f conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
5791LIBS=$ac_check_lib_save_LIBS
5792fi
5793echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5794echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5795if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005796 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005797fi
5798
5799 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005800fi
5801rm -f conftest.err conftest.$ac_objext \
5802 conftest$ac_exeext conftest.$ac_ext
5803 LIBS="$ac_xsave_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005804
5805 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5806 # to get the SysV transport functions.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005807 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005808 # needs -lnsl.
5809 # The nsl library prevents programs from opening the X display
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005810 # on Irix 5.2, according to T.E. Dickey.
5811 # The functions gethostbyname, getservbyname, and inet_addr are
5812 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5813 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5814echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5815if test "${ac_cv_func_gethostbyname+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005817else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005818 cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h. */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
5824/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5826#define gethostbyname innocuous_gethostbyname
5827
Bram Moolenaar071d4272004-06-13 20:20:40 +00005828/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005829 which can conflict with char gethostbyname (); below.
5830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5831 <limits.h> exists even on freestanding compilers. */
5832
5833#ifdef __STDC__
5834# include <limits.h>
5835#else
5836# include <assert.h>
5837#endif
5838
5839#undef gethostbyname
5840
Bram Moolenaar071d4272004-06-13 20:20:40 +00005841/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005842#ifdef __cplusplus
5843extern "C"
5844{
5845#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005846/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005847 builtin and then its argument prototype would still apply. */
5848char gethostbyname ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005849/* The GNU C library defines this for functions which it implements
5850 to always fail with ENOSYS. Some functions are actually named
5851 something starting with __ and the normal name is an alias. */
5852#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5853choke me
5854#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005855char (*f) () = gethostbyname;
5856#endif
5857#ifdef __cplusplus
5858}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005859#endif
5860
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005861int
5862main ()
5863{
5864return f != gethostbyname;
5865 ;
5866 return 0;
5867}
5868_ACEOF
5869rm -f conftest.$ac_objext conftest$ac_exeext
5870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5871 (eval $ac_link) 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_c_werror_flag"
5879 || test ! -s conftest.err'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; } &&
5885 { ac_try='test -s conftest$ac_exeext'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_cv_func_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005892else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005893 echo "$as_me: failed program was:" >&5
5894sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005895
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005896ac_cv_func_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005897fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005898rm -f conftest.err conftest.$ac_objext \
5899 conftest$ac_exeext conftest.$ac_ext
5900fi
5901echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5902echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005903
5904 if test $ac_cv_func_gethostbyname = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005905 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5906echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5907if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005909else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005910 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005911LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005912cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h. */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h. */
5918
Bram Moolenaar071d4272004-06-13 20:20:40 +00005919/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005920#ifdef __cplusplus
5921extern "C"
5922#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005923/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005924 builtin and then its argument prototype would still apply. */
5925char gethostbyname ();
5926int
5927main ()
5928{
5929gethostbyname ();
5930 ;
5931 return 0;
5932}
5933_ACEOF
5934rm -f conftest.$ac_objext conftest$ac_exeext
5935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936 (eval $ac_link) 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } &&
5943 { ac_try='test -z "$ac_c_werror_flag"
5944 || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005957else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005958 echo "$as_me: failed program was:" >&5
5959sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005960
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005961ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005962fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005963rm -f conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5965LIBS=$ac_check_lib_save_LIBS
5966fi
5967echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5968echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5969if test $ac_cv_lib_nsl_gethostbyname = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005970 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005971fi
5972
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005973 if test $ac_cv_lib_nsl_gethostbyname = no; then
5974 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5975echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5976if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978else
5979 ac_check_lib_save_LIBS=$LIBS
5980LIBS="-lbsd $LIBS"
5981cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h. */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */
5987
5988/* Override any gcc2 internal prototype to avoid an error. */
5989#ifdef __cplusplus
5990extern "C"
5991#endif
5992/* We use char because int might match the return type of a gcc2
5993 builtin and then its argument prototype would still apply. */
5994char gethostbyname ();
5995int
5996main ()
5997{
5998gethostbyname ();
5999 ;
6000 return 0;
6001}
6002_ACEOF
6003rm -f conftest.$ac_objext conftest$ac_exeext
6004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6005 (eval $ac_link) 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_c_werror_flag"
6013 || test ! -s conftest.err'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; } &&
6019 { ac_try='test -s conftest$ac_exeext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_lib_bsd_gethostbyname=yes
6026else
6027 echo "$as_me: failed program was:" >&5
6028sed 's/^/| /' conftest.$ac_ext >&5
6029
6030ac_cv_lib_bsd_gethostbyname=no
6031fi
6032rm -f conftest.err conftest.$ac_objext \
6033 conftest$ac_exeext conftest.$ac_ext
6034LIBS=$ac_check_lib_save_LIBS
6035fi
6036echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6037echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6038if test $ac_cv_lib_bsd_gethostbyname = yes; then
6039 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6040fi
6041
6042 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00006043 fi
6044
6045 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6046 # socket/setsockopt and other routines are undefined under SCO ODT
6047 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006048 # on later versions), says Simon Leinen: it contains gethostby*
6049 # variants that don't use the name server (or something). -lsocket
6050 # must be given before -lnsl if both are needed. We assume that
6051 # if connect needs -lnsl, so does gethostbyname.
6052 echo "$as_me:$LINENO: checking for connect" >&5
6053echo $ECHO_N "checking for connect... $ECHO_C" >&6
6054if test "${ac_cv_func_connect+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006056else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006057 cat >conftest.$ac_ext <<_ACEOF
6058/* confdefs.h. */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h. */
6063/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6065#define connect innocuous_connect
6066
Bram Moolenaar071d4272004-06-13 20:20:40 +00006067/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006068 which can conflict with char connect (); below.
6069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6070 <limits.h> exists even on freestanding compilers. */
6071
6072#ifdef __STDC__
6073# include <limits.h>
6074#else
6075# include <assert.h>
6076#endif
6077
6078#undef connect
6079
Bram Moolenaar071d4272004-06-13 20:20:40 +00006080/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006081#ifdef __cplusplus
6082extern "C"
6083{
6084#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006085/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006086 builtin and then its argument prototype would still apply. */
6087char connect ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006088/* The GNU C library defines this for functions which it implements
6089 to always fail with ENOSYS. Some functions are actually named
6090 something starting with __ and the normal name is an alias. */
6091#if defined (__stub_connect) || defined (__stub___connect)
6092choke me
6093#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006094char (*f) () = connect;
6095#endif
6096#ifdef __cplusplus
6097}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006098#endif
6099
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006100int
6101main ()
6102{
6103return f != connect;
6104 ;
6105 return 0;
6106}
6107_ACEOF
6108rm -f conftest.$ac_objext conftest$ac_exeext
6109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try='test -s conftest$ac_exeext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_func_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006131else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006132 echo "$as_me: failed program was:" >&5
6133sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006134
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006135ac_cv_func_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006136fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006137rm -f conftest.err conftest.$ac_objext \
6138 conftest$ac_exeext conftest.$ac_ext
6139fi
6140echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6141echo "${ECHO_T}$ac_cv_func_connect" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006142
6143 if test $ac_cv_func_connect = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006144 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6145echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6146if test "${ac_cv_lib_socket_connect+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006148else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006149 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006150LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006151cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h. */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h. */
6157
Bram Moolenaar071d4272004-06-13 20:20:40 +00006158/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006159#ifdef __cplusplus
6160extern "C"
6161#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006162/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006163 builtin and then its argument prototype would still apply. */
6164char connect ();
6165int
6166main ()
6167{
6168connect ();
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173rm -f conftest.$ac_objext conftest$ac_exeext
6174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175 (eval $ac_link) 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try='test -z "$ac_c_werror_flag"
6183 || test ! -s conftest.err'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; } &&
6189 { ac_try='test -s conftest$ac_exeext'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 ac_cv_lib_socket_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006196else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006197 echo "$as_me: failed program was:" >&5
6198sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006199
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006200ac_cv_lib_socket_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006201fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006202rm -f conftest.err conftest.$ac_objext \
6203 conftest$ac_exeext conftest.$ac_ext
6204LIBS=$ac_check_lib_save_LIBS
6205fi
6206echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6207echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6208if test $ac_cv_lib_socket_connect = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006209 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006210fi
6211
6212 fi
6213
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006214 # Guillermo Gomez says -lposix is necessary on A/UX.
6215 echo "$as_me:$LINENO: checking for remove" >&5
6216echo $ECHO_N "checking for remove... $ECHO_C" >&6
6217if test "${ac_cv_func_remove+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006219else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006220 cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6228#define remove innocuous_remove
6229
Bram Moolenaar071d4272004-06-13 20:20:40 +00006230/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006231 which can conflict with char remove (); below.
6232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6233 <limits.h> exists even on freestanding compilers. */
6234
6235#ifdef __STDC__
6236# include <limits.h>
6237#else
6238# include <assert.h>
6239#endif
6240
6241#undef remove
6242
Bram Moolenaar071d4272004-06-13 20:20:40 +00006243/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006244#ifdef __cplusplus
6245extern "C"
6246{
6247#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006248/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006249 builtin and then its argument prototype would still apply. */
6250char remove ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006251/* The GNU C library defines this for functions which it implements
6252 to always fail with ENOSYS. Some functions are actually named
6253 something starting with __ and the normal name is an alias. */
6254#if defined (__stub_remove) || defined (__stub___remove)
6255choke me
6256#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006257char (*f) () = remove;
6258#endif
6259#ifdef __cplusplus
6260}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006261#endif
6262
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006263int
6264main ()
6265{
6266return f != remove;
6267 ;
6268 return 0;
6269}
6270_ACEOF
6271rm -f conftest.$ac_objext conftest$ac_exeext
6272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6273 (eval $ac_link) 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest$ac_exeext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_cv_func_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006294else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006295 echo "$as_me: failed program was:" >&5
6296sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006297
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006298ac_cv_func_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006299fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006300rm -f conftest.err conftest.$ac_objext \
6301 conftest$ac_exeext conftest.$ac_ext
6302fi
6303echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6304echo "${ECHO_T}$ac_cv_func_remove" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006305
6306 if test $ac_cv_func_remove = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006307 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6308echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6309if test "${ac_cv_lib_posix_remove+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006311else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006312 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006313LIBS="-lposix $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006314cat >conftest.$ac_ext <<_ACEOF
6315/* confdefs.h. */
6316_ACEOF
6317cat confdefs.h >>conftest.$ac_ext
6318cat >>conftest.$ac_ext <<_ACEOF
6319/* end confdefs.h. */
6320
Bram Moolenaar071d4272004-06-13 20:20:40 +00006321/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006322#ifdef __cplusplus
6323extern "C"
6324#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006325/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006326 builtin and then its argument prototype would still apply. */
6327char remove ();
6328int
6329main ()
6330{
6331remove ();
6332 ;
6333 return 0;
6334}
6335_ACEOF
6336rm -f conftest.$ac_objext conftest$ac_exeext
6337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338 (eval $ac_link) 2>conftest.er1
6339 ac_status=$?
6340 grep -v '^ *+' conftest.er1 >conftest.err
6341 rm -f conftest.er1
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -z "$ac_c_werror_flag"
6346 || test ! -s conftest.err'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; } &&
6352 { ac_try='test -s conftest$ac_exeext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_lib_posix_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006359else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006360 echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006362
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006363ac_cv_lib_posix_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006364fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006365rm -f conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367LIBS=$ac_check_lib_save_LIBS
6368fi
6369echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6370echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6371if test $ac_cv_lib_posix_remove = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006372 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006373fi
6374
6375 fi
6376
6377 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006378 echo "$as_me:$LINENO: checking for shmat" >&5
6379echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6380if test "${ac_cv_func_shmat+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006382else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006383 cat >conftest.$ac_ext <<_ACEOF
6384/* confdefs.h. */
6385_ACEOF
6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h. */
6389/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6391#define shmat innocuous_shmat
6392
Bram Moolenaar071d4272004-06-13 20:20:40 +00006393/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006394 which can conflict with char shmat (); below.
6395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6396 <limits.h> exists even on freestanding compilers. */
6397
6398#ifdef __STDC__
6399# include <limits.h>
6400#else
6401# include <assert.h>
6402#endif
6403
6404#undef shmat
6405
Bram Moolenaar071d4272004-06-13 20:20:40 +00006406/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006407#ifdef __cplusplus
6408extern "C"
6409{
6410#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006411/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006412 builtin and then its argument prototype would still apply. */
6413char shmat ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006414/* The GNU C library defines this for functions which it implements
6415 to always fail with ENOSYS. Some functions are actually named
6416 something starting with __ and the normal name is an alias. */
6417#if defined (__stub_shmat) || defined (__stub___shmat)
6418choke me
6419#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006420char (*f) () = shmat;
6421#endif
6422#ifdef __cplusplus
6423}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006424#endif
6425
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006426int
6427main ()
6428{
6429return f != shmat;
6430 ;
6431 return 0;
6432}
6433_ACEOF
6434rm -f conftest.$ac_objext conftest$ac_exeext
6435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -z "$ac_c_werror_flag"
6444 || test ! -s conftest.err'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try='test -s conftest$ac_exeext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 ac_cv_func_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006457else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006458 echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006460
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006461ac_cv_func_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006462fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006463rm -f conftest.err conftest.$ac_objext \
6464 conftest$ac_exeext conftest.$ac_ext
6465fi
6466echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6467echo "${ECHO_T}$ac_cv_func_shmat" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006468
6469 if test $ac_cv_func_shmat = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006470 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6471echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6472if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006474else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006475 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006476LIBS="-lipc $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006477cat >conftest.$ac_ext <<_ACEOF
6478/* confdefs.h. */
6479_ACEOF
6480cat confdefs.h >>conftest.$ac_ext
6481cat >>conftest.$ac_ext <<_ACEOF
6482/* end confdefs.h. */
6483
Bram Moolenaar071d4272004-06-13 20:20:40 +00006484/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006485#ifdef __cplusplus
6486extern "C"
6487#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006488/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006489 builtin and then its argument prototype would still apply. */
6490char shmat ();
6491int
6492main ()
6493{
6494shmat ();
6495 ;
6496 return 0;
6497}
6498_ACEOF
6499rm -f conftest.$ac_objext conftest$ac_exeext
6500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6501 (eval $ac_link) 2>conftest.er1
6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -z "$ac_c_werror_flag"
6509 || test ! -s conftest.err'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; } &&
6515 { ac_try='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 ac_cv_lib_ipc_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006522else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006523 echo "$as_me: failed program was:" >&5
6524sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006525
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006526ac_cv_lib_ipc_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006527fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006528rm -f conftest.err conftest.$ac_objext \
6529 conftest$ac_exeext conftest.$ac_ext
6530LIBS=$ac_check_lib_save_LIBS
6531fi
6532echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6533echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6534if test $ac_cv_lib_ipc_shmat = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006535 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006536fi
6537
6538 fi
6539 fi
6540
6541 # Check for libraries that X11R6 Xt/Xaw programs need.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006542 ac_save_LDFLAGS=$LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006543 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6544 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6545 # check for ICE first), but we must link in the order -lSM -lICE or
6546 # we get undefined symbols. So assume we have SM if we have ICE.
6547 # These have to be linked with before -lX11, unlike the other
6548 # libraries we check for below, so use a different variable.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006549 # John Interrante, Karl Berry
6550 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6551echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6552if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006554else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006555 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006556LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006557cat >conftest.$ac_ext <<_ACEOF
6558/* confdefs.h. */
6559_ACEOF
6560cat confdefs.h >>conftest.$ac_ext
6561cat >>conftest.$ac_ext <<_ACEOF
6562/* end confdefs.h. */
6563
Bram Moolenaar071d4272004-06-13 20:20:40 +00006564/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006565#ifdef __cplusplus
6566extern "C"
6567#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006568/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006569 builtin and then its argument prototype would still apply. */
6570char IceConnectionNumber ();
6571int
6572main ()
6573{
6574IceConnectionNumber ();
6575 ;
6576 return 0;
6577}
6578_ACEOF
6579rm -f conftest.$ac_objext conftest$ac_exeext
6580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag"
6589 || test ! -s conftest.err'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest$ac_exeext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 ac_cv_lib_ICE_IceConnectionNumber=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006602else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006603 echo "$as_me: failed program was:" >&5
6604sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006605
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006606ac_cv_lib_ICE_IceConnectionNumber=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006607fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006608rm -f conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6610LIBS=$ac_check_lib_save_LIBS
6611fi
6612echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6613echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6614if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006615 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006616fi
6617
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006618 LDFLAGS=$ac_save_LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006619
6620fi
6621
6622
6623 if test "$OS390Unix" = "yes"; then
6624 CFLAGS="$CFLAGS -W c,dll"
6625 LDFLAGS="$LDFLAGS -W l,dll"
6626 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6627 fi
6628
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006629
Bram Moolenaar071d4272004-06-13 20:20:40 +00006630 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6631 x_libraries=`echo "$x_includes" | sed s/include/lib/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006632 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6633echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006634 X_LIBS="$X_LIBS -L$x_libraries"
6635 if test "`(uname) 2>/dev/null`" = SunOS &&
6636 uname -r | grep '^5' >/dev/null; then
6637 X_LIBS="$X_LIBS -R $x_libraries"
6638 fi
6639 fi
6640
6641 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6642 x_includes=`echo "$x_libraries" | sed s/lib/include/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006643 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6644echo "${ECHO_T}Corrected X includes to $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006645 X_CFLAGS="$X_CFLAGS -I$x_includes"
6646 fi
6647
6648 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6649 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6650 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6651
6652
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006653 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6654echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006655 cflags_save=$CFLAGS
6656 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006657 cat >conftest.$ac_ext <<_ACEOF
6658/* confdefs.h. */
6659_ACEOF
6660cat confdefs.h >>conftest.$ac_ext
6661cat >>conftest.$ac_ext <<_ACEOF
6662/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006663#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006664int
6665main ()
6666{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006667
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006668 ;
6669 return 0;
6670}
6671_ACEOF
6672rm -f conftest.$ac_objext
6673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674 (eval $ac_compile) 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } &&
6681 { ac_try='test -z "$ac_c_werror_flag"
6682 || test ! -s conftest.err'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 echo "$as_me:$LINENO: result: yes" >&5
6695echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006696else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006697 echo "$as_me: failed program was:" >&5
6698sed 's/^/| /' conftest.$ac_ext >&5
6699
6700echo "$as_me:$LINENO: result: no" >&5
6701echo "${ECHO_T}no" >&6; no_x=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006702fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006704 CFLAGS=$cflags_save
6705
6706 if test "${no_x-no}" = yes; then
6707 with_x=no
6708 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006709 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006710#define HAVE_X11 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006711_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006712
6713 X_LIB="-lXt -lX11";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006714
Bram Moolenaar071d4272004-06-13 20:20:40 +00006715
6716 ac_save_LDFLAGS="$LDFLAGS"
6717 LDFLAGS="-L$x_libraries $LDFLAGS"
6718
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006719 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6720echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6721if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006723else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006724 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006725LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006726cat >conftest.$ac_ext <<_ACEOF
6727/* confdefs.h. */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
6731/* end confdefs.h. */
6732
Bram Moolenaar071d4272004-06-13 20:20:40 +00006733/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006734#ifdef __cplusplus
6735extern "C"
6736#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006737/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006738 builtin and then its argument prototype would still apply. */
6739char _XdmcpAuthDoIt ();
6740int
6741main ()
6742{
6743_XdmcpAuthDoIt ();
6744 ;
6745 return 0;
6746}
6747_ACEOF
6748rm -f conftest.$ac_objext conftest$ac_exeext
6749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 (eval $ac_link) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag"
6758 || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest$ac_exeext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006771else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006772 echo "$as_me: failed program was:" >&5
6773sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006774
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006775ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006776fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006777rm -f conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779LIBS=$ac_check_lib_save_LIBS
6780fi
6781echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6782echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6783if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006784 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006785fi
6786
6787
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006788 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6789echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6790if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006792else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006793 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006794LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006795cat >conftest.$ac_ext <<_ACEOF
6796/* confdefs.h. */
6797_ACEOF
6798cat confdefs.h >>conftest.$ac_ext
6799cat >>conftest.$ac_ext <<_ACEOF
6800/* end confdefs.h. */
6801
Bram Moolenaar071d4272004-06-13 20:20:40 +00006802/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006803#ifdef __cplusplus
6804extern "C"
6805#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006806/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006807 builtin and then its argument prototype would still apply. */
6808char IceOpenConnection ();
6809int
6810main ()
6811{
6812IceOpenConnection ();
6813 ;
6814 return 0;
6815}
6816_ACEOF
6817rm -f conftest.$ac_objext conftest$ac_exeext
6818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819 (eval $ac_link) 2>conftest.er1
6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -z "$ac_c_werror_flag"
6827 || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try='test -s conftest$ac_exeext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 ac_cv_lib_ICE_IceOpenConnection=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006840else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006841 echo "$as_me: failed program was:" >&5
6842sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006843
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006844ac_cv_lib_ICE_IceOpenConnection=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006845fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006846rm -f conftest.err conftest.$ac_objext \
6847 conftest$ac_exeext conftest.$ac_ext
6848LIBS=$ac_check_lib_save_LIBS
6849fi
6850echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6851echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6852if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006853 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006854fi
6855
6856
6857 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006858 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6859echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6860if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006862else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006863 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006864LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006865cat >conftest.$ac_ext <<_ACEOF
6866/* confdefs.h. */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h. */
6871
Bram Moolenaar071d4272004-06-13 20:20:40 +00006872/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006873#ifdef __cplusplus
6874extern "C"
6875#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006876/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006877 builtin and then its argument prototype would still apply. */
6878char XpmCreatePixmapFromData ();
6879int
6880main ()
6881{
6882XpmCreatePixmapFromData ();
6883 ;
6884 return 0;
6885}
6886_ACEOF
6887rm -f conftest.$ac_objext conftest$ac_exeext
6888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>conftest.er1
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006910else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006911 echo "$as_me: failed program was:" >&5
6912sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006913
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006914ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006915fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006916rm -f conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918LIBS=$ac_check_lib_save_LIBS
6919fi
6920echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6921echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6922if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006923 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006924fi
6925
6926
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006927 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6928echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006929 cflags_save=$CFLAGS
6930 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006931 cat >conftest.$ac_ext <<_ACEOF
6932/* confdefs.h. */
6933_ACEOF
6934cat confdefs.h >>conftest.$ac_ext
6935cat >>conftest.$ac_ext <<_ACEOF
6936/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006937#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006938int
6939main ()
6940{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006941
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006942 ;
6943 return 0;
6944}
6945_ACEOF
6946rm -f conftest.$ac_objext
6947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948 (eval $ac_compile) 2>conftest.er1
6949 ac_status=$?
6950 grep -v '^ *+' conftest.er1 >conftest.err
6951 rm -f conftest.er1
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try='test -z "$ac_c_werror_flag"
6956 || test ! -s conftest.err'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; } &&
6962 { ac_try='test -s conftest.$ac_objext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 (eval $ac_try) 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006970else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006971 echo "$as_me: failed program was:" >&5
6972sed 's/^/| /' conftest.$ac_ext >&5
6973
6974CFLAGS="$CFLAGS -Wno-implicit-int"
6975 cat >conftest.$ac_ext <<_ACEOF
6976/* confdefs.h. */
6977_ACEOF
6978cat confdefs.h >>conftest.$ac_ext
6979cat >>conftest.$ac_ext <<_ACEOF
6980/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006981#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006982int
6983main ()
6984{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006985
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006986 ;
6987 return 0;
6988}
6989_ACEOF
6990rm -f conftest.$ac_objext
6991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6992 (eval $ac_compile) 2>conftest.er1
6993 ac_status=$?
6994 grep -v '^ *+' conftest.er1 >conftest.err
6995 rm -f conftest.er1
6996 cat conftest.err >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } &&
6999 { ac_try='test -z "$ac_c_werror_flag"
7000 || test ! -s conftest.err'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; } &&
7006 { ac_try='test -s conftest.$ac_objext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7012 echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007014else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007015 echo "$as_me: failed program was:" >&5
7016sed 's/^/| /' conftest.$ac_ext >&5
7017
7018echo "$as_me:$LINENO: result: test failed" >&5
7019echo "${ECHO_T}test failed" >&6
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
7023
Bram Moolenaar071d4272004-06-13 20:20:40 +00007024fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00007026 CFLAGS=$cflags_save
7027
7028 LDFLAGS="$ac_save_LDFLAGS"
7029
7030 fi
7031fi
7032
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00007033test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00007034
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007035echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7036echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007037# Check whether --enable-gui or --disable-gui was given.
7038if test "${enable_gui+set}" = set; then
7039 enableval="$enable_gui"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007040
Bram Moolenaar071d4272004-06-13 20:20:40 +00007041else
7042 enable_gui="auto"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007043fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007044
7045enable_gui_canon=`echo "_$enable_gui" | \
7046 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7047
7048SKIP_GTK=YES
7049SKIP_GTK2=YES
7050SKIP_GNOME=YES
7051SKIP_MOTIF=YES
7052SKIP_ATHENA=YES
7053SKIP_NEXTAW=YES
7054SKIP_PHOTON=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00007055SKIP_CARBON=YES
7056GUITYPE=NONE
7057
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007058if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007059 SKIP_PHOTON=
7060 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007061 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7062echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007063 SKIP_PHOTON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007064 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7065echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7066 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7067echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7068 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
7069echo "${ECHO_T}Photon GUI support" >&6 ;;
7070 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7071echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007072 SKIP_PHOTON=YES ;;
7073 esac
7074
7075elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7076 SKIP_CARBON=
7077 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007078 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7079echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007080 SKIP_CARBON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007081 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7082echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7083 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7084echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7085 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7086echo "${ECHO_T}Carbon GUI support" >&6 ;;
7087 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7088echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007089 SKIP_CARBON=YES ;;
7090 esac
7091
7092else
7093
Bram Moolenaar071d4272004-06-13 20:20:40 +00007094 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007095 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
7096echo "${ECHO_T}no GUI support" >&6 ;;
7097 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7098echo "${ECHO_T}yes/auto - automatic GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007099 SKIP_GTK=
7100 SKIP_GTK2=
7101 SKIP_GNOME=
7102 SKIP_MOTIF=
7103 SKIP_ATHENA=
7104 SKIP_NEXTAW=
7105 SKIP_CARBON=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007106 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7107echo "${ECHO_T}GTK+ 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007108 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007109 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7110echo "${ECHO_T}GTK+ 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007111 SKIP_GTK=
7112 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007113 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7114echo "${ECHO_T}GNOME 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007115 SKIP_GNOME=
7116 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007117 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7118echo "${ECHO_T}GNOME 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007119 SKIP_GNOME=
7120 SKIP_GTK=
7121 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007122 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
7123echo "${ECHO_T}Motif GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007124 SKIP_MOTIF=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007125 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7126echo "${ECHO_T}Athena GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007127 SKIP_ATHENA=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007128 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7129echo "${ECHO_T}neXtaw GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007130 SKIP_NEXTAW=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007131 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7132echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007133 esac
7134
7135fi
7136
7137if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007138 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7139echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007140 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7141if test "${enable_gtk_check+set}" = set; then
7142 enableval="$enable_gtk_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007143
Bram Moolenaar071d4272004-06-13 20:20:40 +00007144else
7145 enable_gtk_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007146fi;
7147 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7148echo "${ECHO_T}$enable_gtk_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007149 if test "x$enable_gtk_check" = "xno"; then
7150 SKIP_GTK=YES
7151 SKIP_GNOME=YES
7152 fi
7153fi
7154
7155if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7156 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007157 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7158echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007159 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7160if test "${enable_gtk2_check+set}" = set; then
7161 enableval="$enable_gtk2_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007162
Bram Moolenaar071d4272004-06-13 20:20:40 +00007163else
7164 enable_gtk2_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007165fi;
7166 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7167echo "${ECHO_T}$enable_gtk2_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007168 if test "x$enable_gtk2_check" = "xno"; then
7169 SKIP_GTK2=YES
7170 fi
7171fi
7172
7173if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7174 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007175 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7176echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007177 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7178if test "${enable_gnome_check+set}" = set; then
7179 enableval="$enable_gnome_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007180
Bram Moolenaar071d4272004-06-13 20:20:40 +00007181else
7182 enable_gnome_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007183fi;
7184 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7185echo "${ECHO_T}$enable_gnome_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007186 if test "x$enable_gnome_check" = "xno"; then
7187 SKIP_GNOME=YES
7188 fi
7189fi
7190
7191if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007192 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7193echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007194 # Check whether --enable-motif-check or --disable-motif-check was given.
7195if test "${enable_motif_check+set}" = set; then
7196 enableval="$enable_motif_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007197
Bram Moolenaar071d4272004-06-13 20:20:40 +00007198else
7199 enable_motif_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007200fi;
7201 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7202echo "${ECHO_T}$enable_motif_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007203 if test "x$enable_motif_check" = "xno"; then
7204 SKIP_MOTIF=YES
7205 fi
7206fi
7207
7208if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007209 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7210echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007211 # Check whether --enable-athena-check or --disable-athena-check was given.
7212if test "${enable_athena_check+set}" = set; then
7213 enableval="$enable_athena_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007214
Bram Moolenaar071d4272004-06-13 20:20:40 +00007215else
7216 enable_athena_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007217fi;
7218 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7219echo "${ECHO_T}$enable_athena_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007220 if test "x$enable_athena_check" = "xno"; then
7221 SKIP_ATHENA=YES
7222 fi
7223fi
7224
7225if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007226 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7227echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007228 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7229if test "${enable_nextaw_check+set}" = set; then
7230 enableval="$enable_nextaw_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007231
Bram Moolenaar071d4272004-06-13 20:20:40 +00007232else
7233 enable_nextaw_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007234fi;
7235 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7236echo "${ECHO_T}$enable_nextaw_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007237 if test "x$enable_nextaw_check" = "xno"; then
7238 SKIP_NEXTAW=YES
7239 fi
7240fi
7241
7242if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007243 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7244echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007245 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7246if test "${enable_carbon_check+set}" = set; then
7247 enableval="$enable_carbon_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007248
Bram Moolenaar071d4272004-06-13 20:20:40 +00007249else
7250 enable_carbon_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007251fi;
7252 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7253echo "${ECHO_T}$enable_carbon_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007254 if test "x$enable_carbon_check" = "xno"; then
7255 SKIP_CARBON=YES
7256 fi
7257fi
7258
Bram Moolenaar843ee412004-06-30 16:16:41 +00007259
Bram Moolenaar071d4272004-06-13 20:20:40 +00007260if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007261 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7262echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7263 echo "$as_me:$LINENO: result: yes" >&5
7264echo "${ECHO_T}yes" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007265 GUITYPE=CARBONGUI
Bram Moolenaare344bea2005-09-01 20:46:49 +00007266 if test "$VIMNAME" = "vim"; then
7267 VIMNAME=Vim
7268 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007269 SKIP_GTK=YES;
7270 SKIP_GTK2=YES;
7271 SKIP_GNOME=YES;
7272 SKIP_MOTIF=YES;
7273 SKIP_ATHENA=YES;
7274 SKIP_NEXTAW=YES;
7275 SKIP_PHOTON=YES;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007276 SKIP_CARBON=YES
7277fi
7278
7279
7280
7281
7282
7283
7284
7285
7286
Bram Moolenaar071d4272004-06-13 20:20:40 +00007287if test -z "$SKIP_GTK"; then
7288
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007289 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7290echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7291
7292# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007293if test "${with_gtk_prefix+set}" = set; then
7294 withval="$with_gtk_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007295 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7296echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007297else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007298 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6
7300fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007301
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007302 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7303echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007304
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007305# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007306if test "${with_gtk_exec_prefix+set}" = set; then
7307 withval="$with_gtk_exec_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007308 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7309echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007310else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007311 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7312echo "${ECHO_T}no" >&6
7313fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007314
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007315 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7316echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007317 # Check whether --enable-gtktest or --disable-gtktest was given.
7318if test "${enable_gtktest+set}" = set; then
7319 enableval="$enable_gtktest"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007320
Bram Moolenaar071d4272004-06-13 20:20:40 +00007321else
7322 enable_gtktest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007323fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007324 if test "x$enable_gtktest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007325 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7326echo "${ECHO_T}gtk test enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007327 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007328 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7329echo "${ECHO_T}gtk test disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007330 fi
7331
7332 if test "x$gtk_config_prefix" != "x" ; then
7333 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7334 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7335 fi
7336 if test "x$gtk_config_exec_prefix" != "x" ; then
7337 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7338 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7339 fi
7340 if test "X$GTK_CONFIG" = "X"; then
7341 # Extract the first word of "gtk-config", so it can be a program name with args.
7342set dummy gtk-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007343echo "$as_me:$LINENO: checking for $ac_word" >&5
7344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7345if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007347else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007348 case $GTK_CONFIG in
7349 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007350 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7351 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007352 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364done
7365done
7366
Bram Moolenaar071d4272004-06-13 20:20:40 +00007367 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7368 ;;
7369esac
7370fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007371GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7372
Bram Moolenaar071d4272004-06-13 20:20:40 +00007373if test -n "$GTK_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007374 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7375echo "${ECHO_T}$GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007376else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007377 echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007379fi
7380
7381 if test "X$GTK_CONFIG" = "Xno"; then
7382 # Extract the first word of "gtk12-config", so it can be a program name with args.
7383set dummy gtk12-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007384echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007388else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007389 case $GTK12_CONFIG in
7390 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007391 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7392 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007393 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405done
7406done
7407
Bram Moolenaar071d4272004-06-13 20:20:40 +00007408 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7409 ;;
7410esac
7411fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007412GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7413
Bram Moolenaar071d4272004-06-13 20:20:40 +00007414if test -n "$GTK12_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007415 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7416echo "${ECHO_T}$GTK12_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007417else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007420fi
7421
7422 GTK_CONFIG="$GTK12_CONFIG"
7423 fi
7424 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007425 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7426echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007427 fi
7428 if test "X$PKG_CONFIG" = "X"; then
7429 # Extract the first word of "pkg-config", so it can be a program name with args.
7430set dummy pkg-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007431echo "$as_me:$LINENO: checking for $ac_word" >&5
7432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7433if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007435else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007436 case $PKG_CONFIG in
7437 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7439 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007440 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452done
7453done
7454
Bram Moolenaar071d4272004-06-13 20:20:40 +00007455 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7456 ;;
7457esac
7458fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007459PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7460
Bram Moolenaar071d4272004-06-13 20:20:40 +00007461if test -n "$PKG_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007462 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7463echo "${ECHO_T}$PKG_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007464else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007465 echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007467fi
7468
7469 fi
7470
7471 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7472 if test "X$SKIP_GTK2" != "XYES"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007473
Bram Moolenaar071d4272004-06-13 20:20:40 +00007474 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7475 {
7476 min_gtk_version=2.2.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007477 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7478echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007479 no_gtk=""
7480 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7481 && $PKG_CONFIG --exists gtk+-2.0; then
7482 {
7483 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007484 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007485 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7486 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7487 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7488 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7489 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7490 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7491 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7492 }
7493 elif test "X$GTK_CONFIG" != "Xno"; then
7494 {
7495 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007496 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007497 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7498 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7499 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7500 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7501 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7502 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7503 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7504 }
7505 else
7506 no_gtk=yes
7507 fi
7508
7509 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7510 {
7511 ac_save_CFLAGS="$CFLAGS"
7512 ac_save_LIBS="$LIBS"
7513 CFLAGS="$CFLAGS $GTK_CFLAGS"
7514 LIBS="$LIBS $GTK_LIBS"
7515
7516 rm -f conf.gtktest
7517 if test "$cross_compiling" = yes; then
7518 echo $ac_n "cross compiling; assumed OK... $ac_c"
7519else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007520 cat >conftest.$ac_ext <<_ACEOF
7521/* confdefs.h. */
7522_ACEOF
7523cat confdefs.h >>conftest.$ac_ext
7524cat >>conftest.$ac_ext <<_ACEOF
7525/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007526
7527#include <gtk/gtk.h>
7528#include <stdio.h>
7529
7530int
7531main ()
7532{
7533int major, minor, micro;
7534char *tmp_version;
7535
7536system ("touch conf.gtktest");
7537
7538/* HP/UX 9 (%@#!) writes to sscanf strings */
7539tmp_version = g_strdup("$min_gtk_version");
7540if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7541 printf("%s, bad version string\n", "$min_gtk_version");
7542 exit(1);
7543 }
7544
7545if ((gtk_major_version > major) ||
7546 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7547 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7548 (gtk_micro_version >= micro)))
7549{
7550 return 0;
7551}
7552return 1;
7553}
7554
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007555_ACEOF
7556rm -f conftest$ac_exeext
7557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7558 (eval $ac_link) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 (eval $ac_try) 2>&5
7564 ac_status=$?
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007567 :
7568else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007569 echo "$as_me: program exited with status $ac_status" >&5
7570echo "$as_me: failed program was:" >&5
7571sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007572
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007573( exit $ac_status )
7574no_gtk=yes
7575fi
7576rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7577fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007578 CFLAGS="$ac_save_CFLAGS"
7579 LIBS="$ac_save_LIBS"
7580 }
7581 fi
7582 if test "x$no_gtk" = x ; then
7583 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007584 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7585echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007586 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007587 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7588echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007589 fi
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007590 GUI_LIB_LOC="$GTK_LIBDIR"
7591 GTK_LIBNAME="$GTK_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007592 GUI_INC_LOC="$GTK_CFLAGS"
7593 else
7594 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007595 echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007597 GTK_CFLAGS=""
7598 GTK_LIBS=""
7599 :
7600 }
7601 fi
7602 }
7603 else
7604 GTK_CFLAGS=""
7605 GTK_LIBS=""
7606 :
7607 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007608
7609
Bram Moolenaar071d4272004-06-13 20:20:40 +00007610 rm -f conf.gtktest
7611
7612 if test "x$GTK_CFLAGS" != "x"; then
7613 SKIP_ATHENA=YES
7614 SKIP_NEXTAW=YES
7615 SKIP_MOTIF=YES
7616 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007617
Bram Moolenaar071d4272004-06-13 20:20:40 +00007618 fi
7619 fi
7620
7621 if test "x$GUITYPE" != "xGTK"; then
7622 SKIP_GTK2=YES
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007623
Bram Moolenaar071d4272004-06-13 20:20:40 +00007624 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7625 {
7626 min_gtk_version=1.1.16
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007627 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7628echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007629 no_gtk=""
7630 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7631 && $PKG_CONFIG --exists gtk+-2.0; then
7632 {
7633 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007634 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007635 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7636 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7637 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7638 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7639 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7640 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7641 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7642 }
7643 elif test "X$GTK_CONFIG" != "Xno"; then
7644 {
7645 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007646 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007647 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7648 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7649 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7650 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7651 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7652 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7653 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7654 }
7655 else
7656 no_gtk=yes
7657 fi
7658
7659 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7660 {
7661 ac_save_CFLAGS="$CFLAGS"
7662 ac_save_LIBS="$LIBS"
7663 CFLAGS="$CFLAGS $GTK_CFLAGS"
7664 LIBS="$LIBS $GTK_LIBS"
7665
7666 rm -f conf.gtktest
7667 if test "$cross_compiling" = yes; then
7668 echo $ac_n "cross compiling; assumed OK... $ac_c"
7669else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007670 cat >conftest.$ac_ext <<_ACEOF
7671/* confdefs.h. */
7672_ACEOF
7673cat confdefs.h >>conftest.$ac_ext
7674cat >>conftest.$ac_ext <<_ACEOF
7675/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007676
7677#include <gtk/gtk.h>
7678#include <stdio.h>
7679
7680int
7681main ()
7682{
7683int major, minor, micro;
7684char *tmp_version;
7685
7686system ("touch conf.gtktest");
7687
7688/* HP/UX 9 (%@#!) writes to sscanf strings */
7689tmp_version = g_strdup("$min_gtk_version");
7690if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7691 printf("%s, bad version string\n", "$min_gtk_version");
7692 exit(1);
7693 }
7694
7695if ((gtk_major_version > major) ||
7696 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7697 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7698 (gtk_micro_version >= micro)))
7699{
7700 return 0;
7701}
7702return 1;
7703}
7704
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007705_ACEOF
7706rm -f conftest$ac_exeext
7707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708 (eval $ac_link) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007717 :
7718else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007719 echo "$as_me: program exited with status $ac_status" >&5
7720echo "$as_me: failed program was:" >&5
7721sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007722
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007723( exit $ac_status )
7724no_gtk=yes
7725fi
7726rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7727fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007728 CFLAGS="$ac_save_CFLAGS"
7729 LIBS="$ac_save_LIBS"
7730 }
7731 fi
7732 if test "x$no_gtk" = x ; then
7733 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007734 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7735echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007736 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007737 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7738echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007739 fi
7740 GTK_LIBNAME="$GTK_LIBS"
7741 GUI_INC_LOC="$GTK_CFLAGS"
7742 else
7743 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007744 echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007746 GTK_CFLAGS=""
7747 GTK_LIBS=""
7748 :
7749 }
7750 fi
7751 }
7752 else
7753 GTK_CFLAGS=""
7754 GTK_LIBS=""
7755 :
7756 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007757
7758
Bram Moolenaar071d4272004-06-13 20:20:40 +00007759 rm -f conf.gtktest
7760
7761 if test "x$GTK_CFLAGS" != "x"; then
7762 SKIP_ATHENA=YES
7763 SKIP_NEXTAW=YES
7764 SKIP_MOTIF=YES
7765 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007766
Bram Moolenaar071d4272004-06-13 20:20:40 +00007767 fi
7768 fi
7769 fi
7770 if test "x$GUITYPE" = "xGTK"; then
7771 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7772 -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 +00007773 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7774echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007775 else
7776 {
7777 if test "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007778 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007779#define HAVE_GTK2 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007780_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007781
7782 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7783 || test "0$gtk_minor_version" -ge 2 \
7784 || test "0$gtk_major_version" -gt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007785 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007786#define HAVE_GTK_MULTIHEAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007787_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007788
7789 fi
7790 fi
7791 if test -z "$SKIP_GNOME"; then
7792 {
Bram Moolenaar071d4272004-06-13 20:20:40 +00007793
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007794
7795
7796
7797
7798
7799# Check whether --with-gnome-includes or --without-gnome-includes was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007800if test "${with_gnome_includes+set}" = set; then
7801 withval="$with_gnome_includes"
7802 CFLAGS="$CFLAGS -I$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007803
7804fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007805
7806
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007807# Check whether --with-gnome-libs or --without-gnome-libs was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007808if test "${with_gnome_libs+set}" = set; then
7809 withval="$with_gnome_libs"
7810 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007811
7812fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007813
7814
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007815# Check whether --with-gnome or --without-gnome was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007816if test "${with_gnome+set}" = set; then
7817 withval="$with_gnome"
7818 if test x$withval = xyes; then
7819 want_gnome=yes
7820 have_gnome=yes
7821 else
7822 if test "x$withval" = xno; then
7823 want_gnome=no
7824 else
7825 want_gnome=yes
7826 LDFLAGS="$LDFLAGS -L$withval/lib"
7827 CFLAGS="$CFLAGS -I$withval/include"
7828 gnome_prefix=$withval/lib
7829 fi
7830 fi
7831else
7832 want_gnome=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007833fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007834
7835 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7836 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007837 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7838echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007839 if $PKG_CONFIG --exists libgnomeui-2.0; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007840 echo "$as_me:$LINENO: result: yes" >&5
7841echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007842 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7843 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7844 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
Bram Moolenaar97b2ad32006-03-18 21:40:56 +00007845
7846 echo "$as_me:$LINENO: checking for FreeBSD" >&5
7847echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7848 if test "`(uname) 2>/dev/null`" = FreeBSD; then
7849 echo "$as_me:$LINENO: result: yes" >&5
7850echo "${ECHO_T}yes" >&6
7851 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
7852 GNOME_LIBS="$GNOME_LIBS -pthread"
7853 else
7854 echo "$as_me:$LINENO: result: no" >&5
7855echo "${ECHO_T}no" >&6
7856 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007857 have_gnome=yes
7858 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007859 echo "$as_me:$LINENO: result: not found" >&5
7860echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007861 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007862 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7863echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7864 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007865 fi
7866 fi
7867 }
7868 elif test "x$want_gnome" = xyes; then
7869 {
7870 # Extract the first word of "gnome-config", so it can be a program name with args.
7871set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007872echo "$as_me:$LINENO: checking for $ac_word" >&5
7873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7874if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007876else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007877 case $GNOME_CONFIG in
7878 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007879 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7880 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007881 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH
7884do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893done
7894done
7895
Bram Moolenaar071d4272004-06-13 20:20:40 +00007896 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7897 ;;
7898esac
7899fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007900GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7901
Bram Moolenaar071d4272004-06-13 20:20:40 +00007902if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007903 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7904echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007905else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007908fi
7909
7910 if test "$GNOME_CONFIG" = "no"; then
7911 no_gnome_config="yes"
7912 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007913 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7914echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007915 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007916 echo "$as_me:$LINENO: result: yes" >&5
7917echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007918 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7919 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7920 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7921 have_gnome=yes
7922 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007925 no_gnome_config="yes"
7926 fi
7927 fi
7928
7929 if test x$exec_prefix = xNONE; then
7930 if test x$prefix = xNONE; then
7931 gnome_prefix=$ac_default_prefix/lib
7932 else
7933 gnome_prefix=$prefix/lib
7934 fi
7935 else
7936 gnome_prefix=`eval echo \`echo $libdir\``
7937 fi
7938
7939 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007940 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7941echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007942 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007943 echo "$as_me:$LINENO: result: found" >&5
7944echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007945 echo "loading gnome configuration from" \
7946 "$gnome_prefix/gnomeConf.sh"
7947 . $gnome_prefix/gnomeConf.sh
7948 have_gnome=yes
7949 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007950 echo "$as_me:$LINENO: result: not found" >&5
7951echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007952 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007953 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7954echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7955 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007956 fi
7957 fi
7958 fi
7959 }
7960 fi
7961
7962 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007963 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007964#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007965_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007966
7967 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7968 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7969 fi
7970 }
7971 fi
7972 }
7973 fi
7974 fi
7975fi
7976
7977
7978if test -z "$SKIP_MOTIF"; then
7979 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"
7980 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7981
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007982 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7983echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007984 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7985 GUI_INC_LOC=
7986 for try in $gui_includes; do
7987 if test -f "$try/Xm/Xm.h"; then
7988 GUI_INC_LOC=$try
7989 fi
7990 done
7991 if test -n "$GUI_INC_LOC"; then
7992 if test "$GUI_INC_LOC" = /usr/include; then
7993 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007994 echo "$as_me:$LINENO: result: in default path" >&5
7995echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007996 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007997 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
7998echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007999 fi
8000 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008001 echo "$as_me:$LINENO: result: <not found>" >&5
8002echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008003 SKIP_MOTIF=YES
8004 fi
8005fi
8006
8007
8008if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008009 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8010echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8011
8012# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008013if test "${with_motif_lib+set}" = set; then
8014 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008015 MOTIF_LIBNAME="${withval}"
8016fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008017
8018 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008019 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8020echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008021 GUI_LIB_LOC=
8022 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008023 echo "$as_me:$LINENO: result: no" >&5
8024echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008025
8026 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8027
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008028 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8029echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008030 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"
8031 GUI_LIB_LOC=
8032 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008033 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00008034 if test -f "$libtry"; then
8035 GUI_LIB_LOC=$try
8036 fi
8037 done
8038 done
8039 if test -n "$GUI_LIB_LOC"; then
8040 if test "$GUI_LIB_LOC" = /usr/lib; then
8041 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008042 echo "$as_me:$LINENO: result: in default path" >&5
8043echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008044 else
8045 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008046 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8047echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008048 if test "`(uname) 2>/dev/null`" = SunOS &&
8049 uname -r | grep '^5' >/dev/null; then
8050 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8051 fi
8052 fi
8053 fi
8054 MOTIF_LIBNAME=-lXm
8055 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008056 echo "$as_me:$LINENO: result: <not found>" >&5
8057echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008058 SKIP_MOTIF=YES
8059 fi
8060 fi
8061fi
8062
8063if test -z "$SKIP_MOTIF"; then
8064 SKIP_ATHENA=YES
8065 SKIP_NEXTAW=YES
8066 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008067
Bram Moolenaar071d4272004-06-13 20:20:40 +00008068fi
8069
8070
8071GUI_X_LIBS=
8072
8073if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008074 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8075echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008076 cflags_save=$CFLAGS
8077 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008078 cat >conftest.$ac_ext <<_ACEOF
8079/* confdefs.h. */
8080_ACEOF
8081cat confdefs.h >>conftest.$ac_ext
8082cat >>conftest.$ac_ext <<_ACEOF
8083/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008084
8085#include <X11/Intrinsic.h>
8086#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008087int
8088main ()
8089{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008090
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008091 ;
8092 return 0;
8093}
8094_ACEOF
8095rm -f conftest.$ac_objext
8096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8097 (eval $ac_compile) 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -z "$ac_c_werror_flag"
8105 || test ! -s conftest.err'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 (eval $ac_try) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest.$ac_objext'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 (eval $ac_try) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8117 echo "$as_me:$LINENO: result: yes" >&5
8118echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008119else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008120 echo "$as_me: failed program was:" >&5
8121sed 's/^/| /' conftest.$ac_ext >&5
8122
8123echo "$as_me:$LINENO: result: no" >&5
8124echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008125fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008127 CFLAGS=$cflags_save
8128fi
8129
8130if test -z "$SKIP_ATHENA"; then
8131 GUITYPE=ATHENA
8132fi
8133
8134if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008135 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8136echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008137 cflags_save=$CFLAGS
8138 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008139 cat >conftest.$ac_ext <<_ACEOF
8140/* confdefs.h. */
8141_ACEOF
8142cat confdefs.h >>conftest.$ac_ext
8143cat >>conftest.$ac_ext <<_ACEOF
8144/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008145
8146#include <X11/Intrinsic.h>
8147#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008148int
8149main ()
8150{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008151
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008152 ;
8153 return 0;
8154}
8155_ACEOF
8156rm -f conftest.$ac_objext
8157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8158 (eval $ac_compile) 2>conftest.er1
8159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } &&
8165 { ac_try='test -z "$ac_c_werror_flag"
8166 || test ! -s conftest.err'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; } &&
8172 { ac_try='test -s conftest.$ac_objext'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 (eval $ac_try) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; }; then
8178 echo "$as_me:$LINENO: result: yes" >&5
8179echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008180else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008181 echo "$as_me: failed program was:" >&5
8182sed 's/^/| /' conftest.$ac_ext >&5
8183
8184echo "$as_me:$LINENO: result: no" >&5
8185echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008186fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008188 CFLAGS=$cflags_save
8189fi
8190
8191if test -z "$SKIP_NEXTAW"; then
8192 GUITYPE=NEXTAW
8193fi
8194
8195if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8196 if test -n "$GUI_INC_LOC"; then
8197 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8198 fi
8199 if test -n "$GUI_LIB_LOC"; then
8200 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8201 fi
8202
8203 ldflags_save=$LDFLAGS
8204 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008205 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8206echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8207if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008209else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008210 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008211LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008212cat >conftest.$ac_ext <<_ACEOF
8213/* confdefs.h. */
8214_ACEOF
8215cat confdefs.h >>conftest.$ac_ext
8216cat >>conftest.$ac_ext <<_ACEOF
8217/* end confdefs.h. */
8218
Bram Moolenaar071d4272004-06-13 20:20:40 +00008219/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008220#ifdef __cplusplus
8221extern "C"
8222#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008223/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008224 builtin and then its argument prototype would still apply. */
8225char XShapeQueryExtension ();
8226int
8227main ()
8228{
8229XShapeQueryExtension ();
8230 ;
8231 return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext conftest$ac_exeext
8235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -z "$ac_c_werror_flag"
8244 || test ! -s conftest.err'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 (eval $ac_try) 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008257else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008258 echo "$as_me: failed program was:" >&5
8259sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008260
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008261ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008262fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008263rm -f conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8265LIBS=$ac_check_lib_save_LIBS
8266fi
8267echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8268echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8269if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008270 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008271fi
8272
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008273 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8274echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8275if test "${ac_cv_lib_w_wslen+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008277else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008278 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008279LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008280cat >conftest.$ac_ext <<_ACEOF
8281/* confdefs.h. */
8282_ACEOF
8283cat confdefs.h >>conftest.$ac_ext
8284cat >>conftest.$ac_ext <<_ACEOF
8285/* end confdefs.h. */
8286
Bram Moolenaar071d4272004-06-13 20:20:40 +00008287/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008288#ifdef __cplusplus
8289extern "C"
8290#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008291/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008292 builtin and then its argument prototype would still apply. */
8293char wslen ();
8294int
8295main ()
8296{
8297wslen ();
8298 ;
8299 return 0;
8300}
8301_ACEOF
8302rm -f conftest.$ac_objext conftest$ac_exeext
8303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304 (eval $ac_link) 2>conftest.er1
8305 ac_status=$?
8306 grep -v '^ *+' conftest.er1 >conftest.err
8307 rm -f conftest.er1
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -z "$ac_c_werror_flag"
8312 || test ! -s conftest.err'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; } &&
8318 { ac_try='test -s conftest$ac_exeext'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008325else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008326 echo "$as_me: failed program was:" >&5
8327sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008328
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008329ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008330fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008331rm -f conftest.err conftest.$ac_objext \
8332 conftest$ac_exeext conftest.$ac_ext
8333LIBS=$ac_check_lib_save_LIBS
8334fi
8335echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8336echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8337if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008338 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008339fi
8340
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008341 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8342echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8343if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008345else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008346 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008347LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008348cat >conftest.$ac_ext <<_ACEOF
8349/* confdefs.h. */
8350_ACEOF
8351cat confdefs.h >>conftest.$ac_ext
8352cat >>conftest.$ac_ext <<_ACEOF
8353/* end confdefs.h. */
8354
Bram Moolenaar071d4272004-06-13 20:20:40 +00008355/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008356#ifdef __cplusplus
8357extern "C"
8358#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008359/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008360 builtin and then its argument prototype would still apply. */
8361char dlsym ();
8362int
8363main ()
8364{
8365dlsym ();
8366 ;
8367 return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext conftest$ac_exeext
8371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>conftest.er1
8373 ac_status=$?
8374 grep -v '^ *+' conftest.er1 >conftest.err
8375 rm -f conftest.er1
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try='test -z "$ac_c_werror_flag"
8380 || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 (eval $ac_try) 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try='test -s conftest$ac_exeext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008393else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008394 echo "$as_me: failed program was:" >&5
8395sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008396
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008397ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008398fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008399rm -f conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401LIBS=$ac_check_lib_save_LIBS
8402fi
8403echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8404echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8405if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008406 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008407fi
8408
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008409 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8410echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8411if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008413else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008414 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008415LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008416cat >conftest.$ac_ext <<_ACEOF
8417/* confdefs.h. */
8418_ACEOF
8419cat confdefs.h >>conftest.$ac_ext
8420cat >>conftest.$ac_ext <<_ACEOF
8421/* end confdefs.h. */
8422
Bram Moolenaar071d4272004-06-13 20:20:40 +00008423/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008424#ifdef __cplusplus
8425extern "C"
8426#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008427/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008428 builtin and then its argument prototype would still apply. */
8429char XmuCreateStippledPixmap ();
8430int
8431main ()
8432{
8433XmuCreateStippledPixmap ();
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext conftest$ac_exeext
8439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>conftest.er1
8441 ac_status=$?
8442 grep -v '^ *+' conftest.er1 >conftest.err
8443 rm -f conftest.er1
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag"
8448 || test ! -s conftest.err'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 (eval $ac_try) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; } &&
8454 { ac_try='test -s conftest$ac_exeext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008461else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008462 echo "$as_me: failed program was:" >&5
8463sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008464
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008465ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008466fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008467rm -f conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8469LIBS=$ac_check_lib_save_LIBS
8470fi
8471echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8472echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8473if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008474 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008475fi
8476
8477 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008478 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8479echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8480if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008482else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008483 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008484LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008485cat >conftest.$ac_ext <<_ACEOF
8486/* confdefs.h. */
8487_ACEOF
8488cat confdefs.h >>conftest.$ac_ext
8489cat >>conftest.$ac_ext <<_ACEOF
8490/* end confdefs.h. */
8491
Bram Moolenaar071d4272004-06-13 20:20:40 +00008492/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008493#ifdef __cplusplus
8494extern "C"
8495#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008496/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008497 builtin and then its argument prototype would still apply. */
8498char XpEndJob ();
8499int
8500main ()
8501{
8502XpEndJob ();
8503 ;
8504 return 0;
8505}
8506_ACEOF
8507rm -f conftest.$ac_objext conftest$ac_exeext
8508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509 (eval $ac_link) 2>conftest.er1
8510 ac_status=$?
8511 grep -v '^ *+' conftest.er1 >conftest.err
8512 rm -f conftest.er1
8513 cat conftest.err >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } &&
8516 { ac_try='test -z "$ac_c_werror_flag"
8517 || test ! -s conftest.err'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 (eval $ac_try) 2>&5
8520 ac_status=$?
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; } &&
8523 { ac_try='test -s conftest$ac_exeext'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 (eval $ac_try) 2>&5
8526 ac_status=$?
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008530else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008531 echo "$as_me: failed program was:" >&5
8532sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008533
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008534ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008535fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008536rm -f conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext conftest.$ac_ext
8538LIBS=$ac_check_lib_save_LIBS
8539fi
8540echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8541echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8542if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008543 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008544fi
8545
8546 fi
8547 LDFLAGS=$ldflags_save
8548
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008549 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8550echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008551 NARROW_PROTO=
8552 rm -fr conftestdir
8553 if mkdir conftestdir; then
8554 cd conftestdir
8555 cat > Imakefile <<'EOF'
8556acfindx:
8557 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8558EOF
8559 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8560 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8561 fi
8562 cd ..
8563 rm -fr conftestdir
8564 fi
8565 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008566 echo "$as_me:$LINENO: result: no" >&5
8567echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008568 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008569 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8570echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008571 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008572
Bram Moolenaar071d4272004-06-13 20:20:40 +00008573fi
8574
8575if test "$enable_xsmp" = "yes"; then
8576 cppflags_save=$CPPFLAGS
8577 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008578
8579for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008580do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8582if eval "test \"\${$as_ac_Header+set}\" = set"; then
8583 echo "$as_me:$LINENO: checking for $ac_header" >&5
8584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8585if eval "test \"\${$as_ac_Header+set}\" = set"; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008587fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008590else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008591 # Is the header compilable?
8592echo "$as_me:$LINENO: checking $ac_header usability" >&5
8593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8594cat >conftest.$ac_ext <<_ACEOF
8595/* confdefs.h. */
8596_ACEOF
8597cat confdefs.h >>conftest.$ac_ext
8598cat >>conftest.$ac_ext <<_ACEOF
8599/* end confdefs.h. */
8600$ac_includes_default
8601#include <$ac_header>
8602_ACEOF
8603rm -f conftest.$ac_objext
8604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag"
8613 || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_header_compiler=yes
8626else
8627 echo "$as_me: failed program was:" >&5
8628sed 's/^/| /' conftest.$ac_ext >&5
8629
8630ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008631fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8633echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8634echo "${ECHO_T}$ac_header_compiler" >&6
8635
8636# Is the header present?
8637echo "$as_me:$LINENO: checking $ac_header presence" >&5
8638echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8639cat >conftest.$ac_ext <<_ACEOF
8640/* confdefs.h. */
8641_ACEOF
8642cat confdefs.h >>conftest.$ac_ext
8643cat >>conftest.$ac_ext <<_ACEOF
8644/* end confdefs.h. */
8645#include <$ac_header>
8646_ACEOF
8647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } >/dev/null; then
8655 if test -s conftest.err; then
8656 ac_cpp_err=$ac_c_preproc_warn_flag
8657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8658 else
8659 ac_cpp_err=
8660 fi
8661else
8662 ac_cpp_err=yes
8663fi
8664if test -z "$ac_cpp_err"; then
8665 ac_header_preproc=yes
8666else
8667 echo "$as_me: failed program was:" >&5
8668sed 's/^/| /' conftest.$ac_ext >&5
8669
8670 ac_header_preproc=no
8671fi
8672rm -f conftest.err conftest.$ac_ext
8673echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8674echo "${ECHO_T}$ac_header_preproc" >&6
8675
8676# So? What about this header?
8677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8678 yes:no: )
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8680echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8682echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8683 ac_header_preproc=yes
8684 ;;
8685 no:yes:* )
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8689echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8691echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8693echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8695echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8697echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8698 (
8699 cat <<\_ASBOX
8700## ------------------------------------------ ##
8701## Report this to the AC_PACKAGE_NAME lists. ##
8702## ------------------------------------------ ##
8703_ASBOX
8704 ) |
8705 sed "s/^/$as_me: WARNING: /" >&2
8706 ;;
8707esac
8708echo "$as_me:$LINENO: checking for $ac_header" >&5
8709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8710if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8712else
8713 eval "$as_ac_Header=\$ac_header_preproc"
8714fi
8715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8717
8718fi
8719if test `eval echo '${'$as_ac_Header'}'` = yes; then
8720 cat >>confdefs.h <<_ACEOF
8721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8722_ACEOF
8723
8724fi
8725
Bram Moolenaar071d4272004-06-13 20:20:40 +00008726done
8727
8728 CPPFLAGS=$cppflags_save
8729fi
8730
8731
8732if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8733 cppflags_save=$CPPFLAGS
8734 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008735
8736
8737for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008738do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8740if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741 echo "$as_me:$LINENO: checking for $ac_header" >&5
8742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8743if eval "test \"\${$as_ac_Header+set}\" = set"; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008745fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008748else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008749 # Is the header compilable?
8750echo "$as_me:$LINENO: checking $ac_header usability" >&5
8751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8752cat >conftest.$ac_ext <<_ACEOF
8753/* confdefs.h. */
8754_ACEOF
8755cat confdefs.h >>conftest.$ac_ext
8756cat >>conftest.$ac_ext <<_ACEOF
8757/* end confdefs.h. */
8758$ac_includes_default
8759#include <$ac_header>
8760_ACEOF
8761rm -f conftest.$ac_objext
8762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763 (eval $ac_compile) 2>conftest.er1
8764 ac_status=$?
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } &&
8770 { ac_try='test -z "$ac_c_werror_flag"
8771 || test ! -s conftest.err'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 (eval $ac_try) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; } &&
8777 { ac_try='test -s conftest.$ac_objext'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 (eval $ac_try) 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8783 ac_header_compiler=yes
8784else
8785 echo "$as_me: failed program was:" >&5
8786sed 's/^/| /' conftest.$ac_ext >&5
8787
8788ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008789fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8792echo "${ECHO_T}$ac_header_compiler" >&6
8793
8794# Is the header present?
8795echo "$as_me:$LINENO: checking $ac_header presence" >&5
8796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8797cat >conftest.$ac_ext <<_ACEOF
8798/* confdefs.h. */
8799_ACEOF
8800cat confdefs.h >>conftest.$ac_ext
8801cat >>conftest.$ac_ext <<_ACEOF
8802/* end confdefs.h. */
8803#include <$ac_header>
8804_ACEOF
8805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } >/dev/null; then
8813 if test -s conftest.err; then
8814 ac_cpp_err=$ac_c_preproc_warn_flag
8815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8816 else
8817 ac_cpp_err=
8818 fi
8819else
8820 ac_cpp_err=yes
8821fi
8822if test -z "$ac_cpp_err"; then
8823 ac_header_preproc=yes
8824else
8825 echo "$as_me: failed program was:" >&5
8826sed 's/^/| /' conftest.$ac_ext >&5
8827
8828 ac_header_preproc=no
8829fi
8830rm -f conftest.err conftest.$ac_ext
8831echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8832echo "${ECHO_T}$ac_header_preproc" >&6
8833
8834# So? What about this header?
8835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8836 yes:no: )
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8838echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8840echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8841 ac_header_preproc=yes
8842 ;;
8843 no:yes:* )
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8847echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8849echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8851echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8855echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8856 (
8857 cat <<\_ASBOX
8858## ------------------------------------------ ##
8859## Report this to the AC_PACKAGE_NAME lists. ##
8860## ------------------------------------------ ##
8861_ASBOX
8862 ) |
8863 sed "s/^/$as_me: WARNING: /" >&2
8864 ;;
8865esac
8866echo "$as_me:$LINENO: checking for $ac_header" >&5
8867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8868if eval "test \"\${$as_ac_Header+set}\" = set"; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8870else
8871 eval "$as_ac_Header=\$ac_header_preproc"
8872fi
8873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8875
8876fi
8877if test `eval echo '${'$as_ac_Header'}'` = yes; then
8878 cat >>confdefs.h <<_ACEOF
8879#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8880_ACEOF
8881
8882fi
8883
Bram Moolenaar071d4272004-06-13 20:20:40 +00008884done
8885
8886
8887 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008888 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8889echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8890 cat >conftest.$ac_ext <<_ACEOF
8891/* confdefs.h. */
8892_ACEOF
8893cat confdefs.h >>conftest.$ac_ext
8894cat >>conftest.$ac_ext <<_ACEOF
8895/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008896#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008897_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008899 $EGREP "XIMText" >/dev/null 2>&1; then
8900 echo "$as_me:$LINENO: result: yes" >&5
8901echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008902else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008903 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8904echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008905fi
8906rm -f conftest*
8907
8908 fi
8909 CPPFLAGS=$cppflags_save
8910
8911 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8912 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008913 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8914echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008915 enable_xim="yes"
8916 fi
8917fi
8918
8919if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8920 cppflags_save=$CPPFLAGS
8921 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008922 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8923echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8924 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008925/* confdefs.h. */
8926_ACEOF
8927cat confdefs.h >>conftest.$ac_ext
8928cat >>conftest.$ac_ext <<_ACEOF
8929/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008930
8931#include <X11/Intrinsic.h>
8932#include <X11/Xmu/Editres.h>
8933int
8934main ()
8935{
8936int i; i = 0;
8937 ;
8938 return 0;
8939}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008940_ACEOF
8941rm -f conftest.$ac_objext
8942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8943 (eval $ac_compile) 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag"
8951 || test ! -s conftest.err'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try='test -s conftest.$ac_objext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008963 echo "$as_me:$LINENO: result: yes" >&5
8964echo "${ECHO_T}yes" >&6
8965 cat >>confdefs.h <<\_ACEOF
8966#define HAVE_X11_XMU_EDITRES_H 1
8967_ACEOF
8968
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008969else
8970 echo "$as_me: failed program was:" >&5
8971sed 's/^/| /' conftest.$ac_ext >&5
8972
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008973echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008975fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008977 CPPFLAGS=$cppflags_save
8978fi
8979
8980if test -z "$SKIP_MOTIF"; then
8981 cppflags_save=$CPPFLAGS
8982 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008983
8984
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008985
8986
8987
8988
Bram Moolenaarfc1421e2006-04-20 22:17:20 +00008989
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008990for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
Bram Moolenaarfc1421e2006-04-20 22:17:20 +00008991 Xm/UnhighlightT.h Xm/Notebook.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008992do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008993as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8994if eval "test \"\${$as_ac_Header+set}\" = set"; then
8995 echo "$as_me:$LINENO: checking for $ac_header" >&5
8996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8997if eval "test \"\${$as_ac_Header+set}\" = set"; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008999fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009002else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009003 # Is the header compilable?
9004echo "$as_me:$LINENO: checking $ac_header usability" >&5
9005echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9006cat >conftest.$ac_ext <<_ACEOF
9007/* confdefs.h. */
9008_ACEOF
9009cat confdefs.h >>conftest.$ac_ext
9010cat >>conftest.$ac_ext <<_ACEOF
9011/* end confdefs.h. */
9012$ac_includes_default
9013#include <$ac_header>
9014_ACEOF
9015rm -f conftest.$ac_objext
9016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9017 (eval $ac_compile) 2>conftest.er1
9018 ac_status=$?
9019 grep -v '^ *+' conftest.er1 >conftest.err
9020 rm -f conftest.er1
9021 cat conftest.err >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } &&
9024 { ac_try='test -z "$ac_c_werror_flag"
9025 || test ! -s conftest.err'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027 (eval $ac_try) 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; } &&
9031 { ac_try='test -s conftest.$ac_objext'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 (eval $ac_try) 2>&5
9034 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9037 ac_header_compiler=yes
9038else
9039 echo "$as_me: failed program was:" >&5
9040sed 's/^/| /' conftest.$ac_ext >&5
9041
9042ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009043fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9046echo "${ECHO_T}$ac_header_compiler" >&6
9047
9048# Is the header present?
9049echo "$as_me:$LINENO: checking $ac_header presence" >&5
9050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9051cat >conftest.$ac_ext <<_ACEOF
9052/* confdefs.h. */
9053_ACEOF
9054cat confdefs.h >>conftest.$ac_ext
9055cat >>conftest.$ac_ext <<_ACEOF
9056/* end confdefs.h. */
9057#include <$ac_header>
9058_ACEOF
9059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9061 ac_status=$?
9062 grep -v '^ *+' conftest.er1 >conftest.err
9063 rm -f conftest.er1
9064 cat conftest.err >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } >/dev/null; then
9067 if test -s conftest.err; then
9068 ac_cpp_err=$ac_c_preproc_warn_flag
9069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9070 else
9071 ac_cpp_err=
9072 fi
9073else
9074 ac_cpp_err=yes
9075fi
9076if test -z "$ac_cpp_err"; then
9077 ac_header_preproc=yes
9078else
9079 echo "$as_me: failed program was:" >&5
9080sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 ac_header_preproc=no
9083fi
9084rm -f conftest.err conftest.$ac_ext
9085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086echo "${ECHO_T}$ac_header_preproc" >&6
9087
9088# So? What about this header?
9089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9090 yes:no: )
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9095 ac_header_preproc=yes
9096 ;;
9097 no:yes:* )
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9110 (
9111 cat <<\_ASBOX
9112## ------------------------------------------ ##
9113## Report this to the AC_PACKAGE_NAME lists. ##
9114## ------------------------------------------ ##
9115_ASBOX
9116 ) |
9117 sed "s/^/$as_me: WARNING: /" >&2
9118 ;;
9119esac
9120echo "$as_me:$LINENO: checking for $ac_header" >&5
9121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122if eval "test \"\${$as_ac_Header+set}\" = set"; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125 eval "$as_ac_Header=\$ac_header_preproc"
9126fi
9127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9129
9130fi
9131if test `eval echo '${'$as_ac_Header'}'` = yes; then
9132 cat >>confdefs.h <<_ACEOF
9133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9134_ACEOF
9135
9136fi
9137
Bram Moolenaar071d4272004-06-13 20:20:40 +00009138done
9139
Bram Moolenaar910f66f2006-04-05 20:41:53 +00009140
9141 if test $ac_cv_header_Xm_XpmP_h = yes; then
9142 echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9143echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9144 cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
9150#include <Xm/XpmP.h>
9151int
9152main ()
9153{
9154XpmAttributes_21 attr;
9155 ;
9156 return 0;
9157}
9158_ACEOF
9159rm -f conftest.$ac_objext
9160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9161 (eval $ac_compile) 2>conftest.er1
9162 ac_status=$?
9163 grep -v '^ *+' conftest.er1 >conftest.err
9164 rm -f conftest.er1
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try='test -z "$ac_c_werror_flag"
9169 || test ! -s conftest.err'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; } &&
9175 { ac_try='test -s conftest.$ac_objext'
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 (eval $ac_try) 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; }; then
9181 echo "$as_me:$LINENO: result: yes" >&5
9182echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9183#define XPMATTRIBUTES_TYPE XpmAttributes_21
9184_ACEOF
9185
9186else
9187 echo "$as_me: failed program was:" >&5
9188sed 's/^/| /' conftest.$ac_ext >&5
9189
9190echo "$as_me:$LINENO: result: no" >&5
9191echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
9192#define XPMATTRIBUTES_TYPE XpmAttributes
9193_ACEOF
9194
9195
9196fi
9197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9198 else
9199 cat >>confdefs.h <<\_ACEOF
9200#define XPMATTRIBUTES_TYPE XpmAttributes_21
9201_ACEOF
9202
9203 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009204 CPPFLAGS=$cppflags_save
9205fi
9206
9207if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009208 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9209echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009210 enable_xim="no"
9211fi
9212if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009213 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9214echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009215 enable_fontset="no"
9216fi
9217if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009218 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9219echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009220 enable_fontset="no"
9221fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009222
9223if test -z "$SKIP_PHOTON"; then
9224 GUITYPE=PHOTONGUI
9225fi
9226
9227
9228
9229
9230
9231
9232if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009233 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9234echo "$as_me: error: cannot use workshop without Motif" >&2;}
9235 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009236fi
9237
9238if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009239 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009240#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009241_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009242
9243fi
9244if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009245 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009246#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009247_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009248
9249fi
9250
9251
9252
9253
9254if test "$enable_hangulinput" = "yes"; then
9255 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009256 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9257echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009258 enable_hangulinput=no
9259 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009260 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009261#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009262_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009263
9264 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009265
Bram Moolenaar071d4272004-06-13 20:20:40 +00009266 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009267
Bram Moolenaar071d4272004-06-13 20:20:40 +00009268 fi
9269fi
9270
9271
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009272echo "$as_me:$LINENO: checking quality of toupper" >&5
9273echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009274if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009275 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9276echo "$as_me: error: failed to compile test program" >&2;}
9277 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009278else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009279 cat >conftest.$ac_ext <<_ACEOF
9280/* confdefs.h. */
9281_ACEOF
9282cat confdefs.h >>conftest.$ac_ext
9283cat >>conftest.$ac_ext <<_ACEOF
9284/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009285#include <ctype.h>
9286main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009287_ACEOF
9288rm -f conftest$ac_exeext
9289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290 (eval $ac_link) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 (eval $ac_try) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009300#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009301_ACEOF
9302 echo "$as_me:$LINENO: result: bad" >&5
9303echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009304else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009305 echo "$as_me: program exited with status $ac_status" >&5
9306echo "$as_me: failed program was:" >&5
9307sed 's/^/| /' conftest.$ac_ext >&5
9308
9309( exit $ac_status )
9310echo "$as_me:$LINENO: result: good" >&5
9311echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009312fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009313rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009314fi
9315
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009316echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9317echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9318cat >conftest.$ac_ext <<_ACEOF
9319/* confdefs.h. */
9320_ACEOF
9321cat confdefs.h >>conftest.$ac_ext
9322cat >>conftest.$ac_ext <<_ACEOF
9323/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009324
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009325int
9326main ()
9327{
Bram Moolenaar071d4272004-06-13 20:20:40 +00009328printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009329 ;
9330 return 0;
9331}
9332_ACEOF
9333rm -f conftest.$ac_objext
9334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9335 (eval $ac_compile) 2>conftest.er1
9336 ac_status=$?
9337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try='test -z "$ac_c_werror_flag"
9343 || test ! -s conftest.err'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 (eval $ac_try) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 (eval $ac_try) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 echo "$as_me:$LINENO: result: yes" >&5
9356echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009357#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009358_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009359
9360else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009361 echo "$as_me: failed program was:" >&5
9362sed 's/^/| /' conftest.$ac_ext >&5
9363
9364echo "$as_me:$LINENO: result: no" >&5
9365echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009366fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009368
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009369if test "${ac_cv_header_elf_h+set}" = set; then
9370 echo "$as_me:$LINENO: checking for elf.h" >&5
9371echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9372if test "${ac_cv_header_elf_h+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374fi
9375echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9376echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009377else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009378 # Is the header compilable?
9379echo "$as_me:$LINENO: checking elf.h usability" >&5
9380echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9381cat >conftest.$ac_ext <<_ACEOF
9382/* confdefs.h. */
9383_ACEOF
9384cat confdefs.h >>conftest.$ac_ext
9385cat >>conftest.$ac_ext <<_ACEOF
9386/* end confdefs.h. */
9387$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +00009388#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009389_ACEOF
9390rm -f conftest.$ac_objext
9391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9392 (eval $ac_compile) 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_c_werror_flag"
9400 || test ! -s conftest.err'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; } &&
9406 { ac_try='test -s conftest.$ac_objext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009413else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009414 echo "$as_me: failed program was:" >&5
9415sed 's/^/| /' conftest.$ac_ext >&5
9416
9417ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009418fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9421echo "${ECHO_T}$ac_header_compiler" >&6
9422
9423# Is the header present?
9424echo "$as_me:$LINENO: checking elf.h presence" >&5
9425echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9426cat >conftest.$ac_ext <<_ACEOF
9427/* confdefs.h. */
9428_ACEOF
9429cat confdefs.h >>conftest.$ac_ext
9430cat >>conftest.$ac_ext <<_ACEOF
9431/* end confdefs.h. */
9432#include <elf.h>
9433_ACEOF
9434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9436 ac_status=$?
9437 grep -v '^ *+' conftest.er1 >conftest.err
9438 rm -f conftest.er1
9439 cat conftest.err >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } >/dev/null; then
9442 if test -s conftest.err; then
9443 ac_cpp_err=$ac_c_preproc_warn_flag
9444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9445 else
9446 ac_cpp_err=
9447 fi
9448else
9449 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009450fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009451if test -z "$ac_cpp_err"; then
9452 ac_header_preproc=yes
9453else
9454 echo "$as_me: failed program was:" >&5
9455sed 's/^/| /' conftest.$ac_ext >&5
9456
9457 ac_header_preproc=no
9458fi
9459rm -f conftest.err conftest.$ac_ext
9460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9461echo "${ECHO_T}$ac_header_preproc" >&6
9462
9463# So? What about this header?
9464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9465 yes:no: )
9466 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9467echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9469echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9470 ac_header_preproc=yes
9471 ;;
9472 no:yes:* )
9473 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9474echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9476echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9478echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9480echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9482echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9484echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9485 (
9486 cat <<\_ASBOX
9487## ------------------------------------------ ##
9488## Report this to the AC_PACKAGE_NAME lists. ##
9489## ------------------------------------------ ##
9490_ASBOX
9491 ) |
9492 sed "s/^/$as_me: WARNING: /" >&2
9493 ;;
9494esac
9495echo "$as_me:$LINENO: checking for elf.h" >&5
9496echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9497if test "${ac_cv_header_elf_h+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499else
9500 ac_cv_header_elf_h=$ac_header_preproc
9501fi
9502echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9503echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9504
9505fi
9506if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009507 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +00009508fi
9509
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009510
Bram Moolenaar071d4272004-06-13 20:20:40 +00009511if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009512
9513echo "$as_me:$LINENO: checking for main in -lelf" >&5
9514echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9515if test "${ac_cv_lib_elf_main+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009517else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009518 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009519LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009520cat >conftest.$ac_ext <<_ACEOF
9521/* confdefs.h. */
9522_ACEOF
9523cat confdefs.h >>conftest.$ac_ext
9524cat >>conftest.$ac_ext <<_ACEOF
9525/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009526
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009527
9528int
9529main ()
9530{
9531main ();
9532 ;
9533 return 0;
9534}
9535_ACEOF
9536rm -f conftest.$ac_objext conftest$ac_exeext
9537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9538 (eval $ac_link) 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest$ac_exeext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009559else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009560 echo "$as_me: failed program was:" >&5
9561sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009562
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009563ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009564fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009565rm -f conftest.err conftest.$ac_objext \
9566 conftest$ac_exeext conftest.$ac_ext
9567LIBS=$ac_check_lib_save_LIBS
9568fi
9569echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9570echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9571if test $ac_cv_lib_elf_main = yes; then
9572 cat >>confdefs.h <<_ACEOF
9573#define HAVE_LIBELF 1
9574_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009575
9576 LIBS="-lelf $LIBS"
9577
Bram Moolenaar071d4272004-06-13 20:20:40 +00009578fi
9579
9580fi
9581
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009582
9583
9584
9585
9586
Bram Moolenaar071d4272004-06-13 20:20:40 +00009587ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009588for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9589 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9590echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9591echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9592if eval "test \"\${$as_ac_Header+set}\" = set"; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009594else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009595 cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009601#include <sys/types.h>
9602#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009603
9604int
9605main ()
9606{
9607if ((DIR *) 0)
9608return 0;
9609 ;
9610 return 0;
9611}
9612_ACEOF
9613rm -f conftest.$ac_objext
9614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9615 (eval $ac_compile) 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
9622 { ac_try='test -z "$ac_c_werror_flag"
9623 || test ! -s conftest.err'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; } &&
9629 { ac_try='test -s conftest.$ac_objext'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009636else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009637 echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009641fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009643fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9646if test `eval echo '${'$as_ac_Header'}'` = yes; then
9647 cat >>confdefs.h <<_ACEOF
9648#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9649_ACEOF
9650
9651ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009652fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009653
Bram Moolenaar071d4272004-06-13 20:20:40 +00009654done
9655# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9656if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009657 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9658echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9659if test "${ac_cv_search_opendir+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009661else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009662 ac_func_search_save_LIBS=$LIBS
9663ac_cv_search_opendir=no
9664cat >conftest.$ac_ext <<_ACEOF
9665/* confdefs.h. */
9666_ACEOF
9667cat confdefs.h >>conftest.$ac_ext
9668cat >>conftest.$ac_ext <<_ACEOF
9669/* end confdefs.h. */
9670
Bram Moolenaar071d4272004-06-13 20:20:40 +00009671/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009672#ifdef __cplusplus
9673extern "C"
9674#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009675/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009676 builtin and then its argument prototype would still apply. */
9677char opendir ();
9678int
9679main ()
9680{
9681opendir ();
9682 ;
9683 return 0;
9684}
9685_ACEOF
9686rm -f conftest.$ac_objext conftest$ac_exeext
9687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688 (eval $ac_link) 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
9695 { ac_try='test -z "$ac_c_werror_flag"
9696 || test ! -s conftest.err'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; } &&
9702 { ac_try='test -s conftest$ac_exeext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9708 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009709else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009710 echo "$as_me: failed program was:" >&5
9711sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009712
9713fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009714rm -f conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716if test "$ac_cv_search_opendir" = no; then
9717 for ac_lib in dir; do
9718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9719 cat >conftest.$ac_ext <<_ACEOF
9720/* confdefs.h. */
9721_ACEOF
9722cat confdefs.h >>conftest.$ac_ext
9723cat >>conftest.$ac_ext <<_ACEOF
9724/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009725
Bram Moolenaar071d4272004-06-13 20:20:40 +00009726/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009727#ifdef __cplusplus
9728extern "C"
9729#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009730/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009731 builtin and then its argument prototype would still apply. */
9732char opendir ();
9733int
9734main ()
9735{
9736opendir ();
9737 ;
9738 return 0;
9739}
9740_ACEOF
9741rm -f conftest.$ac_objext conftest$ac_exeext
9742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743 (eval $ac_link) 2>conftest.er1
9744 ac_status=$?
9745 grep -v '^ *+' conftest.er1 >conftest.err
9746 rm -f conftest.er1
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try='test -z "$ac_c_werror_flag"
9751 || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_search_opendir="-l$ac_lib"
9764break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009765else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009766 echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009768
9769fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009770rm -f conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 done
9773fi
9774LIBS=$ac_func_search_save_LIBS
9775fi
9776echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9777echo "${ECHO_T}$ac_cv_search_opendir" >&6
9778if test "$ac_cv_search_opendir" != no; then
9779 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9780
9781fi
9782
Bram Moolenaar071d4272004-06-13 20:20:40 +00009783else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009784 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9785echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9786if test "${ac_cv_search_opendir+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009788else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009789 ac_func_search_save_LIBS=$LIBS
9790ac_cv_search_opendir=no
9791cat >conftest.$ac_ext <<_ACEOF
9792/* confdefs.h. */
9793_ACEOF
9794cat confdefs.h >>conftest.$ac_ext
9795cat >>conftest.$ac_ext <<_ACEOF
9796/* end confdefs.h. */
9797
9798/* Override any gcc2 internal prototype to avoid an error. */
9799#ifdef __cplusplus
9800extern "C"
9801#endif
9802/* We use char because int might match the return type of a gcc2
9803 builtin and then its argument prototype would still apply. */
9804char opendir ();
9805int
9806main ()
9807{
9808opendir ();
9809 ;
9810 return 0;
9811}
9812_ACEOF
9813rm -f conftest.$ac_objext conftest$ac_exeext
9814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9815 (eval $ac_link) 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
9822 { ac_try='test -z "$ac_c_werror_flag"
9823 || test ! -s conftest.err'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 (eval $ac_try) 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; } &&
9829 { ac_try='test -s conftest$ac_exeext'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; }; then
9835 ac_cv_search_opendir="none required"
9836else
9837 echo "$as_me: failed program was:" >&5
9838sed 's/^/| /' conftest.$ac_ext >&5
9839
9840fi
9841rm -f conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext conftest.$ac_ext
9843if test "$ac_cv_search_opendir" = no; then
9844 for ac_lib in x; do
9845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9846 cat >conftest.$ac_ext <<_ACEOF
9847/* confdefs.h. */
9848_ACEOF
9849cat confdefs.h >>conftest.$ac_ext
9850cat >>conftest.$ac_ext <<_ACEOF
9851/* end confdefs.h. */
9852
9853/* Override any gcc2 internal prototype to avoid an error. */
9854#ifdef __cplusplus
9855extern "C"
9856#endif
9857/* We use char because int might match the return type of a gcc2
9858 builtin and then its argument prototype would still apply. */
9859char opendir ();
9860int
9861main ()
9862{
9863opendir ();
9864 ;
9865 return 0;
9866}
9867_ACEOF
9868rm -f conftest.$ac_objext conftest$ac_exeext
9869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870 (eval $ac_link) 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag"
9878 || test ! -s conftest.err'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 (eval $ac_try) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; } &&
9884 { ac_try='test -s conftest$ac_exeext'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 (eval $ac_try) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 ac_cv_search_opendir="-l$ac_lib"
9891break
9892else
9893 echo "$as_me: failed program was:" >&5
9894sed 's/^/| /' conftest.$ac_ext >&5
9895
9896fi
9897rm -f conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899 done
9900fi
9901LIBS=$ac_func_search_save_LIBS
9902fi
9903echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9904echo "${ECHO_T}$ac_cv_search_opendir" >&6
9905if test "$ac_cv_search_opendir" != no; then
9906 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9907
9908fi
9909
9910fi
9911
9912
9913echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9914echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9915if test "${ac_cv_header_stdc+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917else
9918 cat >conftest.$ac_ext <<_ACEOF
9919/* confdefs.h. */
9920_ACEOF
9921cat confdefs.h >>conftest.$ac_ext
9922cat >>conftest.$ac_ext <<_ACEOF
9923/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009924#include <stdlib.h>
9925#include <stdarg.h>
9926#include <string.h>
9927#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009928
9929int
9930main ()
9931{
9932
9933 ;
9934 return 0;
9935}
9936_ACEOF
9937rm -f conftest.$ac_objext
9938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9939 (eval $ac_compile) 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag"
9947 || test ! -s conftest.err'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest.$ac_objext'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 (eval $ac_try) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009959 ac_cv_header_stdc=yes
9960else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009961 echo "$as_me: failed program was:" >&5
9962sed 's/^/| /' conftest.$ac_ext >&5
9963
9964ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009965fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009967
9968if test $ac_cv_header_stdc = yes; then
9969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009970 cat >conftest.$ac_ext <<_ACEOF
9971/* confdefs.h. */
9972_ACEOF
9973cat confdefs.h >>conftest.$ac_ext
9974cat >>conftest.$ac_ext <<_ACEOF
9975/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009976#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009977
9978_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009980 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009981 :
9982else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009983 ac_cv_header_stdc=no
9984fi
9985rm -f conftest*
9986
9987fi
9988
9989if test $ac_cv_header_stdc = yes; then
9990 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009991 cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h. */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
9996/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009997#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009998
9999_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010001 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010002 :
10003else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010004 ac_cv_header_stdc=no
10005fi
10006rm -f conftest*
10007
10008fi
10009
10010if test $ac_cv_header_stdc = yes; then
10011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010012 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010013 :
10014else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010015 cat >conftest.$ac_ext <<_ACEOF
10016/* confdefs.h. */
10017_ACEOF
10018cat confdefs.h >>conftest.$ac_ext
10019cat >>conftest.$ac_ext <<_ACEOF
10020/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010021#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010022#if ((' ' & 0x0FF) == 0x020)
10023# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10024# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10025#else
10026# define ISLOWER(c) \
10027 (('a' <= (c) && (c) <= 'i') \
10028 || ('j' <= (c) && (c) <= 'r') \
10029 || ('s' <= (c) && (c) <= 'z'))
10030# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10031#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010032
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010033#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10034int
10035main ()
10036{
10037 int i;
10038 for (i = 0; i < 256; i++)
10039 if (XOR (islower (i), ISLOWER (i))
10040 || toupper (i) != TOUPPER (i))
10041 exit(2);
10042 exit (0);
10043}
10044_ACEOF
10045rm -f conftest$ac_exeext
10046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010056 :
10057else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010058 echo "$as_me: program exited with status $ac_status" >&5
10059echo "$as_me: failed program was:" >&5
10060sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010061
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010062( exit $ac_status )
10063ac_cv_header_stdc=no
10064fi
10065rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010066fi
10067fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010068fi
10069echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10070echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010071if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010072
10073cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010074#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010075_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010076
10077fi
10078
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010079echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10080echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10081if test "${ac_cv_header_sys_wait_h+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010083else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010084 cat >conftest.$ac_ext <<_ACEOF
10085/* confdefs.h. */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
10089/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010090#include <sys/types.h>
10091#include <sys/wait.h>
10092#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010093# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010094#endif
10095#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010096# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010097#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010098
10099int
10100main ()
10101{
10102 int s;
10103 wait (&s);
10104 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10105 ;
10106 return 0;
10107}
10108_ACEOF
10109rm -f conftest.$ac_objext
10110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10111 (eval $ac_compile) 2>conftest.er1
10112 ac_status=$?
10113 grep -v '^ *+' conftest.er1 >conftest.err
10114 rm -f conftest.er1
10115 cat conftest.err >&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -z "$ac_c_werror_flag"
10119 || test ! -s conftest.err'
10120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10122 ac_status=$?
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; } &&
10125 { ac_try='test -s conftest.$ac_objext'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010131 ac_cv_header_sys_wait_h=yes
10132else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010133 echo "$as_me: failed program was:" >&5
10134sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010135
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010136ac_cv_header_sys_wait_h=no
10137fi
10138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10139fi
10140echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10141echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010142if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010143
10144cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010145#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010146_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010147
10148fi
10149
10150
10151if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010152 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10153echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10154 cat >conftest.$ac_ext <<_ACEOF
10155/* confdefs.h. */
10156_ACEOF
10157cat confdefs.h >>conftest.$ac_ext
10158cat >>conftest.$ac_ext <<_ACEOF
10159/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010160#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010161int
10162main ()
10163{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010164union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010165 ;
10166 return 0;
10167}
10168_ACEOF
10169rm -f conftest.$ac_objext
10170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>conftest.er1
10172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -z "$ac_c_werror_flag"
10179 || test ! -s conftest.err'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 echo "$as_me:$LINENO: result: yes" >&5
10192echo "${ECHO_T}yes" >&6
10193 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010194#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010195_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010196
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010197 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010198#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010199_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010200
10201else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010202 echo "$as_me: failed program was:" >&5
10203sed 's/^/| /' conftest.$ac_ext >&5
10204
10205echo "$as_me:$LINENO: result: no" >&5
10206echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010207fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010209fi
10210
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010250
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010251for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010252 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10253 iconv.h langinfo.h unistd.h stropts.h errno.h \
10254 sys/resource.h sys/systeminfo.h locale.h \
10255 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10256 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010257 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010258 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010259do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10261if eval "test \"\${$as_ac_Header+set}\" = set"; then
10262 echo "$as_me:$LINENO: checking for $ac_header" >&5
10263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10264if eval "test \"\${$as_ac_Header+set}\" = set"; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010266fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010269else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010270 # Is the header compilable?
10271echo "$as_me:$LINENO: checking $ac_header usability" >&5
10272echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10273cat >conftest.$ac_ext <<_ACEOF
10274/* confdefs.h. */
10275_ACEOF
10276cat confdefs.h >>conftest.$ac_ext
10277cat >>conftest.$ac_ext <<_ACEOF
10278/* end confdefs.h. */
10279$ac_includes_default
10280#include <$ac_header>
10281_ACEOF
10282rm -f conftest.$ac_objext
10283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10284 (eval $ac_compile) 2>conftest.er1
10285 ac_status=$?
10286 grep -v '^ *+' conftest.er1 >conftest.err
10287 rm -f conftest.er1
10288 cat conftest.err >&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try='test -z "$ac_c_werror_flag"
10292 || test ! -s conftest.err'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10295 ac_status=$?
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; } &&
10298 { ac_try='test -s conftest.$ac_objext'
10299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300 (eval $ac_try) 2>&5
10301 ac_status=$?
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; }; then
10304 ac_header_compiler=yes
10305else
10306 echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010310fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10313echo "${ECHO_T}$ac_header_compiler" >&6
10314
10315# Is the header present?
10316echo "$as_me:$LINENO: checking $ac_header presence" >&5
10317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10318cat >conftest.$ac_ext <<_ACEOF
10319/* confdefs.h. */
10320_ACEOF
10321cat confdefs.h >>conftest.$ac_ext
10322cat >>conftest.$ac_ext <<_ACEOF
10323/* end confdefs.h. */
10324#include <$ac_header>
10325_ACEOF
10326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } >/dev/null; then
10334 if test -s conftest.err; then
10335 ac_cpp_err=$ac_c_preproc_warn_flag
10336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10337 else
10338 ac_cpp_err=
10339 fi
10340else
10341 ac_cpp_err=yes
10342fi
10343if test -z "$ac_cpp_err"; then
10344 ac_header_preproc=yes
10345else
10346 echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
10349 ac_header_preproc=no
10350fi
10351rm -f conftest.err conftest.$ac_ext
10352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10353echo "${ECHO_T}$ac_header_preproc" >&6
10354
10355# So? What about this header?
10356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10357 yes:no: )
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10359echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10361echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10362 ac_header_preproc=yes
10363 ;;
10364 no:yes:* )
10365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10366echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10368echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10370echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10372echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10374echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10376echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10377 (
10378 cat <<\_ASBOX
10379## ------------------------------------------ ##
10380## Report this to the AC_PACKAGE_NAME lists. ##
10381## ------------------------------------------ ##
10382_ASBOX
10383 ) |
10384 sed "s/^/$as_me: WARNING: /" >&2
10385 ;;
10386esac
10387echo "$as_me:$LINENO: checking for $ac_header" >&5
10388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10389if eval "test \"\${$as_ac_Header+set}\" = set"; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10391else
10392 eval "$as_ac_Header=\$ac_header_preproc"
10393fi
10394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10396
10397fi
10398if test `eval echo '${'$as_ac_Header'}'` = yes; then
10399 cat >>confdefs.h <<_ACEOF
10400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10401_ACEOF
10402
10403fi
10404
Bram Moolenaar071d4272004-06-13 20:20:40 +000010405done
10406
10407
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010408echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10409echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10410cat >conftest.$ac_ext <<_ACEOF
10411/* confdefs.h. */
10412_ACEOF
10413cat confdefs.h >>conftest.$ac_ext
10414cat >>conftest.$ac_ext <<_ACEOF
10415/* end confdefs.h. */
10416
10417#include <pthread.h>
10418#include <pthread_np.h>
10419int
10420main ()
10421{
10422int i; i = 0;
10423 ;
10424 return 0;
10425}
10426_ACEOF
10427rm -f conftest.$ac_objext
10428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10429 (eval $ac_compile) 2>conftest.er1
10430 ac_status=$?
10431 grep -v '^ *+' conftest.er1 >conftest.err
10432 rm -f conftest.er1
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -z "$ac_c_werror_flag"
10437 || test ! -s conftest.err'
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); }; } &&
10443 { ac_try='test -s conftest.$ac_objext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 echo "$as_me:$LINENO: result: yes" >&5
10450echo "${ECHO_T}yes" >&6
10451 cat >>confdefs.h <<\_ACEOF
10452#define HAVE_PTHREAD_NP_H 1
10453_ACEOF
10454
10455else
10456 echo "$as_me: failed program was:" >&5
10457sed 's/^/| /' conftest.$ac_ext >&5
10458
10459echo "$as_me:$LINENO: result: no" >&5
10460echo "${ECHO_T}no" >&6
10461fi
10462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10463
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010464
10465for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010466do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10468if eval "test \"\${$as_ac_Header+set}\" = set"; then
10469 echo "$as_me:$LINENO: checking for $ac_header" >&5
10470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10471if eval "test \"\${$as_ac_Header+set}\" = set"; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010473fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010476else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010477 # Is the header compilable?
10478echo "$as_me:$LINENO: checking $ac_header usability" >&5
10479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10480cat >conftest.$ac_ext <<_ACEOF
10481/* confdefs.h. */
10482_ACEOF
10483cat confdefs.h >>conftest.$ac_ext
10484cat >>conftest.$ac_ext <<_ACEOF
10485/* end confdefs.h. */
10486$ac_includes_default
10487#include <$ac_header>
10488_ACEOF
10489rm -f conftest.$ac_objext
10490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491 (eval $ac_compile) 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try='test -z "$ac_c_werror_flag"
10499 || test ! -s conftest.err'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest.$ac_objext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 ac_header_compiler=yes
10512else
10513 echo "$as_me: failed program was:" >&5
10514sed 's/^/| /' conftest.$ac_ext >&5
10515
10516ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010517fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10520echo "${ECHO_T}$ac_header_compiler" >&6
10521
10522# Is the header present?
10523echo "$as_me:$LINENO: checking $ac_header presence" >&5
10524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10525cat >conftest.$ac_ext <<_ACEOF
10526/* confdefs.h. */
10527_ACEOF
10528cat confdefs.h >>conftest.$ac_ext
10529cat >>conftest.$ac_ext <<_ACEOF
10530/* end confdefs.h. */
10531#include <$ac_header>
10532_ACEOF
10533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10535 ac_status=$?
10536 grep -v '^ *+' conftest.er1 >conftest.err
10537 rm -f conftest.er1
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } >/dev/null; then
10541 if test -s conftest.err; then
10542 ac_cpp_err=$ac_c_preproc_warn_flag
10543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10544 else
10545 ac_cpp_err=
10546 fi
10547else
10548 ac_cpp_err=yes
10549fi
10550if test -z "$ac_cpp_err"; then
10551 ac_header_preproc=yes
10552else
10553 echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
10556 ac_header_preproc=no
10557fi
10558rm -f conftest.err conftest.$ac_ext
10559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10560echo "${ECHO_T}$ac_header_preproc" >&6
10561
10562# So? What about this header?
10563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10564 yes:no: )
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10569 ac_header_preproc=yes
10570 ;;
10571 no:yes:* )
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10584 (
10585 cat <<\_ASBOX
10586## ------------------------------------------ ##
10587## Report this to the AC_PACKAGE_NAME lists. ##
10588## ------------------------------------------ ##
10589_ASBOX
10590 ) |
10591 sed "s/^/$as_me: WARNING: /" >&2
10592 ;;
10593esac
10594echo "$as_me:$LINENO: checking for $ac_header" >&5
10595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10596if eval "test \"\${$as_ac_Header+set}\" = set"; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598else
10599 eval "$as_ac_Header=\$ac_header_preproc"
10600fi
10601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10603
10604fi
10605if test `eval echo '${'$as_ac_Header'}'` = yes; then
10606 cat >>confdefs.h <<_ACEOF
10607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10608_ACEOF
10609
10610fi
10611
Bram Moolenaar071d4272004-06-13 20:20:40 +000010612done
10613
Bram Moolenaar9372a112005-12-06 19:59:18 +000010614if test "x$MACOSX" = "xyes"; then
10615 cat >>confdefs.h <<\_ACEOF
10616#define NO_STRINGS_WITH_STRING_H 1
10617_ACEOF
10618
10619else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010621echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10622echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010623cppflags_save=$CPPFLAGS
10624CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010625cat >conftest.$ac_ext <<_ACEOF
10626/* confdefs.h. */
10627_ACEOF
10628cat confdefs.h >>conftest.$ac_ext
10629cat >>conftest.$ac_ext <<_ACEOF
10630/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010631
10632#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10633# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10634 /* but don't do it on AIX 5.1 (Uribarri) */
10635#endif
10636#ifdef HAVE_XM_XM_H
10637# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10638#endif
10639#ifdef HAVE_STRING_H
10640# include <string.h>
10641#endif
10642#if defined(HAVE_STRINGS_H)
10643# include <strings.h>
10644#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010645
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010646int
10647main ()
10648{
10649int i; i = 0;
10650 ;
10651 return 0;
10652}
10653_ACEOF
10654rm -f conftest.$ac_objext
10655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656 (eval $ac_compile) 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -z "$ac_c_werror_flag"
10664 || test ! -s conftest.err'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; } &&
10670 { ac_try='test -s conftest.$ac_objext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 echo "$as_me:$LINENO: result: yes" >&5
10677echo "${ECHO_T}yes" >&6
10678else
10679 echo "$as_me: failed program was:" >&5
10680sed 's/^/| /' conftest.$ac_ext >&5
10681
10682cat >>confdefs.h <<\_ACEOF
10683#define NO_STRINGS_WITH_STRING_H 1
10684_ACEOF
10685
10686 echo "$as_me:$LINENO: result: no" >&5
10687echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010688fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010690CPPFLAGS=$cppflags_save
Bram Moolenaar9372a112005-12-06 19:59:18 +000010691fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000010692
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010693if test $ac_cv_c_compiler_gnu = yes; then
10694 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10695echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10696if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010698else
10699 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010700 cat >conftest.$ac_ext <<_ACEOF
10701/* confdefs.h. */
10702_ACEOF
10703cat confdefs.h >>conftest.$ac_ext
10704cat >>conftest.$ac_ext <<_ACEOF
10705/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010706#include <sgtty.h>
10707Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010708_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010710 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010711 ac_cv_prog_gcc_traditional=yes
10712else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010713 ac_cv_prog_gcc_traditional=no
10714fi
10715rm -f conftest*
10716
10717
10718 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010719 cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h. */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010725#include <termio.h>
10726Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010727_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010729 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010730 ac_cv_prog_gcc_traditional=yes
10731fi
10732rm -f conftest*
10733
10734 fi
10735fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010736echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10737echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010738 if test $ac_cv_prog_gcc_traditional = yes; then
10739 CC="$CC -traditional"
10740 fi
10741fi
10742
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010743echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10744echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10745if test "${ac_cv_c_const+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010747else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010748 cat >conftest.$ac_ext <<_ACEOF
10749/* confdefs.h. */
10750_ACEOF
10751cat confdefs.h >>conftest.$ac_ext
10752cat >>conftest.$ac_ext <<_ACEOF
10753/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010754
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010755int
10756main ()
10757{
10758/* FIXME: Include the comments suggested by Paul. */
10759#ifndef __cplusplus
10760 /* Ultrix mips cc rejects this. */
10761 typedef int charset[2];
10762 const charset x;
10763 /* SunOS 4.1.1 cc rejects this. */
10764 char const *const *ccp;
10765 char **p;
10766 /* NEC SVR4.0.2 mips cc rejects this. */
10767 struct point {int x, y;};
10768 static struct point const zero = {0,0};
10769 /* AIX XL C 1.02.0.0 rejects this.
10770 It does not let you subtract one const X* pointer from another in
10771 an arm of an if-expression whose if-part is not a constant
10772 expression */
10773 const char *g = "string";
10774 ccp = &g + (g ? g-g : 0);
10775 /* HPUX 7.0 cc rejects these. */
10776 ++ccp;
10777 p = (char**) ccp;
10778 ccp = (char const *const *) p;
10779 { /* SCO 3.2v4 cc rejects this. */
10780 char *t;
10781 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010782
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010783 *t++ = 0;
10784 }
10785 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10786 int x[] = {25, 17};
10787 const int *foo = &x[0];
10788 ++foo;
10789 }
10790 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10791 typedef const int *iptr;
10792 iptr p = 0;
10793 ++p;
10794 }
10795 { /* AIX XL C 1.02.0.0 rejects this saying
10796 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10797 struct s { int j; const int *ap[3]; };
10798 struct s *b; b->j = 5;
10799 }
10800 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10801 const int foo = 10;
10802 }
10803#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010804
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010805 ;
10806 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010807}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010808_ACEOF
10809rm -f conftest.$ac_objext
10810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010831 ac_cv_c_const=yes
10832else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010833 echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010835
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010836ac_cv_c_const=no
10837fi
10838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10839fi
10840echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10841echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010842if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010843
10844cat >>confdefs.h <<\_ACEOF
10845#define const
10846_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010847
10848fi
10849
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010850echo "$as_me:$LINENO: checking for mode_t" >&5
10851echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10852if test "${ac_cv_type_mode_t+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010854else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010855 cat >conftest.$ac_ext <<_ACEOF
10856/* confdefs.h. */
10857_ACEOF
10858cat confdefs.h >>conftest.$ac_ext
10859cat >>conftest.$ac_ext <<_ACEOF
10860/* end confdefs.h. */
10861$ac_includes_default
10862int
10863main ()
10864{
10865if ((mode_t *) 0)
10866 return 0;
10867if (sizeof (mode_t))
10868 return 0;
10869 ;
10870 return 0;
10871}
10872_ACEOF
10873rm -f conftest.$ac_objext
10874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10875 (eval $ac_compile) 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag"
10883 || test ! -s conftest.err'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010895 ac_cv_type_mode_t=yes
10896else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010897 echo "$as_me: failed program was:" >&5
10898sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010899
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010900ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010901fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010903fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010904echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10905echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10906if test $ac_cv_type_mode_t = yes; then
10907 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010908else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010909
10910cat >>confdefs.h <<_ACEOF
10911#define mode_t int
10912_ACEOF
10913
10914fi
10915
10916echo "$as_me:$LINENO: checking for off_t" >&5
10917echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10918if test "${ac_cv_type_off_t+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921 cat >conftest.$ac_ext <<_ACEOF
10922/* confdefs.h. */
10923_ACEOF
10924cat confdefs.h >>conftest.$ac_ext
10925cat >>conftest.$ac_ext <<_ACEOF
10926/* end confdefs.h. */
10927$ac_includes_default
10928int
10929main ()
10930{
10931if ((off_t *) 0)
10932 return 0;
10933if (sizeof (off_t))
10934 return 0;
10935 ;
10936 return 0;
10937}
10938_ACEOF
10939rm -f conftest.$ac_objext
10940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10941 (eval $ac_compile) 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag"
10949 || test ! -s conftest.err'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest.$ac_objext'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010961 ac_cv_type_off_t=yes
10962else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010963 echo "$as_me: failed program was:" >&5
10964sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010965
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010966ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010967fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010969fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010970echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10971echo "${ECHO_T}$ac_cv_type_off_t" >&6
10972if test $ac_cv_type_off_t = yes; then
10973 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010974else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010975
10976cat >>confdefs.h <<_ACEOF
10977#define off_t long
10978_ACEOF
10979
10980fi
10981
10982echo "$as_me:$LINENO: checking for pid_t" >&5
10983echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10984if test "${ac_cv_type_pid_t+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986else
10987 cat >conftest.$ac_ext <<_ACEOF
10988/* confdefs.h. */
10989_ACEOF
10990cat confdefs.h >>conftest.$ac_ext
10991cat >>conftest.$ac_ext <<_ACEOF
10992/* end confdefs.h. */
10993$ac_includes_default
10994int
10995main ()
10996{
10997if ((pid_t *) 0)
10998 return 0;
10999if (sizeof (pid_t))
11000 return 0;
11001 ;
11002 return 0;
11003}
11004_ACEOF
11005rm -f conftest.$ac_objext
11006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11007 (eval $ac_compile) 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag"
11015 || test ! -s conftest.err'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest.$ac_objext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011027 ac_cv_type_pid_t=yes
11028else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011029 echo "$as_me: failed program was:" >&5
11030sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011031
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011032ac_cv_type_pid_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011033fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011035fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011036echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11037echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11038if test $ac_cv_type_pid_t = yes; then
11039 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011040else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011041
11042cat >>confdefs.h <<_ACEOF
11043#define pid_t int
11044_ACEOF
11045
11046fi
11047
11048echo "$as_me:$LINENO: checking for size_t" >&5
11049echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11050if test "${ac_cv_type_size_t+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052else
11053 cat >conftest.$ac_ext <<_ACEOF
11054/* confdefs.h. */
11055_ACEOF
11056cat confdefs.h >>conftest.$ac_ext
11057cat >>conftest.$ac_ext <<_ACEOF
11058/* end confdefs.h. */
11059$ac_includes_default
11060int
11061main ()
11062{
11063if ((size_t *) 0)
11064 return 0;
11065if (sizeof (size_t))
11066 return 0;
11067 ;
11068 return 0;
11069}
11070_ACEOF
11071rm -f conftest.$ac_objext
11072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073 (eval $ac_compile) 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try='test -z "$ac_c_werror_flag"
11081 || test ! -s conftest.err'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; } &&
11087 { ac_try='test -s conftest.$ac_objext'
11088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011093 ac_cv_type_size_t=yes
11094else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011095 echo "$as_me: failed program was:" >&5
11096sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011097
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011098ac_cv_type_size_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011099fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011101fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011102echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11103echo "${ECHO_T}$ac_cv_type_size_t" >&6
11104if test $ac_cv_type_size_t = yes; then
11105 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011106else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011107
11108cat >>confdefs.h <<_ACEOF
11109#define size_t unsigned
11110_ACEOF
11111
11112fi
11113
11114echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11115echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11116if test "${ac_cv_type_uid_t+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118else
11119 cat >conftest.$ac_ext <<_ACEOF
11120/* confdefs.h. */
11121_ACEOF
11122cat confdefs.h >>conftest.$ac_ext
11123cat >>conftest.$ac_ext <<_ACEOF
11124/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011125#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011126
11127_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011129 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011130 ac_cv_type_uid_t=yes
11131else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011132 ac_cv_type_uid_t=no
11133fi
11134rm -f conftest*
11135
11136fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011137echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11138echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011139if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011140
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011141cat >>confdefs.h <<\_ACEOF
11142#define uid_t int
11143_ACEOF
11144
11145
11146cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011147#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011148_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011149
11150fi
11151
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011152echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11153echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11154if test "${ac_cv_header_time+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011156else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011157 cat >conftest.$ac_ext <<_ACEOF
11158/* confdefs.h. */
11159_ACEOF
11160cat confdefs.h >>conftest.$ac_ext
11161cat >>conftest.$ac_ext <<_ACEOF
11162/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011163#include <sys/types.h>
11164#include <sys/time.h>
11165#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011166
11167int
11168main ()
11169{
11170if ((struct tm *) 0)
11171return 0;
11172 ;
11173 return 0;
11174}
11175_ACEOF
11176rm -f conftest.$ac_objext
11177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11178 (eval $ac_compile) 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -z "$ac_c_werror_flag"
11186 || test ! -s conftest.err'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; } &&
11192 { ac_try='test -s conftest.$ac_objext'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011198 ac_cv_header_time=yes
11199else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011200 echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011202
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011203ac_cv_header_time=no
11204fi
11205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11206fi
11207echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11208echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011209if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011210
11211cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011212#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011213_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011214
11215fi
11216
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011217echo "$as_me:$LINENO: checking for ino_t" >&5
11218echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11219if test "${ac_cv_type_ino_t+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011221else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011222 cat >conftest.$ac_ext <<_ACEOF
11223/* confdefs.h. */
11224_ACEOF
11225cat confdefs.h >>conftest.$ac_ext
11226cat >>conftest.$ac_ext <<_ACEOF
11227/* end confdefs.h. */
11228$ac_includes_default
11229int
11230main ()
11231{
11232if ((ino_t *) 0)
11233 return 0;
11234if (sizeof (ino_t))
11235 return 0;
11236 ;
11237 return 0;
11238}
11239_ACEOF
11240rm -f conftest.$ac_objext
11241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -z "$ac_c_werror_flag"
11250 || test ! -s conftest.err'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try='test -s conftest.$ac_objext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011262 ac_cv_type_ino_t=yes
11263else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011264 echo "$as_me: failed program was:" >&5
11265sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011266
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011267ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011268fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011270fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011271echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11272echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11273if test $ac_cv_type_ino_t = yes; then
11274 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011275else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011276
11277cat >>confdefs.h <<_ACEOF
11278#define ino_t long
11279_ACEOF
11280
11281fi
11282
11283echo "$as_me:$LINENO: checking for dev_t" >&5
11284echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11285if test "${ac_cv_type_dev_t+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&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. */
11294$ac_includes_default
11295int
11296main ()
11297{
11298if ((dev_t *) 0)
11299 return 0;
11300if (sizeof (dev_t))
11301 return 0;
11302 ;
11303 return 0;
11304}
11305_ACEOF
11306rm -f conftest.$ac_objext
11307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11308 (eval $ac_compile) 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest.$ac_objext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011328 ac_cv_type_dev_t=yes
11329else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011330 echo "$as_me: failed program was:" >&5
11331sed 's/^/| /' conftest.$ac_ext >&5
11332
11333ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011334fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011336fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011337echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11338echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11339if test $ac_cv_type_dev_t = yes; then
11340 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011341else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011342
11343cat >>confdefs.h <<_ACEOF
11344#define dev_t unsigned
11345_ACEOF
11346
11347fi
11348
11349
11350echo "$as_me:$LINENO: checking for rlim_t" >&5
11351echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11352if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11353 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11354echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11355else
11356 cat >conftest.$ac_ext <<_ACEOF
11357/* confdefs.h. */
11358_ACEOF
11359cat confdefs.h >>conftest.$ac_ext
11360cat >>conftest.$ac_ext <<_ACEOF
11361/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011362
11363#include <sys/types.h>
11364#if STDC_HEADERS
11365#include <stdlib.h>
11366#include <stddef.h>
11367#endif
11368#ifdef HAVE_SYS_RESOURCE_H
11369#include <sys/resource.h>
11370#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011371
11372_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011374 $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 +000011375 ac_cv_type_rlim_t=yes
11376else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011377 ac_cv_type_rlim_t=no
11378fi
11379rm -f conftest*
11380
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011381 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11382echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011383fi
11384if test $ac_cv_type_rlim_t = no; then
11385 cat >> confdefs.h <<\EOF
11386#define rlim_t unsigned long
11387EOF
11388fi
11389
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011390echo "$as_me:$LINENO: checking for stack_t" >&5
11391echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011392if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011393 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11394echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011395else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011396 cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h. */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011402
11403#include <sys/types.h>
11404#if STDC_HEADERS
11405#include <stdlib.h>
11406#include <stddef.h>
11407#endif
11408#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011409
11410_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011412 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011413 ac_cv_type_stack_t=yes
11414else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011415 ac_cv_type_stack_t=no
11416fi
11417rm -f conftest*
11418
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011419 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11420echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011421fi
11422if test $ac_cv_type_stack_t = no; then
11423 cat >> confdefs.h <<\EOF
11424#define stack_t struct sigaltstack
11425EOF
11426fi
11427
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011428echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11429echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11430cat >conftest.$ac_ext <<_ACEOF
11431/* confdefs.h. */
11432_ACEOF
11433cat confdefs.h >>conftest.$ac_ext
11434cat >>conftest.$ac_ext <<_ACEOF
11435/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011436
11437#include <sys/types.h>
11438#if STDC_HEADERS
11439#include <stdlib.h>
11440#include <stddef.h>
11441#endif
11442#include <signal.h>
11443#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011444
11445int
11446main ()
11447{
11448stack_t sigstk; sigstk.ss_base = 0;
11449 ;
11450 return 0;
11451}
11452_ACEOF
11453rm -f conftest.$ac_objext
11454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>conftest.er1
11456 ac_status=$?
11457 grep -v '^ *+' conftest.er1 >conftest.err
11458 rm -f conftest.er1
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } &&
11462 { ac_try='test -z "$ac_c_werror_flag"
11463 || test ! -s conftest.err'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; } &&
11469 { ac_try='test -s conftest.$ac_objext'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 echo "$as_me:$LINENO: result: yes" >&5
11476echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011477#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011478_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011479
11480else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011481 echo "$as_me: failed program was:" >&5
11482sed 's/^/| /' conftest.$ac_ext >&5
11483
11484echo "$as_me:$LINENO: result: no" >&5
11485echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011486fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011488
11489olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011490echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11491echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11492
Bram Moolenaar071d4272004-06-13 20:20:40 +000011493# Check whether --with-tlib or --without-tlib was given.
11494if test "${with_tlib+set}" = set; then
11495 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011496
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011497fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011498if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011499 echo "$as_me:$LINENO: result: $with_tlib" >&5
11500echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011501 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011502 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11503echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11504 cat >conftest.$ac_ext <<_ACEOF
11505/* confdefs.h. */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011510
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011511int
11512main ()
11513{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011514
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011515 ;
11516 return 0;
11517}
11518_ACEOF
11519rm -f conftest.$ac_objext conftest$ac_exeext
11520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521 (eval $ac_link) 2>conftest.er1
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -z "$ac_c_werror_flag"
11529 || test ! -s conftest.err'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11541 echo "$as_me:$LINENO: result: OK" >&5
11542echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011543else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011544 echo "$as_me: failed program was:" >&5
11545sed 's/^/| /' conftest.$ac_ext >&5
11546
11547{ { echo "$as_me:$LINENO: error: FAILED" >&5
11548echo "$as_me: error: FAILED" >&2;}
11549 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011550fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011551rm -f conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011553 olibs="$LIBS"
11554else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011555 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11556echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011557 case "`uname -s 2>/dev/null`" in
11558 OSF1) tlibs="ncurses curses termlib termcap";;
11559 *) tlibs="ncurses termlib termcap curses";;
11560 esac
11561 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011562
11563as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11564echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11565echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11566if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011568else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011569 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000011570LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011571cat >conftest.$ac_ext <<_ACEOF
11572/* confdefs.h. */
11573_ACEOF
11574cat confdefs.h >>conftest.$ac_ext
11575cat >>conftest.$ac_ext <<_ACEOF
11576/* end confdefs.h. */
11577
Bram Moolenaar071d4272004-06-13 20:20:40 +000011578/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011579#ifdef __cplusplus
11580extern "C"
11581#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011582/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011583 builtin and then its argument prototype would still apply. */
11584char tgetent ();
11585int
11586main ()
11587{
11588tgetent ();
11589 ;
11590 return 0;
11591}
11592_ACEOF
11593rm -f conftest.$ac_objext conftest$ac_exeext
11594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595 (eval $ac_link) 2>conftest.er1
11596 ac_status=$?
11597 grep -v '^ *+' conftest.er1 >conftest.err
11598 rm -f conftest.er1
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try='test -z "$ac_c_werror_flag"
11603 || test ! -s conftest.err'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; } &&
11609 { ac_try='test -s conftest$ac_exeext'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11615 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011616else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011617 echo "$as_me: failed program was:" >&5
11618sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011619
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011620eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011621fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011622rm -f conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11624LIBS=$ac_check_lib_save_LIBS
11625fi
11626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11627echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11628if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11629 cat >>confdefs.h <<_ACEOF
11630#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11631_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011632
11633 LIBS="-l${libname} $LIBS"
11634
Bram Moolenaar071d4272004-06-13 20:20:40 +000011635fi
11636
11637 if test "x$olibs" != "x$LIBS"; then
11638 if test "$cross_compiling" = yes; then
11639 res="FAIL"
11640else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011641 cat >conftest.$ac_ext <<_ACEOF
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011647
11648#ifdef HAVE_TERMCAP_H
11649# include <termcap.h>
11650#endif
11651main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011652_ACEOF
11653rm -f conftest$ac_exeext
11654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011664 res="OK"
11665else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011666 echo "$as_me: program exited with status $ac_status" >&5
11667echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011669
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011670( exit $ac_status )
11671res="FAIL"
11672fi
11673rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11674fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011675 if test "$res" = "OK"; then
11676 break
11677 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011678 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11679echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011680 LIBS="$olibs"
11681 fi
11682 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011683 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011684 echo "$as_me:$LINENO: result: no terminal library found" >&5
11685echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011686 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011687fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011688
11689if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011690 echo "$as_me:$LINENO: checking for tgetent()" >&5
11691echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11692 cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011698
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011699int
11700main ()
11701{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011702char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011703 ;
11704 return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext conftest$ac_exeext
11708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 echo "$as_me:$LINENO: result: yes" >&5
11730echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011731else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011732 echo "$as_me: failed program was:" >&5
11733sed 's/^/| /' conftest.$ac_ext >&5
11734
11735{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011736 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011737 Or specify the name of the library with --with-tlib." >&5
11738echo "$as_me: error: NOT FOUND!
11739 You need to install a terminal library; for example ncurses.
11740 Or specify the name of the library with --with-tlib." >&2;}
11741 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011742fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011743rm -f conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011745fi
11746
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011747echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11748echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011749if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011750 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11751echo "$as_me: error: failed to compile test program." >&2;}
11752 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011753else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011754 cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h. */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011760
11761#ifdef HAVE_TERMCAP_H
11762# include <termcap.h>
11763#endif
11764main()
11765{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011766_ACEOF
11767rm -f conftest$ac_exeext
11768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11769 (eval $ac_link) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11779echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011780else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011781 echo "$as_me: program exited with status $ac_status" >&5
11782echo "$as_me: failed program was:" >&5
11783sed 's/^/| /' conftest.$ac_ext >&5
11784
11785( exit $ac_status )
11786echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11787echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011788#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011789_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011790
11791fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011792rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011793fi
11794
Bram Moolenaar071d4272004-06-13 20:20:40 +000011795if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011796 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11797echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011798 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011799 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11800echo "$as_me: error: failed to compile test program." >&2;}
11801 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011802else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011803 cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011809
11810#ifdef HAVE_TERMCAP_H
11811# include <termcap.h>
11812#endif
11813main()
11814{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011815_ACEOF
11816rm -f conftest$ac_exeext
11817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11818 (eval $ac_link) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 echo "$as_me:$LINENO: result: zero" >&5
11828echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011829#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011830_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011831
11832else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011833 echo "$as_me: program exited with status $ac_status" >&5
11834echo "$as_me: failed program was:" >&5
11835sed 's/^/| /' conftest.$ac_ext >&5
11836
11837( exit $ac_status )
11838echo "$as_me:$LINENO: result: non-zero" >&5
11839echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011840fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011841rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11842fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011843fi
11844
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011845echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11846echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11847cat >conftest.$ac_ext <<_ACEOF
11848/* confdefs.h. */
11849_ACEOF
11850cat confdefs.h >>conftest.$ac_ext
11851cat >>conftest.$ac_ext <<_ACEOF
11852/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011853
11854#ifdef HAVE_TERMCAP_H
11855# include <termcap.h>
11856#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011857
11858int
11859main ()
11860{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011861ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011862 ;
11863 return 0;
11864}
11865_ACEOF
11866rm -f conftest.$ac_objext conftest$ac_exeext
11867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11868 (eval $ac_link) 2>conftest.er1
11869 ac_status=$?
11870 grep -v '^ *+' conftest.er1 >conftest.err
11871 rm -f conftest.er1
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } &&
11875 { ac_try='test -z "$ac_c_werror_flag"
11876 || test ! -s conftest.err'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest$ac_exeext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 echo "$as_me:$LINENO: result: yes" >&5
11889echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011890#define HAVE_OSPEED 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011891_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011892
11893else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011894 echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897echo "$as_me:$LINENO: result: no" >&5
11898echo "${ECHO_T}no" >&6
11899 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11900echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11901 cat >conftest.$ac_ext <<_ACEOF
11902/* confdefs.h. */
11903_ACEOF
11904cat confdefs.h >>conftest.$ac_ext
11905cat >>conftest.$ac_ext <<_ACEOF
11906/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011907
11908#ifdef HAVE_TERMCAP_H
11909# include <termcap.h>
11910#endif
11911extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011912
11913int
11914main ()
11915{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011916ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011917 ;
11918 return 0;
11919}
11920_ACEOF
11921rm -f conftest.$ac_objext conftest$ac_exeext
11922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11923 (eval $ac_link) 2>conftest.er1
11924 ac_status=$?
11925 grep -v '^ *+' conftest.er1 >conftest.err
11926 rm -f conftest.er1
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } &&
11930 { ac_try='test -z "$ac_c_werror_flag"
11931 || test ! -s conftest.err'
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); }; } &&
11937 { ac_try='test -s conftest$ac_exeext'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; }; then
11943 echo "$as_me:$LINENO: result: yes" >&5
11944echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011945#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011946_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011947
11948else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011949 echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011951
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011952echo "$as_me:$LINENO: result: no" >&5
11953echo "${ECHO_T}no" >&6
11954fi
11955rm -f conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11957
11958fi
11959rm -f conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11961
11962echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11963echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11964cat >conftest.$ac_ext <<_ACEOF
11965/* confdefs.h. */
11966_ACEOF
11967cat confdefs.h >>conftest.$ac_ext
11968cat >>conftest.$ac_ext <<_ACEOF
11969/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011970
11971#ifdef HAVE_TERMCAP_H
11972# include <termcap.h>
11973#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011974
11975int
11976main ()
11977{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011978if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011979 ;
11980 return 0;
11981}
11982_ACEOF
11983rm -f conftest.$ac_objext conftest$ac_exeext
11984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11985 (eval $ac_link) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest$ac_exeext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 echo "$as_me:$LINENO: result: yes" >&5
12006echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012007#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012008_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012009
12010else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012011 echo "$as_me: failed program was:" >&5
12012sed 's/^/| /' conftest.$ac_ext >&5
12013
12014echo "$as_me:$LINENO: result: no" >&5
12015echo "${ECHO_T}no" >&6
12016 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12017echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12018 cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h. */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012024
12025#ifdef HAVE_TERMCAP_H
12026# include <termcap.h>
12027#endif
12028extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012029
12030int
12031main ()
12032{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012033if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012034 ;
12035 return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext conftest$ac_exeext
12039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12040 (eval $ac_link) 2>conftest.er1
12041 ac_status=$?
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -z "$ac_c_werror_flag"
12048 || test ! -s conftest.err'
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); }; } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 echo "$as_me:$LINENO: result: yes" >&5
12061echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012062#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012063_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012064
12065else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012066 echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012068
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012069echo "$as_me:$LINENO: result: no" >&5
12070echo "${ECHO_T}no" >&6
12071fi
12072rm -f conftest.err conftest.$ac_objext \
12073 conftest$ac_exeext conftest.$ac_ext
12074
12075fi
12076rm -f conftest.err conftest.$ac_objext \
12077 conftest$ac_exeext conftest.$ac_ext
12078
12079echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12080echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12081cat >conftest.$ac_ext <<_ACEOF
12082/* confdefs.h. */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012087
12088#ifdef HAVE_TERMCAP_H
12089# include <termcap.h>
12090#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012091
12092int
12093main ()
12094{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012095extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012096 ;
12097 return 0;
12098}
12099_ACEOF
12100rm -f conftest.$ac_objext
12101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102 (eval $ac_compile) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest.$ac_objext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 echo "$as_me:$LINENO: result: yes" >&5
12123echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012124#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012125_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012126
12127else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012128 echo "$as_me: failed program was:" >&5
12129sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012130
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012131echo "$as_me:$LINENO: result: no" >&5
12132echo "${ECHO_T}no" >&6
12133fi
12134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12135
12136echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12137echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12138cat >conftest.$ac_ext <<_ACEOF
12139/* confdefs.h. */
12140_ACEOF
12141cat confdefs.h >>conftest.$ac_ext
12142cat >>conftest.$ac_ext <<_ACEOF
12143/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012144
12145#include <sys/types.h>
12146#include <sys/time.h>
12147#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012148int
12149main ()
12150{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012151
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012152 ;
12153 return 0;
12154}
12155_ACEOF
12156rm -f conftest.$ac_objext
12157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12158 (eval $ac_compile) 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 echo "$as_me:$LINENO: result: yes" >&5
12179echo "${ECHO_T}yes" >&6
12180 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012181#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012182_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012183
12184else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012185 echo "$as_me: failed program was:" >&5
12186sed 's/^/| /' conftest.$ac_ext >&5
12187
12188echo "$as_me:$LINENO: result: no" >&5
12189echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012190fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012192
12193
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012194echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12195echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012196if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012197 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012198#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012199_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012200
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012201 echo "$as_me:$LINENO: result: yes" >&5
12202echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012203else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012204 echo "$as_me:$LINENO: result: no" >&5
12205echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012206fi
12207
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012208echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12209echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012210if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012211 cat >conftest.$ac_ext <<_ACEOF
12212/* confdefs.h. */
12213_ACEOF
12214cat confdefs.h >>conftest.$ac_ext
12215cat >>conftest.$ac_ext <<_ACEOF
12216/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012217
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012218int
12219main ()
12220{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012221ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012222 ;
12223 return 0;
12224}
12225_ACEOF
12226rm -f conftest.$ac_objext conftest$ac_exeext
12227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228 (eval $ac_link) 2>conftest.er1
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try='test -z "$ac_c_werror_flag"
12236 || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest$ac_exeext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 echo "$as_me:$LINENO: result: yes" >&5
12249echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012250#define HAVE_SVR4_PTYS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012251_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012252
12253else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012254 echo "$as_me: failed program was:" >&5
12255sed 's/^/| /' conftest.$ac_ext >&5
12256
12257echo "$as_me:$LINENO: result: no" >&5
12258echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012259fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012260rm -f conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012262else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012263 echo "$as_me:$LINENO: result: no" >&5
12264echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012265fi
12266
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012267echo "$as_me:$LINENO: checking for ptyranges" >&5
12268echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012269if test -d /dev/ptym ; then
12270 pdir='/dev/ptym'
12271else
12272 pdir='/dev'
12273fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012274cat >conftest.$ac_ext <<_ACEOF
12275/* confdefs.h. */
12276_ACEOF
12277cat confdefs.h >>conftest.$ac_ext
12278cat >>conftest.$ac_ext <<_ACEOF
12279/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012280#ifdef M_UNIX
12281 yes;
12282#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012283
12284_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012286 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012287 ptys=`echo /dev/ptyp??`
12288else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012289 ptys=`echo $pdir/pty??`
12290fi
12291rm -f conftest*
12292
12293if test "$ptys" != "$pdir/pty??" ; then
12294 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12295 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012296 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012297#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012298_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012299
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012300 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012301#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012302_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012303
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012304 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12305echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012306else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012307 echo "$as_me:$LINENO: result: don't know" >&5
12308echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012309fi
12310
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012311echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12312echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012313rm -f conftest_grp
12314if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012315 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12316echo "$as_me: error: failed to compile test program" >&2;}
12317 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012318else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012319 cat >conftest.$ac_ext <<_ACEOF
12320/* confdefs.h. */
12321_ACEOF
12322cat confdefs.h >>conftest.$ac_ext
12323cat >>conftest.$ac_ext <<_ACEOF
12324/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012325
12326#include <sys/types.h>
12327#include <sys/stat.h>
12328#include <stdio.h>
12329main()
12330{
12331 struct stat sb;
12332 char *x,*ttyname();
12333 int om, m;
12334 FILE *fp;
12335
12336 if (!(x = ttyname(0))) exit(1);
12337 if (stat(x, &sb)) exit(1);
12338 om = sb.st_mode;
12339 if (om & 002) exit(0);
12340 m = system("mesg y");
12341 if (m == -1 || m == 127) exit(1);
12342 if (stat(x, &sb)) exit(1);
12343 m = sb.st_mode;
12344 if (chmod(x, om)) exit(1);
12345 if (m & 002) exit(0);
12346 if (sb.st_gid == getgid()) exit(1);
12347 if (!(fp=fopen("conftest_grp", "w")))
12348 exit(1);
12349 fprintf(fp, "%d\n", sb.st_gid);
12350 fclose(fp);
12351 exit(0);
12352}
12353
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012354_ACEOF
12355rm -f conftest$ac_exeext
12356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357 (eval $ac_link) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366
Bram Moolenaar071d4272004-06-13 20:20:40 +000012367 if test -f conftest_grp; then
12368 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012369 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12370echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12371 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012372#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012373_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012374
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012375 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012376#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012377_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012378
12379 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012380 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12381echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012382 fi
12383
12384else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012385 echo "$as_me: program exited with status $ac_status" >&5
12386echo "$as_me: failed program was:" >&5
12387sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012388
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012389( exit $ac_status )
12390echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12391echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12392fi
12393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12394fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012395rm -f conftest_grp
12396
12397
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012398echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12399echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12400if test "${ac_cv_type_signal+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012402else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012403 cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012409#include <sys/types.h>
12410#include <signal.h>
12411#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012412# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000012413#endif
12414#ifdef __cplusplus
12415extern "C" void (*signal (int, void (*)(int)))(int);
12416#else
12417void (*signal ()) ();
12418#endif
12419
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012420int
12421main ()
12422{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012423int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012424 ;
12425 return 0;
12426}
12427_ACEOF
12428rm -f conftest.$ac_objext
12429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430 (eval $ac_compile) 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -z "$ac_c_werror_flag"
12438 || test ! -s conftest.err'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } &&
12444 { ac_try='test -s conftest.$ac_objext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012450 ac_cv_type_signal=void
12451else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012452 echo "$as_me: failed program was:" >&5
12453sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012454
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012455ac_cv_type_signal=int
12456fi
12457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12458fi
12459echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12460echo "${ECHO_T}$ac_cv_type_signal" >&6
12461
12462cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012463#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012464_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012465
12466
12467
12468if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012469 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012470#define SIGRETURN return
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012471_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012472
12473else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012474 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012475#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012476_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012477
12478fi
12479
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012480echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12481echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12482cat >conftest.$ac_ext <<_ACEOF
12483/* confdefs.h. */
12484_ACEOF
12485cat confdefs.h >>conftest.$ac_ext
12486cat >>conftest.$ac_ext <<_ACEOF
12487/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012488
12489#include <signal.h>
12490test_sig()
12491{
12492 struct sigcontext *scont;
12493 scont = (struct sigcontext *)0;
12494 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012495}
12496int
12497main ()
12498{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012499
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012500 ;
12501 return 0;
12502}
12503_ACEOF
12504rm -f conftest.$ac_objext
12505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12506 (eval $ac_compile) 2>conftest.er1
12507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
12513 { ac_try='test -z "$ac_c_werror_flag"
12514 || test ! -s conftest.err'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest.$ac_objext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 echo "$as_me:$LINENO: result: yes" >&5
12527echo "${ECHO_T}yes" >&6
12528 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012529#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012530_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012531
12532else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012533 echo "$as_me: failed program was:" >&5
12534sed 's/^/| /' conftest.$ac_ext >&5
12535
12536echo "$as_me:$LINENO: result: no" >&5
12537echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012538fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012540
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012541echo "$as_me:$LINENO: checking getcwd implementation" >&5
12542echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012543if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012544 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12545echo "$as_me: error: failed to compile test program" >&2;}
12546 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012547else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012548 cat >conftest.$ac_ext <<_ACEOF
12549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012554
12555char *dagger[] = { "IFS=pwd", 0 };
12556main()
12557{
12558 char buffer[500];
12559 extern char **environ;
12560 environ = dagger;
12561 return getcwd(buffer, 500) ? 0 : 1;
12562}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012563_ACEOF
12564rm -f conftest$ac_exeext
12565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566 (eval $ac_link) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 echo "$as_me:$LINENO: result: it is usable" >&5
12576echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012577else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012578 echo "$as_me: program exited with status $ac_status" >&5
12579echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
12581
12582( exit $ac_status )
12583echo "$as_me:$LINENO: result: it stinks" >&5
12584echo "${ECHO_T}it stinks" >&6
12585 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012586#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012587_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012588
12589fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012590rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012591fi
12592
12593
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
Bram Moolenaar071d4272004-06-13 20:20:40 +000012639for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12640 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12641 memset nanosleep opendir putenv qsort readlink select setenv \
12642 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000012643 sigvec strcasecmp strerror strftime stricmp strncasecmp \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000012644 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12645 usleep utime utimes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012646do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12648echo "$as_me:$LINENO: checking for $ac_func" >&5
12649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12650if eval "test \"\${$as_ac_var+set}\" = set"; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012652else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012653 cat >conftest.$ac_ext <<_ACEOF
12654/* confdefs.h. */
12655_ACEOF
12656cat confdefs.h >>conftest.$ac_ext
12657cat >>conftest.$ac_ext <<_ACEOF
12658/* end confdefs.h. */
12659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12661#define $ac_func innocuous_$ac_func
12662
Bram Moolenaar071d4272004-06-13 20:20:40 +000012663/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012664 which can conflict with char $ac_func (); below.
12665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12666 <limits.h> exists even on freestanding compilers. */
12667
12668#ifdef __STDC__
12669# include <limits.h>
12670#else
12671# include <assert.h>
12672#endif
12673
12674#undef $ac_func
12675
Bram Moolenaar071d4272004-06-13 20:20:40 +000012676/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012677#ifdef __cplusplus
12678extern "C"
12679{
12680#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012681/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012682 builtin and then its argument prototype would still apply. */
12683char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000012684/* The GNU C library defines this for functions which it implements
12685 to always fail with ENOSYS. Some functions are actually named
12686 something starting with __ and the normal name is an alias. */
12687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12688choke me
12689#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012690char (*f) () = $ac_func;
12691#endif
12692#ifdef __cplusplus
12693}
Bram Moolenaar071d4272004-06-13 20:20:40 +000012694#endif
12695
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012696int
12697main ()
12698{
12699return f != $ac_func;
12700 ;
12701 return 0;
12702}
12703_ACEOF
12704rm -f conftest.$ac_objext conftest$ac_exeext
12705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12706 (eval $ac_link) 2>conftest.er1
12707 ac_status=$?
12708 grep -v '^ *+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try='test -z "$ac_c_werror_flag"
12714 || test ! -s conftest.err'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } &&
12720 { ac_try='test -s conftest$ac_exeext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012727else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012728 echo "$as_me: failed program was:" >&5
12729sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012730
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012731eval "$as_ac_var=no"
12732fi
12733rm -f conftest.err conftest.$ac_objext \
12734 conftest$ac_exeext conftest.$ac_ext
12735fi
12736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12737echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12738if test `eval echo '${'$as_ac_var'}'` = yes; then
12739 cat >>confdefs.h <<_ACEOF
12740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12741_ACEOF
12742
Bram Moolenaar071d4272004-06-13 20:20:40 +000012743fi
12744done
12745
12746
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012747echo "$as_me:$LINENO: checking for st_blksize" >&5
12748echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12749cat >conftest.$ac_ext <<_ACEOF
12750/* confdefs.h. */
12751_ACEOF
12752cat confdefs.h >>conftest.$ac_ext
12753cat >>conftest.$ac_ext <<_ACEOF
12754/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012755#include <sys/types.h>
12756#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012757int
12758main ()
12759{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012760 struct stat st;
12761 int n;
12762
12763 stat("/", &st);
12764 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012765 ;
12766 return 0;
12767}
12768_ACEOF
12769rm -f conftest.$ac_objext
12770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12771 (eval $ac_compile) 2>conftest.er1
12772 ac_status=$?
12773 grep -v '^ *+' conftest.er1 >conftest.err
12774 rm -f conftest.er1
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } &&
12778 { ac_try='test -z "$ac_c_werror_flag"
12779 || test ! -s conftest.err'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest.$ac_objext'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 echo "$as_me:$LINENO: result: yes" >&5
12792echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012793#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012794_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012795
12796else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012797 echo "$as_me: failed program was:" >&5
12798sed 's/^/| /' conftest.$ac_ext >&5
12799
12800echo "$as_me:$LINENO: result: no" >&5
12801echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012802fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012804
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012805echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12806echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012807if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012808 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12809echo "$as_me: error: failed to compile test program" >&2;}
12810 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012811else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012812 cat >conftest.$ac_ext <<_ACEOF
12813/* confdefs.h. */
12814_ACEOF
12815cat confdefs.h >>conftest.$ac_ext
12816cat >>conftest.$ac_ext <<_ACEOF
12817/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012818#include <sys/types.h>
12819#include <sys/stat.h>
12820main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012821_ACEOF
12822rm -f conftest$ac_exeext
12823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824 (eval $ac_link) 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12833 echo "$as_me:$LINENO: result: yes" >&5
12834echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012835#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012836_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012837
12838else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012839 echo "$as_me: program exited with status $ac_status" >&5
12840echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
12843( exit $ac_status )
12844echo "$as_me:$LINENO: result: no" >&5
12845echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012846fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012847rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012848fi
12849
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012850echo "$as_me:$LINENO: checking for iconv_open()" >&5
12851echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012852save_LIBS="$LIBS"
12853LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012854cat >conftest.$ac_ext <<_ACEOF
12855/* confdefs.h. */
12856_ACEOF
12857cat confdefs.h >>conftest.$ac_ext
12858cat >>conftest.$ac_ext <<_ACEOF
12859/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012860
12861#ifdef HAVE_ICONV_H
12862# include <iconv.h>
12863#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012864
12865int
12866main ()
12867{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012868iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012869 ;
12870 return 0;
12871}
12872_ACEOF
12873rm -f conftest.$ac_objext conftest$ac_exeext
12874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12896echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012897#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012898_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012899
12900else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012901 echo "$as_me: failed program was:" >&5
12902sed 's/^/| /' conftest.$ac_ext >&5
12903
12904LIBS="$save_LIBS"
12905 cat >conftest.$ac_ext <<_ACEOF
12906/* confdefs.h. */
12907_ACEOF
12908cat confdefs.h >>conftest.$ac_ext
12909cat >>conftest.$ac_ext <<_ACEOF
12910/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012911
12912#ifdef HAVE_ICONV_H
12913# include <iconv.h>
12914#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012915
12916int
12917main ()
12918{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012919iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012920 ;
12921 return 0;
12922}
12923_ACEOF
12924rm -f conftest.$ac_objext conftest$ac_exeext
12925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926 (eval $ac_link) 2>conftest.er1
12927 ac_status=$?
12928 grep -v '^ *+' conftest.er1 >conftest.err
12929 rm -f conftest.er1
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -z "$ac_c_werror_flag"
12934 || test ! -s conftest.err'
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); }; } &&
12940 { ac_try='test -s conftest$ac_exeext'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; }; then
12946 echo "$as_me:$LINENO: result: yes" >&5
12947echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012948#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012949_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012950
12951else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012952 echo "$as_me: failed program was:" >&5
12953sed 's/^/| /' conftest.$ac_ext >&5
12954
12955echo "$as_me:$LINENO: result: no" >&5
12956echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012957fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012958rm -f conftest.err conftest.$ac_objext \
12959 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012960fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012961rm -f conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012963
12964
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012965echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12966echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12967cat >conftest.$ac_ext <<_ACEOF
12968/* confdefs.h. */
12969_ACEOF
12970cat confdefs.h >>conftest.$ac_ext
12971cat >>conftest.$ac_ext <<_ACEOF
12972/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012973
12974#ifdef HAVE_LANGINFO_H
12975# include <langinfo.h>
12976#endif
12977
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012978int
12979main ()
12980{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012981char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012982 ;
12983 return 0;
12984}
12985_ACEOF
12986rm -f conftest.$ac_objext conftest$ac_exeext
12987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12988 (eval $ac_link) 2>conftest.er1
12989 ac_status=$?
12990 grep -v '^ *+' conftest.er1 >conftest.err
12991 rm -f conftest.er1
12992 cat conftest.err >&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -z "$ac_c_werror_flag"
12996 || test ! -s conftest.err'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 echo "$as_me:$LINENO: result: yes" >&5
13009echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013010#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013011_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013012
13013else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013014 echo "$as_me: failed program was:" >&5
13015sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013016
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013017echo "$as_me:$LINENO: result: no" >&5
13018echo "${ECHO_T}no" >&6
13019fi
13020rm -f conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13022
13023echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13024echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013025# Check whether --enable-acl or --disable-acl was given.
13026if test "${enable_acl+set}" = set; then
13027 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013028
Bram Moolenaar071d4272004-06-13 20:20:40 +000013029else
13030 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013031fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013032if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013033echo "$as_me:$LINENO: result: no" >&5
13034echo "${ECHO_T}no" >&6
13035echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13036echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13037if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013039else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013040 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013041LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013042cat >conftest.$ac_ext <<_ACEOF
13043/* confdefs.h. */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h. */
13048
Bram Moolenaar071d4272004-06-13 20:20:40 +000013049/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013050#ifdef __cplusplus
13051extern "C"
13052#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013053/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013054 builtin and then its argument prototype would still apply. */
13055char acl_get_file ();
13056int
13057main ()
13058{
13059acl_get_file ();
13060 ;
13061 return 0;
13062}
13063_ACEOF
13064rm -f conftest.$ac_objext conftest$ac_exeext
13065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066 (eval $ac_link) 2>conftest.er1
13067 ac_status=$?
13068 grep -v '^ *+' conftest.er1 >conftest.err
13069 rm -f conftest.er1
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -z "$ac_c_werror_flag"
13074 || test ! -s conftest.err'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } &&
13080 { ac_try='test -s conftest$ac_exeext'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13086 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013087else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013088 echo "$as_me: failed program was:" >&5
13089sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013090
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013091ac_cv_lib_posix1e_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013092fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013093rm -f conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13095LIBS=$ac_check_lib_save_LIBS
13096fi
13097echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13098echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13099if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013100 LIBS="$LIBS -lposix1e"
13101else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013102 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13103echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13104if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013106else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013107 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013108LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013109cat >conftest.$ac_ext <<_ACEOF
13110/* confdefs.h. */
13111_ACEOF
13112cat confdefs.h >>conftest.$ac_ext
13113cat >>conftest.$ac_ext <<_ACEOF
13114/* end confdefs.h. */
13115
Bram Moolenaar071d4272004-06-13 20:20:40 +000013116/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013117#ifdef __cplusplus
13118extern "C"
13119#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013120/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013121 builtin and then its argument prototype would still apply. */
13122char acl_get_file ();
13123int
13124main ()
13125{
13126acl_get_file ();
13127 ;
13128 return 0;
13129}
13130_ACEOF
13131rm -f conftest.$ac_objext conftest$ac_exeext
13132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13133 (eval $ac_link) 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_c_werror_flag"
13141 || test ! -s conftest.err'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
13153 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013154else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013155 echo "$as_me: failed program was:" >&5
13156sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013157
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013158ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013159fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013160rm -f conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext conftest.$ac_ext
13162LIBS=$ac_check_lib_save_LIBS
13163fi
13164echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13165echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13166if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013167 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013168 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13169echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13170if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013172else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013173 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013174LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013175cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
13181
Bram Moolenaar071d4272004-06-13 20:20:40 +000013182/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013183#ifdef __cplusplus
13184extern "C"
13185#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013186/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013187 builtin and then its argument prototype would still apply. */
13188char fgetxattr ();
13189int
13190main ()
13191{
13192fgetxattr ();
13193 ;
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 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013220else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013223
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013224ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013225fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013226rm -f conftest.err conftest.$ac_objext \
13227 conftest$ac_exeext conftest.$ac_ext
13228LIBS=$ac_check_lib_save_LIBS
13229fi
13230echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13231echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13232if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013233 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013234fi
13235
Bram Moolenaar071d4272004-06-13 20:20:40 +000013236fi
13237
13238fi
13239
13240
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013241echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13242echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13243cat >conftest.$ac_ext <<_ACEOF
13244/* confdefs.h. */
13245_ACEOF
13246cat confdefs.h >>conftest.$ac_ext
13247cat >>conftest.$ac_ext <<_ACEOF
13248/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013249
13250#include <sys/types.h>
13251#ifdef HAVE_SYS_ACL_H
13252# include <sys/acl.h>
13253#endif
13254acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013255int
13256main ()
13257{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013258acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13259 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13260 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013261 ;
13262 return 0;
13263}
13264_ACEOF
13265rm -f conftest.$ac_objext conftest$ac_exeext
13266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13267 (eval $ac_link) 2>conftest.er1
13268 ac_status=$?
13269 grep -v '^ *+' conftest.er1 >conftest.err
13270 rm -f conftest.er1
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
13274 { ac_try='test -z "$ac_c_werror_flag"
13275 || test ! -s conftest.err'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest$ac_exeext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 echo "$as_me:$LINENO: result: yes" >&5
13288echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013289#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013290_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013291
13292else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013293 echo "$as_me: failed program was:" >&5
13294sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013295
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013296echo "$as_me:$LINENO: result: no" >&5
13297echo "${ECHO_T}no" >&6
13298fi
13299rm -f conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13301
13302echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13303echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13304cat >conftest.$ac_ext <<_ACEOF
13305/* confdefs.h. */
13306_ACEOF
13307cat confdefs.h >>conftest.$ac_ext
13308cat >>conftest.$ac_ext <<_ACEOF
13309/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013310
13311#ifdef HAVE_SYS_ACL_H
13312# include <sys/acl.h>
13313#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013314int
13315main ()
13316{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013317acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013318
13319 ;
13320 return 0;
13321}
13322_ACEOF
13323rm -f conftest.$ac_objext conftest$ac_exeext
13324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13325 (eval $ac_link) 2>conftest.er1
13326 ac_status=$?
13327 grep -v '^ *+' conftest.er1 >conftest.err
13328 rm -f conftest.er1
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -z "$ac_c_werror_flag"
13333 || test ! -s conftest.err'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; } &&
13339 { ac_try='test -s conftest$ac_exeext'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13345 echo "$as_me:$LINENO: result: yes" >&5
13346echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013347#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013348_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013349
13350else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013351 echo "$as_me: failed program was:" >&5
13352sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013353
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013354echo "$as_me:$LINENO: result: no" >&5
13355echo "${ECHO_T}no" >&6
13356fi
13357rm -f conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13359
13360echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13361echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13362cat >conftest.$ac_ext <<_ACEOF
13363/* confdefs.h. */
13364_ACEOF
13365cat confdefs.h >>conftest.$ac_ext
13366cat >>conftest.$ac_ext <<_ACEOF
13367/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013368
13369#ifdef HAVE_SYS_ACL_H
13370# include <sys/acl.h>
13371#endif
13372#ifdef HAVE_SYS_ACCESS_H
13373# include <sys/access.h>
13374#endif
13375#define _ALL_SOURCE
13376
13377#include <sys/stat.h>
13378
13379int aclsize;
13380struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013381int
13382main ()
13383{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013384aclsize = sizeof(struct acl);
13385 aclent = (void *)malloc(aclsize);
13386 statacl("foo", STX_NORMAL, aclent, aclsize);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013387
13388 ;
13389 return 0;
13390}
13391_ACEOF
13392rm -f conftest.$ac_objext conftest$ac_exeext
13393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13394 (eval $ac_link) 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
13401 { ac_try='test -z "$ac_c_werror_flag"
13402 || test ! -s conftest.err'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; } &&
13408 { ac_try='test -s conftest$ac_exeext'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
13414 echo "$as_me:$LINENO: result: yes" >&5
13415echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013416#define HAVE_AIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013417_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013418
13419else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013420 echo "$as_me: failed program was:" >&5
13421sed 's/^/| /' conftest.$ac_ext >&5
13422
13423echo "$as_me:$LINENO: result: no" >&5
13424echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013425fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013426rm -f conftest.err conftest.$ac_objext \
13427 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013428else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013429 echo "$as_me:$LINENO: result: yes" >&5
13430echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013431fi
13432
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013433echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13434echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013435# Check whether --enable-gpm or --disable-gpm was given.
13436if test "${enable_gpm+set}" = set; then
13437 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013438
Bram Moolenaar071d4272004-06-13 20:20:40 +000013439else
13440 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013441fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013442
13443if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013444 echo "$as_me:$LINENO: result: no" >&5
13445echo "${ECHO_T}no" >&6
13446 echo "$as_me:$LINENO: checking for gpm" >&5
13447echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13448if test "${vi_cv_have_gpm+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013450else
13451 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013452 cat >conftest.$ac_ext <<_ACEOF
13453/* confdefs.h. */
13454_ACEOF
13455cat confdefs.h >>conftest.$ac_ext
13456cat >>conftest.$ac_ext <<_ACEOF
13457/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013458#include <gpm.h>
13459 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013460int
13461main ()
13462{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013463Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013464 ;
13465 return 0;
13466}
13467_ACEOF
13468rm -f conftest.$ac_objext conftest$ac_exeext
13469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13470 (eval $ac_link) 2>conftest.er1
13471 ac_status=$?
13472 grep -v '^ *+' conftest.er1 >conftest.err
13473 rm -f conftest.er1
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -z "$ac_c_werror_flag"
13478 || test ! -s conftest.err'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try='test -s conftest$ac_exeext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013490 vi_cv_have_gpm=yes
13491else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013492 echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013494
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013495vi_cv_have_gpm=no
13496fi
13497rm -f conftest.err conftest.$ac_objext \
13498 conftest$ac_exeext conftest.$ac_ext
13499 LIBS="$olibs"
13500
13501fi
13502echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13503echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013504 if test $vi_cv_have_gpm = yes; then
13505 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013506 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013507#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013508_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013509
13510 fi
13511else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013512 echo "$as_me:$LINENO: result: yes" >&5
13513echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013514fi
13515
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013516echo "$as_me:$LINENO: checking for rename" >&5
13517echo $ECHO_N "checking for rename... $ECHO_C" >&6
13518cat >conftest.$ac_ext <<_ACEOF
13519/* confdefs.h. */
13520_ACEOF
13521cat confdefs.h >>conftest.$ac_ext
13522cat >>conftest.$ac_ext <<_ACEOF
13523/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013524#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013525int
13526main ()
13527{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013528rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013529 ;
13530 return 0;
13531}
13532_ACEOF
13533rm -f conftest.$ac_objext conftest$ac_exeext
13534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13535 (eval $ac_link) 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
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); }; } &&
13549 { ac_try='test -s conftest$ac_exeext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 echo "$as_me:$LINENO: result: yes" >&5
13556echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013557#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013558_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013559
13560else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013561 echo "$as_me: failed program was:" >&5
13562sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013563
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013564echo "$as_me:$LINENO: result: no" >&5
13565echo "${ECHO_T}no" >&6
13566fi
13567rm -f conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569
13570echo "$as_me:$LINENO: checking for sysctl" >&5
13571echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13572cat >conftest.$ac_ext <<_ACEOF
13573/* confdefs.h. */
13574_ACEOF
13575cat confdefs.h >>conftest.$ac_ext
13576cat >>conftest.$ac_ext <<_ACEOF
13577/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013578#include <sys/types.h>
13579#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013580int
13581main ()
13582{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013583 int mib[2], r;
13584 size_t len;
13585
13586 mib[0] = CTL_HW;
13587 mib[1] = HW_USERMEM;
13588 len = sizeof(r);
13589 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013590
13591 ;
13592 return 0;
13593}
13594_ACEOF
13595rm -f conftest.$ac_objext
13596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597 (eval $ac_compile) 2>conftest.er1
13598 ac_status=$?
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -f conftest.er1
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -z "$ac_c_werror_flag"
13605 || test ! -s conftest.err'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest.$ac_objext'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13617 echo "$as_me:$LINENO: result: yes" >&5
13618echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013619#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013620_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013621
13622else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013623 echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013625
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013626echo "$as_me:$LINENO: result: not usable" >&5
13627echo "${ECHO_T}not usable" >&6
13628fi
13629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13630
13631echo "$as_me:$LINENO: checking for sysinfo" >&5
13632echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13633cat >conftest.$ac_ext <<_ACEOF
13634/* confdefs.h. */
13635_ACEOF
13636cat confdefs.h >>conftest.$ac_ext
13637cat >>conftest.$ac_ext <<_ACEOF
13638/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013639#include <sys/types.h>
13640#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013641int
13642main ()
13643{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013644 struct sysinfo sinfo;
13645 int t;
13646
13647 (void)sysinfo(&sinfo);
13648 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013649
13650 ;
13651 return 0;
13652}
13653_ACEOF
13654rm -f conftest.$ac_objext
13655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -z "$ac_c_werror_flag"
13664 || test ! -s conftest.err'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest.$ac_objext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 echo "$as_me:$LINENO: result: yes" >&5
13677echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013678#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013679_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013680
13681else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013682 echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013684
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013685echo "$as_me:$LINENO: result: not usable" >&5
13686echo "${ECHO_T}not usable" >&6
13687fi
13688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13689
13690echo "$as_me:$LINENO: checking for sysconf" >&5
13691echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13692cat >conftest.$ac_ext <<_ACEOF
13693/* confdefs.h. */
13694_ACEOF
13695cat confdefs.h >>conftest.$ac_ext
13696cat >>conftest.$ac_ext <<_ACEOF
13697/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013698#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013699int
13700main ()
13701{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013702 (void)sysconf(_SC_PAGESIZE);
13703 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013704
13705 ;
13706 return 0;
13707}
13708_ACEOF
13709rm -f conftest.$ac_objext
13710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13711 (eval $ac_compile) 2>conftest.er1
13712 ac_status=$?
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try='test -z "$ac_c_werror_flag"
13719 || test ! -s conftest.err'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; } &&
13725 { ac_try='test -s conftest.$ac_objext'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 echo "$as_me:$LINENO: result: yes" >&5
13732echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013733#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013734_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013735
13736else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013737 echo "$as_me: failed program was:" >&5
13738sed 's/^/| /' conftest.$ac_ext >&5
13739
13740echo "$as_me:$LINENO: result: not usable" >&5
13741echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013742fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013744
13745
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013746echo "$as_me:$LINENO: checking size of int" >&5
13747echo $ECHO_N "checking size of int... $ECHO_C" >&6
13748if test "${ac_cv_sizeof_int+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013750else
13751 if 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#include <stdio.h>
13763 main()
13764 {
13765 FILE *f=fopen("conftestval", "w");
13766 if (!f) exit(1);
13767 fprintf(f, "%d\n", (int)sizeof(int));
13768 exit(0);
13769 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013770_ACEOF
13771rm -f conftest$ac_exeext
13772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13773 (eval $ac_link) 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013782 ac_cv_sizeof_int=`cat conftestval`
13783else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013784 echo "$as_me: program exited with status $ac_status" >&5
13785echo "$as_me: failed program was:" >&5
13786sed 's/^/| /' conftest.$ac_ext >&5
13787
13788( exit $ac_status )
13789ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000013790fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013791rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13792fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013793fi
13794
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013795echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13796echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13797cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013798#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013799_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013800
13801
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013802echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13803echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013804bcopy_test_prog='
13805main() {
13806 char buf[10];
13807 strcpy(buf, "abcdefghi");
13808 mch_memmove(buf, buf + 2, 3);
13809 if (strncmp(buf, "ababcf", 6))
13810 exit(1);
13811 strcpy(buf, "abcdefghi");
13812 mch_memmove(buf + 2, buf, 3);
13813 if (strncmp(buf, "cdedef", 6))
13814 exit(1);
13815 exit(0); /* libc version works properly. */
13816}'
13817
13818
13819if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013820 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13821echo "$as_me: error: failed to compile test program" >&2;}
13822 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013823else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013824 cat >conftest.$ac_ext <<_ACEOF
13825/* confdefs.h. */
13826_ACEOF
13827cat confdefs.h >>conftest.$ac_ext
13828cat >>conftest.$ac_ext <<_ACEOF
13829/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013830#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013831_ACEOF
13832rm -f conftest$ac_exeext
13833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13834 (eval $ac_link) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013844#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013845_ACEOF
13846 echo "$as_me:$LINENO: result: memmove does" >&5
13847echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013848else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013849 echo "$as_me: program exited with status $ac_status" >&5
13850echo "$as_me: failed program was:" >&5
13851sed 's/^/| /' conftest.$ac_ext >&5
13852
13853( exit $ac_status )
13854if test "$cross_compiling" = yes; then
13855 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13856echo "$as_me: error: failed to compile test program" >&2;}
13857 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013858else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013859 cat >conftest.$ac_ext <<_ACEOF
13860/* confdefs.h. */
13861_ACEOF
13862cat confdefs.h >>conftest.$ac_ext
13863cat >>conftest.$ac_ext <<_ACEOF
13864/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013865#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013866_ACEOF
13867rm -f conftest$ac_exeext
13868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13869 (eval $ac_link) 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013879#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013880_ACEOF
13881 echo "$as_me:$LINENO: result: bcopy does" >&5
13882echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013883else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013884 echo "$as_me: program exited with status $ac_status" >&5
13885echo "$as_me: failed program was:" >&5
13886sed 's/^/| /' conftest.$ac_ext >&5
13887
13888( exit $ac_status )
13889if test "$cross_compiling" = yes; then
13890 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13891echo "$as_me: error: failed to compile test program" >&2;}
13892 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013893else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013894 cat >conftest.$ac_ext <<_ACEOF
13895/* confdefs.h. */
13896_ACEOF
13897cat confdefs.h >>conftest.$ac_ext
13898cat >>conftest.$ac_ext <<_ACEOF
13899/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013900#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013901_ACEOF
13902rm -f conftest$ac_exeext
13903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13904 (eval $ac_link) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013914#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013915_ACEOF
13916 echo "$as_me:$LINENO: result: memcpy does" >&5
13917echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013918else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013919 echo "$as_me: program exited with status $ac_status" >&5
13920echo "$as_me: failed program was:" >&5
13921sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013922
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013923( exit $ac_status )
13924echo "$as_me:$LINENO: result: no" >&5
13925echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013926fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013928fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013929fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013930rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013931fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013932fi
13933rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13934fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013935
13936
13937if test "$enable_multibyte" = "yes"; then
13938 cflags_save=$CFLAGS
13939 ldflags_save=$LDFLAGS
13940 if test -n "$x_includes" ; then
13941 CFLAGS="$CFLAGS -I$x_includes"
13942 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013943 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
13944echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
13945 cat >conftest.$ac_ext <<_ACEOF
13946/* confdefs.h. */
13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
13950/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013951#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013952int
13953main ()
13954{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013955
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013956 ;
13957 return 0;
13958}
13959_ACEOF
13960rm -f conftest.$ac_objext
13961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13962 (eval $ac_compile) 2>conftest.er1
13963 ac_status=$?
13964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } &&
13969 { ac_try='test -z "$ac_c_werror_flag"
13970 || test ! -s conftest.err'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; } &&
13976 { ac_try='test -s conftest.$ac_objext'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 cat >conftest.$ac_ext <<_ACEOF
13983/* confdefs.h. */
13984_ACEOF
13985cat confdefs.h >>conftest.$ac_ext
13986cat >>conftest.$ac_ext <<_ACEOF
13987/* end confdefs.h. */
13988
Bram Moolenaar071d4272004-06-13 20:20:40 +000013989/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013990#ifdef __cplusplus
13991extern "C"
13992#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013993/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013994 builtin and then its argument prototype would still apply. */
13995char _Xsetlocale ();
13996int
13997main ()
13998{
13999_Xsetlocale ();
14000 ;
14001 return 0;
14002}
14003_ACEOF
14004rm -f conftest.$ac_objext conftest$ac_exeext
14005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14006 (eval $ac_link) 2>conftest.er1
14007 ac_status=$?
14008 grep -v '^ *+' conftest.er1 >conftest.err
14009 rm -f conftest.er1
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -z "$ac_c_werror_flag"
14014 || test ! -s conftest.err'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest$ac_exeext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14023 ac_status=$?
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14026 echo "$as_me:$LINENO: result: yes" >&5
14027echo "${ECHO_T}yes" >&6
14028 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014029#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014030_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014031
14032else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014033 echo "$as_me: failed program was:" >&5
14034sed 's/^/| /' conftest.$ac_ext >&5
14035
14036echo "$as_me:$LINENO: result: no" >&5
14037echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014038fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014039rm -f conftest.err conftest.$ac_objext \
14040 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014041else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014042 echo "$as_me: failed program was:" >&5
14043sed 's/^/| /' conftest.$ac_ext >&5
14044
14045echo "$as_me:$LINENO: result: no" >&5
14046echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014047fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014049 fi
14050 CFLAGS=$cflags_save
14051 LDFLAGS=$ldflags_save
14052fi
14053
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014054echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14055echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14056if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014058else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014059 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014060LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014061cat >conftest.$ac_ext <<_ACEOF
14062/* confdefs.h. */
14063_ACEOF
14064cat confdefs.h >>conftest.$ac_ext
14065cat >>conftest.$ac_ext <<_ACEOF
14066/* end confdefs.h. */
14067
Bram Moolenaar071d4272004-06-13 20:20:40 +000014068/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014069#ifdef __cplusplus
14070extern "C"
14071#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014072/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014073 builtin and then its argument prototype would still apply. */
14074char _xpg4_setrunelocale ();
14075int
14076main ()
14077{
14078_xpg4_setrunelocale ();
14079 ;
14080 return 0;
14081}
14082_ACEOF
14083rm -f conftest.$ac_objext conftest$ac_exeext
14084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14085 (eval $ac_link) 2>conftest.er1
14086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -z "$ac_c_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest$ac_exeext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014106else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014107 echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014109
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014110ac_cv_lib_xpg4__xpg4_setrunelocale=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014111fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014112rm -f conftest.err conftest.$ac_objext \
14113 conftest$ac_exeext conftest.$ac_ext
14114LIBS=$ac_check_lib_save_LIBS
14115fi
14116echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14117echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14118if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014119 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014120fi
14121
14122
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014123echo "$as_me:$LINENO: checking how to create tags" >&5
14124echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014125test -f tags && mv tags tags.save
14126if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
Bram Moolenaarb21e5842006-04-16 18:30:08 +000014127 TAGPRG="ctags -I INIT+ --fields=+S"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014128else
14129 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14130 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14131 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14132 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14133 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14134 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14135 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14136fi
14137test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014138echo "$as_me:$LINENO: result: $TAGPRG" >&5
14139echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014140
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014141echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14142echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014143MANDEF="man"
14144(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014145echo "$as_me:$LINENO: result: $MANDEF" >&5
14146echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014147if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014148 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014149#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014150_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014151
14152fi
14153
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014154echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14155echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014156# Check whether --enable-nls or --disable-nls was given.
14157if test "${enable_nls+set}" = set; then
14158 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014159
Bram Moolenaar071d4272004-06-13 20:20:40 +000014160else
14161 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014162fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014163
14164if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014165 echo "$as_me:$LINENO: result: no" >&5
14166echo "${ECHO_T}no" >&6
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000014167
14168 INSTALL_LANGS=install-languages
14169
14170 INSTALL_TOOL_LANGS=install-tool-languages
14171
14172
Bram Moolenaar071d4272004-06-13 20:20:40 +000014173 # Extract the first word of "msgfmt", so it can be a program name with args.
14174set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014175echo "$as_me:$LINENO: checking for $ac_word" >&5
14176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14177if test "${ac_cv_prog_MSGFMT+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014179else
14180 if test -n "$MSGFMT"; then
14181 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14182else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184for as_dir in $PATH
14185do
14186 IFS=$as_save_IFS
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14190 ac_cv_prog_MSGFMT="msgfmt"
14191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 break 2
14193 fi
14194done
14195done
14196
Bram Moolenaar071d4272004-06-13 20:20:40 +000014197fi
14198fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014199MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000014200if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014201 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14202echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014203else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014204 echo "$as_me:$LINENO: result: no" >&5
14205echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014206fi
14207
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014208 echo "$as_me:$LINENO: checking for NLS" >&5
14209echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014210 if test -f po/Makefile; then
14211 have_gettext="no"
14212 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014213 cat >conftest.$ac_ext <<_ACEOF
14214/* confdefs.h. */
14215_ACEOF
14216cat confdefs.h >>conftest.$ac_ext
14217cat >>conftest.$ac_ext <<_ACEOF
14218/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014219#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014220int
14221main ()
14222{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014223gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014224 ;
14225 return 0;
14226}
14227_ACEOF
14228rm -f conftest.$ac_objext conftest$ac_exeext
14229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14230 (eval $ac_link) 2>conftest.er1
14231 ac_status=$?
14232 grep -v '^ *+' conftest.er1 >conftest.err
14233 rm -f conftest.er1
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -z "$ac_c_werror_flag"
14238 || test ! -s conftest.err'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest$ac_exeext'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14250 echo "$as_me:$LINENO: result: gettext() works" >&5
14251echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014252else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014253 echo "$as_me: failed program was:" >&5
14254sed 's/^/| /' conftest.$ac_ext >&5
14255
14256olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014257 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014258 cat >conftest.$ac_ext <<_ACEOF
14259/* confdefs.h. */
14260_ACEOF
14261cat confdefs.h >>conftest.$ac_ext
14262cat >>conftest.$ac_ext <<_ACEOF
14263/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014264#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014265int
14266main ()
14267{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014268gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014269 ;
14270 return 0;
14271}
14272_ACEOF
14273rm -f conftest.$ac_objext conftest$ac_exeext
14274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275 (eval $ac_link) 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
14282 { ac_try='test -z "$ac_c_werror_flag"
14283 || test ! -s conftest.err'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; } &&
14289 { ac_try='test -s conftest$ac_exeext'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14295 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14296echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014297else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014298 echo "$as_me: failed program was:" >&5
14299sed 's/^/| /' conftest.$ac_ext >&5
14300
14301echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14302echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014303 LIBS=$olibs
14304fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014305rm -f conftest.err conftest.$ac_objext \
14306 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014307fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014308rm -f conftest.err conftest.$ac_objext \
14309 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014310 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014311 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14312echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014313 fi
14314 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014315 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014316#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014317_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014318
14319 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014320
14321
14322for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000014323do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14325echo "$as_me:$LINENO: checking for $ac_func" >&5
14326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14327if eval "test \"\${$as_ac_var+set}\" = set"; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014329else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014330 cat >conftest.$ac_ext <<_ACEOF
14331/* confdefs.h. */
14332_ACEOF
14333cat confdefs.h >>conftest.$ac_ext
14334cat >>conftest.$ac_ext <<_ACEOF
14335/* end confdefs.h. */
14336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14338#define $ac_func innocuous_$ac_func
14339
Bram Moolenaar071d4272004-06-13 20:20:40 +000014340/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014341 which can conflict with char $ac_func (); below.
14342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14343 <limits.h> exists even on freestanding compilers. */
14344
14345#ifdef __STDC__
14346# include <limits.h>
14347#else
14348# include <assert.h>
14349#endif
14350
14351#undef $ac_func
14352
Bram Moolenaar071d4272004-06-13 20:20:40 +000014353/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014354#ifdef __cplusplus
14355extern "C"
14356{
14357#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014358/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014359 builtin and then its argument prototype would still apply. */
14360char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000014361/* The GNU C library defines this for functions which it implements
14362 to always fail with ENOSYS. Some functions are actually named
14363 something starting with __ and the normal name is an alias. */
14364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14365choke me
14366#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014367char (*f) () = $ac_func;
14368#endif
14369#ifdef __cplusplus
14370}
Bram Moolenaar071d4272004-06-13 20:20:40 +000014371#endif
14372
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014373int
14374main ()
14375{
14376return f != $ac_func;
14377 ;
14378 return 0;
14379}
14380_ACEOF
14381rm -f conftest.$ac_objext conftest$ac_exeext
14382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14383 (eval $ac_link) 2>conftest.er1
14384 ac_status=$?
14385 grep -v '^ *+' conftest.er1 >conftest.err
14386 rm -f conftest.er1
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
14390 { ac_try='test -z "$ac_c_werror_flag"
14391 || test ! -s conftest.err'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest$ac_exeext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014404else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014405 echo "$as_me: failed program was:" >&5
14406sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014407
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014408eval "$as_ac_var=no"
14409fi
14410rm -f conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14412fi
14413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14414echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14415if test `eval echo '${'$as_ac_var'}'` = yes; then
14416 cat >>confdefs.h <<_ACEOF
14417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14418_ACEOF
14419
Bram Moolenaar071d4272004-06-13 20:20:40 +000014420fi
14421done
14422
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014423 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14424echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14425 cat >conftest.$ac_ext <<_ACEOF
14426/* confdefs.h. */
14427_ACEOF
14428cat confdefs.h >>conftest.$ac_ext
14429cat >>conftest.$ac_ext <<_ACEOF
14430/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014431#include <libintl.h>
14432 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014433int
14434main ()
14435{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014436++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014437 ;
14438 return 0;
14439}
14440_ACEOF
14441rm -f conftest.$ac_objext conftest$ac_exeext
14442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443 (eval $ac_link) 2>conftest.er1
14444 ac_status=$?
14445 grep -v '^ *+' conftest.er1 >conftest.err
14446 rm -f conftest.er1
14447 cat conftest.err >&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
14450 { ac_try='test -z "$ac_c_werror_flag"
14451 || test ! -s conftest.err'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14454 ac_status=$?
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; } &&
14457 { ac_try='test -s conftest$ac_exeext'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14460 ac_status=$?
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; }; then
14463 echo "$as_me:$LINENO: result: yes" >&5
14464echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014465#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014466_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014467
14468else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014469 echo "$as_me: failed program was:" >&5
14470sed 's/^/| /' conftest.$ac_ext >&5
14471
14472echo "$as_me:$LINENO: result: no" >&5
14473echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014474fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014475rm -f conftest.err conftest.$ac_objext \
14476 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014477 fi
14478 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014479 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14480echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014481 fi
14482else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014483 echo "$as_me:$LINENO: result: yes" >&5
14484echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014485fi
14486
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014487if test "${ac_cv_header_dlfcn_h+set}" = set; then
14488 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14489echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14490if test "${ac_cv_header_dlfcn_h+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492fi
14493echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14494echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014495else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014496 # Is the header compilable?
14497echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14498echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14499cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
14505$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014506#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014507_ACEOF
14508rm -f conftest.$ac_objext
14509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>conftest.er1
14511 ac_status=$?
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014531else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014532 echo "$as_me: failed program was:" >&5
14533sed 's/^/| /' conftest.$ac_ext >&5
14534
14535ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014536fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14539echo "${ECHO_T}$ac_header_compiler" >&6
14540
14541# Is the header present?
14542echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14543echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550#include <dlfcn.h>
14551_ACEOF
14552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } >/dev/null; then
14560 if test -s conftest.err; then
14561 ac_cpp_err=$ac_c_preproc_warn_flag
14562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14563 else
14564 ac_cpp_err=
14565 fi
14566else
14567 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014568fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014569if test -z "$ac_cpp_err"; then
14570 ac_header_preproc=yes
14571else
14572 echo "$as_me: failed program was:" >&5
14573sed 's/^/| /' conftest.$ac_ext >&5
14574
14575 ac_header_preproc=no
14576fi
14577rm -f conftest.err conftest.$ac_ext
14578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14579echo "${ECHO_T}$ac_header_preproc" >&6
14580
14581# So? What about this header?
14582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14583 yes:no: )
14584 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14585echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14587echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14588 ac_header_preproc=yes
14589 ;;
14590 no:yes:* )
14591 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14592echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14594echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14596echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14598echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14600echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14602echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14603 (
14604 cat <<\_ASBOX
14605## ------------------------------------------ ##
14606## Report this to the AC_PACKAGE_NAME lists. ##
14607## ------------------------------------------ ##
14608_ASBOX
14609 ) |
14610 sed "s/^/$as_me: WARNING: /" >&2
14611 ;;
14612esac
14613echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14614echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14615if test "${ac_cv_header_dlfcn_h+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617else
14618 ac_cv_header_dlfcn_h=$ac_header_preproc
14619fi
14620echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14621echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14622
14623fi
14624if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014625 DLL=dlfcn.h
14626else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014627 if test "${ac_cv_header_dl_h+set}" = set; then
14628 echo "$as_me:$LINENO: checking for dl.h" >&5
14629echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14630if test "${ac_cv_header_dl_h+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632fi
14633echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14634echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014635else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014636 # Is the header compilable?
14637echo "$as_me:$LINENO: checking dl.h usability" >&5
14638echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14639cat >conftest.$ac_ext <<_ACEOF
14640/* confdefs.h. */
14641_ACEOF
14642cat confdefs.h >>conftest.$ac_ext
14643cat >>conftest.$ac_ext <<_ACEOF
14644/* end confdefs.h. */
14645$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014646#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014647_ACEOF
14648rm -f conftest.$ac_objext
14649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650 (eval $ac_compile) 2>conftest.er1
14651 ac_status=$?
14652 grep -v '^ *+' conftest.er1 >conftest.err
14653 rm -f conftest.er1
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -z "$ac_c_werror_flag"
14658 || test ! -s conftest.err'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14670 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014671else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014672 echo "$as_me: failed program was:" >&5
14673sed 's/^/| /' conftest.$ac_ext >&5
14674
14675ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014676fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14678echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14679echo "${ECHO_T}$ac_header_compiler" >&6
14680
14681# Is the header present?
14682echo "$as_me:$LINENO: checking dl.h presence" >&5
14683echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14684cat >conftest.$ac_ext <<_ACEOF
14685/* confdefs.h. */
14686_ACEOF
14687cat confdefs.h >>conftest.$ac_ext
14688cat >>conftest.$ac_ext <<_ACEOF
14689/* end confdefs.h. */
14690#include <dl.h>
14691_ACEOF
14692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } >/dev/null; then
14700 if test -s conftest.err; then
14701 ac_cpp_err=$ac_c_preproc_warn_flag
14702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14703 else
14704 ac_cpp_err=
14705 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014706else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014707 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014708fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014709if test -z "$ac_cpp_err"; then
14710 ac_header_preproc=yes
14711else
14712 echo "$as_me: failed program was:" >&5
14713sed 's/^/| /' conftest.$ac_ext >&5
14714
14715 ac_header_preproc=no
14716fi
14717rm -f conftest.err conftest.$ac_ext
14718echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14719echo "${ECHO_T}$ac_header_preproc" >&6
14720
14721# So? What about this header?
14722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14723 yes:no: )
14724 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14725echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14727echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14728 ac_header_preproc=yes
14729 ;;
14730 no:yes:* )
14731 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14732echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14734echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14736echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14737 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14738echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14740echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14742echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14743 (
14744 cat <<\_ASBOX
14745## ------------------------------------------ ##
14746## Report this to the AC_PACKAGE_NAME lists. ##
14747## ------------------------------------------ ##
14748_ASBOX
14749 ) |
14750 sed "s/^/$as_me: WARNING: /" >&2
14751 ;;
14752esac
14753echo "$as_me:$LINENO: checking for dl.h" >&5
14754echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14755if test "${ac_cv_header_dl_h+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14757else
14758 ac_cv_header_dl_h=$ac_header_preproc
14759fi
14760echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14761echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014762
14763fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014764if test $ac_cv_header_dl_h = yes; then
14765 DLL=dl.h
14766fi
14767
14768
14769fi
14770
Bram Moolenaar071d4272004-06-13 20:20:40 +000014771
14772if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014773
14774cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014775#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014776_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014777
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014778 echo "$as_me:$LINENO: checking for dlopen()" >&5
14779echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14780 cat >conftest.$ac_ext <<_ACEOF
14781/* confdefs.h. */
14782_ACEOF
14783cat confdefs.h >>conftest.$ac_ext
14784cat >>conftest.$ac_ext <<_ACEOF
14785/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014786
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014787int
14788main ()
14789{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014790
14791 extern void* dlopen();
14792 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014793
14794 ;
14795 return 0;
14796}
14797_ACEOF
14798rm -f conftest.$ac_objext conftest$ac_exeext
14799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800 (eval $ac_link) 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag"
14808 || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest$ac_exeext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 echo "$as_me:$LINENO: result: yes" >&5
14821echo "${ECHO_T}yes" >&6;
14822
14823cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014824#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014825_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014826
14827else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014828 echo "$as_me: failed program was:" >&5
14829sed 's/^/| /' conftest.$ac_ext >&5
14830
14831echo "$as_me:$LINENO: result: no" >&5
14832echo "${ECHO_T}no" >&6;
14833 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14834echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014835 olibs=$LIBS
14836 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014837 cat >conftest.$ac_ext <<_ACEOF
14838/* confdefs.h. */
14839_ACEOF
14840cat confdefs.h >>conftest.$ac_ext
14841cat >>conftest.$ac_ext <<_ACEOF
14842/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014843
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014844int
14845main ()
14846{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014847
14848 extern void* dlopen();
14849 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014850
14851 ;
14852 return 0;
14853}
14854_ACEOF
14855rm -f conftest.$ac_objext conftest$ac_exeext
14856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14857 (eval $ac_link) 2>conftest.er1
14858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -z "$ac_c_werror_flag"
14865 || test ! -s conftest.err'
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); }; } &&
14871 { ac_try='test -s conftest$ac_exeext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 echo "$as_me:$LINENO: result: yes" >&5
14878echo "${ECHO_T}yes" >&6;
14879
14880cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014881#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014882_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014883
14884else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014885 echo "$as_me: failed program was:" >&5
14886sed 's/^/| /' conftest.$ac_ext >&5
14887
14888echo "$as_me:$LINENO: result: no" >&5
14889echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014890 LIBS=$olibs
14891fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014892rm -f conftest.err conftest.$ac_objext \
14893 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014894fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014895rm -f conftest.err conftest.$ac_objext \
14896 conftest$ac_exeext conftest.$ac_ext
14897 echo "$as_me:$LINENO: checking for dlsym()" >&5
14898echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14899 cat >conftest.$ac_ext <<_ACEOF
14900/* confdefs.h. */
14901_ACEOF
14902cat confdefs.h >>conftest.$ac_ext
14903cat >>conftest.$ac_ext <<_ACEOF
14904/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014905
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014906int
14907main ()
14908{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014909
14910 extern void* dlsym();
14911 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014912
14913 ;
14914 return 0;
14915}
14916_ACEOF
14917rm -f conftest.$ac_objext conftest$ac_exeext
14918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14919 (eval $ac_link) 2>conftest.er1
14920 ac_status=$?
14921 grep -v '^ *+' conftest.er1 >conftest.err
14922 rm -f conftest.er1
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -z "$ac_c_werror_flag"
14927 || test ! -s conftest.err'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try='test -s conftest$ac_exeext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 echo "$as_me:$LINENO: result: yes" >&5
14940echo "${ECHO_T}yes" >&6;
14941
14942cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014943#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014944_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014945
14946else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014947 echo "$as_me: failed program was:" >&5
14948sed 's/^/| /' conftest.$ac_ext >&5
14949
14950echo "$as_me:$LINENO: result: no" >&5
14951echo "${ECHO_T}no" >&6;
14952 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
14953echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014954 olibs=$LIBS
14955 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014956 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* dlsym();
14968 dlsym();
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_DLSYM 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;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015009 LIBS=$olibs
15010fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015011rm -f conftest.err conftest.$ac_objext \
15012 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015013fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015014rm -f conftest.err conftest.$ac_objext \
15015 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015016elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015017
15018cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015019#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015020_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015021
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015022 echo "$as_me:$LINENO: checking for shl_load()" >&5
15023echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15024 cat >conftest.$ac_ext <<_ACEOF
15025/* confdefs.h. */
15026_ACEOF
15027cat confdefs.h >>conftest.$ac_ext
15028cat >>conftest.$ac_ext <<_ACEOF
15029/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015030
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015031int
15032main ()
15033{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015034
15035 extern void* shl_load();
15036 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015037
15038 ;
15039 return 0;
15040}
15041_ACEOF
15042rm -f conftest.$ac_objext conftest$ac_exeext
15043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044 (eval $ac_link) 2>conftest.er1
15045 ac_status=$?
15046 grep -v '^ *+' conftest.er1 >conftest.err
15047 rm -f conftest.er1
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag"
15052 || test ! -s conftest.err'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try='test -s conftest$ac_exeext'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15064 echo "$as_me:$LINENO: result: yes" >&5
15065echo "${ECHO_T}yes" >&6;
15066
15067cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015068#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015069_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015070
15071else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015072 echo "$as_me: failed program was:" >&5
15073sed 's/^/| /' conftest.$ac_ext >&5
15074
15075echo "$as_me:$LINENO: result: no" >&5
15076echo "${ECHO_T}no" >&6;
15077 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15078echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015079 olibs=$LIBS
15080 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015081 cat >conftest.$ac_ext <<_ACEOF
15082/* confdefs.h. */
15083_ACEOF
15084cat confdefs.h >>conftest.$ac_ext
15085cat >>conftest.$ac_ext <<_ACEOF
15086/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015087
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015088int
15089main ()
15090{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015091
15092 extern void* shl_load();
15093 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015094
15095 ;
15096 return 0;
15097}
15098_ACEOF
15099rm -f conftest.$ac_objext conftest$ac_exeext
15100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101 (eval $ac_link) 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_exeext'
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 echo "$as_me:$LINENO: result: yes" >&5
15122echo "${ECHO_T}yes" >&6;
15123
15124cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015125#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015126_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015127
15128else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015129 echo "$as_me: failed program was:" >&5
15130sed 's/^/| /' conftest.$ac_ext >&5
15131
15132echo "$as_me:$LINENO: result: no" >&5
15133echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015134 LIBS=$olibs
15135fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015136rm -f conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015138fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015139rm -f conftest.err conftest.$ac_objext \
15140 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015141fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015142
15143for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000015144do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15146if eval "test \"\${$as_ac_Header+set}\" = set"; then
15147 echo "$as_me:$LINENO: checking for $ac_header" >&5
15148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15149if eval "test \"\${$as_ac_Header+set}\" = set"; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015151fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015154else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015155 # Is the header compilable?
15156echo "$as_me:$LINENO: checking $ac_header usability" >&5
15157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15158cat >conftest.$ac_ext <<_ACEOF
15159/* confdefs.h. */
15160_ACEOF
15161cat confdefs.h >>conftest.$ac_ext
15162cat >>conftest.$ac_ext <<_ACEOF
15163/* end confdefs.h. */
15164$ac_includes_default
15165#include <$ac_header>
15166_ACEOF
15167rm -f conftest.$ac_objext
15168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15169 (eval $ac_compile) 2>conftest.er1
15170 ac_status=$?
15171 grep -v '^ *+' conftest.er1 >conftest.err
15172 rm -f conftest.er1
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_c_werror_flag"
15177 || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest.$ac_objext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_header_compiler=yes
15190else
15191 echo "$as_me: failed program was:" >&5
15192sed 's/^/| /' conftest.$ac_ext >&5
15193
15194ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015195fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15198echo "${ECHO_T}$ac_header_compiler" >&6
15199
15200# Is the header present?
15201echo "$as_me:$LINENO: checking $ac_header presence" >&5
15202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15203cat >conftest.$ac_ext <<_ACEOF
15204/* confdefs.h. */
15205_ACEOF
15206cat confdefs.h >>conftest.$ac_ext
15207cat >>conftest.$ac_ext <<_ACEOF
15208/* end confdefs.h. */
15209#include <$ac_header>
15210_ACEOF
15211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } >/dev/null; then
15219 if test -s conftest.err; then
15220 ac_cpp_err=$ac_c_preproc_warn_flag
15221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15222 else
15223 ac_cpp_err=
15224 fi
15225else
15226 ac_cpp_err=yes
15227fi
15228if test -z "$ac_cpp_err"; then
15229 ac_header_preproc=yes
15230else
15231 echo "$as_me: failed program was:" >&5
15232sed 's/^/| /' conftest.$ac_ext >&5
15233
15234 ac_header_preproc=no
15235fi
15236rm -f conftest.err conftest.$ac_ext
15237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15238echo "${ECHO_T}$ac_header_preproc" >&6
15239
15240# So? What about this header?
15241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15242 yes:no: )
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15247 ac_header_preproc=yes
15248 ;;
15249 no:yes:* )
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15257echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15262 (
15263 cat <<\_ASBOX
15264## ------------------------------------------ ##
15265## Report this to the AC_PACKAGE_NAME lists. ##
15266## ------------------------------------------ ##
15267_ASBOX
15268 ) |
15269 sed "s/^/$as_me: WARNING: /" >&2
15270 ;;
15271esac
15272echo "$as_me:$LINENO: checking for $ac_header" >&5
15273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15274if eval "test \"\${$as_ac_Header+set}\" = set"; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276else
15277 eval "$as_ac_Header=\$ac_header_preproc"
15278fi
15279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15281
15282fi
15283if test `eval echo '${'$as_ac_Header'}'` = yes; then
15284 cat >>confdefs.h <<_ACEOF
15285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15286_ACEOF
15287
15288fi
15289
Bram Moolenaar071d4272004-06-13 20:20:40 +000015290done
15291
15292
15293if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15294 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15295 LIBS=`echo $LIBS | sed s/-ldl//`
15296 PERL_LIBS="$PERL_LIBS -ldl"
15297 fi
15298fi
15299
15300if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15301 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015302 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15303echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015304 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
15305 || test "x$features" = "xhuge"; then
15306 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015307 echo "$as_me:$LINENO: result: yes" >&5
15308echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015309 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015310 echo "$as_me:$LINENO: result: no" >&5
15311echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015312 fi
15313fi
Bram Moolenaare224ffa2006-03-01 00:01:28 +000015314if test "x$MACARCH" = "xboth"; then
15315 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15316fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015317
Bram Moolenaara5792f52005-11-23 21:25:05 +000015318echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15319echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015320DEPEND_CFLAGS_FILTER=
15321if test "$GCC" = yes; then
Bram Moolenaar2217cae2006-03-25 21:55:52 +000015322 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
Bram Moolenaarf740b292006-02-16 22:11:02 +000015323 if test "$gccmajor" -gt "2"; then
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015324 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15325 fi
15326fi
Bram Moolenaara5792f52005-11-23 21:25:05 +000015327if test "$DEPEND_CFLAGS_FILTER" = ""; then
15328 echo "$as_me:$LINENO: result: no" >&5
15329echo "${ECHO_T}no" >&6
15330else
15331 echo "$as_me:$LINENO: result: yes" >&5
15332echo "${ECHO_T}yes" >&6
15333fi
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015334
Bram Moolenaar071d4272004-06-13 20:20:40 +000015335
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015336 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15337cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015338# This file is a shell script that caches the results of configure
15339# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015340# scripts and configure runs, see configure's option --config-cache.
15341# It is not useful on other systems. If it contains results you don't
15342# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015343#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015344# config.status only pays attention to the cache file if you give it
15345# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015346#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015347# `ac_cv_env_foo' variables (set or unset) will be overridden when
15348# loading this file, other *unset* `ac_cv_foo' will be assigned the
15349# following values.
15350
15351_ACEOF
15352
Bram Moolenaar071d4272004-06-13 20:20:40 +000015353# The following way of writing the cache mishandles newlines in values,
15354# but we know of no workaround that is simple, portable, and efficient.
15355# So, don't put newlines in cache variables' values.
15356# Ultrix sh set writes to stderr and can't be redirected directly,
15357# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015358{
15359 (set) 2>&1 |
15360 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15361 *ac_space=\ *)
15362 # `set' does not quote correctly, so add quotes (double-quote
15363 # substitution turns \\\\ into \\, and sed turns \\ into \).
15364 sed -n \
15365 "s/'/'\\\\''/g;
15366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15367 ;;
15368 *)
15369 # `set' quotes correctly as required by POSIX, so do not add quotes.
15370 sed -n \
15371 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15372 ;;
15373 esac;
15374} |
15375 sed '
15376 t clear
15377 : clear
15378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15379 t end
15380 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15381 : end' >>confcache
15382if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000015383 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015384 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15385 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000015386 else
15387 echo "not updating unwritable cache $cache_file"
15388 fi
15389fi
15390rm -f confcache
15391
Bram Moolenaar071d4272004-06-13 20:20:40 +000015392test "x$prefix" = xNONE && prefix=$ac_default_prefix
15393# Let make expand exec_prefix.
15394test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15395
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015396# VPATH may cause trouble with some makes, so we remove $(srcdir),
15397# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15398# trailing colons and then remove the whole line if VPATH becomes empty
15399# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000015400if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015401 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15402s/:*\$(srcdir):*/:/;
15403s/:*\${srcdir}:*/:/;
15404s/:*@srcdir@:*/:/;
15405s/^\([^=]*=[ ]*\):*/\1/;
15406s/:*$//;
15407s/^[^=]*=[ ]*$//;
15408}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015409fi
15410
Bram Moolenaar071d4272004-06-13 20:20:40 +000015411DEFS=-DHAVE_CONFIG_H
15412
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015413ac_libobjs=
15414ac_ltlibobjs=
15415for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15416 # 1. Remove the extension, and $U if already installed.
15417 ac_i=`echo "$ac_i" |
15418 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15419 # 2. Add them.
15420 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15421 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15422done
15423LIBOBJS=$ac_libobjs
15424
15425LTLIBOBJS=$ac_ltlibobjs
15426
15427
15428
Bram Moolenaar071d4272004-06-13 20:20:40 +000015429: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015430ac_clean_files_save=$ac_clean_files
15431ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15432{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15433echo "$as_me: creating $CONFIG_STATUS" >&6;}
15434cat >$CONFIG_STATUS <<_ACEOF
15435#! $SHELL
15436# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015437# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015438# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015439# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015440
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015441debug=false
15442ac_cs_recheck=false
15443ac_cs_silent=false
15444SHELL=\${CONFIG_SHELL-$SHELL}
15445_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015446
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015447cat >>$CONFIG_STATUS <<\_ACEOF
15448## --------------------- ##
15449## M4sh Initialization. ##
15450## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000015451
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015452# Be Bourne compatible
15453if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15454 emulate sh
15455 NULLCMD=:
15456 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15457 # is contrary to our usage. Disable this feature.
15458 alias -g '${1+"$@"}'='"$@"'
15459elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15460 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000015461fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015462DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000015463
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015464# Support unset when possible.
15465if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15466 as_unset=unset
15467else
15468 as_unset=false
15469fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015470
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015471
15472# Work around bugs in pre-3.0 UWIN ksh.
15473$as_unset ENV MAIL MAILPATH
15474PS1='$ '
15475PS2='> '
15476PS4='+ '
15477
15478# NLS nuisances.
15479for as_var in \
15480 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15481 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15482 LC_TELEPHONE LC_TIME
15483do
15484 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15485 eval $as_var=C; export $as_var
15486 else
15487 $as_unset $as_var
15488 fi
15489done
15490
15491# Required to use basename.
15492if expr a : '\(a\)' >/dev/null 2>&1; then
15493 as_expr=expr
15494else
15495 as_expr=false
15496fi
15497
15498if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15499 as_basename=basename
15500else
15501 as_basename=false
15502fi
15503
15504
15505# Name of the executable.
15506as_me=`$as_basename "$0" ||
15507$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15508 X"$0" : 'X\(//\)$' \| \
15509 X"$0" : 'X\(/\)$' \| \
15510 . : '\(.\)' 2>/dev/null ||
15511echo X/"$0" |
15512 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15513 /^X\/\(\/\/\)$/{ s//\1/; q; }
15514 /^X\/\(\/\).*/{ s//\1/; q; }
15515 s/.*/./; q'`
15516
15517
15518# PATH needs CR, and LINENO needs CR and PATH.
15519# Avoid depending upon Character Ranges.
15520as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15521as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15522as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15523as_cr_digits='0123456789'
15524as_cr_alnum=$as_cr_Letters$as_cr_digits
15525
15526# The user is always right.
15527if test "${PATH_SEPARATOR+set}" != set; then
15528 echo "#! /bin/sh" >conf$$.sh
15529 echo "exit 0" >>conf$$.sh
15530 chmod +x conf$$.sh
15531 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15532 PATH_SEPARATOR=';'
15533 else
15534 PATH_SEPARATOR=:
15535 fi
15536 rm -f conf$$.sh
15537fi
15538
15539
15540 as_lineno_1=$LINENO
15541 as_lineno_2=$LINENO
15542 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15543 test "x$as_lineno_1" != "x$as_lineno_2" &&
15544 test "x$as_lineno_3" = "x$as_lineno_2" || {
15545 # Find who we are. Look in the path if we contain no path at all
15546 # relative or not.
15547 case $0 in
15548 *[\\/]* ) as_myself=$0 ;;
15549 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15550for as_dir in $PATH
15551do
15552 IFS=$as_save_IFS
15553 test -z "$as_dir" && as_dir=.
15554 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15555done
15556
15557 ;;
15558 esac
15559 # We did not find ourselves, most probably we were run as `sh COMMAND'
15560 # in which case we are not to be found in the path.
15561 if test "x$as_myself" = x; then
15562 as_myself=$0
15563 fi
15564 if test ! -f "$as_myself"; then
15565 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15566echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15567 { (exit 1); exit 1; }; }
15568 fi
15569 case $CONFIG_SHELL in
15570 '')
15571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15572for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15573do
15574 IFS=$as_save_IFS
15575 test -z "$as_dir" && as_dir=.
15576 for as_base in sh bash ksh sh5; do
15577 case $as_dir in
15578 /*)
15579 if ("$as_dir/$as_base" -c '
15580 as_lineno_1=$LINENO
15581 as_lineno_2=$LINENO
15582 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15583 test "x$as_lineno_1" != "x$as_lineno_2" &&
15584 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15585 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15586 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15587 CONFIG_SHELL=$as_dir/$as_base
15588 export CONFIG_SHELL
15589 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15590 fi;;
15591 esac
15592 done
15593done
15594;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015595 esac
15596
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015597 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15598 # uniformly replaced by the line number. The first 'sed' inserts a
15599 # line-number line before each line; the second 'sed' does the real
15600 # work. The second script uses 'N' to pair each line-number line
15601 # with the numbered line, and appends trailing '-' during
15602 # substitution so that $LINENO is not a special case at line end.
15603 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15604 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15605 sed '=' <$as_myself |
15606 sed '
15607 N
15608 s,$,-,
15609 : loop
15610 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15611 t loop
15612 s,-$,,
15613 s,^['$as_cr_digits']*\n,,
15614 ' >$as_me.lineno &&
15615 chmod +x $as_me.lineno ||
15616 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15617echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15618 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000015619
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015620 # Don't try to exec as it changes $[0], causing all sort of problems
15621 # (the dirname of $[0] is not the place where we might find the
15622 # original and so on. Autoconf is especially sensible to this).
15623 . ./$as_me.lineno
15624 # Exit status is that of the last command.
15625 exit
15626}
15627
15628
15629case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15630 *c*,-n*) ECHO_N= ECHO_C='
15631' ECHO_T=' ' ;;
15632 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15633 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15634esac
15635
15636if expr a : '\(a\)' >/dev/null 2>&1; then
15637 as_expr=expr
15638else
15639 as_expr=false
15640fi
15641
15642rm -f conf$$ conf$$.exe conf$$.file
15643echo >conf$$.file
15644if ln -s conf$$.file conf$$ 2>/dev/null; then
15645 # We could just check for DJGPP; but this test a) works b) is more generic
15646 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15647 if test -f conf$$.exe; then
15648 # Don't use ln at all; we don't have any links
15649 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015650 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015651 as_ln_s='ln -s'
15652 fi
15653elif ln conf$$.file conf$$ 2>/dev/null; then
15654 as_ln_s=ln
15655else
15656 as_ln_s='cp -p'
15657fi
15658rm -f conf$$ conf$$.exe conf$$.file
15659
15660if mkdir -p . 2>/dev/null; then
15661 as_mkdir_p=:
15662else
15663 test -d ./-p && rmdir ./-p
15664 as_mkdir_p=false
15665fi
15666
15667as_executable_p="test -f"
15668
15669# Sed expression to map a string onto a valid CPP name.
15670as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15671
15672# Sed expression to map a string onto a valid variable name.
15673as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15674
15675
15676# IFS
15677# We need space, tab and new line, in precisely that order.
15678as_nl='
15679'
15680IFS=" $as_nl"
15681
15682# CDPATH.
15683$as_unset CDPATH
15684
15685exec 6>&1
15686
15687# Open the log real soon, to keep \$[0] and so on meaningful, and to
15688# report actual input values of CONFIG_FILES etc. instead of their
15689# values after options handling. Logging --version etc. is OK.
Bram Moolenaarc7453f52006-02-10 23:20:28 +000015690exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015691{
15692 echo
15693 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15694## Running $as_me. ##
15695_ASBOX
15696} >&5
15697cat >&5 <<_CSEOF
15698
15699This file was extended by $as_me, which was
15700generated by GNU Autoconf 2.59. Invocation command line was
15701
15702 CONFIG_FILES = $CONFIG_FILES
15703 CONFIG_HEADERS = $CONFIG_HEADERS
15704 CONFIG_LINKS = $CONFIG_LINKS
15705 CONFIG_COMMANDS = $CONFIG_COMMANDS
15706 $ $0 $@
15707
15708_CSEOF
15709echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15710echo >&5
15711_ACEOF
15712
15713# Files that config.status was made for.
15714if test -n "$ac_config_files"; then
15715 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15716fi
15717
15718if test -n "$ac_config_headers"; then
15719 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15720fi
15721
15722if test -n "$ac_config_links"; then
15723 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15724fi
15725
15726if test -n "$ac_config_commands"; then
15727 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15728fi
15729
15730cat >>$CONFIG_STATUS <<\_ACEOF
15731
15732ac_cs_usage="\
15733\`$as_me' instantiates files from templates according to the
15734current configuration.
15735
15736Usage: $0 [OPTIONS] [FILE]...
15737
15738 -h, --help print this help, then exit
15739 -V, --version print version number, then exit
15740 -q, --quiet do not print progress messages
15741 -d, --debug don't remove temporary files
15742 --recheck update $as_me by reconfiguring in the same conditions
15743 --file=FILE[:TEMPLATE]
15744 instantiate the configuration file FILE
15745 --header=FILE[:TEMPLATE]
15746 instantiate the configuration header FILE
15747
15748Configuration files:
15749$config_files
15750
15751Configuration headers:
15752$config_headers
15753
15754Report bugs to <bug-autoconf@gnu.org>."
15755_ACEOF
15756
15757cat >>$CONFIG_STATUS <<_ACEOF
15758ac_cs_version="\\
15759config.status
15760configured by $0, generated by GNU Autoconf 2.59,
15761 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15762
15763Copyright (C) 2003 Free Software Foundation, Inc.
15764This config.status script is free software; the Free Software Foundation
15765gives unlimited permission to copy, distribute and modify it."
15766srcdir=$srcdir
15767_ACEOF
15768
15769cat >>$CONFIG_STATUS <<\_ACEOF
15770# If no file are specified by the user, then we need to provide default
15771# value. By we need to know if files were specified by the user.
15772ac_need_defaults=:
15773while test $# != 0
15774do
15775 case $1 in
15776 --*=*)
15777 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15778 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15779 ac_shift=:
15780 ;;
15781 -*)
15782 ac_option=$1
15783 ac_optarg=$2
15784 ac_shift=shift
15785 ;;
15786 *) # This is not an option, so the user has probably given explicit
15787 # arguments.
15788 ac_option=$1
15789 ac_need_defaults=false;;
15790 esac
15791
15792 case $ac_option in
15793 # Handling of the options.
15794_ACEOF
15795cat >>$CONFIG_STATUS <<\_ACEOF
15796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15797 ac_cs_recheck=: ;;
15798 --version | --vers* | -V )
15799 echo "$ac_cs_version"; exit 0 ;;
15800 --he | --h)
15801 # Conflict between --help and --header
15802 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15803Try \`$0 --help' for more information." >&5
15804echo "$as_me: error: ambiguous option: $1
15805Try \`$0 --help' for more information." >&2;}
15806 { (exit 1); exit 1; }; };;
15807 --help | --hel | -h )
15808 echo "$ac_cs_usage"; exit 0 ;;
15809 --debug | --d* | -d )
15810 debug=: ;;
15811 --file | --fil | --fi | --f )
15812 $ac_shift
15813 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15814 ac_need_defaults=false;;
15815 --header | --heade | --head | --hea )
15816 $ac_shift
15817 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15818 ac_need_defaults=false;;
15819 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15820 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15821 ac_cs_silent=: ;;
15822
15823 # This is an error.
15824 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15825Try \`$0 --help' for more information." >&5
15826echo "$as_me: error: unrecognized option: $1
15827Try \`$0 --help' for more information." >&2;}
15828 { (exit 1); exit 1; }; } ;;
15829
15830 *) ac_config_targets="$ac_config_targets $1" ;;
15831
15832 esac
15833 shift
15834done
15835
15836ac_configure_extra_args=
15837
15838if $ac_cs_silent; then
15839 exec 6>/dev/null
15840 ac_configure_extra_args="$ac_configure_extra_args --silent"
15841fi
15842
15843_ACEOF
15844cat >>$CONFIG_STATUS <<_ACEOF
15845if \$ac_cs_recheck; then
15846 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15847 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15848fi
15849
15850_ACEOF
15851
15852
15853
15854
15855
15856cat >>$CONFIG_STATUS <<\_ACEOF
15857for ac_config_target in $ac_config_targets
15858do
15859 case "$ac_config_target" in
15860 # Handling of arguments.
15861 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15862 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15863 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15864echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15865 { (exit 1); exit 1; }; };;
15866 esac
15867done
15868
15869# If the user did not use the arguments to specify the items to instantiate,
15870# then the envvar interface is used. Set only those that are not.
15871# We use the long form for the default assignment because of an extremely
15872# bizarre bug on SunOS 4.1.3.
15873if $ac_need_defaults; then
15874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15876fi
15877
15878# Have a temporary directory for convenience. Make it in the build tree
15879# simply because there is no reason to put it here, and in addition,
15880# creating and moving files from /tmp can sometimes cause problems.
15881# Create a temporary directory, and hook for its removal unless debugging.
15882$debug ||
15883{
15884 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15885 trap '{ (exit 1); exit 1; }' 1 2 13 15
15886}
15887
15888# Create a (secure) tmp directory for tmp files.
15889
15890{
15891 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15892 test -n "$tmp" && test -d "$tmp"
15893} ||
15894{
15895 tmp=./confstat$$-$RANDOM
15896 (umask 077 && mkdir $tmp)
15897} ||
15898{
15899 echo "$me: cannot create a temporary directory in ." >&2
15900 { (exit 1); exit 1; }
15901}
15902
15903_ACEOF
15904
15905cat >>$CONFIG_STATUS <<_ACEOF
15906
15907#
15908# CONFIG_FILES section.
15909#
15910
15911# No need to generate the scripts if there are no CONFIG_FILES.
15912# This happens for instance when ./config.status config.h
15913if test -n "\$CONFIG_FILES"; then
15914 # Protect against being on the right side of a sed subst in config.status.
15915 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15916 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15917s,@SHELL@,$SHELL,;t t
15918s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15919s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15920s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15921s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15922s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15923s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15924s,@exec_prefix@,$exec_prefix,;t t
15925s,@prefix@,$prefix,;t t
15926s,@program_transform_name@,$program_transform_name,;t t
15927s,@bindir@,$bindir,;t t
15928s,@sbindir@,$sbindir,;t t
15929s,@libexecdir@,$libexecdir,;t t
15930s,@datadir@,$datadir,;t t
15931s,@sysconfdir@,$sysconfdir,;t t
15932s,@sharedstatedir@,$sharedstatedir,;t t
15933s,@localstatedir@,$localstatedir,;t t
15934s,@libdir@,$libdir,;t t
15935s,@includedir@,$includedir,;t t
15936s,@oldincludedir@,$oldincludedir,;t t
15937s,@infodir@,$infodir,;t t
15938s,@mandir@,$mandir,;t t
15939s,@build_alias@,$build_alias,;t t
15940s,@host_alias@,$host_alias,;t t
15941s,@target_alias@,$target_alias,;t t
15942s,@DEFS@,$DEFS,;t t
15943s,@ECHO_C@,$ECHO_C,;t t
15944s,@ECHO_N@,$ECHO_N,;t t
15945s,@ECHO_T@,$ECHO_T,;t t
15946s,@LIBS@,$LIBS,;t t
15947s,@SET_MAKE@,$SET_MAKE,;t t
15948s,@CC@,$CC,;t t
15949s,@CFLAGS@,$CFLAGS,;t t
15950s,@LDFLAGS@,$LDFLAGS,;t t
15951s,@CPPFLAGS@,$CPPFLAGS,;t t
15952s,@ac_ct_CC@,$ac_ct_CC,;t t
15953s,@EXEEXT@,$EXEEXT,;t t
15954s,@OBJEXT@,$OBJEXT,;t t
15955s,@CPP@,$CPP,;t t
15956s,@EGREP@,$EGREP,;t t
15957s,@AWK@,$AWK,;t t
15958s,@STRIP@,$STRIP,;t t
15959s,@CPP_MM@,$CPP_MM,;t t
15960s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
15961s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
15962s,@VIMNAME@,$VIMNAME,;t t
15963s,@EXNAME@,$EXNAME,;t t
15964s,@VIEWNAME@,$VIEWNAME,;t t
15965s,@line_break@,$line_break,;t t
15966s,@dovimdiff@,$dovimdiff,;t t
15967s,@dogvimdiff@,$dogvimdiff,;t t
15968s,@compiledby@,$compiledby,;t t
15969s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
15970s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
15971s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
15972s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
15973s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
15974s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
15975s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
15976s,@vi_cv_perllib@,$vi_cv_perllib,;t t
15977s,@shrpenv@,$shrpenv,;t t
15978s,@PERL_SRC@,$PERL_SRC,;t t
15979s,@PERL_OBJ@,$PERL_OBJ,;t t
15980s,@PERL_PRO@,$PERL_PRO,;t t
15981s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
15982s,@PERL_LIBS@,$PERL_LIBS,;t t
15983s,@vi_cv_path_python@,$vi_cv_path_python,;t t
15984s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
15985s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
15986s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
15987s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
15988s,@PYTHON_SRC@,$PYTHON_SRC,;t t
15989s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
15990s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
15991s,@TCL_SRC@,$TCL_SRC,;t t
15992s,@TCL_OBJ@,$TCL_OBJ,;t t
15993s,@TCL_PRO@,$TCL_PRO,;t t
15994s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
15995s,@TCL_LIBS@,$TCL_LIBS,;t t
15996s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
15997s,@RUBY_SRC@,$RUBY_SRC,;t t
15998s,@RUBY_OBJ@,$RUBY_OBJ,;t t
15999s,@RUBY_PRO@,$RUBY_PRO,;t t
16000s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16001s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16002s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16003s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16004s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16005s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16006s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16007s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16008s,@xmkmfpath@,$xmkmfpath,;t t
16009s,@X_CFLAGS@,$X_CFLAGS,;t t
16010s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16011s,@X_LIBS@,$X_LIBS,;t t
16012s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16013s,@X_LIB@,$X_LIB,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016014s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16015s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16016s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16017s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16018s,@GTK_LIBS@,$GTK_LIBS,;t t
16019s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16020s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16021s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16022s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16023s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16024s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16025s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16026s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16027s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16028s,@GUITYPE@,$GUITYPE,;t t
16029s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16030s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16031s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16032s,@TAGPRG@,$TAGPRG,;t t
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000016033s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16034s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016035s,@MSGFMT@,$MSGFMT,;t t
16036s,@MAKEMO@,$MAKEMO,;t t
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000016037s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016038s,@LIBOBJS@,$LIBOBJS,;t t
16039s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16040CEOF
16041
16042_ACEOF
16043
16044 cat >>$CONFIG_STATUS <<\_ACEOF
16045 # Split the substitutions into bite-sized pieces for seds with
16046 # small command number limits, like on Digital OSF/1 and HP-UX.
16047 ac_max_sed_lines=48
16048 ac_sed_frag=1 # Number of current file.
16049 ac_beg=1 # First line for current file.
16050 ac_end=$ac_max_sed_lines # Line after last line for current file.
16051 ac_more_lines=:
16052 ac_sed_cmds=
16053 while $ac_more_lines; do
16054 if test $ac_beg -gt 1; then
16055 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16056 else
16057 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16058 fi
16059 if test ! -s $tmp/subs.frag; then
16060 ac_more_lines=false
16061 else
16062 # The purpose of the label and of the branching condition is to
16063 # speed up the sed processing (if there are no `@' at all, there
16064 # is no need to browse any of the substitutions).
16065 # These are the two extra sed commands mentioned above.
16066 (echo ':t
16067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16068 if test -z "$ac_sed_cmds"; then
16069 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16070 else
16071 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16072 fi
16073 ac_sed_frag=`expr $ac_sed_frag + 1`
16074 ac_beg=$ac_end
16075 ac_end=`expr $ac_end + $ac_max_sed_lines`
16076 fi
16077 done
16078 if test -z "$ac_sed_cmds"; then
16079 ac_sed_cmds=cat
16080 fi
16081fi # test -n "$CONFIG_FILES"
16082
16083_ACEOF
16084cat >>$CONFIG_STATUS <<\_ACEOF
16085for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16087 case $ac_file in
16088 - | *:- | *:-:* ) # input from stdin
16089 cat >$tmp/stdin
16090 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16092 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16094 * ) ac_file_in=$ac_file.in ;;
16095 esac
16096
16097 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16098 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16099$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16100 X"$ac_file" : 'X\(//\)[^/]' \| \
16101 X"$ac_file" : 'X\(//\)$' \| \
16102 X"$ac_file" : 'X\(/\)' \| \
16103 . : '\(.\)' 2>/dev/null ||
16104echo X"$ac_file" |
16105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16107 /^X\(\/\/\)$/{ s//\1/; q; }
16108 /^X\(\/\).*/{ s//\1/; q; }
16109 s/.*/./; q'`
16110 { if $as_mkdir_p; then
16111 mkdir -p "$ac_dir"
16112 else
16113 as_dir="$ac_dir"
16114 as_dirs=
16115 while test ! -d "$as_dir"; do
16116 as_dirs="$as_dir $as_dirs"
16117 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16118$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16119 X"$as_dir" : 'X\(//\)[^/]' \| \
16120 X"$as_dir" : 'X\(//\)$' \| \
16121 X"$as_dir" : 'X\(/\)' \| \
16122 . : '\(.\)' 2>/dev/null ||
16123echo X"$as_dir" |
16124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16126 /^X\(\/\/\)$/{ s//\1/; q; }
16127 /^X\(\/\).*/{ s//\1/; q; }
16128 s/.*/./; q'`
16129 done
16130 test ! -n "$as_dirs" || mkdir $as_dirs
16131 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16132echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16133 { (exit 1); exit 1; }; }; }
16134
16135 ac_builddir=.
16136
16137if test "$ac_dir" != .; then
16138 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16139 # A "../" for each directory in $ac_dir_suffix.
16140 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16141else
16142 ac_dir_suffix= ac_top_builddir=
16143fi
16144
16145case $srcdir in
16146 .) # No --srcdir option. We are building in place.
16147 ac_srcdir=.
16148 if test -z "$ac_top_builddir"; then
16149 ac_top_srcdir=.
16150 else
16151 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16152 fi ;;
16153 [\\/]* | ?:[\\/]* ) # Absolute path.
16154 ac_srcdir=$srcdir$ac_dir_suffix;
16155 ac_top_srcdir=$srcdir ;;
16156 *) # Relative path.
16157 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16158 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16159esac
16160
16161# Do not use `cd foo && pwd` to compute absolute paths, because
16162# the directories may not exist.
16163case `pwd` in
16164.) ac_abs_builddir="$ac_dir";;
16165*)
16166 case "$ac_dir" in
16167 .) ac_abs_builddir=`pwd`;;
16168 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16169 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16170 esac;;
16171esac
16172case $ac_abs_builddir in
16173.) ac_abs_top_builddir=${ac_top_builddir}.;;
16174*)
16175 case ${ac_top_builddir}. in
16176 .) ac_abs_top_builddir=$ac_abs_builddir;;
16177 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16178 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16179 esac;;
16180esac
16181case $ac_abs_builddir in
16182.) ac_abs_srcdir=$ac_srcdir;;
16183*)
16184 case $ac_srcdir in
16185 .) ac_abs_srcdir=$ac_abs_builddir;;
16186 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16187 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16188 esac;;
16189esac
16190case $ac_abs_builddir in
16191.) ac_abs_top_srcdir=$ac_top_srcdir;;
16192*)
16193 case $ac_top_srcdir in
16194 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16195 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16196 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16197 esac;;
16198esac
16199
16200
16201
16202 if test x"$ac_file" != x-; then
16203 { echo "$as_me:$LINENO: creating $ac_file" >&5
16204echo "$as_me: creating $ac_file" >&6;}
16205 rm -f "$ac_file"
16206 fi
16207 # Let's still pretend it is `configure' which instantiates (i.e., don't
16208 # use $as_me), people would be surprised to read:
16209 # /* config.h. Generated by config.status. */
16210 if test x"$ac_file" = x-; then
16211 configure_input=
16212 else
16213 configure_input="$ac_file. "
16214 fi
16215 configure_input=$configure_input"Generated from `echo $ac_file_in |
16216 sed 's,.*/,,'` by configure."
16217
16218 # First look for the input files in the build tree, otherwise in the
16219 # src tree.
16220 ac_file_inputs=`IFS=:
16221 for f in $ac_file_in; do
16222 case $f in
16223 -) echo $tmp/stdin ;;
16224 [\\/$]*)
16225 # Absolute (can't be DOS-style, as IFS=:)
16226 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16227echo "$as_me: error: cannot find input file: $f" >&2;}
16228 { (exit 1); exit 1; }; }
16229 echo "$f";;
16230 *) # Relative
16231 if test -f "$f"; then
16232 # Build tree
16233 echo "$f"
16234 elif test -f "$srcdir/$f"; then
16235 # Source tree
16236 echo "$srcdir/$f"
16237 else
16238 # /dev/null tree
16239 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16240echo "$as_me: error: cannot find input file: $f" >&2;}
16241 { (exit 1); exit 1; }; }
16242 fi;;
16243 esac
16244 done` || { (exit 1); exit 1; }
16245_ACEOF
16246cat >>$CONFIG_STATUS <<_ACEOF
16247 sed "$ac_vpsub
16248$extrasub
16249_ACEOF
16250cat >>$CONFIG_STATUS <<\_ACEOF
16251:t
16252/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16253s,@configure_input@,$configure_input,;t t
16254s,@srcdir@,$ac_srcdir,;t t
16255s,@abs_srcdir@,$ac_abs_srcdir,;t t
16256s,@top_srcdir@,$ac_top_srcdir,;t t
16257s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16258s,@builddir@,$ac_builddir,;t t
16259s,@abs_builddir@,$ac_abs_builddir,;t t
16260s,@top_builddir@,$ac_top_builddir,;t t
16261s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16262" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16263 rm -f $tmp/stdin
16264 if test x"$ac_file" != x-; then
16265 mv $tmp/out $ac_file
16266 else
16267 cat $tmp/out
16268 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000016269 fi
16270
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016271done
16272_ACEOF
16273cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016274
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016275#
16276# CONFIG_HEADER section.
16277#
Bram Moolenaar071d4272004-06-13 20:20:40 +000016278
16279# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16280# NAME is the cpp macro being defined and VALUE is the value it is being given.
16281#
16282# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016283ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16284ac_dB='[ ].*$,\1#\2'
16285ac_dC=' '
16286ac_dD=',;t'
16287# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16288ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16289ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016290ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016291ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016292
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016293for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000016294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016295 case $ac_file in
16296 - | *:- | *:-:* ) # input from stdin
16297 cat >$tmp/stdin
16298 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16300 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16302 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016303 esac
16304
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016305 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16306echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000016307
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016308 # First look for the input files in the build tree, otherwise in the
16309 # src tree.
16310 ac_file_inputs=`IFS=:
16311 for f in $ac_file_in; do
16312 case $f in
16313 -) echo $tmp/stdin ;;
16314 [\\/$]*)
16315 # Absolute (can't be DOS-style, as IFS=:)
16316 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16317echo "$as_me: error: cannot find input file: $f" >&2;}
16318 { (exit 1); exit 1; }; }
16319 # Do quote $f, to prevent DOS paths from being IFS'd.
16320 echo "$f";;
16321 *) # Relative
16322 if test -f "$f"; then
16323 # Build tree
16324 echo "$f"
16325 elif test -f "$srcdir/$f"; then
16326 # Source tree
16327 echo "$srcdir/$f"
16328 else
16329 # /dev/null tree
16330 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16331echo "$as_me: error: cannot find input file: $f" >&2;}
16332 { (exit 1); exit 1; }; }
16333 fi;;
16334 esac
16335 done` || { (exit 1); exit 1; }
16336 # Remove the trailing spaces.
16337 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000016338
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016339_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016340
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016341# Transform confdefs.h into two sed scripts, `conftest.defines' and
16342# `conftest.undefs', that substitutes the proper values into
16343# config.h.in to produce config.h. The first handles `#define'
16344# templates, and the second `#undef' templates.
16345# And first: Protect against being on the right side of a sed subst in
16346# config.status. Protect against being in an unquoted here document
16347# in config.status.
16348rm -f conftest.defines conftest.undefs
16349# Using a here document instead of a string reduces the quoting nightmare.
16350# Putting comments in sed scripts is not portable.
16351#
16352# `end' is used to avoid that the second main sed command (meant for
16353# 0-ary CPP macros) applies to n-ary macro definitions.
16354# See the Autoconf documentation for `clear'.
16355cat >confdef2sed.sed <<\_ACEOF
16356s/[\\&,]/\\&/g
16357s,[\\$`],\\&,g
16358t clear
16359: clear
16360s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16361t end
16362s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16363: end
16364_ACEOF
16365# If some macros were called several times there might be several times
16366# the same #defines, which is useless. Nevertheless, we may not want to
16367# sort them, since we want the *last* AC-DEFINE to be honored.
16368uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16369sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16370rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000016371
16372# This sed command replaces #undef with comments. This is necessary, for
16373# example, in the case of _POSIX_SOURCE, which is predefined and required
16374# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016375cat >>conftest.undefs <<\_ACEOF
16376s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16377_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016378
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016379# Break up conftest.defines because some shells have a limit on the size
16380# of here documents, and old seds have small limits too (100 cmds).
16381echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16382echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16383echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16384echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016385rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016386while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000016387do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016388 # Write a limited-size here document to $tmp/defines.sed.
16389 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16390 # Speed up: don't consider the non `#define' lines.
16391 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16392 # Work around the forget-to-reset-the-flag bug.
16393 echo 't clr' >>$CONFIG_STATUS
16394 echo ': clr' >>$CONFIG_STATUS
16395 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016396 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016397 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16398 rm -f $tmp/in
16399 mv $tmp/out $tmp/in
16400' >>$CONFIG_STATUS
16401 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16402 rm -f conftest.defines
16403 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000016404done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016405rm -f conftest.defines
16406echo ' fi # grep' >>$CONFIG_STATUS
16407echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016408
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016409# Break up conftest.undefs because some shells have a limit on the size
16410# of here documents, and old seds have small limits too (100 cmds).
16411echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16412rm -f conftest.tail
16413while grep . conftest.undefs >/dev/null
16414do
16415 # Write a limited-size here document to $tmp/undefs.sed.
16416 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16417 # Speed up: don't consider the non `#undef'
16418 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16419 # Work around the forget-to-reset-the-flag bug.
16420 echo 't clr' >>$CONFIG_STATUS
16421 echo ': clr' >>$CONFIG_STATUS
16422 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16423 echo 'CEOF
16424 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16425 rm -f $tmp/in
16426 mv $tmp/out $tmp/in
16427' >>$CONFIG_STATUS
16428 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16429 rm -f conftest.undefs
16430 mv conftest.tail conftest.undefs
16431done
16432rm -f conftest.undefs
16433
16434cat >>$CONFIG_STATUS <<\_ACEOF
16435 # Let's still pretend it is `configure' which instantiates (i.e., don't
16436 # use $as_me), people would be surprised to read:
16437 # /* config.h. Generated by config.status. */
16438 if test x"$ac_file" = x-; then
16439 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016440 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016441 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016442 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016443 cat $tmp/in >>$tmp/config.h
16444 rm -f $tmp/in
16445 if test x"$ac_file" != x-; then
16446 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16447 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16448echo "$as_me: $ac_file is unchanged" >&6;}
16449 else
16450 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16451$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16452 X"$ac_file" : 'X\(//\)[^/]' \| \
16453 X"$ac_file" : 'X\(//\)$' \| \
16454 X"$ac_file" : 'X\(/\)' \| \
16455 . : '\(.\)' 2>/dev/null ||
16456echo X"$ac_file" |
16457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16459 /^X\(\/\/\)$/{ s//\1/; q; }
16460 /^X\(\/\).*/{ s//\1/; q; }
16461 s/.*/./; q'`
16462 { if $as_mkdir_p; then
16463 mkdir -p "$ac_dir"
16464 else
16465 as_dir="$ac_dir"
16466 as_dirs=
16467 while test ! -d "$as_dir"; do
16468 as_dirs="$as_dir $as_dirs"
16469 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16470$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16471 X"$as_dir" : 'X\(//\)[^/]' \| \
16472 X"$as_dir" : 'X\(//\)$' \| \
16473 X"$as_dir" : 'X\(/\)' \| \
16474 . : '\(.\)' 2>/dev/null ||
16475echo X"$as_dir" |
16476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16478 /^X\(\/\/\)$/{ s//\1/; q; }
16479 /^X\(\/\).*/{ s//\1/; q; }
16480 s/.*/./; q'`
16481 done
16482 test ! -n "$as_dirs" || mkdir $as_dirs
16483 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16484echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16485 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016486
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016487 rm -f $ac_file
16488 mv $tmp/config.h $ac_file
16489 fi
16490 else
16491 cat $tmp/config.h
16492 rm -f $tmp/config.h
16493 fi
16494done
16495_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016496
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016497cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016498
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016499{ (exit 0); exit 0; }
16500_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016501chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016502ac_clean_files=$ac_clean_files_save
16503
16504
16505# configure is writing to config.log, and then calls config.status.
16506# config.status does its own redirection, appending to config.log.
16507# Unfortunately, on DOS this fails, as config.log is still kept open
16508# by configure, so config.status won't be able to write to it; its
16509# output is simply discarded. So we exec the FD to /dev/null,
16510# effectively closing config.log, so it can be properly (re)opened and
16511# appended to by config.status. When coming back to configure, we
16512# need to make the FD available again.
16513if test "$no_create" != yes; then
16514 ac_cs_success=:
16515 ac_config_status_args=
16516 test "$silent" = yes &&
16517 ac_config_status_args="$ac_config_status_args --quiet"
16518 exec 5>/dev/null
16519 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Bram Moolenaarc7453f52006-02-10 23:20:28 +000016520 exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016521 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16522 # would make configure fail if this is the last instruction.
16523 $ac_cs_success || { (exit 1); exit 1; }
16524fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016525
16526