blob: ad86242d9c51f09bf415a32e5fe931f2e374aa71 [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 Moolenaara23ccb82006-02-27 00:08:02 +0000879 --with-mac-arch=ARCH 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 Moolenaar32466aa2006-02-24 23:53:04 +00002784 gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\(darwin.[^0-9]*\)*\([0-9]\.[0-9.]*\).*$/\2/g'`
Bram Moolenaara5792f52005-11-23 21:25:05 +00002785 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002786 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
Bram Moolenaar071d4272004-06-13 20:20:40 +00002787 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2788 else
2789 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2790 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2791 CFLAGS="$CFLAGS -fno-strength-reduce"
2792 fi
2793 fi
2794fi
2795
2796if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002797 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2798 (cross compiling doesn't work)" >&5
2799echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2800 (cross compiling doesn't work)" >&2;}
2801 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00002802fi
2803
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002804test "$GCC" = yes && CPP_MM=M;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002805
2806if test -f ./toolcheck; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002807 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2808echo "$as_me: checking for buggy tools..." >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +00002809 sh ./toolcheck 1>&6
2810fi
2811
2812OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2813
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002814echo "$as_me:$LINENO: checking for BeOS" >&5
2815echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002816case `uname` in
2817 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002818 BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2819echo "${ECHO_T}yes" >&6;;
2820 *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2821echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002822esac
2823
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002824echo "$as_me:$LINENO: checking for QNX" >&5
2825echo $ECHO_N "checking for QNX... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002826case `uname` in
2827 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2828 test -z "$with_x" && with_x=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002829 QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2830echo "${ECHO_T}yes" >&6;;
2831 *) QNX=no; echo "$as_me:$LINENO: result: no" >&5
2832echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002833esac
2834
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002835echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2836echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002837if test "`(uname) 2>/dev/null`" = Darwin; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002838 echo "$as_me:$LINENO: result: yes" >&5
2839echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002840
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002841 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2842echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002843 # Check whether --enable-darwin or --disable-darwin was given.
2844if test "${enable_darwin+set}" = set; then
2845 enableval="$enable_darwin"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002846
Bram Moolenaar071d4272004-06-13 20:20:40 +00002847else
2848 enable_darwin="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002849fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002850 if test "$enable_darwin" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002851 echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
2853 echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2854echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002855 if test -f os_macosx.c; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002856 echo "$as_me:$LINENO: result: yes" >&5
2857echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002858 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002859 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2860echo "${ECHO_T}no, Darwin support disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002861 enable_darwin=no
2862 fi
2863 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002864 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2865echo "${ECHO_T}yes, Darwin support excluded" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002866 fi
2867
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002868 echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2869echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2870
2871# Check whether --with-mac-arch or --without-mac-arch was given.
2872if test "${with_mac_arch+set}" = set; then
2873 withval="$with_mac_arch"
2874 MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2875echo "${ECHO_T}$MACARCH" >&6
2876else
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002877 MACARCH="both"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
2878echo "${ECHO_T}defaulting to $MACARCH" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002879fi;
2880
2881 if test "x$MACARCH" = "xboth"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002882 echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
2883echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6
2884 save_cppflags="$CPPFLAGS"
2885 save_cflags="$CFLAGS"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002886 save_ldflags="$LDFLAGS"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002887 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002888 cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h. */
2894
2895int
2896main ()
2897{
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903rm -f conftest.$ac_objext conftest$ac_exeext
2904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2905 (eval $ac_link) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest$ac_exeext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002925 echo "$as_me:$LINENO: result: found" >&5
2926echo "${ECHO_T}found" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002927else
2928 echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002931echo "$as_me:$LINENO: result: not found" >&5
2932echo "${ECHO_T}not found" >&6
2933 CFLAGS="save_cflags"
2934 echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002935echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002936 CPPFLAGS="$CPPFLAGS -arch i386"
2937 LDFLAGS="$save_ldflags -arch i386"
2938 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002939/* confdefs.h. */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h. */
2944
2945int
2946main ()
2947{
2948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953rm -f conftest.$ac_objext conftest$ac_exeext
2954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2955 (eval $ac_link) 2>conftest.er1
2956 ac_status=$?
2957 grep -v '^ *+' conftest.er1 >conftest.err
2958 rm -f conftest.er1
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -z "$ac_c_werror_flag"
2963 || test ! -s conftest.err'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 (eval $ac_try) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; } &&
2969 { ac_try='test -s conftest$ac_exeext'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 (eval $ac_try) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 echo "$as_me:$LINENO: result: yes" >&5
2976echo "${ECHO_T}yes" >&6; MACARCH="intel"
2977else
2978 echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981echo "$as_me:$LINENO: result: no" >&5
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002982echo "${ECHO_T}no" >&6
2983 MACARCH="ppc"
2984 CPPFLAGS="$save_cppflags -arch ppc"
2985 LDFLAGS="$save_ldflags -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002986fi
2987rm -f conftest.err conftest.$ac_objext \
2988 conftest$ac_exeext conftest.$ac_ext
2989fi
2990rm -f conftest.err conftest.$ac_objext \
2991 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002992 elif test "x$MACARCH" = "xintel"; then
2993 CPPFLAGS="$CPPFLAGS -arch intel"
2994 LDFLAGS="$LDFLAGS -arch intel"
2995 else
2996 CPPFLAGS="$CPPFLAGS -arch ppc"
2997 LDFLAGS="$LDFLAGS -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002998 fi
2999
Bram Moolenaar071d4272004-06-13 20:20:40 +00003000 if test "$enable_darwin" = "yes"; then
3001 MACOSX=yes
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003002 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3003 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003004 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3005 if test "x$MACARCH" = "xboth"; then
3006 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3007 else
3008 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3009 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00003010
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003011 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3012echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3013if test "${ac_cv_header_stdc+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003015else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
3022#include <stdlib.h>
3023#include <stdarg.h>
3024#include <string.h>
3025#include <float.h>
3026
3027int
3028main ()
3029{
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext
3036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037 (eval $ac_compile) 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_c_werror_flag"
3045 || test ! -s conftest.err'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_header_stdc=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003058else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003059 echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062ac_cv_header_stdc=no
3063fi
3064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3065
3066if test $ac_cv_header_stdc = yes; then
3067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3068 cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h. */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h. */
3074#include <string.h>
3075
3076_ACEOF
3077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3078 $EGREP "memchr" >/dev/null 2>&1; then
3079 :
3080else
3081 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003082fi
3083rm -f conftest*
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003084
Bram Moolenaar071d4272004-06-13 20:20:40 +00003085fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003086
3087if test $ac_cv_header_stdc = yes; then
3088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3089 cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h. */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h. */
3095#include <stdlib.h>
3096
3097_ACEOF
3098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3099 $EGREP "free" >/dev/null 2>&1; then
3100 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00003101else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003102 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003103fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003104rm -f conftest*
3105
3106fi
3107
3108if test $ac_cv_header_stdc = yes; then
3109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3110 if test "$cross_compiling" = yes; then
3111 :
3112else
3113 cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
3119#include <ctype.h>
3120#if ((' ' & 0x0FF) == 0x020)
3121# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3122# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3123#else
3124# define ISLOWER(c) \
3125 (('a' <= (c) && (c) <= 'i') \
3126 || ('j' <= (c) && (c) <= 'r') \
3127 || ('s' <= (c) && (c) <= 'z'))
3128# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3129#endif
3130
3131#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3132int
3133main ()
3134{
3135 int i;
3136 for (i = 0; i < 256; i++)
3137 if (XOR (islower (i), ISLOWER (i))
3138 || toupper (i) != TOUPPER (i))
3139 exit(2);
3140 exit (0);
3141}
3142_ACEOF
3143rm -f conftest$ac_exeext
3144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3145 (eval $ac_link) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 :
3155else
3156 echo "$as_me: program exited with status $ac_status" >&5
3157echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160( exit $ac_status )
3161ac_cv_header_stdc=no
3162fi
3163rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3164fi
3165fi
3166fi
3167echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3168echo "${ECHO_T}$ac_cv_header_stdc" >&6
3169if test $ac_cv_header_stdc = yes; then
3170
3171cat >>confdefs.h <<\_ACEOF
3172#define STDC_HEADERS 1
3173_ACEOF
3174
3175fi
3176
3177# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3188 inttypes.h stdint.h unistd.h
3189do
3190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3191echo "$as_me:$LINENO: checking for $ac_header" >&5
3192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3193if eval "test \"\${$as_ac_Header+set}\" = set"; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196 cat >conftest.$ac_ext <<_ACEOF
3197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
3202$ac_includes_default
3203
3204#include <$ac_header>
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } &&
3215 { ac_try='test -z "$ac_c_werror_flag"
3216 || test ! -s conftest.err'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 (eval $ac_try) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 (eval $ac_try) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 eval "$as_ac_Header=yes"
3229else
3230 echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233eval "$as_ac_Header=no"
3234fi
3235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3236fi
3237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3239if test `eval echo '${'$as_ac_Header'}'` = yes; then
3240 cat >>confdefs.h <<_ACEOF
3241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3242_ACEOF
3243
3244fi
3245
3246done
3247
3248
3249if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3250 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3251echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3252if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254fi
3255echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3256echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3257else
3258 # Is the header compilable?
3259echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3260echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3261cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h. */
3267$ac_includes_default
3268#include <Carbon/Carbon.h>
3269_ACEOF
3270rm -f conftest.$ac_objext
3271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272 (eval $ac_compile) 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -z "$ac_c_werror_flag"
3280 || test ! -s conftest.err'
3281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 (eval $ac_try) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 (eval $ac_try) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 ac_header_compiler=yes
3293else
3294 echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297ac_header_compiler=no
3298fi
3299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3301echo "${ECHO_T}$ac_header_compiler" >&6
3302
3303# Is the header present?
3304echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3305echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3306cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h. */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h. */
3312#include <Carbon/Carbon.h>
3313_ACEOF
3314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3316 ac_status=$?
3317 grep -v '^ *+' conftest.er1 >conftest.err
3318 rm -f conftest.er1
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } >/dev/null; then
3322 if test -s conftest.err; then
3323 ac_cpp_err=$ac_c_preproc_warn_flag
3324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325 else
3326 ac_cpp_err=
3327 fi
3328else
3329 ac_cpp_err=yes
3330fi
3331if test -z "$ac_cpp_err"; then
3332 ac_header_preproc=yes
3333else
3334 echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 ac_header_preproc=no
3338fi
3339rm -f conftest.err conftest.$ac_ext
3340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3341echo "${ECHO_T}$ac_header_preproc" >&6
3342
3343# So? What about this header?
3344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3345 yes:no: )
3346 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3347echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3348 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3349echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3350 ac_header_preproc=yes
3351 ;;
3352 no:yes:* )
3353 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3354echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3355 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3356echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3357 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3358echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3359 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3360echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3361 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3362echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3363 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3364echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3365 (
3366 cat <<\_ASBOX
3367## ------------------------------------------ ##
3368## Report this to the AC_PACKAGE_NAME lists. ##
3369## ------------------------------------------ ##
3370_ASBOX
3371 ) |
3372 sed "s/^/$as_me: WARNING: /" >&2
3373 ;;
3374esac
3375echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3376echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3377if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3381fi
3382echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3383echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3384
3385fi
3386if test $ac_cv_header_Carbon_Carbon_h = yes; then
3387 CARBON=yes
3388fi
3389
Bram Moolenaar071d4272004-06-13 20:20:40 +00003390
3391 if test "x$CARBON" = "xyes"; then
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003392 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003393 with_x=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003394 fi
3395 fi
3396 fi
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003397
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003398 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
3399 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3400 fi
3401
3402 CPPFLAGS="$CPPFLAGS $MAC_OSX_ARCH"
3403 LDFLAGS="$LDFLAGS $MAC_OSX_ARCH"
3404
Bram Moolenaar071d4272004-06-13 20:20:40 +00003405else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003406 echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003408fi
3409
3410
3411
3412
3413have_local_include=''
3414have_local_lib=''
3415if test "$GCC" = yes; then
3416 echo 'void f(){}' > conftest.c
3417 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3418 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3419 rm -f conftest.c conftest.o
3420fi
3421if test -z "$have_local_lib" -a -d /usr/local/lib; then
3422 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3423 if test "$tt" = "$LDFLAGS"; then
3424 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3425 fi
3426fi
3427if test -z "$have_local_include" -a -d /usr/local/include; then
3428 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3429 if test "$tt" = "$CPPFLAGS"; then
3430 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3431 fi
3432fi
3433
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003434echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3435echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3436
Bram Moolenaar071d4272004-06-13 20:20:40 +00003437# Check whether --with-vim-name or --without-vim-name was given.
3438if test "${with_vim_name+set}" = set; then
3439 withval="$with_vim_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003440 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3441echo "${ECHO_T}$VIMNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003442else
Bram Moolenaare344bea2005-09-01 20:46:49 +00003443 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003444echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3445fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003446
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003447echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3448echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003449
Bram Moolenaar071d4272004-06-13 20:20:40 +00003450# Check whether --with-ex-name or --without-ex-name was given.
3451if test "${with_ex_name+set}" = set; then
3452 withval="$with_ex_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003453 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3454echo "${ECHO_T}$EXNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003455else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003456 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3457echo "${ECHO_T}Defaulting to ex" >&6
3458fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003459
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003460echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3461echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003462
Bram Moolenaar071d4272004-06-13 20:20:40 +00003463# Check whether --with-view-name or --without-view-name was given.
3464if test "${with_view_name+set}" = set; then
3465 withval="$with_view_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003466 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3467echo "${ECHO_T}$VIEWNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003468else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003469 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3470echo "${ECHO_T}Defaulting to view" >&6
3471fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003472
3473
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003474echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3475echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003476
Bram Moolenaar071d4272004-06-13 20:20:40 +00003477# Check whether --with-global-runtime or --without-global-runtime was given.
3478if test "${with_global_runtime+set}" = set; then
3479 withval="$with_global_runtime"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003480 echo "$as_me:$LINENO: result: $withval" >&5
3481echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003482#define RUNTIME_GLOBAL "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003483_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003484
3485else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003486 echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
3488fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003489
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003490echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3491echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003492
Bram Moolenaar071d4272004-06-13 20:20:40 +00003493# Check whether --with-modified-by or --without-modified-by was given.
3494if test "${with_modified_by+set}" = set; then
3495 withval="$with_modified_by"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003496 echo "$as_me:$LINENO: result: $withval" >&5
3497echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003498#define MODIFIED_BY "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003499_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003500
3501else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003502 echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
3504fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003505
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003506echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3507echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3508cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003514
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003515int
3516main ()
3517{
Bram Moolenaar071d4272004-06-13 20:20:40 +00003518 /* TryCompile function for CharSet.
3519 Treat any failure as ASCII for compatibility with existing art.
3520 Use compile-time rather than run-time tests for cross-compiler
3521 tolerance. */
3522#if '0'!=240
3523make an error "Character set is not EBCDIC"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003524#endif
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext
3530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag"
3539 || test ! -s conftest.err'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003551 # TryCompile action if true
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003552cf_cv_ebcdic=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003553else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003554 echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # TryCompile action if false
Bram Moolenaar071d4272004-06-13 20:20:40 +00003558cf_cv_ebcdic=no
3559fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003561# end of TryCompile ])
3562# end of CacheVal CvEbcdic
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003563echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3564echo "${ECHO_T}$cf_cv_ebcdic" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003565case "$cf_cv_ebcdic" in #(vi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003566 yes) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003567#define EBCDIC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003568_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003569
3570 line_break='"\\n"'
3571 ;;
3572 *) line_break='"\\012"';;
3573esac
3574
3575
3576if test "$cf_cv_ebcdic" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003577echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3578echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003579case `uname` in
3580 OS/390) OS390Unix="yes";
3581 if test "$CC" = "cc"; then
3582 ccm="$_CC_CCMODE"
3583 ccn="CC"
3584 else
3585 if test "$CC" = "c89"; then
3586 ccm="$_CC_C89MODE"
3587 ccn="C89"
3588 else
3589 ccm=1
3590 fi
3591 fi
3592 if test "$ccm" != "1"; then
3593 echo ""
3594 echo "------------------------------------------"
3595 echo " On OS/390 Unix, the environment variable"
3596 echo " __CC_${ccn}MODE must be set to \"1\"!"
3597 echo " Do:"
3598 echo " export _CC_${ccn}MODE=1"
3599 echo " and then call configure again."
3600 echo "------------------------------------------"
3601 exit 1
3602 fi
3603 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003604 echo "$as_me:$LINENO: result: yes" >&5
3605echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003606 ;;
3607 *) OS390Unix="no";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003608 echo "$as_me:$LINENO: result: no" >&5
3609echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003610 ;;
3611esac
3612fi
3613
3614
3615
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003616echo "$as_me:$LINENO: checking --with-features argument" >&5
3617echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3618
Bram Moolenaar071d4272004-06-13 20:20:40 +00003619# Check whether --with-features or --without-features was given.
3620if test "${with_features+set}" = set; then
3621 withval="$with_features"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003622 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3623echo "${ECHO_T}$features" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003624else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003625 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3626echo "${ECHO_T}Defaulting to normal" >&6
3627fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003628
3629dovimdiff=""
3630dogvimdiff=""
3631case "$features" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003632 tiny) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003633#define FEAT_TINY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003634_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003635 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003636 small) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003637#define FEAT_SMALL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003638_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003639 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003640 normal) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003641#define FEAT_NORMAL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003642_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003643 dovimdiff="installvimdiff";
3644 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003645 big) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003646#define FEAT_BIG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003647_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003648 dovimdiff="installvimdiff";
3649 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003650 huge) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003651#define FEAT_HUGE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003652_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003653 dovimdiff="installvimdiff";
3654 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003655 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3656echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003657esac
3658
3659
3660
3661
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003662echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3663echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3664
Bram Moolenaar071d4272004-06-13 20:20:40 +00003665# Check whether --with-compiledby or --without-compiledby was given.
3666if test "${with_compiledby+set}" = set; then
3667 withval="$with_compiledby"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003668 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3669echo "${ECHO_T}$withval" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003670else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003671 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003674
3675
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003676echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3677echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003678# Check whether --enable-xsmp or --disable-xsmp was given.
3679if test "${enable_xsmp+set}" = set; then
3680 enableval="$enable_xsmp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003681
Bram Moolenaar071d4272004-06-13 20:20:40 +00003682else
3683 enable_xsmp="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003684fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003685
3686if test "$enable_xsmp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003687 echo "$as_me:$LINENO: result: no" >&5
3688echo "${ECHO_T}no" >&6
3689 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3690echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003691 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3692if test "${enable_xsmp_interact+set}" = set; then
3693 enableval="$enable_xsmp_interact"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003694
Bram Moolenaar071d4272004-06-13 20:20:40 +00003695else
3696 enable_xsmp_interact="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003697fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003698 if test "$enable_xsmp_interact" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003699 echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003702#define USE_XSMP_INTERACT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003703_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003704
3705 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003706 echo "$as_me:$LINENO: result: yes" >&5
3707echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003708 fi
3709else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003710 echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003712fi
3713
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003714echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3715echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003716# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3717if test "${enable_mzschemeinterp+set}" = set; then
3718 enableval="$enable_mzschemeinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003719
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003720else
3721 enable_mzschemeinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003722fi;
3723echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3724echo "${ECHO_T}$enable_mzschemeinterp" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003725
3726if test "$enable_mzschemeinterp" = "yes"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003727
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003728
3729 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3730echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3731
3732# Check whether --with-plthome or --without-plthome was given.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003733if test "${with_plthome+set}" = set; then
3734 withval="$with_plthome"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003735 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3736echo "${ECHO_T}$with_plthome" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003737else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003738 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3739echo "${ECHO_T}\"no\"" >&6
3740fi;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003741
3742 if test "X$with_plthome" != "X"; then
3743 vi_cv_path_mzscheme_pfx="$with_plthome"
3744 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003745 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3746echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003747 if test "X$PLTHOME" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003748 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3749echo "${ECHO_T}\"$PLTHOME\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003750 vi_cv_path_mzscheme_pfx="$PLTHOME"
3751 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003752 echo "$as_me:$LINENO: result: \"not set\"" >&5
3753echo "${ECHO_T}\"not set\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003754 # Extract the first word of "mzscheme", so it can be a program name with args.
3755set dummy mzscheme; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003756echo "$as_me:$LINENO: checking for $ac_word" >&5
3757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003760else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003761 case $vi_cv_path_mzscheme in
3762 [\\/]* | ?:[\\/]*)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003763 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3764 ;;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003765 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3776 fi
3777done
3778done
3779
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003780 ;;
3781esac
3782fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003783vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3784
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003785if test -n "$vi_cv_path_mzscheme"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003786 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3787echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003788else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003789 echo "$as_me:$LINENO: result: no" >&5
3790echo "${ECHO_T}no" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003791fi
3792
3793
3794 if test "X$vi_cv_path_mzscheme" != "X"; then
3795 lsout=`ls -l $vi_cv_path_mzscheme`
3796 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3797 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3798 fi
3799 fi
3800
3801 if test "X$vi_cv_path_mzscheme" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003802 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3803echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3804if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003806else
3807 vi_cv_path_mzscheme_pfx=`
3808 ${vi_cv_path_mzscheme} -evm \
3809 "(display (simplify-path \
3810 (build-path (call-with-values \
3811 (lambda () (split-path (find-system-path (quote exec-file)))) \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003812 (lambda (base name must-be-dir?) base)) (quote up))))"`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003813fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003814echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3815echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003816 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3817 fi
3818 fi
3819 fi
3820
3821 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003822 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3823echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003824 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003825 echo "$as_me:$LINENO: result: \"yes\"" >&5
3826echo "${ECHO_T}\"yes\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003827 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003828 echo "$as_me:$LINENO: result: \"no\"" >&5
3829echo "${ECHO_T}\"no\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003830 vi_cv_path_mzscheme_pfx=
3831 fi
3832 fi
3833
3834 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3835 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3836 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3837 else
3838 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003839 if test "$GCC" = yes; then
3840 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003841 elif test "`(uname) 2>/dev/null`" = SunOS &&
3842 uname -r | grep '^5' >/dev/null; then
3843 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003844 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003845 fi
3846 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \
3847 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3848 MZSCHEME_SRC="if_mzsch.c"
3849 MZSCHEME_OBJ="objects/if_mzsch.o"
3850 MZSCHEME_PRO="if_mzsch.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003851 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003852#define FEAT_MZSCHEME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003853_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003854
3855 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003856
3857
3858
3859
3860
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003861fi
3862
3863
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003864echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3865echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003866# Check whether --enable-perlinterp or --disable-perlinterp was given.
3867if test "${enable_perlinterp+set}" = set; then
3868 enableval="$enable_perlinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003869
Bram Moolenaar071d4272004-06-13 20:20:40 +00003870else
3871 enable_perlinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003872fi;
3873echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3874echo "${ECHO_T}$enable_perlinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003875if test "$enable_perlinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003876
Bram Moolenaar071d4272004-06-13 20:20:40 +00003877 # Extract the first word of "perl", so it can be a program name with args.
3878set dummy perl; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003879echo "$as_me:$LINENO: checking for $ac_word" >&5
3880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003883else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003884 case $vi_cv_path_perl in
3885 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003886 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3887 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003888 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3899 fi
3900done
3901done
3902
Bram Moolenaar071d4272004-06-13 20:20:40 +00003903 ;;
3904esac
3905fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003906vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3907
Bram Moolenaar071d4272004-06-13 20:20:40 +00003908if test -n "$vi_cv_path_perl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003909 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3910echo "${ECHO_T}$vi_cv_path_perl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003911else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003912 echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003914fi
3915
3916 if test "X$vi_cv_path_perl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003917 echo "$as_me:$LINENO: checking Perl version" >&5
3918echo $ECHO_N "checking Perl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003919 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3920 eval `$vi_cv_path_perl -V:usethreads`
3921 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3922 badthreads=no
3923 else
3924 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3925 eval `$vi_cv_path_perl -V:use5005threads`
3926 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3927 badthreads=no
3928 else
3929 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003930 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3931echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003932 fi
3933 else
3934 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003935 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3936echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003937 fi
3938 fi
3939 if test $badthreads = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003940 echo "$as_me:$LINENO: result: OK" >&5
3941echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003942 eval `$vi_cv_path_perl -V:shrpenv`
3943 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3944 shrpenv=""
3945 fi
3946 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003947
Bram Moolenaar071d4272004-06-13 20:20:40 +00003948 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3949 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3950 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3951 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3952 -e 's/-bE:perl.exp//' -e 's/-lc //'`
3953 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3954 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3955
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003956 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3957echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003958 cflags_save=$CFLAGS
3959 libs_save=$LIBS
3960 ldflags_save=$LDFLAGS
3961 CFLAGS="$CFLAGS $perlcppflags"
3962 LIBS="$LIBS $perllibs"
3963 LDFLAGS="$perlldflags $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003964 cat >conftest.$ac_ext <<_ACEOF
3965/* confdefs.h. */
3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
3969/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003970
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003971int
3972main ()
3973{
3974
3975 ;
3976 return 0;
3977}
3978_ACEOF
3979rm -f conftest.$ac_objext conftest$ac_exeext
3980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3981 (eval $ac_link) 2>conftest.er1
3982 ac_status=$?
3983 grep -v '^ *+' conftest.er1 >conftest.err
3984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
3988 { ac_try='test -z "$ac_c_werror_flag"
3989 || test ! -s conftest.err'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; } &&
3995 { ac_try='test -s conftest$ac_exeext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 echo "$as_me:$LINENO: result: yes" >&5
4002echo "${ECHO_T}yes" >&6; perl_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004003else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004004 echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4008echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004009fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004010rm -f conftest.err conftest.$ac_objext \
4011 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004012 CFLAGS=$cflags_save
4013 LIBS=$libs_save
4014 LDFLAGS=$ldflags_save
4015 if test $perl_ok = yes; then
4016 if test "X$perlcppflags" != "X"; then
4017 PERL_CFLAGS="$perlcppflags"
4018 fi
4019 if test "X$perlldflags" != "X"; then
4020 LDFLAGS="$perlldflags $LDFLAGS"
4021 fi
4022 PERL_LIBS=$perllibs
4023 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4024 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4025 PERL_PRO="if_perl.pro if_perlsfio.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004026 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004027#define FEAT_PERL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004028_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004029
4030 fi
4031 fi
4032 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004033 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4034echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004035 fi
4036 fi
4037
4038 if test "x$MACOSX" = "xyes"; then
4039 dir=/System/Library/Perl
4040 darwindir=$dir/darwin
4041 if test -d $darwindir; then
4042 PERL=/usr/bin/perl
4043 else
4044 dir=/System/Library/Perl/5.8.1
4045 darwindir=$dir/darwin-thread-multi-2level
4046 if test -d $darwindir; then
4047 PERL=/usr/bin/perl
4048 fi
4049 fi
4050 if test -n "$PERL"; then
4051 PERL_DIR="$dir"
4052 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4053 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4054 PERL_LIBS="-L$darwindir/CORE -lperl"
4055 fi
4056 fi
4057fi
4058
4059
4060
4061
4062
4063
4064
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004065echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4066echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004067# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4068if test "${enable_pythoninterp+set}" = set; then
4069 enableval="$enable_pythoninterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004070
Bram Moolenaar071d4272004-06-13 20:20:40 +00004071else
4072 enable_pythoninterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004073fi;
4074echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4075echo "${ECHO_T}$enable_pythoninterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004076if test "$enable_pythoninterp" = "yes"; then
4077 # Extract the first word of "python", so it can be a program name with args.
4078set dummy python; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004079echo "$as_me:$LINENO: checking for $ac_word" >&5
4080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004083else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004084 case $vi_cv_path_python in
4085 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004086 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4087 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004088 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4099 fi
4100done
4101done
4102
Bram Moolenaar071d4272004-06-13 20:20:40 +00004103 ;;
4104esac
4105fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004106vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4107
Bram Moolenaar071d4272004-06-13 20:20:40 +00004108if test -n "$vi_cv_path_python"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004109 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4110echo "${ECHO_T}$vi_cv_path_python" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004111else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004112 echo "$as_me:$LINENO: result: no" >&5
4113echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004114fi
4115
4116 if test "X$vi_cv_path_python" != "X"; then
4117
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004118 echo "$as_me:$LINENO: checking Python version" >&5
4119echo $ECHO_N "checking Python version... $ECHO_C" >&6
4120if test "${vi_cv_var_python_version+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004122else
4123 vi_cv_var_python_version=`
4124 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004125
Bram Moolenaar071d4272004-06-13 20:20:40 +00004126fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004127echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4128echo "${ECHO_T}$vi_cv_var_python_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004129
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004130 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4131echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004132 if ${vi_cv_path_python} -c \
4133 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4134 then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004135 echo "$as_me:$LINENO: result: yep" >&5
4136echo "${ECHO_T}yep" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004137
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004138 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4139echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4140if test "${vi_cv_path_python_pfx+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004142else
4143 vi_cv_path_python_pfx=`
4144 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004145 "import sys; print sys.prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004146fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004147echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4148echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004149
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004150 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4151echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4152if test "${vi_cv_path_python_epfx+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004154else
4155 vi_cv_path_python_epfx=`
4156 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004157 "import sys; print sys.exec_prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004158fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004159echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4160echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004161
Bram Moolenaar071d4272004-06-13 20:20:40 +00004162
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004163 if test "${vi_cv_path_pythonpath+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004165else
4166 vi_cv_path_pythonpath=`
4167 unset PYTHONPATH;
4168 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004169 "import sys, string; print string.join(sys.path,':')"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004170fi
4171
4172
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004173
4174
4175# Check whether --with-python-config-dir or --without-python-config-dir was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004176if test "${with_python_config_dir+set}" = set; then
4177 withval="$with_python_config_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004178 vi_cv_path_python_conf="${withval}"
4179fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004180
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004181 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4182echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4183if test "${vi_cv_path_python_conf+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004185else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004186
Bram Moolenaar071d4272004-06-13 20:20:40 +00004187 vi_cv_path_python_conf=
4188 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4189 for subdir in lib share; do
4190 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4191 if test -d "$d" && test -f "$d/config.c"; then
4192 vi_cv_path_python_conf="$d"
4193 fi
4194 done
4195 done
Bram Moolenaar071d4272004-06-13 20:20:40 +00004196
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004197fi
4198echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4199echo "${ECHO_T}$vi_cv_path_python_conf" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004200
4201 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4202
4203 if test "X$PYTHON_CONFDIR" = "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004204 echo "$as_me:$LINENO: result: can't find it!" >&5
4205echo "${ECHO_T}can't find it!" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004206 else
4207
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004208 if test "${vi_cv_path_python_plibs+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004210else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004211
Bram Moolenaar071d4272004-06-13 20:20:40 +00004212 tmp_mkf="/tmp/Makefile-conf$$"
4213 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4214__:
4215 @echo "python_MODLIBS='$(MODLIBS)'"
4216 @echo "python_LIBS='$(LIBS)'"
4217 @echo "python_SYSLIBS='$(SYSLIBS)'"
4218 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4219eof
4220 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4221 rm -f ${tmp_mkf}
4222 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4223 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4224 vi_cv_path_python_plibs="-framework Python"
4225 else
4226 if test "${vi_cv_var_python_version}" = "1.4"; then
4227 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4228 else
4229 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4230 fi
4231 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4232 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4233 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004234
Bram Moolenaar071d4272004-06-13 20:20:40 +00004235fi
4236
4237
4238 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4239 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4240 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4241 else
4242 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
4243 fi
4244 PYTHON_SRC="if_python.c"
4245 if test "x$MACOSX" = "xyes"; then
4246 PYTHON_OBJ="objects/if_python.o"
4247 else
4248 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4249 fi
4250 if test "${vi_cv_var_python_version}" = "1.4"; then
4251 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4252 fi
4253 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4254
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004255 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4256echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004257 threadsafe_flag=
4258 thread_lib=
4259 if test "x$MACOSX" != "xyes"; then
4260 test "$GCC" = yes && threadsafe_flag="-pthread"
4261 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4262 threadsafe_flag="-D_THREAD_SAFE"
4263 thread_lib="-pthread"
4264 fi
4265 fi
4266 libs_save_old=$LIBS
4267 if test -n "$threadsafe_flag"; then
4268 cflags_save=$CFLAGS
4269 CFLAGS="$CFLAGS $threadsafe_flag"
4270 LIBS="$LIBS $thread_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004271 cat >conftest.$ac_ext <<_ACEOF
4272/* confdefs.h. */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004277
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004278int
4279main ()
4280{
4281
4282 ;
4283 return 0;
4284}
4285_ACEOF
4286rm -f conftest.$ac_objext conftest$ac_exeext
4287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag"
4296 || test ! -s conftest.err'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try='test -s conftest$ac_exeext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 echo "$as_me:$LINENO: result: yes" >&5
4309echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004310else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004311 echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
4314echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4316
Bram Moolenaar071d4272004-06-13 20:20:40 +00004317fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004318rm -f conftest.err conftest.$ac_objext \
4319 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004320 CFLAGS=$cflags_save
4321 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004322 echo "$as_me:$LINENO: result: no" >&5
4323echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004324 fi
4325
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004326 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4327echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004328 cflags_save=$CFLAGS
4329 libs_save=$LIBS
4330 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4331 LIBS="$LIBS $PYTHON_LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004332 cat >conftest.$ac_ext <<_ACEOF
4333/* confdefs.h. */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004338
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004339int
4340main ()
4341{
4342
4343 ;
4344 return 0;
4345}
4346_ACEOF
4347rm -f conftest.$ac_objext conftest$ac_exeext
4348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4349 (eval $ac_link) 2>conftest.er1
4350 ac_status=$?
4351 grep -v '^ *+' conftest.er1 >conftest.err
4352 rm -f conftest.er1
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try='test -z "$ac_c_werror_flag"
4357 || test ! -s conftest.err'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6; python_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004371else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004372 echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4376echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004377fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004378rm -f conftest.err conftest.$ac_objext \
4379 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004380 CFLAGS=$cflags_save
4381 LIBS=$libs_save
4382 if test $python_ok = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004383 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004384#define FEAT_PYTHON 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004385_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004386
4387 else
4388 LIBS=$libs_save_old
4389 PYTHON_SRC=
4390 PYTHON_OBJ=
4391 PYTHON_LIBS=
4392 PYTHON_CFLAGS=
4393 fi
4394
4395 fi
4396 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004397 echo "$as_me:$LINENO: result: too old" >&5
4398echo "${ECHO_T}too old" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004399 fi
4400 fi
4401fi
4402
4403
4404
4405
4406
4407
4408
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004409echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4410echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004411# Check whether --enable-tclinterp or --disable-tclinterp was given.
4412if test "${enable_tclinterp+set}" = set; then
4413 enableval="$enable_tclinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004414
Bram Moolenaar071d4272004-06-13 20:20:40 +00004415else
4416 enable_tclinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004417fi;
4418echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4419echo "${ECHO_T}$enable_tclinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004420
4421if test "$enable_tclinterp" = "yes"; then
4422
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004423 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4424echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4425
4426# Check whether --with-tclsh or --without-tclsh was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004427if test "${with_tclsh+set}" = set; then
4428 withval="$with_tclsh"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004429 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4430echo "${ECHO_T}$tclsh_name" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004431else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004432 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4433echo "${ECHO_T}no" >&6
4434fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004435 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4436set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004437echo "$as_me:$LINENO: checking for $ac_word" >&5
4438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004441else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004442 case $vi_cv_path_tcl in
4443 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004444 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4445 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004446 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458done
4459done
4460
Bram Moolenaar071d4272004-06-13 20:20:40 +00004461 ;;
4462esac
4463fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004464vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4465
Bram Moolenaar071d4272004-06-13 20:20:40 +00004466if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004467 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4468echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004469else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004470 echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004472fi
4473
Bram Moolenaar071d4272004-06-13 20:20:40 +00004474
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004475
4476 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004477 tclsh_name="tclsh8.2"
4478 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4479set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004480echo "$as_me:$LINENO: checking for $ac_word" >&5
4481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004484else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004485 case $vi_cv_path_tcl in
4486 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004487 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4488 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004489 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491for as_dir in $PATH
4492do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501done
4502done
4503
Bram Moolenaar071d4272004-06-13 20:20:40 +00004504 ;;
4505esac
4506fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004507vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4508
Bram Moolenaar071d4272004-06-13 20:20:40 +00004509if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004510 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4511echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004512else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004513 echo "$as_me:$LINENO: result: no" >&5
4514echo "${ECHO_T}no" >&6
4515fi
4516
4517 fi
4518 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4519 tclsh_name="tclsh8.0"
4520 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4521set dummy $tclsh_name; ac_word=$2
4522echo "$as_me:$LINENO: checking for $ac_word" >&5
4523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4524if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526else
4527 case $vi_cv_path_tcl in
4528 [\\/]* | ?:[\\/]*)
4529 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4530 ;;
4531 *)
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533for as_dir in $PATH
4534do
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4542 fi
4543done
4544done
4545
4546 ;;
4547esac
4548fi
4549vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4550
4551if test -n "$vi_cv_path_tcl"; then
4552 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4553echo "${ECHO_T}$vi_cv_path_tcl" >&6
4554else
4555 echo "$as_me:$LINENO: result: no" >&5
4556echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004557fi
4558
4559 fi
4560 if test "X$vi_cv_path_tcl" = "X"; then
4561 tclsh_name="tclsh"
4562 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4563set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004564echo "$as_me:$LINENO: checking for $ac_word" >&5
4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004568else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004569 case $vi_cv_path_tcl in
4570 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004571 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4572 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004573 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585done
4586done
4587
Bram Moolenaar071d4272004-06-13 20:20:40 +00004588 ;;
4589esac
4590fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004591vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4592
Bram Moolenaar071d4272004-06-13 20:20:40 +00004593if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004594 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4595echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004596else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004597 echo "$as_me:$LINENO: result: no" >&5
4598echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004599fi
4600
4601 fi
4602 if test "X$vi_cv_path_tcl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004603 echo "$as_me:$LINENO: checking Tcl version" >&5
4604echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004605 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4606 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004607 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4608echo "${ECHO_T}$tclver - OK" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004609 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
4610
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004611 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4612echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004613 if test "x$MACOSX" != "xyes"; then
Bram Moolenaar47136d72004-10-12 20:02:24 +00004614 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004615 else
4616 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4617 fi
4618 for try in $tclinc; do
4619 if test -f "$try/tcl.h"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004620 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4621echo "${ECHO_T}$try/tcl.h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004622 TCL_INC=$try
4623 break
4624 fi
4625 done
4626 if test -z "$TCL_INC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004627 echo "$as_me:$LINENO: result: <not found>" >&5
4628echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004629 SKIP_TCL=YES
4630 fi
4631 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004632 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4633echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004634 if test "x$MACOSX" != "xyes"; then
4635 tclcnf=`echo $tclinc | sed s/include/lib/g`
4636 else
4637 tclcnf="/System/Library/Frameworks/Tcl.framework"
4638 fi
4639 for try in $tclcnf; do
4640 if test -f $try/tclConfig.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004641 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4642echo "${ECHO_T}$try/tclConfig.sh" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004643 . $try/tclConfig.sh
4644 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
Bram Moolenaar9372a112005-12-06 19:59:18 +00004645 TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004646 break
4647 fi
4648 done
4649 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004650 echo "$as_me:$LINENO: result: <not found>" >&5
4651echo "${ECHO_T}<not found>" >&6
4652 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4653echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004654 tcllib=`echo $tclinc | sed s/include/lib/g`
4655 for ext in .so .a ; do
4656 for ver in "" $tclver ; do
4657 for try in $tcllib ; do
4658 trylib=tcl$ver$ext
4659 if test -f $try/lib$trylib ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004660 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4661echo "${ECHO_T}$try/lib$trylib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004662 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4663 if test "`(uname) 2>/dev/null`" = SunOS &&
4664 uname -r | grep '^5' >/dev/null; then
4665 TCL_LIBS="$TCL_LIBS -R $try"
4666 fi
4667 break 3
4668 fi
4669 done
4670 done
4671 done
4672 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004673 echo "$as_me:$LINENO: result: <not found>" >&5
4674echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004675 SKIP_TCL=YES
4676 fi
4677 fi
4678 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004679 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004680#define FEAT_TCL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004681_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004682
4683 TCL_SRC=if_tcl.c
4684 TCL_OBJ=objects/if_tcl.o
4685 TCL_PRO=if_tcl.pro
4686 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4687 fi
4688 fi
4689 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004690 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4691echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004692 fi
4693 fi
4694fi
4695
4696
4697
4698
4699
4700
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004701echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4702echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004703# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4704if test "${enable_rubyinterp+set}" = set; then
4705 enableval="$enable_rubyinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004706
Bram Moolenaar071d4272004-06-13 20:20:40 +00004707else
4708 enable_rubyinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004709fi;
4710echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4711echo "${ECHO_T}$enable_rubyinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004712if test "$enable_rubyinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004713
Bram Moolenaar071d4272004-06-13 20:20:40 +00004714 # Extract the first word of "ruby", so it can be a program name with args.
4715set dummy ruby; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004716echo "$as_me:$LINENO: checking for $ac_word" >&5
4717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4718if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004720else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004721 case $vi_cv_path_ruby in
4722 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004723 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4724 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004725 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737done
4738done
4739
Bram Moolenaar071d4272004-06-13 20:20:40 +00004740 ;;
4741esac
4742fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004743vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4744
Bram Moolenaar071d4272004-06-13 20:20:40 +00004745if test -n "$vi_cv_path_ruby"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004746 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4747echo "${ECHO_T}$vi_cv_path_ruby" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004748else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004749 echo "$as_me:$LINENO: result: no" >&5
4750echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004751fi
4752
4753 if test "X$vi_cv_path_ruby" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004754 echo "$as_me:$LINENO: checking Ruby version" >&5
4755echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
Bram Moolenaar0cb032e2005-04-23 20:52:00 +00004756 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004757 echo "$as_me:$LINENO: result: OK" >&5
4758echo "${ECHO_T}OK" >&6
4759 echo "$as_me:$LINENO: checking Ruby header files" >&5
4760echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004761 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4762 if test "X$rubyhdrdir" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004763 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4764echo "${ECHO_T}$rubyhdrdir" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004765 RUBY_CFLAGS="-I$rubyhdrdir"
4766 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4767 if test "X$rubylibs" != "X"; then
4768 RUBY_LIBS="$rubylibs"
4769 fi
4770 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4771 if test -f "$rubyhdrdir/$librubyarg"; then
4772 librubyarg="$rubyhdrdir/$librubyarg"
4773 else
4774 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4775 if test -f "$rubylibdir/$librubyarg"; then
4776 librubyarg="$rubylibdir/$librubyarg"
4777 elif test "$librubyarg" = "libruby.a"; then
4778 librubyarg="-lruby"
4779 else
4780 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4781 fi
4782 fi
4783
4784 if test "X$librubyarg" != "X"; then
4785 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4786 fi
4787 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4788 if test "X$rubyldflags" != "X"; then
4789 LDFLAGS="$rubyldflags $LDFLAGS"
4790 fi
4791 RUBY_SRC="if_ruby.c"
4792 RUBY_OBJ="objects/if_ruby.o"
4793 RUBY_PRO="if_ruby.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004794 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004795#define FEAT_RUBY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004796_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004797
4798 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004799 echo "$as_me:$LINENO: result: not found" >&5
4800echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004801 fi
4802 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004803 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4804echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004805 fi
4806 fi
4807fi
4808
4809
4810
4811
4812
4813
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004814echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4815echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004816# Check whether --enable-cscope or --disable-cscope was given.
4817if test "${enable_cscope+set}" = set; then
4818 enableval="$enable_cscope"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004819
Bram Moolenaar071d4272004-06-13 20:20:40 +00004820else
4821 enable_cscope="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004822fi;
4823echo "$as_me:$LINENO: result: $enable_cscope" >&5
4824echo "${ECHO_T}$enable_cscope" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004825if test "$enable_cscope" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004826 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004827#define FEAT_CSCOPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004828_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004829
4830fi
4831
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004832echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4833echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004834# Check whether --enable-workshop or --disable-workshop was given.
4835if test "${enable_workshop+set}" = set; then
4836 enableval="$enable_workshop"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004837
Bram Moolenaar071d4272004-06-13 20:20:40 +00004838else
4839 enable_workshop="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004840fi;
4841echo "$as_me:$LINENO: result: $enable_workshop" >&5
4842echo "${ECHO_T}$enable_workshop" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004843if test "$enable_workshop" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004844 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004845#define FEAT_SUN_WORKSHOP 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004846_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004847
4848 WORKSHOP_SRC="workshop.c integration.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004849
Bram Moolenaar071d4272004-06-13 20:20:40 +00004850 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004851
Bram Moolenaar071d4272004-06-13 20:20:40 +00004852 if test "${enable_gui-xxx}" = xxx; then
4853 enable_gui=motif
4854 fi
4855fi
4856
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004857echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4858echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004859# Check whether --enable-netbeans or --disable-netbeans was given.
4860if test "${enable_netbeans+set}" = set; then
4861 enableval="$enable_netbeans"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004862
Bram Moolenaar071d4272004-06-13 20:20:40 +00004863else
4864 enable_netbeans="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004865fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004866if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004867 echo "$as_me:$LINENO: result: no" >&5
4868echo "${ECHO_T}no" >&6
4869
4870echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4871echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4872if test "${ac_cv_lib_socket_socket+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004874else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004875 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004876LIBS="-lsocket $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004877cat >conftest.$ac_ext <<_ACEOF
4878/* confdefs.h. */
4879_ACEOF
4880cat confdefs.h >>conftest.$ac_ext
4881cat >>conftest.$ac_ext <<_ACEOF
4882/* end confdefs.h. */
4883
Bram Moolenaar071d4272004-06-13 20:20:40 +00004884/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004885#ifdef __cplusplus
4886extern "C"
4887#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004888/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004889 builtin and then its argument prototype would still apply. */
4890char socket ();
4891int
4892main ()
4893{
4894socket ();
4895 ;
4896 return 0;
4897}
4898_ACEOF
4899rm -f conftest.$ac_objext conftest$ac_exeext
4900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901 (eval $ac_link) 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -z "$ac_c_werror_flag"
4909 || test ! -s conftest.err'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; } &&
4915 { ac_try='test -s conftest$ac_exeext'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 (eval $ac_try) 2>&5
4918 ac_status=$?
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4921 ac_cv_lib_socket_socket=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004922else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004923 echo "$as_me: failed program was:" >&5
4924sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004925
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004926ac_cv_lib_socket_socket=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004927fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004928rm -f conftest.err conftest.$ac_objext \
4929 conftest$ac_exeext conftest.$ac_ext
4930LIBS=$ac_check_lib_save_LIBS
4931fi
4932echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4933echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4934if test $ac_cv_lib_socket_socket = yes; then
4935 cat >>confdefs.h <<_ACEOF
4936#define HAVE_LIBSOCKET 1
4937_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004938
4939 LIBS="-lsocket $LIBS"
4940
Bram Moolenaar071d4272004-06-13 20:20:40 +00004941fi
4942
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004943
4944echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4945echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4946if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004948else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004949 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004950LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004951cat >conftest.$ac_ext <<_ACEOF
4952/* confdefs.h. */
4953_ACEOF
4954cat confdefs.h >>conftest.$ac_ext
4955cat >>conftest.$ac_ext <<_ACEOF
4956/* end confdefs.h. */
4957
Bram Moolenaar071d4272004-06-13 20:20:40 +00004958/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004959#ifdef __cplusplus
4960extern "C"
4961#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004962/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004963 builtin and then its argument prototype would still apply. */
4964char gethostbyname ();
4965int
4966main ()
4967{
4968gethostbyname ();
4969 ;
4970 return 0;
4971}
4972_ACEOF
4973rm -f conftest.$ac_objext conftest$ac_exeext
4974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>conftest.er1
4976 ac_status=$?
4977 grep -v '^ *+' conftest.er1 >conftest.err
4978 rm -f conftest.er1
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -z "$ac_c_werror_flag"
4983 || test ! -s conftest.err'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; } &&
4989 { ac_try='test -s conftest$ac_exeext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004996else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004997 echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004999
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005000ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005001fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005002rm -f conftest.err conftest.$ac_objext \
5003 conftest$ac_exeext conftest.$ac_ext
5004LIBS=$ac_check_lib_save_LIBS
5005fi
5006echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5007echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5008if test $ac_cv_lib_nsl_gethostbyname = yes; then
5009 cat >>confdefs.h <<_ACEOF
5010#define HAVE_LIBNSL 1
5011_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005012
5013 LIBS="-lnsl $LIBS"
5014
Bram Moolenaar071d4272004-06-13 20:20:40 +00005015fi
5016
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005017 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5018echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5019 cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h. */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005025
5026#include <stdio.h>
5027#include <stdlib.h>
5028#include <stdarg.h>
5029#include <fcntl.h>
5030#include <netdb.h>
5031#include <netinet/in.h>
5032#include <errno.h>
5033#include <sys/types.h>
5034#include <sys/socket.h>
5035 /* Check bitfields */
5036 struct nbbuf {
5037 unsigned int initDone:1;
5038 ushort signmaplen;
5039 };
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005040
5041int
5042main ()
5043{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005044
5045 /* Check creating a socket. */
5046 struct sockaddr_in server;
5047 (void)socket(AF_INET, SOCK_STREAM, 0);
5048 (void)htons(100);
5049 (void)gethostbyname("microsoft.com");
5050 if (errno == ECONNREFUSED)
5051 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005052
5053 ;
5054 return 0;
5055}
5056_ACEOF
5057rm -f conftest.$ac_objext conftest$ac_exeext
5058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>conftest.er1
5060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005081else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005082 echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
5085echo "$as_me:$LINENO: result: no" >&5
5086echo "${ECHO_T}no" >&6; enable_netbeans="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005087fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005088rm -f conftest.err conftest.$ac_objext \
5089 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005090else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005091 echo "$as_me:$LINENO: result: yes" >&5
5092echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005093fi
5094if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005095 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005096#define FEAT_NETBEANS_INTG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005097_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005098
5099 NETBEANS_SRC="netbeans.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005100
Bram Moolenaar071d4272004-06-13 20:20:40 +00005101 NETBEANS_OBJ="objects/netbeans.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005102
Bram Moolenaar071d4272004-06-13 20:20:40 +00005103fi
5104
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005105echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5106echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005107# Check whether --enable-sniff or --disable-sniff was given.
5108if test "${enable_sniff+set}" = set; then
5109 enableval="$enable_sniff"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005110
Bram Moolenaar071d4272004-06-13 20:20:40 +00005111else
5112 enable_sniff="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005113fi;
5114echo "$as_me:$LINENO: result: $enable_sniff" >&5
5115echo "${ECHO_T}$enable_sniff" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005116if test "$enable_sniff" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005117 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005118#define FEAT_SNIFF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005119_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005120
5121 SNIFF_SRC="if_sniff.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005122
Bram Moolenaar071d4272004-06-13 20:20:40 +00005123 SNIFF_OBJ="objects/if_sniff.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005124
Bram Moolenaar071d4272004-06-13 20:20:40 +00005125fi
5126
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005127echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5128echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005129# Check whether --enable-multibyte or --disable-multibyte was given.
5130if test "${enable_multibyte+set}" = set; then
5131 enableval="$enable_multibyte"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005132
Bram Moolenaar071d4272004-06-13 20:20:40 +00005133else
5134 enable_multibyte="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005135fi;
5136echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5137echo "${ECHO_T}$enable_multibyte" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005138if test "$enable_multibyte" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005139 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005140#define FEAT_MBYTE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005141_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005142
5143fi
5144
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005145echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5146echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005147# Check whether --enable-hangulinput or --disable-hangulinput was given.
5148if test "${enable_hangulinput+set}" = set; then
5149 enableval="$enable_hangulinput"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005150
Bram Moolenaar071d4272004-06-13 20:20:40 +00005151else
5152 enable_hangulinput="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005153fi;
5154echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5155echo "${ECHO_T}$enable_hangulinput" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005156
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005157echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5158echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005159# Check whether --enable-xim or --disable-xim was given.
5160if test "${enable_xim+set}" = set; then
5161 enableval="$enable_xim"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005162 echo "$as_me:$LINENO: result: $enable_xim" >&5
5163echo "${ECHO_T}$enable_xim" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005164else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005165 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5166echo "${ECHO_T}defaulting to auto" >&6
5167fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005168
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005169echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5170echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005171# Check whether --enable-fontset or --disable-fontset was given.
5172if test "${enable_fontset+set}" = set; then
5173 enableval="$enable_fontset"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005174
Bram Moolenaar071d4272004-06-13 20:20:40 +00005175else
5176 enable_fontset="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005177fi;
5178echo "$as_me:$LINENO: result: $enable_fontset" >&5
5179echo "${ECHO_T}$enable_fontset" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005180
5181test -z "$with_x" && with_x=yes
5182test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5183if test "$with_x" = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005184 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5185echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005186else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005187
Bram Moolenaar071d4272004-06-13 20:20:40 +00005188 # Extract the first word of "xmkmf", so it can be a program name with args.
5189set dummy xmkmf; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005190echo "$as_me:$LINENO: checking for $ac_word" >&5
5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_path_xmkmfpath+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005194else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005195 case $xmkmfpath in
5196 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005197 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5198 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005199 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211done
5212done
5213
Bram Moolenaar071d4272004-06-13 20:20:40 +00005214 ;;
5215esac
5216fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005217xmkmfpath=$ac_cv_path_xmkmfpath
5218
Bram Moolenaar071d4272004-06-13 20:20:40 +00005219if test -n "$xmkmfpath"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005220 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5221echo "${ECHO_T}$xmkmfpath" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005222else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005225fi
5226
5227
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005228 echo "$as_me:$LINENO: checking for X" >&5
5229echo $ECHO_N "checking for X... $ECHO_C" >&6
5230
Bram Moolenaar071d4272004-06-13 20:20:40 +00005231
5232# Check whether --with-x or --without-x was given.
5233if test "${with_x+set}" = set; then
5234 withval="$with_x"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005235
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005236fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005237# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5238if test "x$with_x" = xno; then
5239 # The user explicitly disabled X.
5240 have_x=disabled
5241else
5242 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5243 # Both variables are already set.
5244 have_x=yes
5245 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005246 if test "${ac_cv_have_x+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005248else
5249 # One or both of the vars are not set, and there is no cached value.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005250ac_x_includes=no ac_x_libraries=no
5251rm -fr conftest.dir
5252if mkdir conftest.dir; then
5253 cd conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005254 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005255 cat >Imakefile <<'_ACEOF'
Bram Moolenaar071d4272004-06-13 20:20:40 +00005256acfindx:
5257 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005258_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005259 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5260 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5261 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5262 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5263 for ac_extension in a so sl; do
5264 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005265 test -f $ac_im_libdir/libX11.$ac_extension; then
5266 ac_im_usrlibdir=$ac_im_libdir; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00005267 fi
5268 done
5269 # Screen out bogus values from the imake configuration. They are
5270 # bogus both because they are the default anyway, and because
5271 # using them would break gcc on systems where it needs fixed includes.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005272 case $ac_im_incroot in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005273 /usr/include) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005274 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005275 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005276 case $ac_im_usrlibdir in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005277 /usr/lib | /lib) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005278 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005279 esac
5280 fi
5281 cd ..
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005282 rm -fr conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005283fi
5284
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005285# Standard set of common directories for X headers.
5286# Check X11 before X11Rn because it is often a symlink to the current release.
5287ac_x_header_dirs='
5288/usr/X11/include
5289/usr/X11R6/include
5290/usr/X11R5/include
5291/usr/X11R4/include
Bram Moolenaar071d4272004-06-13 20:20:40 +00005292
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005293/usr/include/X11
5294/usr/include/X11R6
5295/usr/include/X11R5
5296/usr/include/X11R4
5297
5298/usr/local/X11/include
5299/usr/local/X11R6/include
5300/usr/local/X11R5/include
5301/usr/local/X11R4/include
5302
5303/usr/local/include/X11
5304/usr/local/include/X11R6
5305/usr/local/include/X11R5
5306/usr/local/include/X11R4
5307
5308/usr/X386/include
5309/usr/x386/include
5310/usr/XFree86/include/X11
5311
5312/usr/include
5313/usr/local/include
5314/usr/unsupported/include
5315/usr/athena/include
5316/usr/local/x11r5/include
5317/usr/lpp/Xamples/include
5318
5319/usr/openwin/include
5320/usr/openwin/share/include'
5321
5322if test "$ac_x_includes" = no; then
5323 # Guess where to find include files, by looking for Intrinsic.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005324 # First, try using that file with no special directory specified.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005325 cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h. */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h. */
5331#include <X11/Intrinsic.h>
5332_ACEOF
5333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } >/dev/null; then
5341 if test -s conftest.err; then
5342 ac_cpp_err=$ac_c_preproc_warn_flag
5343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5344 else
5345 ac_cpp_err=
5346 fi
5347else
5348 ac_cpp_err=yes
5349fi
5350if test -z "$ac_cpp_err"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005351 # We can compile using X headers with no special include directory.
5352ac_x_includes=
5353else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005354 echo "$as_me: failed program was:" >&5
5355sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 for ac_dir in $ac_x_header_dirs; do
5358 if test -r "$ac_dir/X11/Intrinsic.h"; then
5359 ac_x_includes=$ac_dir
5360 break
5361 fi
5362done
Bram Moolenaar071d4272004-06-13 20:20:40 +00005363fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005364rm -f conftest.err conftest.$ac_ext
5365fi # $ac_x_includes = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005366
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005367if test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005368 # Check for the libraries.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005369 # See if we find them without any special options.
5370 # Don't add to $LIBS permanently.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005371 ac_save_LIBS=$LIBS
5372 LIBS="-lXt $LIBS"
5373 cat >conftest.$ac_ext <<_ACEOF
5374/* confdefs.h. */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h. */
5379#include <X11/Intrinsic.h>
5380int
5381main ()
5382{
5383XtMalloc (0)
5384 ;
5385 return 0;
5386}
5387_ACEOF
5388rm -f conftest.$ac_objext conftest$ac_exeext
5389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5390 (eval $ac_link) 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest$ac_exeext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 LIBS=$ac_save_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005411# We can link X programs with no special library path.
5412ac_x_libraries=
5413else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005414 echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417LIBS=$ac_save_LIBS
5418for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Bram Moolenaar071d4272004-06-13 20:20:40 +00005419do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005420 # Don't even attempt the hair of trying to link an X program!
Bram Moolenaar071d4272004-06-13 20:20:40 +00005421 for ac_extension in a so sl; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005422 if test -r $ac_dir/libXt.$ac_extension; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005423 ac_x_libraries=$ac_dir
5424 break 2
5425 fi
5426 done
5427done
5428fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005429rm -f conftest.err conftest.$ac_objext \
5430 conftest$ac_exeext conftest.$ac_ext
5431fi # $ac_x_libraries = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005432
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005433if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005434 # Didn't find X anywhere. Cache the known absence of X.
5435 ac_cv_have_x="have_x=no"
5436else
5437 # Record where we found X for the cache.
5438 ac_cv_have_x="have_x=yes \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005439 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005440fi
5441fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005442
Bram Moolenaar071d4272004-06-13 20:20:40 +00005443 fi
5444 eval "$ac_cv_have_x"
5445fi # $with_x != no
5446
5447if test "$have_x" != yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005448 echo "$as_me:$LINENO: result: $have_x" >&5
5449echo "${ECHO_T}$have_x" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005450 no_x=yes
5451else
5452 # If each of the values was on the command line, it overrides each guess.
5453 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5454 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5455 # Update the cache value to reflect the command line values.
5456 ac_cv_have_x="have_x=yes \
5457 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005458 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5459echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005460fi
5461
5462if test "$no_x" = yes; then
5463 # Not all programs may use this symbol, but it does not hurt to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005464
5465cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005466#define X_DISPLAY_MISSING 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005467_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005468
5469 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5470else
5471 if test -n "$x_includes"; then
5472 X_CFLAGS="$X_CFLAGS -I$x_includes"
5473 fi
5474
5475 # It would also be nice to do this for all -L options, not just this one.
5476 if test -n "$x_libraries"; then
5477 X_LIBS="$X_LIBS -L$x_libraries"
5478 # For Solaris; some versions of Sun CC require a space after -R and
5479 # others require no space. Words are not sufficient . . . .
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005480 case `(uname -sr) 2>/dev/null` in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005481 "SunOS 5"*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005482 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5483echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5484 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5485 cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h. */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005491
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005492int
5493main ()
5494{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005495
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005496 ;
5497 return 0;
5498}
5499_ACEOF
5500rm -f conftest.$ac_objext conftest$ac_exeext
5501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5502 (eval $ac_link) 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -z "$ac_c_werror_flag"
5510 || test ! -s conftest.err'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try='test -s conftest$ac_exeext'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005522 ac_R_nospace=yes
5523else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005524 echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
5527ac_R_nospace=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005528fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005529rm -f conftest.err conftest.$ac_objext \
5530 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005531 if test $ac_R_nospace = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005532 echo "$as_me:$LINENO: result: no" >&5
5533echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005534 X_LIBS="$X_LIBS -R$x_libraries"
5535 else
5536 LIBS="$ac_xsave_LIBS -R $x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005537 cat >conftest.$ac_ext <<_ACEOF
5538/* confdefs.h. */
5539_ACEOF
5540cat confdefs.h >>conftest.$ac_ext
5541cat >>conftest.$ac_ext <<_ACEOF
5542/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005543
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005544int
5545main ()
5546{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005547
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005548 ;
5549 return 0;
5550}
5551_ACEOF
5552rm -f conftest.$ac_objext conftest$ac_exeext
5553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5554 (eval $ac_link) 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try='test -z "$ac_c_werror_flag"
5562 || test ! -s conftest.err'
5563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 (eval $ac_try) 2>&5
5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; } &&
5568 { ac_try='test -s conftest$ac_exeext'
5569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 (eval $ac_try) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005574 ac_R_space=yes
5575else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005576 echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
5579ac_R_space=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005580fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005581rm -f conftest.err conftest.$ac_objext \
5582 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005583 if test $ac_R_space = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005584 echo "$as_me:$LINENO: result: yes" >&5
5585echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005586 X_LIBS="$X_LIBS -R $x_libraries"
5587 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005588 echo "$as_me:$LINENO: result: neither works" >&5
5589echo "${ECHO_T}neither works" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005590 fi
5591 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005592 LIBS=$ac_xsave_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005593 esac
5594 fi
5595
5596 # Check for system-dependent libraries X programs must link with.
5597 # Do this before checking for the system-independent R6 libraries
5598 # (-lICE), since we may need -lsocket or whatever for X linking.
5599
5600 if test "$ISC" = yes; then
5601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5602 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005603 # Martyn Johnson says this is needed for Ultrix, if the X
5604 # libraries were built with DECnet support. And Karl Berry says
Bram Moolenaar071d4272004-06-13 20:20:40 +00005605 # the Alpha needs dnet_stub (dnet does not exist).
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005606 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5607 cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
5613
Bram Moolenaar071d4272004-06-13 20:20:40 +00005614/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005615#ifdef __cplusplus
5616extern "C"
5617#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005618/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005619 builtin and then its argument prototype would still apply. */
5620char XOpenDisplay ();
5621int
5622main ()
5623{
5624XOpenDisplay ();
5625 ;
5626 return 0;
5627}
5628_ACEOF
5629rm -f conftest.$ac_objext conftest$ac_exeext
5630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631 (eval $ac_link) 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } &&
5638 { ac_try='test -z "$ac_c_werror_flag"
5639 || test ! -s conftest.err'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest$ac_exeext'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 (eval $ac_try) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5651 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00005652else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005653 echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005655
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005656echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5657echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5658if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660else
5661 ac_check_lib_save_LIBS=$LIBS
5662LIBS="-ldnet $LIBS"
5663cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h. */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h. */
5669
5670/* Override any gcc2 internal prototype to avoid an error. */
5671#ifdef __cplusplus
5672extern "C"
5673#endif
5674/* We use char because int might match the return type of a gcc2
5675 builtin and then its argument prototype would still apply. */
5676char dnet_ntoa ();
5677int
5678main ()
5679{
5680dnet_ntoa ();
5681 ;
5682 return 0;
5683}
5684_ACEOF
5685rm -f conftest.$ac_objext conftest$ac_exeext
5686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5687 (eval $ac_link) 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -z "$ac_c_werror_flag"
5695 || test ! -s conftest.err'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest$ac_exeext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_lib_dnet_dnet_ntoa=yes
5708else
5709 echo "$as_me: failed program was:" >&5
5710sed 's/^/| /' conftest.$ac_ext >&5
5711
5712ac_cv_lib_dnet_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005713fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005714rm -f conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5716LIBS=$ac_check_lib_save_LIBS
5717fi
5718echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5719echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5720if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005721 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005722fi
5723
5724 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005725 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5726echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5727if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005729else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005730 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005731LIBS="-ldnet_stub $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005732cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h. */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h. */
5738
Bram Moolenaar071d4272004-06-13 20:20:40 +00005739/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005740#ifdef __cplusplus
5741extern "C"
5742#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005743/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005744 builtin and then its argument prototype would still apply. */
5745char dnet_ntoa ();
5746int
5747main ()
5748{
5749dnet_ntoa ();
5750 ;
5751 return 0;
5752}
5753_ACEOF
5754rm -f conftest.$ac_objext conftest$ac_exeext
5755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756 (eval $ac_link) 2>conftest.er1
5757 ac_status=$?
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -z "$ac_c_werror_flag"
5764 || test ! -s conftest.err'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; } &&
5770 { ac_try='test -s conftest$ac_exeext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005777else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005778 echo "$as_me: failed program was:" >&5
5779sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005780
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005781ac_cv_lib_dnet_stub_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005782fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005783rm -f conftest.err conftest.$ac_objext \
5784 conftest$ac_exeext conftest.$ac_ext
5785LIBS=$ac_check_lib_save_LIBS
5786fi
5787echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5788echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5789if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005790 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005791fi
5792
5793 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005794fi
5795rm -f conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5797 LIBS="$ac_xsave_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005798
5799 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5800 # to get the SysV transport functions.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005801 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005802 # needs -lnsl.
5803 # The nsl library prevents programs from opening the X display
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005804 # on Irix 5.2, according to T.E. Dickey.
5805 # The functions gethostbyname, getservbyname, and inet_addr are
5806 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5807 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5808echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5809if test "${ac_cv_func_gethostbyname+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005811else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005812 cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h. */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h. */
5818/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5820#define gethostbyname innocuous_gethostbyname
5821
Bram Moolenaar071d4272004-06-13 20:20:40 +00005822/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005823 which can conflict with char gethostbyname (); below.
5824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825 <limits.h> exists even on freestanding compilers. */
5826
5827#ifdef __STDC__
5828# include <limits.h>
5829#else
5830# include <assert.h>
5831#endif
5832
5833#undef gethostbyname
5834
Bram Moolenaar071d4272004-06-13 20:20:40 +00005835/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005836#ifdef __cplusplus
5837extern "C"
5838{
5839#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005840/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005841 builtin and then its argument prototype would still apply. */
5842char gethostbyname ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005843/* The GNU C library defines this for functions which it implements
5844 to always fail with ENOSYS. Some functions are actually named
5845 something starting with __ and the normal name is an alias. */
5846#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5847choke me
5848#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005849char (*f) () = gethostbyname;
5850#endif
5851#ifdef __cplusplus
5852}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005853#endif
5854
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005855int
5856main ()
5857{
5858return f != gethostbyname;
5859 ;
5860 return 0;
5861}
5862_ACEOF
5863rm -f conftest.$ac_objext conftest$ac_exeext
5864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865 (eval $ac_link) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try='test -s conftest$ac_exeext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_cv_func_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005886else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005887 echo "$as_me: failed program was:" >&5
5888sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005889
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005890ac_cv_func_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005891fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005892rm -f conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894fi
5895echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5896echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005897
5898 if test $ac_cv_func_gethostbyname = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005899 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5900echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5901if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005903else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005904 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005905LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005906cat >conftest.$ac_ext <<_ACEOF
5907/* confdefs.h. */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
5912
Bram Moolenaar071d4272004-06-13 20:20:40 +00005913/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005914#ifdef __cplusplus
5915extern "C"
5916#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005917/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005918 builtin and then its argument prototype would still apply. */
5919char gethostbyname ();
5920int
5921main ()
5922{
5923gethostbyname ();
5924 ;
5925 return 0;
5926}
5927_ACEOF
5928rm -f conftest.$ac_objext conftest$ac_exeext
5929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest$ac_exeext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005951else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005952 echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005954
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005955ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005956fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005957rm -f conftest.err conftest.$ac_objext \
5958 conftest$ac_exeext conftest.$ac_ext
5959LIBS=$ac_check_lib_save_LIBS
5960fi
5961echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5962echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5963if test $ac_cv_lib_nsl_gethostbyname = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005964 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005965fi
5966
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005967 if test $ac_cv_lib_nsl_gethostbyname = no; then
5968 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5969echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5970if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972else
5973 ac_check_lib_save_LIBS=$LIBS
5974LIBS="-lbsd $LIBS"
5975cat >conftest.$ac_ext <<_ACEOF
5976/* confdefs.h. */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h. */
5981
5982/* Override any gcc2 internal prototype to avoid an error. */
5983#ifdef __cplusplus
5984extern "C"
5985#endif
5986/* We use char because int might match the return type of a gcc2
5987 builtin and then its argument prototype would still apply. */
5988char gethostbyname ();
5989int
5990main ()
5991{
5992gethostbyname ();
5993 ;
5994 return 0;
5995}
5996_ACEOF
5997rm -f conftest.$ac_objext conftest$ac_exeext
5998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_lib_bsd_gethostbyname=yes
6020else
6021 echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024ac_cv_lib_bsd_gethostbyname=no
6025fi
6026rm -f conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6028LIBS=$ac_check_lib_save_LIBS
6029fi
6030echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6031echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6032if test $ac_cv_lib_bsd_gethostbyname = yes; then
6033 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6034fi
6035
6036 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00006037 fi
6038
6039 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6040 # socket/setsockopt and other routines are undefined under SCO ODT
6041 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006042 # on later versions), says Simon Leinen: it contains gethostby*
6043 # variants that don't use the name server (or something). -lsocket
6044 # must be given before -lnsl if both are needed. We assume that
6045 # if connect needs -lnsl, so does gethostbyname.
6046 echo "$as_me:$LINENO: checking for connect" >&5
6047echo $ECHO_N "checking for connect... $ECHO_C" >&6
6048if test "${ac_cv_func_connect+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006050else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006051 cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h. */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h. */
6057/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6059#define connect innocuous_connect
6060
Bram Moolenaar071d4272004-06-13 20:20:40 +00006061/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006062 which can conflict with char connect (); below.
6063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6064 <limits.h> exists even on freestanding compilers. */
6065
6066#ifdef __STDC__
6067# include <limits.h>
6068#else
6069# include <assert.h>
6070#endif
6071
6072#undef connect
6073
Bram Moolenaar071d4272004-06-13 20:20:40 +00006074/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006075#ifdef __cplusplus
6076extern "C"
6077{
6078#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006079/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006080 builtin and then its argument prototype would still apply. */
6081char connect ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006082/* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085#if defined (__stub_connect) || defined (__stub___connect)
6086choke me
6087#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006088char (*f) () = connect;
6089#endif
6090#ifdef __cplusplus
6091}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006092#endif
6093
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006094int
6095main ()
6096{
6097return f != connect;
6098 ;
6099 return 0;
6100}
6101_ACEOF
6102rm -f conftest.$ac_objext conftest$ac_exeext
6103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try='test -z "$ac_c_werror_flag"
6112 || test ! -s conftest.err'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; } &&
6118 { ac_try='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_func_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006125else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006126 echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006128
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006129ac_cv_func_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006130fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006131rm -f conftest.err conftest.$ac_objext \
6132 conftest$ac_exeext conftest.$ac_ext
6133fi
6134echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6135echo "${ECHO_T}$ac_cv_func_connect" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006136
6137 if test $ac_cv_func_connect = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006138 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6139echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6140if test "${ac_cv_lib_socket_connect+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006142else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006143 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006144LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006145cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151
Bram Moolenaar071d4272004-06-13 20:20:40 +00006152/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006153#ifdef __cplusplus
6154extern "C"
6155#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006156/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006157 builtin and then its argument prototype would still apply. */
6158char connect ();
6159int
6160main ()
6161{
6162connect ();
6163 ;
6164 return 0;
6165}
6166_ACEOF
6167rm -f conftest.$ac_objext conftest$ac_exeext
6168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6169 (eval $ac_link) 2>conftest.er1
6170 ac_status=$?
6171 grep -v '^ *+' conftest.er1 >conftest.err
6172 rm -f conftest.er1
6173 cat conftest.err >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -z "$ac_c_werror_flag"
6177 || test ! -s conftest.err'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; } &&
6183 { ac_try='test -s conftest$ac_exeext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_cv_lib_socket_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006190else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006191 echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006193
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006194ac_cv_lib_socket_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006195fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006196rm -f conftest.err conftest.$ac_objext \
6197 conftest$ac_exeext conftest.$ac_ext
6198LIBS=$ac_check_lib_save_LIBS
6199fi
6200echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6201echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6202if test $ac_cv_lib_socket_connect = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006203 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006204fi
6205
6206 fi
6207
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006208 # Guillermo Gomez says -lposix is necessary on A/UX.
6209 echo "$as_me:$LINENO: checking for remove" >&5
6210echo $ECHO_N "checking for remove... $ECHO_C" >&6
6211if test "${ac_cv_func_remove+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006213else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006214 cat >conftest.$ac_ext <<_ACEOF
6215/* confdefs.h. */
6216_ACEOF
6217cat confdefs.h >>conftest.$ac_ext
6218cat >>conftest.$ac_ext <<_ACEOF
6219/* end confdefs.h. */
6220/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6222#define remove innocuous_remove
6223
Bram Moolenaar071d4272004-06-13 20:20:40 +00006224/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006225 which can conflict with char remove (); below.
6226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227 <limits.h> exists even on freestanding compilers. */
6228
6229#ifdef __STDC__
6230# include <limits.h>
6231#else
6232# include <assert.h>
6233#endif
6234
6235#undef remove
6236
Bram Moolenaar071d4272004-06-13 20:20:40 +00006237/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006238#ifdef __cplusplus
6239extern "C"
6240{
6241#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006242/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006243 builtin and then its argument prototype would still apply. */
6244char remove ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006245/* The GNU C library defines this for functions which it implements
6246 to always fail with ENOSYS. Some functions are actually named
6247 something starting with __ and the normal name is an alias. */
6248#if defined (__stub_remove) || defined (__stub___remove)
6249choke me
6250#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006251char (*f) () = remove;
6252#endif
6253#ifdef __cplusplus
6254}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006255#endif
6256
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006257int
6258main ()
6259{
6260return f != remove;
6261 ;
6262 return 0;
6263}
6264_ACEOF
6265rm -f conftest.$ac_objext conftest$ac_exeext
6266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267 (eval $ac_link) 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -z "$ac_c_werror_flag"
6275 || test ! -s conftest.err'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; } &&
6281 { ac_try='test -s conftest$ac_exeext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 ac_cv_func_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006288else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006289 echo "$as_me: failed program was:" >&5
6290sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006291
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006292ac_cv_func_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006293fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006294rm -f conftest.err conftest.$ac_objext \
6295 conftest$ac_exeext conftest.$ac_ext
6296fi
6297echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6298echo "${ECHO_T}$ac_cv_func_remove" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006299
6300 if test $ac_cv_func_remove = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006301 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6302echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6303if test "${ac_cv_lib_posix_remove+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006305else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006306 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006307LIBS="-lposix $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006308cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h. */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h. */
6314
Bram Moolenaar071d4272004-06-13 20:20:40 +00006315/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006316#ifdef __cplusplus
6317extern "C"
6318#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006319/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006320 builtin and then its argument prototype would still apply. */
6321char remove ();
6322int
6323main ()
6324{
6325remove ();
6326 ;
6327 return 0;
6328}
6329_ACEOF
6330rm -f conftest.$ac_objext conftest$ac_exeext
6331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332 (eval $ac_link) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest$ac_exeext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_cv_lib_posix_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006353else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006354 echo "$as_me: failed program was:" >&5
6355sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006356
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006357ac_cv_lib_posix_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006358fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006359rm -f conftest.err conftest.$ac_objext \
6360 conftest$ac_exeext conftest.$ac_ext
6361LIBS=$ac_check_lib_save_LIBS
6362fi
6363echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6364echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6365if test $ac_cv_lib_posix_remove = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006367fi
6368
6369 fi
6370
6371 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006372 echo "$as_me:$LINENO: checking for shmat" >&5
6373echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6374if test "${ac_cv_func_shmat+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006376else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006377 cat >conftest.$ac_ext <<_ACEOF
6378/* confdefs.h. */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h. */
6383/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6385#define shmat innocuous_shmat
6386
Bram Moolenaar071d4272004-06-13 20:20:40 +00006387/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006388 which can conflict with char shmat (); below.
6389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6390 <limits.h> exists even on freestanding compilers. */
6391
6392#ifdef __STDC__
6393# include <limits.h>
6394#else
6395# include <assert.h>
6396#endif
6397
6398#undef shmat
6399
Bram Moolenaar071d4272004-06-13 20:20:40 +00006400/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006401#ifdef __cplusplus
6402extern "C"
6403{
6404#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006405/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006406 builtin and then its argument prototype would still apply. */
6407char shmat ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006408/* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411#if defined (__stub_shmat) || defined (__stub___shmat)
6412choke me
6413#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006414char (*f) () = shmat;
6415#endif
6416#ifdef __cplusplus
6417}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006418#endif
6419
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006420int
6421main ()
6422{
6423return f != shmat;
6424 ;
6425 return 0;
6426}
6427_ACEOF
6428rm -f conftest.$ac_objext conftest$ac_exeext
6429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest$ac_exeext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_cv_func_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006451else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006452 echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006454
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006455ac_cv_func_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006456fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006457rm -f conftest.err conftest.$ac_objext \
6458 conftest$ac_exeext conftest.$ac_ext
6459fi
6460echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6461echo "${ECHO_T}$ac_cv_func_shmat" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006462
6463 if test $ac_cv_func_shmat = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006464 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6465echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6466if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006468else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006469 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006470LIBS="-lipc $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006471cat >conftest.$ac_ext <<_ACEOF
6472/* confdefs.h. */
6473_ACEOF
6474cat confdefs.h >>conftest.$ac_ext
6475cat >>conftest.$ac_ext <<_ACEOF
6476/* end confdefs.h. */
6477
Bram Moolenaar071d4272004-06-13 20:20:40 +00006478/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006479#ifdef __cplusplus
6480extern "C"
6481#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006482/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006483 builtin and then its argument prototype would still apply. */
6484char shmat ();
6485int
6486main ()
6487{
6488shmat ();
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493rm -f conftest.$ac_objext conftest$ac_exeext
6494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6495 (eval $ac_link) 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try='test -z "$ac_c_werror_flag"
6503 || test ! -s conftest.err'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 ac_cv_lib_ipc_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006516else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006517 echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006519
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006520ac_cv_lib_ipc_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006521fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006522rm -f conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524LIBS=$ac_check_lib_save_LIBS
6525fi
6526echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6527echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6528if test $ac_cv_lib_ipc_shmat = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006529 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006530fi
6531
6532 fi
6533 fi
6534
6535 # Check for libraries that X11R6 Xt/Xaw programs need.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006536 ac_save_LDFLAGS=$LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006537 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6538 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6539 # check for ICE first), but we must link in the order -lSM -lICE or
6540 # we get undefined symbols. So assume we have SM if we have ICE.
6541 # These have to be linked with before -lX11, unlike the other
6542 # libraries we check for below, so use a different variable.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006543 # John Interrante, Karl Berry
6544 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6545echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6546if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006548else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006549 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006550LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006551cat >conftest.$ac_ext <<_ACEOF
6552/* confdefs.h. */
6553_ACEOF
6554cat confdefs.h >>conftest.$ac_ext
6555cat >>conftest.$ac_ext <<_ACEOF
6556/* end confdefs.h. */
6557
Bram Moolenaar071d4272004-06-13 20:20:40 +00006558/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006559#ifdef __cplusplus
6560extern "C"
6561#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006562/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006563 builtin and then its argument prototype would still apply. */
6564char IceConnectionNumber ();
6565int
6566main ()
6567{
6568IceConnectionNumber ();
6569 ;
6570 return 0;
6571}
6572_ACEOF
6573rm -f conftest.$ac_objext conftest$ac_exeext
6574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_c_werror_flag"
6583 || test ! -s conftest.err'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest$ac_exeext'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
6595 ac_cv_lib_ICE_IceConnectionNumber=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006596else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006597 echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006599
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006600ac_cv_lib_ICE_IceConnectionNumber=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006601fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006602rm -f conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext conftest.$ac_ext
6604LIBS=$ac_check_lib_save_LIBS
6605fi
6606echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6607echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6608if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006609 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006610fi
6611
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006612 LDFLAGS=$ac_save_LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006613
6614fi
6615
6616
6617 if test "$OS390Unix" = "yes"; then
6618 CFLAGS="$CFLAGS -W c,dll"
6619 LDFLAGS="$LDFLAGS -W l,dll"
6620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6621 fi
6622
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006623
Bram Moolenaar071d4272004-06-13 20:20:40 +00006624 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6625 x_libraries=`echo "$x_includes" | sed s/include/lib/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006626 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6627echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006628 X_LIBS="$X_LIBS -L$x_libraries"
6629 if test "`(uname) 2>/dev/null`" = SunOS &&
6630 uname -r | grep '^5' >/dev/null; then
6631 X_LIBS="$X_LIBS -R $x_libraries"
6632 fi
6633 fi
6634
6635 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6636 x_includes=`echo "$x_libraries" | sed s/lib/include/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006637 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6638echo "${ECHO_T}Corrected X includes to $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006639 X_CFLAGS="$X_CFLAGS -I$x_includes"
6640 fi
6641
6642 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6643 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6644 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6645
6646
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006647 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6648echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006649 cflags_save=$CFLAGS
6650 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006651 cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h. */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006657#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006658int
6659main ()
6660{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006661
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006662 ;
6663 return 0;
6664}
6665_ACEOF
6666rm -f conftest.$ac_objext
6667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6668 (eval $ac_compile) 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } &&
6675 { ac_try='test -z "$ac_c_werror_flag"
6676 || test ! -s conftest.err'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; } &&
6682 { ac_try='test -s conftest.$ac_objext'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 echo "$as_me:$LINENO: result: yes" >&5
6689echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006690else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006691 echo "$as_me: failed program was:" >&5
6692sed 's/^/| /' conftest.$ac_ext >&5
6693
6694echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6; no_x=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006696fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006698 CFLAGS=$cflags_save
6699
6700 if test "${no_x-no}" = yes; then
6701 with_x=no
6702 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006703 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006704#define HAVE_X11 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006705_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006706
6707 X_LIB="-lXt -lX11";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006708
Bram Moolenaar071d4272004-06-13 20:20:40 +00006709
6710 ac_save_LDFLAGS="$LDFLAGS"
6711 LDFLAGS="-L$x_libraries $LDFLAGS"
6712
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006713 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6714echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6715if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006717else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006718 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006719LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006720cat >conftest.$ac_ext <<_ACEOF
6721/* confdefs.h. */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
6725/* end confdefs.h. */
6726
Bram Moolenaar071d4272004-06-13 20:20:40 +00006727/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006728#ifdef __cplusplus
6729extern "C"
6730#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006731/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006732 builtin and then its argument prototype would still apply. */
6733char _XdmcpAuthDoIt ();
6734int
6735main ()
6736{
6737_XdmcpAuthDoIt ();
6738 ;
6739 return 0;
6740}
6741_ACEOF
6742rm -f conftest.$ac_objext conftest$ac_exeext
6743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744 (eval $ac_link) 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try='test -z "$ac_c_werror_flag"
6752 || test ! -s conftest.err'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; } &&
6758 { ac_try='test -s conftest$ac_exeext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006765else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006766 echo "$as_me: failed program was:" >&5
6767sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006768
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006769ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006770fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006771rm -f conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773LIBS=$ac_check_lib_save_LIBS
6774fi
6775echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6776echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6777if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006778 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006779fi
6780
6781
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006782 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6783echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6784if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006786else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006787 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006788LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006789cat >conftest.$ac_ext <<_ACEOF
6790/* confdefs.h. */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h. */
6795
Bram Moolenaar071d4272004-06-13 20:20:40 +00006796/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006797#ifdef __cplusplus
6798extern "C"
6799#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006800/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006801 builtin and then its argument prototype would still apply. */
6802char IceOpenConnection ();
6803int
6804main ()
6805{
6806IceOpenConnection ();
6807 ;
6808 return 0;
6809}
6810_ACEOF
6811rm -f conftest.$ac_objext conftest$ac_exeext
6812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest$ac_exeext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_cv_lib_ICE_IceOpenConnection=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006834else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006835 echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006837
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006838ac_cv_lib_ICE_IceOpenConnection=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006839fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006840rm -f conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
6842LIBS=$ac_check_lib_save_LIBS
6843fi
6844echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6845echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6846if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006848fi
6849
6850
6851 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006852 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6853echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6854if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006856else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006857 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006858LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006859cat >conftest.$ac_ext <<_ACEOF
6860/* confdefs.h. */
6861_ACEOF
6862cat confdefs.h >>conftest.$ac_ext
6863cat >>conftest.$ac_ext <<_ACEOF
6864/* end confdefs.h. */
6865
Bram Moolenaar071d4272004-06-13 20:20:40 +00006866/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006867#ifdef __cplusplus
6868extern "C"
6869#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006870/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006871 builtin and then its argument prototype would still apply. */
6872char XpmCreatePixmapFromData ();
6873int
6874main ()
6875{
6876XpmCreatePixmapFromData ();
6877 ;
6878 return 0;
6879}
6880_ACEOF
6881rm -f conftest.$ac_objext conftest$ac_exeext
6882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>conftest.er1
6884 ac_status=$?
6885 grep -v '^ *+' conftest.er1 >conftest.err
6886 rm -f conftest.er1
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -z "$ac_c_werror_flag"
6891 || test ! -s conftest.err'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; } &&
6897 { ac_try='test -s conftest$ac_exeext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006904else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006905 echo "$as_me: failed program was:" >&5
6906sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006907
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006908ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006909fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006910rm -f conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6912LIBS=$ac_check_lib_save_LIBS
6913fi
6914echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6915echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6916if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006917 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006918fi
6919
6920
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006921 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6922echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006923 cflags_save=$CFLAGS
6924 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006925 cat >conftest.$ac_ext <<_ACEOF
6926/* confdefs.h. */
6927_ACEOF
6928cat confdefs.h >>conftest.$ac_ext
6929cat >>conftest.$ac_ext <<_ACEOF
6930/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006931#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006932int
6933main ()
6934{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006935
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006936 ;
6937 return 0;
6938}
6939_ACEOF
6940rm -f conftest.$ac_objext
6941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6942 (eval $ac_compile) 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try='test -z "$ac_c_werror_flag"
6950 || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest.$ac_objext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006964else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006965 echo "$as_me: failed program was:" >&5
6966sed 's/^/| /' conftest.$ac_ext >&5
6967
6968CFLAGS="$CFLAGS -Wno-implicit-int"
6969 cat >conftest.$ac_ext <<_ACEOF
6970/* confdefs.h. */
6971_ACEOF
6972cat confdefs.h >>conftest.$ac_ext
6973cat >>conftest.$ac_ext <<_ACEOF
6974/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006975#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006976int
6977main ()
6978{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006979
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006980 ;
6981 return 0;
6982}
6983_ACEOF
6984rm -f conftest.$ac_objext
6985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 (eval $ac_compile) 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try='test -z "$ac_c_werror_flag"
6994 || test ! -s conftest.err'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; } &&
7000 { ac_try='test -s conftest.$ac_objext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7006 echo "$as_me:$LINENO: result: yes" >&5
7007echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007008else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007009 echo "$as_me: failed program was:" >&5
7010sed 's/^/| /' conftest.$ac_ext >&5
7011
7012echo "$as_me:$LINENO: result: test failed" >&5
7013echo "${ECHO_T}test failed" >&6
7014
Bram Moolenaar071d4272004-06-13 20:20:40 +00007015fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7017
Bram Moolenaar071d4272004-06-13 20:20:40 +00007018fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00007020 CFLAGS=$cflags_save
7021
7022 LDFLAGS="$ac_save_LDFLAGS"
7023
7024 fi
7025fi
7026
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00007027test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00007028
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007029echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7030echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007031# Check whether --enable-gui or --disable-gui was given.
7032if test "${enable_gui+set}" = set; then
7033 enableval="$enable_gui"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007034
Bram Moolenaar071d4272004-06-13 20:20:40 +00007035else
7036 enable_gui="auto"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007037fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007038
7039enable_gui_canon=`echo "_$enable_gui" | \
7040 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7041
7042SKIP_GTK=YES
7043SKIP_GTK2=YES
7044SKIP_GNOME=YES
7045SKIP_MOTIF=YES
7046SKIP_ATHENA=YES
7047SKIP_NEXTAW=YES
7048SKIP_PHOTON=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00007049SKIP_CARBON=YES
7050GUITYPE=NONE
7051
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007052if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007053 SKIP_PHOTON=
7054 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007055 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7056echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007057 SKIP_PHOTON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007058 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7059echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7060 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7061echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7062 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
7063echo "${ECHO_T}Photon GUI support" >&6 ;;
7064 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7065echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007066 SKIP_PHOTON=YES ;;
7067 esac
7068
7069elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7070 SKIP_CARBON=
7071 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007072 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7073echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007074 SKIP_CARBON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007075 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7076echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7077 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7078echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7079 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7080echo "${ECHO_T}Carbon GUI support" >&6 ;;
7081 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7082echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007083 SKIP_CARBON=YES ;;
7084 esac
7085
7086else
7087
Bram Moolenaar071d4272004-06-13 20:20:40 +00007088 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007089 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
7090echo "${ECHO_T}no GUI support" >&6 ;;
7091 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7092echo "${ECHO_T}yes/auto - automatic GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007093 SKIP_GTK=
7094 SKIP_GTK2=
7095 SKIP_GNOME=
7096 SKIP_MOTIF=
7097 SKIP_ATHENA=
7098 SKIP_NEXTAW=
7099 SKIP_CARBON=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007100 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7101echo "${ECHO_T}GTK+ 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007102 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007103 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7104echo "${ECHO_T}GTK+ 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007105 SKIP_GTK=
7106 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007107 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7108echo "${ECHO_T}GNOME 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007109 SKIP_GNOME=
7110 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007111 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7112echo "${ECHO_T}GNOME 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007113 SKIP_GNOME=
7114 SKIP_GTK=
7115 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007116 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
7117echo "${ECHO_T}Motif GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007118 SKIP_MOTIF=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007119 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7120echo "${ECHO_T}Athena GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007121 SKIP_ATHENA=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007122 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7123echo "${ECHO_T}neXtaw GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007124 SKIP_NEXTAW=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007125 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7126echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007127 esac
7128
7129fi
7130
7131if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007132 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7133echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007134 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7135if test "${enable_gtk_check+set}" = set; then
7136 enableval="$enable_gtk_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007137
Bram Moolenaar071d4272004-06-13 20:20:40 +00007138else
7139 enable_gtk_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007140fi;
7141 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7142echo "${ECHO_T}$enable_gtk_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007143 if test "x$enable_gtk_check" = "xno"; then
7144 SKIP_GTK=YES
7145 SKIP_GNOME=YES
7146 fi
7147fi
7148
7149if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7150 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007151 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7152echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007153 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7154if test "${enable_gtk2_check+set}" = set; then
7155 enableval="$enable_gtk2_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007156
Bram Moolenaar071d4272004-06-13 20:20:40 +00007157else
7158 enable_gtk2_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007159fi;
7160 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7161echo "${ECHO_T}$enable_gtk2_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007162 if test "x$enable_gtk2_check" = "xno"; then
7163 SKIP_GTK2=YES
7164 fi
7165fi
7166
7167if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7168 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007169 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7170echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007171 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7172if test "${enable_gnome_check+set}" = set; then
7173 enableval="$enable_gnome_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007174
Bram Moolenaar071d4272004-06-13 20:20:40 +00007175else
7176 enable_gnome_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007177fi;
7178 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7179echo "${ECHO_T}$enable_gnome_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007180 if test "x$enable_gnome_check" = "xno"; then
7181 SKIP_GNOME=YES
7182 fi
7183fi
7184
7185if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007186 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7187echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007188 # Check whether --enable-motif-check or --disable-motif-check was given.
7189if test "${enable_motif_check+set}" = set; then
7190 enableval="$enable_motif_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007191
Bram Moolenaar071d4272004-06-13 20:20:40 +00007192else
7193 enable_motif_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007194fi;
7195 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7196echo "${ECHO_T}$enable_motif_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007197 if test "x$enable_motif_check" = "xno"; then
7198 SKIP_MOTIF=YES
7199 fi
7200fi
7201
7202if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007203 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7204echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007205 # Check whether --enable-athena-check or --disable-athena-check was given.
7206if test "${enable_athena_check+set}" = set; then
7207 enableval="$enable_athena_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007208
Bram Moolenaar071d4272004-06-13 20:20:40 +00007209else
7210 enable_athena_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007211fi;
7212 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7213echo "${ECHO_T}$enable_athena_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007214 if test "x$enable_athena_check" = "xno"; then
7215 SKIP_ATHENA=YES
7216 fi
7217fi
7218
7219if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007220 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7221echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007222 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7223if test "${enable_nextaw_check+set}" = set; then
7224 enableval="$enable_nextaw_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007225
Bram Moolenaar071d4272004-06-13 20:20:40 +00007226else
7227 enable_nextaw_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007228fi;
7229 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7230echo "${ECHO_T}$enable_nextaw_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007231 if test "x$enable_nextaw_check" = "xno"; then
7232 SKIP_NEXTAW=YES
7233 fi
7234fi
7235
7236if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007237 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7238echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007239 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7240if test "${enable_carbon_check+set}" = set; then
7241 enableval="$enable_carbon_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007242
Bram Moolenaar071d4272004-06-13 20:20:40 +00007243else
7244 enable_carbon_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007245fi;
7246 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7247echo "${ECHO_T}$enable_carbon_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007248 if test "x$enable_carbon_check" = "xno"; then
7249 SKIP_CARBON=YES
7250 fi
7251fi
7252
Bram Moolenaar843ee412004-06-30 16:16:41 +00007253
Bram Moolenaar071d4272004-06-13 20:20:40 +00007254if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007255 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7256echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7257 echo "$as_me:$LINENO: result: yes" >&5
7258echo "${ECHO_T}yes" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007259 GUITYPE=CARBONGUI
Bram Moolenaare344bea2005-09-01 20:46:49 +00007260 if test "$VIMNAME" = "vim"; then
7261 VIMNAME=Vim
7262 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007263 SKIP_GTK=YES;
7264 SKIP_GTK2=YES;
7265 SKIP_GNOME=YES;
7266 SKIP_MOTIF=YES;
7267 SKIP_ATHENA=YES;
7268 SKIP_NEXTAW=YES;
7269 SKIP_PHOTON=YES;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007270 SKIP_CARBON=YES
7271fi
7272
7273
7274
7275
7276
7277
7278
7279
7280
Bram Moolenaar071d4272004-06-13 20:20:40 +00007281if test -z "$SKIP_GTK"; then
7282
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007283 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7284echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7285
7286# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007287if test "${with_gtk_prefix+set}" = set; then
7288 withval="$with_gtk_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007289 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7290echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007291else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007292 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6
7294fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007295
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007296 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7297echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007298
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007299# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007300if test "${with_gtk_exec_prefix+set}" = set; then
7301 withval="$with_gtk_exec_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007302 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7303echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007304else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007305 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7306echo "${ECHO_T}no" >&6
7307fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007308
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007309 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7310echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007311 # Check whether --enable-gtktest or --disable-gtktest was given.
7312if test "${enable_gtktest+set}" = set; then
7313 enableval="$enable_gtktest"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007314
Bram Moolenaar071d4272004-06-13 20:20:40 +00007315else
7316 enable_gtktest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007317fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007318 if test "x$enable_gtktest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007319 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7320echo "${ECHO_T}gtk test enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007321 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007322 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7323echo "${ECHO_T}gtk test disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007324 fi
7325
7326 if test "x$gtk_config_prefix" != "x" ; then
7327 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7328 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7329 fi
7330 if test "x$gtk_config_exec_prefix" != "x" ; then
7331 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7332 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7333 fi
7334 if test "X$GTK_CONFIG" = "X"; then
7335 # Extract the first word of "gtk-config", so it can be a program name with args.
7336set dummy gtk-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007337echo "$as_me:$LINENO: checking for $ac_word" >&5
7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7339if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007341else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007342 case $GTK_CONFIG in
7343 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007344 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7345 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007346 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358done
7359done
7360
Bram Moolenaar071d4272004-06-13 20:20:40 +00007361 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7362 ;;
7363esac
7364fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007365GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7366
Bram Moolenaar071d4272004-06-13 20:20:40 +00007367if test -n "$GTK_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007368 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7369echo "${ECHO_T}$GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007370else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007371 echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007373fi
7374
7375 if test "X$GTK_CONFIG" = "Xno"; then
7376 # Extract the first word of "gtk12-config", so it can be a program name with args.
7377set dummy gtk12-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007378echo "$as_me:$LINENO: checking for $ac_word" >&5
7379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7380if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007382else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007383 case $GTK12_CONFIG in
7384 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007385 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7386 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007387 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399done
7400done
7401
Bram Moolenaar071d4272004-06-13 20:20:40 +00007402 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7403 ;;
7404esac
7405fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007406GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7407
Bram Moolenaar071d4272004-06-13 20:20:40 +00007408if test -n "$GTK12_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007409 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7410echo "${ECHO_T}$GTK12_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007411else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007412 echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007414fi
7415
7416 GTK_CONFIG="$GTK12_CONFIG"
7417 fi
7418 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007419 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7420echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007421 fi
7422 if test "X$PKG_CONFIG" = "X"; then
7423 # Extract the first word of "pkg-config", so it can be a program name with args.
7424set dummy pkg-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007425echo "$as_me:$LINENO: checking for $ac_word" >&5
7426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7427if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007429else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007430 case $PKG_CONFIG in
7431 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007432 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7433 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007434 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446done
7447done
7448
Bram Moolenaar071d4272004-06-13 20:20:40 +00007449 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7450 ;;
7451esac
7452fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007453PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7454
Bram Moolenaar071d4272004-06-13 20:20:40 +00007455if test -n "$PKG_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007456 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7457echo "${ECHO_T}$PKG_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007458else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007459 echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007461fi
7462
7463 fi
7464
7465 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7466 if test "X$SKIP_GTK2" != "XYES"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007467
Bram Moolenaar071d4272004-06-13 20:20:40 +00007468 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7469 {
7470 min_gtk_version=2.2.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007471 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7472echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007473 no_gtk=""
7474 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7475 && $PKG_CONFIG --exists gtk+-2.0; then
7476 {
7477 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007478 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007479 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7480 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7481 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7482 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7483 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7484 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7485 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7486 }
7487 elif test "X$GTK_CONFIG" != "Xno"; then
7488 {
7489 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007490 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007491 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7492 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7493 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7494 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7495 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7496 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7497 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7498 }
7499 else
7500 no_gtk=yes
7501 fi
7502
7503 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7504 {
7505 ac_save_CFLAGS="$CFLAGS"
7506 ac_save_LIBS="$LIBS"
7507 CFLAGS="$CFLAGS $GTK_CFLAGS"
7508 LIBS="$LIBS $GTK_LIBS"
7509
7510 rm -f conf.gtktest
7511 if test "$cross_compiling" = yes; then
7512 echo $ac_n "cross compiling; assumed OK... $ac_c"
7513else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007514 cat >conftest.$ac_ext <<_ACEOF
7515/* confdefs.h. */
7516_ACEOF
7517cat confdefs.h >>conftest.$ac_ext
7518cat >>conftest.$ac_ext <<_ACEOF
7519/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007520
7521#include <gtk/gtk.h>
7522#include <stdio.h>
7523
7524int
7525main ()
7526{
7527int major, minor, micro;
7528char *tmp_version;
7529
7530system ("touch conf.gtktest");
7531
7532/* HP/UX 9 (%@#!) writes to sscanf strings */
7533tmp_version = g_strdup("$min_gtk_version");
7534if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7535 printf("%s, bad version string\n", "$min_gtk_version");
7536 exit(1);
7537 }
7538
7539if ((gtk_major_version > major) ||
7540 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7541 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7542 (gtk_micro_version >= micro)))
7543{
7544 return 0;
7545}
7546return 1;
7547}
7548
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007549_ACEOF
7550rm -f conftest$ac_exeext
7551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552 (eval $ac_link) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 (eval $ac_try) 2>&5
7558 ac_status=$?
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007561 :
7562else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007563 echo "$as_me: program exited with status $ac_status" >&5
7564echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007566
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007567( exit $ac_status )
7568no_gtk=yes
7569fi
7570rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7571fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007572 CFLAGS="$ac_save_CFLAGS"
7573 LIBS="$ac_save_LIBS"
7574 }
7575 fi
7576 if test "x$no_gtk" = x ; then
7577 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007578 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7579echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007580 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007581 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7582echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007583 fi
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007584 GUI_LIB_LOC="$GTK_LIBDIR"
7585 GTK_LIBNAME="$GTK_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007586 GUI_INC_LOC="$GTK_CFLAGS"
7587 else
7588 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007589 echo "$as_me:$LINENO: result: no" >&5
7590echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007591 GTK_CFLAGS=""
7592 GTK_LIBS=""
7593 :
7594 }
7595 fi
7596 }
7597 else
7598 GTK_CFLAGS=""
7599 GTK_LIBS=""
7600 :
7601 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007602
7603
Bram Moolenaar071d4272004-06-13 20:20:40 +00007604 rm -f conf.gtktest
7605
7606 if test "x$GTK_CFLAGS" != "x"; then
7607 SKIP_ATHENA=YES
7608 SKIP_NEXTAW=YES
7609 SKIP_MOTIF=YES
7610 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007611
Bram Moolenaar071d4272004-06-13 20:20:40 +00007612 fi
7613 fi
7614
7615 if test "x$GUITYPE" != "xGTK"; then
7616 SKIP_GTK2=YES
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007617
Bram Moolenaar071d4272004-06-13 20:20:40 +00007618 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7619 {
7620 min_gtk_version=1.1.16
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007621 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7622echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007623 no_gtk=""
7624 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7625 && $PKG_CONFIG --exists gtk+-2.0; then
7626 {
7627 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007628 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007629 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7630 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7631 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7632 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7633 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7634 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7635 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7636 }
7637 elif test "X$GTK_CONFIG" != "Xno"; then
7638 {
7639 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007640 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007641 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7642 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7643 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7644 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7645 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7646 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7647 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7648 }
7649 else
7650 no_gtk=yes
7651 fi
7652
7653 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7654 {
7655 ac_save_CFLAGS="$CFLAGS"
7656 ac_save_LIBS="$LIBS"
7657 CFLAGS="$CFLAGS $GTK_CFLAGS"
7658 LIBS="$LIBS $GTK_LIBS"
7659
7660 rm -f conf.gtktest
7661 if test "$cross_compiling" = yes; then
7662 echo $ac_n "cross compiling; assumed OK... $ac_c"
7663else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007664 cat >conftest.$ac_ext <<_ACEOF
7665/* confdefs.h. */
7666_ACEOF
7667cat confdefs.h >>conftest.$ac_ext
7668cat >>conftest.$ac_ext <<_ACEOF
7669/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007670
7671#include <gtk/gtk.h>
7672#include <stdio.h>
7673
7674int
7675main ()
7676{
7677int major, minor, micro;
7678char *tmp_version;
7679
7680system ("touch conf.gtktest");
7681
7682/* HP/UX 9 (%@#!) writes to sscanf strings */
7683tmp_version = g_strdup("$min_gtk_version");
7684if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7685 printf("%s, bad version string\n", "$min_gtk_version");
7686 exit(1);
7687 }
7688
7689if ((gtk_major_version > major) ||
7690 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7691 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7692 (gtk_micro_version >= micro)))
7693{
7694 return 0;
7695}
7696return 1;
7697}
7698
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007699_ACEOF
7700rm -f conftest$ac_exeext
7701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7702 (eval $ac_link) 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007711 :
7712else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007713 echo "$as_me: program exited with status $ac_status" >&5
7714echo "$as_me: failed program was:" >&5
7715sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007716
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007717( exit $ac_status )
7718no_gtk=yes
7719fi
7720rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7721fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007722 CFLAGS="$ac_save_CFLAGS"
7723 LIBS="$ac_save_LIBS"
7724 }
7725 fi
7726 if test "x$no_gtk" = x ; then
7727 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007728 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7729echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007730 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007731 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7732echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007733 fi
7734 GTK_LIBNAME="$GTK_LIBS"
7735 GUI_INC_LOC="$GTK_CFLAGS"
7736 else
7737 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007738 echo "$as_me:$LINENO: result: no" >&5
7739echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007740 GTK_CFLAGS=""
7741 GTK_LIBS=""
7742 :
7743 }
7744 fi
7745 }
7746 else
7747 GTK_CFLAGS=""
7748 GTK_LIBS=""
7749 :
7750 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007751
7752
Bram Moolenaar071d4272004-06-13 20:20:40 +00007753 rm -f conf.gtktest
7754
7755 if test "x$GTK_CFLAGS" != "x"; then
7756 SKIP_ATHENA=YES
7757 SKIP_NEXTAW=YES
7758 SKIP_MOTIF=YES
7759 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007760
Bram Moolenaar071d4272004-06-13 20:20:40 +00007761 fi
7762 fi
7763 fi
7764 if test "x$GUITYPE" = "xGTK"; then
7765 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7766 -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 +00007767 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7768echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007769 else
7770 {
7771 if test "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007772 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007773#define HAVE_GTK2 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007774_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007775
7776 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7777 || test "0$gtk_minor_version" -ge 2 \
7778 || test "0$gtk_major_version" -gt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007779 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007780#define HAVE_GTK_MULTIHEAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007781_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007782
7783 fi
7784 fi
7785 if test -z "$SKIP_GNOME"; then
7786 {
Bram Moolenaar071d4272004-06-13 20:20:40 +00007787
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007788
7789
7790
7791
7792
7793# Check whether --with-gnome-includes or --without-gnome-includes was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007794if test "${with_gnome_includes+set}" = set; then
7795 withval="$with_gnome_includes"
7796 CFLAGS="$CFLAGS -I$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007797
7798fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007799
7800
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007801# Check whether --with-gnome-libs or --without-gnome-libs was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007802if test "${with_gnome_libs+set}" = set; then
7803 withval="$with_gnome_libs"
7804 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007805
7806fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007807
7808
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007809# Check whether --with-gnome or --without-gnome was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007810if test "${with_gnome+set}" = set; then
7811 withval="$with_gnome"
7812 if test x$withval = xyes; then
7813 want_gnome=yes
7814 have_gnome=yes
7815 else
7816 if test "x$withval" = xno; then
7817 want_gnome=no
7818 else
7819 want_gnome=yes
7820 LDFLAGS="$LDFLAGS -L$withval/lib"
7821 CFLAGS="$CFLAGS -I$withval/include"
7822 gnome_prefix=$withval/lib
7823 fi
7824 fi
7825else
7826 want_gnome=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007827fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007828
7829 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7830 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007831 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7832echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007833 if $PKG_CONFIG --exists libgnomeui-2.0; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007834 echo "$as_me:$LINENO: result: yes" >&5
7835echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007836 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7837 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7838 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
7839 have_gnome=yes
7840 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007841 echo "$as_me:$LINENO: result: not found" >&5
7842echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007843 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007844 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7845echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7846 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007847 fi
7848 fi
7849 }
7850 elif test "x$want_gnome" = xyes; then
7851 {
7852 # Extract the first word of "gnome-config", so it can be a program name with args.
7853set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007854echo "$as_me:$LINENO: checking for $ac_word" >&5
7855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7856if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007858else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007859 case $GNOME_CONFIG in
7860 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007861 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7862 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007863 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865for as_dir in $PATH
7866do
7867 IFS=$as_save_IFS
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 break 2
7874 fi
7875done
7876done
7877
Bram Moolenaar071d4272004-06-13 20:20:40 +00007878 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7879 ;;
7880esac
7881fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007882GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7883
Bram Moolenaar071d4272004-06-13 20:20:40 +00007884if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007885 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7886echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007887else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007888 echo "$as_me:$LINENO: result: no" >&5
7889echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007890fi
7891
7892 if test "$GNOME_CONFIG" = "no"; then
7893 no_gnome_config="yes"
7894 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007895 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7896echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007897 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007898 echo "$as_me:$LINENO: result: yes" >&5
7899echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007900 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7901 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7902 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7903 have_gnome=yes
7904 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007905 echo "$as_me:$LINENO: result: no" >&5
7906echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007907 no_gnome_config="yes"
7908 fi
7909 fi
7910
7911 if test x$exec_prefix = xNONE; then
7912 if test x$prefix = xNONE; then
7913 gnome_prefix=$ac_default_prefix/lib
7914 else
7915 gnome_prefix=$prefix/lib
7916 fi
7917 else
7918 gnome_prefix=`eval echo \`echo $libdir\``
7919 fi
7920
7921 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007922 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7923echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007924 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007925 echo "$as_me:$LINENO: result: found" >&5
7926echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007927 echo "loading gnome configuration from" \
7928 "$gnome_prefix/gnomeConf.sh"
7929 . $gnome_prefix/gnomeConf.sh
7930 have_gnome=yes
7931 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007932 echo "$as_me:$LINENO: result: not found" >&5
7933echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007934 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007935 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7936echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7937 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007938 fi
7939 fi
7940 fi
7941 }
7942 fi
7943
7944 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007945 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007946#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007947_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007948
7949 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7950 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7951 fi
7952 }
7953 fi
7954 }
7955 fi
7956 fi
7957fi
7958
7959
7960if test -z "$SKIP_MOTIF"; then
7961 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"
7962 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7963
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007964 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7965echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007966 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7967 GUI_INC_LOC=
7968 for try in $gui_includes; do
7969 if test -f "$try/Xm/Xm.h"; then
7970 GUI_INC_LOC=$try
7971 fi
7972 done
7973 if test -n "$GUI_INC_LOC"; then
7974 if test "$GUI_INC_LOC" = /usr/include; then
7975 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007976 echo "$as_me:$LINENO: result: in default path" >&5
7977echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007978 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007979 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
7980echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007981 fi
7982 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007983 echo "$as_me:$LINENO: result: <not found>" >&5
7984echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007985 SKIP_MOTIF=YES
7986 fi
7987fi
7988
7989
7990if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007991 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
7992echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
7993
7994# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007995if test "${with_motif_lib+set}" = set; then
7996 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007997 MOTIF_LIBNAME="${withval}"
7998fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007999
8000 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008001 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8002echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008003 GUI_LIB_LOC=
8004 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008005 echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008007
8008 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8009
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008010 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8011echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008012 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"
8013 GUI_LIB_LOC=
8014 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008015 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00008016 if test -f "$libtry"; then
8017 GUI_LIB_LOC=$try
8018 fi
8019 done
8020 done
8021 if test -n "$GUI_LIB_LOC"; then
8022 if test "$GUI_LIB_LOC" = /usr/lib; then
8023 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008024 echo "$as_me:$LINENO: result: in default path" >&5
8025echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008026 else
8027 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008028 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8029echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008030 if test "`(uname) 2>/dev/null`" = SunOS &&
8031 uname -r | grep '^5' >/dev/null; then
8032 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8033 fi
8034 fi
8035 fi
8036 MOTIF_LIBNAME=-lXm
8037 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008038 echo "$as_me:$LINENO: result: <not found>" >&5
8039echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008040 SKIP_MOTIF=YES
8041 fi
8042 fi
8043fi
8044
8045if test -z "$SKIP_MOTIF"; then
8046 SKIP_ATHENA=YES
8047 SKIP_NEXTAW=YES
8048 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008049
Bram Moolenaar071d4272004-06-13 20:20:40 +00008050fi
8051
8052
8053GUI_X_LIBS=
8054
8055if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008056 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8057echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008058 cflags_save=$CFLAGS
8059 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008060 cat >conftest.$ac_ext <<_ACEOF
8061/* confdefs.h. */
8062_ACEOF
8063cat confdefs.h >>conftest.$ac_ext
8064cat >>conftest.$ac_ext <<_ACEOF
8065/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008066
8067#include <X11/Intrinsic.h>
8068#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008069int
8070main ()
8071{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008072
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008073 ;
8074 return 0;
8075}
8076_ACEOF
8077rm -f conftest.$ac_objext
8078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest.$ac_objext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 echo "$as_me:$LINENO: result: yes" >&5
8100echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008101else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008102 echo "$as_me: failed program was:" >&5
8103sed 's/^/| /' conftest.$ac_ext >&5
8104
8105echo "$as_me:$LINENO: result: no" >&5
8106echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008107fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008109 CFLAGS=$cflags_save
8110fi
8111
8112if test -z "$SKIP_ATHENA"; then
8113 GUITYPE=ATHENA
8114fi
8115
8116if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008117 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8118echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008119 cflags_save=$CFLAGS
8120 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008121 cat >conftest.$ac_ext <<_ACEOF
8122/* confdefs.h. */
8123_ACEOF
8124cat confdefs.h >>conftest.$ac_ext
8125cat >>conftest.$ac_ext <<_ACEOF
8126/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008127
8128#include <X11/Intrinsic.h>
8129#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008130int
8131main ()
8132{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008133
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008134 ;
8135 return 0;
8136}
8137_ACEOF
8138rm -f conftest.$ac_objext
8139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8140 (eval $ac_compile) 2>conftest.er1
8141 ac_status=$?
8142 grep -v '^ *+' conftest.er1 >conftest.err
8143 rm -f conftest.er1
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try='test -z "$ac_c_werror_flag"
8148 || test ! -s conftest.err'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 (eval $ac_try) 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest.$ac_objext'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; }; then
8160 echo "$as_me:$LINENO: result: yes" >&5
8161echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008162else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008163 echo "$as_me: failed program was:" >&5
8164sed 's/^/| /' conftest.$ac_ext >&5
8165
8166echo "$as_me:$LINENO: result: no" >&5
8167echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008168fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008170 CFLAGS=$cflags_save
8171fi
8172
8173if test -z "$SKIP_NEXTAW"; then
8174 GUITYPE=NEXTAW
8175fi
8176
8177if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8178 if test -n "$GUI_INC_LOC"; then
8179 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8180 fi
8181 if test -n "$GUI_LIB_LOC"; then
8182 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8183 fi
8184
8185 ldflags_save=$LDFLAGS
8186 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008187 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8188echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8189if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008191else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008192 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008193LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008194cat >conftest.$ac_ext <<_ACEOF
8195/* confdefs.h. */
8196_ACEOF
8197cat confdefs.h >>conftest.$ac_ext
8198cat >>conftest.$ac_ext <<_ACEOF
8199/* end confdefs.h. */
8200
Bram Moolenaar071d4272004-06-13 20:20:40 +00008201/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008202#ifdef __cplusplus
8203extern "C"
8204#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008205/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008206 builtin and then its argument prototype would still apply. */
8207char XShapeQueryExtension ();
8208int
8209main ()
8210{
8211XShapeQueryExtension ();
8212 ;
8213 return 0;
8214}
8215_ACEOF
8216rm -f conftest.$ac_objext conftest$ac_exeext
8217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8218 (eval $ac_link) 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -z "$ac_c_werror_flag"
8226 || test ! -s conftest.err'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 (eval $ac_try) 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; } &&
8232 { ac_try='test -s conftest$ac_exeext'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 (eval $ac_try) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008239else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008240 echo "$as_me: failed program was:" >&5
8241sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008242
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008243ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008244fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008245rm -f conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8247LIBS=$ac_check_lib_save_LIBS
8248fi
8249echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8250echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8251if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008252 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008253fi
8254
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008255 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8256echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8257if test "${ac_cv_lib_w_wslen+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008259else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008260 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008261LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008262cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h. */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h. */
8268
Bram Moolenaar071d4272004-06-13 20:20:40 +00008269/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008270#ifdef __cplusplus
8271extern "C"
8272#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008273/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008274 builtin and then its argument prototype would still apply. */
8275char wslen ();
8276int
8277main ()
8278{
8279wslen ();
8280 ;
8281 return 0;
8282}
8283_ACEOF
8284rm -f conftest.$ac_objext conftest$ac_exeext
8285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286 (eval $ac_link) 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag"
8294 || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 (eval $ac_try) 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008307else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008308 echo "$as_me: failed program was:" >&5
8309sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008310
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008311ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008312fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008313rm -f conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315LIBS=$ac_check_lib_save_LIBS
8316fi
8317echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8318echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8319if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008320 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008321fi
8322
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008323 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8324echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8325if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008327else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008328 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008329LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008330cat >conftest.$ac_ext <<_ACEOF
8331/* confdefs.h. */
8332_ACEOF
8333cat confdefs.h >>conftest.$ac_ext
8334cat >>conftest.$ac_ext <<_ACEOF
8335/* end confdefs.h. */
8336
Bram Moolenaar071d4272004-06-13 20:20:40 +00008337/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008338#ifdef __cplusplus
8339extern "C"
8340#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008341/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008342 builtin and then its argument prototype would still apply. */
8343char dlsym ();
8344int
8345main ()
8346{
8347dlsym ();
8348 ;
8349 return 0;
8350}
8351_ACEOF
8352rm -f conftest.$ac_objext conftest$ac_exeext
8353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354 (eval $ac_link) 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag"
8362 || test ! -s conftest.err'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest$ac_exeext'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 (eval $ac_try) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; }; then
8374 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008375else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008376 echo "$as_me: failed program was:" >&5
8377sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008378
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008379ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008380fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008381rm -f conftest.err conftest.$ac_objext \
8382 conftest$ac_exeext conftest.$ac_ext
8383LIBS=$ac_check_lib_save_LIBS
8384fi
8385echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8386echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8387if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008388 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008389fi
8390
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008391 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8392echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8393if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008395else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008396 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008397LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008398cat >conftest.$ac_ext <<_ACEOF
8399/* confdefs.h. */
8400_ACEOF
8401cat confdefs.h >>conftest.$ac_ext
8402cat >>conftest.$ac_ext <<_ACEOF
8403/* end confdefs.h. */
8404
Bram Moolenaar071d4272004-06-13 20:20:40 +00008405/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008406#ifdef __cplusplus
8407extern "C"
8408#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008409/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008410 builtin and then its argument prototype would still apply. */
8411char XmuCreateStippledPixmap ();
8412int
8413main ()
8414{
8415XmuCreateStippledPixmap ();
8416 ;
8417 return 0;
8418}
8419_ACEOF
8420rm -f conftest.$ac_objext conftest$ac_exeext
8421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8422 (eval $ac_link) 2>conftest.er1
8423 ac_status=$?
8424 grep -v '^ *+' conftest.er1 >conftest.err
8425 rm -f conftest.er1
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -z "$ac_c_werror_flag"
8430 || test ! -s conftest.err'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; } &&
8436 { ac_try='test -s conftest$ac_exeext'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 (eval $ac_try) 2>&5
8439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008443else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008444 echo "$as_me: failed program was:" >&5
8445sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008446
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008447ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008448fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008449rm -f conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451LIBS=$ac_check_lib_save_LIBS
8452fi
8453echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8454echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8455if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008456 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008457fi
8458
8459 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008460 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8461echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8462if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008464else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008465 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008466LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008467cat >conftest.$ac_ext <<_ACEOF
8468/* confdefs.h. */
8469_ACEOF
8470cat confdefs.h >>conftest.$ac_ext
8471cat >>conftest.$ac_ext <<_ACEOF
8472/* end confdefs.h. */
8473
Bram Moolenaar071d4272004-06-13 20:20:40 +00008474/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008475#ifdef __cplusplus
8476extern "C"
8477#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008478/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008479 builtin and then its argument prototype would still apply. */
8480char XpEndJob ();
8481int
8482main ()
8483{
8484XpEndJob ();
8485 ;
8486 return 0;
8487}
8488_ACEOF
8489rm -f conftest.$ac_objext conftest$ac_exeext
8490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491 (eval $ac_link) 2>conftest.er1
8492 ac_status=$?
8493 grep -v '^ *+' conftest.er1 >conftest.err
8494 rm -f conftest.er1
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
8498 { ac_try='test -z "$ac_c_werror_flag"
8499 || test ! -s conftest.err'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest$ac_exeext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 (eval $ac_try) 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008512else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008515
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008516ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008517fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008518rm -f conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
8520LIBS=$ac_check_lib_save_LIBS
8521fi
8522echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8523echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8524if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008525 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008526fi
8527
8528 fi
8529 LDFLAGS=$ldflags_save
8530
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008531 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8532echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008533 NARROW_PROTO=
8534 rm -fr conftestdir
8535 if mkdir conftestdir; then
8536 cd conftestdir
8537 cat > Imakefile <<'EOF'
8538acfindx:
8539 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8540EOF
8541 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8542 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8543 fi
8544 cd ..
8545 rm -fr conftestdir
8546 fi
8547 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008548 echo "$as_me:$LINENO: result: no" >&5
8549echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008550 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008551 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8552echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008553 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008554
Bram Moolenaar071d4272004-06-13 20:20:40 +00008555fi
8556
8557if test "$enable_xsmp" = "yes"; then
8558 cppflags_save=$CPPFLAGS
8559 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008560
8561for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008562do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8564if eval "test \"\${$as_ac_Header+set}\" = set"; then
8565 echo "$as_me:$LINENO: checking for $ac_header" >&5
8566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8567if eval "test \"\${$as_ac_Header+set}\" = set"; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008569fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008572else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008573 # Is the header compilable?
8574echo "$as_me:$LINENO: checking $ac_header usability" >&5
8575echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8576cat >conftest.$ac_ext <<_ACEOF
8577/* confdefs.h. */
8578_ACEOF
8579cat confdefs.h >>conftest.$ac_ext
8580cat >>conftest.$ac_ext <<_ACEOF
8581/* end confdefs.h. */
8582$ac_includes_default
8583#include <$ac_header>
8584_ACEOF
8585rm -f conftest.$ac_objext
8586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_header_compiler=yes
8608else
8609 echo "$as_me: failed program was:" >&5
8610sed 's/^/| /' conftest.$ac_ext >&5
8611
8612ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008613fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616echo "${ECHO_T}$ac_header_compiler" >&6
8617
8618# Is the header present?
8619echo "$as_me:$LINENO: checking $ac_header presence" >&5
8620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8621cat >conftest.$ac_ext <<_ACEOF
8622/* confdefs.h. */
8623_ACEOF
8624cat confdefs.h >>conftest.$ac_ext
8625cat >>conftest.$ac_ext <<_ACEOF
8626/* end confdefs.h. */
8627#include <$ac_header>
8628_ACEOF
8629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8631 ac_status=$?
8632 grep -v '^ *+' conftest.er1 >conftest.err
8633 rm -f conftest.er1
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } >/dev/null; then
8637 if test -s conftest.err; then
8638 ac_cpp_err=$ac_c_preproc_warn_flag
8639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8640 else
8641 ac_cpp_err=
8642 fi
8643else
8644 ac_cpp_err=yes
8645fi
8646if test -z "$ac_cpp_err"; then
8647 ac_header_preproc=yes
8648else
8649 echo "$as_me: failed program was:" >&5
8650sed 's/^/| /' conftest.$ac_ext >&5
8651
8652 ac_header_preproc=no
8653fi
8654rm -f conftest.err conftest.$ac_ext
8655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8656echo "${ECHO_T}$ac_header_preproc" >&6
8657
8658# So? What about this header?
8659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8660 yes:no: )
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8664echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8665 ac_header_preproc=yes
8666 ;;
8667 no:yes:* )
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8669echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8671echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8673echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8675echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8677echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8679echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8680 (
8681 cat <<\_ASBOX
8682## ------------------------------------------ ##
8683## Report this to the AC_PACKAGE_NAME lists. ##
8684## ------------------------------------------ ##
8685_ASBOX
8686 ) |
8687 sed "s/^/$as_me: WARNING: /" >&2
8688 ;;
8689esac
8690echo "$as_me:$LINENO: checking for $ac_header" >&5
8691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8692if eval "test \"\${$as_ac_Header+set}\" = set"; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694else
8695 eval "$as_ac_Header=\$ac_header_preproc"
8696fi
8697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8699
8700fi
8701if test `eval echo '${'$as_ac_Header'}'` = yes; then
8702 cat >>confdefs.h <<_ACEOF
8703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8704_ACEOF
8705
8706fi
8707
Bram Moolenaar071d4272004-06-13 20:20:40 +00008708done
8709
8710 CPPFLAGS=$cppflags_save
8711fi
8712
8713
8714if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8715 cppflags_save=$CPPFLAGS
8716 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008717
8718
8719for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008720do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8722if eval "test \"\${$as_ac_Header+set}\" = set"; then
8723 echo "$as_me:$LINENO: checking for $ac_header" >&5
8724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8725if eval "test \"\${$as_ac_Header+set}\" = set"; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008727fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008730else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008731 # Is the header compilable?
8732echo "$as_me:$LINENO: checking $ac_header usability" >&5
8733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8734cat >conftest.$ac_ext <<_ACEOF
8735/* confdefs.h. */
8736_ACEOF
8737cat confdefs.h >>conftest.$ac_ext
8738cat >>conftest.$ac_ext <<_ACEOF
8739/* end confdefs.h. */
8740$ac_includes_default
8741#include <$ac_header>
8742_ACEOF
8743rm -f conftest.$ac_objext
8744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8745 (eval $ac_compile) 2>conftest.er1
8746 ac_status=$?
8747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try='test -z "$ac_c_werror_flag"
8753 || test ! -s conftest.err'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 (eval $ac_try) 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; } &&
8759 { ac_try='test -s conftest.$ac_objext'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 (eval $ac_try) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 ac_header_compiler=yes
8766else
8767 echo "$as_me: failed program was:" >&5
8768sed 's/^/| /' conftest.$ac_ext >&5
8769
8770ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008771fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8774echo "${ECHO_T}$ac_header_compiler" >&6
8775
8776# Is the header present?
8777echo "$as_me:$LINENO: checking $ac_header presence" >&5
8778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8779cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h. */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h. */
8785#include <$ac_header>
8786_ACEOF
8787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } >/dev/null; then
8795 if test -s conftest.err; then
8796 ac_cpp_err=$ac_c_preproc_warn_flag
8797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8798 else
8799 ac_cpp_err=
8800 fi
8801else
8802 ac_cpp_err=yes
8803fi
8804if test -z "$ac_cpp_err"; then
8805 ac_header_preproc=yes
8806else
8807 echo "$as_me: failed program was:" >&5
8808sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 ac_header_preproc=no
8811fi
8812rm -f conftest.err conftest.$ac_ext
8813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8814echo "${ECHO_T}$ac_header_preproc" >&6
8815
8816# So? What about this header?
8817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8818 yes:no: )
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8820echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8822echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8823 ac_header_preproc=yes
8824 ;;
8825 no:yes:* )
8826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8827echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8829echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8831echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8833echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8835echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8837echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8838 (
8839 cat <<\_ASBOX
8840## ------------------------------------------ ##
8841## Report this to the AC_PACKAGE_NAME lists. ##
8842## ------------------------------------------ ##
8843_ASBOX
8844 ) |
8845 sed "s/^/$as_me: WARNING: /" >&2
8846 ;;
8847esac
8848echo "$as_me:$LINENO: checking for $ac_header" >&5
8849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8850if eval "test \"\${$as_ac_Header+set}\" = set"; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852else
8853 eval "$as_ac_Header=\$ac_header_preproc"
8854fi
8855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8857
8858fi
8859if test `eval echo '${'$as_ac_Header'}'` = yes; then
8860 cat >>confdefs.h <<_ACEOF
8861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8862_ACEOF
8863
8864fi
8865
Bram Moolenaar071d4272004-06-13 20:20:40 +00008866done
8867
8868
8869 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008870 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8871echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8872 cat >conftest.$ac_ext <<_ACEOF
8873/* confdefs.h. */
8874_ACEOF
8875cat confdefs.h >>conftest.$ac_ext
8876cat >>conftest.$ac_ext <<_ACEOF
8877/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008878#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008879_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008881 $EGREP "XIMText" >/dev/null 2>&1; then
8882 echo "$as_me:$LINENO: result: yes" >&5
8883echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008884else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008885 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8886echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008887fi
8888rm -f conftest*
8889
8890 fi
8891 CPPFLAGS=$cppflags_save
8892
8893 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8894 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008895 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8896echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008897 enable_xim="yes"
8898 fi
8899fi
8900
8901if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8902 cppflags_save=$CPPFLAGS
8903 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008904 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8905echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8906 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008907/* confdefs.h. */
8908_ACEOF
8909cat confdefs.h >>conftest.$ac_ext
8910cat >>conftest.$ac_ext <<_ACEOF
8911/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008912
8913#include <X11/Intrinsic.h>
8914#include <X11/Xmu/Editres.h>
8915int
8916main ()
8917{
8918int i; i = 0;
8919 ;
8920 return 0;
8921}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008922_ACEOF
8923rm -f conftest.$ac_objext
8924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925 (eval $ac_compile) 2>conftest.er1
8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_c_werror_flag"
8933 || test ! -s conftest.err'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 (eval $ac_try) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; } &&
8939 { ac_try='test -s conftest.$ac_objext'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 (eval $ac_try) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008945 echo "$as_me:$LINENO: result: yes" >&5
8946echo "${ECHO_T}yes" >&6
8947 cat >>confdefs.h <<\_ACEOF
8948#define HAVE_X11_XMU_EDITRES_H 1
8949_ACEOF
8950
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008951else
8952 echo "$as_me: failed program was:" >&5
8953sed 's/^/| /' conftest.$ac_ext >&5
8954
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008955echo "$as_me:$LINENO: result: no" >&5
8956echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008957fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008959 CPPFLAGS=$cppflags_save
8960fi
8961
8962if test -z "$SKIP_MOTIF"; then
8963 cppflags_save=$CPPFLAGS
8964 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008965
8966
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008967
8968
8969
8970
8971for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8972 Xm/UnhighlightT.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008973do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8975if eval "test \"\${$as_ac_Header+set}\" = set"; then
8976 echo "$as_me:$LINENO: checking for $ac_header" >&5
8977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8978if eval "test \"\${$as_ac_Header+set}\" = set"; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008980fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008983else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008984 # Is the header compilable?
8985echo "$as_me:$LINENO: checking $ac_header usability" >&5
8986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8987cat >conftest.$ac_ext <<_ACEOF
8988/* confdefs.h. */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
8992/* end confdefs.h. */
8993$ac_includes_default
8994#include <$ac_header>
8995_ACEOF
8996rm -f conftest.$ac_objext
8997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8998 (eval $ac_compile) 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -z "$ac_c_werror_flag"
9006 || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest.$ac_objext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9018 ac_header_compiler=yes
9019else
9020 echo "$as_me: failed program was:" >&5
9021sed 's/^/| /' conftest.$ac_ext >&5
9022
9023ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009024fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9027echo "${ECHO_T}$ac_header_compiler" >&6
9028
9029# Is the header present?
9030echo "$as_me:$LINENO: checking $ac_header presence" >&5
9031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9032cat >conftest.$ac_ext <<_ACEOF
9033/* confdefs.h. */
9034_ACEOF
9035cat confdefs.h >>conftest.$ac_ext
9036cat >>conftest.$ac_ext <<_ACEOF
9037/* end confdefs.h. */
9038#include <$ac_header>
9039_ACEOF
9040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } >/dev/null; then
9048 if test -s conftest.err; then
9049 ac_cpp_err=$ac_c_preproc_warn_flag
9050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9051 else
9052 ac_cpp_err=
9053 fi
9054else
9055 ac_cpp_err=yes
9056fi
9057if test -z "$ac_cpp_err"; then
9058 ac_header_preproc=yes
9059else
9060 echo "$as_me: failed program was:" >&5
9061sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 ac_header_preproc=no
9064fi
9065rm -f conftest.err conftest.$ac_ext
9066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9067echo "${ECHO_T}$ac_header_preproc" >&6
9068
9069# So? What about this header?
9070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9071 yes:no: )
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9076 ac_header_preproc=yes
9077 ;;
9078 no:yes:* )
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9086echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9091 (
9092 cat <<\_ASBOX
9093## ------------------------------------------ ##
9094## Report this to the AC_PACKAGE_NAME lists. ##
9095## ------------------------------------------ ##
9096_ASBOX
9097 ) |
9098 sed "s/^/$as_me: WARNING: /" >&2
9099 ;;
9100esac
9101echo "$as_me:$LINENO: checking for $ac_header" >&5
9102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9103if eval "test \"\${$as_ac_Header+set}\" = set"; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105else
9106 eval "$as_ac_Header=\$ac_header_preproc"
9107fi
9108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9110
9111fi
9112if test `eval echo '${'$as_ac_Header'}'` = yes; then
9113 cat >>confdefs.h <<_ACEOF
9114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9115_ACEOF
9116
9117fi
9118
Bram Moolenaar071d4272004-06-13 20:20:40 +00009119done
9120
9121 CPPFLAGS=$cppflags_save
9122fi
9123
9124if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009125 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9126echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009127 enable_xim="no"
9128fi
9129if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009130 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9131echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009132 enable_fontset="no"
9133fi
9134if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009135 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9136echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009137 enable_fontset="no"
9138fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009139
9140if test -z "$SKIP_PHOTON"; then
9141 GUITYPE=PHOTONGUI
9142fi
9143
9144
9145
9146
9147
9148
9149if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009150 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9151echo "$as_me: error: cannot use workshop without Motif" >&2;}
9152 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009153fi
9154
9155if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009156 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009157#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009158_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009159
9160fi
9161if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009162 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009163#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009164_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009165
9166fi
9167
9168
9169
9170
9171if test "$enable_hangulinput" = "yes"; then
9172 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009173 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9174echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009175 enable_hangulinput=no
9176 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009177 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009178#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009179_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009180
9181 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009182
Bram Moolenaar071d4272004-06-13 20:20:40 +00009183 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009184
Bram Moolenaar071d4272004-06-13 20:20:40 +00009185 fi
9186fi
9187
9188
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009189echo "$as_me:$LINENO: checking quality of toupper" >&5
9190echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009191if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009192 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9193echo "$as_me: error: failed to compile test program" >&2;}
9194 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009195else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009196 cat >conftest.$ac_ext <<_ACEOF
9197/* confdefs.h. */
9198_ACEOF
9199cat confdefs.h >>conftest.$ac_ext
9200cat >>conftest.$ac_ext <<_ACEOF
9201/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009202#include <ctype.h>
9203main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009204_ACEOF
9205rm -f conftest$ac_exeext
9206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9207 (eval $ac_link) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 (eval $ac_try) 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009217#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009218_ACEOF
9219 echo "$as_me:$LINENO: result: bad" >&5
9220echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009221else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009222 echo "$as_me: program exited with status $ac_status" >&5
9223echo "$as_me: failed program was:" >&5
9224sed 's/^/| /' conftest.$ac_ext >&5
9225
9226( exit $ac_status )
9227echo "$as_me:$LINENO: result: good" >&5
9228echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009229fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009230rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009231fi
9232
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009233echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9234echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9235cat >conftest.$ac_ext <<_ACEOF
9236/* confdefs.h. */
9237_ACEOF
9238cat confdefs.h >>conftest.$ac_ext
9239cat >>conftest.$ac_ext <<_ACEOF
9240/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009241
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009242int
9243main ()
9244{
Bram Moolenaar071d4272004-06-13 20:20:40 +00009245printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009246 ;
9247 return 0;
9248}
9249_ACEOF
9250rm -f conftest.$ac_objext
9251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252 (eval $ac_compile) 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest.$ac_objext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 echo "$as_me:$LINENO: result: yes" >&5
9273echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009274#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009275_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009276
9277else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009278 echo "$as_me: failed program was:" >&5
9279sed 's/^/| /' conftest.$ac_ext >&5
9280
9281echo "$as_me:$LINENO: result: no" >&5
9282echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009283fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009285
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009286if test "${ac_cv_header_elf_h+set}" = set; then
9287 echo "$as_me:$LINENO: checking for elf.h" >&5
9288echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9289if test "${ac_cv_header_elf_h+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291fi
9292echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9293echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009294else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009295 # Is the header compilable?
9296echo "$as_me:$LINENO: checking elf.h usability" >&5
9297echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9298cat >conftest.$ac_ext <<_ACEOF
9299/* confdefs.h. */
9300_ACEOF
9301cat confdefs.h >>conftest.$ac_ext
9302cat >>conftest.$ac_ext <<_ACEOF
9303/* end confdefs.h. */
9304$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +00009305#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009306_ACEOF
9307rm -f conftest.$ac_objext
9308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9309 (eval $ac_compile) 2>conftest.er1
9310 ac_status=$?
9311 grep -v '^ *+' conftest.er1 >conftest.err
9312 rm -f conftest.er1
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -z "$ac_c_werror_flag"
9317 || test ! -s conftest.err'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 (eval $ac_try) 2>&5
9320 ac_status=$?
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; } &&
9323 { ac_try='test -s conftest.$ac_objext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 (eval $ac_try) 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009330else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009331 echo "$as_me: failed program was:" >&5
9332sed 's/^/| /' conftest.$ac_ext >&5
9333
9334ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009335fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9338echo "${ECHO_T}$ac_header_compiler" >&6
9339
9340# Is the header present?
9341echo "$as_me:$LINENO: checking elf.h presence" >&5
9342echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9343cat >conftest.$ac_ext <<_ACEOF
9344/* confdefs.h. */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
9348/* end confdefs.h. */
9349#include <elf.h>
9350_ACEOF
9351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } >/dev/null; then
9359 if test -s conftest.err; then
9360 ac_cpp_err=$ac_c_preproc_warn_flag
9361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9362 else
9363 ac_cpp_err=
9364 fi
9365else
9366 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009367fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009368if test -z "$ac_cpp_err"; then
9369 ac_header_preproc=yes
9370else
9371 echo "$as_me: failed program was:" >&5
9372sed 's/^/| /' conftest.$ac_ext >&5
9373
9374 ac_header_preproc=no
9375fi
9376rm -f conftest.err conftest.$ac_ext
9377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9378echo "${ECHO_T}$ac_header_preproc" >&6
9379
9380# So? What about this header?
9381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9382 yes:no: )
9383 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9384echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9386echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9387 ac_header_preproc=yes
9388 ;;
9389 no:yes:* )
9390 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9391echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9393echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9395echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9397echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9399echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9401echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9402 (
9403 cat <<\_ASBOX
9404## ------------------------------------------ ##
9405## Report this to the AC_PACKAGE_NAME lists. ##
9406## ------------------------------------------ ##
9407_ASBOX
9408 ) |
9409 sed "s/^/$as_me: WARNING: /" >&2
9410 ;;
9411esac
9412echo "$as_me:$LINENO: checking for elf.h" >&5
9413echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9414if test "${ac_cv_header_elf_h+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416else
9417 ac_cv_header_elf_h=$ac_header_preproc
9418fi
9419echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9420echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9421
9422fi
9423if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009424 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +00009425fi
9426
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009427
Bram Moolenaar071d4272004-06-13 20:20:40 +00009428if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009429
9430echo "$as_me:$LINENO: checking for main in -lelf" >&5
9431echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9432if test "${ac_cv_lib_elf_main+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009434else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009435 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009436LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009437cat >conftest.$ac_ext <<_ACEOF
9438/* confdefs.h. */
9439_ACEOF
9440cat confdefs.h >>conftest.$ac_ext
9441cat >>conftest.$ac_ext <<_ACEOF
9442/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009443
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009444
9445int
9446main ()
9447{
9448main ();
9449 ;
9450 return 0;
9451}
9452_ACEOF
9453rm -f conftest.$ac_objext conftest$ac_exeext
9454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>conftest.er1
9456 ac_status=$?
9457 grep -v '^ *+' conftest.er1 >conftest.err
9458 rm -f conftest.er1
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } &&
9462 { ac_try='test -z "$ac_c_werror_flag"
9463 || test ! -s conftest.err'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 (eval $ac_try) 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; } &&
9469 { ac_try='test -s conftest$ac_exeext'
9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 (eval $ac_try) 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; }; then
9475 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009476else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009477 echo "$as_me: failed program was:" >&5
9478sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009479
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009480ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009481fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009482rm -f conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext conftest.$ac_ext
9484LIBS=$ac_check_lib_save_LIBS
9485fi
9486echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9487echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9488if test $ac_cv_lib_elf_main = yes; then
9489 cat >>confdefs.h <<_ACEOF
9490#define HAVE_LIBELF 1
9491_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009492
9493 LIBS="-lelf $LIBS"
9494
Bram Moolenaar071d4272004-06-13 20:20:40 +00009495fi
9496
9497fi
9498
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009499
9500
9501
9502
9503
Bram Moolenaar071d4272004-06-13 20:20:40 +00009504ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009505for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9506 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9507echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9508echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9509if eval "test \"\${$as_ac_Header+set}\" = set"; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009511else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009512 cat >conftest.$ac_ext <<_ACEOF
9513/* confdefs.h. */
9514_ACEOF
9515cat confdefs.h >>conftest.$ac_ext
9516cat >>conftest.$ac_ext <<_ACEOF
9517/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009518#include <sys/types.h>
9519#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009520
9521int
9522main ()
9523{
9524if ((DIR *) 0)
9525return 0;
9526 ;
9527 return 0;
9528}
9529_ACEOF
9530rm -f conftest.$ac_objext
9531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532 (eval $ac_compile) 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -z "$ac_c_werror_flag"
9540 || test ! -s conftest.err'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 (eval $ac_try) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } &&
9546 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9552 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009553else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009554 echo "$as_me: failed program was:" >&5
9555sed 's/^/| /' conftest.$ac_ext >&5
9556
9557eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009558fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009560fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9563if test `eval echo '${'$as_ac_Header'}'` = yes; then
9564 cat >>confdefs.h <<_ACEOF
9565#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9566_ACEOF
9567
9568ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009569fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009570
Bram Moolenaar071d4272004-06-13 20:20:40 +00009571done
9572# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9573if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009574 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9575echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9576if test "${ac_cv_search_opendir+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009578else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009579 ac_func_search_save_LIBS=$LIBS
9580ac_cv_search_opendir=no
9581cat >conftest.$ac_ext <<_ACEOF
9582/* confdefs.h. */
9583_ACEOF
9584cat confdefs.h >>conftest.$ac_ext
9585cat >>conftest.$ac_ext <<_ACEOF
9586/* end confdefs.h. */
9587
Bram Moolenaar071d4272004-06-13 20:20:40 +00009588/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009589#ifdef __cplusplus
9590extern "C"
9591#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009592/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009593 builtin and then its argument prototype would still apply. */
9594char opendir ();
9595int
9596main ()
9597{
9598opendir ();
9599 ;
9600 return 0;
9601}
9602_ACEOF
9603rm -f conftest.$ac_objext conftest$ac_exeext
9604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605 (eval $ac_link) 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -z "$ac_c_werror_flag"
9613 || test ! -s conftest.err'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest$ac_exeext'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9625 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009626else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009627 echo "$as_me: failed program was:" >&5
9628sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009629
9630fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009631rm -f conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633if test "$ac_cv_search_opendir" = no; then
9634 for ac_lib in dir; do
9635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637/* confdefs.h. */
9638_ACEOF
9639cat confdefs.h >>conftest.$ac_ext
9640cat >>conftest.$ac_ext <<_ACEOF
9641/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009642
Bram Moolenaar071d4272004-06-13 20:20:40 +00009643/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009644#ifdef __cplusplus
9645extern "C"
9646#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009647/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009648 builtin and then its argument prototype would still apply. */
9649char opendir ();
9650int
9651main ()
9652{
9653opendir ();
9654 ;
9655 return 0;
9656}
9657_ACEOF
9658rm -f conftest.$ac_objext conftest$ac_exeext
9659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660 (eval $ac_link) 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -z "$ac_c_werror_flag"
9668 || test ! -s conftest.err'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try='test -s conftest$ac_exeext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 ac_cv_search_opendir="-l$ac_lib"
9681break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009682else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009683 echo "$as_me: failed program was:" >&5
9684sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009685
9686fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009687rm -f conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689 done
9690fi
9691LIBS=$ac_func_search_save_LIBS
9692fi
9693echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9694echo "${ECHO_T}$ac_cv_search_opendir" >&6
9695if test "$ac_cv_search_opendir" != no; then
9696 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9697
9698fi
9699
Bram Moolenaar071d4272004-06-13 20:20:40 +00009700else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009701 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9702echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9703if test "${ac_cv_search_opendir+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009705else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009706 ac_func_search_save_LIBS=$LIBS
9707ac_cv_search_opendir=no
9708cat >conftest.$ac_ext <<_ACEOF
9709/* confdefs.h. */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h. */
9714
9715/* Override any gcc2 internal prototype to avoid an error. */
9716#ifdef __cplusplus
9717extern "C"
9718#endif
9719/* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9721char opendir ();
9722int
9723main ()
9724{
9725opendir ();
9726 ;
9727 return 0;
9728}
9729_ACEOF
9730rm -f conftest.$ac_objext conftest$ac_exeext
9731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732 (eval $ac_link) 2>conftest.er1
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag"
9740 || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest$ac_exeext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_cv_search_opendir="none required"
9753else
9754 echo "$as_me: failed program was:" >&5
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
9757fi
9758rm -f conftest.err conftest.$ac_objext \
9759 conftest$ac_exeext conftest.$ac_ext
9760if test "$ac_cv_search_opendir" = no; then
9761 for ac_lib in x; do
9762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9763 cat >conftest.$ac_ext <<_ACEOF
9764/* confdefs.h. */
9765_ACEOF
9766cat confdefs.h >>conftest.$ac_ext
9767cat >>conftest.$ac_ext <<_ACEOF
9768/* end confdefs.h. */
9769
9770/* Override any gcc2 internal prototype to avoid an error. */
9771#ifdef __cplusplus
9772extern "C"
9773#endif
9774/* We use char because int might match the return type of a gcc2
9775 builtin and then its argument prototype would still apply. */
9776char opendir ();
9777int
9778main ()
9779{
9780opendir ();
9781 ;
9782 return 0;
9783}
9784_ACEOF
9785rm -f conftest.$ac_objext conftest$ac_exeext
9786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag"
9795 || test ! -s conftest.err'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest$ac_exeext'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 (eval $ac_try) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 ac_cv_search_opendir="-l$ac_lib"
9808break
9809else
9810 echo "$as_me: failed program was:" >&5
9811sed 's/^/| /' conftest.$ac_ext >&5
9812
9813fi
9814rm -f conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9816 done
9817fi
9818LIBS=$ac_func_search_save_LIBS
9819fi
9820echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9821echo "${ECHO_T}$ac_cv_search_opendir" >&6
9822if test "$ac_cv_search_opendir" != no; then
9823 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9824
9825fi
9826
9827fi
9828
9829
9830echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9831echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9832if test "${ac_cv_header_stdc+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834else
9835 cat >conftest.$ac_ext <<_ACEOF
9836/* confdefs.h. */
9837_ACEOF
9838cat confdefs.h >>conftest.$ac_ext
9839cat >>conftest.$ac_ext <<_ACEOF
9840/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009841#include <stdlib.h>
9842#include <stdarg.h>
9843#include <string.h>
9844#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009845
9846int
9847main ()
9848{
9849
9850 ;
9851 return 0;
9852}
9853_ACEOF
9854rm -f conftest.$ac_objext
9855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9856 (eval $ac_compile) 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -z "$ac_c_werror_flag"
9864 || test ! -s conftest.err'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 (eval $ac_try) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; } &&
9870 { ac_try='test -s conftest.$ac_objext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009876 ac_cv_header_stdc=yes
9877else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009878 echo "$as_me: failed program was:" >&5
9879sed 's/^/| /' conftest.$ac_ext >&5
9880
9881ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009882fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009884
9885if test $ac_cv_header_stdc = yes; then
9886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009887 cat >conftest.$ac_ext <<_ACEOF
9888/* confdefs.h. */
9889_ACEOF
9890cat confdefs.h >>conftest.$ac_ext
9891cat >>conftest.$ac_ext <<_ACEOF
9892/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009893#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009894
9895_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009897 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009898 :
9899else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009900 ac_cv_header_stdc=no
9901fi
9902rm -f conftest*
9903
9904fi
9905
9906if test $ac_cv_header_stdc = yes; then
9907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009908 cat >conftest.$ac_ext <<_ACEOF
9909/* confdefs.h. */
9910_ACEOF
9911cat confdefs.h >>conftest.$ac_ext
9912cat >>conftest.$ac_ext <<_ACEOF
9913/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009914#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009915
9916_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009918 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009919 :
9920else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009921 ac_cv_header_stdc=no
9922fi
9923rm -f conftest*
9924
9925fi
9926
9927if test $ac_cv_header_stdc = yes; then
9928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009929 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009930 :
9931else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009932 cat >conftest.$ac_ext <<_ACEOF
9933/* confdefs.h. */
9934_ACEOF
9935cat confdefs.h >>conftest.$ac_ext
9936cat >>conftest.$ac_ext <<_ACEOF
9937/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009938#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009939#if ((' ' & 0x0FF) == 0x020)
9940# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9941# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9942#else
9943# define ISLOWER(c) \
9944 (('a' <= (c) && (c) <= 'i') \
9945 || ('j' <= (c) && (c) <= 'r') \
9946 || ('s' <= (c) && (c) <= 'z'))
9947# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9948#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009949
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009950#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9951int
9952main ()
9953{
9954 int i;
9955 for (i = 0; i < 256; i++)
9956 if (XOR (islower (i), ISLOWER (i))
9957 || toupper (i) != TOUPPER (i))
9958 exit(2);
9959 exit (0);
9960}
9961_ACEOF
9962rm -f conftest$ac_exeext
9963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009973 :
9974else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009975 echo "$as_me: program exited with status $ac_status" >&5
9976echo "$as_me: failed program was:" >&5
9977sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009978
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009979( exit $ac_status )
9980ac_cv_header_stdc=no
9981fi
9982rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009983fi
9984fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009985fi
9986echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9987echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009988if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009989
9990cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009991#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009992_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009993
9994fi
9995
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009996echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9997echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9998if test "${ac_cv_header_sys_wait_h+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010000else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010001 cat >conftest.$ac_ext <<_ACEOF
10002/* confdefs.h. */
10003_ACEOF
10004cat confdefs.h >>conftest.$ac_ext
10005cat >>conftest.$ac_ext <<_ACEOF
10006/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010007#include <sys/types.h>
10008#include <sys/wait.h>
10009#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010010# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010011#endif
10012#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010013# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010014#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010015
10016int
10017main ()
10018{
10019 int s;
10020 wait (&s);
10021 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10022 ;
10023 return 0;
10024}
10025_ACEOF
10026rm -f conftest.$ac_objext
10027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10028 (eval $ac_compile) 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag"
10036 || test ! -s conftest.err'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; } &&
10042 { ac_try='test -s conftest.$ac_objext'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010048 ac_cv_header_sys_wait_h=yes
10049else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010050 echo "$as_me: failed program was:" >&5
10051sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010052
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010053ac_cv_header_sys_wait_h=no
10054fi
10055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10056fi
10057echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10058echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010059if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010060
10061cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010062#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010063_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010064
10065fi
10066
10067
10068if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010069 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10070echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10071 cat >conftest.$ac_ext <<_ACEOF
10072/* confdefs.h. */
10073_ACEOF
10074cat confdefs.h >>conftest.$ac_ext
10075cat >>conftest.$ac_ext <<_ACEOF
10076/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010077#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010078int
10079main ()
10080{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010081union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010082 ;
10083 return 0;
10084}
10085_ACEOF
10086rm -f conftest.$ac_objext
10087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10088 (eval $ac_compile) 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag"
10096 || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest.$ac_objext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 echo "$as_me:$LINENO: result: yes" >&5
10109echo "${ECHO_T}yes" >&6
10110 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010111#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010112_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010113
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010114 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010115#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010116_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010117
10118else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010119 echo "$as_me: failed program was:" >&5
10120sed 's/^/| /' conftest.$ac_ext >&5
10121
10122echo "$as_me:$LINENO: result: no" >&5
10123echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010124fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010126fi
10127
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010167
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010168for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010169 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10170 iconv.h langinfo.h unistd.h stropts.h errno.h \
10171 sys/resource.h sys/systeminfo.h locale.h \
10172 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10173 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010174 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010175 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010176do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10178if eval "test \"\${$as_ac_Header+set}\" = set"; then
10179 echo "$as_me:$LINENO: checking for $ac_header" >&5
10180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10181if eval "test \"\${$as_ac_Header+set}\" = set"; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010183fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010186else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010187 # Is the header compilable?
10188echo "$as_me:$LINENO: checking $ac_header usability" >&5
10189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10190cat >conftest.$ac_ext <<_ACEOF
10191/* confdefs.h. */
10192_ACEOF
10193cat confdefs.h >>conftest.$ac_ext
10194cat >>conftest.$ac_ext <<_ACEOF
10195/* end confdefs.h. */
10196$ac_includes_default
10197#include <$ac_header>
10198_ACEOF
10199rm -f conftest.$ac_objext
10200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10201 (eval $ac_compile) 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest.$ac_objext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_header_compiler=yes
10222else
10223 echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010227fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10230echo "${ECHO_T}$ac_header_compiler" >&6
10231
10232# Is the header present?
10233echo "$as_me:$LINENO: checking $ac_header presence" >&5
10234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10235cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h. */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h. */
10241#include <$ac_header>
10242_ACEOF
10243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10245 ac_status=$?
10246 grep -v '^ *+' conftest.er1 >conftest.err
10247 rm -f conftest.er1
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } >/dev/null; then
10251 if test -s conftest.err; then
10252 ac_cpp_err=$ac_c_preproc_warn_flag
10253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10254 else
10255 ac_cpp_err=
10256 fi
10257else
10258 ac_cpp_err=yes
10259fi
10260if test -z "$ac_cpp_err"; then
10261 ac_header_preproc=yes
10262else
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_header_preproc=no
10267fi
10268rm -f conftest.err conftest.$ac_ext
10269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10270echo "${ECHO_T}$ac_header_preproc" >&6
10271
10272# So? What about this header?
10273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10274 yes:no: )
10275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10279 ac_header_preproc=yes
10280 ;;
10281 no:yes:* )
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10294 (
10295 cat <<\_ASBOX
10296## ------------------------------------------ ##
10297## Report this to the AC_PACKAGE_NAME lists. ##
10298## ------------------------------------------ ##
10299_ASBOX
10300 ) |
10301 sed "s/^/$as_me: WARNING: /" >&2
10302 ;;
10303esac
10304echo "$as_me:$LINENO: checking for $ac_header" >&5
10305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10306if eval "test \"\${$as_ac_Header+set}\" = set"; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309 eval "$as_ac_Header=\$ac_header_preproc"
10310fi
10311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10313
10314fi
10315if test `eval echo '${'$as_ac_Header'}'` = yes; then
10316 cat >>confdefs.h <<_ACEOF
10317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10318_ACEOF
10319
10320fi
10321
Bram Moolenaar071d4272004-06-13 20:20:40 +000010322done
10323
10324
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010325echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10326echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10327cat >conftest.$ac_ext <<_ACEOF
10328/* confdefs.h. */
10329_ACEOF
10330cat confdefs.h >>conftest.$ac_ext
10331cat >>conftest.$ac_ext <<_ACEOF
10332/* end confdefs.h. */
10333
10334#include <pthread.h>
10335#include <pthread_np.h>
10336int
10337main ()
10338{
10339int i; i = 0;
10340 ;
10341 return 0;
10342}
10343_ACEOF
10344rm -f conftest.$ac_objext
10345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10346 (eval $ac_compile) 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -z "$ac_c_werror_flag"
10354 || test ! -s conftest.err'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try='test -s conftest.$ac_objext'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 echo "$as_me:$LINENO: result: yes" >&5
10367echo "${ECHO_T}yes" >&6
10368 cat >>confdefs.h <<\_ACEOF
10369#define HAVE_PTHREAD_NP_H 1
10370_ACEOF
10371
10372else
10373 echo "$as_me: failed program was:" >&5
10374sed 's/^/| /' conftest.$ac_ext >&5
10375
10376echo "$as_me:$LINENO: result: no" >&5
10377echo "${ECHO_T}no" >&6
10378fi
10379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10380
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010381
10382for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010383do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10385if eval "test \"\${$as_ac_Header+set}\" = set"; then
10386 echo "$as_me:$LINENO: checking for $ac_header" >&5
10387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10388if eval "test \"\${$as_ac_Header+set}\" = set"; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010390fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010393else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010394 # Is the header compilable?
10395echo "$as_me:$LINENO: checking $ac_header usability" >&5
10396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10397cat >conftest.$ac_ext <<_ACEOF
10398/* confdefs.h. */
10399_ACEOF
10400cat confdefs.h >>conftest.$ac_ext
10401cat >>conftest.$ac_ext <<_ACEOF
10402/* end confdefs.h. */
10403$ac_includes_default
10404#include <$ac_header>
10405_ACEOF
10406rm -f conftest.$ac_objext
10407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408 (eval $ac_compile) 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest.$ac_objext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_header_compiler=yes
10429else
10430 echo "$as_me: failed program was:" >&5
10431sed 's/^/| /' conftest.$ac_ext >&5
10432
10433ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010434fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10437echo "${ECHO_T}$ac_header_compiler" >&6
10438
10439# Is the header present?
10440echo "$as_me:$LINENO: checking $ac_header presence" >&5
10441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10442cat >conftest.$ac_ext <<_ACEOF
10443/* confdefs.h. */
10444_ACEOF
10445cat confdefs.h >>conftest.$ac_ext
10446cat >>conftest.$ac_ext <<_ACEOF
10447/* end confdefs.h. */
10448#include <$ac_header>
10449_ACEOF
10450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } >/dev/null; then
10458 if test -s conftest.err; then
10459 ac_cpp_err=$ac_c_preproc_warn_flag
10460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10461 else
10462 ac_cpp_err=
10463 fi
10464else
10465 ac_cpp_err=yes
10466fi
10467if test -z "$ac_cpp_err"; then
10468 ac_header_preproc=yes
10469else
10470 echo "$as_me: failed program was:" >&5
10471sed 's/^/| /' conftest.$ac_ext >&5
10472
10473 ac_header_preproc=no
10474fi
10475rm -f conftest.err conftest.$ac_ext
10476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10477echo "${ECHO_T}$ac_header_preproc" >&6
10478
10479# So? What about this header?
10480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10481 yes:no: )
10482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10486 ac_header_preproc=yes
10487 ;;
10488 no:yes:* )
10489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10501 (
10502 cat <<\_ASBOX
10503## ------------------------------------------ ##
10504## Report this to the AC_PACKAGE_NAME lists. ##
10505## ------------------------------------------ ##
10506_ASBOX
10507 ) |
10508 sed "s/^/$as_me: WARNING: /" >&2
10509 ;;
10510esac
10511echo "$as_me:$LINENO: checking for $ac_header" >&5
10512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10513if eval "test \"\${$as_ac_Header+set}\" = set"; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515else
10516 eval "$as_ac_Header=\$ac_header_preproc"
10517fi
10518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10520
10521fi
10522if test `eval echo '${'$as_ac_Header'}'` = yes; then
10523 cat >>confdefs.h <<_ACEOF
10524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10525_ACEOF
10526
10527fi
10528
Bram Moolenaar071d4272004-06-13 20:20:40 +000010529done
10530
Bram Moolenaar9372a112005-12-06 19:59:18 +000010531if test "x$MACOSX" = "xyes"; then
10532 cat >>confdefs.h <<\_ACEOF
10533#define NO_STRINGS_WITH_STRING_H 1
10534_ACEOF
10535
10536else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010537
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010538echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10539echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010540cppflags_save=$CPPFLAGS
10541CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010542cat >conftest.$ac_ext <<_ACEOF
10543/* confdefs.h. */
10544_ACEOF
10545cat confdefs.h >>conftest.$ac_ext
10546cat >>conftest.$ac_ext <<_ACEOF
10547/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010548
10549#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10550# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10551 /* but don't do it on AIX 5.1 (Uribarri) */
10552#endif
10553#ifdef HAVE_XM_XM_H
10554# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10555#endif
10556#ifdef HAVE_STRING_H
10557# include <string.h>
10558#endif
10559#if defined(HAVE_STRINGS_H)
10560# include <strings.h>
10561#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010562
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010563int
10564main ()
10565{
10566int i; i = 0;
10567 ;
10568 return 0;
10569}
10570_ACEOF
10571rm -f conftest.$ac_objext
10572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573 (eval $ac_compile) 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag"
10581 || test ! -s conftest.err'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest.$ac_objext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 echo "$as_me:$LINENO: result: yes" >&5
10594echo "${ECHO_T}yes" >&6
10595else
10596 echo "$as_me: failed program was:" >&5
10597sed 's/^/| /' conftest.$ac_ext >&5
10598
10599cat >>confdefs.h <<\_ACEOF
10600#define NO_STRINGS_WITH_STRING_H 1
10601_ACEOF
10602
10603 echo "$as_me:$LINENO: result: no" >&5
10604echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010605fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010607CPPFLAGS=$cppflags_save
Bram Moolenaar9372a112005-12-06 19:59:18 +000010608fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000010609
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010610if test $ac_cv_c_compiler_gnu = yes; then
10611 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10612echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10613if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010615else
10616 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010617 cat >conftest.$ac_ext <<_ACEOF
10618/* confdefs.h. */
10619_ACEOF
10620cat confdefs.h >>conftest.$ac_ext
10621cat >>conftest.$ac_ext <<_ACEOF
10622/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010623#include <sgtty.h>
10624Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010625_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010626if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010627 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010628 ac_cv_prog_gcc_traditional=yes
10629else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010630 ac_cv_prog_gcc_traditional=no
10631fi
10632rm -f conftest*
10633
10634
10635 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010636 cat >conftest.$ac_ext <<_ACEOF
10637/* confdefs.h. */
10638_ACEOF
10639cat confdefs.h >>conftest.$ac_ext
10640cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010642#include <termio.h>
10643Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010644_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010646 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010647 ac_cv_prog_gcc_traditional=yes
10648fi
10649rm -f conftest*
10650
10651 fi
10652fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010653echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10654echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010655 if test $ac_cv_prog_gcc_traditional = yes; then
10656 CC="$CC -traditional"
10657 fi
10658fi
10659
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010660echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10661echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10662if test "${ac_cv_c_const+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010664else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010665 cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h. */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010671
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010672int
10673main ()
10674{
10675/* FIXME: Include the comments suggested by Paul. */
10676#ifndef __cplusplus
10677 /* Ultrix mips cc rejects this. */
10678 typedef int charset[2];
10679 const charset x;
10680 /* SunOS 4.1.1 cc rejects this. */
10681 char const *const *ccp;
10682 char **p;
10683 /* NEC SVR4.0.2 mips cc rejects this. */
10684 struct point {int x, y;};
10685 static struct point const zero = {0,0};
10686 /* AIX XL C 1.02.0.0 rejects this.
10687 It does not let you subtract one const X* pointer from another in
10688 an arm of an if-expression whose if-part is not a constant
10689 expression */
10690 const char *g = "string";
10691 ccp = &g + (g ? g-g : 0);
10692 /* HPUX 7.0 cc rejects these. */
10693 ++ccp;
10694 p = (char**) ccp;
10695 ccp = (char const *const *) p;
10696 { /* SCO 3.2v4 cc rejects this. */
10697 char *t;
10698 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010699
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010700 *t++ = 0;
10701 }
10702 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10703 int x[] = {25, 17};
10704 const int *foo = &x[0];
10705 ++foo;
10706 }
10707 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10708 typedef const int *iptr;
10709 iptr p = 0;
10710 ++p;
10711 }
10712 { /* AIX XL C 1.02.0.0 rejects this saying
10713 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10714 struct s { int j; const int *ap[3]; };
10715 struct s *b; b->j = 5;
10716 }
10717 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10718 const int foo = 10;
10719 }
10720#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010721
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010722 ;
10723 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010724}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010725_ACEOF
10726rm -f conftest.$ac_objext
10727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag"
10736 || test ! -s conftest.err'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; } &&
10742 { ac_try='test -s conftest.$ac_objext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010748 ac_cv_c_const=yes
10749else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010750 echo "$as_me: failed program was:" >&5
10751sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010752
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010753ac_cv_c_const=no
10754fi
10755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10756fi
10757echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10758echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010759if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010760
10761cat >>confdefs.h <<\_ACEOF
10762#define const
10763_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010764
10765fi
10766
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010767echo "$as_me:$LINENO: checking for mode_t" >&5
10768echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10769if test "${ac_cv_type_mode_t+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010771else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010772 cat >conftest.$ac_ext <<_ACEOF
10773/* confdefs.h. */
10774_ACEOF
10775cat confdefs.h >>conftest.$ac_ext
10776cat >>conftest.$ac_ext <<_ACEOF
10777/* end confdefs.h. */
10778$ac_includes_default
10779int
10780main ()
10781{
10782if ((mode_t *) 0)
10783 return 0;
10784if (sizeof (mode_t))
10785 return 0;
10786 ;
10787 return 0;
10788}
10789_ACEOF
10790rm -f conftest.$ac_objext
10791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10792 (eval $ac_compile) 2>conftest.er1
10793 ac_status=$?
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -z "$ac_c_werror_flag"
10800 || test ! -s conftest.err'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; } &&
10806 { ac_try='test -s conftest.$ac_objext'
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010812 ac_cv_type_mode_t=yes
10813else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010814 echo "$as_me: failed program was:" >&5
10815sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010816
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010817ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010818fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010820fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010821echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10822echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10823if test $ac_cv_type_mode_t = yes; then
10824 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010825else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010826
10827cat >>confdefs.h <<_ACEOF
10828#define mode_t int
10829_ACEOF
10830
10831fi
10832
10833echo "$as_me:$LINENO: checking for off_t" >&5
10834echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10835if test "${ac_cv_type_off_t+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837else
10838 cat >conftest.$ac_ext <<_ACEOF
10839/* confdefs.h. */
10840_ACEOF
10841cat confdefs.h >>conftest.$ac_ext
10842cat >>conftest.$ac_ext <<_ACEOF
10843/* end confdefs.h. */
10844$ac_includes_default
10845int
10846main ()
10847{
10848if ((off_t *) 0)
10849 return 0;
10850if (sizeof (off_t))
10851 return 0;
10852 ;
10853 return 0;
10854}
10855_ACEOF
10856rm -f conftest.$ac_objext
10857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10858 (eval $ac_compile) 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } &&
10865 { ac_try='test -z "$ac_c_werror_flag"
10866 || test ! -s conftest.err'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10869 ac_status=$?
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest.$ac_objext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010878 ac_cv_type_off_t=yes
10879else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010880 echo "$as_me: failed program was:" >&5
10881sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010882
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010883ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010884fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010886fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010887echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10888echo "${ECHO_T}$ac_cv_type_off_t" >&6
10889if test $ac_cv_type_off_t = yes; then
10890 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010891else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010892
10893cat >>confdefs.h <<_ACEOF
10894#define off_t long
10895_ACEOF
10896
10897fi
10898
10899echo "$as_me:$LINENO: checking for pid_t" >&5
10900echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10901if test "${ac_cv_type_pid_t+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903else
10904 cat >conftest.$ac_ext <<_ACEOF
10905/* confdefs.h. */
10906_ACEOF
10907cat confdefs.h >>conftest.$ac_ext
10908cat >>conftest.$ac_ext <<_ACEOF
10909/* end confdefs.h. */
10910$ac_includes_default
10911int
10912main ()
10913{
10914if ((pid_t *) 0)
10915 return 0;
10916if (sizeof (pid_t))
10917 return 0;
10918 ;
10919 return 0;
10920}
10921_ACEOF
10922rm -f conftest.$ac_objext
10923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924 (eval $ac_compile) 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -z "$ac_c_werror_flag"
10932 || test ! -s conftest.err'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try='test -s conftest.$ac_objext'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010944 ac_cv_type_pid_t=yes
10945else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010946 echo "$as_me: failed program was:" >&5
10947sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010948
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010949ac_cv_type_pid_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010950fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010952fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010953echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10954echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10955if test $ac_cv_type_pid_t = yes; then
10956 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010957else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010958
10959cat >>confdefs.h <<_ACEOF
10960#define pid_t int
10961_ACEOF
10962
10963fi
10964
10965echo "$as_me:$LINENO: checking for size_t" >&5
10966echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10967if test "${ac_cv_type_size_t+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969else
10970 cat >conftest.$ac_ext <<_ACEOF
10971/* confdefs.h. */
10972_ACEOF
10973cat confdefs.h >>conftest.$ac_ext
10974cat >>conftest.$ac_ext <<_ACEOF
10975/* end confdefs.h. */
10976$ac_includes_default
10977int
10978main ()
10979{
10980if ((size_t *) 0)
10981 return 0;
10982if (sizeof (size_t))
10983 return 0;
10984 ;
10985 return 0;
10986}
10987_ACEOF
10988rm -f conftest.$ac_objext
10989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10990 (eval $ac_compile) 2>conftest.er1
10991 ac_status=$?
10992 grep -v '^ *+' conftest.er1 >conftest.err
10993 rm -f conftest.er1
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -z "$ac_c_werror_flag"
10998 || test ! -s conftest.err'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; } &&
11004 { ac_try='test -s conftest.$ac_objext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011010 ac_cv_type_size_t=yes
11011else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011012 echo "$as_me: failed program was:" >&5
11013sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011014
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011015ac_cv_type_size_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011016fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011018fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011019echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11020echo "${ECHO_T}$ac_cv_type_size_t" >&6
11021if test $ac_cv_type_size_t = yes; then
11022 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011023else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011024
11025cat >>confdefs.h <<_ACEOF
11026#define size_t unsigned
11027_ACEOF
11028
11029fi
11030
11031echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11032echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11033if test "${ac_cv_type_uid_t+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035else
11036 cat >conftest.$ac_ext <<_ACEOF
11037/* confdefs.h. */
11038_ACEOF
11039cat confdefs.h >>conftest.$ac_ext
11040cat >>conftest.$ac_ext <<_ACEOF
11041/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011042#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011043
11044_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011046 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011047 ac_cv_type_uid_t=yes
11048else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011049 ac_cv_type_uid_t=no
11050fi
11051rm -f conftest*
11052
11053fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011054echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11055echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011056if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011057
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011058cat >>confdefs.h <<\_ACEOF
11059#define uid_t int
11060_ACEOF
11061
11062
11063cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011064#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011065_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011066
11067fi
11068
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011069echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11070echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11071if test "${ac_cv_header_time+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011073else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011074 cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011080#include <sys/types.h>
11081#include <sys/time.h>
11082#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011083
11084int
11085main ()
11086{
11087if ((struct tm *) 0)
11088return 0;
11089 ;
11090 return 0;
11091}
11092_ACEOF
11093rm -f conftest.$ac_objext
11094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11095 (eval $ac_compile) 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -z "$ac_c_werror_flag"
11103 || test ! -s conftest.err'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest.$ac_objext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011115 ac_cv_header_time=yes
11116else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011117 echo "$as_me: failed program was:" >&5
11118sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011119
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011120ac_cv_header_time=no
11121fi
11122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11123fi
11124echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11125echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011126if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011127
11128cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011129#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011130_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011131
11132fi
11133
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011134echo "$as_me:$LINENO: checking for ino_t" >&5
11135echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11136if test "${ac_cv_type_ino_t+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011138else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011139 cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
11145$ac_includes_default
11146int
11147main ()
11148{
11149if ((ino_t *) 0)
11150 return 0;
11151if (sizeof (ino_t))
11152 return 0;
11153 ;
11154 return 0;
11155}
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -z "$ac_c_werror_flag"
11167 || test ! -s conftest.err'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try='test -s conftest.$ac_objext'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011179 ac_cv_type_ino_t=yes
11180else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011181 echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011183
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011184ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011185fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011187fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011188echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11189echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11190if test $ac_cv_type_ino_t = yes; then
11191 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011192else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011193
11194cat >>confdefs.h <<_ACEOF
11195#define ino_t long
11196_ACEOF
11197
11198fi
11199
11200echo "$as_me:$LINENO: checking for dev_t" >&5
11201echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11202if test "${ac_cv_type_dev_t+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204else
11205 cat >conftest.$ac_ext <<_ACEOF
11206/* confdefs.h. */
11207_ACEOF
11208cat confdefs.h >>conftest.$ac_ext
11209cat >>conftest.$ac_ext <<_ACEOF
11210/* end confdefs.h. */
11211$ac_includes_default
11212int
11213main ()
11214{
11215if ((dev_t *) 0)
11216 return 0;
11217if (sizeof (dev_t))
11218 return 0;
11219 ;
11220 return 0;
11221}
11222_ACEOF
11223rm -f conftest.$ac_objext
11224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest.$ac_objext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011245 ac_cv_type_dev_t=yes
11246else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011247 echo "$as_me: failed program was:" >&5
11248sed 's/^/| /' conftest.$ac_ext >&5
11249
11250ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011251fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011253fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011254echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11255echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11256if test $ac_cv_type_dev_t = yes; then
11257 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011258else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011259
11260cat >>confdefs.h <<_ACEOF
11261#define dev_t unsigned
11262_ACEOF
11263
11264fi
11265
11266
11267echo "$as_me:$LINENO: checking for rlim_t" >&5
11268echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11269if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11270 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11271echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11272else
11273 cat >conftest.$ac_ext <<_ACEOF
11274/* confdefs.h. */
11275_ACEOF
11276cat confdefs.h >>conftest.$ac_ext
11277cat >>conftest.$ac_ext <<_ACEOF
11278/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011279
11280#include <sys/types.h>
11281#if STDC_HEADERS
11282#include <stdlib.h>
11283#include <stddef.h>
11284#endif
11285#ifdef HAVE_SYS_RESOURCE_H
11286#include <sys/resource.h>
11287#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011288
11289_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011291 $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 +000011292 ac_cv_type_rlim_t=yes
11293else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011294 ac_cv_type_rlim_t=no
11295fi
11296rm -f conftest*
11297
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011298 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11299echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011300fi
11301if test $ac_cv_type_rlim_t = no; then
11302 cat >> confdefs.h <<\EOF
11303#define rlim_t unsigned long
11304EOF
11305fi
11306
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011307echo "$as_me:$LINENO: checking for stack_t" >&5
11308echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011309if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011310 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11311echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011312else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011313 cat >conftest.$ac_ext <<_ACEOF
11314/* confdefs.h. */
11315_ACEOF
11316cat confdefs.h >>conftest.$ac_ext
11317cat >>conftest.$ac_ext <<_ACEOF
11318/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011319
11320#include <sys/types.h>
11321#if STDC_HEADERS
11322#include <stdlib.h>
11323#include <stddef.h>
11324#endif
11325#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011326
11327_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011329 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011330 ac_cv_type_stack_t=yes
11331else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011332 ac_cv_type_stack_t=no
11333fi
11334rm -f conftest*
11335
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011336 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11337echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011338fi
11339if test $ac_cv_type_stack_t = no; then
11340 cat >> confdefs.h <<\EOF
11341#define stack_t struct sigaltstack
11342EOF
11343fi
11344
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011345echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11346echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11347cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h. */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011353
11354#include <sys/types.h>
11355#if STDC_HEADERS
11356#include <stdlib.h>
11357#include <stddef.h>
11358#endif
11359#include <signal.h>
11360#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011361
11362int
11363main ()
11364{
11365stack_t sigstk; sigstk.ss_base = 0;
11366 ;
11367 return 0;
11368}
11369_ACEOF
11370rm -f conftest.$ac_objext
11371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372 (eval $ac_compile) 2>conftest.er1
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
11379 { ac_try='test -z "$ac_c_werror_flag"
11380 || test ! -s conftest.err'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try='test -s conftest.$ac_objext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 echo "$as_me:$LINENO: result: yes" >&5
11393echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011394#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011395_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011396
11397else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011398 echo "$as_me: failed program was:" >&5
11399sed 's/^/| /' conftest.$ac_ext >&5
11400
11401echo "$as_me:$LINENO: result: no" >&5
11402echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011403fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011405
11406olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011407echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11408echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11409
Bram Moolenaar071d4272004-06-13 20:20:40 +000011410# Check whether --with-tlib or --without-tlib was given.
11411if test "${with_tlib+set}" = set; then
11412 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011413
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011414fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011415if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011416 echo "$as_me:$LINENO: result: $with_tlib" >&5
11417echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011418 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011419 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11420echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11421 cat >conftest.$ac_ext <<_ACEOF
11422/* confdefs.h. */
11423_ACEOF
11424cat confdefs.h >>conftest.$ac_ext
11425cat >>conftest.$ac_ext <<_ACEOF
11426/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011427
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011428int
11429main ()
11430{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011431
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011432 ;
11433 return 0;
11434}
11435_ACEOF
11436rm -f conftest.$ac_objext conftest$ac_exeext
11437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11438 (eval $ac_link) 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
11445 { ac_try='test -z "$ac_c_werror_flag"
11446 || test ! -s conftest.err'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; } &&
11452 { ac_try='test -s conftest$ac_exeext'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 echo "$as_me:$LINENO: result: OK" >&5
11459echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011460else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011461 echo "$as_me: failed program was:" >&5
11462sed 's/^/| /' conftest.$ac_ext >&5
11463
11464{ { echo "$as_me:$LINENO: error: FAILED" >&5
11465echo "$as_me: error: FAILED" >&2;}
11466 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011467fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011468rm -f conftest.err conftest.$ac_objext \
11469 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011470 olibs="$LIBS"
11471else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011472 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11473echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011474 case "`uname -s 2>/dev/null`" in
11475 OSF1) tlibs="ncurses curses termlib termcap";;
11476 *) tlibs="ncurses termlib termcap curses";;
11477 esac
11478 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011479
11480as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11481echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11482echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11483if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011485else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011486 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000011487LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011488cat >conftest.$ac_ext <<_ACEOF
11489/* confdefs.h. */
11490_ACEOF
11491cat confdefs.h >>conftest.$ac_ext
11492cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h. */
11494
Bram Moolenaar071d4272004-06-13 20:20:40 +000011495/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011496#ifdef __cplusplus
11497extern "C"
11498#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011499/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011500 builtin and then its argument prototype would still apply. */
11501char tgetent ();
11502int
11503main ()
11504{
11505tgetent ();
11506 ;
11507 return 0;
11508}
11509_ACEOF
11510rm -f conftest.$ac_objext conftest$ac_exeext
11511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11512 (eval $ac_link) 2>conftest.er1
11513 ac_status=$?
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -z "$ac_c_werror_flag"
11520 || test ! -s conftest.err'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; } &&
11526 { ac_try='test -s conftest$ac_exeext'
11527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011533else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011534 echo "$as_me: failed program was:" >&5
11535sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011536
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011537eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011538fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011539rm -f conftest.err conftest.$ac_objext \
11540 conftest$ac_exeext conftest.$ac_ext
11541LIBS=$ac_check_lib_save_LIBS
11542fi
11543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11544echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11545if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11546 cat >>confdefs.h <<_ACEOF
11547#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11548_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011549
11550 LIBS="-l${libname} $LIBS"
11551
Bram Moolenaar071d4272004-06-13 20:20:40 +000011552fi
11553
11554 if test "x$olibs" != "x$LIBS"; then
11555 if test "$cross_compiling" = yes; then
11556 res="FAIL"
11557else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011558 cat >conftest.$ac_ext <<_ACEOF
11559/* confdefs.h. */
11560_ACEOF
11561cat confdefs.h >>conftest.$ac_ext
11562cat >>conftest.$ac_ext <<_ACEOF
11563/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011564
11565#ifdef HAVE_TERMCAP_H
11566# include <termcap.h>
11567#endif
11568main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011569_ACEOF
11570rm -f conftest$ac_exeext
11571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11572 (eval $ac_link) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011581 res="OK"
11582else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011583 echo "$as_me: program exited with status $ac_status" >&5
11584echo "$as_me: failed program was:" >&5
11585sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011586
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011587( exit $ac_status )
11588res="FAIL"
11589fi
11590rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11591fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011592 if test "$res" = "OK"; then
11593 break
11594 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011595 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11596echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011597 LIBS="$olibs"
11598 fi
11599 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011600 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011601 echo "$as_me:$LINENO: result: no terminal library found" >&5
11602echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011603 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011604fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011605
11606if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011607 echo "$as_me:$LINENO: checking for tgetent()" >&5
11608echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11609 cat >conftest.$ac_ext <<_ACEOF
11610/* confdefs.h. */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011615
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011616int
11617main ()
11618{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011619char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011620 ;
11621 return 0;
11622}
11623_ACEOF
11624rm -f conftest.$ac_objext conftest$ac_exeext
11625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } &&
11633 { ac_try='test -z "$ac_c_werror_flag"
11634 || test ! -s conftest.err'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; } &&
11640 { ac_try='test -s conftest$ac_exeext'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11643 ac_status=$?
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; }; then
11646 echo "$as_me:$LINENO: result: yes" >&5
11647echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011648else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011649 echo "$as_me: failed program was:" >&5
11650sed 's/^/| /' conftest.$ac_ext >&5
11651
11652{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011653 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011654 Or specify the name of the library with --with-tlib." >&5
11655echo "$as_me: error: NOT FOUND!
11656 You need to install a terminal library; for example ncurses.
11657 Or specify the name of the library with --with-tlib." >&2;}
11658 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011659fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011660rm -f conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011662fi
11663
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011664echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11665echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011666if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011667 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11668echo "$as_me: error: failed to compile test program." >&2;}
11669 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011670else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011671 cat >conftest.$ac_ext <<_ACEOF
11672/* confdefs.h. */
11673_ACEOF
11674cat confdefs.h >>conftest.$ac_ext
11675cat >>conftest.$ac_ext <<_ACEOF
11676/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011677
11678#ifdef HAVE_TERMCAP_H
11679# include <termcap.h>
11680#endif
11681main()
11682{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011683_ACEOF
11684rm -f conftest$ac_exeext
11685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11686 (eval $ac_link) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11696echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011697else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011698 echo "$as_me: program exited with status $ac_status" >&5
11699echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
11702( exit $ac_status )
11703echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11704echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011705#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011706_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011707
11708fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011709rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011710fi
11711
Bram Moolenaar071d4272004-06-13 20:20:40 +000011712if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011713 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11714echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011715 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011716 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11717echo "$as_me: error: failed to compile test program." >&2;}
11718 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011719else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011720 cat >conftest.$ac_ext <<_ACEOF
11721/* confdefs.h. */
11722_ACEOF
11723cat confdefs.h >>conftest.$ac_ext
11724cat >>conftest.$ac_ext <<_ACEOF
11725/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011726
11727#ifdef HAVE_TERMCAP_H
11728# include <termcap.h>
11729#endif
11730main()
11731{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011732_ACEOF
11733rm -f conftest$ac_exeext
11734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11735 (eval $ac_link) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 echo "$as_me:$LINENO: result: zero" >&5
11745echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011746#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011747_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011748
11749else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011750 echo "$as_me: program exited with status $ac_status" >&5
11751echo "$as_me: failed program was:" >&5
11752sed 's/^/| /' conftest.$ac_ext >&5
11753
11754( exit $ac_status )
11755echo "$as_me:$LINENO: result: non-zero" >&5
11756echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011757fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011758rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11759fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011760fi
11761
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011762echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11763echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11764cat >conftest.$ac_ext <<_ACEOF
11765/* confdefs.h. */
11766_ACEOF
11767cat confdefs.h >>conftest.$ac_ext
11768cat >>conftest.$ac_ext <<_ACEOF
11769/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011770
11771#ifdef HAVE_TERMCAP_H
11772# include <termcap.h>
11773#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011774
11775int
11776main ()
11777{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011778ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011779 ;
11780 return 0;
11781}
11782_ACEOF
11783rm -f conftest.$ac_objext conftest$ac_exeext
11784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11785 (eval $ac_link) 2>conftest.er1
11786 ac_status=$?
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try='test -z "$ac_c_werror_flag"
11793 || test ! -s conftest.err'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest$ac_exeext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 echo "$as_me:$LINENO: result: yes" >&5
11806echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011807#define HAVE_OSPEED 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011808_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011809
11810else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
11814echo "$as_me:$LINENO: result: no" >&5
11815echo "${ECHO_T}no" >&6
11816 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11817echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11818 cat >conftest.$ac_ext <<_ACEOF
11819/* confdefs.h. */
11820_ACEOF
11821cat confdefs.h >>conftest.$ac_ext
11822cat >>conftest.$ac_ext <<_ACEOF
11823/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011824
11825#ifdef HAVE_TERMCAP_H
11826# include <termcap.h>
11827#endif
11828extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011829
11830int
11831main ()
11832{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011833ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011834 ;
11835 return 0;
11836}
11837_ACEOF
11838rm -f conftest.$ac_objext conftest$ac_exeext
11839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11840 (eval $ac_link) 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -z "$ac_c_werror_flag"
11848 || test ! -s conftest.err'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; } &&
11854 { ac_try='test -s conftest$ac_exeext'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 echo "$as_me:$LINENO: result: yes" >&5
11861echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011862#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011863_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011864
11865else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011866 echo "$as_me: failed program was:" >&5
11867sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011868
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011869echo "$as_me:$LINENO: result: no" >&5
11870echo "${ECHO_T}no" >&6
11871fi
11872rm -f conftest.err conftest.$ac_objext \
11873 conftest$ac_exeext conftest.$ac_ext
11874
11875fi
11876rm -f conftest.err conftest.$ac_objext \
11877 conftest$ac_exeext conftest.$ac_ext
11878
11879echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11880echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11881cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011887
11888#ifdef HAVE_TERMCAP_H
11889# include <termcap.h>
11890#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011891
11892int
11893main ()
11894{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011895if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011896 ;
11897 return 0;
11898}
11899_ACEOF
11900rm -f conftest.$ac_objext conftest$ac_exeext
11901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 echo "$as_me:$LINENO: result: yes" >&5
11923echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011924#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011925_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011926
11927else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011928 echo "$as_me: failed program was:" >&5
11929sed 's/^/| /' conftest.$ac_ext >&5
11930
11931echo "$as_me:$LINENO: result: no" >&5
11932echo "${ECHO_T}no" >&6
11933 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
11934echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11936/* confdefs.h. */
11937_ACEOF
11938cat confdefs.h >>conftest.$ac_ext
11939cat >>conftest.$ac_ext <<_ACEOF
11940/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011941
11942#ifdef HAVE_TERMCAP_H
11943# include <termcap.h>
11944#endif
11945extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011946
11947int
11948main ()
11949{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011950if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011951 ;
11952 return 0;
11953}
11954_ACEOF
11955rm -f conftest.$ac_objext conftest$ac_exeext
11956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag"
11965 || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest$ac_exeext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 echo "$as_me:$LINENO: result: yes" >&5
11978echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011979#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011980_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011981
11982else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011983 echo "$as_me: failed program was:" >&5
11984sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011985
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011986echo "$as_me:$LINENO: result: no" >&5
11987echo "${ECHO_T}no" >&6
11988fi
11989rm -f conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11991
11992fi
11993rm -f conftest.err conftest.$ac_objext \
11994 conftest$ac_exeext conftest.$ac_ext
11995
11996echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
11997echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
11998cat >conftest.$ac_ext <<_ACEOF
11999/* confdefs.h. */
12000_ACEOF
12001cat confdefs.h >>conftest.$ac_ext
12002cat >>conftest.$ac_ext <<_ACEOF
12003/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012004
12005#ifdef HAVE_TERMCAP_H
12006# include <termcap.h>
12007#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012008
12009int
12010main ()
12011{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012012extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012013 ;
12014 return 0;
12015}
12016_ACEOF
12017rm -f conftest.$ac_objext
12018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019 (eval $ac_compile) 2>conftest.er1
12020 ac_status=$?
12021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag"
12027 || test ! -s conftest.err'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest.$ac_objext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 echo "$as_me:$LINENO: result: yes" >&5
12040echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012041#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012042_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012043
12044else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012045 echo "$as_me: failed program was:" >&5
12046sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012047
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012048echo "$as_me:$LINENO: result: no" >&5
12049echo "${ECHO_T}no" >&6
12050fi
12051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12052
12053echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12054echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12055cat >conftest.$ac_ext <<_ACEOF
12056/* confdefs.h. */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012061
12062#include <sys/types.h>
12063#include <sys/time.h>
12064#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012065int
12066main ()
12067{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012068
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012069 ;
12070 return 0;
12071}
12072_ACEOF
12073rm -f conftest.$ac_objext
12074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12075 (eval $ac_compile) 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 echo "$as_me:$LINENO: result: yes" >&5
12096echo "${ECHO_T}yes" >&6
12097 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012098#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012099_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012100
12101else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012102 echo "$as_me: failed program was:" >&5
12103sed 's/^/| /' conftest.$ac_ext >&5
12104
12105echo "$as_me:$LINENO: result: no" >&5
12106echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012107fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012109
12110
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012111echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12112echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012113if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012114 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012115#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012116_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012117
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012118 echo "$as_me:$LINENO: result: yes" >&5
12119echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012120else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012121 echo "$as_me:$LINENO: result: no" >&5
12122echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012123fi
12124
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012125echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12126echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012127if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012128 cat >conftest.$ac_ext <<_ACEOF
12129/* confdefs.h. */
12130_ACEOF
12131cat confdefs.h >>conftest.$ac_ext
12132cat >>conftest.$ac_ext <<_ACEOF
12133/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012134
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012135int
12136main ()
12137{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012138ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012139 ;
12140 return 0;
12141}
12142_ACEOF
12143rm -f conftest.$ac_objext conftest$ac_exeext
12144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12145 (eval $ac_link) 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
12152 { ac_try='test -z "$ac_c_werror_flag"
12153 || test ! -s conftest.err'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest$ac_exeext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 echo "$as_me:$LINENO: result: yes" >&5
12166echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012167#define HAVE_SVR4_PTYS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012168_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012169
12170else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012171 echo "$as_me: failed program was:" >&5
12172sed 's/^/| /' conftest.$ac_ext >&5
12173
12174echo "$as_me:$LINENO: result: no" >&5
12175echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012176fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012177rm -f conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012179else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012180 echo "$as_me:$LINENO: result: no" >&5
12181echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012182fi
12183
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012184echo "$as_me:$LINENO: checking for ptyranges" >&5
12185echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012186if test -d /dev/ptym ; then
12187 pdir='/dev/ptym'
12188else
12189 pdir='/dev'
12190fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012191cat >conftest.$ac_ext <<_ACEOF
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012197#ifdef M_UNIX
12198 yes;
12199#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012200
12201_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012203 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012204 ptys=`echo /dev/ptyp??`
12205else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012206 ptys=`echo $pdir/pty??`
12207fi
12208rm -f conftest*
12209
12210if test "$ptys" != "$pdir/pty??" ; then
12211 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12212 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012213 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012214#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012215_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012216
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012217 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012218#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012219_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012220
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012221 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12222echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012223else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012224 echo "$as_me:$LINENO: result: don't know" >&5
12225echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012226fi
12227
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012228echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12229echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012230rm -f conftest_grp
12231if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012232 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12233echo "$as_me: error: failed to compile test program" >&2;}
12234 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012235else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012236 cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012242
12243#include <sys/types.h>
12244#include <sys/stat.h>
12245#include <stdio.h>
12246main()
12247{
12248 struct stat sb;
12249 char *x,*ttyname();
12250 int om, m;
12251 FILE *fp;
12252
12253 if (!(x = ttyname(0))) exit(1);
12254 if (stat(x, &sb)) exit(1);
12255 om = sb.st_mode;
12256 if (om & 002) exit(0);
12257 m = system("mesg y");
12258 if (m == -1 || m == 127) exit(1);
12259 if (stat(x, &sb)) exit(1);
12260 m = sb.st_mode;
12261 if (chmod(x, om)) exit(1);
12262 if (m & 002) exit(0);
12263 if (sb.st_gid == getgid()) exit(1);
12264 if (!(fp=fopen("conftest_grp", "w")))
12265 exit(1);
12266 fprintf(fp, "%d\n", sb.st_gid);
12267 fclose(fp);
12268 exit(0);
12269}
12270
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012271_ACEOF
12272rm -f conftest$ac_exeext
12273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12283
Bram Moolenaar071d4272004-06-13 20:20:40 +000012284 if test -f conftest_grp; then
12285 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012286 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12287echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12288 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012289#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012290_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012291
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012292 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012293#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012294_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012295
12296 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012297 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12298echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012299 fi
12300
12301else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012302 echo "$as_me: program exited with status $ac_status" >&5
12303echo "$as_me: failed program was:" >&5
12304sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012305
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012306( exit $ac_status )
12307echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12308echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12309fi
12310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12311fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012312rm -f conftest_grp
12313
12314
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012315echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12316echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12317if test "${ac_cv_type_signal+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012319else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012320 cat >conftest.$ac_ext <<_ACEOF
12321/* confdefs.h. */
12322_ACEOF
12323cat confdefs.h >>conftest.$ac_ext
12324cat >>conftest.$ac_ext <<_ACEOF
12325/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012326#include <sys/types.h>
12327#include <signal.h>
12328#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012329# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000012330#endif
12331#ifdef __cplusplus
12332extern "C" void (*signal (int, void (*)(int)))(int);
12333#else
12334void (*signal ()) ();
12335#endif
12336
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012337int
12338main ()
12339{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012340int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012341 ;
12342 return 0;
12343}
12344_ACEOF
12345rm -f conftest.$ac_objext
12346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12347 (eval $ac_compile) 2>conftest.er1
12348 ac_status=$?
12349 grep -v '^ *+' conftest.er1 >conftest.err
12350 rm -f conftest.er1
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -z "$ac_c_werror_flag"
12355 || test ! -s conftest.err'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; } &&
12361 { ac_try='test -s conftest.$ac_objext'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012367 ac_cv_type_signal=void
12368else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012369 echo "$as_me: failed program was:" >&5
12370sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012371
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012372ac_cv_type_signal=int
12373fi
12374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12375fi
12376echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12377echo "${ECHO_T}$ac_cv_type_signal" >&6
12378
12379cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012380#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012381_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012382
12383
12384
12385if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012386 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012387#define SIGRETURN return
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012388_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012389
12390else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012391 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012392#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012393_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012394
12395fi
12396
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012397echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12398echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12399cat >conftest.$ac_ext <<_ACEOF
12400/* confdefs.h. */
12401_ACEOF
12402cat confdefs.h >>conftest.$ac_ext
12403cat >>conftest.$ac_ext <<_ACEOF
12404/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012405
12406#include <signal.h>
12407test_sig()
12408{
12409 struct sigcontext *scont;
12410 scont = (struct sigcontext *)0;
12411 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012412}
12413int
12414main ()
12415{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012416
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012417 ;
12418 return 0;
12419}
12420_ACEOF
12421rm -f conftest.$ac_objext
12422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423 (eval $ac_compile) 2>conftest.er1
12424 ac_status=$?
12425 grep -v '^ *+' conftest.er1 >conftest.err
12426 rm -f conftest.er1
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -z "$ac_c_werror_flag"
12431 || test ! -s conftest.err'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; } &&
12437 { ac_try='test -s conftest.$ac_objext'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; }; then
12443 echo "$as_me:$LINENO: result: yes" >&5
12444echo "${ECHO_T}yes" >&6
12445 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012446#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012447_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012448
12449else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012450 echo "$as_me: failed program was:" >&5
12451sed 's/^/| /' conftest.$ac_ext >&5
12452
12453echo "$as_me:$LINENO: result: no" >&5
12454echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012455fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012457
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012458echo "$as_me:$LINENO: checking getcwd implementation" >&5
12459echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012460if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012461 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12462echo "$as_me: error: failed to compile test program" >&2;}
12463 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012464else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012465 cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012471
12472char *dagger[] = { "IFS=pwd", 0 };
12473main()
12474{
12475 char buffer[500];
12476 extern char **environ;
12477 environ = dagger;
12478 return getcwd(buffer, 500) ? 0 : 1;
12479}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012480_ACEOF
12481rm -f conftest$ac_exeext
12482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12483 (eval $ac_link) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
12492 echo "$as_me:$LINENO: result: it is usable" >&5
12493echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012494else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012495 echo "$as_me: program exited with status $ac_status" >&5
12496echo "$as_me: failed program was:" >&5
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
12499( exit $ac_status )
12500echo "$as_me:$LINENO: result: it stinks" >&5
12501echo "${ECHO_T}it stinks" >&6
12502 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012503#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012504_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012505
12506fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012507rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012508fi
12509
12510
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
Bram Moolenaar071d4272004-06-13 20:20:40 +000012556for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12557 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12558 memset nanosleep opendir putenv qsort readlink select setenv \
12559 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000012560 sigvec strcasecmp strerror strftime stricmp strncasecmp \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000012561 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12562 usleep utime utimes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012563do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12565echo "$as_me:$LINENO: checking for $ac_func" >&5
12566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12567if eval "test \"\${$as_ac_var+set}\" = set"; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012569else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012570 cat >conftest.$ac_ext <<_ACEOF
12571/* confdefs.h. */
12572_ACEOF
12573cat confdefs.h >>conftest.$ac_ext
12574cat >>conftest.$ac_ext <<_ACEOF
12575/* end confdefs.h. */
12576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12578#define $ac_func innocuous_$ac_func
12579
Bram Moolenaar071d4272004-06-13 20:20:40 +000012580/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012581 which can conflict with char $ac_func (); below.
12582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12583 <limits.h> exists even on freestanding compilers. */
12584
12585#ifdef __STDC__
12586# include <limits.h>
12587#else
12588# include <assert.h>
12589#endif
12590
12591#undef $ac_func
12592
Bram Moolenaar071d4272004-06-13 20:20:40 +000012593/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012594#ifdef __cplusplus
12595extern "C"
12596{
12597#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012598/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012599 builtin and then its argument prototype would still apply. */
12600char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000012601/* The GNU C library defines this for functions which it implements
12602 to always fail with ENOSYS. Some functions are actually named
12603 something starting with __ and the normal name is an alias. */
12604#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12605choke me
12606#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012607char (*f) () = $ac_func;
12608#endif
12609#ifdef __cplusplus
12610}
Bram Moolenaar071d4272004-06-13 20:20:40 +000012611#endif
12612
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012613int
12614main ()
12615{
12616return f != $ac_func;
12617 ;
12618 return 0;
12619}
12620_ACEOF
12621rm -f conftest.$ac_objext conftest$ac_exeext
12622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623 (eval $ac_link) 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012644else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012645 echo "$as_me: failed program was:" >&5
12646sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012647
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012648eval "$as_ac_var=no"
12649fi
12650rm -f conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652fi
12653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12654echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12655if test `eval echo '${'$as_ac_var'}'` = yes; then
12656 cat >>confdefs.h <<_ACEOF
12657#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12658_ACEOF
12659
Bram Moolenaar071d4272004-06-13 20:20:40 +000012660fi
12661done
12662
12663
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012664echo "$as_me:$LINENO: checking for st_blksize" >&5
12665echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12666cat >conftest.$ac_ext <<_ACEOF
12667/* confdefs.h. */
12668_ACEOF
12669cat confdefs.h >>conftest.$ac_ext
12670cat >>conftest.$ac_ext <<_ACEOF
12671/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012672#include <sys/types.h>
12673#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012674int
12675main ()
12676{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012677 struct stat st;
12678 int n;
12679
12680 stat("/", &st);
12681 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012682 ;
12683 return 0;
12684}
12685_ACEOF
12686rm -f conftest.$ac_objext
12687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12688 (eval $ac_compile) 2>conftest.er1
12689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } &&
12695 { ac_try='test -z "$ac_c_werror_flag"
12696 || test ! -s conftest.err'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest.$ac_objext'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12708 echo "$as_me:$LINENO: result: yes" >&5
12709echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012710#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012711_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012712
12713else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012714 echo "$as_me: failed program was:" >&5
12715sed 's/^/| /' conftest.$ac_ext >&5
12716
12717echo "$as_me:$LINENO: result: no" >&5
12718echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012719fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012721
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012722echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12723echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012724if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012725 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12726echo "$as_me: error: failed to compile test program" >&2;}
12727 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012728else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012729 cat >conftest.$ac_ext <<_ACEOF
12730/* confdefs.h. */
12731_ACEOF
12732cat confdefs.h >>conftest.$ac_ext
12733cat >>conftest.$ac_ext <<_ACEOF
12734/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012735#include <sys/types.h>
12736#include <sys/stat.h>
12737main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012738_ACEOF
12739rm -f conftest$ac_exeext
12740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12741 (eval $ac_link) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 echo "$as_me:$LINENO: result: yes" >&5
12751echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012752#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012753_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012754
12755else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012756 echo "$as_me: program exited with status $ac_status" >&5
12757echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760( exit $ac_status )
12761echo "$as_me:$LINENO: result: no" >&5
12762echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012763fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012764rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012765fi
12766
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012767echo "$as_me:$LINENO: checking for iconv_open()" >&5
12768echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012769save_LIBS="$LIBS"
12770LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012771cat >conftest.$ac_ext <<_ACEOF
12772/* confdefs.h. */
12773_ACEOF
12774cat confdefs.h >>conftest.$ac_ext
12775cat >>conftest.$ac_ext <<_ACEOF
12776/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012777
12778#ifdef HAVE_ICONV_H
12779# include <iconv.h>
12780#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012781
12782int
12783main ()
12784{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012785iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012786 ;
12787 return 0;
12788}
12789_ACEOF
12790rm -f conftest.$ac_objext conftest$ac_exeext
12791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792 (eval $ac_link) 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try='test -z "$ac_c_werror_flag"
12800 || test ! -s conftest.err'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; } &&
12806 { ac_try='test -s conftest$ac_exeext'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12813echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012814#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012815_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012816
12817else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012818 echo "$as_me: failed program was:" >&5
12819sed 's/^/| /' conftest.$ac_ext >&5
12820
12821LIBS="$save_LIBS"
12822 cat >conftest.$ac_ext <<_ACEOF
12823/* confdefs.h. */
12824_ACEOF
12825cat confdefs.h >>conftest.$ac_ext
12826cat >>conftest.$ac_ext <<_ACEOF
12827/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012828
12829#ifdef HAVE_ICONV_H
12830# include <iconv.h>
12831#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012832
12833int
12834main ()
12835{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012836iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012837 ;
12838 return 0;
12839}
12840_ACEOF
12841rm -f conftest.$ac_objext conftest$ac_exeext
12842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12843 (eval $ac_link) 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_c_werror_flag"
12851 || test ! -s conftest.err'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest$ac_exeext'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; }; then
12863 echo "$as_me:$LINENO: result: yes" >&5
12864echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012865#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012866_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012867
12868else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012869 echo "$as_me: failed program was:" >&5
12870sed 's/^/| /' conftest.$ac_ext >&5
12871
12872echo "$as_me:$LINENO: result: no" >&5
12873echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012874fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012875rm -f conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012877fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012878rm -f conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012880
12881
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012882echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12883echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12884cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012890
12891#ifdef HAVE_LANGINFO_H
12892# include <langinfo.h>
12893#endif
12894
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012895int
12896main ()
12897{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012898char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012899 ;
12900 return 0;
12901}
12902_ACEOF
12903rm -f conftest.$ac_objext conftest$ac_exeext
12904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12905 (eval $ac_link) 2>conftest.er1
12906 ac_status=$?
12907 grep -v '^ *+' conftest.er1 >conftest.err
12908 rm -f conftest.er1
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -z "$ac_c_werror_flag"
12913 || test ! -s conftest.err'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest$ac_exeext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 echo "$as_me:$LINENO: result: yes" >&5
12926echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012927#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012928_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012929
12930else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012931 echo "$as_me: failed program was:" >&5
12932sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012933
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012934echo "$as_me:$LINENO: result: no" >&5
12935echo "${ECHO_T}no" >&6
12936fi
12937rm -f conftest.err conftest.$ac_objext \
12938 conftest$ac_exeext conftest.$ac_ext
12939
12940echo "$as_me:$LINENO: checking --disable-acl argument" >&5
12941echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012942# Check whether --enable-acl or --disable-acl was given.
12943if test "${enable_acl+set}" = set; then
12944 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012945
Bram Moolenaar071d4272004-06-13 20:20:40 +000012946else
12947 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012948fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000012949if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012950echo "$as_me:$LINENO: result: no" >&5
12951echo "${ECHO_T}no" >&6
12952echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
12953echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
12954if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012956else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012957 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000012958LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012959cat >conftest.$ac_ext <<_ACEOF
12960/* confdefs.h. */
12961_ACEOF
12962cat confdefs.h >>conftest.$ac_ext
12963cat >>conftest.$ac_ext <<_ACEOF
12964/* end confdefs.h. */
12965
Bram Moolenaar071d4272004-06-13 20:20:40 +000012966/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012967#ifdef __cplusplus
12968extern "C"
12969#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012970/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012971 builtin and then its argument prototype would still apply. */
12972char acl_get_file ();
12973int
12974main ()
12975{
12976acl_get_file ();
12977 ;
12978 return 0;
12979}
12980_ACEOF
12981rm -f conftest.$ac_objext conftest$ac_exeext
12982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12983 (eval $ac_link) 2>conftest.er1
12984 ac_status=$?
12985 grep -v '^ *+' conftest.er1 >conftest.err
12986 rm -f conftest.er1
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } &&
12990 { ac_try='test -z "$ac_c_werror_flag"
12991 || test ! -s conftest.err'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; } &&
12997 { ac_try='test -s conftest$ac_exeext'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013004else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013005 echo "$as_me: failed program was:" >&5
13006sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013007
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013008ac_cv_lib_posix1e_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013009fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013010rm -f conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012LIBS=$ac_check_lib_save_LIBS
13013fi
13014echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13015echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13016if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013017 LIBS="$LIBS -lposix1e"
13018else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013019 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13020echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13021if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013023else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013024 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013025LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013026cat >conftest.$ac_ext <<_ACEOF
13027/* confdefs.h. */
13028_ACEOF
13029cat confdefs.h >>conftest.$ac_ext
13030cat >>conftest.$ac_ext <<_ACEOF
13031/* end confdefs.h. */
13032
Bram Moolenaar071d4272004-06-13 20:20:40 +000013033/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013034#ifdef __cplusplus
13035extern "C"
13036#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013037/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013038 builtin and then its argument prototype would still apply. */
13039char acl_get_file ();
13040int
13041main ()
13042{
13043acl_get_file ();
13044 ;
13045 return 0;
13046}
13047_ACEOF
13048rm -f conftest.$ac_objext conftest$ac_exeext
13049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050 (eval $ac_link) 2>conftest.er1
13051 ac_status=$?
13052 grep -v '^ *+' conftest.er1 >conftest.err
13053 rm -f conftest.er1
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -z "$ac_c_werror_flag"
13058 || test ! -s conftest.err'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; } &&
13064 { ac_try='test -s conftest$ac_exeext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013071else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013072 echo "$as_me: failed program was:" >&5
13073sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013074
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013075ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013076fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013077rm -f conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13079LIBS=$ac_check_lib_save_LIBS
13080fi
13081echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13082echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13083if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013084 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013085 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13086echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13087if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013089else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013090 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013091LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013092cat >conftest.$ac_ext <<_ACEOF
13093/* confdefs.h. */
13094_ACEOF
13095cat confdefs.h >>conftest.$ac_ext
13096cat >>conftest.$ac_ext <<_ACEOF
13097/* end confdefs.h. */
13098
Bram Moolenaar071d4272004-06-13 20:20:40 +000013099/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013100#ifdef __cplusplus
13101extern "C"
13102#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013103/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013104 builtin and then its argument prototype would still apply. */
13105char fgetxattr ();
13106int
13107main ()
13108{
13109fgetxattr ();
13110 ;
13111 return 0;
13112}
13113_ACEOF
13114rm -f conftest.$ac_objext conftest$ac_exeext
13115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13116 (eval $ac_link) 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest$ac_exeext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013137else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013138 echo "$as_me: failed program was:" >&5
13139sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013140
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013141ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013142fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013143rm -f conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145LIBS=$ac_check_lib_save_LIBS
13146fi
13147echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13148echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13149if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013150 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013151fi
13152
Bram Moolenaar071d4272004-06-13 20:20:40 +000013153fi
13154
13155fi
13156
13157
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013158echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13159echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13160cat >conftest.$ac_ext <<_ACEOF
13161/* confdefs.h. */
13162_ACEOF
13163cat confdefs.h >>conftest.$ac_ext
13164cat >>conftest.$ac_ext <<_ACEOF
13165/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013166
13167#include <sys/types.h>
13168#ifdef HAVE_SYS_ACL_H
13169# include <sys/acl.h>
13170#endif
13171acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013172int
13173main ()
13174{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013175acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13176 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13177 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013178 ;
13179 return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext conftest$ac_exeext
13183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13184 (eval $ac_link) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_c_werror_flag"
13192 || test ! -s conftest.err'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest$ac_exeext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 echo "$as_me:$LINENO: result: yes" >&5
13205echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013206#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013207_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013208
13209else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013210 echo "$as_me: failed program was:" >&5
13211sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013212
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013213echo "$as_me:$LINENO: result: no" >&5
13214echo "${ECHO_T}no" >&6
13215fi
13216rm -f conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218
13219echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13220echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13221cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h. */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013227
13228#ifdef HAVE_SYS_ACL_H
13229# include <sys/acl.h>
13230#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013231int
13232main ()
13233{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013234acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013235
13236 ;
13237 return 0;
13238}
13239_ACEOF
13240rm -f conftest.$ac_objext conftest$ac_exeext
13241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242 (eval $ac_link) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag"
13250 || test ! -s conftest.err'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest$ac_exeext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 echo "$as_me:$LINENO: result: yes" >&5
13263echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013264#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013265_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013266
13267else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013268 echo "$as_me: failed program was:" >&5
13269sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013270
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013271echo "$as_me:$LINENO: result: no" >&5
13272echo "${ECHO_T}no" >&6
13273fi
13274rm -f conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276
13277echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13278echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13279cat >conftest.$ac_ext <<_ACEOF
13280/* confdefs.h. */
13281_ACEOF
13282cat confdefs.h >>conftest.$ac_ext
13283cat >>conftest.$ac_ext <<_ACEOF
13284/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013285
13286#ifdef HAVE_SYS_ACL_H
13287# include <sys/acl.h>
13288#endif
13289#ifdef HAVE_SYS_ACCESS_H
13290# include <sys/access.h>
13291#endif
13292#define _ALL_SOURCE
13293
13294#include <sys/stat.h>
13295
13296int aclsize;
13297struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013298int
13299main ()
13300{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013301aclsize = sizeof(struct acl);
13302 aclent = (void *)malloc(aclsize);
13303 statacl("foo", STX_NORMAL, aclent, aclsize);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013304
13305 ;
13306 return 0;
13307}
13308_ACEOF
13309rm -f conftest.$ac_objext conftest$ac_exeext
13310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13311 (eval $ac_link) 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try='test -z "$ac_c_werror_flag"
13319 || test ! -s conftest.err'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest$ac_exeext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 echo "$as_me:$LINENO: result: yes" >&5
13332echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013333#define HAVE_AIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013334_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013335
13336else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013337 echo "$as_me: failed program was:" >&5
13338sed 's/^/| /' conftest.$ac_ext >&5
13339
13340echo "$as_me:$LINENO: result: no" >&5
13341echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013342fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013343rm -f conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013345else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013346 echo "$as_me:$LINENO: result: yes" >&5
13347echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013348fi
13349
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013350echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13351echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013352# Check whether --enable-gpm or --disable-gpm was given.
13353if test "${enable_gpm+set}" = set; then
13354 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013355
Bram Moolenaar071d4272004-06-13 20:20:40 +000013356else
13357 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013358fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013359
13360if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013361 echo "$as_me:$LINENO: result: no" >&5
13362echo "${ECHO_T}no" >&6
13363 echo "$as_me:$LINENO: checking for gpm" >&5
13364echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13365if test "${vi_cv_have_gpm+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013367else
13368 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013369 cat >conftest.$ac_ext <<_ACEOF
13370/* confdefs.h. */
13371_ACEOF
13372cat confdefs.h >>conftest.$ac_ext
13373cat >>conftest.$ac_ext <<_ACEOF
13374/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013375#include <gpm.h>
13376 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013377int
13378main ()
13379{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013380Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013381 ;
13382 return 0;
13383}
13384_ACEOF
13385rm -f conftest.$ac_objext conftest$ac_exeext
13386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13387 (eval $ac_link) 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag"
13395 || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest$ac_exeext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013407 vi_cv_have_gpm=yes
13408else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013409 echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013411
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013412vi_cv_have_gpm=no
13413fi
13414rm -f conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13416 LIBS="$olibs"
13417
13418fi
13419echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13420echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013421 if test $vi_cv_have_gpm = yes; then
13422 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013423 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013424#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013425_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013426
13427 fi
13428else
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 for rename" >&5
13434echo $ECHO_N "checking for rename... $ECHO_C" >&6
13435cat >conftest.$ac_ext <<_ACEOF
13436/* confdefs.h. */
13437_ACEOF
13438cat confdefs.h >>conftest.$ac_ext
13439cat >>conftest.$ac_ext <<_ACEOF
13440/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013441#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013442int
13443main ()
13444{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013445rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013446 ;
13447 return 0;
13448}
13449_ACEOF
13450rm -f conftest.$ac_objext conftest$ac_exeext
13451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13452 (eval $ac_link) 2>conftest.er1
13453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
13459 { ac_try='test -z "$ac_c_werror_flag"
13460 || test ! -s conftest.err'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; } &&
13466 { ac_try='test -s conftest$ac_exeext'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 echo "$as_me:$LINENO: result: yes" >&5
13473echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013474#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013475_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013476
13477else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013478 echo "$as_me: failed program was:" >&5
13479sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013480
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013481echo "$as_me:$LINENO: result: no" >&5
13482echo "${ECHO_T}no" >&6
13483fi
13484rm -f conftest.err conftest.$ac_objext \
13485 conftest$ac_exeext conftest.$ac_ext
13486
13487echo "$as_me:$LINENO: checking for sysctl" >&5
13488echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13489cat >conftest.$ac_ext <<_ACEOF
13490/* confdefs.h. */
13491_ACEOF
13492cat confdefs.h >>conftest.$ac_ext
13493cat >>conftest.$ac_ext <<_ACEOF
13494/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013495#include <sys/types.h>
13496#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013497int
13498main ()
13499{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013500 int mib[2], r;
13501 size_t len;
13502
13503 mib[0] = CTL_HW;
13504 mib[1] = HW_USERMEM;
13505 len = sizeof(r);
13506 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013507
13508 ;
13509 return 0;
13510}
13511_ACEOF
13512rm -f conftest.$ac_objext
13513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13514 (eval $ac_compile) 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -z "$ac_c_werror_flag"
13522 || test ! -s conftest.err'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest.$ac_objext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 echo "$as_me:$LINENO: result: yes" >&5
13535echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013536#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013537_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013538
13539else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013540 echo "$as_me: failed program was:" >&5
13541sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013542
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013543echo "$as_me:$LINENO: result: not usable" >&5
13544echo "${ECHO_T}not usable" >&6
13545fi
13546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13547
13548echo "$as_me:$LINENO: checking for sysinfo" >&5
13549echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13550cat >conftest.$ac_ext <<_ACEOF
13551/* confdefs.h. */
13552_ACEOF
13553cat confdefs.h >>conftest.$ac_ext
13554cat >>conftest.$ac_ext <<_ACEOF
13555/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013556#include <sys/types.h>
13557#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013558int
13559main ()
13560{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013561 struct sysinfo sinfo;
13562 int t;
13563
13564 (void)sysinfo(&sinfo);
13565 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013566
13567 ;
13568 return 0;
13569}
13570_ACEOF
13571rm -f conftest.$ac_objext
13572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13573 (eval $ac_compile) 2>conftest.er1
13574 ac_status=$?
13575 grep -v '^ *+' conftest.er1 >conftest.err
13576 rm -f conftest.er1
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_c_werror_flag"
13581 || test ! -s conftest.err'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; } &&
13587 { ac_try='test -s conftest.$ac_objext'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 echo "$as_me:$LINENO: result: yes" >&5
13594echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013595#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013596_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013597
13598else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013599 echo "$as_me: failed program was:" >&5
13600sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013601
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013602echo "$as_me:$LINENO: result: not usable" >&5
13603echo "${ECHO_T}not usable" >&6
13604fi
13605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13606
13607echo "$as_me:$LINENO: checking for sysconf" >&5
13608echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13609cat >conftest.$ac_ext <<_ACEOF
13610/* confdefs.h. */
13611_ACEOF
13612cat confdefs.h >>conftest.$ac_ext
13613cat >>conftest.$ac_ext <<_ACEOF
13614/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013615#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013616int
13617main ()
13618{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013619 (void)sysconf(_SC_PAGESIZE);
13620 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013621
13622 ;
13623 return 0;
13624}
13625_ACEOF
13626rm -f conftest.$ac_objext
13627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13628 (eval $ac_compile) 2>conftest.er1
13629 ac_status=$?
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -z "$ac_c_werror_flag"
13636 || test ! -s conftest.err'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; } &&
13642 { ac_try='test -s conftest.$ac_objext'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 echo "$as_me:$LINENO: result: yes" >&5
13649echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013650#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013651_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013652
13653else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013654 echo "$as_me: failed program was:" >&5
13655sed 's/^/| /' conftest.$ac_ext >&5
13656
13657echo "$as_me:$LINENO: result: not usable" >&5
13658echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013659fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013661
13662
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013663echo "$as_me:$LINENO: checking size of int" >&5
13664echo $ECHO_N "checking size of int... $ECHO_C" >&6
13665if test "${ac_cv_sizeof_int+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013667else
13668 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013669 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13670echo "$as_me: error: failed to compile test program" >&2;}
13671 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013672else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013673 cat >conftest.$ac_ext <<_ACEOF
13674/* confdefs.h. */
13675_ACEOF
13676cat confdefs.h >>conftest.$ac_ext
13677cat >>conftest.$ac_ext <<_ACEOF
13678/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013679#include <stdio.h>
13680 main()
13681 {
13682 FILE *f=fopen("conftestval", "w");
13683 if (!f) exit(1);
13684 fprintf(f, "%d\n", (int)sizeof(int));
13685 exit(0);
13686 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013687_ACEOF
13688rm -f conftest$ac_exeext
13689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690 (eval $ac_link) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013699 ac_cv_sizeof_int=`cat conftestval`
13700else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013701 echo "$as_me: program exited with status $ac_status" >&5
13702echo "$as_me: failed program was:" >&5
13703sed 's/^/| /' conftest.$ac_ext >&5
13704
13705( exit $ac_status )
13706ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000013707fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013708rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13709fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013710fi
13711
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013712echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13713echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13714cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013715#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013716_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013717
13718
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013719echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13720echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013721bcopy_test_prog='
13722main() {
13723 char buf[10];
13724 strcpy(buf, "abcdefghi");
13725 mch_memmove(buf, buf + 2, 3);
13726 if (strncmp(buf, "ababcf", 6))
13727 exit(1);
13728 strcpy(buf, "abcdefghi");
13729 mch_memmove(buf + 2, buf, 3);
13730 if (strncmp(buf, "cdedef", 6))
13731 exit(1);
13732 exit(0); /* libc version works properly. */
13733}'
13734
13735
13736if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013737 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13738echo "$as_me: error: failed to compile test program" >&2;}
13739 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013740else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013741 cat >conftest.$ac_ext <<_ACEOF
13742/* confdefs.h. */
13743_ACEOF
13744cat confdefs.h >>conftest.$ac_ext
13745cat >>conftest.$ac_ext <<_ACEOF
13746/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013747#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013748_ACEOF
13749rm -f conftest$ac_exeext
13750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13751 (eval $ac_link) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013761#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013762_ACEOF
13763 echo "$as_me:$LINENO: result: memmove does" >&5
13764echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013765else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013766 echo "$as_me: program exited with status $ac_status" >&5
13767echo "$as_me: failed program was:" >&5
13768sed 's/^/| /' conftest.$ac_ext >&5
13769
13770( exit $ac_status )
13771if test "$cross_compiling" = yes; then
13772 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13773echo "$as_me: error: failed to compile test program" >&2;}
13774 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013775else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013776 cat >conftest.$ac_ext <<_ACEOF
13777/* confdefs.h. */
13778_ACEOF
13779cat confdefs.h >>conftest.$ac_ext
13780cat >>conftest.$ac_ext <<_ACEOF
13781/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013782#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013783_ACEOF
13784rm -f conftest$ac_exeext
13785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13786 (eval $ac_link) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; }; then
13795 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013796#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013797_ACEOF
13798 echo "$as_me:$LINENO: result: bcopy does" >&5
13799echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013800else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013801 echo "$as_me: program exited with status $ac_status" >&5
13802echo "$as_me: failed program was:" >&5
13803sed 's/^/| /' conftest.$ac_ext >&5
13804
13805( exit $ac_status )
13806if test "$cross_compiling" = yes; then
13807 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13808echo "$as_me: error: failed to compile test program" >&2;}
13809 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013810else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013811 cat >conftest.$ac_ext <<_ACEOF
13812/* confdefs.h. */
13813_ACEOF
13814cat confdefs.h >>conftest.$ac_ext
13815cat >>conftest.$ac_ext <<_ACEOF
13816/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013817#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013818_ACEOF
13819rm -f conftest$ac_exeext
13820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13821 (eval $ac_link) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; }; then
13830 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013831#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013832_ACEOF
13833 echo "$as_me:$LINENO: result: memcpy does" >&5
13834echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013835else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013836 echo "$as_me: program exited with status $ac_status" >&5
13837echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013839
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013840( exit $ac_status )
13841echo "$as_me:$LINENO: result: no" >&5
13842echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013843fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013844rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013845fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013846fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013847rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013848fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013849fi
13850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13851fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013852
13853
13854if test "$enable_multibyte" = "yes"; then
13855 cflags_save=$CFLAGS
13856 ldflags_save=$LDFLAGS
13857 if test -n "$x_includes" ; then
13858 CFLAGS="$CFLAGS -I$x_includes"
13859 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013860 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
13861echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13863/* confdefs.h. */
13864_ACEOF
13865cat confdefs.h >>conftest.$ac_ext
13866cat >>conftest.$ac_ext <<_ACEOF
13867/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013868#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013869int
13870main ()
13871{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013872
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013873 ;
13874 return 0;
13875}
13876_ACEOF
13877rm -f conftest.$ac_objext
13878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13879 (eval $ac_compile) 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag"
13887 || test ! -s conftest.err'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest.$ac_objext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 cat >conftest.$ac_ext <<_ACEOF
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
13904/* end confdefs.h. */
13905
Bram Moolenaar071d4272004-06-13 20:20:40 +000013906/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013907#ifdef __cplusplus
13908extern "C"
13909#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013910/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013911 builtin and then its argument prototype would still apply. */
13912char _Xsetlocale ();
13913int
13914main ()
13915{
13916_Xsetlocale ();
13917 ;
13918 return 0;
13919}
13920_ACEOF
13921rm -f conftest.$ac_objext conftest$ac_exeext
13922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13923 (eval $ac_link) 2>conftest.er1
13924 ac_status=$?
13925 grep -v '^ *+' conftest.er1 >conftest.err
13926 rm -f conftest.er1
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } &&
13930 { ac_try='test -z "$ac_c_werror_flag"
13931 || test ! -s conftest.err'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 echo "$as_me:$LINENO: result: yes" >&5
13944echo "${ECHO_T}yes" >&6
13945 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013946#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013947_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013948
13949else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013950 echo "$as_me: failed program was:" >&5
13951sed 's/^/| /' conftest.$ac_ext >&5
13952
13953echo "$as_me:$LINENO: result: no" >&5
13954echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013955fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013956rm -f conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013958else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013959 echo "$as_me: failed program was:" >&5
13960sed 's/^/| /' conftest.$ac_ext >&5
13961
13962echo "$as_me:$LINENO: result: no" >&5
13963echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013964fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013966 fi
13967 CFLAGS=$cflags_save
13968 LDFLAGS=$ldflags_save
13969fi
13970
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013971echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
13972echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
13973if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013975else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013976 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013977LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013978cat >conftest.$ac_ext <<_ACEOF
13979/* confdefs.h. */
13980_ACEOF
13981cat confdefs.h >>conftest.$ac_ext
13982cat >>conftest.$ac_ext <<_ACEOF
13983/* end confdefs.h. */
13984
Bram Moolenaar071d4272004-06-13 20:20:40 +000013985/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013986#ifdef __cplusplus
13987extern "C"
13988#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013989/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013990 builtin and then its argument prototype would still apply. */
13991char _xpg4_setrunelocale ();
13992int
13993main ()
13994{
13995_xpg4_setrunelocale ();
13996 ;
13997 return 0;
13998}
13999_ACEOF
14000rm -f conftest.$ac_objext conftest$ac_exeext
14001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14002 (eval $ac_link) 2>conftest.er1
14003 ac_status=$?
14004 grep -v '^ *+' conftest.er1 >conftest.err
14005 rm -f conftest.er1
14006 cat conftest.err >&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } &&
14009 { ac_try='test -z "$ac_c_werror_flag"
14010 || test ! -s conftest.err'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; } &&
14016 { ac_try='test -s conftest$ac_exeext'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; }; then
14022 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014023else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014024 echo "$as_me: failed program was:" >&5
14025sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014026
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014027ac_cv_lib_xpg4__xpg4_setrunelocale=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014028fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014029rm -f conftest.err conftest.$ac_objext \
14030 conftest$ac_exeext conftest.$ac_ext
14031LIBS=$ac_check_lib_save_LIBS
14032fi
14033echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14034echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14035if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014036 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014037fi
14038
14039
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014040echo "$as_me:$LINENO: checking how to create tags" >&5
14041echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014042test -f tags && mv tags tags.save
14043if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
Bram Moolenaar78984f52005-08-01 07:19:10 +000014044 TAGPRG="ctags -I INIT+"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014045else
14046 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14047 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14048 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14049 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14050 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14051 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14052 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14053fi
14054test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014055echo "$as_me:$LINENO: result: $TAGPRG" >&5
14056echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014057
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014058echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14059echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014060MANDEF="man"
14061(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014062echo "$as_me:$LINENO: result: $MANDEF" >&5
14063echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014064if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014065 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014066#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014067_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014068
14069fi
14070
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014071echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14072echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014073# Check whether --enable-nls or --disable-nls was given.
14074if test "${enable_nls+set}" = set; then
14075 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014076
Bram Moolenaar071d4272004-06-13 20:20:40 +000014077else
14078 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014079fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014080
14081if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014082 echo "$as_me:$LINENO: result: no" >&5
14083echo "${ECHO_T}no" >&6
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000014084
14085 INSTALL_LANGS=install-languages
14086
14087 INSTALL_TOOL_LANGS=install-tool-languages
14088
14089
Bram Moolenaar071d4272004-06-13 20:20:40 +000014090 # Extract the first word of "msgfmt", so it can be a program name with args.
14091set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014092echo "$as_me:$LINENO: checking for $ac_word" >&5
14093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14094if test "${ac_cv_prog_MSGFMT+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014096else
14097 if test -n "$MSGFMT"; then
14098 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14099else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101for as_dir in $PATH
14102do
14103 IFS=$as_save_IFS
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14107 ac_cv_prog_MSGFMT="msgfmt"
14108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 break 2
14110 fi
14111done
14112done
14113
Bram Moolenaar071d4272004-06-13 20:20:40 +000014114fi
14115fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014116MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000014117if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014118 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14119echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014120else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014121 echo "$as_me:$LINENO: result: no" >&5
14122echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014123fi
14124
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014125 echo "$as_me:$LINENO: checking for NLS" >&5
14126echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014127 if test -f po/Makefile; then
14128 have_gettext="no"
14129 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014130 cat >conftest.$ac_ext <<_ACEOF
14131/* confdefs.h. */
14132_ACEOF
14133cat confdefs.h >>conftest.$ac_ext
14134cat >>conftest.$ac_ext <<_ACEOF
14135/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014136#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014137int
14138main ()
14139{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014140gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014141 ;
14142 return 0;
14143}
14144_ACEOF
14145rm -f conftest.$ac_objext conftest$ac_exeext
14146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14147 (eval $ac_link) 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } &&
14154 { ac_try='test -z "$ac_c_werror_flag"
14155 || test ! -s conftest.err'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try='test -s conftest$ac_exeext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14167 echo "$as_me:$LINENO: result: gettext() works" >&5
14168echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014169else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014170 echo "$as_me: failed program was:" >&5
14171sed 's/^/| /' conftest.$ac_ext >&5
14172
14173olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014174 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014175 cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014181#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014182int
14183main ()
14184{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014185gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014186 ;
14187 return 0;
14188}
14189_ACEOF
14190rm -f conftest.$ac_objext conftest$ac_exeext
14191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14192 (eval $ac_link) 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -z "$ac_c_werror_flag"
14200 || test ! -s conftest.err'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest$ac_exeext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14213echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014214else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014215 echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14219echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014220 LIBS=$olibs
14221fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014222rm -f conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014224fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014225rm -f conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014227 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014228 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14229echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014230 fi
14231 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014232 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014233#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014234_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014235
14236 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014237
14238
14239for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000014240do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14242echo "$as_me:$LINENO: checking for $ac_func" >&5
14243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14244if eval "test \"\${$as_ac_var+set}\" = set"; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014246else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014247 cat >conftest.$ac_ext <<_ACEOF
14248/* confdefs.h. */
14249_ACEOF
14250cat confdefs.h >>conftest.$ac_ext
14251cat >>conftest.$ac_ext <<_ACEOF
14252/* end confdefs.h. */
14253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14255#define $ac_func innocuous_$ac_func
14256
Bram Moolenaar071d4272004-06-13 20:20:40 +000014257/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014258 which can conflict with char $ac_func (); below.
14259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14260 <limits.h> exists even on freestanding compilers. */
14261
14262#ifdef __STDC__
14263# include <limits.h>
14264#else
14265# include <assert.h>
14266#endif
14267
14268#undef $ac_func
14269
Bram Moolenaar071d4272004-06-13 20:20:40 +000014270/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014271#ifdef __cplusplus
14272extern "C"
14273{
14274#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014275/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014276 builtin and then its argument prototype would still apply. */
14277char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000014278/* The GNU C library defines this for functions which it implements
14279 to always fail with ENOSYS. Some functions are actually named
14280 something starting with __ and the normal name is an alias. */
14281#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14282choke me
14283#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014284char (*f) () = $ac_func;
14285#endif
14286#ifdef __cplusplus
14287}
Bram Moolenaar071d4272004-06-13 20:20:40 +000014288#endif
14289
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014290int
14291main ()
14292{
14293return f != $ac_func;
14294 ;
14295 return 0;
14296}
14297_ACEOF
14298rm -f conftest.$ac_objext conftest$ac_exeext
14299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14300 (eval $ac_link) 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag"
14308 || test ! -s conftest.err'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; } &&
14314 { ac_try='test -s conftest$ac_exeext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014321else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014322 echo "$as_me: failed program was:" >&5
14323sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014324
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014325eval "$as_ac_var=no"
14326fi
14327rm -f conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
14329fi
14330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14332if test `eval echo '${'$as_ac_var'}'` = yes; then
14333 cat >>confdefs.h <<_ACEOF
14334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14335_ACEOF
14336
Bram Moolenaar071d4272004-06-13 20:20:40 +000014337fi
14338done
14339
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014340 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14341echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14342 cat >conftest.$ac_ext <<_ACEOF
14343/* confdefs.h. */
14344_ACEOF
14345cat confdefs.h >>conftest.$ac_ext
14346cat >>conftest.$ac_ext <<_ACEOF
14347/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014348#include <libintl.h>
14349 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014350int
14351main ()
14352{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014353++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014354 ;
14355 return 0;
14356}
14357_ACEOF
14358rm -f conftest.$ac_objext conftest$ac_exeext
14359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14360 (eval $ac_link) 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 { ac_try='test -z "$ac_c_werror_flag"
14368 || test ! -s conftest.err'
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14371 ac_status=$?
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; } &&
14374 { ac_try='test -s conftest$ac_exeext'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 echo "$as_me:$LINENO: result: yes" >&5
14381echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014382#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014383_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014384
14385else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014386 echo "$as_me: failed program was:" >&5
14387sed 's/^/| /' conftest.$ac_ext >&5
14388
14389echo "$as_me:$LINENO: result: no" >&5
14390echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014391fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014392rm -f conftest.err conftest.$ac_objext \
14393 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014394 fi
14395 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014396 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14397echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014398 fi
14399else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014400 echo "$as_me:$LINENO: result: yes" >&5
14401echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014402fi
14403
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014404if test "${ac_cv_header_dlfcn_h+set}" = set; then
14405 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14406echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14407if test "${ac_cv_header_dlfcn_h+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14409fi
14410echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14411echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014412else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014413 # Is the header compilable?
14414echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14415echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14416cat >conftest.$ac_ext <<_ACEOF
14417/* confdefs.h. */
14418_ACEOF
14419cat confdefs.h >>conftest.$ac_ext
14420cat >>conftest.$ac_ext <<_ACEOF
14421/* end confdefs.h. */
14422$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014423#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014424_ACEOF
14425rm -f conftest.$ac_objext
14426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest.$ac_objext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014448else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014449 echo "$as_me: failed program was:" >&5
14450sed 's/^/| /' conftest.$ac_ext >&5
14451
14452ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014453fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14456echo "${ECHO_T}$ac_header_compiler" >&6
14457
14458# Is the header present?
14459echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14460echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14461cat >conftest.$ac_ext <<_ACEOF
14462/* confdefs.h. */
14463_ACEOF
14464cat confdefs.h >>conftest.$ac_ext
14465cat >>conftest.$ac_ext <<_ACEOF
14466/* end confdefs.h. */
14467#include <dlfcn.h>
14468_ACEOF
14469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14471 ac_status=$?
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } >/dev/null; then
14477 if test -s conftest.err; then
14478 ac_cpp_err=$ac_c_preproc_warn_flag
14479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14480 else
14481 ac_cpp_err=
14482 fi
14483else
14484 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014485fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014486if test -z "$ac_cpp_err"; then
14487 ac_header_preproc=yes
14488else
14489 echo "$as_me: failed program was:" >&5
14490sed 's/^/| /' conftest.$ac_ext >&5
14491
14492 ac_header_preproc=no
14493fi
14494rm -f conftest.err conftest.$ac_ext
14495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14496echo "${ECHO_T}$ac_header_preproc" >&6
14497
14498# So? What about this header?
14499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14500 yes:no: )
14501 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14502echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14504echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14505 ac_header_preproc=yes
14506 ;;
14507 no:yes:* )
14508 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14509echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14511echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14513echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14515echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14517echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14519echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14520 (
14521 cat <<\_ASBOX
14522## ------------------------------------------ ##
14523## Report this to the AC_PACKAGE_NAME lists. ##
14524## ------------------------------------------ ##
14525_ASBOX
14526 ) |
14527 sed "s/^/$as_me: WARNING: /" >&2
14528 ;;
14529esac
14530echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14531echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14532if test "${ac_cv_header_dlfcn_h+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14534else
14535 ac_cv_header_dlfcn_h=$ac_header_preproc
14536fi
14537echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14538echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14539
14540fi
14541if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014542 DLL=dlfcn.h
14543else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014544 if test "${ac_cv_header_dl_h+set}" = set; then
14545 echo "$as_me:$LINENO: checking for dl.h" >&5
14546echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14547if test "${ac_cv_header_dl_h+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14549fi
14550echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14551echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014552else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014553 # Is the header compilable?
14554echo "$as_me:$LINENO: checking dl.h usability" >&5
14555echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14556cat >conftest.$ac_ext <<_ACEOF
14557/* confdefs.h. */
14558_ACEOF
14559cat confdefs.h >>conftest.$ac_ext
14560cat >>conftest.$ac_ext <<_ACEOF
14561/* end confdefs.h. */
14562$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014563#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014564_ACEOF
14565rm -f conftest.$ac_objext
14566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567 (eval $ac_compile) 2>conftest.er1
14568 ac_status=$?
14569 grep -v '^ *+' conftest.er1 >conftest.err
14570 rm -f conftest.er1
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -z "$ac_c_werror_flag"
14575 || test ! -s conftest.err'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try='test -s conftest.$ac_objext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014588else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014589 echo "$as_me: failed program was:" >&5
14590sed 's/^/| /' conftest.$ac_ext >&5
14591
14592ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014593fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14595echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14596echo "${ECHO_T}$ac_header_compiler" >&6
14597
14598# Is the header present?
14599echo "$as_me:$LINENO: checking dl.h presence" >&5
14600echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14601cat >conftest.$ac_ext <<_ACEOF
14602/* confdefs.h. */
14603_ACEOF
14604cat confdefs.h >>conftest.$ac_ext
14605cat >>conftest.$ac_ext <<_ACEOF
14606/* end confdefs.h. */
14607#include <dl.h>
14608_ACEOF
14609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } >/dev/null; then
14617 if test -s conftest.err; then
14618 ac_cpp_err=$ac_c_preproc_warn_flag
14619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14620 else
14621 ac_cpp_err=
14622 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014623else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014624 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014625fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014626if test -z "$ac_cpp_err"; then
14627 ac_header_preproc=yes
14628else
14629 echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
14632 ac_header_preproc=no
14633fi
14634rm -f conftest.err conftest.$ac_ext
14635echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14636echo "${ECHO_T}$ac_header_preproc" >&6
14637
14638# So? What about this header?
14639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14640 yes:no: )
14641 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14642echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14644echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14645 ac_header_preproc=yes
14646 ;;
14647 no:yes:* )
14648 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14649echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14651echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14653echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14654 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14655echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14657echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14658 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14659echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14660 (
14661 cat <<\_ASBOX
14662## ------------------------------------------ ##
14663## Report this to the AC_PACKAGE_NAME lists. ##
14664## ------------------------------------------ ##
14665_ASBOX
14666 ) |
14667 sed "s/^/$as_me: WARNING: /" >&2
14668 ;;
14669esac
14670echo "$as_me:$LINENO: checking for dl.h" >&5
14671echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14672if test "${ac_cv_header_dl_h+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14674else
14675 ac_cv_header_dl_h=$ac_header_preproc
14676fi
14677echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14678echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014679
14680fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014681if test $ac_cv_header_dl_h = yes; then
14682 DLL=dl.h
14683fi
14684
14685
14686fi
14687
Bram Moolenaar071d4272004-06-13 20:20:40 +000014688
14689if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014690
14691cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014692#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014693_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014694
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014695 echo "$as_me:$LINENO: checking for dlopen()" >&5
14696echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14697 cat >conftest.$ac_ext <<_ACEOF
14698/* confdefs.h. */
14699_ACEOF
14700cat confdefs.h >>conftest.$ac_ext
14701cat >>conftest.$ac_ext <<_ACEOF
14702/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014703
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014704int
14705main ()
14706{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014707
14708 extern void* dlopen();
14709 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014710
14711 ;
14712 return 0;
14713}
14714_ACEOF
14715rm -f conftest.$ac_objext conftest$ac_exeext
14716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14717 (eval $ac_link) 2>conftest.er1
14718 ac_status=$?
14719 grep -v '^ *+' conftest.er1 >conftest.err
14720 rm -f conftest.er1
14721 cat conftest.err >&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try='test -z "$ac_c_werror_flag"
14725 || test ! -s conftest.err'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; } &&
14731 { ac_try='test -s conftest$ac_exeext'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
14737 echo "$as_me:$LINENO: result: yes" >&5
14738echo "${ECHO_T}yes" >&6;
14739
14740cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014741#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014742_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014743
14744else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014745 echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5
14747
14748echo "$as_me:$LINENO: result: no" >&5
14749echo "${ECHO_T}no" >&6;
14750 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14751echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014752 olibs=$LIBS
14753 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014754 cat >conftest.$ac_ext <<_ACEOF
14755/* confdefs.h. */
14756_ACEOF
14757cat confdefs.h >>conftest.$ac_ext
14758cat >>conftest.$ac_ext <<_ACEOF
14759/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014760
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014761int
14762main ()
14763{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014764
14765 extern void* dlopen();
14766 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014767
14768 ;
14769 return 0;
14770}
14771_ACEOF
14772rm -f conftest.$ac_objext conftest$ac_exeext
14773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14774 (eval $ac_link) 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } &&
14781 { ac_try='test -z "$ac_c_werror_flag"
14782 || test ! -s conftest.err'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest$ac_exeext'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 echo "$as_me:$LINENO: result: yes" >&5
14795echo "${ECHO_T}yes" >&6;
14796
14797cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014798#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014799_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014800
14801else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014802 echo "$as_me: failed program was:" >&5
14803sed 's/^/| /' conftest.$ac_ext >&5
14804
14805echo "$as_me:$LINENO: result: no" >&5
14806echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014807 LIBS=$olibs
14808fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014809rm -f conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014811fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014812rm -f conftest.err conftest.$ac_objext \
14813 conftest$ac_exeext conftest.$ac_ext
14814 echo "$as_me:$LINENO: checking for dlsym()" >&5
14815echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14816 cat >conftest.$ac_ext <<_ACEOF
14817/* confdefs.h. */
14818_ACEOF
14819cat confdefs.h >>conftest.$ac_ext
14820cat >>conftest.$ac_ext <<_ACEOF
14821/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014822
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014823int
14824main ()
14825{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014826
14827 extern void* dlsym();
14828 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014829
14830 ;
14831 return 0;
14832}
14833_ACEOF
14834rm -f conftest.$ac_objext conftest$ac_exeext
14835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14836 (eval $ac_link) 2>conftest.er1
14837 ac_status=$?
14838 grep -v '^ *+' conftest.er1 >conftest.err
14839 rm -f conftest.er1
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try='test -z "$ac_c_werror_flag"
14844 || test ! -s conftest.err'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; } &&
14850 { ac_try='test -s conftest$ac_exeext'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 echo "$as_me:$LINENO: result: yes" >&5
14857echo "${ECHO_T}yes" >&6;
14858
14859cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014860#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014861_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014862
14863else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014864 echo "$as_me: failed program was:" >&5
14865sed 's/^/| /' conftest.$ac_ext >&5
14866
14867echo "$as_me:$LINENO: result: no" >&5
14868echo "${ECHO_T}no" >&6;
14869 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
14870echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014871 olibs=$LIBS
14872 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014873 cat >conftest.$ac_ext <<_ACEOF
14874/* confdefs.h. */
14875_ACEOF
14876cat confdefs.h >>conftest.$ac_ext
14877cat >>conftest.$ac_ext <<_ACEOF
14878/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014879
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014880int
14881main ()
14882{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014883
14884 extern void* dlsym();
14885 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014886
14887 ;
14888 return 0;
14889}
14890_ACEOF
14891rm -f conftest.$ac_objext conftest$ac_exeext
14892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14893 (eval $ac_link) 2>conftest.er1
14894 ac_status=$?
14895 grep -v '^ *+' conftest.er1 >conftest.err
14896 rm -f conftest.er1
14897 cat conftest.err >&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } &&
14900 { ac_try='test -z "$ac_c_werror_flag"
14901 || test ! -s conftest.err'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; } &&
14907 { ac_try='test -s conftest$ac_exeext'
14908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909 (eval $ac_try) 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; }; then
14913 echo "$as_me:$LINENO: result: yes" >&5
14914echo "${ECHO_T}yes" >&6;
14915
14916cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014917#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014918_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014919
14920else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014921 echo "$as_me: failed program was:" >&5
14922sed 's/^/| /' conftest.$ac_ext >&5
14923
14924echo "$as_me:$LINENO: result: no" >&5
14925echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014926 LIBS=$olibs
14927fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014928rm -f conftest.err conftest.$ac_objext \
14929 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014930fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014931rm -f conftest.err conftest.$ac_objext \
14932 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014933elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014934
14935cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014936#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014937_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014938
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014939 echo "$as_me:$LINENO: checking for shl_load()" >&5
14940echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
14941 cat >conftest.$ac_ext <<_ACEOF
14942/* confdefs.h. */
14943_ACEOF
14944cat confdefs.h >>conftest.$ac_ext
14945cat >>conftest.$ac_ext <<_ACEOF
14946/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014947
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014948int
14949main ()
14950{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014951
14952 extern void* shl_load();
14953 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014954
14955 ;
14956 return 0;
14957}
14958_ACEOF
14959rm -f conftest.$ac_objext conftest$ac_exeext
14960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14961 (eval $ac_link) 2>conftest.er1
14962 ac_status=$?
14963 grep -v '^ *+' conftest.er1 >conftest.err
14964 rm -f conftest.er1
14965 cat conftest.err >&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } &&
14968 { ac_try='test -z "$ac_c_werror_flag"
14969 || test ! -s conftest.err'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } &&
14975 { ac_try='test -s conftest$ac_exeext'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14981 echo "$as_me:$LINENO: result: yes" >&5
14982echo "${ECHO_T}yes" >&6;
14983
14984cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014985#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014986_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014987
14988else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014989 echo "$as_me: failed program was:" >&5
14990sed 's/^/| /' conftest.$ac_ext >&5
14991
14992echo "$as_me:$LINENO: result: no" >&5
14993echo "${ECHO_T}no" >&6;
14994 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
14995echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014996 olibs=$LIBS
14997 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014998 cat >conftest.$ac_ext <<_ACEOF
14999/* confdefs.h. */
15000_ACEOF
15001cat confdefs.h >>conftest.$ac_ext
15002cat >>conftest.$ac_ext <<_ACEOF
15003/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015004
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015005int
15006main ()
15007{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015008
15009 extern void* shl_load();
15010 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015011
15012 ;
15013 return 0;
15014}
15015_ACEOF
15016rm -f conftest.$ac_objext conftest$ac_exeext
15017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15018 (eval $ac_link) 2>conftest.er1
15019 ac_status=$?
15020 grep -v '^ *+' conftest.er1 >conftest.err
15021 rm -f conftest.er1
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -z "$ac_c_werror_flag"
15026 || test ! -s conftest.err'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest$ac_exeext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 echo "$as_me:$LINENO: result: yes" >&5
15039echo "${ECHO_T}yes" >&6;
15040
15041cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015042#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015043_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015044
15045else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015046 echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
15049echo "$as_me:$LINENO: result: no" >&5
15050echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015051 LIBS=$olibs
15052fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015053rm -f conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015055fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015056rm -f conftest.err conftest.$ac_objext \
15057 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015058fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015059
15060for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000015061do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15063if eval "test \"\${$as_ac_Header+set}\" = set"; then
15064 echo "$as_me:$LINENO: checking for $ac_header" >&5
15065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15066if eval "test \"\${$as_ac_Header+set}\" = set"; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015068fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015071else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015072 # Is the header compilable?
15073echo "$as_me:$LINENO: checking $ac_header usability" >&5
15074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15075cat >conftest.$ac_ext <<_ACEOF
15076/* confdefs.h. */
15077_ACEOF
15078cat confdefs.h >>conftest.$ac_ext
15079cat >>conftest.$ac_ext <<_ACEOF
15080/* end confdefs.h. */
15081$ac_includes_default
15082#include <$ac_header>
15083_ACEOF
15084rm -f conftest.$ac_objext
15085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15086 (eval $ac_compile) 2>conftest.er1
15087 ac_status=$?
15088 grep -v '^ *+' conftest.er1 >conftest.err
15089 rm -f conftest.er1
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
15093 { ac_try='test -z "$ac_c_werror_flag"
15094 || test ! -s conftest.err'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; } &&
15100 { ac_try='test -s conftest.$ac_objext'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 ac_header_compiler=yes
15107else
15108 echo "$as_me: failed program was:" >&5
15109sed 's/^/| /' conftest.$ac_ext >&5
15110
15111ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015112fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15115echo "${ECHO_T}$ac_header_compiler" >&6
15116
15117# Is the header present?
15118echo "$as_me:$LINENO: checking $ac_header presence" >&5
15119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15120cat >conftest.$ac_ext <<_ACEOF
15121/* confdefs.h. */
15122_ACEOF
15123cat confdefs.h >>conftest.$ac_ext
15124cat >>conftest.$ac_ext <<_ACEOF
15125/* end confdefs.h. */
15126#include <$ac_header>
15127_ACEOF
15128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } >/dev/null; then
15136 if test -s conftest.err; then
15137 ac_cpp_err=$ac_c_preproc_warn_flag
15138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15139 else
15140 ac_cpp_err=
15141 fi
15142else
15143 ac_cpp_err=yes
15144fi
15145if test -z "$ac_cpp_err"; then
15146 ac_header_preproc=yes
15147else
15148 echo "$as_me: failed program was:" >&5
15149sed 's/^/| /' conftest.$ac_ext >&5
15150
15151 ac_header_preproc=no
15152fi
15153rm -f conftest.err conftest.$ac_ext
15154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15155echo "${ECHO_T}$ac_header_preproc" >&6
15156
15157# So? What about this header?
15158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15159 yes:no: )
15160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15161echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15163echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15164 ac_header_preproc=yes
15165 ;;
15166 no:yes:* )
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15168echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15170echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15172echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15174echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15178echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15179 (
15180 cat <<\_ASBOX
15181## ------------------------------------------ ##
15182## Report this to the AC_PACKAGE_NAME lists. ##
15183## ------------------------------------------ ##
15184_ASBOX
15185 ) |
15186 sed "s/^/$as_me: WARNING: /" >&2
15187 ;;
15188esac
15189echo "$as_me:$LINENO: checking for $ac_header" >&5
15190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15191if eval "test \"\${$as_ac_Header+set}\" = set"; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193else
15194 eval "$as_ac_Header=\$ac_header_preproc"
15195fi
15196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15198
15199fi
15200if test `eval echo '${'$as_ac_Header'}'` = yes; then
15201 cat >>confdefs.h <<_ACEOF
15202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15203_ACEOF
15204
15205fi
15206
Bram Moolenaar071d4272004-06-13 20:20:40 +000015207done
15208
15209
15210if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15211 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15212 LIBS=`echo $LIBS | sed s/-ldl//`
15213 PERL_LIBS="$PERL_LIBS -ldl"
15214 fi
15215fi
15216
15217if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15218 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015219 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15220echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015221 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
15222 || test "x$features" = "xhuge"; then
15223 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015224 echo "$as_me:$LINENO: result: yes" >&5
15225echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015226 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015227 echo "$as_me:$LINENO: result: no" >&5
15228echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015229 fi
15230fi
Bram Moolenaare224ffa2006-03-01 00:01:28 +000015231if test "x$MACARCH" = "xboth"; then
15232 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15233fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015234
Bram Moolenaara5792f52005-11-23 21:25:05 +000015235echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15236echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015237DEPEND_CFLAGS_FILTER=
15238if test "$GCC" = yes; then
Bram Moolenaar32466aa2006-02-24 23:53:04 +000015239 gccmajor=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\(darwin.[^0-9]*\)*\([1-9]\)\.[0-9].*$/\2/g'`
Bram Moolenaarf740b292006-02-16 22:11:02 +000015240 if test "$gccmajor" -gt "2"; then
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015241 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15242 fi
15243fi
Bram Moolenaara5792f52005-11-23 21:25:05 +000015244if test "$DEPEND_CFLAGS_FILTER" = ""; then
15245 echo "$as_me:$LINENO: result: no" >&5
15246echo "${ECHO_T}no" >&6
15247else
15248 echo "$as_me:$LINENO: result: yes" >&5
15249echo "${ECHO_T}yes" >&6
15250fi
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015251
Bram Moolenaar071d4272004-06-13 20:20:40 +000015252
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015253 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15254cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015255# This file is a shell script that caches the results of configure
15256# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015257# scripts and configure runs, see configure's option --config-cache.
15258# It is not useful on other systems. If it contains results you don't
15259# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015260#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015261# config.status only pays attention to the cache file if you give it
15262# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015263#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015264# `ac_cv_env_foo' variables (set or unset) will be overridden when
15265# loading this file, other *unset* `ac_cv_foo' will be assigned the
15266# following values.
15267
15268_ACEOF
15269
Bram Moolenaar071d4272004-06-13 20:20:40 +000015270# The following way of writing the cache mishandles newlines in values,
15271# but we know of no workaround that is simple, portable, and efficient.
15272# So, don't put newlines in cache variables' values.
15273# Ultrix sh set writes to stderr and can't be redirected directly,
15274# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015275{
15276 (set) 2>&1 |
15277 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15278 *ac_space=\ *)
15279 # `set' does not quote correctly, so add quotes (double-quote
15280 # substitution turns \\\\ into \\, and sed turns \\ into \).
15281 sed -n \
15282 "s/'/'\\\\''/g;
15283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15284 ;;
15285 *)
15286 # `set' quotes correctly as required by POSIX, so do not add quotes.
15287 sed -n \
15288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15289 ;;
15290 esac;
15291} |
15292 sed '
15293 t clear
15294 : clear
15295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15296 t end
15297 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15298 : end' >>confcache
15299if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000015300 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015301 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15302 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000015303 else
15304 echo "not updating unwritable cache $cache_file"
15305 fi
15306fi
15307rm -f confcache
15308
Bram Moolenaar071d4272004-06-13 20:20:40 +000015309test "x$prefix" = xNONE && prefix=$ac_default_prefix
15310# Let make expand exec_prefix.
15311test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15312
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015313# VPATH may cause trouble with some makes, so we remove $(srcdir),
15314# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15315# trailing colons and then remove the whole line if VPATH becomes empty
15316# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000015317if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015318 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15319s/:*\$(srcdir):*/:/;
15320s/:*\${srcdir}:*/:/;
15321s/:*@srcdir@:*/:/;
15322s/^\([^=]*=[ ]*\):*/\1/;
15323s/:*$//;
15324s/^[^=]*=[ ]*$//;
15325}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015326fi
15327
Bram Moolenaar071d4272004-06-13 20:20:40 +000015328DEFS=-DHAVE_CONFIG_H
15329
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015330ac_libobjs=
15331ac_ltlibobjs=
15332for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15333 # 1. Remove the extension, and $U if already installed.
15334 ac_i=`echo "$ac_i" |
15335 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15336 # 2. Add them.
15337 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15338 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15339done
15340LIBOBJS=$ac_libobjs
15341
15342LTLIBOBJS=$ac_ltlibobjs
15343
15344
15345
Bram Moolenaar071d4272004-06-13 20:20:40 +000015346: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015347ac_clean_files_save=$ac_clean_files
15348ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15349{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15350echo "$as_me: creating $CONFIG_STATUS" >&6;}
15351cat >$CONFIG_STATUS <<_ACEOF
15352#! $SHELL
15353# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015354# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015355# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015356# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015357
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015358debug=false
15359ac_cs_recheck=false
15360ac_cs_silent=false
15361SHELL=\${CONFIG_SHELL-$SHELL}
15362_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015363
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015364cat >>$CONFIG_STATUS <<\_ACEOF
15365## --------------------- ##
15366## M4sh Initialization. ##
15367## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000015368
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015369# Be Bourne compatible
15370if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15371 emulate sh
15372 NULLCMD=:
15373 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15374 # is contrary to our usage. Disable this feature.
15375 alias -g '${1+"$@"}'='"$@"'
15376elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15377 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000015378fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015379DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000015380
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015381# Support unset when possible.
15382if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15383 as_unset=unset
15384else
15385 as_unset=false
15386fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015387
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015388
15389# Work around bugs in pre-3.0 UWIN ksh.
15390$as_unset ENV MAIL MAILPATH
15391PS1='$ '
15392PS2='> '
15393PS4='+ '
15394
15395# NLS nuisances.
15396for as_var in \
15397 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15398 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15399 LC_TELEPHONE LC_TIME
15400do
15401 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15402 eval $as_var=C; export $as_var
15403 else
15404 $as_unset $as_var
15405 fi
15406done
15407
15408# Required to use basename.
15409if expr a : '\(a\)' >/dev/null 2>&1; then
15410 as_expr=expr
15411else
15412 as_expr=false
15413fi
15414
15415if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15416 as_basename=basename
15417else
15418 as_basename=false
15419fi
15420
15421
15422# Name of the executable.
15423as_me=`$as_basename "$0" ||
15424$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15425 X"$0" : 'X\(//\)$' \| \
15426 X"$0" : 'X\(/\)$' \| \
15427 . : '\(.\)' 2>/dev/null ||
15428echo X/"$0" |
15429 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15430 /^X\/\(\/\/\)$/{ s//\1/; q; }
15431 /^X\/\(\/\).*/{ s//\1/; q; }
15432 s/.*/./; q'`
15433
15434
15435# PATH needs CR, and LINENO needs CR and PATH.
15436# Avoid depending upon Character Ranges.
15437as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15438as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15439as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15440as_cr_digits='0123456789'
15441as_cr_alnum=$as_cr_Letters$as_cr_digits
15442
15443# The user is always right.
15444if test "${PATH_SEPARATOR+set}" != set; then
15445 echo "#! /bin/sh" >conf$$.sh
15446 echo "exit 0" >>conf$$.sh
15447 chmod +x conf$$.sh
15448 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15449 PATH_SEPARATOR=';'
15450 else
15451 PATH_SEPARATOR=:
15452 fi
15453 rm -f conf$$.sh
15454fi
15455
15456
15457 as_lineno_1=$LINENO
15458 as_lineno_2=$LINENO
15459 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15460 test "x$as_lineno_1" != "x$as_lineno_2" &&
15461 test "x$as_lineno_3" = "x$as_lineno_2" || {
15462 # Find who we are. Look in the path if we contain no path at all
15463 # relative or not.
15464 case $0 in
15465 *[\\/]* ) as_myself=$0 ;;
15466 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15467for as_dir in $PATH
15468do
15469 IFS=$as_save_IFS
15470 test -z "$as_dir" && as_dir=.
15471 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15472done
15473
15474 ;;
15475 esac
15476 # We did not find ourselves, most probably we were run as `sh COMMAND'
15477 # in which case we are not to be found in the path.
15478 if test "x$as_myself" = x; then
15479 as_myself=$0
15480 fi
15481 if test ! -f "$as_myself"; then
15482 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15483echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15484 { (exit 1); exit 1; }; }
15485 fi
15486 case $CONFIG_SHELL in
15487 '')
15488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15489for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15490do
15491 IFS=$as_save_IFS
15492 test -z "$as_dir" && as_dir=.
15493 for as_base in sh bash ksh sh5; do
15494 case $as_dir in
15495 /*)
15496 if ("$as_dir/$as_base" -c '
15497 as_lineno_1=$LINENO
15498 as_lineno_2=$LINENO
15499 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15500 test "x$as_lineno_1" != "x$as_lineno_2" &&
15501 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15502 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15503 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15504 CONFIG_SHELL=$as_dir/$as_base
15505 export CONFIG_SHELL
15506 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15507 fi;;
15508 esac
15509 done
15510done
15511;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015512 esac
15513
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015514 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15515 # uniformly replaced by the line number. The first 'sed' inserts a
15516 # line-number line before each line; the second 'sed' does the real
15517 # work. The second script uses 'N' to pair each line-number line
15518 # with the numbered line, and appends trailing '-' during
15519 # substitution so that $LINENO is not a special case at line end.
15520 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15521 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15522 sed '=' <$as_myself |
15523 sed '
15524 N
15525 s,$,-,
15526 : loop
15527 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15528 t loop
15529 s,-$,,
15530 s,^['$as_cr_digits']*\n,,
15531 ' >$as_me.lineno &&
15532 chmod +x $as_me.lineno ||
15533 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15534echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15535 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000015536
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015537 # Don't try to exec as it changes $[0], causing all sort of problems
15538 # (the dirname of $[0] is not the place where we might find the
15539 # original and so on. Autoconf is especially sensible to this).
15540 . ./$as_me.lineno
15541 # Exit status is that of the last command.
15542 exit
15543}
15544
15545
15546case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15547 *c*,-n*) ECHO_N= ECHO_C='
15548' ECHO_T=' ' ;;
15549 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15550 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15551esac
15552
15553if expr a : '\(a\)' >/dev/null 2>&1; then
15554 as_expr=expr
15555else
15556 as_expr=false
15557fi
15558
15559rm -f conf$$ conf$$.exe conf$$.file
15560echo >conf$$.file
15561if ln -s conf$$.file conf$$ 2>/dev/null; then
15562 # We could just check for DJGPP; but this test a) works b) is more generic
15563 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15564 if test -f conf$$.exe; then
15565 # Don't use ln at all; we don't have any links
15566 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015567 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015568 as_ln_s='ln -s'
15569 fi
15570elif ln conf$$.file conf$$ 2>/dev/null; then
15571 as_ln_s=ln
15572else
15573 as_ln_s='cp -p'
15574fi
15575rm -f conf$$ conf$$.exe conf$$.file
15576
15577if mkdir -p . 2>/dev/null; then
15578 as_mkdir_p=:
15579else
15580 test -d ./-p && rmdir ./-p
15581 as_mkdir_p=false
15582fi
15583
15584as_executable_p="test -f"
15585
15586# Sed expression to map a string onto a valid CPP name.
15587as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15588
15589# Sed expression to map a string onto a valid variable name.
15590as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15591
15592
15593# IFS
15594# We need space, tab and new line, in precisely that order.
15595as_nl='
15596'
15597IFS=" $as_nl"
15598
15599# CDPATH.
15600$as_unset CDPATH
15601
15602exec 6>&1
15603
15604# Open the log real soon, to keep \$[0] and so on meaningful, and to
15605# report actual input values of CONFIG_FILES etc. instead of their
15606# values after options handling. Logging --version etc. is OK.
Bram Moolenaarc7453f52006-02-10 23:20:28 +000015607exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015608{
15609 echo
15610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15611## Running $as_me. ##
15612_ASBOX
15613} >&5
15614cat >&5 <<_CSEOF
15615
15616This file was extended by $as_me, which was
15617generated by GNU Autoconf 2.59. Invocation command line was
15618
15619 CONFIG_FILES = $CONFIG_FILES
15620 CONFIG_HEADERS = $CONFIG_HEADERS
15621 CONFIG_LINKS = $CONFIG_LINKS
15622 CONFIG_COMMANDS = $CONFIG_COMMANDS
15623 $ $0 $@
15624
15625_CSEOF
15626echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15627echo >&5
15628_ACEOF
15629
15630# Files that config.status was made for.
15631if test -n "$ac_config_files"; then
15632 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15633fi
15634
15635if test -n "$ac_config_headers"; then
15636 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15637fi
15638
15639if test -n "$ac_config_links"; then
15640 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15641fi
15642
15643if test -n "$ac_config_commands"; then
15644 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15645fi
15646
15647cat >>$CONFIG_STATUS <<\_ACEOF
15648
15649ac_cs_usage="\
15650\`$as_me' instantiates files from templates according to the
15651current configuration.
15652
15653Usage: $0 [OPTIONS] [FILE]...
15654
15655 -h, --help print this help, then exit
15656 -V, --version print version number, then exit
15657 -q, --quiet do not print progress messages
15658 -d, --debug don't remove temporary files
15659 --recheck update $as_me by reconfiguring in the same conditions
15660 --file=FILE[:TEMPLATE]
15661 instantiate the configuration file FILE
15662 --header=FILE[:TEMPLATE]
15663 instantiate the configuration header FILE
15664
15665Configuration files:
15666$config_files
15667
15668Configuration headers:
15669$config_headers
15670
15671Report bugs to <bug-autoconf@gnu.org>."
15672_ACEOF
15673
15674cat >>$CONFIG_STATUS <<_ACEOF
15675ac_cs_version="\\
15676config.status
15677configured by $0, generated by GNU Autoconf 2.59,
15678 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15679
15680Copyright (C) 2003 Free Software Foundation, Inc.
15681This config.status script is free software; the Free Software Foundation
15682gives unlimited permission to copy, distribute and modify it."
15683srcdir=$srcdir
15684_ACEOF
15685
15686cat >>$CONFIG_STATUS <<\_ACEOF
15687# If no file are specified by the user, then we need to provide default
15688# value. By we need to know if files were specified by the user.
15689ac_need_defaults=:
15690while test $# != 0
15691do
15692 case $1 in
15693 --*=*)
15694 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15695 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15696 ac_shift=:
15697 ;;
15698 -*)
15699 ac_option=$1
15700 ac_optarg=$2
15701 ac_shift=shift
15702 ;;
15703 *) # This is not an option, so the user has probably given explicit
15704 # arguments.
15705 ac_option=$1
15706 ac_need_defaults=false;;
15707 esac
15708
15709 case $ac_option in
15710 # Handling of the options.
15711_ACEOF
15712cat >>$CONFIG_STATUS <<\_ACEOF
15713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15714 ac_cs_recheck=: ;;
15715 --version | --vers* | -V )
15716 echo "$ac_cs_version"; exit 0 ;;
15717 --he | --h)
15718 # Conflict between --help and --header
15719 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15720Try \`$0 --help' for more information." >&5
15721echo "$as_me: error: ambiguous option: $1
15722Try \`$0 --help' for more information." >&2;}
15723 { (exit 1); exit 1; }; };;
15724 --help | --hel | -h )
15725 echo "$ac_cs_usage"; exit 0 ;;
15726 --debug | --d* | -d )
15727 debug=: ;;
15728 --file | --fil | --fi | --f )
15729 $ac_shift
15730 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15731 ac_need_defaults=false;;
15732 --header | --heade | --head | --hea )
15733 $ac_shift
15734 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15735 ac_need_defaults=false;;
15736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15737 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15738 ac_cs_silent=: ;;
15739
15740 # This is an error.
15741 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15742Try \`$0 --help' for more information." >&5
15743echo "$as_me: error: unrecognized option: $1
15744Try \`$0 --help' for more information." >&2;}
15745 { (exit 1); exit 1; }; } ;;
15746
15747 *) ac_config_targets="$ac_config_targets $1" ;;
15748
15749 esac
15750 shift
15751done
15752
15753ac_configure_extra_args=
15754
15755if $ac_cs_silent; then
15756 exec 6>/dev/null
15757 ac_configure_extra_args="$ac_configure_extra_args --silent"
15758fi
15759
15760_ACEOF
15761cat >>$CONFIG_STATUS <<_ACEOF
15762if \$ac_cs_recheck; then
15763 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15764 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15765fi
15766
15767_ACEOF
15768
15769
15770
15771
15772
15773cat >>$CONFIG_STATUS <<\_ACEOF
15774for ac_config_target in $ac_config_targets
15775do
15776 case "$ac_config_target" in
15777 # Handling of arguments.
15778 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15779 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15780 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15781echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15782 { (exit 1); exit 1; }; };;
15783 esac
15784done
15785
15786# If the user did not use the arguments to specify the items to instantiate,
15787# then the envvar interface is used. Set only those that are not.
15788# We use the long form for the default assignment because of an extremely
15789# bizarre bug on SunOS 4.1.3.
15790if $ac_need_defaults; then
15791 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15792 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15793fi
15794
15795# Have a temporary directory for convenience. Make it in the build tree
15796# simply because there is no reason to put it here, and in addition,
15797# creating and moving files from /tmp can sometimes cause problems.
15798# Create a temporary directory, and hook for its removal unless debugging.
15799$debug ||
15800{
15801 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15802 trap '{ (exit 1); exit 1; }' 1 2 13 15
15803}
15804
15805# Create a (secure) tmp directory for tmp files.
15806
15807{
15808 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15809 test -n "$tmp" && test -d "$tmp"
15810} ||
15811{
15812 tmp=./confstat$$-$RANDOM
15813 (umask 077 && mkdir $tmp)
15814} ||
15815{
15816 echo "$me: cannot create a temporary directory in ." >&2
15817 { (exit 1); exit 1; }
15818}
15819
15820_ACEOF
15821
15822cat >>$CONFIG_STATUS <<_ACEOF
15823
15824#
15825# CONFIG_FILES section.
15826#
15827
15828# No need to generate the scripts if there are no CONFIG_FILES.
15829# This happens for instance when ./config.status config.h
15830if test -n "\$CONFIG_FILES"; then
15831 # Protect against being on the right side of a sed subst in config.status.
15832 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15833 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15834s,@SHELL@,$SHELL,;t t
15835s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15836s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15837s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15838s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15839s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15840s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15841s,@exec_prefix@,$exec_prefix,;t t
15842s,@prefix@,$prefix,;t t
15843s,@program_transform_name@,$program_transform_name,;t t
15844s,@bindir@,$bindir,;t t
15845s,@sbindir@,$sbindir,;t t
15846s,@libexecdir@,$libexecdir,;t t
15847s,@datadir@,$datadir,;t t
15848s,@sysconfdir@,$sysconfdir,;t t
15849s,@sharedstatedir@,$sharedstatedir,;t t
15850s,@localstatedir@,$localstatedir,;t t
15851s,@libdir@,$libdir,;t t
15852s,@includedir@,$includedir,;t t
15853s,@oldincludedir@,$oldincludedir,;t t
15854s,@infodir@,$infodir,;t t
15855s,@mandir@,$mandir,;t t
15856s,@build_alias@,$build_alias,;t t
15857s,@host_alias@,$host_alias,;t t
15858s,@target_alias@,$target_alias,;t t
15859s,@DEFS@,$DEFS,;t t
15860s,@ECHO_C@,$ECHO_C,;t t
15861s,@ECHO_N@,$ECHO_N,;t t
15862s,@ECHO_T@,$ECHO_T,;t t
15863s,@LIBS@,$LIBS,;t t
15864s,@SET_MAKE@,$SET_MAKE,;t t
15865s,@CC@,$CC,;t t
15866s,@CFLAGS@,$CFLAGS,;t t
15867s,@LDFLAGS@,$LDFLAGS,;t t
15868s,@CPPFLAGS@,$CPPFLAGS,;t t
15869s,@ac_ct_CC@,$ac_ct_CC,;t t
15870s,@EXEEXT@,$EXEEXT,;t t
15871s,@OBJEXT@,$OBJEXT,;t t
15872s,@CPP@,$CPP,;t t
15873s,@EGREP@,$EGREP,;t t
15874s,@AWK@,$AWK,;t t
15875s,@STRIP@,$STRIP,;t t
15876s,@CPP_MM@,$CPP_MM,;t t
15877s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
15878s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
15879s,@VIMNAME@,$VIMNAME,;t t
15880s,@EXNAME@,$EXNAME,;t t
15881s,@VIEWNAME@,$VIEWNAME,;t t
15882s,@line_break@,$line_break,;t t
15883s,@dovimdiff@,$dovimdiff,;t t
15884s,@dogvimdiff@,$dogvimdiff,;t t
15885s,@compiledby@,$compiledby,;t t
15886s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
15887s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
15888s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
15889s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
15890s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
15891s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
15892s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
15893s,@vi_cv_perllib@,$vi_cv_perllib,;t t
15894s,@shrpenv@,$shrpenv,;t t
15895s,@PERL_SRC@,$PERL_SRC,;t t
15896s,@PERL_OBJ@,$PERL_OBJ,;t t
15897s,@PERL_PRO@,$PERL_PRO,;t t
15898s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
15899s,@PERL_LIBS@,$PERL_LIBS,;t t
15900s,@vi_cv_path_python@,$vi_cv_path_python,;t t
15901s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
15902s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
15903s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
15904s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
15905s,@PYTHON_SRC@,$PYTHON_SRC,;t t
15906s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
15907s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
15908s,@TCL_SRC@,$TCL_SRC,;t t
15909s,@TCL_OBJ@,$TCL_OBJ,;t t
15910s,@TCL_PRO@,$TCL_PRO,;t t
15911s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
15912s,@TCL_LIBS@,$TCL_LIBS,;t t
15913s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
15914s,@RUBY_SRC@,$RUBY_SRC,;t t
15915s,@RUBY_OBJ@,$RUBY_OBJ,;t t
15916s,@RUBY_PRO@,$RUBY_PRO,;t t
15917s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
15918s,@RUBY_LIBS@,$RUBY_LIBS,;t t
15919s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
15920s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
15921s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
15922s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
15923s,@SNIFF_SRC@,$SNIFF_SRC,;t t
15924s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
15925s,@xmkmfpath@,$xmkmfpath,;t t
15926s,@X_CFLAGS@,$X_CFLAGS,;t t
15927s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15928s,@X_LIBS@,$X_LIBS,;t t
15929s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15930s,@X_LIB@,$X_LIB,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015931s,@GTK_CONFIG@,$GTK_CONFIG,;t t
15932s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
15933s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15934s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15935s,@GTK_LIBS@,$GTK_LIBS,;t t
15936s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
15937s,@GNOME_LIBS@,$GNOME_LIBS,;t t
15938s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
15939s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
15940s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
15941s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
15942s,@NARROW_PROTO@,$NARROW_PROTO,;t t
15943s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
15944s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
15945s,@GUITYPE@,$GUITYPE,;t t
15946s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
15947s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
15948s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
15949s,@TAGPRG@,$TAGPRG,;t t
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000015950s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
15951s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015952s,@MSGFMT@,$MSGFMT,;t t
15953s,@MAKEMO@,$MAKEMO,;t t
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015954s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015955s,@LIBOBJS@,$LIBOBJS,;t t
15956s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15957CEOF
15958
15959_ACEOF
15960
15961 cat >>$CONFIG_STATUS <<\_ACEOF
15962 # Split the substitutions into bite-sized pieces for seds with
15963 # small command number limits, like on Digital OSF/1 and HP-UX.
15964 ac_max_sed_lines=48
15965 ac_sed_frag=1 # Number of current file.
15966 ac_beg=1 # First line for current file.
15967 ac_end=$ac_max_sed_lines # Line after last line for current file.
15968 ac_more_lines=:
15969 ac_sed_cmds=
15970 while $ac_more_lines; do
15971 if test $ac_beg -gt 1; then
15972 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15973 else
15974 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15975 fi
15976 if test ! -s $tmp/subs.frag; then
15977 ac_more_lines=false
15978 else
15979 # The purpose of the label and of the branching condition is to
15980 # speed up the sed processing (if there are no `@' at all, there
15981 # is no need to browse any of the substitutions).
15982 # These are the two extra sed commands mentioned above.
15983 (echo ':t
15984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15985 if test -z "$ac_sed_cmds"; then
15986 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15987 else
15988 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15989 fi
15990 ac_sed_frag=`expr $ac_sed_frag + 1`
15991 ac_beg=$ac_end
15992 ac_end=`expr $ac_end + $ac_max_sed_lines`
15993 fi
15994 done
15995 if test -z "$ac_sed_cmds"; then
15996 ac_sed_cmds=cat
15997 fi
15998fi # test -n "$CONFIG_FILES"
15999
16000_ACEOF
16001cat >>$CONFIG_STATUS <<\_ACEOF
16002for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16004 case $ac_file in
16005 - | *:- | *:-:* ) # input from stdin
16006 cat >$tmp/stdin
16007 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16008 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16009 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16010 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16011 * ) ac_file_in=$ac_file.in ;;
16012 esac
16013
16014 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16015 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16016$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16017 X"$ac_file" : 'X\(//\)[^/]' \| \
16018 X"$ac_file" : 'X\(//\)$' \| \
16019 X"$ac_file" : 'X\(/\)' \| \
16020 . : '\(.\)' 2>/dev/null ||
16021echo X"$ac_file" |
16022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16024 /^X\(\/\/\)$/{ s//\1/; q; }
16025 /^X\(\/\).*/{ s//\1/; q; }
16026 s/.*/./; q'`
16027 { if $as_mkdir_p; then
16028 mkdir -p "$ac_dir"
16029 else
16030 as_dir="$ac_dir"
16031 as_dirs=
16032 while test ! -d "$as_dir"; do
16033 as_dirs="$as_dir $as_dirs"
16034 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16035$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16036 X"$as_dir" : 'X\(//\)[^/]' \| \
16037 X"$as_dir" : 'X\(//\)$' \| \
16038 X"$as_dir" : 'X\(/\)' \| \
16039 . : '\(.\)' 2>/dev/null ||
16040echo X"$as_dir" |
16041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16043 /^X\(\/\/\)$/{ s//\1/; q; }
16044 /^X\(\/\).*/{ s//\1/; q; }
16045 s/.*/./; q'`
16046 done
16047 test ! -n "$as_dirs" || mkdir $as_dirs
16048 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16049echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16050 { (exit 1); exit 1; }; }; }
16051
16052 ac_builddir=.
16053
16054if test "$ac_dir" != .; then
16055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16056 # A "../" for each directory in $ac_dir_suffix.
16057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16058else
16059 ac_dir_suffix= ac_top_builddir=
16060fi
16061
16062case $srcdir in
16063 .) # No --srcdir option. We are building in place.
16064 ac_srcdir=.
16065 if test -z "$ac_top_builddir"; then
16066 ac_top_srcdir=.
16067 else
16068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16069 fi ;;
16070 [\\/]* | ?:[\\/]* ) # Absolute path.
16071 ac_srcdir=$srcdir$ac_dir_suffix;
16072 ac_top_srcdir=$srcdir ;;
16073 *) # Relative path.
16074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16076esac
16077
16078# Do not use `cd foo && pwd` to compute absolute paths, because
16079# the directories may not exist.
16080case `pwd` in
16081.) ac_abs_builddir="$ac_dir";;
16082*)
16083 case "$ac_dir" in
16084 .) ac_abs_builddir=`pwd`;;
16085 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16086 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16087 esac;;
16088esac
16089case $ac_abs_builddir in
16090.) ac_abs_top_builddir=${ac_top_builddir}.;;
16091*)
16092 case ${ac_top_builddir}. in
16093 .) ac_abs_top_builddir=$ac_abs_builddir;;
16094 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16095 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16096 esac;;
16097esac
16098case $ac_abs_builddir in
16099.) ac_abs_srcdir=$ac_srcdir;;
16100*)
16101 case $ac_srcdir in
16102 .) ac_abs_srcdir=$ac_abs_builddir;;
16103 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16104 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16105 esac;;
16106esac
16107case $ac_abs_builddir in
16108.) ac_abs_top_srcdir=$ac_top_srcdir;;
16109*)
16110 case $ac_top_srcdir in
16111 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16112 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16113 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16114 esac;;
16115esac
16116
16117
16118
16119 if test x"$ac_file" != x-; then
16120 { echo "$as_me:$LINENO: creating $ac_file" >&5
16121echo "$as_me: creating $ac_file" >&6;}
16122 rm -f "$ac_file"
16123 fi
16124 # Let's still pretend it is `configure' which instantiates (i.e., don't
16125 # use $as_me), people would be surprised to read:
16126 # /* config.h. Generated by config.status. */
16127 if test x"$ac_file" = x-; then
16128 configure_input=
16129 else
16130 configure_input="$ac_file. "
16131 fi
16132 configure_input=$configure_input"Generated from `echo $ac_file_in |
16133 sed 's,.*/,,'` by configure."
16134
16135 # First look for the input files in the build tree, otherwise in the
16136 # src tree.
16137 ac_file_inputs=`IFS=:
16138 for f in $ac_file_in; do
16139 case $f in
16140 -) echo $tmp/stdin ;;
16141 [\\/$]*)
16142 # Absolute (can't be DOS-style, as IFS=:)
16143 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16144echo "$as_me: error: cannot find input file: $f" >&2;}
16145 { (exit 1); exit 1; }; }
16146 echo "$f";;
16147 *) # Relative
16148 if test -f "$f"; then
16149 # Build tree
16150 echo "$f"
16151 elif test -f "$srcdir/$f"; then
16152 # Source tree
16153 echo "$srcdir/$f"
16154 else
16155 # /dev/null tree
16156 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16157echo "$as_me: error: cannot find input file: $f" >&2;}
16158 { (exit 1); exit 1; }; }
16159 fi;;
16160 esac
16161 done` || { (exit 1); exit 1; }
16162_ACEOF
16163cat >>$CONFIG_STATUS <<_ACEOF
16164 sed "$ac_vpsub
16165$extrasub
16166_ACEOF
16167cat >>$CONFIG_STATUS <<\_ACEOF
16168:t
16169/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16170s,@configure_input@,$configure_input,;t t
16171s,@srcdir@,$ac_srcdir,;t t
16172s,@abs_srcdir@,$ac_abs_srcdir,;t t
16173s,@top_srcdir@,$ac_top_srcdir,;t t
16174s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16175s,@builddir@,$ac_builddir,;t t
16176s,@abs_builddir@,$ac_abs_builddir,;t t
16177s,@top_builddir@,$ac_top_builddir,;t t
16178s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16179" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16180 rm -f $tmp/stdin
16181 if test x"$ac_file" != x-; then
16182 mv $tmp/out $ac_file
16183 else
16184 cat $tmp/out
16185 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000016186 fi
16187
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016188done
16189_ACEOF
16190cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016191
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016192#
16193# CONFIG_HEADER section.
16194#
Bram Moolenaar071d4272004-06-13 20:20:40 +000016195
16196# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16197# NAME is the cpp macro being defined and VALUE is the value it is being given.
16198#
16199# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016200ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16201ac_dB='[ ].*$,\1#\2'
16202ac_dC=' '
16203ac_dD=',;t'
16204# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16205ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16206ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016207ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016208ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016209
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016210for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000016211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016212 case $ac_file in
16213 - | *:- | *:-:* ) # input from stdin
16214 cat >$tmp/stdin
16215 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16216 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16217 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16218 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16219 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016220 esac
16221
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016222 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16223echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000016224
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016225 # First look for the input files in the build tree, otherwise in the
16226 # src tree.
16227 ac_file_inputs=`IFS=:
16228 for f in $ac_file_in; do
16229 case $f in
16230 -) echo $tmp/stdin ;;
16231 [\\/$]*)
16232 # Absolute (can't be DOS-style, as IFS=:)
16233 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16234echo "$as_me: error: cannot find input file: $f" >&2;}
16235 { (exit 1); exit 1; }; }
16236 # Do quote $f, to prevent DOS paths from being IFS'd.
16237 echo "$f";;
16238 *) # Relative
16239 if test -f "$f"; then
16240 # Build tree
16241 echo "$f"
16242 elif test -f "$srcdir/$f"; then
16243 # Source tree
16244 echo "$srcdir/$f"
16245 else
16246 # /dev/null tree
16247 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16248echo "$as_me: error: cannot find input file: $f" >&2;}
16249 { (exit 1); exit 1; }; }
16250 fi;;
16251 esac
16252 done` || { (exit 1); exit 1; }
16253 # Remove the trailing spaces.
16254 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000016255
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016256_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016257
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016258# Transform confdefs.h into two sed scripts, `conftest.defines' and
16259# `conftest.undefs', that substitutes the proper values into
16260# config.h.in to produce config.h. The first handles `#define'
16261# templates, and the second `#undef' templates.
16262# And first: Protect against being on the right side of a sed subst in
16263# config.status. Protect against being in an unquoted here document
16264# in config.status.
16265rm -f conftest.defines conftest.undefs
16266# Using a here document instead of a string reduces the quoting nightmare.
16267# Putting comments in sed scripts is not portable.
16268#
16269# `end' is used to avoid that the second main sed command (meant for
16270# 0-ary CPP macros) applies to n-ary macro definitions.
16271# See the Autoconf documentation for `clear'.
16272cat >confdef2sed.sed <<\_ACEOF
16273s/[\\&,]/\\&/g
16274s,[\\$`],\\&,g
16275t clear
16276: clear
16277s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16278t end
16279s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16280: end
16281_ACEOF
16282# If some macros were called several times there might be several times
16283# the same #defines, which is useless. Nevertheless, we may not want to
16284# sort them, since we want the *last* AC-DEFINE to be honored.
16285uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16286sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16287rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000016288
16289# This sed command replaces #undef with comments. This is necessary, for
16290# example, in the case of _POSIX_SOURCE, which is predefined and required
16291# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016292cat >>conftest.undefs <<\_ACEOF
16293s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16294_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016295
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016296# Break up conftest.defines because some shells have a limit on the size
16297# of here documents, and old seds have small limits too (100 cmds).
16298echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16299echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16300echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16301echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016302rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016303while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000016304do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016305 # Write a limited-size here document to $tmp/defines.sed.
16306 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16307 # Speed up: don't consider the non `#define' lines.
16308 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16309 # Work around the forget-to-reset-the-flag bug.
16310 echo 't clr' >>$CONFIG_STATUS
16311 echo ': clr' >>$CONFIG_STATUS
16312 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016313 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016314 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16315 rm -f $tmp/in
16316 mv $tmp/out $tmp/in
16317' >>$CONFIG_STATUS
16318 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16319 rm -f conftest.defines
16320 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000016321done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016322rm -f conftest.defines
16323echo ' fi # grep' >>$CONFIG_STATUS
16324echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016325
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016326# Break up conftest.undefs because some shells have a limit on the size
16327# of here documents, and old seds have small limits too (100 cmds).
16328echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16329rm -f conftest.tail
16330while grep . conftest.undefs >/dev/null
16331do
16332 # Write a limited-size here document to $tmp/undefs.sed.
16333 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16334 # Speed up: don't consider the non `#undef'
16335 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16336 # Work around the forget-to-reset-the-flag bug.
16337 echo 't clr' >>$CONFIG_STATUS
16338 echo ': clr' >>$CONFIG_STATUS
16339 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16340 echo 'CEOF
16341 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16342 rm -f $tmp/in
16343 mv $tmp/out $tmp/in
16344' >>$CONFIG_STATUS
16345 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16346 rm -f conftest.undefs
16347 mv conftest.tail conftest.undefs
16348done
16349rm -f conftest.undefs
16350
16351cat >>$CONFIG_STATUS <<\_ACEOF
16352 # Let's still pretend it is `configure' which instantiates (i.e., don't
16353 # use $as_me), people would be surprised to read:
16354 # /* config.h. Generated by config.status. */
16355 if test x"$ac_file" = x-; then
16356 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016357 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016358 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016359 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016360 cat $tmp/in >>$tmp/config.h
16361 rm -f $tmp/in
16362 if test x"$ac_file" != x-; then
16363 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16364 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16365echo "$as_me: $ac_file is unchanged" >&6;}
16366 else
16367 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16368$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16369 X"$ac_file" : 'X\(//\)[^/]' \| \
16370 X"$ac_file" : 'X\(//\)$' \| \
16371 X"$ac_file" : 'X\(/\)' \| \
16372 . : '\(.\)' 2>/dev/null ||
16373echo X"$ac_file" |
16374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16376 /^X\(\/\/\)$/{ s//\1/; q; }
16377 /^X\(\/\).*/{ s//\1/; q; }
16378 s/.*/./; q'`
16379 { if $as_mkdir_p; then
16380 mkdir -p "$ac_dir"
16381 else
16382 as_dir="$ac_dir"
16383 as_dirs=
16384 while test ! -d "$as_dir"; do
16385 as_dirs="$as_dir $as_dirs"
16386 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16387$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16388 X"$as_dir" : 'X\(//\)[^/]' \| \
16389 X"$as_dir" : 'X\(//\)$' \| \
16390 X"$as_dir" : 'X\(/\)' \| \
16391 . : '\(.\)' 2>/dev/null ||
16392echo X"$as_dir" |
16393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16395 /^X\(\/\/\)$/{ s//\1/; q; }
16396 /^X\(\/\).*/{ s//\1/; q; }
16397 s/.*/./; q'`
16398 done
16399 test ! -n "$as_dirs" || mkdir $as_dirs
16400 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16401echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16402 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016403
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016404 rm -f $ac_file
16405 mv $tmp/config.h $ac_file
16406 fi
16407 else
16408 cat $tmp/config.h
16409 rm -f $tmp/config.h
16410 fi
16411done
16412_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016413
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016414cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016415
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016416{ (exit 0); exit 0; }
16417_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016418chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016419ac_clean_files=$ac_clean_files_save
16420
16421
16422# configure is writing to config.log, and then calls config.status.
16423# config.status does its own redirection, appending to config.log.
16424# Unfortunately, on DOS this fails, as config.log is still kept open
16425# by configure, so config.status won't be able to write to it; its
16426# output is simply discarded. So we exec the FD to /dev/null,
16427# effectively closing config.log, so it can be properly (re)opened and
16428# appended to by config.status. When coming back to configure, we
16429# need to make the FD available again.
16430if test "$no_create" != yes; then
16431 ac_cs_success=:
16432 ac_config_status_args=
16433 test "$silent" = yes &&
16434 ac_config_status_args="$ac_config_status_args --quiet"
16435 exec 5>/dev/null
16436 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Bram Moolenaarc7453f52006-02-10 23:20:28 +000016437 exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16439 # would make configure fail if this is the last instruction.
16440 $ac_cs_success || { (exit 1); exit 1; }
16441fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016442
16443