blob: c109822693965581df4c23e0e483970384439d34 [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 Moolenaard5cdbeb2005-10-10 20:59:28 +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 MOC KDE_CONFIG KDE_LIBS KDE_INCLUDES KDE_PREFIX CXX CXXFLAGS ac_ct_CXX QT_LIBS QT_INCLUDES ROOTQT 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
773ac_env_CXX_set=${CXX+set}
774ac_env_CXX_value=$CXX
775ac_cv_env_CXX_set=${CXX+set}
776ac_cv_env_CXX_value=$CXX
777ac_env_CXXFLAGS_set=${CXXFLAGS+set}
778ac_env_CXXFLAGS_value=$CXXFLAGS
779ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
780ac_cv_env_CXXFLAGS_value=$CXXFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +0000781
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000782#
783# Report the --help message.
784#
785if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789\`configure' configures this package to adapt to many kinds of systems.
790
791Usage: $0 [OPTION]... [VAR=VALUE]...
792
793To assign environment variables (e.g., CC, CFLAGS...), specify them as
794VAR=VALUE. See below for descriptions of some of the useful variables.
795
796Defaults for the options are specified in brackets.
797
798Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809_ACEOF
810
811 cat <<_ACEOF
812Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818By default, \`make install' will install all the files in
819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821for instance \`--prefix=\$HOME'.
822
823For better control, use the options below.
824
825Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838_ACEOF
839
840 cat <<\_ACEOF
841
842X features:
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
845_ACEOF
846fi
847
848if test -n "$ac_init_help"; then
849
850 cat <<\_ACEOF
851
852Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --disable-darwin Disable Darwin (Mac OS X) support.
856 --disable-xsmp Disable XSMP session management
857 --disable-xsmp-interact Disable XSMP interaction
858 --enable-mzschemeinterp Include MzScheme interpreter.
859 --enable-perlinterp Include Perl interpreter.
860 --enable-pythoninterp Include Python interpreter.
861 --enable-tclinterp Include Tcl interpreter.
862 --enable-rubyinterp Include Ruby interpreter.
863 --enable-cscope Include cscope interface.
864 --enable-workshop Include Sun Visual Workshop support.
865 --disable-netbeans Disable NetBeans integration support.
866 --enable-sniff Include Sniff interface.
867 --enable-multibyte Include multibyte editing support.
868 --enable-hangulinput Include Hangul input support.
869 --enable-xim Include XIM input support.
870 --enable-fontset Include X fontset output support.
Bram Moolenaar2389c3c2005-05-22 22:07:59 +0000871 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/kde/motif/athena/neXtaw/photon/carbon
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000872 --enable-kde-check If auto-select GUI, check for KDE default=no
873 --enable-gtk-check If auto-select GUI, check for GTK default=yes
874 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
875 --enable-gnome-check If GTK GUI, check for GNOME default=no
876 --enable-motif-check If auto-select GUI, check for Motif default=yes
877 --enable-athena-check If auto-select GUI, check for Athena default=yes
878 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
879 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
880 --enable-kde-toolbar if KDE GUI is selected, enable a KDE-look toolbar default=no
881 --disable-rpath Disable rpath.
882 --disable-kdetest Do not try to compile and run a test KDE program
883 --disable-gtktest Do not try to compile and run a test GTK program
884 --disable-acl Don't check for ACL support.
885 --disable-gpm Don't use gpm (Linux mouse daemon).
886 --disable-nls Don't support NLS (gettext()).
887
888Optional Packages:
889 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
890 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
891 --with-vim-name=NAME what to call the Vim executable
892 --with-ex-name=NAME what to call the Ex executable
893 --with-view-name=NAME what to call the View executable
894 --with-global-runtime=DIR global runtime directory in 'runtimepath'
895 --with-modified-by=NAME name of who modified a release version
896 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
897 --with-compiledby=NAME name to show in :version message
898 --with-plthome=PLTHOME Use PLTHOME.
899 --with-python-config-dir=PATH Python's config directory
900 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
901 --with-x use the X Window System
902 --with-qt-dir=DIR Specify prefix of QT files
903 --with-qt-includes=DIR Specify location of Qt headers
904 --with-qt-libs=DIR Specify location of Qt libraries
905 --with-kde-prefix=PFX Prefix where KDE is installed (optional)
906 --with-kde-includes=DIR Specify location of KDE headers
907 --with-kde-libs=DIR Specify location of KDE libraries
908 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
909 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
910 --with-gnome-includes=DIR Specify location of GNOME headers
911 --with-gnome-libs=DIR Specify location of GNOME libs
912 --with-gnome Specify prefix for GNOME files
913 --with-motif-lib=STRING Library for Motif
914 --with-tlib=library terminal library to be used
915
916Some influential environment variables:
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
923 CPP C preprocessor
924 CXX C++ compiler command
925 CXXFLAGS C++ compiler flags
926
927Use these variables to override the choices made by `configure' or to help
928it to find libraries and programs with nonstandard names/locations.
929
930_ACEOF
931fi
932
933if test "$ac_init_help" = "recursive"; then
934 # If there are subdirs, report their specific --help.
935 ac_popdir=`pwd`
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937 test -d $ac_dir || continue
938 ac_builddir=.
939
940if test "$ac_dir" != .; then
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942 # A "../" for each directory in $ac_dir_suffix.
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944else
945 ac_dir_suffix= ac_top_builddir=
946fi
947
948case $srcdir in
949 .) # No --srcdir option. We are building in place.
950 ac_srcdir=.
951 if test -z "$ac_top_builddir"; then
952 ac_top_srcdir=.
953 else
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955 fi ;;
956 [\\/]* | ?:[\\/]* ) # Absolute path.
957 ac_srcdir=$srcdir$ac_dir_suffix;
958 ac_top_srcdir=$srcdir ;;
959 *) # Relative path.
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962esac
963
964# Do not use `cd foo && pwd` to compute absolute paths, because
965# the directories may not exist.
966case `pwd` in
967.) ac_abs_builddir="$ac_dir";;
968*)
969 case "$ac_dir" in
970 .) ac_abs_builddir=`pwd`;;
971 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
972 *) ac_abs_builddir=`pwd`/"$ac_dir";;
973 esac;;
974esac
975case $ac_abs_builddir in
976.) ac_abs_top_builddir=${ac_top_builddir}.;;
977*)
978 case ${ac_top_builddir}. in
979 .) ac_abs_top_builddir=$ac_abs_builddir;;
980 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
981 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
982 esac;;
983esac
984case $ac_abs_builddir in
985.) ac_abs_srcdir=$ac_srcdir;;
986*)
987 case $ac_srcdir in
988 .) ac_abs_srcdir=$ac_abs_builddir;;
989 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
990 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
991 esac;;
992esac
993case $ac_abs_builddir in
994.) ac_abs_top_srcdir=$ac_top_srcdir;;
995*)
996 case $ac_top_srcdir in
997 .) ac_abs_top_srcdir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
999 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1000 esac;;
1001esac
1002
1003 cd $ac_dir
1004 # Check for guested configure; otherwise get Cygnus style configure.
1005 if test -f $ac_srcdir/configure.gnu; then
1006 echo
1007 $SHELL $ac_srcdir/configure.gnu --help=recursive
1008 elif test -f $ac_srcdir/configure; then
1009 echo
1010 $SHELL $ac_srcdir/configure --help=recursive
1011 elif test -f $ac_srcdir/configure.ac ||
1012 test -f $ac_srcdir/configure.in; then
1013 echo
1014 $ac_configure --help
1015 else
1016 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1017 fi
1018 cd $ac_popdir
1019 done
1020fi
1021
1022test -n "$ac_init_help" && exit 0
1023if $ac_init_version; then
1024 cat <<\_ACEOF
1025
1026Copyright (C) 2003 Free Software Foundation, Inc.
1027This configure script is free software; the Free Software Foundation
1028gives unlimited permission to copy, distribute and modify it.
1029_ACEOF
1030 exit 0
1031fi
Bram Moolenaar78984f52005-08-01 07:19:10 +00001032exec 5>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001033cat >&5 <<_ACEOF
1034This file contains any messages produced by compilers while
1035running configure, to aid debugging if configure makes a mistake.
1036
1037It was created by $as_me, which was
1038generated by GNU Autoconf 2.59. Invocation command line was
1039
1040 $ $0 $@
1041
1042_ACEOF
1043{
1044cat <<_ASUNAME
1045## --------- ##
1046## Platform. ##
1047## --------- ##
1048
1049hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1050uname -m = `(uname -m) 2>/dev/null || echo unknown`
1051uname -r = `(uname -r) 2>/dev/null || echo unknown`
1052uname -s = `(uname -s) 2>/dev/null || echo unknown`
1053uname -v = `(uname -v) 2>/dev/null || echo unknown`
1054
1055/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1056/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1057
1058/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1059/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1060/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1061hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1062/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1063/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1064/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1065
1066_ASUNAME
1067
1068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1069for as_dir in $PATH
1070do
1071 IFS=$as_save_IFS
1072 test -z "$as_dir" && as_dir=.
1073 echo "PATH: $as_dir"
1074done
1075
1076} >&5
1077
1078cat >&5 <<_ACEOF
1079
1080
1081## ----------- ##
1082## Core tests. ##
1083## ----------- ##
1084
1085_ACEOF
1086
1087
1088# Keep a trace of the command line.
1089# Strip out --no-create and --no-recursion so they do not pile up.
1090# Strip out --silent because we don't want to record it for future runs.
1091# Also quote any args containing shell meta-characters.
1092# Make two passes to allow for proper duplicate-argument suppression.
1093ac_configure_args=
1094ac_configure_args0=
1095ac_configure_args1=
1096ac_sep=
1097ac_must_keep_next=false
1098for ac_pass in 1 2
1099do
1100 for ac_arg
1101 do
1102 case $ac_arg in
1103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 continue ;;
1107 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1108 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1109 esac
1110 case $ac_pass in
1111 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1112 2)
1113 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1114 if test $ac_must_keep_next = true; then
1115 ac_must_keep_next=false # Got value, back to normal.
1116 else
1117 case $ac_arg in
1118 *=* | --config-cache | -C | -disable-* | --disable-* \
1119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1121 | -with-* | --with-* | -without-* | --without-* | --x)
1122 case "$ac_configure_args0 " in
1123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1124 esac
1125 ;;
1126 -* ) ac_must_keep_next=true ;;
1127 esac
1128 fi
1129 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1130 # Get rid of the leading space.
1131 ac_sep=" "
1132 ;;
1133 esac
1134 done
1135done
1136$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1137$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1138
1139# When interrupted or exit'd, cleanup temporary files, and complete
1140# config.log. We remove comments because anyway the quotes in there
1141# would cause problems or look ugly.
1142# WARNING: Be sure not to use single quotes in there, as some shells,
1143# such as our DU 5.0 friend, will then `close' the trap.
1144trap 'exit_status=$?
1145 # Save into config.log some information that might help in debugging.
1146 {
1147 echo
1148
1149 cat <<\_ASBOX
1150## ---------------- ##
1151## Cache variables. ##
1152## ---------------- ##
1153_ASBOX
1154 echo
1155 # The following way of writing the cache mishandles newlines in values,
1156{
1157 (set) 2>&1 |
1158 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1159 *ac_space=\ *)
1160 sed -n \
1161 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1163 ;;
1164 *)
1165 sed -n \
1166 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1167 ;;
1168 esac;
1169}
1170 echo
1171
1172 cat <<\_ASBOX
1173## ----------------- ##
1174## Output variables. ##
1175## ----------------- ##
1176_ASBOX
1177 echo
1178 for ac_var in $ac_subst_vars
1179 do
1180 eval ac_val=$`echo $ac_var`
1181 echo "$ac_var='"'"'$ac_val'"'"'"
1182 done | sort
1183 echo
1184
1185 if test -n "$ac_subst_files"; then
1186 cat <<\_ASBOX
1187## ------------- ##
1188## Output files. ##
1189## ------------- ##
1190_ASBOX
1191 echo
1192 for ac_var in $ac_subst_files
1193 do
1194 eval ac_val=$`echo $ac_var`
1195 echo "$ac_var='"'"'$ac_val'"'"'"
1196 done | sort
1197 echo
1198 fi
1199
1200 if test -s confdefs.h; then
1201 cat <<\_ASBOX
1202## ----------- ##
1203## confdefs.h. ##
1204## ----------- ##
1205_ASBOX
1206 echo
1207 sed "/^$/d" confdefs.h | sort
1208 echo
1209 fi
1210 test "$ac_signal" != 0 &&
1211 echo "$as_me: caught signal $ac_signal"
1212 echo "$as_me: exit $exit_status"
1213 } >&5
1214 rm -f core *.core &&
1215 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1216 exit $exit_status
1217 ' 0
1218for ac_signal in 1 2 13 15; do
1219 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1220done
1221ac_signal=0
1222
1223# confdefs.h avoids OS command line length limits that DEFS can exceed.
1224rm -rf conftest* confdefs.h
1225# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1226echo >confdefs.h
1227
1228# Predefined preprocessor variables.
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_NAME "$PACKAGE_NAME"
1232_ACEOF
1233
1234
1235cat >>confdefs.h <<_ACEOF
1236#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1237_ACEOF
1238
1239
1240cat >>confdefs.h <<_ACEOF
1241#define PACKAGE_VERSION "$PACKAGE_VERSION"
1242_ACEOF
1243
1244
1245cat >>confdefs.h <<_ACEOF
1246#define PACKAGE_STRING "$PACKAGE_STRING"
1247_ACEOF
1248
1249
1250cat >>confdefs.h <<_ACEOF
1251#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1252_ACEOF
1253
1254
1255# Let the site file select an alternate cache file if it wants to.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001256# Prefer explicitly selected file to automatically selected ones.
1257if test -z "$CONFIG_SITE"; then
1258 if test "x$prefix" != xNONE; then
1259 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1260 else
1261 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1262 fi
1263fi
1264for ac_site_file in $CONFIG_SITE; do
1265 if test -r "$ac_site_file"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001266 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1267echo "$as_me: loading site script $ac_site_file" >&6;}
1268 sed 's/^/| /' "$ac_site_file" >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00001269 . "$ac_site_file"
1270 fi
1271done
1272
1273if test -r "$cache_file"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001274 # Some versions of bash will fail to source /dev/null (special
1275 # files actually), so we avoid doing that.
1276 if test -f "$cache_file"; then
1277 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1278echo "$as_me: loading cache $cache_file" >&6;}
1279 case $cache_file in
1280 [\\/]* | ?:[\\/]* ) . $cache_file;;
1281 *) . ./$cache_file;;
1282 esac
1283 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001284else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001285 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1286echo "$as_me: creating cache $cache_file" >&6;}
1287 >$cache_file
1288fi
1289
1290# Check that the precious variables saved in the cache have kept the same
1291# value.
1292ac_cache_corrupted=false
1293for ac_var in `(set) 2>&1 |
1294 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1295 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1296 eval ac_new_set=\$ac_env_${ac_var}_set
1297 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1298 eval ac_new_val="\$ac_env_${ac_var}_value"
1299 case $ac_old_set,$ac_new_set in
1300 set,)
1301 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1302echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1303 ac_cache_corrupted=: ;;
1304 ,set)
1305 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1306echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1307 ac_cache_corrupted=: ;;
1308 ,);;
1309 *)
1310 if test "x$ac_old_val" != "x$ac_new_val"; then
1311 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1312echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1313 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1314echo "$as_me: former value: $ac_old_val" >&2;}
1315 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1316echo "$as_me: current value: $ac_new_val" >&2;}
1317 ac_cache_corrupted=:
1318 fi;;
1319 esac
1320 # Pass precious variables to config.status.
1321 if test "$ac_new_set" = set; then
1322 case $ac_new_val in
1323 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1325 *) ac_arg=$ac_var=$ac_new_val ;;
1326 esac
1327 case " $ac_configure_args " in
1328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1329 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1330 esac
1331 fi
1332done
1333if $ac_cache_corrupted; then
1334 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1335echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1336 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1337echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1338 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00001339fi
1340
1341ac_ext=c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001342ac_cpp='$CPP $CPPFLAGS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1345ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bram Moolenaar071d4272004-06-13 20:20:40 +00001346
1347
1348
1349
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1366
1367
1368cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001369#define UNIX 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001370_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001371
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001372echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1373echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1374set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1375if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1376 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001377else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001378 cat >conftest.make <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001379all:
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001380 @echo 'ac_maketemp="$(MAKE)"'
1381_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001382# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001383eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Bram Moolenaar071d4272004-06-13 20:20:40 +00001384if test -n "$ac_maketemp"; then
1385 eval ac_cv_prog_make_${ac_make}_set=yes
1386else
1387 eval ac_cv_prog_make_${ac_make}_set=no
1388fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001389rm -f conftest.make
Bram Moolenaar071d4272004-06-13 20:20:40 +00001390fi
1391if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001392 echo "$as_me:$LINENO: result: yes" >&5
1393echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001394 SET_MAKE=
1395else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001396 echo "$as_me:$LINENO: result: no" >&5
1397echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001398 SET_MAKE="MAKE=${MAKE-make}"
1399fi
1400
1401
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001402ac_ext=c
1403ac_cpp='$CPP $CPPFLAGS'
1404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1406ac_compiler_gnu=$ac_cv_c_compiler_gnu
1407if test -n "$ac_tool_prefix"; then
1408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1409set dummy ${ac_tool_prefix}gcc; ac_word=$2
1410echo "$as_me:$LINENO: checking for $ac_word" >&5
1411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412if test "${ac_cv_prog_CC+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001414else
1415 if test -n "$CC"; then
1416 ac_cv_prog_CC="$CC" # Let the user override the test.
1417else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419for as_dir in $PATH
1420do
1421 IFS=$as_save_IFS
1422 test -z "$as_dir" && as_dir=.
1423 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427 break 2
1428 fi
1429done
1430done
1431
Bram Moolenaar071d4272004-06-13 20:20:40 +00001432fi
1433fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001434CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001435if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001436 echo "$as_me:$LINENO: result: $CC" >&5
1437echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001438else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001439 echo "$as_me:$LINENO: result: no" >&5
1440echo "${ECHO_T}no" >&6
1441fi
1442
1443fi
1444if test -z "$ac_cv_prog_CC"; then
1445 ac_ct_CC=$CC
1446 # Extract the first word of "gcc", so it can be a program name with args.
1447set dummy gcc; ac_word=$2
1448echo "$as_me:$LINENO: checking for $ac_word" >&5
1449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1452else
1453 if test -n "$ac_ct_CC"; then
1454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1455else
1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457for as_dir in $PATH
1458do
1459 IFS=$as_save_IFS
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_ac_ct_CC="gcc"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 break 2
1466 fi
1467done
1468done
1469
1470fi
1471fi
1472ac_ct_CC=$ac_cv_prog_ac_ct_CC
1473if test -n "$ac_ct_CC"; then
1474 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1475echo "${ECHO_T}$ac_ct_CC" >&6
1476else
1477 echo "$as_me:$LINENO: result: no" >&5
1478echo "${ECHO_T}no" >&6
1479fi
1480
1481 CC=$ac_ct_CC
1482else
1483 CC="$ac_cv_prog_CC"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001484fi
1485
1486if test -z "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001487 if test -n "$ac_tool_prefix"; then
1488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1489set dummy ${ac_tool_prefix}cc; ac_word=$2
1490echo "$as_me:$LINENO: checking for $ac_word" >&5
1491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001494else
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1497else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499for as_dir in $PATH
1500do
1501 IFS=$as_save_IFS
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_CC="${ac_tool_prefix}cc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 break 2
1508 fi
1509done
1510done
1511
1512fi
1513fi
1514CC=$ac_cv_prog_CC
1515if test -n "$CC"; then
1516 echo "$as_me:$LINENO: result: $CC" >&5
1517echo "${ECHO_T}$CC" >&6
1518else
1519 echo "$as_me:$LINENO: result: no" >&5
1520echo "${ECHO_T}no" >&6
1521fi
1522
1523fi
1524if test -z "$ac_cv_prog_CC"; then
1525 ac_ct_CC=$CC
1526 # Extract the first word of "cc", so it can be a program name with args.
1527set dummy cc; ac_word=$2
1528echo "$as_me:$LINENO: checking for $ac_word" >&5
1529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532else
1533 if test -n "$ac_ct_CC"; then
1534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1535else
1536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537for as_dir in $PATH
1538do
1539 IFS=$as_save_IFS
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_ac_ct_CC="cc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 break 2
1546 fi
1547done
1548done
1549
1550fi
1551fi
1552ac_ct_CC=$ac_cv_prog_ac_ct_CC
1553if test -n "$ac_ct_CC"; then
1554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1555echo "${ECHO_T}$ac_ct_CC" >&6
1556else
1557 echo "$as_me:$LINENO: result: no" >&5
1558echo "${ECHO_T}no" >&6
1559fi
1560
1561 CC=$ac_ct_CC
1562else
1563 CC="$ac_cv_prog_CC"
1564fi
1565
1566fi
1567if test -z "$CC"; then
1568 # Extract the first word of "cc", so it can be a program name with args.
1569set dummy cc; ac_word=$2
1570echo "$as_me:$LINENO: checking for $ac_word" >&5
1571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572if test "${ac_cv_prog_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1577else
Bram Moolenaar071d4272004-06-13 20:20:40 +00001578 ac_prog_rejected=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580for as_dir in $PATH
1581do
1582 IFS=$as_save_IFS
1583 test -z "$as_dir" && as_dir=.
1584 for ac_exec_ext in '' $ac_executable_extensions; do
1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1587 ac_prog_rejected=yes
1588 continue
1589 fi
1590 ac_cv_prog_CC="cc"
1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 break 2
1593 fi
1594done
1595done
1596
Bram Moolenaar071d4272004-06-13 20:20:40 +00001597if test $ac_prog_rejected = yes; then
1598 # We found a bogon in the path, so make sure we never use it.
1599 set dummy $ac_cv_prog_CC
1600 shift
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001601 if test $# != 0; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00001602 # We chose a different compiler from the bogus one.
1603 # However, it has the same basename, so the bogon will be chosen
1604 # first if we set CC to just the basename; use the full file name.
1605 shift
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001607 fi
1608fi
1609fi
1610fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001611CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001612if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001613 echo "$as_me:$LINENO: result: $CC" >&5
1614echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001615else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001616 echo "$as_me:$LINENO: result: no" >&5
1617echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001618fi
1619
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001620fi
1621if test -z "$CC"; then
1622 if test -n "$ac_tool_prefix"; then
1623 for ac_prog in cl
1624 do
1625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1627echo "$as_me:$LINENO: checking for $ac_word" >&5
1628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001631else
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1634else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
1645 fi
1646done
1647done
1648
Bram Moolenaar071d4272004-06-13 20:20:40 +00001649fi
1650fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001651CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001652if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001653 echo "$as_me:$LINENO: result: $CC" >&5
1654echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001655else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001656 echo "$as_me:$LINENO: result: no" >&5
1657echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001658fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001659
1660 test -n "$CC" && break
1661 done
1662fi
1663if test -z "$CC"; then
1664 ac_ct_CC=$CC
1665 for ac_prog in cl
1666do
1667 # Extract the first word of "$ac_prog", so it can be a program name with args.
1668set dummy $ac_prog; ac_word=$2
1669echo "$as_me:$LINENO: checking for $ac_word" >&5
1670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1673else
1674 if test -n "$ac_ct_CC"; then
1675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1676else
1677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678for as_dir in $PATH
1679do
1680 IFS=$as_save_IFS
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_ac_ct_CC="$ac_prog"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 break 2
Bram Moolenaar071d4272004-06-13 20:20:40 +00001687 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001688done
1689done
1690
1691fi
1692fi
1693ac_ct_CC=$ac_cv_prog_ac_ct_CC
1694if test -n "$ac_ct_CC"; then
1695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1696echo "${ECHO_T}$ac_ct_CC" >&6
1697else
1698 echo "$as_me:$LINENO: result: no" >&5
1699echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001700fi
1701
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001702 test -n "$ac_ct_CC" && break
1703done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001704
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001705 CC=$ac_ct_CC
1706fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001707
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001708fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001709
Bram Moolenaar071d4272004-06-13 20:20:40 +00001710
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001711test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1712See \`config.log' for more details." >&5
1713echo "$as_me: error: no acceptable C compiler found in \$PATH
1714See \`config.log' for more details." >&2;}
1715 { (exit 1); exit 1; }; }
1716
1717# Provide some information about the compiler.
1718echo "$as_me:$LINENO:" \
1719 "checking for C compiler version" >&5
1720ac_compiler=`set X $ac_compile; echo $2`
1721{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1722 (eval $ac_compiler --version </dev/null >&5) 2>&5
1723 ac_status=$?
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }
1726{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1727 (eval $ac_compiler -v </dev/null >&5) 2>&5
1728 ac_status=$?
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }
1731{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1732 (eval $ac_compiler -V </dev/null >&5) 2>&5
1733 ac_status=$?
1734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1735 (exit $ac_status); }
1736
1737cat >conftest.$ac_ext <<_ACEOF
1738/* confdefs.h. */
1739_ACEOF
1740cat confdefs.h >>conftest.$ac_ext
1741cat >>conftest.$ac_ext <<_ACEOF
1742/* end confdefs.h. */
1743
1744int
1745main ()
1746{
1747
1748 ;
1749 return 0;
1750}
1751_ACEOF
1752ac_clean_files_save=$ac_clean_files
1753ac_clean_files="$ac_clean_files a.out a.exe b.out"
1754# Try to create an executable without -o first, disregard a.out.
1755# It will help us diagnose broken compilers, and finding out an intuition
1756# of exeext.
1757echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1758echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1759ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1760if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1761 (eval $ac_link_default) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }; then
1765 # Find the output, starting from the most likely. This scheme is
1766# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1767# resort.
1768
1769# Be careful to initialize this variable, since it used to be cached.
1770# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1771ac_cv_exeext=
1772# b.out is created by i960 compilers.
1773for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1774do
1775 test -f "$ac_file" || continue
1776 case $ac_file in
1777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1778 ;;
1779 conftest.$ac_ext )
1780 # This is the source file.
1781 ;;
1782 [ab].out )
1783 # We found the default executable, but exeext='' is most
1784 # certainly right.
1785 break;;
1786 *.* )
1787 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1788 # FIXME: I believe we export ac_cv_exeext for Libtool,
1789 # but it would be cool to find out if it's true. Does anybody
1790 # maintain Libtool? --akim.
1791 export ac_cv_exeext
1792 break;;
1793 * )
1794 break;;
1795 esac
1796done
1797else
1798 echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1802See \`config.log' for more details." >&5
1803echo "$as_me: error: C compiler cannot create executables
1804See \`config.log' for more details." >&2;}
1805 { (exit 77); exit 77; }; }
1806fi
1807
1808ac_exeext=$ac_cv_exeext
1809echo "$as_me:$LINENO: result: $ac_file" >&5
1810echo "${ECHO_T}$ac_file" >&6
1811
1812# Check the compiler produces executables we can run. If not, either
1813# the compiler is broken, or we cross compile.
1814echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1815echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1816# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1817# If not cross compiling, check that we can run a simple program.
1818if test "$cross_compiling" != yes; then
1819 if { ac_try='./$ac_file'
1820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1821 (eval $ac_try) 2>&5
1822 ac_status=$?
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }; }; then
1825 cross_compiling=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00001826 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001827 if test "$cross_compiling" = maybe; then
1828 cross_compiling=yes
1829 else
1830 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1831If you meant to cross compile, use \`--host'.
1832See \`config.log' for more details." >&5
1833echo "$as_me: error: cannot run C compiled programs.
1834If you meant to cross compile, use \`--host'.
1835See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1837 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001838 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001839fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001840echo "$as_me:$LINENO: result: yes" >&5
1841echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001842
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001843rm -f a.out a.exe conftest$ac_cv_exeext b.out
1844ac_clean_files=$ac_clean_files_save
1845# Check the compiler produces executables we can run. If not, either
1846# the compiler is broken, or we cross compile.
1847echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1848echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1849echo "$as_me:$LINENO: result: $cross_compiling" >&5
1850echo "${ECHO_T}$cross_compiling" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001851
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001852echo "$as_me:$LINENO: checking for suffix of executables" >&5
1853echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1855 (eval $ac_link) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; then
1859 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1860# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1861# work properly (i.e., refer to `conftest.exe'), while it won't with
1862# `rm'.
1863for ac_file in conftest.exe conftest conftest.*; do
1864 test -f "$ac_file" || continue
1865 case $ac_file in
1866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868 export ac_cv_exeext
1869 break;;
1870 * ) break;;
1871 esac
1872done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001873else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1875See \`config.log' for more details." >&5
1876echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1877See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }
1879fi
1880
1881rm -f conftest$ac_cv_exeext
1882echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1883echo "${ECHO_T}$ac_cv_exeext" >&6
1884
1885rm -f conftest.$ac_ext
1886EXEEXT=$ac_cv_exeext
1887ac_exeext=$EXEEXT
1888echo "$as_me:$LINENO: checking for suffix of object files" >&5
1889echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1890if test "${ac_cv_objext+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893 cat >conftest.$ac_ext <<_ACEOF
1894/* confdefs.h. */
1895_ACEOF
1896cat confdefs.h >>conftest.$ac_ext
1897cat >>conftest.$ac_ext <<_ACEOF
1898/* end confdefs.h. */
1899
1900int
1901main ()
1902{
1903
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908rm -f conftest.o conftest.obj
1909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1915 case $ac_file in
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1918 break;;
1919 esac
1920done
1921else
1922 echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1926See \`config.log' for more details." >&5
1927echo "$as_me: error: cannot compute suffix of object files: cannot compile
1928See \`config.log' for more details." >&2;}
1929 { (exit 1); exit 1; }; }
1930fi
1931
1932rm -f conftest.$ac_cv_objext conftest.$ac_ext
1933fi
1934echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1935echo "${ECHO_T}$ac_cv_objext" >&6
1936OBJEXT=$ac_cv_objext
1937ac_objext=$OBJEXT
1938echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1939echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1940if test "${ac_cv_c_compiler_gnu+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1942else
1943 cat >conftest.$ac_ext <<_ACEOF
1944/* confdefs.h. */
1945_ACEOF
1946cat confdefs.h >>conftest.$ac_ext
1947cat >>conftest.$ac_ext <<_ACEOF
1948/* end confdefs.h. */
1949
1950int
1951main ()
1952{
1953#ifndef __GNUC__
1954 choke me
Bram Moolenaar071d4272004-06-13 20:20:40 +00001955#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00001956
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001957 ;
1958 return 0;
1959}
1960_ACEOF
1961rm -f conftest.$ac_objext
1962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>conftest.er1
1964 ac_status=$?
1965 grep -v '^ *+' conftest.er1 >conftest.err
1966 rm -f conftest.er1
1967 cat conftest.err >&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); } &&
1970 { ac_try='test -z "$ac_c_werror_flag"
1971 || test ! -s conftest.err'
1972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1973 (eval $ac_try) 2>&5
1974 ac_status=$?
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; } &&
1977 { ac_try='test -s conftest.$ac_objext'
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 (eval $ac_try) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; }; then
1983 ac_compiler_gnu=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00001984else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001985 echo "$as_me: failed program was:" >&5
1986sed 's/^/| /' conftest.$ac_ext >&5
1987
1988ac_compiler_gnu=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00001989fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1991ac_cv_c_compiler_gnu=$ac_compiler_gnu
Bram Moolenaar071d4272004-06-13 20:20:40 +00001992
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001993fi
1994echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1995echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1996GCC=`test $ac_compiler_gnu = yes && echo yes`
1997ac_test_CFLAGS=${CFLAGS+set}
1998ac_save_CFLAGS=$CFLAGS
1999CFLAGS="-g"
2000echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2001echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2002if test "${ac_cv_prog_cc_g+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002004else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002005 cat >conftest.$ac_ext <<_ACEOF
2006/* confdefs.h. */
2007_ACEOF
2008cat confdefs.h >>conftest.$ac_ext
2009cat >>conftest.$ac_ext <<_ACEOF
2010/* end confdefs.h. */
2011
2012int
2013main ()
2014{
2015
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020rm -f conftest.$ac_objext
2021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>conftest.er1
2023 ac_status=$?
2024 grep -v '^ *+' conftest.er1 >conftest.err
2025 rm -f conftest.er1
2026 cat conftest.err >&5
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); } &&
2029 { ac_try='test -z "$ac_c_werror_flag"
2030 || test ! -s conftest.err'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; } &&
2036 { ac_try='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038 (eval $ac_try) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00002042 ac_cv_prog_cc_g=yes
2043else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002044 echo "$as_me: failed program was:" >&5
2045sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00002046
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002047ac_cv_prog_cc_g=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002048fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2050fi
2051echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2052echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002053if test "$ac_test_CFLAGS" = set; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002054 CFLAGS=$ac_save_CFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00002055elif test $ac_cv_prog_cc_g = yes; then
2056 if test "$GCC" = yes; then
2057 CFLAGS="-g -O2"
2058 else
2059 CFLAGS="-g"
2060 fi
2061else
2062 if test "$GCC" = yes; then
2063 CFLAGS="-O2"
2064 else
2065 CFLAGS=
2066 fi
2067fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002068echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2069echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2070if test "${ac_cv_prog_cc_stdc+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073 ac_cv_prog_cc_stdc=no
2074ac_save_CC=$CC
2075cat >conftest.$ac_ext <<_ACEOF
2076/* confdefs.h. */
2077_ACEOF
2078cat confdefs.h >>conftest.$ac_ext
2079cat >>conftest.$ac_ext <<_ACEOF
2080/* end confdefs.h. */
2081#include <stdarg.h>
2082#include <stdio.h>
2083#include <sys/types.h>
2084#include <sys/stat.h>
2085/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2086struct buf { int x; };
2087FILE * (*rcsopen) (struct buf *, struct stat *, int);
2088static char *e (p, i)
2089 char **p;
2090 int i;
2091{
2092 return p[i];
2093}
2094static char *f (char * (*g) (char **, int), char **p, ...)
2095{
2096 char *s;
2097 va_list v;
2098 va_start (v,p);
2099 s = g (p, va_arg (v,int));
2100 va_end (v);
2101 return s;
2102}
2103
2104/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2105 function prototypes and stuff, but not '\xHH' hex character constants.
2106 These don't provoke an error unfortunately, instead are silently treated
2107 as 'x'. The following induces an error, until -std1 is added to get
2108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2109 array size at least. It's necessary to write '\x00'==0 to get something
2110 that's true only with -std1. */
2111int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2112
2113int test (int i, double x);
2114struct s1 {int (*f) (int a);};
2115struct s2 {int (*f) (double a);};
2116int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2117int argc;
2118char **argv;
2119int
2120main ()
2121{
2122return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2123 ;
2124 return 0;
2125}
2126_ACEOF
2127# Don't try gcc -ansi; that turns off useful extensions and
2128# breaks some systems' header files.
2129# AIX -qlanglvl=ansi
2130# Ultrix and OSF/1 -std1
2131# HP-UX 10.20 and later -Ae
2132# HP-UX older versions -Aa -D_HPUX_SOURCE
2133# SVR4 -Xc -D__EXTENSIONS__
2134for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2135do
2136 CC="$ac_save_CC $ac_arg"
2137 rm -f conftest.$ac_objext
2138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2140 ac_status=$?
2141 grep -v '^ *+' conftest.er1 >conftest.err
2142 rm -f conftest.er1
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -z "$ac_c_werror_flag"
2147 || test ! -s conftest.err'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 (eval $ac_try) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; } &&
2153 { ac_try='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 (eval $ac_try) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2159 ac_cv_prog_cc_stdc=$ac_arg
2160break
2161else
2162 echo "$as_me: failed program was:" >&5
2163sed 's/^/| /' conftest.$ac_ext >&5
2164
2165fi
2166rm -f conftest.err conftest.$ac_objext
2167done
2168rm -f conftest.$ac_ext conftest.$ac_objext
2169CC=$ac_save_CC
2170
2171fi
2172
2173case "x$ac_cv_prog_cc_stdc" in
2174 x|xno)
2175 echo "$as_me:$LINENO: result: none needed" >&5
2176echo "${ECHO_T}none needed" >&6 ;;
2177 *)
2178 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2179echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2180 CC="$CC $ac_cv_prog_cc_stdc" ;;
2181esac
2182
2183# Some people use a C++ compiler to compile C. Since we use `exit',
2184# in C++ we need to declare it. In case someone uses the same compiler
2185# for both compiling C and C++ we need to have the C++ compiler decide
2186# the declaration of exit, since it's the most demanding environment.
2187cat >conftest.$ac_ext <<_ACEOF
2188#ifndef __cplusplus
2189 choke me
2190#endif
2191_ACEOF
2192rm -f conftest.$ac_objext
2193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>conftest.er1
2195 ac_status=$?
2196 grep -v '^ *+' conftest.er1 >conftest.err
2197 rm -f conftest.er1
2198 cat conftest.err >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try='test -z "$ac_c_werror_flag"
2202 || test ! -s conftest.err'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 (eval $ac_try) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; } &&
2208 { ac_try='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2214 for ac_declaration in \
2215 '' \
2216 'extern "C" void std::exit (int) throw (); using std::exit;' \
2217 'extern "C" void std::exit (int); using std::exit;' \
2218 'extern "C" void exit (int) throw ();' \
2219 'extern "C" void exit (int);' \
2220 'void exit (int);'
2221do
2222 cat >conftest.$ac_ext <<_ACEOF
2223/* confdefs.h. */
2224_ACEOF
2225cat confdefs.h >>conftest.$ac_ext
2226cat >>conftest.$ac_ext <<_ACEOF
2227/* end confdefs.h. */
2228$ac_declaration
2229#include <stdlib.h>
2230int
2231main ()
2232{
2233exit (42);
2234 ;
2235 return 0;
2236}
2237_ACEOF
2238rm -f conftest.$ac_objext
2239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240 (eval $ac_compile) 2>conftest.er1
2241 ac_status=$?
2242 grep -v '^ *+' conftest.er1 >conftest.err
2243 rm -f conftest.er1
2244 cat conftest.err >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); } &&
2247 { ac_try='test -z "$ac_c_werror_flag"
2248 || test ! -s conftest.err'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 (eval $ac_try) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; } &&
2254 { ac_try='test -s conftest.$ac_objext'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 (eval $ac_try) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2260 :
2261else
2262 echo "$as_me: failed program was:" >&5
2263sed 's/^/| /' conftest.$ac_ext >&5
2264
2265continue
2266fi
2267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2268 cat >conftest.$ac_ext <<_ACEOF
2269/* confdefs.h. */
2270_ACEOF
2271cat confdefs.h >>conftest.$ac_ext
2272cat >>conftest.$ac_ext <<_ACEOF
2273/* end confdefs.h. */
2274$ac_declaration
2275int
2276main ()
2277{
2278exit (42);
2279 ;
2280 return 0;
2281}
2282_ACEOF
2283rm -f conftest.$ac_objext
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2286 ac_status=$?
2287 grep -v '^ *+' conftest.er1 >conftest.err
2288 rm -f conftest.er1
2289 cat conftest.err >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -z "$ac_c_werror_flag"
2293 || test ! -s conftest.err'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 (eval $ac_try) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2305 break
2306else
2307 echo "$as_me: failed program was:" >&5
2308sed 's/^/| /' conftest.$ac_ext >&5
2309
2310fi
2311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312done
2313rm -f conftest*
2314if test -n "$ac_declaration"; then
2315 echo '#ifdef __cplusplus' >>confdefs.h
2316 echo $ac_declaration >>confdefs.h
2317 echo '#endif' >>confdefs.h
2318fi
2319
2320else
2321 echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324fi
2325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326ac_ext=c
2327ac_cpp='$CPP $CPPFLAGS'
2328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2330ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331 ac_ext=c
2332ac_cpp='$CPP $CPPFLAGS'
2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2337echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002338# On Suns, sometimes $CPP names a directory.
2339if test -n "$CPP" && test -d "$CPP"; then
2340 CPP=
2341fi
2342if test -z "$CPP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002343 if test "${ac_cv_prog_CPP+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002345else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002346 # Double quotes because CPP needs to be expanded
2347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2348 do
2349 ac_preproc_ok=false
2350for ac_c_preproc_warn_flag in '' yes
2351do
2352 # Use a header file that comes with gcc, so configuring glibc
2353 # with a fresh cross-compiler works.
2354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2355 # <limits.h> exists even on freestanding compilers.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002356 # On the NeXT, cc -E runs the code through the compiler's parser,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002357 # not just through cpp. "Syntax error" is here to catch this case.
2358 cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h. */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h. */
2364#ifdef __STDC__
2365# include <limits.h>
2366#else
2367# include <assert.h>
2368#endif
2369 Syntax error
2370_ACEOF
2371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2373 ac_status=$?
2374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } >/dev/null; then
2379 if test -s conftest.err; then
2380 ac_cpp_err=$ac_c_preproc_warn_flag
2381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Bram Moolenaar071d4272004-06-13 20:20:40 +00002382 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002383 ac_cpp_err=
Bram Moolenaar071d4272004-06-13 20:20:40 +00002384 fi
2385else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002386 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002387fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002388if test -z "$ac_cpp_err"; then
2389 :
2390else
2391 echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 # Broken: fails on valid input.
2395continue
2396fi
2397rm -f conftest.err conftest.$ac_ext
2398
2399 # OK, works on sane cases. Now check whether non-existent headers
2400 # can be detected and how.
2401 cat >conftest.$ac_ext <<_ACEOF
2402/* confdefs.h. */
2403_ACEOF
2404cat confdefs.h >>conftest.$ac_ext
2405cat >>conftest.$ac_ext <<_ACEOF
2406/* end confdefs.h. */
2407#include <ac_nonexistent.h>
2408_ACEOF
2409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } >/dev/null; then
2417 if test -s conftest.err; then
2418 ac_cpp_err=$ac_c_preproc_warn_flag
2419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2420 else
2421 ac_cpp_err=
2422 fi
2423else
2424 ac_cpp_err=yes
2425fi
2426if test -z "$ac_cpp_err"; then
2427 # Broken: success on invalid input.
2428continue
2429else
2430 echo "$as_me: failed program was:" >&5
2431sed 's/^/| /' conftest.$ac_ext >&5
2432
2433 # Passes both tests.
2434ac_preproc_ok=:
2435break
2436fi
2437rm -f conftest.err conftest.$ac_ext
2438
2439done
2440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2441rm -f conftest.err conftest.$ac_ext
2442if $ac_preproc_ok; then
2443 break
2444fi
2445
2446 done
2447 ac_cv_prog_CPP=$CPP
2448
2449fi
2450 CPP=$ac_cv_prog_CPP
2451else
2452 ac_cv_prog_CPP=$CPP
2453fi
2454echo "$as_me:$LINENO: result: $CPP" >&5
2455echo "${ECHO_T}$CPP" >&6
2456ac_preproc_ok=false
2457for ac_c_preproc_warn_flag in '' yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002458do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002459 # Use a header file that comes with gcc, so configuring glibc
2460 # with a fresh cross-compiler works.
2461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2462 # <limits.h> exists even on freestanding compilers.
2463 # On the NeXT, cc -E runs the code through the compiler's parser,
2464 # not just through cpp. "Syntax error" is here to catch this case.
2465 cat >conftest.$ac_ext <<_ACEOF
2466/* confdefs.h. */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
2470/* end confdefs.h. */
2471#ifdef __STDC__
2472# include <limits.h>
2473#else
2474# include <assert.h>
2475#endif
2476 Syntax error
2477_ACEOF
2478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2480 ac_status=$?
2481 grep -v '^ *+' conftest.er1 >conftest.err
2482 rm -f conftest.er1
2483 cat conftest.err >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } >/dev/null; then
2486 if test -s conftest.err; then
2487 ac_cpp_err=$ac_c_preproc_warn_flag
2488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2489 else
2490 ac_cpp_err=
2491 fi
2492else
2493 ac_cpp_err=yes
2494fi
2495if test -z "$ac_cpp_err"; then
2496 :
2497else
2498 echo "$as_me: failed program was:" >&5
2499sed 's/^/| /' conftest.$ac_ext >&5
2500
2501 # Broken: fails on valid input.
2502continue
2503fi
2504rm -f conftest.err conftest.$ac_ext
2505
2506 # OK, works on sane cases. Now check whether non-existent headers
2507 # can be detected and how.
2508 cat >conftest.$ac_ext <<_ACEOF
2509/* confdefs.h. */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
2513/* end confdefs.h. */
2514#include <ac_nonexistent.h>
2515_ACEOF
2516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2518 ac_status=$?
2519 grep -v '^ *+' conftest.er1 >conftest.err
2520 rm -f conftest.er1
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } >/dev/null; then
2524 if test -s conftest.err; then
2525 ac_cpp_err=$ac_c_preproc_warn_flag
2526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2527 else
2528 ac_cpp_err=
2529 fi
2530else
2531 ac_cpp_err=yes
2532fi
2533if test -z "$ac_cpp_err"; then
2534 # Broken: success on invalid input.
2535continue
2536else
2537 echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 # Passes both tests.
2541ac_preproc_ok=:
2542break
2543fi
2544rm -f conftest.err conftest.$ac_ext
2545
2546done
2547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2548rm -f conftest.err conftest.$ac_ext
2549if $ac_preproc_ok; then
2550 :
2551else
2552 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2553See \`config.log' for more details." >&5
2554echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2555See \`config.log' for more details." >&2;}
2556 { (exit 1); exit 1; }; }
2557fi
2558
2559ac_ext=c
2560ac_cpp='$CPP $CPPFLAGS'
2561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564
2565
2566echo "$as_me:$LINENO: checking for egrep" >&5
2567echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2568if test "${ac_cv_prog_egrep+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
2571 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2572 then ac_cv_prog_egrep='grep -E'
2573 else ac_cv_prog_egrep='egrep'
2574 fi
2575fi
2576echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2577echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2578 EGREP=$ac_cv_prog_egrep
2579
2580
2581cat >conftest.$ac_ext <<_ACEOF
2582/* confdefs.h. */
2583_ACEOF
2584cat confdefs.h >>conftest.$ac_ext
2585cat >>conftest.$ac_ext <<_ACEOF
2586/* end confdefs.h. */
2587
2588_ACEOF
2589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2590 $EGREP "" >/dev/null 2>&1; then
2591 :
2592fi
2593rm -f conftest*
2594 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2595echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2596if test "${ac_cv_search_strerror+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599 ac_func_search_save_LIBS=$LIBS
2600ac_cv_search_strerror=no
2601cat >conftest.$ac_ext <<_ACEOF
2602/* confdefs.h. */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h. */
2607
2608/* Override any gcc2 internal prototype to avoid an error. */
2609#ifdef __cplusplus
2610extern "C"
2611#endif
2612/* We use char because int might match the return type of a gcc2
2613 builtin and then its argument prototype would still apply. */
2614char strerror ();
2615int
2616main ()
2617{
2618strerror ();
2619 ;
2620 return 0;
2621}
2622_ACEOF
2623rm -f conftest.$ac_objext conftest$ac_exeext
2624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2625 (eval $ac_link) 2>conftest.er1
2626 ac_status=$?
2627 grep -v '^ *+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest$ac_exeext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 ac_cv_search_strerror="none required"
2646else
2647 echo "$as_me: failed program was:" >&5
2648sed 's/^/| /' conftest.$ac_ext >&5
2649
2650fi
2651rm -f conftest.err conftest.$ac_objext \
2652 conftest$ac_exeext conftest.$ac_ext
2653if test "$ac_cv_search_strerror" = no; then
2654 for ac_lib in cposix; do
2655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2656 cat >conftest.$ac_ext <<_ACEOF
2657/* confdefs.h. */
2658_ACEOF
2659cat confdefs.h >>conftest.$ac_ext
2660cat >>conftest.$ac_ext <<_ACEOF
2661/* end confdefs.h. */
2662
2663/* Override any gcc2 internal prototype to avoid an error. */
2664#ifdef __cplusplus
2665extern "C"
2666#endif
2667/* We use char because int might match the return type of a gcc2
2668 builtin and then its argument prototype would still apply. */
2669char strerror ();
2670int
2671main ()
2672{
2673strerror ();
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678rm -f conftest.$ac_objext conftest$ac_exeext
2679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2680 (eval $ac_link) 2>conftest.er1
2681 ac_status=$?
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try='test -s conftest$ac_exeext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_cv_search_strerror="-l$ac_lib"
2701break
2702else
2703 echo "$as_me: failed program was:" >&5
2704sed 's/^/| /' conftest.$ac_ext >&5
2705
2706fi
2707rm -f conftest.err conftest.$ac_objext \
2708 conftest$ac_exeext conftest.$ac_ext
2709 done
2710fi
2711LIBS=$ac_func_search_save_LIBS
2712fi
2713echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2714echo "${ECHO_T}$ac_cv_search_strerror" >&6
2715if test "$ac_cv_search_strerror" != no; then
2716 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2717
2718fi
2719 for ac_prog in gawk mawk nawk awk
2720do
2721 # Extract the first word of "$ac_prog", so it can be a program name with args.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002722set dummy $ac_prog; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002723echo "$as_me:$LINENO: checking for $ac_word" >&5
2724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2725if test "${ac_cv_prog_AWK+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002727else
2728 if test -n "$AWK"; then
2729 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2730else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH
2733do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_AWK="$ac_prog"
2739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2741 fi
2742done
2743done
2744
Bram Moolenaar071d4272004-06-13 20:20:40 +00002745fi
2746fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002747AWK=$ac_cv_prog_AWK
Bram Moolenaar071d4272004-06-13 20:20:40 +00002748if test -n "$AWK"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002749 echo "$as_me:$LINENO: result: $AWK" >&5
2750echo "${ECHO_T}$AWK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002751else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002752 echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002754fi
2755
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002756 test -n "$AWK" && break
Bram Moolenaar071d4272004-06-13 20:20:40 +00002757done
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002758
Bram Moolenaar071d4272004-06-13 20:20:40 +00002759# Extract the first word of "strip", so it can be a program name with args.
2760set dummy strip; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002761echo "$as_me:$LINENO: checking for $ac_word" >&5
2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763if test "${ac_cv_prog_STRIP+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002765else
2766 if test -n "$STRIP"; then
2767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2768else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 ac_cv_prog_STRIP="strip"
2777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780done
2781done
2782
Bram Moolenaar071d4272004-06-13 20:20:40 +00002783 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2784fi
2785fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002786STRIP=$ac_cv_prog_STRIP
Bram Moolenaar071d4272004-06-13 20:20:40 +00002787if test -n "$STRIP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002788 echo "$as_me:$LINENO: result: $STRIP" >&5
2789echo "${ECHO_T}$STRIP" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002790else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002791 echo "$as_me:$LINENO: result: no" >&5
2792echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002793fi
2794
2795
Bram Moolenaar071d4272004-06-13 20:20:40 +00002796
2797
2798if test -z "$CFLAGS"; then
2799 CFLAGS="-O"
2800 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
2801fi
2802if test "$GCC" = yes; then
2803 gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
Bram Moolenaara5792f52005-11-23 21:25:05 +00002804 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
2805 echo 'GCC 34.0.12 has a bug in the optimizer, disabling "-O#"'
Bram Moolenaar071d4272004-06-13 20:20:40 +00002806 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2807 else
2808 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2809 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2810 CFLAGS="$CFLAGS -fno-strength-reduce"
2811 fi
2812 fi
2813fi
2814
2815if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002816 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2817 (cross compiling doesn't work)" >&5
2818echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2819 (cross compiling doesn't work)" >&2;}
2820 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00002821fi
2822
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002823test "$GCC" = yes && CPP_MM=M;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002824
2825if test -f ./toolcheck; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002826 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2827echo "$as_me: checking for buggy tools..." >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +00002828 sh ./toolcheck 1>&6
2829fi
2830
2831OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2832
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002833echo "$as_me:$LINENO: checking for BeOS" >&5
2834echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002835case `uname` in
2836 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002837 BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2838echo "${ECHO_T}yes" >&6;;
2839 *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002841esac
2842
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002843echo "$as_me:$LINENO: checking for QNX" >&5
2844echo $ECHO_N "checking for QNX... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002845case `uname` in
2846 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2847 test -z "$with_x" && with_x=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002848 QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2849echo "${ECHO_T}yes" >&6;;
2850 *) QNX=no; echo "$as_me:$LINENO: result: no" >&5
2851echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002852esac
2853
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002854echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2855echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002856if test "`(uname) 2>/dev/null`" = Darwin; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002857 echo "$as_me:$LINENO: result: yes" >&5
2858echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002859
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002860 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2861echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002862 # Check whether --enable-darwin or --disable-darwin was given.
2863if test "${enable_darwin+set}" = set; then
2864 enableval="$enable_darwin"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002865
Bram Moolenaar071d4272004-06-13 20:20:40 +00002866else
2867 enable_darwin="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002868fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002869 if test "$enable_darwin" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002870 echo "$as_me:$LINENO: result: no" >&5
2871echo "${ECHO_T}no" >&6
2872 echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2873echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002874 if test -f os_macosx.c; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002875 echo "$as_me:$LINENO: result: yes" >&5
2876echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002877 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002878 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2879echo "${ECHO_T}no, Darwin support disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002880 enable_darwin=no
2881 fi
2882 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002883 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2884echo "${ECHO_T}yes, Darwin support excluded" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002885 fi
2886
2887 if test "$enable_darwin" = "yes"; then
2888 MACOSX=yes
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002889 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
2890 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Bram Moolenaar071d4272004-06-13 20:20:40 +00002891 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp"
2892
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002893 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2894echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2895if test "${ac_cv_header_stdc+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002897else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002898 cat >conftest.$ac_ext <<_ACEOF
2899/* confdefs.h. */
2900_ACEOF
2901cat confdefs.h >>conftest.$ac_ext
2902cat >>conftest.$ac_ext <<_ACEOF
2903/* end confdefs.h. */
2904#include <stdlib.h>
2905#include <stdarg.h>
2906#include <string.h>
2907#include <float.h>
2908
2909int
2910main ()
2911{
2912
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917rm -f conftest.$ac_objext
2918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>conftest.er1
2920 ac_status=$?
2921 grep -v '^ *+' conftest.er1 >conftest.err
2922 rm -f conftest.er1
2923 cat conftest.err >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -z "$ac_c_werror_flag"
2927 || test ! -s conftest.err'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; } &&
2933 { ac_try='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 ac_cv_header_stdc=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002940else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002941 echo "$as_me: failed program was:" >&5
2942sed 's/^/| /' conftest.$ac_ext >&5
2943
2944ac_cv_header_stdc=no
2945fi
2946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947
2948if test $ac_cv_header_stdc = yes; then
2949 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2950 cat >conftest.$ac_ext <<_ACEOF
2951/* confdefs.h. */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h. */
2956#include <string.h>
2957
2958_ACEOF
2959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2960 $EGREP "memchr" >/dev/null 2>&1; then
2961 :
2962else
2963 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002964fi
2965rm -f conftest*
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002966
Bram Moolenaar071d4272004-06-13 20:20:40 +00002967fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002968
2969if test $ac_cv_header_stdc = yes; then
2970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2971 cat >conftest.$ac_ext <<_ACEOF
2972/* confdefs.h. */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h. */
2977#include <stdlib.h>
2978
2979_ACEOF
2980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 $EGREP "free" >/dev/null 2>&1; then
2982 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00002983else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002984 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002985fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002986rm -f conftest*
2987
2988fi
2989
2990if test $ac_cv_header_stdc = yes; then
2991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2992 if test "$cross_compiling" = yes; then
2993 :
2994else
2995 cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
3001#include <ctype.h>
3002#if ((' ' & 0x0FF) == 0x020)
3003# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3004# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3005#else
3006# define ISLOWER(c) \
3007 (('a' <= (c) && (c) <= 'i') \
3008 || ('j' <= (c) && (c) <= 'r') \
3009 || ('s' <= (c) && (c) <= 'z'))
3010# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3011#endif
3012
3013#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3014int
3015main ()
3016{
3017 int i;
3018 for (i = 0; i < 256; i++)
3019 if (XOR (islower (i), ISLOWER (i))
3020 || toupper (i) != TOUPPER (i))
3021 exit(2);
3022 exit (0);
3023}
3024_ACEOF
3025rm -f conftest$ac_exeext
3026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3027 (eval $ac_link) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 :
3037else
3038 echo "$as_me: program exited with status $ac_status" >&5
3039echo "$as_me: failed program was:" >&5
3040sed 's/^/| /' conftest.$ac_ext >&5
3041
3042( exit $ac_status )
3043ac_cv_header_stdc=no
3044fi
3045rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3046fi
3047fi
3048fi
3049echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3050echo "${ECHO_T}$ac_cv_header_stdc" >&6
3051if test $ac_cv_header_stdc = yes; then
3052
3053cat >>confdefs.h <<\_ACEOF
3054#define STDC_HEADERS 1
3055_ACEOF
3056
3057fi
3058
3059# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3070 inttypes.h stdint.h unistd.h
3071do
3072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3073echo "$as_me:$LINENO: checking for $ac_header" >&5
3074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3075if eval "test \"\${$as_ac_Header+set}\" = set"; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
3078 cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
3084$ac_includes_default
3085
3086#include <$ac_header>
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 eval "$as_ac_Header=yes"
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115eval "$as_ac_Header=no"
3116fi
3117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118fi
3119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3121if test `eval echo '${'$as_ac_Header'}'` = yes; then
3122 cat >>confdefs.h <<_ACEOF
3123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3124_ACEOF
3125
3126fi
3127
3128done
3129
3130
3131if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3132 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3133echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3134if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136fi
3137echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3138echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3139else
3140 # Is the header compilable?
3141echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3142echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3143cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h. */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h. */
3149$ac_includes_default
3150#include <Carbon/Carbon.h>
3151_ACEOF
3152rm -f conftest.$ac_objext
3153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154 (eval $ac_compile) 2>conftest.er1
3155 ac_status=$?
3156 grep -v '^ *+' conftest.er1 >conftest.err
3157 rm -f conftest.er1
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } &&
3161 { ac_try='test -z "$ac_c_werror_flag"
3162 || test ! -s conftest.err'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 (eval $ac_try) 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; }; then
3174 ac_header_compiler=yes
3175else
3176 echo "$as_me: failed program was:" >&5
3177sed 's/^/| /' conftest.$ac_ext >&5
3178
3179ac_header_compiler=no
3180fi
3181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3183echo "${ECHO_T}$ac_header_compiler" >&6
3184
3185# Is the header present?
3186echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3187echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3188cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h. */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h. */
3194#include <Carbon/Carbon.h>
3195_ACEOF
3196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3198 ac_status=$?
3199 grep -v '^ *+' conftest.er1 >conftest.err
3200 rm -f conftest.er1
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } >/dev/null; then
3204 if test -s conftest.err; then
3205 ac_cpp_err=$ac_c_preproc_warn_flag
3206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3207 else
3208 ac_cpp_err=
3209 fi
3210else
3211 ac_cpp_err=yes
3212fi
3213if test -z "$ac_cpp_err"; then
3214 ac_header_preproc=yes
3215else
3216 echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 ac_header_preproc=no
3220fi
3221rm -f conftest.err conftest.$ac_ext
3222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3223echo "${ECHO_T}$ac_header_preproc" >&6
3224
3225# So? What about this header?
3226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3227 yes:no: )
3228 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3229echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3230 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3231echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3232 ac_header_preproc=yes
3233 ;;
3234 no:yes:* )
3235 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3236echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3237 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3238echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3239 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3240echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3241 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3242echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3243 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3244echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3245 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3246echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3247 (
3248 cat <<\_ASBOX
3249## ------------------------------------------ ##
3250## Report this to the AC_PACKAGE_NAME lists. ##
3251## ------------------------------------------ ##
3252_ASBOX
3253 ) |
3254 sed "s/^/$as_me: WARNING: /" >&2
3255 ;;
3256esac
3257echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3258echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3259if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261else
3262 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3263fi
3264echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3265echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3266
3267fi
3268if test $ac_cv_header_Carbon_Carbon_h = yes; then
3269 CARBON=yes
3270fi
3271
Bram Moolenaar071d4272004-06-13 20:20:40 +00003272
3273 if test "x$CARBON" = "xyes"; then
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003274 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 +00003275 with_x=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003276 fi
3277 fi
3278 fi
3279else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003280 echo "$as_me:$LINENO: result: no" >&5
3281echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003282fi
3283
3284
3285
3286
3287have_local_include=''
3288have_local_lib=''
3289if test "$GCC" = yes; then
3290 echo 'void f(){}' > conftest.c
3291 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3292 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3293 rm -f conftest.c conftest.o
3294fi
3295if test -z "$have_local_lib" -a -d /usr/local/lib; then
3296 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3297 if test "$tt" = "$LDFLAGS"; then
3298 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3299 fi
3300fi
3301if test -z "$have_local_include" -a -d /usr/local/include; then
3302 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3303 if test "$tt" = "$CPPFLAGS"; then
3304 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3305 fi
3306fi
3307
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003308echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3309echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3310
Bram Moolenaar071d4272004-06-13 20:20:40 +00003311# Check whether --with-vim-name or --without-vim-name was given.
3312if test "${with_vim_name+set}" = set; then
3313 withval="$with_vim_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003314 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3315echo "${ECHO_T}$VIMNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003316else
Bram Moolenaare344bea2005-09-01 20:46:49 +00003317 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003318echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3319fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003320
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003321echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3322echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003323
Bram Moolenaar071d4272004-06-13 20:20:40 +00003324# Check whether --with-ex-name or --without-ex-name was given.
3325if test "${with_ex_name+set}" = set; then
3326 withval="$with_ex_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003327 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3328echo "${ECHO_T}$EXNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003329else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003330 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3331echo "${ECHO_T}Defaulting to ex" >&6
3332fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003333
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003334echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3335echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003336
Bram Moolenaar071d4272004-06-13 20:20:40 +00003337# Check whether --with-view-name or --without-view-name was given.
3338if test "${with_view_name+set}" = set; then
3339 withval="$with_view_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003340 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3341echo "${ECHO_T}$VIEWNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003342else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003343 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3344echo "${ECHO_T}Defaulting to view" >&6
3345fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003346
3347
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003348echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3349echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003350
Bram Moolenaar071d4272004-06-13 20:20:40 +00003351# Check whether --with-global-runtime or --without-global-runtime was given.
3352if test "${with_global_runtime+set}" = set; then
3353 withval="$with_global_runtime"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003354 echo "$as_me:$LINENO: result: $withval" >&5
3355echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003356#define RUNTIME_GLOBAL "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003357_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003358
3359else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003360 echo "$as_me:$LINENO: result: no" >&5
3361echo "${ECHO_T}no" >&6
3362fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003363
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003364echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3365echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003366
Bram Moolenaar071d4272004-06-13 20:20:40 +00003367# Check whether --with-modified-by or --without-modified-by was given.
3368if test "${with_modified_by+set}" = set; then
3369 withval="$with_modified_by"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003370 echo "$as_me:$LINENO: result: $withval" >&5
3371echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003372#define MODIFIED_BY "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003373_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003374
3375else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003376 echo "$as_me:$LINENO: result: no" >&5
3377echo "${ECHO_T}no" >&6
3378fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003379
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003380echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3381echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3382cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003388
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003389int
3390main ()
3391{
Bram Moolenaar071d4272004-06-13 20:20:40 +00003392 /* TryCompile function for CharSet.
3393 Treat any failure as ASCII for compatibility with existing art.
3394 Use compile-time rather than run-time tests for cross-compiler
3395 tolerance. */
3396#if '0'!=240
3397make an error "Character set is not EBCDIC"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003398#endif
3399 ;
3400 return 0;
3401}
3402_ACEOF
3403rm -f conftest.$ac_objext
3404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -z "$ac_c_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003425 # TryCompile action if true
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003426cf_cv_ebcdic=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003427else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003428 echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 # TryCompile action if false
Bram Moolenaar071d4272004-06-13 20:20:40 +00003432cf_cv_ebcdic=no
3433fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003435# end of TryCompile ])
3436# end of CacheVal CvEbcdic
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003437echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3438echo "${ECHO_T}$cf_cv_ebcdic" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003439case "$cf_cv_ebcdic" in #(vi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003440 yes) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003441#define EBCDIC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003442_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003443
3444 line_break='"\\n"'
3445 ;;
3446 *) line_break='"\\012"';;
3447esac
3448
3449
3450if test "$cf_cv_ebcdic" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003451echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3452echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003453case `uname` in
3454 OS/390) OS390Unix="yes";
3455 if test "$CC" = "cc"; then
3456 ccm="$_CC_CCMODE"
3457 ccn="CC"
3458 else
3459 if test "$CC" = "c89"; then
3460 ccm="$_CC_C89MODE"
3461 ccn="C89"
3462 else
3463 ccm=1
3464 fi
3465 fi
3466 if test "$ccm" != "1"; then
3467 echo ""
3468 echo "------------------------------------------"
3469 echo " On OS/390 Unix, the environment variable"
3470 echo " __CC_${ccn}MODE must be set to \"1\"!"
3471 echo " Do:"
3472 echo " export _CC_${ccn}MODE=1"
3473 echo " and then call configure again."
3474 echo "------------------------------------------"
3475 exit 1
3476 fi
3477 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003478 echo "$as_me:$LINENO: result: yes" >&5
3479echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003480 ;;
3481 *) OS390Unix="no";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003482 echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003484 ;;
3485esac
3486fi
3487
3488
3489
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003490echo "$as_me:$LINENO: checking --with-features argument" >&5
3491echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3492
Bram Moolenaar071d4272004-06-13 20:20:40 +00003493# Check whether --with-features or --without-features was given.
3494if test "${with_features+set}" = set; then
3495 withval="$with_features"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003496 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3497echo "${ECHO_T}$features" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003498else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003499 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3500echo "${ECHO_T}Defaulting to normal" >&6
3501fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003502
3503dovimdiff=""
3504dogvimdiff=""
3505case "$features" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003506 tiny) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003507#define FEAT_TINY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003508_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003509 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003510 small) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003511#define FEAT_SMALL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003512_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003513 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003514 normal) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003515#define FEAT_NORMAL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003516_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003517 dovimdiff="installvimdiff";
3518 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003519 big) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003520#define FEAT_BIG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003521_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003522 dovimdiff="installvimdiff";
3523 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003524 huge) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003525#define FEAT_HUGE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003526_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003527 dovimdiff="installvimdiff";
3528 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003529 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3530echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003531esac
3532
3533
3534
3535
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003536echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3537echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3538
Bram Moolenaar071d4272004-06-13 20:20:40 +00003539# Check whether --with-compiledby or --without-compiledby was given.
3540if test "${with_compiledby+set}" = set; then
3541 withval="$with_compiledby"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003542 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3543echo "${ECHO_T}$withval" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003544else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003545 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3546echo "${ECHO_T}no" >&6
3547fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003548
3549
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003550echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3551echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003552# Check whether --enable-xsmp or --disable-xsmp was given.
3553if test "${enable_xsmp+set}" = set; then
3554 enableval="$enable_xsmp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003555
Bram Moolenaar071d4272004-06-13 20:20:40 +00003556else
3557 enable_xsmp="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003558fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003559
3560if test "$enable_xsmp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
3563 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3564echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003565 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3566if test "${enable_xsmp_interact+set}" = set; then
3567 enableval="$enable_xsmp_interact"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003568
Bram Moolenaar071d4272004-06-13 20:20:40 +00003569else
3570 enable_xsmp_interact="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003571fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003572 if test "$enable_xsmp_interact" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003573 echo "$as_me:$LINENO: result: no" >&5
3574echo "${ECHO_T}no" >&6
3575 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003576#define USE_XSMP_INTERACT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003577_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003578
3579 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003580 echo "$as_me:$LINENO: result: yes" >&5
3581echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003582 fi
3583else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003584 echo "$as_me:$LINENO: result: yes" >&5
3585echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003586fi
3587
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003588echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3589echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003590# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3591if test "${enable_mzschemeinterp+set}" = set; then
3592 enableval="$enable_mzschemeinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003593
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003594else
3595 enable_mzschemeinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003596fi;
3597echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3598echo "${ECHO_T}$enable_mzschemeinterp" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003599
3600if test "$enable_mzschemeinterp" = "yes"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003601
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003602
3603 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3604echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3605
3606# Check whether --with-plthome or --without-plthome was given.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003607if test "${with_plthome+set}" = set; then
3608 withval="$with_plthome"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003609 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3610echo "${ECHO_T}$with_plthome" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003611else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003612 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3613echo "${ECHO_T}\"no\"" >&6
3614fi;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003615
3616 if test "X$with_plthome" != "X"; then
3617 vi_cv_path_mzscheme_pfx="$with_plthome"
3618 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003619 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3620echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003621 if test "X$PLTHOME" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003622 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3623echo "${ECHO_T}\"$PLTHOME\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003624 vi_cv_path_mzscheme_pfx="$PLTHOME"
3625 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003626 echo "$as_me:$LINENO: result: \"not set\"" >&5
3627echo "${ECHO_T}\"not set\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003628 # Extract the first word of "mzscheme", so it can be a program name with args.
3629set dummy mzscheme; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003630echo "$as_me:$LINENO: checking for $ac_word" >&5
3631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003634else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003635 case $vi_cv_path_mzscheme in
3636 [\\/]* | ?:[\\/]*)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003637 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3638 ;;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003639 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 break 2
3650 fi
3651done
3652done
3653
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003654 ;;
3655esac
3656fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003657vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3658
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003659if test -n "$vi_cv_path_mzscheme"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003660 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3661echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003662else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003665fi
3666
3667
3668 if test "X$vi_cv_path_mzscheme" != "X"; then
3669 lsout=`ls -l $vi_cv_path_mzscheme`
3670 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3671 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3672 fi
3673 fi
3674
3675 if test "X$vi_cv_path_mzscheme" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003676 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3677echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3678if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003680else
3681 vi_cv_path_mzscheme_pfx=`
3682 ${vi_cv_path_mzscheme} -evm \
3683 "(display (simplify-path \
3684 (build-path (call-with-values \
3685 (lambda () (split-path (find-system-path (quote exec-file)))) \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003686 (lambda (base name must-be-dir?) base)) (quote up))))"`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003687fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003688echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3689echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003690 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3691 fi
3692 fi
3693 fi
3694
3695 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003696 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3697echo $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 +00003698 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003699 echo "$as_me:$LINENO: result: \"yes\"" >&5
3700echo "${ECHO_T}\"yes\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003701 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003702 echo "$as_me:$LINENO: result: \"no\"" >&5
3703echo "${ECHO_T}\"no\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003704 vi_cv_path_mzscheme_pfx=
3705 fi
3706 fi
3707
3708 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3709 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3710 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3711 else
3712 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003713 if test "$GCC" = yes; then
3714 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003715 elif test "`(uname) 2>/dev/null`" = SunOS &&
3716 uname -r | grep '^5' >/dev/null; then
3717 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003718 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003719 fi
3720 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \
3721 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3722 MZSCHEME_SRC="if_mzsch.c"
3723 MZSCHEME_OBJ="objects/if_mzsch.o"
3724 MZSCHEME_PRO="if_mzsch.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003725 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003726#define FEAT_MZSCHEME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003727_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003728
3729 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003730
3731
3732
3733
3734
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003735fi
3736
3737
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003738echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3739echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003740# Check whether --enable-perlinterp or --disable-perlinterp was given.
3741if test "${enable_perlinterp+set}" = set; then
3742 enableval="$enable_perlinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003743
Bram Moolenaar071d4272004-06-13 20:20:40 +00003744else
3745 enable_perlinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003746fi;
3747echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3748echo "${ECHO_T}$enable_perlinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003749if test "$enable_perlinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003750
Bram Moolenaar071d4272004-06-13 20:20:40 +00003751 # Extract the first word of "perl", so it can be a program name with args.
3752set dummy perl; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003753echo "$as_me:$LINENO: checking for $ac_word" >&5
3754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3755if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003757else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003758 case $vi_cv_path_perl in
3759 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003760 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3761 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003762 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774done
3775done
3776
Bram Moolenaar071d4272004-06-13 20:20:40 +00003777 ;;
3778esac
3779fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003780vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3781
Bram Moolenaar071d4272004-06-13 20:20:40 +00003782if test -n "$vi_cv_path_perl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003783 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3784echo "${ECHO_T}$vi_cv_path_perl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003785else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003786 echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003788fi
3789
3790 if test "X$vi_cv_path_perl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003791 echo "$as_me:$LINENO: checking Perl version" >&5
3792echo $ECHO_N "checking Perl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003793 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3794 eval `$vi_cv_path_perl -V:usethreads`
3795 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3796 badthreads=no
3797 else
3798 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3799 eval `$vi_cv_path_perl -V:use5005threads`
3800 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3801 badthreads=no
3802 else
3803 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003804 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3805echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003806 fi
3807 else
3808 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003809 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3810echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003811 fi
3812 fi
3813 if test $badthreads = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003814 echo "$as_me:$LINENO: result: OK" >&5
3815echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003816 eval `$vi_cv_path_perl -V:shrpenv`
3817 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3818 shrpenv=""
3819 fi
3820 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003821
Bram Moolenaar071d4272004-06-13 20:20:40 +00003822 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3823 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3824 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3825 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3826 -e 's/-bE:perl.exp//' -e 's/-lc //'`
3827 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3828 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3829
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003830 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3831echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003832 cflags_save=$CFLAGS
3833 libs_save=$LIBS
3834 ldflags_save=$LDFLAGS
3835 CFLAGS="$CFLAGS $perlcppflags"
3836 LIBS="$LIBS $perllibs"
3837 LDFLAGS="$perlldflags $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003838 cat >conftest.$ac_ext <<_ACEOF
3839/* confdefs.h. */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003844
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003845int
3846main ()
3847{
3848
3849 ;
3850 return 0;
3851}
3852_ACEOF
3853rm -f conftest.$ac_objext conftest$ac_exeext
3854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855 (eval $ac_link) 2>conftest.er1
3856 ac_status=$?
3857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } &&
3862 { ac_try='test -z "$ac_c_werror_flag"
3863 || test ! -s conftest.err'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; } &&
3869 { ac_try='test -s conftest$ac_exeext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3875 echo "$as_me:$LINENO: result: yes" >&5
3876echo "${ECHO_T}yes" >&6; perl_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003877else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003878 echo "$as_me: failed program was:" >&5
3879sed 's/^/| /' conftest.$ac_ext >&5
3880
3881echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
3882echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003883fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003884rm -f conftest.err conftest.$ac_objext \
3885 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003886 CFLAGS=$cflags_save
3887 LIBS=$libs_save
3888 LDFLAGS=$ldflags_save
3889 if test $perl_ok = yes; then
3890 if test "X$perlcppflags" != "X"; then
3891 PERL_CFLAGS="$perlcppflags"
3892 fi
3893 if test "X$perlldflags" != "X"; then
3894 LDFLAGS="$perlldflags $LDFLAGS"
3895 fi
3896 PERL_LIBS=$perllibs
3897 PERL_SRC="auto/if_perl.c if_perlsfio.c"
3898 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
3899 PERL_PRO="if_perl.pro if_perlsfio.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003900 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003901#define FEAT_PERL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003902_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003903
3904 fi
3905 fi
3906 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003907 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
3908echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003909 fi
3910 fi
3911
3912 if test "x$MACOSX" = "xyes"; then
3913 dir=/System/Library/Perl
3914 darwindir=$dir/darwin
3915 if test -d $darwindir; then
3916 PERL=/usr/bin/perl
3917 else
3918 dir=/System/Library/Perl/5.8.1
3919 darwindir=$dir/darwin-thread-multi-2level
3920 if test -d $darwindir; then
3921 PERL=/usr/bin/perl
3922 fi
3923 fi
3924 if test -n "$PERL"; then
3925 PERL_DIR="$dir"
3926 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
3927 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
3928 PERL_LIBS="-L$darwindir/CORE -lperl"
3929 fi
3930 fi
3931fi
3932
3933
3934
3935
3936
3937
3938
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003939echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
3940echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003941# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
3942if test "${enable_pythoninterp+set}" = set; then
3943 enableval="$enable_pythoninterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003944
Bram Moolenaar071d4272004-06-13 20:20:40 +00003945else
3946 enable_pythoninterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003947fi;
3948echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
3949echo "${ECHO_T}$enable_pythoninterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003950if test "$enable_pythoninterp" = "yes"; then
3951 # Extract the first word of "python", so it can be a program name with args.
3952set dummy python; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003953echo "$as_me:$LINENO: checking for $ac_word" >&5
3954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003957else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003958 case $vi_cv_path_python in
3959 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003960 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
3961 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003962 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
3971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975done
3976
Bram Moolenaar071d4272004-06-13 20:20:40 +00003977 ;;
3978esac
3979fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003980vi_cv_path_python=$ac_cv_path_vi_cv_path_python
3981
Bram Moolenaar071d4272004-06-13 20:20:40 +00003982if test -n "$vi_cv_path_python"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003983 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
3984echo "${ECHO_T}$vi_cv_path_python" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003985else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003986 echo "$as_me:$LINENO: result: no" >&5
3987echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003988fi
3989
3990 if test "X$vi_cv_path_python" != "X"; then
3991
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003992 echo "$as_me:$LINENO: checking Python version" >&5
3993echo $ECHO_N "checking Python version... $ECHO_C" >&6
3994if test "${vi_cv_var_python_version+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003996else
3997 vi_cv_var_python_version=`
3998 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003999
Bram Moolenaar071d4272004-06-13 20:20:40 +00004000fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004001echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4002echo "${ECHO_T}$vi_cv_var_python_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004003
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004004 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4005echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004006 if ${vi_cv_path_python} -c \
4007 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4008 then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004009 echo "$as_me:$LINENO: result: yep" >&5
4010echo "${ECHO_T}yep" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004011
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004012 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4013echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4014if test "${vi_cv_path_python_pfx+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004016else
4017 vi_cv_path_python_pfx=`
4018 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004019 "import sys; print sys.prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004020fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004021echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4022echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004023
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004024 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4025echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4026if test "${vi_cv_path_python_epfx+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004028else
4029 vi_cv_path_python_epfx=`
4030 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004031 "import sys; print sys.exec_prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004032fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004033echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4034echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004035
Bram Moolenaar071d4272004-06-13 20:20:40 +00004036
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004037 if test "${vi_cv_path_pythonpath+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004039else
4040 vi_cv_path_pythonpath=`
4041 unset PYTHONPATH;
4042 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004043 "import sys, string; print string.join(sys.path,':')"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004044fi
4045
4046
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004047
4048
4049# Check whether --with-python-config-dir or --without-python-config-dir was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004050if test "${with_python_config_dir+set}" = set; then
4051 withval="$with_python_config_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004052 vi_cv_path_python_conf="${withval}"
4053fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004054
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004055 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4056echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4057if test "${vi_cv_path_python_conf+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004059else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004060
Bram Moolenaar071d4272004-06-13 20:20:40 +00004061 vi_cv_path_python_conf=
4062 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4063 for subdir in lib share; do
4064 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4065 if test -d "$d" && test -f "$d/config.c"; then
4066 vi_cv_path_python_conf="$d"
4067 fi
4068 done
4069 done
Bram Moolenaar071d4272004-06-13 20:20:40 +00004070
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004071fi
4072echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4073echo "${ECHO_T}$vi_cv_path_python_conf" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004074
4075 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4076
4077 if test "X$PYTHON_CONFDIR" = "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004078 echo "$as_me:$LINENO: result: can't find it!" >&5
4079echo "${ECHO_T}can't find it!" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004080 else
4081
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004082 if test "${vi_cv_path_python_plibs+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004084else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004085
Bram Moolenaar071d4272004-06-13 20:20:40 +00004086 tmp_mkf="/tmp/Makefile-conf$$"
4087 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4088__:
4089 @echo "python_MODLIBS='$(MODLIBS)'"
4090 @echo "python_LIBS='$(LIBS)'"
4091 @echo "python_SYSLIBS='$(SYSLIBS)'"
4092 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4093eof
4094 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4095 rm -f ${tmp_mkf}
4096 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4097 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4098 vi_cv_path_python_plibs="-framework Python"
4099 else
4100 if test "${vi_cv_var_python_version}" = "1.4"; then
4101 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4102 else
4103 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4104 fi
4105 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4106 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4107 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004108
Bram Moolenaar071d4272004-06-13 20:20:40 +00004109fi
4110
4111
4112 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4113 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4114 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4115 else
4116 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}"
4117 fi
4118 PYTHON_SRC="if_python.c"
4119 if test "x$MACOSX" = "xyes"; then
4120 PYTHON_OBJ="objects/if_python.o"
4121 else
4122 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4123 fi
4124 if test "${vi_cv_var_python_version}" = "1.4"; then
4125 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4126 fi
4127 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4128
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004129 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4130echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004131 threadsafe_flag=
4132 thread_lib=
4133 if test "x$MACOSX" != "xyes"; then
4134 test "$GCC" = yes && threadsafe_flag="-pthread"
4135 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4136 threadsafe_flag="-D_THREAD_SAFE"
4137 thread_lib="-pthread"
4138 fi
4139 fi
4140 libs_save_old=$LIBS
4141 if test -n "$threadsafe_flag"; then
4142 cflags_save=$CFLAGS
4143 CFLAGS="$CFLAGS $threadsafe_flag"
4144 LIBS="$LIBS $thread_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004145 cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h. */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
4150/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004151
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004152int
4153main ()
4154{
4155
4156 ;
4157 return 0;
4158}
4159_ACEOF
4160rm -f conftest.$ac_objext conftest$ac_exeext
4161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4162 (eval $ac_link) 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag"
4170 || test ! -s conftest.err'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; } &&
4176 { ac_try='test -s conftest$ac_exeext'
4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 (eval $ac_try) 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4182 echo "$as_me:$LINENO: result: yes" >&5
4183echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004184else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004185 echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
4187
4188echo "$as_me:$LINENO: result: no" >&5
4189echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4190
Bram Moolenaar071d4272004-06-13 20:20:40 +00004191fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004192rm -f conftest.err conftest.$ac_objext \
4193 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004194 CFLAGS=$cflags_save
4195 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004196 echo "$as_me:$LINENO: result: no" >&5
4197echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004198 fi
4199
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004200 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4201echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004202 cflags_save=$CFLAGS
4203 libs_save=$LIBS
4204 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4205 LIBS="$LIBS $PYTHON_LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004206 cat >conftest.$ac_ext <<_ACEOF
4207/* confdefs.h. */
4208_ACEOF
4209cat confdefs.h >>conftest.$ac_ext
4210cat >>conftest.$ac_ext <<_ACEOF
4211/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004212
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004213int
4214main ()
4215{
4216
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext conftest$ac_exeext
4222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223 (eval $ac_link) 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag"
4231 || test ! -s conftest.err'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest$ac_exeext'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 echo "$as_me:$LINENO: result: yes" >&5
4244echo "${ECHO_T}yes" >&6; python_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004245else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004246 echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
4249echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4250echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004251fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004252rm -f conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004254 CFLAGS=$cflags_save
4255 LIBS=$libs_save
4256 if test $python_ok = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004257 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004258#define FEAT_PYTHON 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004259_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004260
4261 else
4262 LIBS=$libs_save_old
4263 PYTHON_SRC=
4264 PYTHON_OBJ=
4265 PYTHON_LIBS=
4266 PYTHON_CFLAGS=
4267 fi
4268
4269 fi
4270 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004271 echo "$as_me:$LINENO: result: too old" >&5
4272echo "${ECHO_T}too old" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004273 fi
4274 fi
4275fi
4276
4277
4278
4279
4280
4281
4282
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004283echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4284echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004285# Check whether --enable-tclinterp or --disable-tclinterp was given.
4286if test "${enable_tclinterp+set}" = set; then
4287 enableval="$enable_tclinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004288
Bram Moolenaar071d4272004-06-13 20:20:40 +00004289else
4290 enable_tclinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004291fi;
4292echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4293echo "${ECHO_T}$enable_tclinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004294
4295if test "$enable_tclinterp" = "yes"; then
4296
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004297 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4298echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4299
4300# Check whether --with-tclsh or --without-tclsh was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004301if test "${with_tclsh+set}" = set; then
4302 withval="$with_tclsh"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004303 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4304echo "${ECHO_T}$tclsh_name" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004305else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004306 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4307echo "${ECHO_T}no" >&6
4308fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004309 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4310set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004311echo "$as_me:$LINENO: checking for $ac_word" >&5
4312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004315else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004316 case $vi_cv_path_tcl in
4317 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004318 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4319 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004320 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH
4323do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4331 fi
4332done
4333done
4334
Bram Moolenaar071d4272004-06-13 20:20:40 +00004335 ;;
4336esac
4337fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004338vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4339
Bram Moolenaar071d4272004-06-13 20:20:40 +00004340if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004341 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4342echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004343else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004344 echo "$as_me:$LINENO: result: no" >&5
4345echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004346fi
4347
Bram Moolenaar071d4272004-06-13 20:20:40 +00004348
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004349
4350 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004351 tclsh_name="tclsh8.2"
4352 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4353set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004354echo "$as_me:$LINENO: checking for $ac_word" >&5
4355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004358else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004359 case $vi_cv_path_tcl in
4360 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004361 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4362 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004363 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375done
4376done
4377
Bram Moolenaar071d4272004-06-13 20:20:40 +00004378 ;;
4379esac
4380fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004381vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4382
Bram Moolenaar071d4272004-06-13 20:20:40 +00004383if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004384 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4385echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004386else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004387 echo "$as_me:$LINENO: result: no" >&5
4388echo "${ECHO_T}no" >&6
4389fi
4390
4391 fi
4392 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4393 tclsh_name="tclsh8.0"
4394 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4395set dummy $tclsh_name; ac_word=$2
4396echo "$as_me:$LINENO: checking for $ac_word" >&5
4397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400else
4401 case $vi_cv_path_tcl in
4402 [\\/]* | ?:[\\/]*)
4403 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4404 ;;
4405 *)
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417done
4418done
4419
4420 ;;
4421esac
4422fi
4423vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4424
4425if test -n "$vi_cv_path_tcl"; then
4426 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4427echo "${ECHO_T}$vi_cv_path_tcl" >&6
4428else
4429 echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004431fi
4432
4433 fi
4434 if test "X$vi_cv_path_tcl" = "X"; then
4435 tclsh_name="tclsh"
4436 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4437set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004438echo "$as_me:$LINENO: checking for $ac_word" >&5
4439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004442else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004443 case $vi_cv_path_tcl in
4444 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004445 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4446 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004447 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459done
4460done
4461
Bram Moolenaar071d4272004-06-13 20:20:40 +00004462 ;;
4463esac
4464fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004465vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4466
Bram Moolenaar071d4272004-06-13 20:20:40 +00004467if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004468 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4469echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004470else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004471 echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004473fi
4474
4475 fi
4476 if test "X$vi_cv_path_tcl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004477 echo "$as_me:$LINENO: checking Tcl version" >&5
4478echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004479 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4480 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004481 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4482echo "${ECHO_T}$tclver - OK" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004483 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 -`
4484
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004485 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4486echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004487 if test "x$MACOSX" != "xyes"; then
Bram Moolenaar47136d72004-10-12 20:02:24 +00004488 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004489 else
4490 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4491 fi
4492 for try in $tclinc; do
4493 if test -f "$try/tcl.h"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004494 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4495echo "${ECHO_T}$try/tcl.h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004496 TCL_INC=$try
4497 break
4498 fi
4499 done
4500 if test -z "$TCL_INC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004501 echo "$as_me:$LINENO: result: <not found>" >&5
4502echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004503 SKIP_TCL=YES
4504 fi
4505 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004506 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4507echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004508 if test "x$MACOSX" != "xyes"; then
4509 tclcnf=`echo $tclinc | sed s/include/lib/g`
4510 else
4511 tclcnf="/System/Library/Frameworks/Tcl.framework"
4512 fi
4513 for try in $tclcnf; do
4514 if test -f $try/tclConfig.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004515 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4516echo "${ECHO_T}$try/tclConfig.sh" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004517 . $try/tclConfig.sh
4518 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
Bram Moolenaara5792f52005-11-23 21:25:05 +00004519 TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\ /\\X/' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004520 break
4521 fi
4522 done
4523 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004524 echo "$as_me:$LINENO: result: <not found>" >&5
4525echo "${ECHO_T}<not found>" >&6
4526 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4527echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004528 tcllib=`echo $tclinc | sed s/include/lib/g`
4529 for ext in .so .a ; do
4530 for ver in "" $tclver ; do
4531 for try in $tcllib ; do
4532 trylib=tcl$ver$ext
4533 if test -f $try/lib$trylib ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004534 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4535echo "${ECHO_T}$try/lib$trylib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004536 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4537 if test "`(uname) 2>/dev/null`" = SunOS &&
4538 uname -r | grep '^5' >/dev/null; then
4539 TCL_LIBS="$TCL_LIBS -R $try"
4540 fi
4541 break 3
4542 fi
4543 done
4544 done
4545 done
4546 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004547 echo "$as_me:$LINENO: result: <not found>" >&5
4548echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004549 SKIP_TCL=YES
4550 fi
4551 fi
4552 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004553 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004554#define FEAT_TCL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004555_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004556
4557 TCL_SRC=if_tcl.c
4558 TCL_OBJ=objects/if_tcl.o
4559 TCL_PRO=if_tcl.pro
4560 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4561 fi
4562 fi
4563 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004564 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4565echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004566 fi
4567 fi
4568fi
4569
4570
4571
4572
4573
4574
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004575echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4576echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004577# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4578if test "${enable_rubyinterp+set}" = set; then
4579 enableval="$enable_rubyinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004580
Bram Moolenaar071d4272004-06-13 20:20:40 +00004581else
4582 enable_rubyinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004583fi;
4584echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4585echo "${ECHO_T}$enable_rubyinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004586if test "$enable_rubyinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004587
Bram Moolenaar071d4272004-06-13 20:20:40 +00004588 # Extract the first word of "ruby", so it can be a program name with args.
4589set dummy ruby; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004590echo "$as_me:$LINENO: checking for $ac_word" >&5
4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4592if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004594else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004595 case $vi_cv_path_ruby in
4596 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004597 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4598 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004599 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
4612done
4613
Bram Moolenaar071d4272004-06-13 20:20:40 +00004614 ;;
4615esac
4616fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004617vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4618
Bram Moolenaar071d4272004-06-13 20:20:40 +00004619if test -n "$vi_cv_path_ruby"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004620 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4621echo "${ECHO_T}$vi_cv_path_ruby" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004622else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004623 echo "$as_me:$LINENO: result: no" >&5
4624echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004625fi
4626
4627 if test "X$vi_cv_path_ruby" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004628 echo "$as_me:$LINENO: checking Ruby version" >&5
4629echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
Bram Moolenaar0cb032e2005-04-23 20:52:00 +00004630 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 +00004631 echo "$as_me:$LINENO: result: OK" >&5
4632echo "${ECHO_T}OK" >&6
4633 echo "$as_me:$LINENO: checking Ruby header files" >&5
4634echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004635 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4636 if test "X$rubyhdrdir" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004637 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4638echo "${ECHO_T}$rubyhdrdir" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004639 RUBY_CFLAGS="-I$rubyhdrdir"
4640 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4641 if test "X$rubylibs" != "X"; then
4642 RUBY_LIBS="$rubylibs"
4643 fi
4644 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4645 if test -f "$rubyhdrdir/$librubyarg"; then
4646 librubyarg="$rubyhdrdir/$librubyarg"
4647 else
4648 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4649 if test -f "$rubylibdir/$librubyarg"; then
4650 librubyarg="$rubylibdir/$librubyarg"
4651 elif test "$librubyarg" = "libruby.a"; then
4652 librubyarg="-lruby"
4653 else
4654 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4655 fi
4656 fi
4657
4658 if test "X$librubyarg" != "X"; then
4659 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4660 fi
4661 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4662 if test "X$rubyldflags" != "X"; then
4663 LDFLAGS="$rubyldflags $LDFLAGS"
4664 fi
4665 RUBY_SRC="if_ruby.c"
4666 RUBY_OBJ="objects/if_ruby.o"
4667 RUBY_PRO="if_ruby.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004668 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004669#define FEAT_RUBY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004670_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004671
4672 else
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 fi
4676 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004677 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4678echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004679 fi
4680 fi
4681fi
4682
4683
4684
4685
4686
4687
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004688echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4689echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004690# Check whether --enable-cscope or --disable-cscope was given.
4691if test "${enable_cscope+set}" = set; then
4692 enableval="$enable_cscope"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004693
Bram Moolenaar071d4272004-06-13 20:20:40 +00004694else
4695 enable_cscope="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004696fi;
4697echo "$as_me:$LINENO: result: $enable_cscope" >&5
4698echo "${ECHO_T}$enable_cscope" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004699if test "$enable_cscope" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004700 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004701#define FEAT_CSCOPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004702_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004703
4704fi
4705
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004706echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4707echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004708# Check whether --enable-workshop or --disable-workshop was given.
4709if test "${enable_workshop+set}" = set; then
4710 enableval="$enable_workshop"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004711
Bram Moolenaar071d4272004-06-13 20:20:40 +00004712else
4713 enable_workshop="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004714fi;
4715echo "$as_me:$LINENO: result: $enable_workshop" >&5
4716echo "${ECHO_T}$enable_workshop" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004717if test "$enable_workshop" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004718 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004719#define FEAT_SUN_WORKSHOP 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004720_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004721
4722 WORKSHOP_SRC="workshop.c integration.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004723
Bram Moolenaar071d4272004-06-13 20:20:40 +00004724 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004725
Bram Moolenaar071d4272004-06-13 20:20:40 +00004726 if test "${enable_gui-xxx}" = xxx; then
4727 enable_gui=motif
4728 fi
4729fi
4730
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004731echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4732echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004733# Check whether --enable-netbeans or --disable-netbeans was given.
4734if test "${enable_netbeans+set}" = set; then
4735 enableval="$enable_netbeans"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004736
Bram Moolenaar071d4272004-06-13 20:20:40 +00004737else
4738 enable_netbeans="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004739fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004740if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004741 echo "$as_me:$LINENO: result: no" >&5
4742echo "${ECHO_T}no" >&6
4743
4744echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4745echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4746if test "${ac_cv_lib_socket_socket+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004748else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004749 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004750LIBS="-lsocket $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004751cat >conftest.$ac_ext <<_ACEOF
4752/* confdefs.h. */
4753_ACEOF
4754cat confdefs.h >>conftest.$ac_ext
4755cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h. */
4757
Bram Moolenaar071d4272004-06-13 20:20:40 +00004758/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004759#ifdef __cplusplus
4760extern "C"
4761#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004762/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004763 builtin and then its argument prototype would still apply. */
4764char socket ();
4765int
4766main ()
4767{
4768socket ();
4769 ;
4770 return 0;
4771}
4772_ACEOF
4773rm -f conftest.$ac_objext conftest$ac_exeext
4774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4775 (eval $ac_link) 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -z "$ac_c_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try='test -s conftest$ac_exeext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 ac_cv_lib_socket_socket=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004796else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004797 echo "$as_me: failed program was:" >&5
4798sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004799
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004800ac_cv_lib_socket_socket=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004801fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004802rm -f conftest.err conftest.$ac_objext \
4803 conftest$ac_exeext conftest.$ac_ext
4804LIBS=$ac_check_lib_save_LIBS
4805fi
4806echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4807echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4808if test $ac_cv_lib_socket_socket = yes; then
4809 cat >>confdefs.h <<_ACEOF
4810#define HAVE_LIBSOCKET 1
4811_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004812
4813 LIBS="-lsocket $LIBS"
4814
Bram Moolenaar071d4272004-06-13 20:20:40 +00004815fi
4816
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004817
4818echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4819echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4820if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004822else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004823 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004824LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004825cat >conftest.$ac_ext <<_ACEOF
4826/* confdefs.h. */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h. */
4831
Bram Moolenaar071d4272004-06-13 20:20:40 +00004832/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004833#ifdef __cplusplus
4834extern "C"
4835#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004836/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004837 builtin and then its argument prototype would still apply. */
4838char gethostbyname ();
4839int
4840main ()
4841{
4842gethostbyname ();
4843 ;
4844 return 0;
4845}
4846_ACEOF
4847rm -f conftest.$ac_objext conftest$ac_exeext
4848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4849 (eval $ac_link) 2>conftest.er1
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try='test -z "$ac_c_werror_flag"
4857 || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest$ac_exeext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004870else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004871 echo "$as_me: failed program was:" >&5
4872sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004873
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004874ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004875fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004876rm -f conftest.err conftest.$ac_objext \
4877 conftest$ac_exeext conftest.$ac_ext
4878LIBS=$ac_check_lib_save_LIBS
4879fi
4880echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4881echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4882if test $ac_cv_lib_nsl_gethostbyname = yes; then
4883 cat >>confdefs.h <<_ACEOF
4884#define HAVE_LIBNSL 1
4885_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004886
4887 LIBS="-lnsl $LIBS"
4888
Bram Moolenaar071d4272004-06-13 20:20:40 +00004889fi
4890
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004891 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
4892echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
4893 cat >conftest.$ac_ext <<_ACEOF
4894/* confdefs.h. */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004899
4900#include <stdio.h>
4901#include <stdlib.h>
4902#include <stdarg.h>
4903#include <fcntl.h>
4904#include <netdb.h>
4905#include <netinet/in.h>
4906#include <errno.h>
4907#include <sys/types.h>
4908#include <sys/socket.h>
4909 /* Check bitfields */
4910 struct nbbuf {
4911 unsigned int initDone:1;
4912 ushort signmaplen;
4913 };
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004914
4915int
4916main ()
4917{
Bram Moolenaar071d4272004-06-13 20:20:40 +00004918
4919 /* Check creating a socket. */
4920 struct sockaddr_in server;
4921 (void)socket(AF_INET, SOCK_STREAM, 0);
4922 (void)htons(100);
4923 (void)gethostbyname("microsoft.com");
4924 if (errno == ECONNREFUSED)
4925 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004926
4927 ;
4928 return 0;
4929}
4930_ACEOF
4931rm -f conftest.$ac_objext conftest$ac_exeext
4932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933 (eval $ac_link) 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -z "$ac_c_werror_flag"
4941 || test ! -s conftest.err'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 (eval $ac_try) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; } &&
4947 { ac_try='test -s conftest$ac_exeext'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 (eval $ac_try) 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 echo "$as_me:$LINENO: result: yes" >&5
4954echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004955else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004956 echo "$as_me: failed program was:" >&5
4957sed 's/^/| /' conftest.$ac_ext >&5
4958
4959echo "$as_me:$LINENO: result: no" >&5
4960echo "${ECHO_T}no" >&6; enable_netbeans="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004961fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004962rm -f conftest.err conftest.$ac_objext \
4963 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004964else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004965 echo "$as_me:$LINENO: result: yes" >&5
4966echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004967fi
4968if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004969 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004970#define FEAT_NETBEANS_INTG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004971_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004972
4973 NETBEANS_SRC="netbeans.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004974
Bram Moolenaar071d4272004-06-13 20:20:40 +00004975 NETBEANS_OBJ="objects/netbeans.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004976
Bram Moolenaar071d4272004-06-13 20:20:40 +00004977fi
4978
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004979echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
4980echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004981# Check whether --enable-sniff or --disable-sniff was given.
4982if test "${enable_sniff+set}" = set; then
4983 enableval="$enable_sniff"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004984
Bram Moolenaar071d4272004-06-13 20:20:40 +00004985else
4986 enable_sniff="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004987fi;
4988echo "$as_me:$LINENO: result: $enable_sniff" >&5
4989echo "${ECHO_T}$enable_sniff" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004990if test "$enable_sniff" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004991 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004992#define FEAT_SNIFF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004993_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004994
4995 SNIFF_SRC="if_sniff.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004996
Bram Moolenaar071d4272004-06-13 20:20:40 +00004997 SNIFF_OBJ="objects/if_sniff.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004998
Bram Moolenaar071d4272004-06-13 20:20:40 +00004999fi
5000
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005001echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5002echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005003# Check whether --enable-multibyte or --disable-multibyte was given.
5004if test "${enable_multibyte+set}" = set; then
5005 enableval="$enable_multibyte"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005006
Bram Moolenaar071d4272004-06-13 20:20:40 +00005007else
5008 enable_multibyte="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005009fi;
5010echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5011echo "${ECHO_T}$enable_multibyte" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005012if test "$enable_multibyte" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005013 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005014#define FEAT_MBYTE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005015_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005016
5017fi
5018
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005019echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5020echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005021# Check whether --enable-hangulinput or --disable-hangulinput was given.
5022if test "${enable_hangulinput+set}" = set; then
5023 enableval="$enable_hangulinput"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005024
Bram Moolenaar071d4272004-06-13 20:20:40 +00005025else
5026 enable_hangulinput="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005027fi;
5028echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5029echo "${ECHO_T}$enable_hangulinput" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005030
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005031echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5032echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005033# Check whether --enable-xim or --disable-xim was given.
5034if test "${enable_xim+set}" = set; then
5035 enableval="$enable_xim"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005036 echo "$as_me:$LINENO: result: $enable_xim" >&5
5037echo "${ECHO_T}$enable_xim" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005038else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005039 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5040echo "${ECHO_T}defaulting to auto" >&6
5041fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005042
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005043echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5044echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005045# Check whether --enable-fontset or --disable-fontset was given.
5046if test "${enable_fontset+set}" = set; then
5047 enableval="$enable_fontset"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005048
Bram Moolenaar071d4272004-06-13 20:20:40 +00005049else
5050 enable_fontset="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005051fi;
5052echo "$as_me:$LINENO: result: $enable_fontset" >&5
5053echo "${ECHO_T}$enable_fontset" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005054
5055test -z "$with_x" && with_x=yes
5056test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5057if test "$with_x" = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005058 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5059echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005060else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005061
Bram Moolenaar071d4272004-06-13 20:20:40 +00005062 # Extract the first word of "xmkmf", so it can be a program name with args.
5063set dummy xmkmf; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005064echo "$as_me:$LINENO: checking for $ac_word" >&5
5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5066if test "${ac_cv_path_xmkmfpath+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005068else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005069 case $xmkmfpath in
5070 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005071 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5072 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005073 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086done
5087
Bram Moolenaar071d4272004-06-13 20:20:40 +00005088 ;;
5089esac
5090fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005091xmkmfpath=$ac_cv_path_xmkmfpath
5092
Bram Moolenaar071d4272004-06-13 20:20:40 +00005093if test -n "$xmkmfpath"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005094 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5095echo "${ECHO_T}$xmkmfpath" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005096else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005097 echo "$as_me:$LINENO: result: no" >&5
5098echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005099fi
5100
5101
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005102 echo "$as_me:$LINENO: checking for X" >&5
5103echo $ECHO_N "checking for X... $ECHO_C" >&6
5104
Bram Moolenaar071d4272004-06-13 20:20:40 +00005105
5106# Check whether --with-x or --without-x was given.
5107if test "${with_x+set}" = set; then
5108 withval="$with_x"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005109
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005110fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005111# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5112if test "x$with_x" = xno; then
5113 # The user explicitly disabled X.
5114 have_x=disabled
5115else
5116 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5117 # Both variables are already set.
5118 have_x=yes
5119 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005120 if test "${ac_cv_have_x+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005122else
5123 # One or both of the vars are not set, and there is no cached value.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005124ac_x_includes=no ac_x_libraries=no
5125rm -fr conftest.dir
5126if mkdir conftest.dir; then
5127 cd conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005128 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005129 cat >Imakefile <<'_ACEOF'
Bram Moolenaar071d4272004-06-13 20:20:40 +00005130acfindx:
5131 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005132_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005133 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5134 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5135 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5136 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5137 for ac_extension in a so sl; do
5138 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005139 test -f $ac_im_libdir/libX11.$ac_extension; then
5140 ac_im_usrlibdir=$ac_im_libdir; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00005141 fi
5142 done
5143 # Screen out bogus values from the imake configuration. They are
5144 # bogus both because they are the default anyway, and because
5145 # using them would break gcc on systems where it needs fixed includes.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005146 case $ac_im_incroot in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005147 /usr/include) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005148 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005149 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005150 case $ac_im_usrlibdir in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005151 /usr/lib | /lib) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005152 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005153 esac
5154 fi
5155 cd ..
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005156 rm -fr conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005157fi
5158
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005159# Standard set of common directories for X headers.
5160# Check X11 before X11Rn because it is often a symlink to the current release.
5161ac_x_header_dirs='
5162/usr/X11/include
5163/usr/X11R6/include
5164/usr/X11R5/include
5165/usr/X11R4/include
Bram Moolenaar071d4272004-06-13 20:20:40 +00005166
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005167/usr/include/X11
5168/usr/include/X11R6
5169/usr/include/X11R5
5170/usr/include/X11R4
5171
5172/usr/local/X11/include
5173/usr/local/X11R6/include
5174/usr/local/X11R5/include
5175/usr/local/X11R4/include
5176
5177/usr/local/include/X11
5178/usr/local/include/X11R6
5179/usr/local/include/X11R5
5180/usr/local/include/X11R4
5181
5182/usr/X386/include
5183/usr/x386/include
5184/usr/XFree86/include/X11
5185
5186/usr/include
5187/usr/local/include
5188/usr/unsupported/include
5189/usr/athena/include
5190/usr/local/x11r5/include
5191/usr/lpp/Xamples/include
5192
5193/usr/openwin/include
5194/usr/openwin/share/include'
5195
5196if test "$ac_x_includes" = no; then
5197 # Guess where to find include files, by looking for Intrinsic.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005198 # First, try using that file with no special directory specified.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005199 cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h. */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h. */
5205#include <X11/Intrinsic.h>
5206_ACEOF
5207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } >/dev/null; then
5215 if test -s conftest.err; then
5216 ac_cpp_err=$ac_c_preproc_warn_flag
5217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5218 else
5219 ac_cpp_err=
5220 fi
5221else
5222 ac_cpp_err=yes
5223fi
5224if test -z "$ac_cpp_err"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005225 # We can compile using X headers with no special include directory.
5226ac_x_includes=
5227else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005228 echo "$as_me: failed program was:" >&5
5229sed 's/^/| /' conftest.$ac_ext >&5
5230
5231 for ac_dir in $ac_x_header_dirs; do
5232 if test -r "$ac_dir/X11/Intrinsic.h"; then
5233 ac_x_includes=$ac_dir
5234 break
5235 fi
5236done
Bram Moolenaar071d4272004-06-13 20:20:40 +00005237fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005238rm -f conftest.err conftest.$ac_ext
5239fi # $ac_x_includes = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005240
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005241if test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005242 # Check for the libraries.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005243 # See if we find them without any special options.
5244 # Don't add to $LIBS permanently.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005245 ac_save_LIBS=$LIBS
5246 LIBS="-lXt $LIBS"
5247 cat >conftest.$ac_ext <<_ACEOF
5248/* confdefs.h. */
5249_ACEOF
5250cat confdefs.h >>conftest.$ac_ext
5251cat >>conftest.$ac_ext <<_ACEOF
5252/* end confdefs.h. */
5253#include <X11/Intrinsic.h>
5254int
5255main ()
5256{
5257XtMalloc (0)
5258 ;
5259 return 0;
5260}
5261_ACEOF
5262rm -f conftest.$ac_objext conftest$ac_exeext
5263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264 (eval $ac_link) 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -z "$ac_c_werror_flag"
5272 || test ! -s conftest.err'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; } &&
5278 { ac_try='test -s conftest$ac_exeext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 LIBS=$ac_save_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005285# We can link X programs with no special library path.
5286ac_x_libraries=
5287else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005288 echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291LIBS=$ac_save_LIBS
5292for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Bram Moolenaar071d4272004-06-13 20:20:40 +00005293do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005294 # Don't even attempt the hair of trying to link an X program!
Bram Moolenaar071d4272004-06-13 20:20:40 +00005295 for ac_extension in a so sl; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005296 if test -r $ac_dir/libXt.$ac_extension; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005297 ac_x_libraries=$ac_dir
5298 break 2
5299 fi
5300 done
5301done
5302fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005303rm -f conftest.err conftest.$ac_objext \
5304 conftest$ac_exeext conftest.$ac_ext
5305fi # $ac_x_libraries = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005306
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005307if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005308 # Didn't find X anywhere. Cache the known absence of X.
5309 ac_cv_have_x="have_x=no"
5310else
5311 # Record where we found X for the cache.
5312 ac_cv_have_x="have_x=yes \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005313 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005314fi
5315fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005316
Bram Moolenaar071d4272004-06-13 20:20:40 +00005317 fi
5318 eval "$ac_cv_have_x"
5319fi # $with_x != no
5320
5321if test "$have_x" != yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005322 echo "$as_me:$LINENO: result: $have_x" >&5
5323echo "${ECHO_T}$have_x" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005324 no_x=yes
5325else
5326 # If each of the values was on the command line, it overrides each guess.
5327 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5328 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5329 # Update the cache value to reflect the command line values.
5330 ac_cv_have_x="have_x=yes \
5331 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005332 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5333echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005334fi
5335
5336if test "$no_x" = yes; then
5337 # Not all programs may use this symbol, but it does not hurt to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005338
5339cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005340#define X_DISPLAY_MISSING 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005341_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005342
5343 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5344else
5345 if test -n "$x_includes"; then
5346 X_CFLAGS="$X_CFLAGS -I$x_includes"
5347 fi
5348
5349 # It would also be nice to do this for all -L options, not just this one.
5350 if test -n "$x_libraries"; then
5351 X_LIBS="$X_LIBS -L$x_libraries"
5352 # For Solaris; some versions of Sun CC require a space after -R and
5353 # others require no space. Words are not sufficient . . . .
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005354 case `(uname -sr) 2>/dev/null` in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005355 "SunOS 5"*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005356 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5357echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5358 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5359 cat >conftest.$ac_ext <<_ACEOF
5360/* confdefs.h. */
5361_ACEOF
5362cat confdefs.h >>conftest.$ac_ext
5363cat >>conftest.$ac_ext <<_ACEOF
5364/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005365
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005366int
5367main ()
5368{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005369
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005370 ;
5371 return 0;
5372}
5373_ACEOF
5374rm -f conftest.$ac_objext conftest$ac_exeext
5375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5376 (eval $ac_link) 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -z "$ac_c_werror_flag"
5384 || test ! -s conftest.err'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; } &&
5390 { ac_try='test -s conftest$ac_exeext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 (eval $ac_try) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005396 ac_R_nospace=yes
5397else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005398 echo "$as_me: failed program was:" >&5
5399sed 's/^/| /' conftest.$ac_ext >&5
5400
5401ac_R_nospace=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005402fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005403rm -f conftest.err conftest.$ac_objext \
5404 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005405 if test $ac_R_nospace = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005406 echo "$as_me:$LINENO: result: no" >&5
5407echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005408 X_LIBS="$X_LIBS -R$x_libraries"
5409 else
5410 LIBS="$ac_xsave_LIBS -R $x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005411 cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005417
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005418int
5419main ()
5420{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005421
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005422 ;
5423 return 0;
5424}
5425_ACEOF
5426rm -f conftest.$ac_objext conftest$ac_exeext
5427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -z "$ac_c_werror_flag"
5436 || test ! -s conftest.err'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; } &&
5442 { ac_try='test -s conftest$ac_exeext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005448 ac_R_space=yes
5449else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005450 echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453ac_R_space=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005454fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005455rm -f conftest.err conftest.$ac_objext \
5456 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005457 if test $ac_R_space = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005458 echo "$as_me:$LINENO: result: yes" >&5
5459echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005460 X_LIBS="$X_LIBS -R $x_libraries"
5461 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005462 echo "$as_me:$LINENO: result: neither works" >&5
5463echo "${ECHO_T}neither works" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005464 fi
5465 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005466 LIBS=$ac_xsave_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005467 esac
5468 fi
5469
5470 # Check for system-dependent libraries X programs must link with.
5471 # Do this before checking for the system-independent R6 libraries
5472 # (-lICE), since we may need -lsocket or whatever for X linking.
5473
5474 if test "$ISC" = yes; then
5475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5476 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005477 # Martyn Johnson says this is needed for Ultrix, if the X
5478 # libraries were built with DECnet support. And Karl Berry says
Bram Moolenaar071d4272004-06-13 20:20:40 +00005479 # the Alpha needs dnet_stub (dnet does not exist).
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005480 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5481 cat >conftest.$ac_ext <<_ACEOF
5482/* confdefs.h. */
5483_ACEOF
5484cat confdefs.h >>conftest.$ac_ext
5485cat >>conftest.$ac_ext <<_ACEOF
5486/* end confdefs.h. */
5487
Bram Moolenaar071d4272004-06-13 20:20:40 +00005488/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005489#ifdef __cplusplus
5490extern "C"
5491#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005492/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005493 builtin and then its argument prototype would still apply. */
5494char XOpenDisplay ();
5495int
5496main ()
5497{
5498XOpenDisplay ();
5499 ;
5500 return 0;
5501}
5502_ACEOF
5503rm -f conftest.$ac_objext conftest$ac_exeext
5504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5505 (eval $ac_link) 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try='test -s conftest$ac_exeext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00005526else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005527 echo "$as_me: failed program was:" >&5
5528sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005529
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005530echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5531echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5532if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534else
5535 ac_check_lib_save_LIBS=$LIBS
5536LIBS="-ldnet $LIBS"
5537cat >conftest.$ac_ext <<_ACEOF
5538/* confdefs.h. */
5539_ACEOF
5540cat confdefs.h >>conftest.$ac_ext
5541cat >>conftest.$ac_ext <<_ACEOF
5542/* end confdefs.h. */
5543
5544/* Override any gcc2 internal prototype to avoid an error. */
5545#ifdef __cplusplus
5546extern "C"
5547#endif
5548/* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5550char dnet_ntoa ();
5551int
5552main ()
5553{
5554dnet_ntoa ();
5555 ;
5556 return 0;
5557}
5558_ACEOF
5559rm -f conftest.$ac_objext conftest$ac_exeext
5560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -z "$ac_c_werror_flag"
5569 || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest$ac_exeext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 (eval $ac_try) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_lib_dnet_dnet_ntoa=yes
5582else
5583 echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586ac_cv_lib_dnet_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005587fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005588rm -f conftest.err conftest.$ac_objext \
5589 conftest$ac_exeext conftest.$ac_ext
5590LIBS=$ac_check_lib_save_LIBS
5591fi
5592echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5593echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5594if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005595 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005596fi
5597
5598 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005599 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5600echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5601if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005603else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005604 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005605LIBS="-ldnet_stub $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005606cat >conftest.$ac_ext <<_ACEOF
5607/* confdefs.h. */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h. */
5612
Bram Moolenaar071d4272004-06-13 20:20:40 +00005613/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005614#ifdef __cplusplus
5615extern "C"
5616#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005617/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005618 builtin and then its argument prototype would still apply. */
5619char dnet_ntoa ();
5620int
5621main ()
5622{
5623dnet_ntoa ();
5624 ;
5625 return 0;
5626}
5627_ACEOF
5628rm -f conftest.$ac_objext conftest$ac_exeext
5629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630 (eval $ac_link) 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -z "$ac_c_werror_flag"
5638 || test ! -s conftest.err'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; } &&
5644 { ac_try='test -s conftest$ac_exeext'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
5650 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005651else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005652 echo "$as_me: failed program was:" >&5
5653sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005654
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005655ac_cv_lib_dnet_stub_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005656fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005657rm -f conftest.err conftest.$ac_objext \
5658 conftest$ac_exeext conftest.$ac_ext
5659LIBS=$ac_check_lib_save_LIBS
5660fi
5661echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5662echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5663if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005664 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005665fi
5666
5667 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005668fi
5669rm -f conftest.err conftest.$ac_objext \
5670 conftest$ac_exeext conftest.$ac_ext
5671 LIBS="$ac_xsave_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005672
5673 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5674 # to get the SysV transport functions.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005675 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005676 # needs -lnsl.
5677 # The nsl library prevents programs from opening the X display
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005678 # on Irix 5.2, according to T.E. Dickey.
5679 # The functions gethostbyname, getservbyname, and inet_addr are
5680 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5681 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5682echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5683if test "${ac_cv_func_gethostbyname+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005685else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005686 cat >conftest.$ac_ext <<_ACEOF
5687/* confdefs.h. */
5688_ACEOF
5689cat confdefs.h >>conftest.$ac_ext
5690cat >>conftest.$ac_ext <<_ACEOF
5691/* end confdefs.h. */
5692/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5694#define gethostbyname innocuous_gethostbyname
5695
Bram Moolenaar071d4272004-06-13 20:20:40 +00005696/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005697 which can conflict with char gethostbyname (); below.
5698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5699 <limits.h> exists even on freestanding compilers. */
5700
5701#ifdef __STDC__
5702# include <limits.h>
5703#else
5704# include <assert.h>
5705#endif
5706
5707#undef gethostbyname
5708
Bram Moolenaar071d4272004-06-13 20:20:40 +00005709/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005710#ifdef __cplusplus
5711extern "C"
5712{
5713#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005714/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005715 builtin and then its argument prototype would still apply. */
5716char gethostbyname ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005717/* The GNU C library defines this for functions which it implements
5718 to always fail with ENOSYS. Some functions are actually named
5719 something starting with __ and the normal name is an alias. */
5720#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5721choke me
5722#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005723char (*f) () = gethostbyname;
5724#endif
5725#ifdef __cplusplus
5726}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005727#endif
5728
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005729int
5730main ()
5731{
5732return f != gethostbyname;
5733 ;
5734 return 0;
5735}
5736_ACEOF
5737rm -f conftest.$ac_objext conftest$ac_exeext
5738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739 (eval $ac_link) 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -z "$ac_c_werror_flag"
5747 || test ! -s conftest.err'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 (eval $ac_try) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest$ac_exeext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_cv_func_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005760else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005761 echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005763
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005764ac_cv_func_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005765fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005766rm -f conftest.err conftest.$ac_objext \
5767 conftest$ac_exeext conftest.$ac_ext
5768fi
5769echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5770echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005771
5772 if test $ac_cv_func_gethostbyname = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005773 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5774echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5775if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005777else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005778 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005779LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005780cat >conftest.$ac_ext <<_ACEOF
5781/* confdefs.h. */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h. */
5786
Bram Moolenaar071d4272004-06-13 20:20:40 +00005787/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005788#ifdef __cplusplus
5789extern "C"
5790#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005791/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005792 builtin and then its argument prototype would still apply. */
5793char gethostbyname ();
5794int
5795main ()
5796{
5797gethostbyname ();
5798 ;
5799 return 0;
5800}
5801_ACEOF
5802rm -f conftest.$ac_objext conftest$ac_exeext
5803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5804 (eval $ac_link) 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest$ac_exeext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005825else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005826 echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005828
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005829ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005830fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005831rm -f conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
5833LIBS=$ac_check_lib_save_LIBS
5834fi
5835echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5836echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5837if test $ac_cv_lib_nsl_gethostbyname = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005838 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005839fi
5840
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005841 if test $ac_cv_lib_nsl_gethostbyname = no; then
5842 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5843echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5844if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846else
5847 ac_check_lib_save_LIBS=$LIBS
5848LIBS="-lbsd $LIBS"
5849cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h. */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h. */
5855
5856/* Override any gcc2 internal prototype to avoid an error. */
5857#ifdef __cplusplus
5858extern "C"
5859#endif
5860/* We use char because int might match the return type of a gcc2
5861 builtin and then its argument prototype would still apply. */
5862char gethostbyname ();
5863int
5864main ()
5865{
5866gethostbyname ();
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871rm -f conftest.$ac_objext conftest$ac_exeext
5872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5873 (eval $ac_link) 2>conftest.er1
5874 ac_status=$?
5875 grep -v '^ *+' conftest.er1 >conftest.err
5876 rm -f conftest.er1
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } &&
5880 { ac_try='test -z "$ac_c_werror_flag"
5881 || test ! -s conftest.err'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; } &&
5887 { ac_try='test -s conftest$ac_exeext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 (eval $ac_try) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 ac_cv_lib_bsd_gethostbyname=yes
5894else
5895 echo "$as_me: failed program was:" >&5
5896sed 's/^/| /' conftest.$ac_ext >&5
5897
5898ac_cv_lib_bsd_gethostbyname=no
5899fi
5900rm -f conftest.err conftest.$ac_objext \
5901 conftest$ac_exeext conftest.$ac_ext
5902LIBS=$ac_check_lib_save_LIBS
5903fi
5904echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5905echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5906if test $ac_cv_lib_bsd_gethostbyname = yes; then
5907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5908fi
5909
5910 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00005911 fi
5912
5913 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5914 # socket/setsockopt and other routines are undefined under SCO ODT
5915 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005916 # on later versions), says Simon Leinen: it contains gethostby*
5917 # variants that don't use the name server (or something). -lsocket
5918 # must be given before -lnsl if both are needed. We assume that
5919 # if connect needs -lnsl, so does gethostbyname.
5920 echo "$as_me:$LINENO: checking for connect" >&5
5921echo $ECHO_N "checking for connect... $ECHO_C" >&6
5922if test "${ac_cv_func_connect+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005924else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005925 cat >conftest.$ac_ext <<_ACEOF
5926/* confdefs.h. */
5927_ACEOF
5928cat confdefs.h >>conftest.$ac_ext
5929cat >>conftest.$ac_ext <<_ACEOF
5930/* end confdefs.h. */
5931/* Define connect to an innocuous variant, in case <limits.h> declares connect.
5932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5933#define connect innocuous_connect
5934
Bram Moolenaar071d4272004-06-13 20:20:40 +00005935/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005936 which can conflict with char connect (); below.
5937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5938 <limits.h> exists even on freestanding compilers. */
5939
5940#ifdef __STDC__
5941# include <limits.h>
5942#else
5943# include <assert.h>
5944#endif
5945
5946#undef connect
5947
Bram Moolenaar071d4272004-06-13 20:20:40 +00005948/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005949#ifdef __cplusplus
5950extern "C"
5951{
5952#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005953/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005954 builtin and then its argument prototype would still apply. */
5955char connect ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005956/* The GNU C library defines this for functions which it implements
5957 to always fail with ENOSYS. Some functions are actually named
5958 something starting with __ and the normal name is an alias. */
5959#if defined (__stub_connect) || defined (__stub___connect)
5960choke me
5961#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005962char (*f) () = connect;
5963#endif
5964#ifdef __cplusplus
5965}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005966#endif
5967
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005968int
5969main ()
5970{
5971return f != connect;
5972 ;
5973 return 0;
5974}
5975_ACEOF
5976rm -f conftest.$ac_objext conftest$ac_exeext
5977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5978 (eval $ac_link) 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -z "$ac_c_werror_flag"
5986 || test ! -s conftest.err'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 (eval $ac_try) 2>&5
5989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; } &&
5992 { ac_try='test -s conftest$ac_exeext'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 (eval $ac_try) 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 ac_cv_func_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005999else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006000 echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006002
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006003ac_cv_func_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006004fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006005rm -f conftest.err conftest.$ac_objext \
6006 conftest$ac_exeext conftest.$ac_ext
6007fi
6008echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6009echo "${ECHO_T}$ac_cv_func_connect" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006010
6011 if test $ac_cv_func_connect = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006012 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6013echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6014if test "${ac_cv_lib_socket_connect+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006016else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006017 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006018LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006019cat >conftest.$ac_ext <<_ACEOF
6020/* confdefs.h. */
6021_ACEOF
6022cat confdefs.h >>conftest.$ac_ext
6023cat >>conftest.$ac_ext <<_ACEOF
6024/* end confdefs.h. */
6025
Bram Moolenaar071d4272004-06-13 20:20:40 +00006026/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006027#ifdef __cplusplus
6028extern "C"
6029#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006030/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006031 builtin and then its argument prototype would still apply. */
6032char connect ();
6033int
6034main ()
6035{
6036connect ();
6037 ;
6038 return 0;
6039}
6040_ACEOF
6041rm -f conftest.$ac_objext conftest$ac_exeext
6042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6043 (eval $ac_link) 2>conftest.er1
6044 ac_status=$?
6045 grep -v '^ *+' conftest.er1 >conftest.err
6046 rm -f conftest.er1
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -z "$ac_c_werror_flag"
6051 || test ! -s conftest.err'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; } &&
6057 { ac_try='test -s conftest$ac_exeext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_cv_lib_socket_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006064else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006065 echo "$as_me: failed program was:" >&5
6066sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006067
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006068ac_cv_lib_socket_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006069fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006070rm -f conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext
6072LIBS=$ac_check_lib_save_LIBS
6073fi
6074echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6075echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6076if test $ac_cv_lib_socket_connect = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006077 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006078fi
6079
6080 fi
6081
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006082 # Guillermo Gomez says -lposix is necessary on A/UX.
6083 echo "$as_me:$LINENO: checking for remove" >&5
6084echo $ECHO_N "checking for remove... $ECHO_C" >&6
6085if test "${ac_cv_func_remove+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006087else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006088 cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */
6094/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6096#define remove innocuous_remove
6097
Bram Moolenaar071d4272004-06-13 20:20:40 +00006098/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006099 which can conflict with char remove (); below.
6100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6101 <limits.h> exists even on freestanding compilers. */
6102
6103#ifdef __STDC__
6104# include <limits.h>
6105#else
6106# include <assert.h>
6107#endif
6108
6109#undef remove
6110
Bram Moolenaar071d4272004-06-13 20:20:40 +00006111/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006112#ifdef __cplusplus
6113extern "C"
6114{
6115#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006116/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006117 builtin and then its argument prototype would still apply. */
6118char remove ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006119/* The GNU C library defines this for functions which it implements
6120 to always fail with ENOSYS. Some functions are actually named
6121 something starting with __ and the normal name is an alias. */
6122#if defined (__stub_remove) || defined (__stub___remove)
6123choke me
6124#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006125char (*f) () = remove;
6126#endif
6127#ifdef __cplusplus
6128}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006129#endif
6130
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006131int
6132main ()
6133{
6134return f != remove;
6135 ;
6136 return 0;
6137}
6138_ACEOF
6139rm -f conftest.$ac_objext conftest$ac_exeext
6140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6141 (eval $ac_link) 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try='test -s conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_func_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006162else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006163 echo "$as_me: failed program was:" >&5
6164sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006165
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006166ac_cv_func_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006167fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006168rm -f conftest.err conftest.$ac_objext \
6169 conftest$ac_exeext conftest.$ac_ext
6170fi
6171echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6172echo "${ECHO_T}$ac_cv_func_remove" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006173
6174 if test $ac_cv_func_remove = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006175 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6176echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6177if test "${ac_cv_lib_posix_remove+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006179else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006180 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006181LIBS="-lposix $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006182cat >conftest.$ac_ext <<_ACEOF
6183/* confdefs.h. */
6184_ACEOF
6185cat confdefs.h >>conftest.$ac_ext
6186cat >>conftest.$ac_ext <<_ACEOF
6187/* end confdefs.h. */
6188
Bram Moolenaar071d4272004-06-13 20:20:40 +00006189/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006190#ifdef __cplusplus
6191extern "C"
6192#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006193/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006194 builtin and then its argument prototype would still apply. */
6195char remove ();
6196int
6197main ()
6198{
6199remove ();
6200 ;
6201 return 0;
6202}
6203_ACEOF
6204rm -f conftest.$ac_objext conftest$ac_exeext
6205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6206 (eval $ac_link) 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_lib_posix_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006227else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006228 echo "$as_me: failed program was:" >&5
6229sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006230
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006231ac_cv_lib_posix_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006232fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006233rm -f conftest.err conftest.$ac_objext \
6234 conftest$ac_exeext conftest.$ac_ext
6235LIBS=$ac_check_lib_save_LIBS
6236fi
6237echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6238echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6239if test $ac_cv_lib_posix_remove = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006240 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006241fi
6242
6243 fi
6244
6245 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006246 echo "$as_me:$LINENO: checking for shmat" >&5
6247echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6248if test "${ac_cv_func_shmat+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006250else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006251 cat >conftest.$ac_ext <<_ACEOF
6252/* confdefs.h. */
6253_ACEOF
6254cat confdefs.h >>conftest.$ac_ext
6255cat >>conftest.$ac_ext <<_ACEOF
6256/* end confdefs.h. */
6257/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6259#define shmat innocuous_shmat
6260
Bram Moolenaar071d4272004-06-13 20:20:40 +00006261/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006262 which can conflict with char shmat (); below.
6263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264 <limits.h> exists even on freestanding compilers. */
6265
6266#ifdef __STDC__
6267# include <limits.h>
6268#else
6269# include <assert.h>
6270#endif
6271
6272#undef shmat
6273
Bram Moolenaar071d4272004-06-13 20:20:40 +00006274/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006275#ifdef __cplusplus
6276extern "C"
6277{
6278#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006279/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006280 builtin and then its argument prototype would still apply. */
6281char shmat ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006282/* The GNU C library defines this for functions which it implements
6283 to always fail with ENOSYS. Some functions are actually named
6284 something starting with __ and the normal name is an alias. */
6285#if defined (__stub_shmat) || defined (__stub___shmat)
6286choke me
6287#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006288char (*f) () = shmat;
6289#endif
6290#ifdef __cplusplus
6291}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006292#endif
6293
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006294int
6295main ()
6296{
6297return f != shmat;
6298 ;
6299 return 0;
6300}
6301_ACEOF
6302rm -f conftest.$ac_objext conftest$ac_exeext
6303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6304 (eval $ac_link) 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try='test -z "$ac_c_werror_flag"
6312 || test ! -s conftest.err'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest$ac_exeext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 (eval $ac_try) 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6324 ac_cv_func_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006325else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006326 echo "$as_me: failed program was:" >&5
6327sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006328
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006329ac_cv_func_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006330fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006331rm -f conftest.err conftest.$ac_objext \
6332 conftest$ac_exeext conftest.$ac_ext
6333fi
6334echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6335echo "${ECHO_T}$ac_cv_func_shmat" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006336
6337 if test $ac_cv_func_shmat = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006338 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6339echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6340if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006342else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006343 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006344LIBS="-lipc $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006345cat >conftest.$ac_ext <<_ACEOF
6346/* confdefs.h. */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h. */
6351
Bram Moolenaar071d4272004-06-13 20:20:40 +00006352/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006353#ifdef __cplusplus
6354extern "C"
6355#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006356/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006357 builtin and then its argument prototype would still apply. */
6358char shmat ();
6359int
6360main ()
6361{
6362shmat ();
6363 ;
6364 return 0;
6365}
6366_ACEOF
6367rm -f conftest.$ac_objext conftest$ac_exeext
6368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -z "$ac_c_werror_flag"
6377 || test ! -s conftest.err'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; } &&
6383 { ac_try='test -s conftest$ac_exeext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 ac_cv_lib_ipc_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006390else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006391 echo "$as_me: failed program was:" >&5
6392sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006393
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006394ac_cv_lib_ipc_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006395fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006396rm -f conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398LIBS=$ac_check_lib_save_LIBS
6399fi
6400echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6401echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6402if test $ac_cv_lib_ipc_shmat = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006404fi
6405
6406 fi
6407 fi
6408
6409 # Check for libraries that X11R6 Xt/Xaw programs need.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006410 ac_save_LDFLAGS=$LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006411 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6412 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6413 # check for ICE first), but we must link in the order -lSM -lICE or
6414 # we get undefined symbols. So assume we have SM if we have ICE.
6415 # These have to be linked with before -lX11, unlike the other
6416 # libraries we check for below, so use a different variable.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006417 # John Interrante, Karl Berry
6418 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6419echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6420if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006422else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006423 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006424LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006425cat >conftest.$ac_ext <<_ACEOF
6426/* confdefs.h. */
6427_ACEOF
6428cat confdefs.h >>conftest.$ac_ext
6429cat >>conftest.$ac_ext <<_ACEOF
6430/* end confdefs.h. */
6431
Bram Moolenaar071d4272004-06-13 20:20:40 +00006432/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006433#ifdef __cplusplus
6434extern "C"
6435#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006436/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006437 builtin and then its argument prototype would still apply. */
6438char IceConnectionNumber ();
6439int
6440main ()
6441{
6442IceConnectionNumber ();
6443 ;
6444 return 0;
6445}
6446_ACEOF
6447rm -f conftest.$ac_objext conftest$ac_exeext
6448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6449 (eval $ac_link) 2>conftest.er1
6450 ac_status=$?
6451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -z "$ac_c_werror_flag"
6457 || test ! -s conftest.err'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; } &&
6463 { ac_try='test -s conftest$ac_exeext'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 (eval $ac_try) 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6469 ac_cv_lib_ICE_IceConnectionNumber=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006470else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006473
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006474ac_cv_lib_ICE_IceConnectionNumber=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006475fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006476rm -f conftest.err conftest.$ac_objext \
6477 conftest$ac_exeext conftest.$ac_ext
6478LIBS=$ac_check_lib_save_LIBS
6479fi
6480echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6481echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6482if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006483 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006484fi
6485
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006486 LDFLAGS=$ac_save_LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006487
6488fi
6489
6490
6491 if test "$OS390Unix" = "yes"; then
6492 CFLAGS="$CFLAGS -W c,dll"
6493 LDFLAGS="$LDFLAGS -W l,dll"
6494 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6495 fi
6496
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006497
Bram Moolenaar071d4272004-06-13 20:20:40 +00006498 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6499 x_libraries=`echo "$x_includes" | sed s/include/lib/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006500 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6501echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006502 X_LIBS="$X_LIBS -L$x_libraries"
6503 if test "`(uname) 2>/dev/null`" = SunOS &&
6504 uname -r | grep '^5' >/dev/null; then
6505 X_LIBS="$X_LIBS -R $x_libraries"
6506 fi
6507 fi
6508
6509 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6510 x_includes=`echo "$x_libraries" | sed s/lib/include/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006511 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6512echo "${ECHO_T}Corrected X includes to $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006513 X_CFLAGS="$X_CFLAGS -I$x_includes"
6514 fi
6515
6516 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6517 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6518 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6519
6520
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006521 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6522echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006523 cflags_save=$CFLAGS
6524 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006525 cat >conftest.$ac_ext <<_ACEOF
6526/* confdefs.h. */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006531#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006532int
6533main ()
6534{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006535
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006536 ;
6537 return 0;
6538}
6539_ACEOF
6540rm -f conftest.$ac_objext
6541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_c_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest.$ac_objext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 echo "$as_me:$LINENO: result: yes" >&5
6563echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006564else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006565 echo "$as_me: failed program was:" >&5
6566sed 's/^/| /' conftest.$ac_ext >&5
6567
6568echo "$as_me:$LINENO: result: no" >&5
6569echo "${ECHO_T}no" >&6; no_x=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006570fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006572 CFLAGS=$cflags_save
6573
6574 if test "${no_x-no}" = yes; then
6575 with_x=no
6576 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006577 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006578#define HAVE_X11 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006579_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006580
6581 X_LIB="-lXt -lX11";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006582
Bram Moolenaar071d4272004-06-13 20:20:40 +00006583
6584 ac_save_LDFLAGS="$LDFLAGS"
6585 LDFLAGS="-L$x_libraries $LDFLAGS"
6586
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006587 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6588echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6589if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006591else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006592 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006593LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006594cat >conftest.$ac_ext <<_ACEOF
6595/* confdefs.h. */
6596_ACEOF
6597cat confdefs.h >>conftest.$ac_ext
6598cat >>conftest.$ac_ext <<_ACEOF
6599/* end confdefs.h. */
6600
Bram Moolenaar071d4272004-06-13 20:20:40 +00006601/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006602#ifdef __cplusplus
6603extern "C"
6604#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006605/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006606 builtin and then its argument prototype would still apply. */
6607char _XdmcpAuthDoIt ();
6608int
6609main ()
6610{
6611_XdmcpAuthDoIt ();
6612 ;
6613 return 0;
6614}
6615_ACEOF
6616rm -f conftest.$ac_objext conftest$ac_exeext
6617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618 (eval $ac_link) 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try='test -z "$ac_c_werror_flag"
6626 || test ! -s conftest.err'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; } &&
6632 { ac_try='test -s conftest$ac_exeext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 (eval $ac_try) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006639else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006640 echo "$as_me: failed program was:" >&5
6641sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006642
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006643ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006644fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006645rm -f conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647LIBS=$ac_check_lib_save_LIBS
6648fi
6649echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6650echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6651if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006653fi
6654
6655
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006656 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6657echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6658if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006660else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006661 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006662LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006663cat >conftest.$ac_ext <<_ACEOF
6664/* confdefs.h. */
6665_ACEOF
6666cat confdefs.h >>conftest.$ac_ext
6667cat >>conftest.$ac_ext <<_ACEOF
6668/* end confdefs.h. */
6669
Bram Moolenaar071d4272004-06-13 20:20:40 +00006670/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006671#ifdef __cplusplus
6672extern "C"
6673#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006674/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006675 builtin and then its argument prototype would still apply. */
6676char IceOpenConnection ();
6677int
6678main ()
6679{
6680IceOpenConnection ();
6681 ;
6682 return 0;
6683}
6684_ACEOF
6685rm -f conftest.$ac_objext conftest$ac_exeext
6686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6687 (eval $ac_link) 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
6694 { ac_try='test -z "$ac_c_werror_flag"
6695 || test ! -s conftest.err'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; } &&
6701 { ac_try='test -s conftest$ac_exeext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_lib_ICE_IceOpenConnection=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006708else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006709 echo "$as_me: failed program was:" >&5
6710sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006711
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006712ac_cv_lib_ICE_IceOpenConnection=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006713fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006714rm -f conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716LIBS=$ac_check_lib_save_LIBS
6717fi
6718echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6719echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6720if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006722fi
6723
6724
6725 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006726 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6727echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6728if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006730else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006731 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006732LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006733cat >conftest.$ac_ext <<_ACEOF
6734/* confdefs.h. */
6735_ACEOF
6736cat confdefs.h >>conftest.$ac_ext
6737cat >>conftest.$ac_ext <<_ACEOF
6738/* end confdefs.h. */
6739
Bram Moolenaar071d4272004-06-13 20:20:40 +00006740/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006741#ifdef __cplusplus
6742extern "C"
6743#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006744/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006745 builtin and then its argument prototype would still apply. */
6746char XpmCreatePixmapFromData ();
6747int
6748main ()
6749{
6750XpmCreatePixmapFromData ();
6751 ;
6752 return 0;
6753}
6754_ACEOF
6755rm -f conftest.$ac_objext conftest$ac_exeext
6756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6757 (eval $ac_link) 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -z "$ac_c_werror_flag"
6765 || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest$ac_exeext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 (eval $ac_try) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006778else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006779 echo "$as_me: failed program was:" >&5
6780sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006781
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006782ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006783fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006784rm -f conftest.err conftest.$ac_objext \
6785 conftest$ac_exeext conftest.$ac_ext
6786LIBS=$ac_check_lib_save_LIBS
6787fi
6788echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6789echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6790if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006791 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006792fi
6793
6794
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006795 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6796echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006797 cflags_save=$CFLAGS
6798 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006799 cat >conftest.$ac_ext <<_ACEOF
6800/* confdefs.h. */
6801_ACEOF
6802cat confdefs.h >>conftest.$ac_ext
6803cat >>conftest.$ac_ext <<_ACEOF
6804/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006805#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006806int
6807main ()
6808{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006809
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006810 ;
6811 return 0;
6812}
6813_ACEOF
6814rm -f conftest.$ac_objext
6815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816 (eval $ac_compile) 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try='test -z "$ac_c_werror_flag"
6824 || test ! -s conftest.err'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest.$ac_objext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006838else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006839 echo "$as_me: failed program was:" >&5
6840sed 's/^/| /' conftest.$ac_ext >&5
6841
6842CFLAGS="$CFLAGS -Wno-implicit-int"
6843 cat >conftest.$ac_ext <<_ACEOF
6844/* confdefs.h. */
6845_ACEOF
6846cat confdefs.h >>conftest.$ac_ext
6847cat >>conftest.$ac_ext <<_ACEOF
6848/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006849#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006850int
6851main ()
6852{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006853
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006854 ;
6855 return 0;
6856}
6857_ACEOF
6858rm -f conftest.$ac_objext
6859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -z "$ac_c_werror_flag"
6868 || test ! -s conftest.err'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; } &&
6874 { ac_try='test -s conftest.$ac_objext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 echo "$as_me:$LINENO: result: yes" >&5
6881echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006882else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006883 echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886echo "$as_me:$LINENO: result: test failed" >&5
6887echo "${ECHO_T}test failed" >&6
6888
Bram Moolenaar071d4272004-06-13 20:20:40 +00006889fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6891
Bram Moolenaar071d4272004-06-13 20:20:40 +00006892fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006894 CFLAGS=$cflags_save
6895
6896 LDFLAGS="$ac_save_LDFLAGS"
6897
6898 fi
6899fi
6900
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00006901test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006902
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006903echo "$as_me:$LINENO: checking --enable-gui argument" >&5
6904echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006905# Check whether --enable-gui or --disable-gui was given.
6906if test "${enable_gui+set}" = set; then
6907 enableval="$enable_gui"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006908
Bram Moolenaar071d4272004-06-13 20:20:40 +00006909else
6910 enable_gui="auto"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006911fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00006912
6913enable_gui_canon=`echo "_$enable_gui" | \
6914 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
6915
6916SKIP_GTK=YES
6917SKIP_GTK2=YES
6918SKIP_GNOME=YES
Bram Moolenaar592e0a22004-07-03 16:05:59 +00006919SKIP_KDE=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00006920SKIP_MOTIF=YES
6921SKIP_ATHENA=YES
6922SKIP_NEXTAW=YES
6923SKIP_PHOTON=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00006924SKIP_CARBON=YES
6925GUITYPE=NONE
6926
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006927if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006928 SKIP_PHOTON=
6929 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006930 no) echo "$as_me:$LINENO: result: no GUI support" >&5
6931echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006932 SKIP_PHOTON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006933 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
6934echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
6935 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
6936echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
6937 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
6938echo "${ECHO_T}Photon GUI support" >&6 ;;
6939 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
6940echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006941 SKIP_PHOTON=YES ;;
6942 esac
6943
6944elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
6945 SKIP_CARBON=
6946 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006947 no) echo "$as_me:$LINENO: result: no GUI support" >&5
6948echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006949 SKIP_CARBON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006950 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
6951echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
6952 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
6953echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
6954 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
6955echo "${ECHO_T}Carbon GUI support" >&6 ;;
6956 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
6957echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006958 SKIP_CARBON=YES ;;
6959 esac
6960
6961else
6962
Bram Moolenaar071d4272004-06-13 20:20:40 +00006963 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006964 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
6965echo "${ECHO_T}no GUI support" >&6 ;;
6966 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
6967echo "${ECHO_T}yes/auto - automatic GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006968 SKIP_GTK=
6969 SKIP_GTK2=
6970 SKIP_GNOME=
6971 SKIP_MOTIF=
6972 SKIP_ATHENA=
6973 SKIP_NEXTAW=
6974 SKIP_CARBON=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006975 kde|Kde|KDE) echo "$as_me:$LINENO: result: KDE 2.x or 3.x GUI support" >&5
6976echo "${ECHO_T}KDE 2.x or 3.x GUI support" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00006977 SKIP_KDE=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006978 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
6979echo "${ECHO_T}GTK+ 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006980 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006981 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
6982echo "${ECHO_T}GTK+ 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006983 SKIP_GTK=
6984 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006985 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
6986echo "${ECHO_T}GNOME 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006987 SKIP_GNOME=
6988 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006989 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
6990echo "${ECHO_T}GNOME 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006991 SKIP_GNOME=
6992 SKIP_GTK=
6993 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006994 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
6995echo "${ECHO_T}Motif GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006996 SKIP_MOTIF=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006997 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
6998echo "${ECHO_T}Athena GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006999 SKIP_ATHENA=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007000 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7001echo "${ECHO_T}neXtaw GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007002 SKIP_NEXTAW=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007003 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7004echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007005 esac
7006
7007fi
7008
Bram Moolenaar843ee412004-06-30 16:16:41 +00007009if test "x$SKIP_KDE" != "xYES" -a "$enable_gui_canon" != "kde"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007010 echo "$as_me:$LINENO: checking whether or not to look for KDE" >&5
7011echo $ECHO_N "checking whether or not to look for KDE... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007012 # Check whether --enable-kde-check or --disable-kde-check was given.
7013if test "${enable_kde_check+set}" = set; then
7014 enableval="$enable_kde_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007015
Bram Moolenaar843ee412004-06-30 16:16:41 +00007016else
7017 enable_kde_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007018fi;
7019 echo "$as_me:$LINENO: result: $enable_kde_check" >&5
7020echo "${ECHO_T}$enable_kde_check" >&6;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007021 if test "x$enable_kde_check" = "xno"; then
7022 SKIP_KDE=YES
7023 fi
7024fi
7025
Bram Moolenaar071d4272004-06-13 20:20:40 +00007026if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007027 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7028echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007029 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7030if test "${enable_gtk_check+set}" = set; then
7031 enableval="$enable_gtk_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007032
Bram Moolenaar071d4272004-06-13 20:20:40 +00007033else
7034 enable_gtk_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007035fi;
7036 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7037echo "${ECHO_T}$enable_gtk_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007038 if test "x$enable_gtk_check" = "xno"; then
7039 SKIP_GTK=YES
7040 SKIP_GNOME=YES
7041 fi
7042fi
7043
7044if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7045 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007046 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7047echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007048 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7049if test "${enable_gtk2_check+set}" = set; then
7050 enableval="$enable_gtk2_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007051
Bram Moolenaar071d4272004-06-13 20:20:40 +00007052else
7053 enable_gtk2_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007054fi;
7055 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7056echo "${ECHO_T}$enable_gtk2_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007057 if test "x$enable_gtk2_check" = "xno"; then
7058 SKIP_GTK2=YES
7059 fi
7060fi
7061
7062if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7063 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007064 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7065echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007066 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7067if test "${enable_gnome_check+set}" = set; then
7068 enableval="$enable_gnome_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007069
Bram Moolenaar071d4272004-06-13 20:20:40 +00007070else
7071 enable_gnome_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007072fi;
7073 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7074echo "${ECHO_T}$enable_gnome_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007075 if test "x$enable_gnome_check" = "xno"; then
7076 SKIP_GNOME=YES
7077 fi
7078fi
7079
7080if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007081 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7082echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007083 # Check whether --enable-motif-check or --disable-motif-check was given.
7084if test "${enable_motif_check+set}" = set; then
7085 enableval="$enable_motif_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007086
Bram Moolenaar071d4272004-06-13 20:20:40 +00007087else
7088 enable_motif_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007089fi;
7090 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7091echo "${ECHO_T}$enable_motif_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007092 if test "x$enable_motif_check" = "xno"; then
7093 SKIP_MOTIF=YES
7094 fi
7095fi
7096
7097if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007098 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7099echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007100 # Check whether --enable-athena-check or --disable-athena-check was given.
7101if test "${enable_athena_check+set}" = set; then
7102 enableval="$enable_athena_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007103
Bram Moolenaar071d4272004-06-13 20:20:40 +00007104else
7105 enable_athena_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007106fi;
7107 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7108echo "${ECHO_T}$enable_athena_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007109 if test "x$enable_athena_check" = "xno"; then
7110 SKIP_ATHENA=YES
7111 fi
7112fi
7113
7114if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007115 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7116echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007117 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7118if test "${enable_nextaw_check+set}" = set; then
7119 enableval="$enable_nextaw_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007120
Bram Moolenaar071d4272004-06-13 20:20:40 +00007121else
7122 enable_nextaw_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007123fi;
7124 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7125echo "${ECHO_T}$enable_nextaw_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007126 if test "x$enable_nextaw_check" = "xno"; then
7127 SKIP_NEXTAW=YES
7128 fi
7129fi
7130
7131if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007132 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7133echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007134 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7135if test "${enable_carbon_check+set}" = set; then
7136 enableval="$enable_carbon_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007137
Bram Moolenaar071d4272004-06-13 20:20:40 +00007138else
7139 enable_carbon_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007140fi;
7141 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7142echo "${ECHO_T}$enable_carbon_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007143 if test "x$enable_carbon_check" = "xno"; then
7144 SKIP_CARBON=YES
7145 fi
7146fi
7147
Bram Moolenaar843ee412004-06-30 16:16:41 +00007148
7149if test -z "$SKIP_KDE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007150
Bram Moolenaar843ee412004-06-30 16:16:41 +00007151# Check whether --with-qt-dir or --without-qt-dir was given.
7152if test "${with_qt_dir+set}" = set; then
7153 withval="$with_qt_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007154
Bram Moolenaar843ee412004-06-30 16:16:41 +00007155 ROOTQT="$withval"
7156 MOC="$withval"/bin/moc
7157 QT_INCLUDES="$withval"/include
7158 QT_LIBS="$withval"/lib
Bram Moolenaar843ee412004-06-30 16:16:41 +00007159
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007160fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007161
7162if test "x$ROOTQT" = "x"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007163 if test -z "$QTDIR"; then
7164 # Extract the first word of "moc", so it can be a program name with args.
Bram Moolenaar843ee412004-06-30 16:16:41 +00007165set dummy moc; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007166echo "$as_me:$LINENO: checking for $ac_word" >&5
7167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7168if test "${ac_cv_path_MOC+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007170else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007171 case $MOC in
7172 [\\/]* | ?:[\\/]*)
Bram Moolenaar843ee412004-06-30 16:16:41 +00007173 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
7174 ;;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007175 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187done
7188done
7189
Bram Moolenaar843ee412004-06-30 16:16:41 +00007190 test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no"
7191 ;;
7192esac
7193fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007194MOC=$ac_cv_path_MOC
7195
Bram Moolenaar843ee412004-06-30 16:16:41 +00007196if test -n "$MOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007197 echo "$as_me:$LINENO: result: $MOC" >&5
7198echo "${ECHO_T}$MOC" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007199else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007200 echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007202fi
7203
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007204 if test "x$MOC" = "xno"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007205 { { echo "$as_me:$LINENO: error: could not find Qt directory" >&5
7206echo "$as_me: error: could not find Qt directory" >&2;}
7207 { (exit 1); exit 1; }; }
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007208 else
7209 ROOTQT=`echo $MOC | sed 's+/bin/moc++'`
7210 fi
7211 else
7212 ROOTQT="$QTDIR"
7213 fi
Bram Moolenaar843ee412004-06-30 16:16:41 +00007214fi
7215MOC="$ROOTQT"/bin/moc
7216QT_INCLUDES="$ROOTQT"/include
7217QT_LIBS="$ROOTQT"/lib
7218
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007219
Bram Moolenaar843ee412004-06-30 16:16:41 +00007220# Check whether --with-qt-includes or --without-qt-includes was given.
7221if test "${with_qt_includes+set}" = set; then
7222 withval="$with_qt_includes"
7223 QT_INCLUDES="$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007224
7225fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007226
7227
7228# Check whether --with-qt-libraries or --without-qt-libraries was given.
7229if test "${with_qt_libraries+set}" = set; then
7230 withval="$with_qt_libraries"
7231 QT_LIBS="$withval"
Bram Moolenaar843ee412004-06-30 16:16:41 +00007232
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007233fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007234
7235if test "x$QT_LIBS" = "x" ; then
7236 QT_LIBS="$ROOTQT"/lib
7237fi
7238if test "x$QT_INCLUDES" = "x" ; then
7239 QT_INCLUDES="$ROOTQT"/include
7240fi
7241
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007242echo "$as_me:$LINENO: checking whether or not to use a KDE Toolbar in KVim" >&5
7243echo $ECHO_N "checking whether or not to use a KDE Toolbar in KVim... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007244# Check whether --enable-kde-toolbar or --disable-kde-toolbar was given.
7245if test "${enable_kde_toolbar+set}" = set; then
7246 enableval="$enable_kde_toolbar"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007247
Bram Moolenaar843ee412004-06-30 16:16:41 +00007248else
7249 enable_kde_toolbar="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007250fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007251if test "x$enable_kde_toolbar" != "xno"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007252 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar843ee412004-06-30 16:16:41 +00007253#define FEAT_KDETOOLBAR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007254_ACEOF
Bram Moolenaar843ee412004-06-30 16:16:41 +00007255
7256fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007257echo "$as_me:$LINENO: result: $enable_kde_toolbar" >&5
7258echo "${ECHO_T}$enable_kde_toolbar" >&6;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007259fi
7260
7261
7262if test -z "$SKIP_KDE"; then
7263
7264
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007265
7266
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007267echo "$as_me:$LINENO: checking --disable-rpath argument" >&5
7268echo $ECHO_N "checking --disable-rpath argument... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007269# Check whether --enable-rpath or --disable-rpath was given.
7270if test "${enable_rpath+set}" = set; then
7271 enableval="$enable_rpath"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007272
Bram Moolenaar843ee412004-06-30 16:16:41 +00007273else
7274 enable_rpath="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007275fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007276if test "$enable_rpath" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007277 echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007279else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007280 echo "$as_me:$LINENO: result: yes" >&5
7281echo "${ECHO_T}yes" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007282fi
7283
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007284echo "$as_me:$LINENO: checking --with-kde-prefix argument" >&5
7285echo $ECHO_N "checking --with-kde-prefix argument... $ECHO_C" >&6
7286
Bram Moolenaar843ee412004-06-30 16:16:41 +00007287# Check whether --with-kde-prefix or --without-kde-prefix was given.
7288if test "${with_kde_prefix+set}" = set; then
7289 withval="$with_kde_prefix"
7290 kde_config_prefix="$withval";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007291echo "$as_me:$LINENO: result: $kde_config_prefix" >&5
7292echo "${ECHO_T}$kde_config_prefix" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007293else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007294 kde_config_prefix="";echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6
7296fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007297
7298
7299# Check whether --with-kde-includes or --without-kde-includes was given.
7300if test "${with_kde_includes+set}" = set; then
7301 withval="$with_kde_includes"
7302 KDE_INCLUDES="$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007303
7304fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007305
7306
7307# Check whether --with-kde-libraries or --without-kde-libraries was given.
7308if test "${with_kde_libraries+set}" = set; then
7309 withval="$with_kde_libraries"
7310 KDE_LIBS="$withval"
Bram Moolenaar843ee412004-06-30 16:16:41 +00007311
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007312fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007313
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007314echo "$as_me:$LINENO: checking --disable-kdetest argument" >&5
7315echo $ECHO_N "checking --disable-kdetest argument... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007316# Check whether --enable-kdetest or --disable-kdetest was given.
7317if test "${enable_kdetest+set}" = set; then
7318 enableval="$enable_kdetest"
7319 enable_kdetest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007320fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007321
7322if test "x$enable_kdetest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007323 echo "$as_me:$LINENO: result: kde test enabled" >&5
7324echo "${ECHO_T}kde test enabled" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007325else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007326 echo "$as_me:$LINENO: result: kde test disabled" >&5
7327echo "${ECHO_T}kde test disabled" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007328fi
7329
7330if test "x$kde_config_prefix" != "x" ; then
Bram Moolenaar843ee412004-06-30 16:16:41 +00007331 KDE_CONFIG=$kde_config_prefix/bin/kde-config
7332fi
7333
7334if test "X$KDE_CONFIG" = "X"; then
7335 # Extract the first word of "kde-config", so it can be a program name with args.
7336set dummy kde-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_KDE_CONFIG+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007341else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007342 case $KDE_CONFIG in
7343 [\\/]* | ?:[\\/]*)
Bram Moolenaar843ee412004-06-30 16:16:41 +00007344 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path.
7345 ;;
Bram Moolenaar843ee412004-06-30 16:16:41 +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_KDE_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 Moolenaar843ee412004-06-30 16:16:41 +00007361 test -z "$ac_cv_path_KDE_CONFIG" && ac_cv_path_KDE_CONFIG="no"
7362 ;;
7363esac
7364fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007365KDE_CONFIG=$ac_cv_path_KDE_CONFIG
7366
Bram Moolenaar843ee412004-06-30 16:16:41 +00007367if test -n "$KDE_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007368 echo "$as_me:$LINENO: result: $KDE_CONFIG" >&5
7369echo "${ECHO_T}$KDE_CONFIG" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007370else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007371 echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007373fi
7374
7375else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007376 echo "$as_me:$LINENO: result: Using KDE configuration program $KDE_CONFIG" >&5
7377echo "${ECHO_T}Using KDE configuration program $KDE_CONFIG" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007378fi
7379
7380if test "X$KDE_CONFIG" != "X" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007381
Bram Moolenaar843ee412004-06-30 16:16:41 +00007382 if test "X$KDE_CONFIG" != "X"; then
7383 min_kde_version=2.0.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007384 echo "$as_me:$LINENO: checking for KDE version >= $min_kde_version" >&5
7385echo $ECHO_N "checking for KDE version >= $min_kde_version... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007386 no_kde=""
7387 if test "$KDE_CONFIG" = "no" ; then
7388 no_kde=yes
7389 else
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007390 KDE_PREFIX=`$KDE_CONFIG --prefix`
Bram Moolenaar843ee412004-06-30 16:16:41 +00007391 if test "x$KDE_LIBS" = "x"; then
7392 KDE_LIBS="$KDE_PREFIX/lib"
7393 fi
7394 if test "x$KDE_INCLUDES" = "x"; then
Bram Moolenaar592e0a22004-07-03 16:05:59 +00007395 KDE_INCLUDES="$KDE_PREFIX/include"
7396 if test -d "$KDE_INCLUDES/kde"; then
7397 KDE_INCLUDES="$KDE_INCLUDES/kde"
7398 fi
Bram Moolenaar843ee412004-06-30 16:16:41 +00007399 fi
7400 kde_major_version=`$KDE_CONFIG --version | grep KDE | \
7401sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'`
7402 kde_minor_version=`$KDE_CONFIG --version | grep KDE | \
7403sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007404
Bram Moolenaar843ee412004-06-30 16:16:41 +00007405 qt_major_version=`$KDE_CONFIG --version | grep Qt | sed -e \
7406's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'`
7407 qt_minor_version=`$KDE_CONFIG --version | grep Qt | sed -e \
7408's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007409
Bram Moolenaar843ee412004-06-30 16:16:41 +00007410 if test "x$enable-kdetest" = "xyes" ; then
7411 ac_save_LIBS="$LIBS"
7412 LIBS="$LIBS $KDE_LIBS"
7413
7414 if test "$cross_compiling" = yes; then
7415 echo $ac_n "cross compiling KDE ? ? how can i remove that ? :)"
7416else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007417 cat >conftest.$ac_ext <<_ACEOF
7418/* confdefs.h. */
7419_ACEOF
7420cat confdefs.h >>conftest.$ac_ext
7421cat >>conftest.$ac_ext <<_ACEOF
7422/* end confdefs.h. */
Bram Moolenaar843ee412004-06-30 16:16:41 +00007423
7424#include <stdio.h>
7425int
7426main()
7427{ return 0; }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007428
7429_ACEOF
7430rm -f conftest$ac_exeext
7431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432 (eval $ac_link) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
Bram Moolenaar843ee412004-06-30 16:16:41 +00007441 :
7442else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007443 echo "$as_me: program exited with status $ac_status" >&5
7444echo "$as_me: failed program was:" >&5
7445sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar843ee412004-06-30 16:16:41 +00007446
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007447( exit $ac_status )
7448no_kde=yes
7449fi
7450rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7451fi
Bram Moolenaar843ee412004-06-30 16:16:41 +00007452 LIBS="$ac_save_LIBS"
7453 fi
7454 fi
7455 if test "x$no_kde" = x ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007456 echo "$as_me:$LINENO: result: found KDE $kde_major_version.$kde_minor_version" >&5
7457echo "${ECHO_T}found KDE $kde_major_version.$kde_minor_version" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007458 GUI_LIB_LOC="-L$KDE_LIBS -lkdeui -lkdecore -lDCOP"
7459 GUI_INC_LOC="-I$KDE_INCLUDES"
7460 KDEDIR="$KDE_PREFIX"
7461 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007462 echo "$as_me:$LINENO: result: no" >&5
7463echo "${ECHO_T}no" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007464 KDE_LIBS=""
7465 :
7466 fi
7467else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007468 echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007470 KDE_LIBS=""
7471 :
7472fi
7473
7474
7475
7476
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007477
Bram Moolenaar843ee412004-06-30 16:16:41 +00007478 if test "x$KDE_PREFIX" != "x"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007479 echo "$as_me:$LINENO: checking for QT version $qt_major_version.x" >&5
7480echo $ECHO_N "checking for QT version $qt_major_version.x... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007481 if test "x$ROOTQT" != "x" ; then
7482 GUI_INC_LOC="-I$QT_INCLUDES $GUI_INC_LOC"
7483 if test $qt_major_version -lt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007484 { { echo "$as_me:$LINENO: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" >&5
7485echo "$as_me: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" >&2;}
7486 { (exit 1); exit 1; }; }
Bram Moolenaar843ee412004-06-30 16:16:41 +00007487 fi
7488 if test "`(uname) 2>/dev/null`" = "FreeBSD"; then
7489 CFLAGS="$CFLAGS -D_THREAD_SAFE"
7490 CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE"
7491 GUI_LIB_LOC="$GUI_LIB_LOC -pthread"
7492 LIBS="$LIBS -pthread"
7493 fi
7494
7495 if test "x$enable_rpath" = "xyes"; then
7496 if test $qt_major_version = 2; then
7497 GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC \
7498-Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS"
7499 else
7500 GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC \
7501-Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS"
7502 fi
7503 else
7504 if test $qt_major_version = 2; then
7505 GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC"
7506 else
7507 GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC"
7508 fi
7509 fi
7510
7511 GUI_INC_LOC="`echo $GUI_INC_LOC\ | sed 's%-I/usr/include %%'`"
7512
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007513 echo "$as_me:$LINENO: result: found $qt_major_version.$qt_minor_version in $ROOTQT" >&5
7514echo "${ECHO_T}found $qt_major_version.$qt_minor_version in $ROOTQT" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007515
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007516
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007517 qt_incdir=NO
7518 for i in $QT_INCLUDES;
7519 do
7520 for j in qstyle.h;
7521 do
Bram Moolenaare344bea2005-09-01 20:46:49 +00007522 echo "configure: 7522: $i/$j" >&5
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007523 if test -r "$i/$j"; then
7524 echo "taking that" >&5
7525 qt_incdir=$i
7526 break 2
7527 fi
7528 done
7529 done
7530
7531 if test "x$qt_incdir" = "xNO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007532 { { echo "$as_me:$LINENO: error: Could not find Qt headers in $QT_INCLUDES" >&5
7533echo "$as_me: error: Could not find Qt headers in $QT_INCLUDES" >&2;}
7534 { (exit 1); exit 1; }; }
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007535 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007536
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007537 kde_incdir=NO
7538 for i in $KDE_INCLUDES;
7539 do
7540 for j in kapplication.h;
7541 do
Bram Moolenaare344bea2005-09-01 20:46:49 +00007542 echo "configure: 7542: $i/$j" >&5
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007543 if test -r "$i/$j"; then
7544 echo "taking that" >&5
7545 kde_incdir=$i
7546 break 2
7547 fi
7548 done
7549 done
7550
7551 if test "x$kde_incdir" = "xNO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007552 { { echo "$as_me:$LINENO: error: Could not find KDE headers in $KDE_INCLUDES" >&5
7553echo "$as_me: error: Could not find KDE headers in $KDE_INCLUDES" >&2;}
7554 { (exit 1); exit 1; }; }
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007555 fi
7556
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007557
7558
7559 ac_ext=cc
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007560ac_cpp='$CXXCPP $CPPFLAGS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7564
7565 ac_ext=cc
7566ac_cpp='$CXXCPP $CPPFLAGS'
7567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7570if test -n "$ac_tool_prefix"; then
7571 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7572 do
7573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7575echo "$as_me:$LINENO: checking for $ac_word" >&5
7576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7577if test "${ac_cv_prog_CXX+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7579else
7580 if test -n "$CXX"; then
7581 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7593 fi
7594done
7595done
7596
7597fi
7598fi
7599CXX=$ac_cv_prog_CXX
7600if test -n "$CXX"; then
7601 echo "$as_me:$LINENO: result: $CXX" >&5
7602echo "${ECHO_T}$CXX" >&6
7603else
7604 echo "$as_me:$LINENO: result: no" >&5
7605echo "${ECHO_T}no" >&6
7606fi
7607
7608 test -n "$CXX" && break
7609 done
7610fi
7611if test -z "$CXX"; then
7612 ac_ct_CXX=$CXX
7613 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7614do
7615 # Extract the first word of "$ac_prog", so it can be a program name with args.
7616set dummy $ac_prog; ac_word=$2
7617echo "$as_me:$LINENO: checking for $ac_word" >&5
7618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7619if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621else
7622 if test -n "$ac_ct_CXX"; then
7623 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7624else
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_ac_ct_CXX="$ac_prog"
7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636done
7637done
7638
7639fi
7640fi
7641ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7642if test -n "$ac_ct_CXX"; then
7643 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7644echo "${ECHO_T}$ac_ct_CXX" >&6
7645else
7646 echo "$as_me:$LINENO: result: no" >&5
7647echo "${ECHO_T}no" >&6
7648fi
7649
7650 test -n "$ac_ct_CXX" && break
7651done
7652test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7653
7654 CXX=$ac_ct_CXX
7655fi
7656
7657
7658# Provide some information about the compiler.
7659echo "$as_me:$LINENO:" \
7660 "checking for C++ compiler version" >&5
7661ac_compiler=`set X $ac_compile; echo $2`
7662{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7663 (eval $ac_compiler --version </dev/null >&5) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }
7667{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7668 (eval $ac_compiler -v </dev/null >&5) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }
7672{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7673 (eval $ac_compiler -V </dev/null >&5) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }
7677
7678echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7679echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7680if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683 cat >conftest.$ac_ext <<_ACEOF
7684/* confdefs.h. */
7685_ACEOF
7686cat confdefs.h >>conftest.$ac_ext
7687cat >>conftest.$ac_ext <<_ACEOF
7688/* end confdefs.h. */
7689
7690int
7691main ()
7692{
7693#ifndef __GNUC__
7694 choke me
7695#endif
7696
7697 ;
7698 return 0;
7699}
7700_ACEOF
7701rm -f conftest.$ac_objext
7702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703 (eval $ac_compile) 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -z "$ac_cxx_werror_flag"
7711 || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 ac_compiler_gnu=yes
7724else
7725 echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728ac_compiler_gnu=no
7729fi
7730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7732
7733fi
7734echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7735echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7736GXX=`test $ac_compiler_gnu = yes && echo yes`
7737ac_test_CXXFLAGS=${CXXFLAGS+set}
7738ac_save_CXXFLAGS=$CXXFLAGS
7739CXXFLAGS="-g"
7740echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7741echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7742if test "${ac_cv_prog_cxx_g+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744else
7745 cat >conftest.$ac_ext <<_ACEOF
7746/* confdefs.h. */
7747_ACEOF
7748cat confdefs.h >>conftest.$ac_ext
7749cat >>conftest.$ac_ext <<_ACEOF
7750/* end confdefs.h. */
7751
7752int
7753main ()
7754{
7755
7756 ;
7757 return 0;
7758}
7759_ACEOF
7760rm -f conftest.$ac_objext
7761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762 (eval $ac_compile) 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_cxx_werror_flag"
7770 || test ! -s conftest.err'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 (eval $ac_try) 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; } &&
7776 { ac_try='test -s conftest.$ac_objext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_cv_prog_cxx_g=yes
7783else
7784 echo "$as_me: failed program was:" >&5
7785sed 's/^/| /' conftest.$ac_ext >&5
7786
7787ac_cv_prog_cxx_g=no
7788fi
7789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7790fi
7791echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7792echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7793if test "$ac_test_CXXFLAGS" = set; then
7794 CXXFLAGS=$ac_save_CXXFLAGS
7795elif test $ac_cv_prog_cxx_g = yes; then
7796 if test "$GXX" = yes; then
7797 CXXFLAGS="-g -O2"
7798 else
7799 CXXFLAGS="-g"
7800 fi
7801else
7802 if test "$GXX" = yes; then
7803 CXXFLAGS="-O2"
7804 else
7805 CXXFLAGS=
7806 fi
7807fi
7808for ac_declaration in \
7809 '' \
7810 'extern "C" void std::exit (int) throw (); using std::exit;' \
7811 'extern "C" void std::exit (int); using std::exit;' \
7812 'extern "C" void exit (int) throw ();' \
7813 'extern "C" void exit (int);' \
7814 'void exit (int);'
7815do
7816 cat >conftest.$ac_ext <<_ACEOF
7817/* confdefs.h. */
7818_ACEOF
7819cat confdefs.h >>conftest.$ac_ext
7820cat >>conftest.$ac_ext <<_ACEOF
7821/* end confdefs.h. */
7822$ac_declaration
7823#include <stdlib.h>
7824int
7825main ()
7826{
7827exit (42);
7828 ;
7829 return 0;
7830}
7831_ACEOF
7832rm -f conftest.$ac_objext
7833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7834 (eval $ac_compile) 2>conftest.er1
7835 ac_status=$?
7836 grep -v '^ *+' conftest.er1 >conftest.err
7837 rm -f conftest.er1
7838 cat conftest.err >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try='test -z "$ac_cxx_werror_flag"
7842 || test ! -s conftest.err'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 (eval $ac_try) 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; } &&
7848 { ac_try='test -s conftest.$ac_objext'
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 (eval $ac_try) 2>&5
7851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; }; then
7854 :
7855else
7856 echo "$as_me: failed program was:" >&5
7857sed 's/^/| /' conftest.$ac_ext >&5
7858
7859continue
7860fi
7861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7862 cat >conftest.$ac_ext <<_ACEOF
7863/* confdefs.h. */
7864_ACEOF
7865cat confdefs.h >>conftest.$ac_ext
7866cat >>conftest.$ac_ext <<_ACEOF
7867/* end confdefs.h. */
7868$ac_declaration
7869int
7870main ()
7871{
7872exit (42);
7873 ;
7874 return 0;
7875}
7876_ACEOF
7877rm -f conftest.$ac_objext
7878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7879 (eval $ac_compile) 2>conftest.er1
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_cxx_werror_flag"
7887 || test ! -s conftest.err'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest.$ac_objext'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 break
7900else
7901 echo "$as_me: failed program was:" >&5
7902sed 's/^/| /' conftest.$ac_ext >&5
7903
7904fi
7905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7906done
7907rm -f conftest*
7908if test -n "$ac_declaration"; then
7909 echo '#ifdef __cplusplus' >>confdefs.h
7910 echo $ac_declaration >>confdefs.h
7911 echo '#endif' >>confdefs.h
7912fi
7913
7914ac_ext=cc
7915ac_cpp='$CXXCPP $CPPFLAGS'
7916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007919
7920 ac_save_LIBS="$LIBS"
7921 LIBS="$GUI_LIB_LOC"
7922 ac_save_CXXFLAGS="$CXXFLAGS"
7923 CXXFLAGS="$CXXFLAGS $GUI_INC_LOC"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007924 echo "$as_me:$LINENO: checking whether Qt libraries are usable" >&5
7925echo $ECHO_N "checking whether Qt libraries are usable... $ECHO_C" >&6
7926
7927cat >conftest.$ac_ext <<_ACEOF
7928/* confdefs.h. */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h. */
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007933#include <qapplication.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007934int
7935main ()
7936{
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007937
7938 int argc;
7939 char** argv;
7940 QApplication app(argc, argv);
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007941
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007942 ;
7943 return 0;
7944}
7945_ACEOF
7946rm -f conftest.$ac_objext conftest$ac_exeext
7947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_cxx_werror_flag"
7956 || test ! -s conftest.err'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try='test -s conftest$ac_exeext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 echo "$as_me:$LINENO: result: yes" >&5
7969echo "${ECHO_T}yes" >&6
7970else
7971 echo "$as_me: failed program was:" >&5
7972sed 's/^/| /' conftest.$ac_ext >&5
7973
7974echo "$as_me:$LINENO: result: no" >&5
7975echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: Qt fails to link a simple application" >&5
7976echo "$as_me: error: Qt fails to link a simple application" >&2;}
7977 { (exit check your installation and settings); exit check your installation and settings; }; }
7978fi
7979rm -f conftest.err conftest.$ac_objext \
7980 conftest$ac_exeext conftest.$ac_ext
7981
7982 echo "$as_me:$LINENO: checking whether KDE libraries are usable" >&5
7983echo $ECHO_N "checking whether KDE libraries are usable... $ECHO_C" >&6
7984 cat >conftest.$ac_ext <<_ACEOF
7985/* confdefs.h. */
7986_ACEOF
7987cat confdefs.h >>conftest.$ac_ext
7988cat >>conftest.$ac_ext <<_ACEOF
7989/* end confdefs.h. */
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007990#include <kapplication.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007991int
7992main ()
7993{
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007994
7995 int argc;
7996 char** argv;
7997 KApplication app(argc, argv);
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007998
7999 ;
8000 return 0;
8001}
8002_ACEOF
8003rm -f conftest.$ac_objext conftest$ac_exeext
8004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005 (eval $ac_link) 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -z "$ac_cxx_werror_flag"
8013 || test ! -s conftest.err'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; } &&
8019 { ac_try='test -s conftest$ac_exeext'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 echo "$as_me:$LINENO: result: yes" >&5
8026echo "${ECHO_T}yes" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008027else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008028 echo "$as_me: failed program was:" >&5
8029sed 's/^/| /' conftest.$ac_ext >&5
8030
8031echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: KDE fails to link a simple application" >&5
8033echo "$as_me: error: KDE fails to link a simple application" >&2;}
8034 { (exit check your installation and settings); exit check your installation and settings; }; }
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008035fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008036rm -f conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008038
8039 LIBS="$ac_save_LIBS"
8040 CXXFLAGS="$ac_save_CXXFLAGS"
8041 ac_ext=c
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008042ac_cpp='$CPP $CPPFLAGS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008046
8047
8048
Bram Moolenaar843ee412004-06-30 16:16:41 +00008049 SKIP_GTK=YES
8050 SKIP_ATHENA=YES
8051 SKIP_MOTIF=YES
8052 GUITYPE=KDE
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008053
8054
8055
8056
8057
8058 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar843ee412004-06-30 16:16:41 +00008059#define FEAT_GUI_KDE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008060_ACEOF
Bram Moolenaar843ee412004-06-30 16:16:41 +00008061
8062 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008063 { { echo "$as_me:$LINENO: error: Detected QT version mismatched" >&5
8064echo "$as_me: error: Detected QT version mismatched" >&2;}
8065 { (exit 1); exit 1; }; }
Bram Moolenaar843ee412004-06-30 16:16:41 +00008066 fi
8067 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008068 { { echo "$as_me:$LINENO: error: Could not find KDE installation prefix" >&5
8069echo "$as_me: error: Could not find KDE installation prefix" >&2;}
8070 { (exit 1); exit 1; }; }
Bram Moolenaar843ee412004-06-30 16:16:41 +00008071 fi
8072fi
8073fi
8074
Bram Moolenaar071d4272004-06-13 20:20:40 +00008075if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008076 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8077echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
8078 echo "$as_me:$LINENO: result: yes" >&5
8079echo "${ECHO_T}yes" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008080 GUITYPE=CARBONGUI
Bram Moolenaare344bea2005-09-01 20:46:49 +00008081 if test "$VIMNAME" = "vim"; then
8082 VIMNAME=Vim
8083 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00008084 SKIP_GTK=YES;
8085 SKIP_GTK2=YES;
8086 SKIP_GNOME=YES;
8087 SKIP_MOTIF=YES;
8088 SKIP_ATHENA=YES;
8089 SKIP_NEXTAW=YES;
8090 SKIP_PHOTON=YES;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008091 SKIP_CARBON=YES
8092fi
8093
8094
8095
8096
8097
8098
8099
8100
8101
Bram Moolenaar071d4272004-06-13 20:20:40 +00008102if test -z "$SKIP_GTK"; then
8103
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008104 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8105echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
8106
8107# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008108if test "${with_gtk_prefix+set}" = set; then
8109 withval="$with_gtk_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008110 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8111echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008112else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008113 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
8114echo "${ECHO_T}no" >&6
8115fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008116
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008117 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8118echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008119
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008120# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008121if test "${with_gtk_exec_prefix+set}" = set; then
8122 withval="$with_gtk_exec_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008123 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8124echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008125else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008126 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
8127echo "${ECHO_T}no" >&6
8128fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008129
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008130 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8131echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008132 # Check whether --enable-gtktest or --disable-gtktest was given.
8133if test "${enable_gtktest+set}" = set; then
8134 enableval="$enable_gtktest"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008135
Bram Moolenaar071d4272004-06-13 20:20:40 +00008136else
8137 enable_gtktest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008138fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008139 if test "x$enable_gtktest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008140 echo "$as_me:$LINENO: result: gtk test enabled" >&5
8141echo "${ECHO_T}gtk test enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008142 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008143 echo "$as_me:$LINENO: result: gtk test disabled" >&5
8144echo "${ECHO_T}gtk test disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008145 fi
8146
8147 if test "x$gtk_config_prefix" != "x" ; then
8148 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8149 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8150 fi
8151 if test "x$gtk_config_exec_prefix" != "x" ; then
8152 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8153 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8154 fi
8155 if test "X$GTK_CONFIG" = "X"; then
8156 # Extract the first word of "gtk-config", so it can be a program name with args.
8157set dummy gtk-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008158echo "$as_me:$LINENO: checking for $ac_word" >&5
8159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8160if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008162else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008163 case $GTK_CONFIG in
8164 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00008165 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8166 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008167 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8175 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
8179done
8180done
8181
Bram Moolenaar071d4272004-06-13 20:20:40 +00008182 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8183 ;;
8184esac
8185fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008186GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8187
Bram Moolenaar071d4272004-06-13 20:20:40 +00008188if test -n "$GTK_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008189 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8190echo "${ECHO_T}$GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008191else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008192 echo "$as_me:$LINENO: result: no" >&5
8193echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008194fi
8195
8196 if test "X$GTK_CONFIG" = "Xno"; then
8197 # Extract the first word of "gtk12-config", so it can be a program name with args.
8198set dummy gtk12-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008199echo "$as_me:$LINENO: checking for $ac_word" >&5
8200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8201if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008203else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008204 case $GTK12_CONFIG in
8205 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00008206 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8207 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008208 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220done
8221done
8222
Bram Moolenaar071d4272004-06-13 20:20:40 +00008223 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8224 ;;
8225esac
8226fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008227GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8228
Bram Moolenaar071d4272004-06-13 20:20:40 +00008229if test -n "$GTK12_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008230 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8231echo "${ECHO_T}$GTK12_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008232else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008233 echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008235fi
8236
8237 GTK_CONFIG="$GTK12_CONFIG"
8238 fi
8239 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008240 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8241echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008242 fi
8243 if test "X$PKG_CONFIG" = "X"; then
8244 # Extract the first word of "pkg-config", so it can be a program name with args.
8245set dummy pkg-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008246echo "$as_me:$LINENO: checking for $ac_word" >&5
8247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8248if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008250else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008251 case $PKG_CONFIG in
8252 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00008253 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8254 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008255 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8263 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8266 fi
8267done
8268done
8269
Bram Moolenaar071d4272004-06-13 20:20:40 +00008270 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8271 ;;
8272esac
8273fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008274PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8275
Bram Moolenaar071d4272004-06-13 20:20:40 +00008276if test -n "$PKG_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008277 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8278echo "${ECHO_T}$PKG_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008279else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008280 echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008282fi
8283
8284 fi
8285
8286 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8287 if test "X$SKIP_GTK2" != "XYES"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008288
Bram Moolenaar071d4272004-06-13 20:20:40 +00008289 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8290 {
8291 min_gtk_version=2.2.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008292 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8293echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008294 no_gtk=""
8295 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8296 && $PKG_CONFIG --exists gtk+-2.0; then
8297 {
8298 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00008299 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00008300 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8301 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8302 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8303 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8304 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8305 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8306 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8307 }
8308 elif test "X$GTK_CONFIG" != "Xno"; then
8309 {
8310 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00008311 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00008312 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8313 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8314 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8315 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8316 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8317 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8318 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8319 }
8320 else
8321 no_gtk=yes
8322 fi
8323
8324 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8325 {
8326 ac_save_CFLAGS="$CFLAGS"
8327 ac_save_LIBS="$LIBS"
8328 CFLAGS="$CFLAGS $GTK_CFLAGS"
8329 LIBS="$LIBS $GTK_LIBS"
8330
8331 rm -f conf.gtktest
8332 if test "$cross_compiling" = yes; then
8333 echo $ac_n "cross compiling; assumed OK... $ac_c"
8334else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008335 cat >conftest.$ac_ext <<_ACEOF
8336/* confdefs.h. */
8337_ACEOF
8338cat confdefs.h >>conftest.$ac_ext
8339cat >>conftest.$ac_ext <<_ACEOF
8340/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008341
8342#include <gtk/gtk.h>
8343#include <stdio.h>
8344
8345int
8346main ()
8347{
8348int major, minor, micro;
8349char *tmp_version;
8350
8351system ("touch conf.gtktest");
8352
8353/* HP/UX 9 (%@#!) writes to sscanf strings */
8354tmp_version = g_strdup("$min_gtk_version");
8355if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8356 printf("%s, bad version string\n", "$min_gtk_version");
8357 exit(1);
8358 }
8359
8360if ((gtk_major_version > major) ||
8361 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8362 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8363 (gtk_micro_version >= micro)))
8364{
8365 return 0;
8366}
8367return 1;
8368}
8369
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008370_ACEOF
8371rm -f conftest$ac_exeext
8372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373 (eval $ac_link) 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008382 :
8383else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008384 echo "$as_me: program exited with status $ac_status" >&5
8385echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008387
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008388( exit $ac_status )
8389no_gtk=yes
8390fi
8391rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8392fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00008393 CFLAGS="$ac_save_CFLAGS"
8394 LIBS="$ac_save_LIBS"
8395 }
8396 fi
8397 if test "x$no_gtk" = x ; then
8398 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008399 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8400echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008401 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008402 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8403echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008404 fi
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00008405 GUI_LIB_LOC="$GTK_LIBDIR"
8406 GTK_LIBNAME="$GTK_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008407 GUI_INC_LOC="$GTK_CFLAGS"
8408 else
8409 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008410 echo "$as_me:$LINENO: result: no" >&5
8411echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008412 GTK_CFLAGS=""
8413 GTK_LIBS=""
8414 :
8415 }
8416 fi
8417 }
8418 else
8419 GTK_CFLAGS=""
8420 GTK_LIBS=""
8421 :
8422 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008423
8424
Bram Moolenaar071d4272004-06-13 20:20:40 +00008425 rm -f conf.gtktest
8426
8427 if test "x$GTK_CFLAGS" != "x"; then
8428 SKIP_ATHENA=YES
8429 SKIP_NEXTAW=YES
8430 SKIP_MOTIF=YES
8431 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008432
Bram Moolenaar071d4272004-06-13 20:20:40 +00008433 fi
8434 fi
8435
8436 if test "x$GUITYPE" != "xGTK"; then
8437 SKIP_GTK2=YES
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008438
Bram Moolenaar071d4272004-06-13 20:20:40 +00008439 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8440 {
8441 min_gtk_version=1.1.16
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008442 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8443echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008444 no_gtk=""
8445 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8446 && $PKG_CONFIG --exists gtk+-2.0; then
8447 {
8448 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00008449 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00008450 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8451 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8452 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8453 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8454 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8455 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8456 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8457 }
8458 elif test "X$GTK_CONFIG" != "Xno"; then
8459 {
8460 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00008461 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00008462 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8463 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8464 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8465 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8466 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8467 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8468 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8469 }
8470 else
8471 no_gtk=yes
8472 fi
8473
8474 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8475 {
8476 ac_save_CFLAGS="$CFLAGS"
8477 ac_save_LIBS="$LIBS"
8478 CFLAGS="$CFLAGS $GTK_CFLAGS"
8479 LIBS="$LIBS $GTK_LIBS"
8480
8481 rm -f conf.gtktest
8482 if test "$cross_compiling" = yes; then
8483 echo $ac_n "cross compiling; assumed OK... $ac_c"
8484else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008485 cat >conftest.$ac_ext <<_ACEOF
8486/* confdefs.h. */
8487_ACEOF
8488cat confdefs.h >>conftest.$ac_ext
8489cat >>conftest.$ac_ext <<_ACEOF
8490/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008491
8492#include <gtk/gtk.h>
8493#include <stdio.h>
8494
8495int
8496main ()
8497{
8498int major, minor, micro;
8499char *tmp_version;
8500
8501system ("touch conf.gtktest");
8502
8503/* HP/UX 9 (%@#!) writes to sscanf strings */
8504tmp_version = g_strdup("$min_gtk_version");
8505if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8506 printf("%s, bad version string\n", "$min_gtk_version");
8507 exit(1);
8508 }
8509
8510if ((gtk_major_version > major) ||
8511 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8512 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8513 (gtk_micro_version >= micro)))
8514{
8515 return 0;
8516}
8517return 1;
8518}
8519
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008520_ACEOF
8521rm -f conftest$ac_exeext
8522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523 (eval $ac_link) 2>&5
8524 ac_status=$?
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008532 :
8533else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008534 echo "$as_me: program exited with status $ac_status" >&5
8535echo "$as_me: failed program was:" >&5
8536sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008537
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008538( exit $ac_status )
8539no_gtk=yes
8540fi
8541rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8542fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00008543 CFLAGS="$ac_save_CFLAGS"
8544 LIBS="$ac_save_LIBS"
8545 }
8546 fi
8547 if test "x$no_gtk" = x ; then
8548 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008549 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8550echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008551 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008552 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8553echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008554 fi
8555 GTK_LIBNAME="$GTK_LIBS"
8556 GUI_INC_LOC="$GTK_CFLAGS"
8557 else
8558 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008559 echo "$as_me:$LINENO: result: no" >&5
8560echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008561 GTK_CFLAGS=""
8562 GTK_LIBS=""
8563 :
8564 }
8565 fi
8566 }
8567 else
8568 GTK_CFLAGS=""
8569 GTK_LIBS=""
8570 :
8571 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008572
8573
Bram Moolenaar071d4272004-06-13 20:20:40 +00008574 rm -f conf.gtktest
8575
8576 if test "x$GTK_CFLAGS" != "x"; then
8577 SKIP_ATHENA=YES
8578 SKIP_NEXTAW=YES
8579 SKIP_MOTIF=YES
8580 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008581
Bram Moolenaar071d4272004-06-13 20:20:40 +00008582 fi
8583 fi
8584 fi
8585 if test "x$GUITYPE" = "xGTK"; then
8586 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8587 -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 +00008588 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8589echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008590 else
8591 {
8592 if test "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008593 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008594#define HAVE_GTK2 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008595_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008596
8597 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8598 || test "0$gtk_minor_version" -ge 2 \
8599 || test "0$gtk_major_version" -gt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008600 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008601#define HAVE_GTK_MULTIHEAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008602_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008603
8604 fi
8605 fi
8606 if test -z "$SKIP_GNOME"; then
8607 {
Bram Moolenaar071d4272004-06-13 20:20:40 +00008608
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008609
8610
8611
8612
8613
8614# Check whether --with-gnome-includes or --without-gnome-includes was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008615if test "${with_gnome_includes+set}" = set; then
8616 withval="$with_gnome_includes"
8617 CFLAGS="$CFLAGS -I$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008618
8619fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008620
8621
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008622# Check whether --with-gnome-libs or --without-gnome-libs was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008623if test "${with_gnome_libs+set}" = set; then
8624 withval="$with_gnome_libs"
8625 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008626
8627fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008628
8629
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008630# Check whether --with-gnome or --without-gnome was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008631if test "${with_gnome+set}" = set; then
8632 withval="$with_gnome"
8633 if test x$withval = xyes; then
8634 want_gnome=yes
8635 have_gnome=yes
8636 else
8637 if test "x$withval" = xno; then
8638 want_gnome=no
8639 else
8640 want_gnome=yes
8641 LDFLAGS="$LDFLAGS -L$withval/lib"
8642 CFLAGS="$CFLAGS -I$withval/include"
8643 gnome_prefix=$withval/lib
8644 fi
8645 fi
8646else
8647 want_gnome=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008648fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008649
8650 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8651 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008652 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8653echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008654 if $PKG_CONFIG --exists libgnomeui-2.0; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008655 echo "$as_me:$LINENO: result: yes" >&5
8656echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008657 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8658 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8659 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8660 have_gnome=yes
8661 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008662 echo "$as_me:$LINENO: result: not found" >&5
8663echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008664 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008665 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8666echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8667 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00008668 fi
8669 fi
8670 }
8671 elif test "x$want_gnome" = xyes; then
8672 {
8673 # Extract the first word of "gnome-config", so it can be a program name with args.
8674set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008675echo "$as_me:$LINENO: checking for $ac_word" >&5
8676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8677if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008679else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008680 case $GNOME_CONFIG in
8681 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00008682 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8683 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008684 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686for as_dir in $PATH
8687do
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8692 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8695 fi
8696done
8697done
8698
Bram Moolenaar071d4272004-06-13 20:20:40 +00008699 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8700 ;;
8701esac
8702fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008703GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8704
Bram Moolenaar071d4272004-06-13 20:20:40 +00008705if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008706 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8707echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008708else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008709 echo "$as_me:$LINENO: result: no" >&5
8710echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008711fi
8712
8713 if test "$GNOME_CONFIG" = "no"; then
8714 no_gnome_config="yes"
8715 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008716 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8717echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008718 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008719 echo "$as_me:$LINENO: result: yes" >&5
8720echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008721 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8722 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8723 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8724 have_gnome=yes
8725 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008726 echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008728 no_gnome_config="yes"
8729 fi
8730 fi
8731
8732 if test x$exec_prefix = xNONE; then
8733 if test x$prefix = xNONE; then
8734 gnome_prefix=$ac_default_prefix/lib
8735 else
8736 gnome_prefix=$prefix/lib
8737 fi
8738 else
8739 gnome_prefix=`eval echo \`echo $libdir\``
8740 fi
8741
8742 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008743 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8744echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008745 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008746 echo "$as_me:$LINENO: result: found" >&5
8747echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008748 echo "loading gnome configuration from" \
8749 "$gnome_prefix/gnomeConf.sh"
8750 . $gnome_prefix/gnomeConf.sh
8751 have_gnome=yes
8752 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008753 echo "$as_me:$LINENO: result: not found" >&5
8754echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008755 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008756 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8757echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8758 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00008759 fi
8760 fi
8761 fi
8762 }
8763 fi
8764
8765 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008766 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008767#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008768_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008769
8770 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8771 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8772 fi
8773 }
8774 fi
8775 }
8776 fi
8777 fi
8778fi
8779
8780
8781if test -z "$SKIP_MOTIF"; then
8782 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"
8783 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8784
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008785 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8786echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008787 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8788 GUI_INC_LOC=
8789 for try in $gui_includes; do
8790 if test -f "$try/Xm/Xm.h"; then
8791 GUI_INC_LOC=$try
8792 fi
8793 done
8794 if test -n "$GUI_INC_LOC"; then
8795 if test "$GUI_INC_LOC" = /usr/include; then
8796 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008797 echo "$as_me:$LINENO: result: in default path" >&5
8798echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008799 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008800 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8801echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008802 fi
8803 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008804 echo "$as_me:$LINENO: result: <not found>" >&5
8805echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008806 SKIP_MOTIF=YES
8807 fi
8808fi
8809
8810
8811if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008812 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8813echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8814
8815# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008816if test "${with_motif_lib+set}" = set; then
8817 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008818 MOTIF_LIBNAME="${withval}"
8819fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008820
8821 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008822 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8823echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008824 GUI_LIB_LOC=
8825 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008826 echo "$as_me:$LINENO: result: no" >&5
8827echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008828
8829 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8830
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008831 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8832echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008833 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"
8834 GUI_LIB_LOC=
8835 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008836 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00008837 if test -f "$libtry"; then
8838 GUI_LIB_LOC=$try
8839 fi
8840 done
8841 done
8842 if test -n "$GUI_LIB_LOC"; then
8843 if test "$GUI_LIB_LOC" = /usr/lib; then
8844 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008845 echo "$as_me:$LINENO: result: in default path" >&5
8846echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008847 else
8848 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008849 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8850echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008851 if test "`(uname) 2>/dev/null`" = SunOS &&
8852 uname -r | grep '^5' >/dev/null; then
8853 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8854 fi
8855 fi
8856 fi
8857 MOTIF_LIBNAME=-lXm
8858 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008859 echo "$as_me:$LINENO: result: <not found>" >&5
8860echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008861 SKIP_MOTIF=YES
8862 fi
8863 fi
8864fi
8865
8866if test -z "$SKIP_MOTIF"; then
8867 SKIP_ATHENA=YES
8868 SKIP_NEXTAW=YES
8869 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008870
Bram Moolenaar071d4272004-06-13 20:20:40 +00008871fi
8872
8873
8874GUI_X_LIBS=
8875
8876if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008877 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8878echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008879 cflags_save=$CFLAGS
8880 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008881 cat >conftest.$ac_ext <<_ACEOF
8882/* confdefs.h. */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008887
8888#include <X11/Intrinsic.h>
8889#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008890int
8891main ()
8892{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008893
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008894 ;
8895 return 0;
8896}
8897_ACEOF
8898rm -f conftest.$ac_objext
8899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } &&
8907 { ac_try='test -z "$ac_c_werror_flag"
8908 || test ! -s conftest.err'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; } &&
8914 { ac_try='test -s conftest.$ac_objext'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920 echo "$as_me:$LINENO: result: yes" >&5
8921echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008922else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008923 echo "$as_me: failed program was:" >&5
8924sed 's/^/| /' conftest.$ac_ext >&5
8925
8926echo "$as_me:$LINENO: result: no" >&5
8927echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008928fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008930 CFLAGS=$cflags_save
8931fi
8932
8933if test -z "$SKIP_ATHENA"; then
8934 GUITYPE=ATHENA
8935fi
8936
8937if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008938 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8939echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008940 cflags_save=$CFLAGS
8941 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008942 cat >conftest.$ac_ext <<_ACEOF
8943/* confdefs.h. */
8944_ACEOF
8945cat confdefs.h >>conftest.$ac_ext
8946cat >>conftest.$ac_ext <<_ACEOF
8947/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008948
8949#include <X11/Intrinsic.h>
8950#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008951int
8952main ()
8953{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008954
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008955 ;
8956 return 0;
8957}
8958_ACEOF
8959rm -f conftest.$ac_objext
8960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8961 (eval $ac_compile) 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -z "$ac_c_werror_flag"
8969 || test ! -s conftest.err'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 (eval $ac_try) 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; } &&
8975 { ac_try='test -s conftest.$ac_objext'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
8981 echo "$as_me:$LINENO: result: yes" >&5
8982echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008983else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008984 echo "$as_me: failed program was:" >&5
8985sed 's/^/| /' conftest.$ac_ext >&5
8986
8987echo "$as_me:$LINENO: result: no" >&5
8988echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008989fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008991 CFLAGS=$cflags_save
8992fi
8993
8994if test -z "$SKIP_NEXTAW"; then
8995 GUITYPE=NEXTAW
8996fi
8997
8998if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8999 if test -n "$GUI_INC_LOC"; then
9000 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9001 fi
9002 if test -n "$GUI_LIB_LOC"; then
9003 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9004 fi
9005
9006 ldflags_save=$LDFLAGS
9007 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009008 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9009echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9010if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009012else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009013 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009014LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009015cat >conftest.$ac_ext <<_ACEOF
9016/* confdefs.h. */
9017_ACEOF
9018cat confdefs.h >>conftest.$ac_ext
9019cat >>conftest.$ac_ext <<_ACEOF
9020/* end confdefs.h. */
9021
Bram Moolenaar071d4272004-06-13 20:20:40 +00009022/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009023#ifdef __cplusplus
9024extern "C"
9025#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009026/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009027 builtin and then its argument prototype would still apply. */
9028char XShapeQueryExtension ();
9029int
9030main ()
9031{
9032XShapeQueryExtension ();
9033 ;
9034 return 0;
9035}
9036_ACEOF
9037rm -f conftest.$ac_objext conftest$ac_exeext
9038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039 (eval $ac_link) 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -z "$ac_c_werror_flag"
9047 || test ! -s conftest.err'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 (eval $ac_try) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try='test -s conftest$ac_exeext'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 (eval $ac_try) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9059 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009060else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009061 echo "$as_me: failed program was:" >&5
9062sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009063
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009064ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009065fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009066rm -f conftest.err conftest.$ac_objext \
9067 conftest$ac_exeext conftest.$ac_ext
9068LIBS=$ac_check_lib_save_LIBS
9069fi
9070echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9071echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
9072if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009073 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009074fi
9075
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009076 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9077echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
9078if test "${ac_cv_lib_w_wslen+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009080else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009081 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009082LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009083cat >conftest.$ac_ext <<_ACEOF
9084/* confdefs.h. */
9085_ACEOF
9086cat confdefs.h >>conftest.$ac_ext
9087cat >>conftest.$ac_ext <<_ACEOF
9088/* end confdefs.h. */
9089
Bram Moolenaar071d4272004-06-13 20:20:40 +00009090/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009091#ifdef __cplusplus
9092extern "C"
9093#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009094/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009095 builtin and then its argument prototype would still apply. */
9096char wslen ();
9097int
9098main ()
9099{
9100wslen ();
9101 ;
9102 return 0;
9103}
9104_ACEOF
9105rm -f conftest.$ac_objext conftest$ac_exeext
9106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest$ac_exeext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009128else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009129 echo "$as_me: failed program was:" >&5
9130sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009131
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009132ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009133fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009134rm -f conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext conftest.$ac_ext
9136LIBS=$ac_check_lib_save_LIBS
9137fi
9138echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9139echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
9140if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009141 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009142fi
9143
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009144 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9145echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
9146if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009148else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009149 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009150LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009151cat >conftest.$ac_ext <<_ACEOF
9152/* confdefs.h. */
9153_ACEOF
9154cat confdefs.h >>conftest.$ac_ext
9155cat >>conftest.$ac_ext <<_ACEOF
9156/* end confdefs.h. */
9157
Bram Moolenaar071d4272004-06-13 20:20:40 +00009158/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009159#ifdef __cplusplus
9160extern "C"
9161#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009162/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009163 builtin and then its argument prototype would still apply. */
9164char dlsym ();
9165int
9166main ()
9167{
9168dlsym ();
9169 ;
9170 return 0;
9171}
9172_ACEOF
9173rm -f conftest.$ac_objext conftest$ac_exeext
9174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } &&
9182 { ac_try='test -z "$ac_c_werror_flag"
9183 || test ! -s conftest.err'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 (eval $ac_try) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; } &&
9189 { ac_try='test -s conftest$ac_exeext'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 (eval $ac_try) 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9195 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009196else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009197 echo "$as_me: failed program was:" >&5
9198sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009199
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009200ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009201fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009202rm -f conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext conftest.$ac_ext
9204LIBS=$ac_check_lib_save_LIBS
9205fi
9206echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9207echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
9208if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009209 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009210fi
9211
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009212 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9213echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
9214if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009216else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009217 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009218LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009219cat >conftest.$ac_ext <<_ACEOF
9220/* confdefs.h. */
9221_ACEOF
9222cat confdefs.h >>conftest.$ac_ext
9223cat >>conftest.$ac_ext <<_ACEOF
9224/* end confdefs.h. */
9225
Bram Moolenaar071d4272004-06-13 20:20:40 +00009226/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009227#ifdef __cplusplus
9228extern "C"
9229#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009230/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009231 builtin and then its argument prototype would still apply. */
9232char XmuCreateStippledPixmap ();
9233int
9234main ()
9235{
9236XmuCreateStippledPixmap ();
9237 ;
9238 return 0;
9239}
9240_ACEOF
9241rm -f conftest.$ac_objext conftest$ac_exeext
9242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9243 (eval $ac_link) 2>conftest.er1
9244 ac_status=$?
9245 grep -v '^ *+' conftest.er1 >conftest.err
9246 rm -f conftest.er1
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } &&
9250 { ac_try='test -z "$ac_c_werror_flag"
9251 || test ! -s conftest.err'
9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 (eval $ac_try) 2>&5
9254 ac_status=$?
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; } &&
9257 { ac_try='test -s conftest$ac_exeext'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 (eval $ac_try) 2>&5
9260 ac_status=$?
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; }; then
9263 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009264else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009265 echo "$as_me: failed program was:" >&5
9266sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009267
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009268ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009269fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009270rm -f conftest.err conftest.$ac_objext \
9271 conftest$ac_exeext conftest.$ac_ext
9272LIBS=$ac_check_lib_save_LIBS
9273fi
9274echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9275echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
9276if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009277 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009278fi
9279
9280 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009281 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9282echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
9283if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009285else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009286 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009287LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009288cat >conftest.$ac_ext <<_ACEOF
9289/* confdefs.h. */
9290_ACEOF
9291cat confdefs.h >>conftest.$ac_ext
9292cat >>conftest.$ac_ext <<_ACEOF
9293/* end confdefs.h. */
9294
Bram Moolenaar071d4272004-06-13 20:20:40 +00009295/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009296#ifdef __cplusplus
9297extern "C"
9298#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009299/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009300 builtin and then its argument prototype would still apply. */
9301char XpEndJob ();
9302int
9303main ()
9304{
9305XpEndJob ();
9306 ;
9307 return 0;
9308}
9309_ACEOF
9310rm -f conftest.$ac_objext conftest$ac_exeext
9311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -z "$ac_c_werror_flag"
9320 || test ! -s conftest.err'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; } &&
9326 { ac_try='test -s conftest$ac_exeext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 (eval $ac_try) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009333else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009334 echo "$as_me: failed program was:" >&5
9335sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009336
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009337ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009338fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009339rm -f conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341LIBS=$ac_check_lib_save_LIBS
9342fi
9343echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9344echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
9345if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009346 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009347fi
9348
9349 fi
9350 LDFLAGS=$ldflags_save
9351
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009352 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9353echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009354 NARROW_PROTO=
9355 rm -fr conftestdir
9356 if mkdir conftestdir; then
9357 cd conftestdir
9358 cat > Imakefile <<'EOF'
9359acfindx:
9360 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9361EOF
9362 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9363 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9364 fi
9365 cd ..
9366 rm -fr conftestdir
9367 fi
9368 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009369 echo "$as_me:$LINENO: result: no" >&5
9370echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009371 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009372 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9373echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009374 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009375
Bram Moolenaar071d4272004-06-13 20:20:40 +00009376fi
9377
9378if test "$enable_xsmp" = "yes"; then
9379 cppflags_save=$CPPFLAGS
9380 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009381
9382for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00009383do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9385if eval "test \"\${$as_ac_Header+set}\" = set"; then
9386 echo "$as_me:$LINENO: checking for $ac_header" >&5
9387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9388if eval "test \"\${$as_ac_Header+set}\" = set"; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009390fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009393else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009394 # Is the header compilable?
9395echo "$as_me:$LINENO: checking $ac_header usability" >&5
9396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9397cat >conftest.$ac_ext <<_ACEOF
9398/* confdefs.h. */
9399_ACEOF
9400cat confdefs.h >>conftest.$ac_ext
9401cat >>conftest.$ac_ext <<_ACEOF
9402/* end confdefs.h. */
9403$ac_includes_default
9404#include <$ac_header>
9405_ACEOF
9406rm -f conftest.$ac_objext
9407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9408 (eval $ac_compile) 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try='test -z "$ac_c_werror_flag"
9416 || test ! -s conftest.err'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; } &&
9422 { ac_try='test -s conftest.$ac_objext'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 (eval $ac_try) 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; }; then
9428 ac_header_compiler=yes
9429else
9430 echo "$as_me: failed program was:" >&5
9431sed 's/^/| /' conftest.$ac_ext >&5
9432
9433ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009434fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9437echo "${ECHO_T}$ac_header_compiler" >&6
9438
9439# Is the header present?
9440echo "$as_me:$LINENO: checking $ac_header presence" >&5
9441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9442cat >conftest.$ac_ext <<_ACEOF
9443/* confdefs.h. */
9444_ACEOF
9445cat confdefs.h >>conftest.$ac_ext
9446cat >>conftest.$ac_ext <<_ACEOF
9447/* end confdefs.h. */
9448#include <$ac_header>
9449_ACEOF
9450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } >/dev/null; then
9458 if test -s conftest.err; then
9459 ac_cpp_err=$ac_c_preproc_warn_flag
9460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9461 else
9462 ac_cpp_err=
9463 fi
9464else
9465 ac_cpp_err=yes
9466fi
9467if test -z "$ac_cpp_err"; then
9468 ac_header_preproc=yes
9469else
9470 echo "$as_me: failed program was:" >&5
9471sed 's/^/| /' conftest.$ac_ext >&5
9472
9473 ac_header_preproc=no
9474fi
9475rm -f conftest.err conftest.$ac_ext
9476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9477echo "${ECHO_T}$ac_header_preproc" >&6
9478
9479# So? What about this header?
9480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9481 yes:no: )
9482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9486 ac_header_preproc=yes
9487 ;;
9488 no:yes:* )
9489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9501 (
9502 cat <<\_ASBOX
9503## ------------------------------------------ ##
9504## Report this to the AC_PACKAGE_NAME lists. ##
9505## ------------------------------------------ ##
9506_ASBOX
9507 ) |
9508 sed "s/^/$as_me: WARNING: /" >&2
9509 ;;
9510esac
9511echo "$as_me:$LINENO: checking for $ac_header" >&5
9512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9513if eval "test \"\${$as_ac_Header+set}\" = set"; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515else
9516 eval "$as_ac_Header=\$ac_header_preproc"
9517fi
9518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9520
9521fi
9522if test `eval echo '${'$as_ac_Header'}'` = yes; then
9523 cat >>confdefs.h <<_ACEOF
9524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9525_ACEOF
9526
9527fi
9528
Bram Moolenaar071d4272004-06-13 20:20:40 +00009529done
9530
9531 CPPFLAGS=$cppflags_save
9532fi
9533
9534
9535if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9536 cppflags_save=$CPPFLAGS
9537 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009538
9539
9540for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00009541do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9543if eval "test \"\${$as_ac_Header+set}\" = set"; then
9544 echo "$as_me:$LINENO: checking for $ac_header" >&5
9545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9546if eval "test \"\${$as_ac_Header+set}\" = set"; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009548fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009551else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009552 # Is the header compilable?
9553echo "$as_me:$LINENO: checking $ac_header usability" >&5
9554echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9555cat >conftest.$ac_ext <<_ACEOF
9556/* confdefs.h. */
9557_ACEOF
9558cat confdefs.h >>conftest.$ac_ext
9559cat >>conftest.$ac_ext <<_ACEOF
9560/* end confdefs.h. */
9561$ac_includes_default
9562#include <$ac_header>
9563_ACEOF
9564rm -f conftest.$ac_objext
9565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9566 (eval $ac_compile) 2>conftest.er1
9567 ac_status=$?
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try='test -z "$ac_c_werror_flag"
9574 || test ! -s conftest.err'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; } &&
9580 { ac_try='test -s conftest.$ac_objext'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 ac_header_compiler=yes
9587else
9588 echo "$as_me: failed program was:" >&5
9589sed 's/^/| /' conftest.$ac_ext >&5
9590
9591ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009592fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9594echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9595echo "${ECHO_T}$ac_header_compiler" >&6
9596
9597# Is the header present?
9598echo "$as_me:$LINENO: checking $ac_header presence" >&5
9599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9600cat >conftest.$ac_ext <<_ACEOF
9601/* confdefs.h. */
9602_ACEOF
9603cat confdefs.h >>conftest.$ac_ext
9604cat >>conftest.$ac_ext <<_ACEOF
9605/* end confdefs.h. */
9606#include <$ac_header>
9607_ACEOF
9608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9610 ac_status=$?
9611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } >/dev/null; then
9616 if test -s conftest.err; then
9617 ac_cpp_err=$ac_c_preproc_warn_flag
9618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9619 else
9620 ac_cpp_err=
9621 fi
9622else
9623 ac_cpp_err=yes
9624fi
9625if test -z "$ac_cpp_err"; then
9626 ac_header_preproc=yes
9627else
9628 echo "$as_me: failed program was:" >&5
9629sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 ac_header_preproc=no
9632fi
9633rm -f conftest.err conftest.$ac_ext
9634echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9635echo "${ECHO_T}$ac_header_preproc" >&6
9636
9637# So? What about this header?
9638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9639 yes:no: )
9640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9644 ac_header_preproc=yes
9645 ;;
9646 no:yes:* )
9647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9659 (
9660 cat <<\_ASBOX
9661## ------------------------------------------ ##
9662## Report this to the AC_PACKAGE_NAME lists. ##
9663## ------------------------------------------ ##
9664_ASBOX
9665 ) |
9666 sed "s/^/$as_me: WARNING: /" >&2
9667 ;;
9668esac
9669echo "$as_me:$LINENO: checking for $ac_header" >&5
9670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9671if eval "test \"\${$as_ac_Header+set}\" = set"; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673else
9674 eval "$as_ac_Header=\$ac_header_preproc"
9675fi
9676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9678
9679fi
9680if test `eval echo '${'$as_ac_Header'}'` = yes; then
9681 cat >>confdefs.h <<_ACEOF
9682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9683_ACEOF
9684
9685fi
9686
Bram Moolenaar071d4272004-06-13 20:20:40 +00009687done
9688
9689
9690 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009691 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9692echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
9693 cat >conftest.$ac_ext <<_ACEOF
9694/* confdefs.h. */
9695_ACEOF
9696cat confdefs.h >>conftest.$ac_ext
9697cat >>conftest.$ac_ext <<_ACEOF
9698/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009699#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009700_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009702 $EGREP "XIMText" >/dev/null 2>&1; then
9703 echo "$as_me:$LINENO: result: yes" >&5
9704echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009705else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009706 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9707echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009708fi
9709rm -f conftest*
9710
9711 fi
9712 CPPFLAGS=$cppflags_save
9713
9714 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9715 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009716 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9717echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009718 enable_xim="yes"
9719 fi
9720fi
9721
9722if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9723 cppflags_save=$CPPFLAGS
9724 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009725 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9726echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009728/* confdefs.h. */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
9732/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009733
9734#include <X11/Intrinsic.h>
9735#include <X11/Xmu/Editres.h>
9736int
9737main ()
9738{
9739int i; i = 0;
9740 ;
9741 return 0;
9742}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009743_ACEOF
9744rm -f conftest.$ac_objext
9745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9746 (eval $ac_compile) 2>conftest.er1
9747 ac_status=$?
9748 grep -v '^ *+' conftest.er1 >conftest.err
9749 rm -f conftest.er1
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } &&
9753 { ac_try='test -z "$ac_c_werror_flag"
9754 || test ! -s conftest.err'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 (eval $ac_try) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; } &&
9760 { ac_try='test -s conftest.$ac_objext'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 (eval $ac_try) 2>&5
9763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009766 echo "$as_me:$LINENO: result: yes" >&5
9767echo "${ECHO_T}yes" >&6
9768 cat >>confdefs.h <<\_ACEOF
9769#define HAVE_X11_XMU_EDITRES_H 1
9770_ACEOF
9771
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009772else
9773 echo "$as_me: failed program was:" >&5
9774sed 's/^/| /' conftest.$ac_ext >&5
9775
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009776echo "$as_me:$LINENO: result: no" >&5
9777echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009778fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009780 CPPFLAGS=$cppflags_save
9781fi
9782
9783if test -z "$SKIP_MOTIF"; then
9784 cppflags_save=$CPPFLAGS
9785 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009786
9787
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009788
9789
9790
9791
9792for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9793 Xm/UnhighlightT.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00009794do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797 echo "$as_me:$LINENO: checking for $ac_header" >&5
9798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9799if eval "test \"\${$as_ac_Header+set}\" = set"; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009801fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009804else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009805 # Is the header compilable?
9806echo "$as_me:$LINENO: checking $ac_header usability" >&5
9807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9808cat >conftest.$ac_ext <<_ACEOF
9809/* confdefs.h. */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
9813/* end confdefs.h. */
9814$ac_includes_default
9815#include <$ac_header>
9816_ACEOF
9817rm -f conftest.$ac_objext
9818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819 (eval $ac_compile) 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest.$ac_objext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_header_compiler=yes
9840else
9841 echo "$as_me: failed program was:" >&5
9842sed 's/^/| /' conftest.$ac_ext >&5
9843
9844ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009845fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9848echo "${ECHO_T}$ac_header_compiler" >&6
9849
9850# Is the header present?
9851echo "$as_me:$LINENO: checking $ac_header presence" >&5
9852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9853cat >conftest.$ac_ext <<_ACEOF
9854/* confdefs.h. */
9855_ACEOF
9856cat confdefs.h >>conftest.$ac_ext
9857cat >>conftest.$ac_ext <<_ACEOF
9858/* end confdefs.h. */
9859#include <$ac_header>
9860_ACEOF
9861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } >/dev/null; then
9869 if test -s conftest.err; then
9870 ac_cpp_err=$ac_c_preproc_warn_flag
9871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9872 else
9873 ac_cpp_err=
9874 fi
9875else
9876 ac_cpp_err=yes
9877fi
9878if test -z "$ac_cpp_err"; then
9879 ac_header_preproc=yes
9880else
9881 echo "$as_me: failed program was:" >&5
9882sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 ac_header_preproc=no
9885fi
9886rm -f conftest.err conftest.$ac_ext
9887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9888echo "${ECHO_T}$ac_header_preproc" >&6
9889
9890# So? What about this header?
9891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9892 yes:no: )
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9897 ac_header_preproc=yes
9898 ;;
9899 no:yes:* )
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9912 (
9913 cat <<\_ASBOX
9914## ------------------------------------------ ##
9915## Report this to the AC_PACKAGE_NAME lists. ##
9916## ------------------------------------------ ##
9917_ASBOX
9918 ) |
9919 sed "s/^/$as_me: WARNING: /" >&2
9920 ;;
9921esac
9922echo "$as_me:$LINENO: checking for $ac_header" >&5
9923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9924if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926else
9927 eval "$as_ac_Header=\$ac_header_preproc"
9928fi
9929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9931
9932fi
9933if test `eval echo '${'$as_ac_Header'}'` = yes; then
9934 cat >>confdefs.h <<_ACEOF
9935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9936_ACEOF
9937
9938fi
9939
Bram Moolenaar071d4272004-06-13 20:20:40 +00009940done
9941
9942 CPPFLAGS=$cppflags_save
9943fi
9944
9945if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009946 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9947echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009948 enable_xim="no"
9949fi
9950if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009951 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9952echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009953 enable_fontset="no"
9954fi
9955if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009956 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9957echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009958 enable_fontset="no"
9959fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009960if test "x$GUITYPE:$enable_fontset" = "xKDE:yes"; then
9961 echo "$as_me:$LINENO: result: KDE GUI selected; fontset has been disabled" >&5
9962echo "${ECHO_T}KDE GUI selected; fontset has been disabled" >&6
9963 enable_fontset="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009964fi
9965
9966if test -z "$SKIP_PHOTON"; then
9967 GUITYPE=PHOTONGUI
9968fi
9969
9970
9971
9972
9973
9974
9975if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009976 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9977echo "$as_me: error: cannot use workshop without Motif" >&2;}
9978 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009979fi
9980
9981if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009982 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009983#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009984_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009985
9986fi
9987if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009988 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009989#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009990_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009991
9992fi
9993
9994
9995
9996
9997if test "$enable_hangulinput" = "yes"; then
9998 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009999 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10000echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010001 enable_hangulinput=no
10002 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010003 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010004#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010005_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010006
10007 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010008
Bram Moolenaar071d4272004-06-13 20:20:40 +000010009 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010010
Bram Moolenaar071d4272004-06-13 20:20:40 +000010011 fi
10012fi
10013
10014
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010015echo "$as_me:$LINENO: checking quality of toupper" >&5
10016echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010017if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010018 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
10019echo "$as_me: error: failed to compile test program" >&2;}
10020 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000010021else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010022 cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h. */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010028#include <ctype.h>
10029main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010030_ACEOF
10031rm -f conftest$ac_exeext
10032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10033 (eval $ac_link) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
10042 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010043#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010044_ACEOF
10045 echo "$as_me:$LINENO: result: bad" >&5
10046echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010047else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010048 echo "$as_me: program exited with status $ac_status" >&5
10049echo "$as_me: failed program was:" >&5
10050sed 's/^/| /' conftest.$ac_ext >&5
10051
10052( exit $ac_status )
10053echo "$as_me:$LINENO: result: good" >&5
10054echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010055fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010056rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010057fi
10058
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010059echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10060echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
10061cat >conftest.$ac_ext <<_ACEOF
10062/* confdefs.h. */
10063_ACEOF
10064cat confdefs.h >>conftest.$ac_ext
10065cat >>conftest.$ac_ext <<_ACEOF
10066/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010067
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010068int
10069main ()
10070{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010071printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010072 ;
10073 return 0;
10074}
10075_ACEOF
10076rm -f conftest.$ac_objext
10077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078 (eval $ac_compile) 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_c_werror_flag"
10086 || test ! -s conftest.err'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; } &&
10092 { ac_try='test -s conftest.$ac_objext'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 echo "$as_me:$LINENO: result: yes" >&5
10099echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010100#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010101_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010102
10103else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010104 echo "$as_me: failed program was:" >&5
10105sed 's/^/| /' conftest.$ac_ext >&5
10106
10107echo "$as_me:$LINENO: result: no" >&5
10108echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010109fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010111
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010112if test "${ac_cv_header_elf_h+set}" = set; then
10113 echo "$as_me:$LINENO: checking for elf.h" >&5
10114echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
10115if test "${ac_cv_header_elf_h+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10117fi
10118echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10119echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010120else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010121 # Is the header compilable?
10122echo "$as_me:$LINENO: checking elf.h usability" >&5
10123echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
10124cat >conftest.$ac_ext <<_ACEOF
10125/* confdefs.h. */
10126_ACEOF
10127cat confdefs.h >>conftest.$ac_ext
10128cat >>conftest.$ac_ext <<_ACEOF
10129/* end confdefs.h. */
10130$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000010131#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010132_ACEOF
10133rm -f conftest.$ac_objext
10134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10135 (eval $ac_compile) 2>conftest.er1
10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try='test -z "$ac_c_werror_flag"
10143 || test ! -s conftest.err'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try='test -s conftest.$ac_objext'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000010156else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010157 echo "$as_me: failed program was:" >&5
10158sed 's/^/| /' conftest.$ac_ext >&5
10159
10160ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010161fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10163echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10164echo "${ECHO_T}$ac_header_compiler" >&6
10165
10166# Is the header present?
10167echo "$as_me:$LINENO: checking elf.h presence" >&5
10168echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
10169cat >conftest.$ac_ext <<_ACEOF
10170/* confdefs.h. */
10171_ACEOF
10172cat confdefs.h >>conftest.$ac_ext
10173cat >>conftest.$ac_ext <<_ACEOF
10174/* end confdefs.h. */
10175#include <elf.h>
10176_ACEOF
10177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10179 ac_status=$?
10180 grep -v '^ *+' conftest.er1 >conftest.err
10181 rm -f conftest.er1
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } >/dev/null; then
10185 if test -s conftest.err; then
10186 ac_cpp_err=$ac_c_preproc_warn_flag
10187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10188 else
10189 ac_cpp_err=
10190 fi
10191else
10192 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000010193fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010194if test -z "$ac_cpp_err"; then
10195 ac_header_preproc=yes
10196else
10197 echo "$as_me: failed program was:" >&5
10198sed 's/^/| /' conftest.$ac_ext >&5
10199
10200 ac_header_preproc=no
10201fi
10202rm -f conftest.err conftest.$ac_ext
10203echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10204echo "${ECHO_T}$ac_header_preproc" >&6
10205
10206# So? What about this header?
10207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10208 yes:no: )
10209 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10210echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10212echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10213 ac_header_preproc=yes
10214 ;;
10215 no:yes:* )
10216 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10217echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10218 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10219echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10220 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10221echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10222 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10223echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10224 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10225echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10226 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10227echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10228 (
10229 cat <<\_ASBOX
10230## ------------------------------------------ ##
10231## Report this to the AC_PACKAGE_NAME lists. ##
10232## ------------------------------------------ ##
10233_ASBOX
10234 ) |
10235 sed "s/^/$as_me: WARNING: /" >&2
10236 ;;
10237esac
10238echo "$as_me:$LINENO: checking for elf.h" >&5
10239echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
10240if test "${ac_cv_header_elf_h+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242else
10243 ac_cv_header_elf_h=$ac_header_preproc
10244fi
10245echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10246echo "${ECHO_T}$ac_cv_header_elf_h" >&6
10247
10248fi
10249if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010250 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +000010251fi
10252
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010253
Bram Moolenaar071d4272004-06-13 20:20:40 +000010254if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010255
10256echo "$as_me:$LINENO: checking for main in -lelf" >&5
10257echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
10258if test "${ac_cv_lib_elf_main+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010260else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010261 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000010262LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010263cat >conftest.$ac_ext <<_ACEOF
10264/* confdefs.h. */
10265_ACEOF
10266cat confdefs.h >>conftest.$ac_ext
10267cat >>conftest.$ac_ext <<_ACEOF
10268/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010269
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010270
10271int
10272main ()
10273{
10274main ();
10275 ;
10276 return 0;
10277}
10278_ACEOF
10279rm -f conftest.$ac_objext conftest$ac_exeext
10280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10281 (eval $ac_link) 2>conftest.er1
10282 ac_status=$?
10283 grep -v '^ *+' conftest.er1 >conftest.err
10284 rm -f conftest.er1
10285 cat conftest.err >&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } &&
10288 { ac_try='test -z "$ac_c_werror_flag"
10289 || test ! -s conftest.err'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest$ac_exeext'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000010302else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010303 echo "$as_me: failed program was:" >&5
10304sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010305
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010306ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010307fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010308rm -f conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10310LIBS=$ac_check_lib_save_LIBS
10311fi
10312echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10313echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
10314if test $ac_cv_lib_elf_main = yes; then
10315 cat >>confdefs.h <<_ACEOF
10316#define HAVE_LIBELF 1
10317_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010318
10319 LIBS="-lelf $LIBS"
10320
Bram Moolenaar071d4272004-06-13 20:20:40 +000010321fi
10322
10323fi
10324
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010325
10326
10327
10328
10329
Bram Moolenaar071d4272004-06-13 20:20:40 +000010330ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010331for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10332 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10333echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10334echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10335if eval "test \"\${$as_ac_Header+set}\" = set"; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010337else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010338 cat >conftest.$ac_ext <<_ACEOF
10339/* confdefs.h. */
10340_ACEOF
10341cat confdefs.h >>conftest.$ac_ext
10342cat >>conftest.$ac_ext <<_ACEOF
10343/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010344#include <sys/types.h>
10345#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010346
10347int
10348main ()
10349{
10350if ((DIR *) 0)
10351return 0;
10352 ;
10353 return 0;
10354}
10355_ACEOF
10356rm -f conftest.$ac_objext
10357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10358 (eval $ac_compile) 2>conftest.er1
10359 ac_status=$?
10360 grep -v '^ *+' conftest.er1 >conftest.err
10361 rm -f conftest.er1
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -z "$ac_c_werror_flag"
10366 || test ! -s conftest.err'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; } &&
10372 { ac_try='test -s conftest.$ac_objext'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000010379else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010380 echo "$as_me: failed program was:" >&5
10381sed 's/^/| /' conftest.$ac_ext >&5
10382
10383eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000010384fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010386fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10389if test `eval echo '${'$as_ac_Header'}'` = yes; then
10390 cat >>confdefs.h <<_ACEOF
10391#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10392_ACEOF
10393
10394ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +000010395fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010396
Bram Moolenaar071d4272004-06-13 20:20:40 +000010397done
10398# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10399if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010400 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10401echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10402if test "${ac_cv_search_opendir+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010404else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010405 ac_func_search_save_LIBS=$LIBS
10406ac_cv_search_opendir=no
10407cat >conftest.$ac_ext <<_ACEOF
10408/* confdefs.h. */
10409_ACEOF
10410cat confdefs.h >>conftest.$ac_ext
10411cat >>conftest.$ac_ext <<_ACEOF
10412/* end confdefs.h. */
10413
Bram Moolenaar071d4272004-06-13 20:20:40 +000010414/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010415#ifdef __cplusplus
10416extern "C"
10417#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010418/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010419 builtin and then its argument prototype would still apply. */
10420char opendir ();
10421int
10422main ()
10423{
10424opendir ();
10425 ;
10426 return 0;
10427}
10428_ACEOF
10429rm -f conftest.$ac_objext conftest$ac_exeext
10430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10431 (eval $ac_link) 2>conftest.er1
10432 ac_status=$?
10433 grep -v '^ *+' conftest.er1 >conftest.err
10434 rm -f conftest.er1
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -z "$ac_c_werror_flag"
10439 || test ! -s conftest.err'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; } &&
10445 { ac_try='test -s conftest$ac_exeext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +000010452else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010453 echo "$as_me: failed program was:" >&5
10454sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010455
10456fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010457rm -f conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459if test "$ac_cv_search_opendir" = no; then
10460 for ac_lib in dir; do
10461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10462 cat >conftest.$ac_ext <<_ACEOF
10463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010468
Bram Moolenaar071d4272004-06-13 20:20:40 +000010469/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010470#ifdef __cplusplus
10471extern "C"
10472#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010473/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010474 builtin and then its argument prototype would still apply. */
10475char opendir ();
10476int
10477main ()
10478{
10479opendir ();
10480 ;
10481 return 0;
10482}
10483_ACEOF
10484rm -f conftest.$ac_objext conftest$ac_exeext
10485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10486 (eval $ac_link) 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_c_werror_flag"
10494 || test ! -s conftest.err'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; } &&
10500 { ac_try='test -s conftest$ac_exeext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 ac_cv_search_opendir="-l$ac_lib"
10507break
Bram Moolenaar071d4272004-06-13 20:20:40 +000010508else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010509 echo "$as_me: failed program was:" >&5
10510sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010511
10512fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010513rm -f conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10515 done
10516fi
10517LIBS=$ac_func_search_save_LIBS
10518fi
10519echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10520echo "${ECHO_T}$ac_cv_search_opendir" >&6
10521if test "$ac_cv_search_opendir" != no; then
10522 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10523
10524fi
10525
Bram Moolenaar071d4272004-06-13 20:20:40 +000010526else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010527 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10528echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10529if test "${ac_cv_search_opendir+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010531else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010532 ac_func_search_save_LIBS=$LIBS
10533ac_cv_search_opendir=no
10534cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h. */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h. */
10540
10541/* Override any gcc2 internal prototype to avoid an error. */
10542#ifdef __cplusplus
10543extern "C"
10544#endif
10545/* We use char because int might match the return type of a gcc2
10546 builtin and then its argument prototype would still apply. */
10547char opendir ();
10548int
10549main ()
10550{
10551opendir ();
10552 ;
10553 return 0;
10554}
10555_ACEOF
10556rm -f conftest.$ac_objext conftest$ac_exeext
10557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10558 (eval $ac_link) 2>conftest.er1
10559 ac_status=$?
10560 grep -v '^ *+' conftest.er1 >conftest.err
10561 rm -f conftest.er1
10562 cat conftest.err >&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } &&
10565 { ac_try='test -z "$ac_c_werror_flag"
10566 || test ! -s conftest.err'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; } &&
10572 { ac_try='test -s conftest$ac_exeext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 ac_cv_search_opendir="none required"
10579else
10580 echo "$as_me: failed program was:" >&5
10581sed 's/^/| /' conftest.$ac_ext >&5
10582
10583fi
10584rm -f conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586if test "$ac_cv_search_opendir" = no; then
10587 for ac_lib in x; do
10588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10589 cat >conftest.$ac_ext <<_ACEOF
10590/* confdefs.h. */
10591_ACEOF
10592cat confdefs.h >>conftest.$ac_ext
10593cat >>conftest.$ac_ext <<_ACEOF
10594/* end confdefs.h. */
10595
10596/* Override any gcc2 internal prototype to avoid an error. */
10597#ifdef __cplusplus
10598extern "C"
10599#endif
10600/* We use char because int might match the return type of a gcc2
10601 builtin and then its argument prototype would still apply. */
10602char opendir ();
10603int
10604main ()
10605{
10606opendir ();
10607 ;
10608 return 0;
10609}
10610_ACEOF
10611rm -f conftest.$ac_objext conftest$ac_exeext
10612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613 (eval $ac_link) 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try='test -z "$ac_c_werror_flag"
10621 || test ! -s conftest.err'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; } &&
10627 { ac_try='test -s conftest$ac_exeext'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }; then
10633 ac_cv_search_opendir="-l$ac_lib"
10634break
10635else
10636 echo "$as_me: failed program was:" >&5
10637sed 's/^/| /' conftest.$ac_ext >&5
10638
10639fi
10640rm -f conftest.err conftest.$ac_objext \
10641 conftest$ac_exeext conftest.$ac_ext
10642 done
10643fi
10644LIBS=$ac_func_search_save_LIBS
10645fi
10646echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10647echo "${ECHO_T}$ac_cv_search_opendir" >&6
10648if test "$ac_cv_search_opendir" != no; then
10649 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10650
10651fi
10652
10653fi
10654
10655
10656echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10657echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10658if test "${ac_cv_header_stdc+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660else
10661 cat >conftest.$ac_ext <<_ACEOF
10662/* confdefs.h. */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
10666/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010667#include <stdlib.h>
10668#include <stdarg.h>
10669#include <string.h>
10670#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010671
10672int
10673main ()
10674{
10675
10676 ;
10677 return 0;
10678}
10679_ACEOF
10680rm -f conftest.$ac_objext
10681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10682 (eval $ac_compile) 2>conftest.er1
10683 ac_status=$?
10684 grep -v '^ *+' conftest.er1 >conftest.err
10685 rm -f conftest.er1
10686 cat conftest.err >&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } &&
10689 { ac_try='test -z "$ac_c_werror_flag"
10690 || test ! -s conftest.err'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; } &&
10696 { ac_try='test -s conftest.$ac_objext'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010702 ac_cv_header_stdc=yes
10703else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010704 echo "$as_me: failed program was:" >&5
10705sed 's/^/| /' conftest.$ac_ext >&5
10706
10707ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010708fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010710
10711if test $ac_cv_header_stdc = yes; then
10712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010713 cat >conftest.$ac_ext <<_ACEOF
10714/* confdefs.h. */
10715_ACEOF
10716cat confdefs.h >>conftest.$ac_ext
10717cat >>conftest.$ac_ext <<_ACEOF
10718/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010719#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010720
10721_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010723 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010724 :
10725else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010726 ac_cv_header_stdc=no
10727fi
10728rm -f conftest*
10729
10730fi
10731
10732if test $ac_cv_header_stdc = yes; then
10733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010734 cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h. */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010740#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010741
10742_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010744 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010745 :
10746else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010747 ac_cv_header_stdc=no
10748fi
10749rm -f conftest*
10750
10751fi
10752
10753if test $ac_cv_header_stdc = yes; then
10754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010755 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010756 :
10757else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010758 cat >conftest.$ac_ext <<_ACEOF
10759/* confdefs.h. */
10760_ACEOF
10761cat confdefs.h >>conftest.$ac_ext
10762cat >>conftest.$ac_ext <<_ACEOF
10763/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010764#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010765#if ((' ' & 0x0FF) == 0x020)
10766# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10767# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10768#else
10769# define ISLOWER(c) \
10770 (('a' <= (c) && (c) <= 'i') \
10771 || ('j' <= (c) && (c) <= 'r') \
10772 || ('s' <= (c) && (c) <= 'z'))
10773# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10774#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010775
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010776#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10777int
10778main ()
10779{
10780 int i;
10781 for (i = 0; i < 256; i++)
10782 if (XOR (islower (i), ISLOWER (i))
10783 || toupper (i) != TOUPPER (i))
10784 exit(2);
10785 exit (0);
10786}
10787_ACEOF
10788rm -f conftest$ac_exeext
10789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790 (eval $ac_link) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010799 :
10800else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010801 echo "$as_me: program exited with status $ac_status" >&5
10802echo "$as_me: failed program was:" >&5
10803sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010804
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010805( exit $ac_status )
10806ac_cv_header_stdc=no
10807fi
10808rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010809fi
10810fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010811fi
10812echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10813echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010814if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010815
10816cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010817#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010818_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010819
10820fi
10821
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010822echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10823echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10824if test "${ac_cv_header_sys_wait_h+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010826else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010827 cat >conftest.$ac_ext <<_ACEOF
10828/* confdefs.h. */
10829_ACEOF
10830cat confdefs.h >>conftest.$ac_ext
10831cat >>conftest.$ac_ext <<_ACEOF
10832/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010833#include <sys/types.h>
10834#include <sys/wait.h>
10835#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010836# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010837#endif
10838#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010839# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010840#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010841
10842int
10843main ()
10844{
10845 int s;
10846 wait (&s);
10847 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10848 ;
10849 return 0;
10850}
10851_ACEOF
10852rm -f conftest.$ac_objext
10853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10854 (eval $ac_compile) 2>conftest.er1
10855 ac_status=$?
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag"
10862 || test ! -s conftest.err'
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; } &&
10868 { ac_try='test -s conftest.$ac_objext'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010874 ac_cv_header_sys_wait_h=yes
10875else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010876 echo "$as_me: failed program was:" >&5
10877sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010878
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010879ac_cv_header_sys_wait_h=no
10880fi
10881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10882fi
10883echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10884echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010885if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010886
10887cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010888#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010889_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010890
10891fi
10892
10893
10894if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010895 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10896echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10897 cat >conftest.$ac_ext <<_ACEOF
10898/* confdefs.h. */
10899_ACEOF
10900cat confdefs.h >>conftest.$ac_ext
10901cat >>conftest.$ac_ext <<_ACEOF
10902/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010903#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010904int
10905main ()
10906{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010907union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010908 ;
10909 return 0;
10910}
10911_ACEOF
10912rm -f conftest.$ac_objext
10913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914 (eval $ac_compile) 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag"
10922 || test ! -s conftest.err'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest.$ac_objext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 echo "$as_me:$LINENO: result: yes" >&5
10935echo "${ECHO_T}yes" >&6
10936 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010937#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010938_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010939
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010940 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010941#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010942_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010943
10944else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010945 echo "$as_me: failed program was:" >&5
10946sed 's/^/| /' conftest.$ac_ext >&5
10947
10948echo "$as_me:$LINENO: result: no" >&5
10949echo "${ECHO_T}no" >&6
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
10953
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010993
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010994for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010995 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10996 iconv.h langinfo.h unistd.h stropts.h errno.h \
10997 sys/resource.h sys/systeminfo.h locale.h \
10998 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10999 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011000 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000011001 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000011002do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11004if eval "test \"\${$as_ac_Header+set}\" = set"; then
11005 echo "$as_me:$LINENO: checking for $ac_header" >&5
11006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11007if eval "test \"\${$as_ac_Header+set}\" = set"; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011009fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011012else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011013 # Is the header compilable?
11014echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11016cat >conftest.$ac_ext <<_ACEOF
11017/* confdefs.h. */
11018_ACEOF
11019cat confdefs.h >>conftest.$ac_ext
11020cat >>conftest.$ac_ext <<_ACEOF
11021/* end confdefs.h. */
11022$ac_includes_default
11023#include <$ac_header>
11024_ACEOF
11025rm -f conftest.$ac_objext
11026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11027 (eval $ac_compile) 2>conftest.er1
11028 ac_status=$?
11029 grep -v '^ *+' conftest.er1 >conftest.err
11030 rm -f conftest.er1
11031 cat conftest.err >&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); } &&
11034 { ac_try='test -z "$ac_c_werror_flag"
11035 || test ! -s conftest.err'
11036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11037 (eval $ac_try) 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; } &&
11041 { ac_try='test -s conftest.$ac_objext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 ac_header_compiler=yes
11048else
11049 echo "$as_me: failed program was:" >&5
11050sed 's/^/| /' conftest.$ac_ext >&5
11051
11052ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011053fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11056echo "${ECHO_T}$ac_header_compiler" >&6
11057
11058# Is the header present?
11059echo "$as_me:$LINENO: checking $ac_header presence" >&5
11060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11061cat >conftest.$ac_ext <<_ACEOF
11062/* confdefs.h. */
11063_ACEOF
11064cat confdefs.h >>conftest.$ac_ext
11065cat >>conftest.$ac_ext <<_ACEOF
11066/* end confdefs.h. */
11067#include <$ac_header>
11068_ACEOF
11069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } >/dev/null; then
11077 if test -s conftest.err; then
11078 ac_cpp_err=$ac_c_preproc_warn_flag
11079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11080 else
11081 ac_cpp_err=
11082 fi
11083else
11084 ac_cpp_err=yes
11085fi
11086if test -z "$ac_cpp_err"; then
11087 ac_header_preproc=yes
11088else
11089 echo "$as_me: failed program was:" >&5
11090sed 's/^/| /' conftest.$ac_ext >&5
11091
11092 ac_header_preproc=no
11093fi
11094rm -f conftest.err conftest.$ac_ext
11095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11096echo "${ECHO_T}$ac_header_preproc" >&6
11097
11098# So? What about this header?
11099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11100 yes:no: )
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11105 ac_header_preproc=yes
11106 ;;
11107 no:yes:* )
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11120 (
11121 cat <<\_ASBOX
11122## ------------------------------------------ ##
11123## Report this to the AC_PACKAGE_NAME lists. ##
11124## ------------------------------------------ ##
11125_ASBOX
11126 ) |
11127 sed "s/^/$as_me: WARNING: /" >&2
11128 ;;
11129esac
11130echo "$as_me:$LINENO: checking for $ac_header" >&5
11131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11132if eval "test \"\${$as_ac_Header+set}\" = set"; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134else
11135 eval "$as_ac_Header=\$ac_header_preproc"
11136fi
11137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11139
11140fi
11141if test `eval echo '${'$as_ac_Header'}'` = yes; then
11142 cat >>confdefs.h <<_ACEOF
11143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11144_ACEOF
11145
11146fi
11147
Bram Moolenaar071d4272004-06-13 20:20:40 +000011148done
11149
11150
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011151echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11152echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
11153cat >conftest.$ac_ext <<_ACEOF
11154/* confdefs.h. */
11155_ACEOF
11156cat confdefs.h >>conftest.$ac_ext
11157cat >>conftest.$ac_ext <<_ACEOF
11158/* end confdefs.h. */
11159
11160#include <pthread.h>
11161#include <pthread_np.h>
11162int
11163main ()
11164{
11165int i; i = 0;
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170rm -f conftest.$ac_objext
11171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11172 (eval $ac_compile) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 echo "$as_me:$LINENO: result: yes" >&5
11193echo "${ECHO_T}yes" >&6
11194 cat >>confdefs.h <<\_ACEOF
11195#define HAVE_PTHREAD_NP_H 1
11196_ACEOF
11197
11198else
11199 echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202echo "$as_me:$LINENO: result: no" >&5
11203echo "${ECHO_T}no" >&6
11204fi
11205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11206
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011207
11208for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000011209do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11211if eval "test \"\${$as_ac_Header+set}\" = set"; then
11212 echo "$as_me:$LINENO: checking for $ac_header" >&5
11213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11214if eval "test \"\${$as_ac_Header+set}\" = set"; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011216fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011219else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011220 # Is the header compilable?
11221echo "$as_me:$LINENO: checking $ac_header usability" >&5
11222echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11223cat >conftest.$ac_ext <<_ACEOF
11224/* confdefs.h. */
11225_ACEOF
11226cat confdefs.h >>conftest.$ac_ext
11227cat >>conftest.$ac_ext <<_ACEOF
11228/* end confdefs.h. */
11229$ac_includes_default
11230#include <$ac_header>
11231_ACEOF
11232rm -f conftest.$ac_objext
11233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest.$ac_objext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_header_compiler=yes
11255else
11256 echo "$as_me: failed program was:" >&5
11257sed 's/^/| /' conftest.$ac_ext >&5
11258
11259ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011260fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11263echo "${ECHO_T}$ac_header_compiler" >&6
11264
11265# Is the header present?
11266echo "$as_me:$LINENO: checking $ac_header presence" >&5
11267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11268cat >conftest.$ac_ext <<_ACEOF
11269/* confdefs.h. */
11270_ACEOF
11271cat confdefs.h >>conftest.$ac_ext
11272cat >>conftest.$ac_ext <<_ACEOF
11273/* end confdefs.h. */
11274#include <$ac_header>
11275_ACEOF
11276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } >/dev/null; then
11284 if test -s conftest.err; then
11285 ac_cpp_err=$ac_c_preproc_warn_flag
11286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11287 else
11288 ac_cpp_err=
11289 fi
11290else
11291 ac_cpp_err=yes
11292fi
11293if test -z "$ac_cpp_err"; then
11294 ac_header_preproc=yes
11295else
11296 echo "$as_me: failed program was:" >&5
11297sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 ac_header_preproc=no
11300fi
11301rm -f conftest.err conftest.$ac_ext
11302echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303echo "${ECHO_T}$ac_header_preproc" >&6
11304
11305# So? What about this header?
11306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307 yes:no: )
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11312 ac_header_preproc=yes
11313 ;;
11314 no:yes:* )
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11327 (
11328 cat <<\_ASBOX
11329## ------------------------------------------ ##
11330## Report this to the AC_PACKAGE_NAME lists. ##
11331## ------------------------------------------ ##
11332_ASBOX
11333 ) |
11334 sed "s/^/$as_me: WARNING: /" >&2
11335 ;;
11336esac
11337echo "$as_me:$LINENO: checking for $ac_header" >&5
11338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11339if eval "test \"\${$as_ac_Header+set}\" = set"; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11341else
11342 eval "$as_ac_Header=\$ac_header_preproc"
11343fi
11344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11346
11347fi
11348if test `eval echo '${'$as_ac_Header'}'` = yes; then
11349 cat >>confdefs.h <<_ACEOF
11350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11351_ACEOF
11352
11353fi
11354
Bram Moolenaar071d4272004-06-13 20:20:40 +000011355done
11356
Bram Moolenaar071d4272004-06-13 20:20:40 +000011357
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011358echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11359echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011360cppflags_save=$CPPFLAGS
11361CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011362cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011368
11369#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11370# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11371 /* but don't do it on AIX 5.1 (Uribarri) */
11372#endif
11373#ifdef HAVE_XM_XM_H
11374# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11375#endif
11376#ifdef HAVE_STRING_H
11377# include <string.h>
11378#endif
11379#if defined(HAVE_STRINGS_H)
11380# include <strings.h>
11381#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011382
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011383int
11384main ()
11385{
11386int i; i = 0;
11387 ;
11388 return 0;
11389}
11390_ACEOF
11391rm -f conftest.$ac_objext
11392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 echo "$as_me:$LINENO: result: yes" >&5
11414echo "${ECHO_T}yes" >&6
11415else
11416 echo "$as_me: failed program was:" >&5
11417sed 's/^/| /' conftest.$ac_ext >&5
11418
11419cat >>confdefs.h <<\_ACEOF
11420#define NO_STRINGS_WITH_STRING_H 1
11421_ACEOF
11422
11423 echo "$as_me:$LINENO: result: no" >&5
11424echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011425fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011427CPPFLAGS=$cppflags_save
11428
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011429if test $ac_cv_c_compiler_gnu = yes; then
11430 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11431echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11432if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011434else
11435 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011436 cat >conftest.$ac_ext <<_ACEOF
11437/* confdefs.h. */
11438_ACEOF
11439cat confdefs.h >>conftest.$ac_ext
11440cat >>conftest.$ac_ext <<_ACEOF
11441/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011442#include <sgtty.h>
11443Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011444_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011446 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011447 ac_cv_prog_gcc_traditional=yes
11448else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011449 ac_cv_prog_gcc_traditional=no
11450fi
11451rm -f conftest*
11452
11453
11454 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011455 cat >conftest.$ac_ext <<_ACEOF
11456/* confdefs.h. */
11457_ACEOF
11458cat confdefs.h >>conftest.$ac_ext
11459cat >>conftest.$ac_ext <<_ACEOF
11460/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011461#include <termio.h>
11462Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011463_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011465 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011466 ac_cv_prog_gcc_traditional=yes
11467fi
11468rm -f conftest*
11469
11470 fi
11471fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011472echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11473echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011474 if test $ac_cv_prog_gcc_traditional = yes; then
11475 CC="$CC -traditional"
11476 fi
11477fi
11478
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011479echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11480echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11481if test "${ac_cv_c_const+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011483else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011484 cat >conftest.$ac_ext <<_ACEOF
11485/* confdefs.h. */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011490
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011491int
11492main ()
11493{
11494/* FIXME: Include the comments suggested by Paul. */
11495#ifndef __cplusplus
11496 /* Ultrix mips cc rejects this. */
11497 typedef int charset[2];
11498 const charset x;
11499 /* SunOS 4.1.1 cc rejects this. */
11500 char const *const *ccp;
11501 char **p;
11502 /* NEC SVR4.0.2 mips cc rejects this. */
11503 struct point {int x, y;};
11504 static struct point const zero = {0,0};
11505 /* AIX XL C 1.02.0.0 rejects this.
11506 It does not let you subtract one const X* pointer from another in
11507 an arm of an if-expression whose if-part is not a constant
11508 expression */
11509 const char *g = "string";
11510 ccp = &g + (g ? g-g : 0);
11511 /* HPUX 7.0 cc rejects these. */
11512 ++ccp;
11513 p = (char**) ccp;
11514 ccp = (char const *const *) p;
11515 { /* SCO 3.2v4 cc rejects this. */
11516 char *t;
11517 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011518
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011519 *t++ = 0;
11520 }
11521 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11522 int x[] = {25, 17};
11523 const int *foo = &x[0];
11524 ++foo;
11525 }
11526 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11527 typedef const int *iptr;
11528 iptr p = 0;
11529 ++p;
11530 }
11531 { /* AIX XL C 1.02.0.0 rejects this saying
11532 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11533 struct s { int j; const int *ap[3]; };
11534 struct s *b; b->j = 5;
11535 }
11536 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11537 const int foo = 10;
11538 }
11539#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011540
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011541 ;
11542 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011543}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011544_ACEOF
11545rm -f conftest.$ac_objext
11546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547 (eval $ac_compile) 2>conftest.er1
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -z "$ac_c_werror_flag"
11555 || test ! -s conftest.err'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; } &&
11561 { ac_try='test -s conftest.$ac_objext'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011567 ac_cv_c_const=yes
11568else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011569 echo "$as_me: failed program was:" >&5
11570sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011571
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011572ac_cv_c_const=no
11573fi
11574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11575fi
11576echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11577echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011578if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011579
11580cat >>confdefs.h <<\_ACEOF
11581#define const
11582_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011583
11584fi
11585
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011586echo "$as_me:$LINENO: checking for mode_t" >&5
11587echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11588if test "${ac_cv_type_mode_t+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011590else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011591 cat >conftest.$ac_ext <<_ACEOF
11592/* confdefs.h. */
11593_ACEOF
11594cat confdefs.h >>conftest.$ac_ext
11595cat >>conftest.$ac_ext <<_ACEOF
11596/* end confdefs.h. */
11597$ac_includes_default
11598int
11599main ()
11600{
11601if ((mode_t *) 0)
11602 return 0;
11603if (sizeof (mode_t))
11604 return 0;
11605 ;
11606 return 0;
11607}
11608_ACEOF
11609rm -f conftest.$ac_objext
11610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11611 (eval $ac_compile) 2>conftest.er1
11612 ac_status=$?
11613 grep -v '^ *+' conftest.er1 >conftest.err
11614 rm -f conftest.er1
11615 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } &&
11618 { ac_try='test -z "$ac_c_werror_flag"
11619 || test ! -s conftest.err'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; } &&
11625 { ac_try='test -s conftest.$ac_objext'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011631 ac_cv_type_mode_t=yes
11632else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011633 echo "$as_me: failed program was:" >&5
11634sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011635
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011636ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011637fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011639fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011640echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11641echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11642if test $ac_cv_type_mode_t = yes; then
11643 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011644else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011645
11646cat >>confdefs.h <<_ACEOF
11647#define mode_t int
11648_ACEOF
11649
11650fi
11651
11652echo "$as_me:$LINENO: checking for off_t" >&5
11653echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11654if test "${ac_cv_type_off_t+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656else
11657 cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
11663$ac_includes_default
11664int
11665main ()
11666{
11667if ((off_t *) 0)
11668 return 0;
11669if (sizeof (off_t))
11670 return 0;
11671 ;
11672 return 0;
11673}
11674_ACEOF
11675rm -f conftest.$ac_objext
11676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11677 (eval $ac_compile) 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag"
11685 || test ! -s conftest.err'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest.$ac_objext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011697 ac_cv_type_off_t=yes
11698else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011701
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011702ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011703fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011705fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011706echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11707echo "${ECHO_T}$ac_cv_type_off_t" >&6
11708if test $ac_cv_type_off_t = yes; then
11709 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011710else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011711
11712cat >>confdefs.h <<_ACEOF
11713#define off_t long
11714_ACEOF
11715
11716fi
11717
11718echo "$as_me:$LINENO: checking for pid_t" >&5
11719echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11720if test "${ac_cv_type_pid_t+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 cat >conftest.$ac_ext <<_ACEOF
11724/* confdefs.h. */
11725_ACEOF
11726cat confdefs.h >>conftest.$ac_ext
11727cat >>conftest.$ac_ext <<_ACEOF
11728/* end confdefs.h. */
11729$ac_includes_default
11730int
11731main ()
11732{
11733if ((pid_t *) 0)
11734 return 0;
11735if (sizeof (pid_t))
11736 return 0;
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext
11742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -z "$ac_c_werror_flag"
11751 || test ! -s conftest.err'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011763 ac_cv_type_pid_t=yes
11764else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011765 echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011767
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011768ac_cv_type_pid_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011769fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011771fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011772echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11773echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11774if test $ac_cv_type_pid_t = yes; then
11775 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011776else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011777
11778cat >>confdefs.h <<_ACEOF
11779#define pid_t int
11780_ACEOF
11781
11782fi
11783
11784echo "$as_me:$LINENO: checking for size_t" >&5
11785echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11786if test "${ac_cv_type_size_t+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788else
11789 cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
11795$ac_includes_default
11796int
11797main ()
11798{
11799if ((size_t *) 0)
11800 return 0;
11801if (sizeof (size_t))
11802 return 0;
11803 ;
11804 return 0;
11805}
11806_ACEOF
11807rm -f conftest.$ac_objext
11808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try='test -z "$ac_c_werror_flag"
11817 || test ! -s conftest.err'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try='test -s conftest.$ac_objext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011829 ac_cv_type_size_t=yes
11830else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011831 echo "$as_me: failed program was:" >&5
11832sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011833
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011834ac_cv_type_size_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011835fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011837fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011838echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11839echo "${ECHO_T}$ac_cv_type_size_t" >&6
11840if test $ac_cv_type_size_t = yes; then
11841 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011842else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011843
11844cat >>confdefs.h <<_ACEOF
11845#define size_t unsigned
11846_ACEOF
11847
11848fi
11849
11850echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11851echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11852if test "${ac_cv_type_uid_t+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854else
11855 cat >conftest.$ac_ext <<_ACEOF
11856/* confdefs.h. */
11857_ACEOF
11858cat confdefs.h >>conftest.$ac_ext
11859cat >>conftest.$ac_ext <<_ACEOF
11860/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011861#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011862
11863_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011865 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011866 ac_cv_type_uid_t=yes
11867else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011868 ac_cv_type_uid_t=no
11869fi
11870rm -f conftest*
11871
11872fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011873echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11874echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011875if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011876
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011877cat >>confdefs.h <<\_ACEOF
11878#define uid_t int
11879_ACEOF
11880
11881
11882cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011883#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011884_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011885
11886fi
11887
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011888echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11889echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11890if test "${ac_cv_header_time+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011892else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011893 cat >conftest.$ac_ext <<_ACEOF
11894/* confdefs.h. */
11895_ACEOF
11896cat confdefs.h >>conftest.$ac_ext
11897cat >>conftest.$ac_ext <<_ACEOF
11898/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011899#include <sys/types.h>
11900#include <sys/time.h>
11901#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011902
11903int
11904main ()
11905{
11906if ((struct tm *) 0)
11907return 0;
11908 ;
11909 return 0;
11910}
11911_ACEOF
11912rm -f conftest.$ac_objext
11913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914 (eval $ac_compile) 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -z "$ac_c_werror_flag"
11922 || test ! -s conftest.err'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest.$ac_objext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011934 ac_cv_header_time=yes
11935else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011936 echo "$as_me: failed program was:" >&5
11937sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011938
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011939ac_cv_header_time=no
11940fi
11941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11942fi
11943echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11944echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011945if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011946
11947cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011948#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011949_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011950
11951fi
11952
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011953echo "$as_me:$LINENO: checking for ino_t" >&5
11954echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11955if test "${ac_cv_type_ino_t+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011957else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011958 cat >conftest.$ac_ext <<_ACEOF
11959/* confdefs.h. */
11960_ACEOF
11961cat confdefs.h >>conftest.$ac_ext
11962cat >>conftest.$ac_ext <<_ACEOF
11963/* end confdefs.h. */
11964$ac_includes_default
11965int
11966main ()
11967{
11968if ((ino_t *) 0)
11969 return 0;
11970if (sizeof (ino_t))
11971 return 0;
11972 ;
11973 return 0;
11974}
11975_ACEOF
11976rm -f conftest.$ac_objext
11977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11978 (eval $ac_compile) 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag"
11986 || test ! -s conftest.err'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; } &&
11992 { ac_try='test -s conftest.$ac_objext'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011998 ac_cv_type_ino_t=yes
11999else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012000 echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012002
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012003ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000012004fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012006fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012007echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12008echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12009if test $ac_cv_type_ino_t = yes; then
12010 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000012011else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012012
12013cat >>confdefs.h <<_ACEOF
12014#define ino_t long
12015_ACEOF
12016
12017fi
12018
12019echo "$as_me:$LINENO: checking for dev_t" >&5
12020echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12021if test "${ac_cv_type_dev_t+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023else
12024 cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h. */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h. */
12030$ac_includes_default
12031int
12032main ()
12033{
12034if ((dev_t *) 0)
12035 return 0;
12036if (sizeof (dev_t))
12037 return 0;
12038 ;
12039 return 0;
12040}
12041_ACEOF
12042rm -f conftest.$ac_objext
12043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12044 (eval $ac_compile) 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_c_werror_flag"
12052 || test ! -s conftest.err'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012064 ac_cv_type_dev_t=yes
12065else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012066 echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
12068
12069ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000012070fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012072fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012073echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12074echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12075if test $ac_cv_type_dev_t = yes; then
12076 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000012077else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012078
12079cat >>confdefs.h <<_ACEOF
12080#define dev_t unsigned
12081_ACEOF
12082
12083fi
12084
12085
12086echo "$as_me:$LINENO: checking for rlim_t" >&5
12087echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
12088if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12089 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12090echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
12091else
12092 cat >conftest.$ac_ext <<_ACEOF
12093/* confdefs.h. */
12094_ACEOF
12095cat confdefs.h >>conftest.$ac_ext
12096cat >>conftest.$ac_ext <<_ACEOF
12097/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012098
12099#include <sys/types.h>
12100#if STDC_HEADERS
12101#include <stdlib.h>
12102#include <stddef.h>
12103#endif
12104#ifdef HAVE_SYS_RESOURCE_H
12105#include <sys/resource.h>
12106#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012107
12108_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012110 $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 +000012111 ac_cv_type_rlim_t=yes
12112else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012113 ac_cv_type_rlim_t=no
12114fi
12115rm -f conftest*
12116
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012117 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12118echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012119fi
12120if test $ac_cv_type_rlim_t = no; then
12121 cat >> confdefs.h <<\EOF
12122#define rlim_t unsigned long
12123EOF
12124fi
12125
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012126echo "$as_me:$LINENO: checking for stack_t" >&5
12127echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012128if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012129 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12130echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012131else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012132 cat >conftest.$ac_ext <<_ACEOF
12133/* confdefs.h. */
12134_ACEOF
12135cat confdefs.h >>conftest.$ac_ext
12136cat >>conftest.$ac_ext <<_ACEOF
12137/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012138
12139#include <sys/types.h>
12140#if STDC_HEADERS
12141#include <stdlib.h>
12142#include <stddef.h>
12143#endif
12144#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012145
12146_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012148 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012149 ac_cv_type_stack_t=yes
12150else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012151 ac_cv_type_stack_t=no
12152fi
12153rm -f conftest*
12154
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012155 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12156echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012157fi
12158if test $ac_cv_type_stack_t = no; then
12159 cat >> confdefs.h <<\EOF
12160#define stack_t struct sigaltstack
12161EOF
12162fi
12163
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012164echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12165echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
12166cat >conftest.$ac_ext <<_ACEOF
12167/* confdefs.h. */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012172
12173#include <sys/types.h>
12174#if STDC_HEADERS
12175#include <stdlib.h>
12176#include <stddef.h>
12177#endif
12178#include <signal.h>
12179#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012180
12181int
12182main ()
12183{
12184stack_t sigstk; sigstk.ss_base = 0;
12185 ;
12186 return 0;
12187}
12188_ACEOF
12189rm -f conftest.$ac_objext
12190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191 (eval $ac_compile) 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag"
12199 || test ! -s conftest.err'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try='test -s conftest.$ac_objext'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 echo "$as_me:$LINENO: result: yes" >&5
12212echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012213#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012214_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012215
12216else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012217 echo "$as_me: failed program was:" >&5
12218sed 's/^/| /' conftest.$ac_ext >&5
12219
12220echo "$as_me:$LINENO: result: no" >&5
12221echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012222fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012224
12225olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012226echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12227echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
12228
Bram Moolenaar071d4272004-06-13 20:20:40 +000012229# Check whether --with-tlib or --without-tlib was given.
12230if test "${with_tlib+set}" = set; then
12231 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012232
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012233fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000012234if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012235 echo "$as_me:$LINENO: result: $with_tlib" >&5
12236echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012237 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012238 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12239echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
12240 cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h. */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012246
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012247int
12248main ()
12249{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012250
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012251 ;
12252 return 0;
12253}
12254_ACEOF
12255rm -f conftest.$ac_objext conftest$ac_exeext
12256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12257 (eval $ac_link) 2>conftest.er1
12258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -z "$ac_c_werror_flag"
12265 || test ! -s conftest.err'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest$ac_exeext'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 echo "$as_me:$LINENO: result: OK" >&5
12278echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012279else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012280 echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
12283{ { echo "$as_me:$LINENO: error: FAILED" >&5
12284echo "$as_me: error: FAILED" >&2;}
12285 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012286fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012287rm -f conftest.err conftest.$ac_objext \
12288 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012289 olibs="$LIBS"
12290else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012291 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12292echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012293 case "`uname -s 2>/dev/null`" in
12294 OSF1) tlibs="ncurses curses termlib termcap";;
12295 *) tlibs="ncurses termlib termcap curses";;
12296 esac
12297 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012298
12299as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12300echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12301echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
12302if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012304else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012305 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000012306LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012307cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313
Bram Moolenaar071d4272004-06-13 20:20:40 +000012314/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012315#ifdef __cplusplus
12316extern "C"
12317#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012318/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012319 builtin and then its argument prototype would still apply. */
12320char tgetent ();
12321int
12322main ()
12323{
12324tgetent ();
12325 ;
12326 return 0;
12327}
12328_ACEOF
12329rm -f conftest.$ac_objext conftest$ac_exeext
12330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12331 (eval $ac_link) 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag"
12339 || test ! -s conftest.err'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; } &&
12345 { ac_try='test -s conftest$ac_exeext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012352else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012353 echo "$as_me: failed program was:" >&5
12354sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012355
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012356eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012357fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012358rm -f conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12360LIBS=$ac_check_lib_save_LIBS
12361fi
12362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12363echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12364if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12365 cat >>confdefs.h <<_ACEOF
12366#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12367_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012368
12369 LIBS="-l${libname} $LIBS"
12370
Bram Moolenaar071d4272004-06-13 20:20:40 +000012371fi
12372
12373 if test "x$olibs" != "x$LIBS"; then
12374 if test "$cross_compiling" = yes; then
12375 res="FAIL"
12376else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012377 cat >conftest.$ac_ext <<_ACEOF
12378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012383
12384#ifdef HAVE_TERMCAP_H
12385# include <termcap.h>
12386#endif
12387main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012388_ACEOF
12389rm -f conftest$ac_exeext
12390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12391 (eval $ac_link) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012400 res="OK"
12401else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012402 echo "$as_me: program exited with status $ac_status" >&5
12403echo "$as_me: failed program was:" >&5
12404sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012405
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012406( exit $ac_status )
12407res="FAIL"
12408fi
12409rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12410fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012411 if test "$res" = "OK"; then
12412 break
12413 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012414 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12415echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012416 LIBS="$olibs"
12417 fi
12418 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012419 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012420 echo "$as_me:$LINENO: result: no terminal library found" >&5
12421echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012422 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012423fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012424
12425if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012426 echo "$as_me:$LINENO: checking for tgetent()" >&5
12427echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
12428 cat >conftest.$ac_ext <<_ACEOF
12429/* confdefs.h. */
12430_ACEOF
12431cat confdefs.h >>conftest.$ac_ext
12432cat >>conftest.$ac_ext <<_ACEOF
12433/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012434
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012435int
12436main ()
12437{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012438char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012439 ;
12440 return 0;
12441}
12442_ACEOF
12443rm -f conftest.$ac_objext conftest$ac_exeext
12444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445 (eval $ac_link) 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag"
12453 || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 echo "$as_me:$LINENO: result: yes" >&5
12466echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012467else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012468 echo "$as_me: failed program was:" >&5
12469sed 's/^/| /' conftest.$ac_ext >&5
12470
12471{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012472 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012473 Or specify the name of the library with --with-tlib." >&5
12474echo "$as_me: error: NOT FOUND!
12475 You need to install a terminal library; for example ncurses.
12476 Or specify the name of the library with --with-tlib." >&2;}
12477 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012478fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012479rm -f conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012481fi
12482
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012483echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12484echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012485if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012486 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12487echo "$as_me: error: failed to compile test program." >&2;}
12488 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012489else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012490 cat >conftest.$ac_ext <<_ACEOF
12491/* confdefs.h. */
12492_ACEOF
12493cat confdefs.h >>conftest.$ac_ext
12494cat >>conftest.$ac_ext <<_ACEOF
12495/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012496
12497#ifdef HAVE_TERMCAP_H
12498# include <termcap.h>
12499#endif
12500main()
12501{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012502_ACEOF
12503rm -f conftest$ac_exeext
12504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
12515echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012516else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012517 echo "$as_me: program exited with status $ac_status" >&5
12518echo "$as_me: failed program was:" >&5
12519sed 's/^/| /' conftest.$ac_ext >&5
12520
12521( exit $ac_status )
12522echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
12523echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012524#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012525_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012526
12527fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012528rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012529fi
12530
Bram Moolenaar071d4272004-06-13 20:20:40 +000012531if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012532 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12533echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012534 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012535 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12536echo "$as_me: error: failed to compile test program." >&2;}
12537 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012538else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012539 cat >conftest.$ac_ext <<_ACEOF
12540/* confdefs.h. */
12541_ACEOF
12542cat confdefs.h >>conftest.$ac_ext
12543cat >>conftest.$ac_ext <<_ACEOF
12544/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012545
12546#ifdef HAVE_TERMCAP_H
12547# include <termcap.h>
12548#endif
12549main()
12550{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012551_ACEOF
12552rm -f conftest$ac_exeext
12553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12554 (eval $ac_link) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 echo "$as_me:$LINENO: result: zero" >&5
12564echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012565#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012566_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012567
12568else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012569 echo "$as_me: program exited with status $ac_status" >&5
12570echo "$as_me: failed program was:" >&5
12571sed 's/^/| /' conftest.$ac_ext >&5
12572
12573( exit $ac_status )
12574echo "$as_me:$LINENO: result: non-zero" >&5
12575echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012576fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12578fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012579fi
12580
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012581echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12582echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
12583cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012589
12590#ifdef HAVE_TERMCAP_H
12591# include <termcap.h>
12592#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012593
12594int
12595main ()
12596{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012597ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012598 ;
12599 return 0;
12600}
12601_ACEOF
12602rm -f conftest.$ac_objext conftest$ac_exeext
12603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12604 (eval $ac_link) 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
12611 { ac_try='test -z "$ac_c_werror_flag"
12612 || test ! -s conftest.err'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; } &&
12618 { ac_try='test -s conftest$ac_exeext'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 echo "$as_me:$LINENO: result: yes" >&5
12625echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012626#define HAVE_OSPEED 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012627_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012628
12629else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012630 echo "$as_me: failed program was:" >&5
12631sed 's/^/| /' conftest.$ac_ext >&5
12632
12633echo "$as_me:$LINENO: result: no" >&5
12634echo "${ECHO_T}no" >&6
12635 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12636echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
12637 cat >conftest.$ac_ext <<_ACEOF
12638/* confdefs.h. */
12639_ACEOF
12640cat confdefs.h >>conftest.$ac_ext
12641cat >>conftest.$ac_ext <<_ACEOF
12642/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012643
12644#ifdef HAVE_TERMCAP_H
12645# include <termcap.h>
12646#endif
12647extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012648
12649int
12650main ()
12651{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012652ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012653 ;
12654 return 0;
12655}
12656_ACEOF
12657rm -f conftest.$ac_objext conftest$ac_exeext
12658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12659 (eval $ac_link) 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag"
12667 || test ! -s conftest.err'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest$ac_exeext'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; }; then
12679 echo "$as_me:$LINENO: result: yes" >&5
12680echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012681#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012682_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012683
12684else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012687
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012688echo "$as_me:$LINENO: result: no" >&5
12689echo "${ECHO_T}no" >&6
12690fi
12691rm -f conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693
12694fi
12695rm -f conftest.err conftest.$ac_objext \
12696 conftest$ac_exeext conftest.$ac_ext
12697
12698echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12699echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
12700cat >conftest.$ac_ext <<_ACEOF
12701/* confdefs.h. */
12702_ACEOF
12703cat confdefs.h >>conftest.$ac_ext
12704cat >>conftest.$ac_ext <<_ACEOF
12705/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012706
12707#ifdef HAVE_TERMCAP_H
12708# include <termcap.h>
12709#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012710
12711int
12712main ()
12713{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012714if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012715 ;
12716 return 0;
12717}
12718_ACEOF
12719rm -f conftest.$ac_objext conftest$ac_exeext
12720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12721 (eval $ac_link) 2>conftest.er1
12722 ac_status=$?
12723 grep -v '^ *+' conftest.er1 >conftest.err
12724 rm -f conftest.er1
12725 cat conftest.err >&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } &&
12728 { ac_try='test -z "$ac_c_werror_flag"
12729 || test ! -s conftest.err'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; } &&
12735 { ac_try='test -s conftest$ac_exeext'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12738 ac_status=$?
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12741 echo "$as_me:$LINENO: result: yes" >&5
12742echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012743#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012744_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012745
12746else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012747 echo "$as_me: failed program was:" >&5
12748sed 's/^/| /' conftest.$ac_ext >&5
12749
12750echo "$as_me:$LINENO: result: no" >&5
12751echo "${ECHO_T}no" >&6
12752 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12753echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12754 cat >conftest.$ac_ext <<_ACEOF
12755/* confdefs.h. */
12756_ACEOF
12757cat confdefs.h >>conftest.$ac_ext
12758cat >>conftest.$ac_ext <<_ACEOF
12759/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012760
12761#ifdef HAVE_TERMCAP_H
12762# include <termcap.h>
12763#endif
12764extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012765
12766int
12767main ()
12768{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012769if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012770 ;
12771 return 0;
12772}
12773_ACEOF
12774rm -f conftest.$ac_objext conftest$ac_exeext
12775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776 (eval $ac_link) 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -z "$ac_c_werror_flag"
12784 || test ! -s conftest.err'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest$ac_exeext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 echo "$as_me:$LINENO: result: yes" >&5
12797echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012798#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012799_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012800
12801else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012802 echo "$as_me: failed program was:" >&5
12803sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012804
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012805echo "$as_me:$LINENO: result: no" >&5
12806echo "${ECHO_T}no" >&6
12807fi
12808rm -f conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12810
12811fi
12812rm -f conftest.err conftest.$ac_objext \
12813 conftest$ac_exeext conftest.$ac_ext
12814
12815echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12816echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12817cat >conftest.$ac_ext <<_ACEOF
12818/* confdefs.h. */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012823
12824#ifdef HAVE_TERMCAP_H
12825# include <termcap.h>
12826#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012827
12828int
12829main ()
12830{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012831extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012832 ;
12833 return 0;
12834}
12835_ACEOF
12836rm -f conftest.$ac_objext
12837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838 (eval $ac_compile) 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag"
12846 || test ! -s conftest.err'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest.$ac_objext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 echo "$as_me:$LINENO: result: yes" >&5
12859echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012860#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012861_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012862
12863else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012864 echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012866
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012867echo "$as_me:$LINENO: result: no" >&5
12868echo "${ECHO_T}no" >&6
12869fi
12870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12871
12872echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12873echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12874cat >conftest.$ac_ext <<_ACEOF
12875/* confdefs.h. */
12876_ACEOF
12877cat confdefs.h >>conftest.$ac_ext
12878cat >>conftest.$ac_ext <<_ACEOF
12879/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012880
12881#include <sys/types.h>
12882#include <sys/time.h>
12883#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012884int
12885main ()
12886{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012887
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012888 ;
12889 return 0;
12890}
12891_ACEOF
12892rm -f conftest.$ac_objext
12893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag"
12902 || test ! -s conftest.err'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest.$ac_objext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 echo "$as_me:$LINENO: result: yes" >&5
12915echo "${ECHO_T}yes" >&6
12916 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012917#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012918_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012919
12920else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012921 echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
12924echo "$as_me:$LINENO: result: no" >&5
12925echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012926fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012928
12929
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012930echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12931echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012932if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012933 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012934#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012935_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012936
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012937 echo "$as_me:$LINENO: result: yes" >&5
12938echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012939else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012940 echo "$as_me:$LINENO: result: no" >&5
12941echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012942fi
12943
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012944echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12945echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012946if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012947 cat >conftest.$ac_ext <<_ACEOF
12948/* confdefs.h. */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012953
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012954int
12955main ()
12956{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012957ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012958 ;
12959 return 0;
12960}
12961_ACEOF
12962rm -f conftest.$ac_objext conftest$ac_exeext
12963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964 (eval $ac_link) 2>conftest.er1
12965 ac_status=$?
12966 grep -v '^ *+' conftest.er1 >conftest.err
12967 rm -f conftest.er1
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag"
12972 || test ! -s conftest.err'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; } &&
12978 { ac_try='test -s conftest$ac_exeext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 echo "$as_me:$LINENO: result: yes" >&5
12985echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012986#define HAVE_SVR4_PTYS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012987_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012988
12989else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012990 echo "$as_me: failed program was:" >&5
12991sed 's/^/| /' conftest.$ac_ext >&5
12992
12993echo "$as_me:$LINENO: result: no" >&5
12994echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012995fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012996rm -f conftest.err conftest.$ac_objext \
12997 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012998else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012999 echo "$as_me:$LINENO: result: no" >&5
13000echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013001fi
13002
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013003echo "$as_me:$LINENO: checking for ptyranges" >&5
13004echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013005if test -d /dev/ptym ; then
13006 pdir='/dev/ptym'
13007else
13008 pdir='/dev'
13009fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013010cat >conftest.$ac_ext <<_ACEOF
13011/* confdefs.h. */
13012_ACEOF
13013cat confdefs.h >>conftest.$ac_ext
13014cat >>conftest.$ac_ext <<_ACEOF
13015/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013016#ifdef M_UNIX
13017 yes;
13018#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013019
13020_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013022 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013023 ptys=`echo /dev/ptyp??`
13024else
Bram Moolenaar071d4272004-06-13 20:20:40 +000013025 ptys=`echo $pdir/pty??`
13026fi
13027rm -f conftest*
13028
13029if test "$ptys" != "$pdir/pty??" ; then
13030 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13031 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013032 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013033#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013034_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013035
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013036 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013037#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013038_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013039
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013040 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13041echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013042else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013043 echo "$as_me:$LINENO: result: don't know" >&5
13044echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013045fi
13046
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013047echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13048echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013049rm -f conftest_grp
13050if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013051 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13052echo "$as_me: error: failed to compile test program" >&2;}
13053 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013054else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013055 cat >conftest.$ac_ext <<_ACEOF
13056/* confdefs.h. */
13057_ACEOF
13058cat confdefs.h >>conftest.$ac_ext
13059cat >>conftest.$ac_ext <<_ACEOF
13060/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013061
13062#include <sys/types.h>
13063#include <sys/stat.h>
13064#include <stdio.h>
13065main()
13066{
13067 struct stat sb;
13068 char *x,*ttyname();
13069 int om, m;
13070 FILE *fp;
13071
13072 if (!(x = ttyname(0))) exit(1);
13073 if (stat(x, &sb)) exit(1);
13074 om = sb.st_mode;
13075 if (om & 002) exit(0);
13076 m = system("mesg y");
13077 if (m == -1 || m == 127) exit(1);
13078 if (stat(x, &sb)) exit(1);
13079 m = sb.st_mode;
13080 if (chmod(x, om)) exit(1);
13081 if (m & 002) exit(0);
13082 if (sb.st_gid == getgid()) exit(1);
13083 if (!(fp=fopen("conftest_grp", "w")))
13084 exit(1);
13085 fprintf(fp, "%d\n", sb.st_gid);
13086 fclose(fp);
13087 exit(0);
13088}
13089
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013090_ACEOF
13091rm -f conftest$ac_exeext
13092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13093 (eval $ac_link) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }; then
13102
Bram Moolenaar071d4272004-06-13 20:20:40 +000013103 if test -f conftest_grp; then
13104 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013105 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
13106echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
13107 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013108#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013109_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013110
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013111 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013112#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013113_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013114
13115 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013116 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13117echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013118 fi
13119
13120else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013121 echo "$as_me: program exited with status $ac_status" >&5
13122echo "$as_me: failed program was:" >&5
13123sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013124
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013125( exit $ac_status )
13126echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13127echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
13128fi
13129rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13130fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013131rm -f conftest_grp
13132
13133
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013134echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13135echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13136if test "${ac_cv_type_signal+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013138else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013139 cat >conftest.$ac_ext <<_ACEOF
13140/* confdefs.h. */
13141_ACEOF
13142cat confdefs.h >>conftest.$ac_ext
13143cat >>conftest.$ac_ext <<_ACEOF
13144/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013145#include <sys/types.h>
13146#include <signal.h>
13147#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013148# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000013149#endif
13150#ifdef __cplusplus
13151extern "C" void (*signal (int, void (*)(int)))(int);
13152#else
13153void (*signal ()) ();
13154#endif
13155
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013156int
13157main ()
13158{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013159int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013160 ;
13161 return 0;
13162}
13163_ACEOF
13164rm -f conftest.$ac_objext
13165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166 (eval $ac_compile) 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
13173 { ac_try='test -z "$ac_c_werror_flag"
13174 || test ! -s conftest.err'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; } &&
13180 { ac_try='test -s conftest.$ac_objext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013186 ac_cv_type_signal=void
13187else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013188 echo "$as_me: failed program was:" >&5
13189sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013190
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013191ac_cv_type_signal=int
13192fi
13193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13194fi
13195echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13196echo "${ECHO_T}$ac_cv_type_signal" >&6
13197
13198cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013199#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013200_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013201
13202
13203
13204if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013205 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013206#define SIGRETURN return
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 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013211#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013212_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013213
13214fi
13215
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013216echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13217echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
13218cat >conftest.$ac_ext <<_ACEOF
13219/* confdefs.h. */
13220_ACEOF
13221cat confdefs.h >>conftest.$ac_ext
13222cat >>conftest.$ac_ext <<_ACEOF
13223/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013224
13225#include <signal.h>
13226test_sig()
13227{
13228 struct sigcontext *scont;
13229 scont = (struct sigcontext *)0;
13230 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013231}
13232int
13233main ()
13234{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013235
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013236 ;
13237 return 0;
13238}
13239_ACEOF
13240rm -f conftest.$ac_objext
13241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242 (eval $ac_compile) 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_objext'
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
13264 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013265#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013266_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013267
13268else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272echo "$as_me:$LINENO: result: no" >&5
13273echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013274fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013276
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013277echo "$as_me:$LINENO: checking getcwd implementation" >&5
13278echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013279if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013280 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13281echo "$as_me: error: failed to compile test program" >&2;}
13282 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013283else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013284 cat >conftest.$ac_ext <<_ACEOF
13285/* confdefs.h. */
13286_ACEOF
13287cat confdefs.h >>conftest.$ac_ext
13288cat >>conftest.$ac_ext <<_ACEOF
13289/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013290
13291char *dagger[] = { "IFS=pwd", 0 };
13292main()
13293{
13294 char buffer[500];
13295 extern char **environ;
13296 environ = dagger;
13297 return getcwd(buffer, 500) ? 0 : 1;
13298}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013299_ACEOF
13300rm -f conftest$ac_exeext
13301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13302 (eval $ac_link) 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
13311 echo "$as_me:$LINENO: result: it is usable" >&5
13312echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013313else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013314 echo "$as_me: program exited with status $ac_status" >&5
13315echo "$as_me: failed program was:" >&5
13316sed 's/^/| /' conftest.$ac_ext >&5
13317
13318( exit $ac_status )
13319echo "$as_me:$LINENO: result: it stinks" >&5
13320echo "${ECHO_T}it stinks" >&6
13321 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013322#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013323_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013324
13325fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013326rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013327fi
13328
13329
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
Bram Moolenaar071d4272004-06-13 20:20:40 +000013375for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13376 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13377 memset nanosleep opendir putenv qsort readlink select setenv \
13378 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000013379 sigvec strcasecmp strerror strftime stricmp strncasecmp \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000013380 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13381 usleep utime utimes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013382do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13384echo "$as_me:$LINENO: checking for $ac_func" >&5
13385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13386if eval "test \"\${$as_ac_var+set}\" = set"; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013388else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013389 cat >conftest.$ac_ext <<_ACEOF
13390/* confdefs.h. */
13391_ACEOF
13392cat confdefs.h >>conftest.$ac_ext
13393cat >>conftest.$ac_ext <<_ACEOF
13394/* end confdefs.h. */
13395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13397#define $ac_func innocuous_$ac_func
13398
Bram Moolenaar071d4272004-06-13 20:20:40 +000013399/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013400 which can conflict with char $ac_func (); below.
13401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13402 <limits.h> exists even on freestanding compilers. */
13403
13404#ifdef __STDC__
13405# include <limits.h>
13406#else
13407# include <assert.h>
13408#endif
13409
13410#undef $ac_func
13411
Bram Moolenaar071d4272004-06-13 20:20:40 +000013412/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013413#ifdef __cplusplus
13414extern "C"
13415{
13416#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013417/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013418 builtin and then its argument prototype would still apply. */
13419char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000013420/* The GNU C library defines this for functions which it implements
13421 to always fail with ENOSYS. Some functions are actually named
13422 something starting with __ and the normal name is an alias. */
13423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13424choke me
13425#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013426char (*f) () = $ac_func;
13427#endif
13428#ifdef __cplusplus
13429}
Bram Moolenaar071d4272004-06-13 20:20:40 +000013430#endif
13431
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013432int
13433main ()
13434{
13435return f != $ac_func;
13436 ;
13437 return 0;
13438}
13439_ACEOF
13440rm -f conftest.$ac_objext conftest$ac_exeext
13441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442 (eval $ac_link) 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest$ac_exeext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013463else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013464 echo "$as_me: failed program was:" >&5
13465sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013466
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013467eval "$as_ac_var=no"
13468fi
13469rm -f conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13471fi
13472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13474if test `eval echo '${'$as_ac_var'}'` = yes; then
13475 cat >>confdefs.h <<_ACEOF
13476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13477_ACEOF
13478
Bram Moolenaar071d4272004-06-13 20:20:40 +000013479fi
13480done
13481
13482
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013483echo "$as_me:$LINENO: checking for st_blksize" >&5
13484echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
13485cat >conftest.$ac_ext <<_ACEOF
13486/* confdefs.h. */
13487_ACEOF
13488cat confdefs.h >>conftest.$ac_ext
13489cat >>conftest.$ac_ext <<_ACEOF
13490/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013491#include <sys/types.h>
13492#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013493int
13494main ()
13495{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013496 struct stat st;
13497 int n;
13498
13499 stat("/", &st);
13500 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013501 ;
13502 return 0;
13503}
13504_ACEOF
13505rm -f conftest.$ac_objext
13506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13507 (eval $ac_compile) 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -z "$ac_c_werror_flag"
13515 || test ! -s conftest.err'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 echo "$as_me:$LINENO: result: yes" >&5
13528echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013529#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013530_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013531
13532else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013533 echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
13536echo "$as_me:$LINENO: result: no" >&5
13537echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013538fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013540
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013541echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13542echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013543if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013544 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13545echo "$as_me: error: failed to compile test program" >&2;}
13546 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013547else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013548 cat >conftest.$ac_ext <<_ACEOF
13549/* confdefs.h. */
13550_ACEOF
13551cat confdefs.h >>conftest.$ac_ext
13552cat >>conftest.$ac_ext <<_ACEOF
13553/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013554#include <sys/types.h>
13555#include <sys/stat.h>
13556main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013557_ACEOF
13558rm -f conftest$ac_exeext
13559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13560 (eval $ac_link) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 echo "$as_me:$LINENO: result: yes" >&5
13570echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013571#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013572_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013573
13574else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013575 echo "$as_me: program exited with status $ac_status" >&5
13576echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579( exit $ac_status )
13580echo "$as_me:$LINENO: result: no" >&5
13581echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013582fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013583rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013584fi
13585
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013586echo "$as_me:$LINENO: checking for iconv_open()" >&5
13587echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013588save_LIBS="$LIBS"
13589LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013590cat >conftest.$ac_ext <<_ACEOF
13591/* confdefs.h. */
13592_ACEOF
13593cat confdefs.h >>conftest.$ac_ext
13594cat >>conftest.$ac_ext <<_ACEOF
13595/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013596
13597#ifdef HAVE_ICONV_H
13598# include <iconv.h>
13599#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013600
13601int
13602main ()
13603{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013604iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013605 ;
13606 return 0;
13607}
13608_ACEOF
13609rm -f conftest.$ac_objext conftest$ac_exeext
13610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13611 (eval $ac_link) 2>conftest.er1
13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
13618 { ac_try='test -z "$ac_c_werror_flag"
13619 || test ! -s conftest.err'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; } &&
13625 { ac_try='test -s conftest$ac_exeext'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13632echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013633#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013634_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013635
13636else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013637 echo "$as_me: failed program was:" >&5
13638sed 's/^/| /' conftest.$ac_ext >&5
13639
13640LIBS="$save_LIBS"
13641 cat >conftest.$ac_ext <<_ACEOF
13642/* confdefs.h. */
13643_ACEOF
13644cat confdefs.h >>conftest.$ac_ext
13645cat >>conftest.$ac_ext <<_ACEOF
13646/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013647
13648#ifdef HAVE_ICONV_H
13649# include <iconv.h>
13650#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013651
13652int
13653main ()
13654{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013655iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013656 ;
13657 return 0;
13658}
13659_ACEOF
13660rm -f conftest.$ac_objext conftest$ac_exeext
13661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13662 (eval $ac_link) 2>conftest.er1
13663 ac_status=$?
13664 grep -v '^ *+' conftest.er1 >conftest.err
13665 rm -f conftest.er1
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -z "$ac_c_werror_flag"
13670 || test ! -s conftest.err'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; } &&
13676 { ac_try='test -s conftest$ac_exeext'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
13682 echo "$as_me:$LINENO: result: yes" >&5
13683echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013684#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013685_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013686
13687else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013688 echo "$as_me: failed program was:" >&5
13689sed 's/^/| /' conftest.$ac_ext >&5
13690
13691echo "$as_me:$LINENO: result: no" >&5
13692echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013693fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013694rm -f conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013696fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013697rm -f conftest.err conftest.$ac_objext \
13698 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013699
13700
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013701echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13702echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
13703cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013709
13710#ifdef HAVE_LANGINFO_H
13711# include <langinfo.h>
13712#endif
13713
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013714int
13715main ()
13716{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013717char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext conftest$ac_exeext
13723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13724 (eval $ac_link) 2>conftest.er1
13725 ac_status=$?
13726 grep -v '^ *+' conftest.er1 >conftest.err
13727 rm -f conftest.er1
13728 cat conftest.err >&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } &&
13731 { ac_try='test -z "$ac_c_werror_flag"
13732 || test ! -s conftest.err'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; } &&
13738 { ac_try='test -s conftest$ac_exeext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 echo "$as_me:$LINENO: result: yes" >&5
13745echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013746#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013747_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013748
13749else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013750 echo "$as_me: failed program was:" >&5
13751sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013752
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013753echo "$as_me:$LINENO: result: no" >&5
13754echo "${ECHO_T}no" >&6
13755fi
13756rm -f conftest.err conftest.$ac_objext \
13757 conftest$ac_exeext conftest.$ac_ext
13758
13759echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13760echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013761# Check whether --enable-acl or --disable-acl was given.
13762if test "${enable_acl+set}" = set; then
13763 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013764
Bram Moolenaar071d4272004-06-13 20:20:40 +000013765else
13766 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013767fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013768if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013769echo "$as_me:$LINENO: result: no" >&5
13770echo "${ECHO_T}no" >&6
13771echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13772echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13773if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013775else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013776 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013777LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013778cat >conftest.$ac_ext <<_ACEOF
13779/* confdefs.h. */
13780_ACEOF
13781cat confdefs.h >>conftest.$ac_ext
13782cat >>conftest.$ac_ext <<_ACEOF
13783/* end confdefs.h. */
13784
Bram Moolenaar071d4272004-06-13 20:20:40 +000013785/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013786#ifdef __cplusplus
13787extern "C"
13788#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013789/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013790 builtin and then its argument prototype would still apply. */
13791char acl_get_file ();
13792int
13793main ()
13794{
13795acl_get_file ();
13796 ;
13797 return 0;
13798}
13799_ACEOF
13800rm -f conftest.$ac_objext conftest$ac_exeext
13801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13802 (eval $ac_link) 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
13809 { ac_try='test -z "$ac_c_werror_flag"
13810 || test ! -s conftest.err'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; } &&
13816 { ac_try='test -s conftest$ac_exeext'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013823else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013824 echo "$as_me: failed program was:" >&5
13825sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013826
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013827ac_cv_lib_posix1e_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013828fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013829rm -f conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13831LIBS=$ac_check_lib_save_LIBS
13832fi
13833echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13834echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13835if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013836 LIBS="$LIBS -lposix1e"
13837else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013838 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13839echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13840if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013842else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013843 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013844LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013845cat >conftest.$ac_ext <<_ACEOF
13846/* confdefs.h. */
13847_ACEOF
13848cat confdefs.h >>conftest.$ac_ext
13849cat >>conftest.$ac_ext <<_ACEOF
13850/* end confdefs.h. */
13851
Bram Moolenaar071d4272004-06-13 20:20:40 +000013852/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013853#ifdef __cplusplus
13854extern "C"
13855#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013856/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013857 builtin and then its argument prototype would still apply. */
13858char acl_get_file ();
13859int
13860main ()
13861{
13862acl_get_file ();
13863 ;
13864 return 0;
13865}
13866_ACEOF
13867rm -f conftest.$ac_objext conftest$ac_exeext
13868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13869 (eval $ac_link) 2>conftest.er1
13870 ac_status=$?
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try='test -z "$ac_c_werror_flag"
13877 || test ! -s conftest.err'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13880 ac_status=$?
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; } &&
13883 { ac_try='test -s conftest$ac_exeext'
13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13886 ac_status=$?
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; }; then
13889 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013890else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013891 echo "$as_me: failed program was:" >&5
13892sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013893
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013894ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013895fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013896rm -f conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13898LIBS=$ac_check_lib_save_LIBS
13899fi
13900echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13901echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13902if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013903 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013904 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13905echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13906if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013908else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013909 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013910LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013911cat >conftest.$ac_ext <<_ACEOF
13912/* confdefs.h. */
13913_ACEOF
13914cat confdefs.h >>conftest.$ac_ext
13915cat >>conftest.$ac_ext <<_ACEOF
13916/* end confdefs.h. */
13917
Bram Moolenaar071d4272004-06-13 20:20:40 +000013918/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013919#ifdef __cplusplus
13920extern "C"
13921#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013922/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013923 builtin and then its argument prototype would still apply. */
13924char fgetxattr ();
13925int
13926main ()
13927{
13928fgetxattr ();
13929 ;
13930 return 0;
13931}
13932_ACEOF
13933rm -f conftest.$ac_objext conftest$ac_exeext
13934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13935 (eval $ac_link) 2>conftest.er1
13936 ac_status=$?
13937 grep -v '^ *+' conftest.er1 >conftest.err
13938 rm -f conftest.er1
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -z "$ac_c_werror_flag"
13943 || test ! -s conftest.err'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; } &&
13949 { ac_try='test -s conftest$ac_exeext'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013956else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013957 echo "$as_me: failed program was:" >&5
13958sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013959
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013960ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013961fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013962rm -f conftest.err conftest.$ac_objext \
13963 conftest$ac_exeext conftest.$ac_ext
13964LIBS=$ac_check_lib_save_LIBS
13965fi
13966echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13967echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13968if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013969 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013970fi
13971
Bram Moolenaar071d4272004-06-13 20:20:40 +000013972fi
13973
13974fi
13975
13976
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013977echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13978echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13979cat >conftest.$ac_ext <<_ACEOF
13980/* confdefs.h. */
13981_ACEOF
13982cat confdefs.h >>conftest.$ac_ext
13983cat >>conftest.$ac_ext <<_ACEOF
13984/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013985
13986#include <sys/types.h>
13987#ifdef HAVE_SYS_ACL_H
13988# include <sys/acl.h>
13989#endif
13990acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013991int
13992main ()
13993{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013994acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13995 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13996 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013997 ;
13998 return 0;
13999}
14000_ACEOF
14001rm -f conftest.$ac_objext conftest$ac_exeext
14002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14003 (eval $ac_link) 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag"
14011 || test ! -s conftest.err'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest$ac_exeext'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 echo "$as_me:$LINENO: result: yes" >&5
14024echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014025#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014026_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014027
14028else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014029 echo "$as_me: failed program was:" >&5
14030sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014031
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014032echo "$as_me:$LINENO: result: no" >&5
14033echo "${ECHO_T}no" >&6
14034fi
14035rm -f conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037
14038echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14039echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
14040cat >conftest.$ac_ext <<_ACEOF
14041/* confdefs.h. */
14042_ACEOF
14043cat confdefs.h >>conftest.$ac_ext
14044cat >>conftest.$ac_ext <<_ACEOF
14045/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014046
14047#ifdef HAVE_SYS_ACL_H
14048# include <sys/acl.h>
14049#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014050int
14051main ()
14052{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014053acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014054
14055 ;
14056 return 0;
14057}
14058_ACEOF
14059rm -f conftest.$ac_objext conftest$ac_exeext
14060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14061 (eval $ac_link) 2>conftest.er1
14062 ac_status=$?
14063 grep -v '^ *+' conftest.er1 >conftest.err
14064 rm -f conftest.er1
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -z "$ac_c_werror_flag"
14069 || test ! -s conftest.err'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try='test -s conftest$ac_exeext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 echo "$as_me:$LINENO: result: yes" >&5
14082echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014083#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014084_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014085
14086else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014087 echo "$as_me: failed program was:" >&5
14088sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014089
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014090echo "$as_me:$LINENO: result: no" >&5
14091echo "${ECHO_T}no" >&6
14092fi
14093rm -f conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
14095
14096echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14097echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
14098cat >conftest.$ac_ext <<_ACEOF
14099/* confdefs.h. */
14100_ACEOF
14101cat confdefs.h >>conftest.$ac_ext
14102cat >>conftest.$ac_ext <<_ACEOF
14103/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014104
14105#ifdef HAVE_SYS_ACL_H
14106# include <sys/acl.h>
14107#endif
14108#ifdef HAVE_SYS_ACCESS_H
14109# include <sys/access.h>
14110#endif
14111#define _ALL_SOURCE
14112
14113#include <sys/stat.h>
14114
14115int aclsize;
14116struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014117int
14118main ()
14119{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014120aclsize = sizeof(struct acl);
14121 aclent = (void *)malloc(aclsize);
14122 statacl("foo", STX_NORMAL, aclent, aclsize);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014123
14124 ;
14125 return 0;
14126}
14127_ACEOF
14128rm -f conftest.$ac_objext conftest$ac_exeext
14129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14130 (eval $ac_link) 2>conftest.er1
14131 ac_status=$?
14132 grep -v '^ *+' conftest.er1 >conftest.err
14133 rm -f conftest.er1
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -z "$ac_c_werror_flag"
14138 || test ! -s conftest.err'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try='test -s conftest$ac_exeext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 echo "$as_me:$LINENO: result: yes" >&5
14151echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014152#define HAVE_AIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014153_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014154
14155else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014156 echo "$as_me: failed program was:" >&5
14157sed 's/^/| /' conftest.$ac_ext >&5
14158
14159echo "$as_me:$LINENO: result: no" >&5
14160echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014161fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014162rm -f conftest.err conftest.$ac_objext \
14163 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014164else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014165 echo "$as_me:$LINENO: result: yes" >&5
14166echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014167fi
14168
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014169echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14170echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014171# Check whether --enable-gpm or --disable-gpm was given.
14172if test "${enable_gpm+set}" = set; then
14173 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014174
Bram Moolenaar071d4272004-06-13 20:20:40 +000014175else
14176 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014177fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014178
14179if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014180 echo "$as_me:$LINENO: result: no" >&5
14181echo "${ECHO_T}no" >&6
14182 echo "$as_me:$LINENO: checking for gpm" >&5
14183echo $ECHO_N "checking for gpm... $ECHO_C" >&6
14184if test "${vi_cv_have_gpm+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014186else
14187 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014188 cat >conftest.$ac_ext <<_ACEOF
14189/* confdefs.h. */
14190_ACEOF
14191cat confdefs.h >>conftest.$ac_ext
14192cat >>conftest.$ac_ext <<_ACEOF
14193/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014194#include <gpm.h>
14195 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014196int
14197main ()
14198{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014199Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014200 ;
14201 return 0;
14202}
14203_ACEOF
14204rm -f conftest.$ac_objext conftest$ac_exeext
14205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14206 (eval $ac_link) 2>conftest.er1
14207 ac_status=$?
14208 grep -v '^ *+' conftest.er1 >conftest.err
14209 rm -f conftest.er1
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } &&
14213 { ac_try='test -z "$ac_c_werror_flag"
14214 || test ! -s conftest.err'
14215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216 (eval $ac_try) 2>&5
14217 ac_status=$?
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; } &&
14220 { ac_try='test -s conftest$ac_exeext'
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014226 vi_cv_have_gpm=yes
14227else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014228 echo "$as_me: failed program was:" >&5
14229sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014230
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014231vi_cv_have_gpm=no
14232fi
14233rm -f conftest.err conftest.$ac_objext \
14234 conftest$ac_exeext conftest.$ac_ext
14235 LIBS="$olibs"
14236
14237fi
14238echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14239echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014240 if test $vi_cv_have_gpm = yes; then
14241 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014242 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014243#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014244_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014245
14246 fi
14247else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014248 echo "$as_me:$LINENO: result: yes" >&5
14249echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014250fi
14251
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014252echo "$as_me:$LINENO: checking for rename" >&5
14253echo $ECHO_N "checking for rename... $ECHO_C" >&6
14254cat >conftest.$ac_ext <<_ACEOF
14255/* confdefs.h. */
14256_ACEOF
14257cat confdefs.h >>conftest.$ac_ext
14258cat >>conftest.$ac_ext <<_ACEOF
14259/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014260#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014261int
14262main ()
14263{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014264rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014265 ;
14266 return 0;
14267}
14268_ACEOF
14269rm -f conftest.$ac_objext conftest$ac_exeext
14270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14271 (eval $ac_link) 2>conftest.er1
14272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -z "$ac_c_werror_flag"
14279 || test ! -s conftest.err'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest$ac_exeext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 echo "$as_me:$LINENO: result: yes" >&5
14292echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014293#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014294_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014295
14296else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014297 echo "$as_me: failed program was:" >&5
14298sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014299
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014300echo "$as_me:$LINENO: result: no" >&5
14301echo "${ECHO_T}no" >&6
14302fi
14303rm -f conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305
14306echo "$as_me:$LINENO: checking for sysctl" >&5
14307echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
14308cat >conftest.$ac_ext <<_ACEOF
14309/* confdefs.h. */
14310_ACEOF
14311cat confdefs.h >>conftest.$ac_ext
14312cat >>conftest.$ac_ext <<_ACEOF
14313/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014314#include <sys/types.h>
14315#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014316int
14317main ()
14318{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014319 int mib[2], r;
14320 size_t len;
14321
14322 mib[0] = CTL_HW;
14323 mib[1] = HW_USERMEM;
14324 len = sizeof(r);
14325 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014326
14327 ;
14328 return 0;
14329}
14330_ACEOF
14331rm -f conftest.$ac_objext
14332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14333 (eval $ac_compile) 2>conftest.er1
14334 ac_status=$?
14335 grep -v '^ *+' conftest.er1 >conftest.err
14336 rm -f conftest.er1
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } &&
14340 { ac_try='test -z "$ac_c_werror_flag"
14341 || test ! -s conftest.err'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } &&
14347 { ac_try='test -s conftest.$ac_objext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 echo "$as_me:$LINENO: result: yes" >&5
14354echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014355#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014356_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014357
14358else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014359 echo "$as_me: failed program was:" >&5
14360sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014361
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014362echo "$as_me:$LINENO: result: not usable" >&5
14363echo "${ECHO_T}not usable" >&6
14364fi
14365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14366
14367echo "$as_me:$LINENO: checking for sysinfo" >&5
14368echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
14369cat >conftest.$ac_ext <<_ACEOF
14370/* confdefs.h. */
14371_ACEOF
14372cat confdefs.h >>conftest.$ac_ext
14373cat >>conftest.$ac_ext <<_ACEOF
14374/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014375#include <sys/types.h>
14376#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014377int
14378main ()
14379{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014380 struct sysinfo sinfo;
14381 int t;
14382
14383 (void)sysinfo(&sinfo);
14384 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014385
14386 ;
14387 return 0;
14388}
14389_ACEOF
14390rm -f conftest.$ac_objext
14391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14392 (eval $ac_compile) 2>conftest.er1
14393 ac_status=$?
14394 grep -v '^ *+' conftest.er1 >conftest.err
14395 rm -f conftest.er1
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
14399 { ac_try='test -z "$ac_c_werror_flag"
14400 || test ! -s conftest.err'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; } &&
14406 { ac_try='test -s conftest.$ac_objext'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412 echo "$as_me:$LINENO: result: yes" >&5
14413echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014414#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014415_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014416
14417else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014418 echo "$as_me: failed program was:" >&5
14419sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014420
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014421echo "$as_me:$LINENO: result: not usable" >&5
14422echo "${ECHO_T}not usable" >&6
14423fi
14424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14425
14426echo "$as_me:$LINENO: checking for sysconf" >&5
14427echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
14428cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h. */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014434#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014435int
14436main ()
14437{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014438 (void)sysconf(_SC_PAGESIZE);
14439 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014440
14441 ;
14442 return 0;
14443}
14444_ACEOF
14445rm -f conftest.$ac_objext
14446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447 (eval $ac_compile) 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -z "$ac_c_werror_flag"
14455 || test ! -s conftest.err'
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } &&
14461 { ac_try='test -s conftest.$ac_objext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 echo "$as_me:$LINENO: result: yes" >&5
14468echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014469#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014470_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014471
14472else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014473 echo "$as_me: failed program was:" >&5
14474sed 's/^/| /' conftest.$ac_ext >&5
14475
14476echo "$as_me:$LINENO: result: not usable" >&5
14477echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014478fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014480
14481
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014482echo "$as_me:$LINENO: checking size of int" >&5
14483echo $ECHO_N "checking size of int... $ECHO_C" >&6
14484if test "${ac_cv_sizeof_int+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014486else
14487 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014488 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14489echo "$as_me: error: failed to compile test program" >&2;}
14490 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000014491else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014492 cat >conftest.$ac_ext <<_ACEOF
14493/* confdefs.h. */
14494_ACEOF
14495cat confdefs.h >>conftest.$ac_ext
14496cat >>conftest.$ac_ext <<_ACEOF
14497/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014498#include <stdio.h>
14499 main()
14500 {
14501 FILE *f=fopen("conftestval", "w");
14502 if (!f) exit(1);
14503 fprintf(f, "%d\n", (int)sizeof(int));
14504 exit(0);
14505 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014506_ACEOF
14507rm -f conftest$ac_exeext
14508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14509 (eval $ac_link) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014518 ac_cv_sizeof_int=`cat conftestval`
14519else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014520 echo "$as_me: program exited with status $ac_status" >&5
14521echo "$as_me: failed program was:" >&5
14522sed 's/^/| /' conftest.$ac_ext >&5
14523
14524( exit $ac_status )
14525ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000014526fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14528fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014529fi
14530
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014531echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14532echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14533cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014534#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014535_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014536
14537
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014538echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
14539echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014540bcopy_test_prog='
14541main() {
14542 char buf[10];
14543 strcpy(buf, "abcdefghi");
14544 mch_memmove(buf, buf + 2, 3);
14545 if (strncmp(buf, "ababcf", 6))
14546 exit(1);
14547 strcpy(buf, "abcdefghi");
14548 mch_memmove(buf + 2, buf, 3);
14549 if (strncmp(buf, "cdedef", 6))
14550 exit(1);
14551 exit(0); /* libc version works properly. */
14552}'
14553
14554
14555if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014556 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14557echo "$as_me: error: failed to compile test program" >&2;}
14558 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000014559else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014560 cat >conftest.$ac_ext <<_ACEOF
14561/* confdefs.h. */
14562_ACEOF
14563cat confdefs.h >>conftest.$ac_ext
14564cat >>conftest.$ac_ext <<_ACEOF
14565/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014566#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014567_ACEOF
14568rm -f conftest$ac_exeext
14569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14570 (eval $ac_link) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014580#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014581_ACEOF
14582 echo "$as_me:$LINENO: result: memmove does" >&5
14583echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014584else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014585 echo "$as_me: program exited with status $ac_status" >&5
14586echo "$as_me: failed program was:" >&5
14587sed 's/^/| /' conftest.$ac_ext >&5
14588
14589( exit $ac_status )
14590if test "$cross_compiling" = yes; then
14591 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14592echo "$as_me: error: failed to compile test program" >&2;}
14593 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000014594else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014595 cat >conftest.$ac_ext <<_ACEOF
14596/* confdefs.h. */
14597_ACEOF
14598cat confdefs.h >>conftest.$ac_ext
14599cat >>conftest.$ac_ext <<_ACEOF
14600/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014601#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014602_ACEOF
14603rm -f conftest$ac_exeext
14604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14605 (eval $ac_link) 2>&5
14606 ac_status=$?
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }; then
14614 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014615#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014616_ACEOF
14617 echo "$as_me:$LINENO: result: bcopy does" >&5
14618echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014619else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014620 echo "$as_me: program exited with status $ac_status" >&5
14621echo "$as_me: failed program was:" >&5
14622sed 's/^/| /' conftest.$ac_ext >&5
14623
14624( exit $ac_status )
14625if test "$cross_compiling" = yes; then
14626 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14627echo "$as_me: error: failed to compile test program" >&2;}
14628 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000014629else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014630 cat >conftest.$ac_ext <<_ACEOF
14631/* confdefs.h. */
14632_ACEOF
14633cat confdefs.h >>conftest.$ac_ext
14634cat >>conftest.$ac_ext <<_ACEOF
14635/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014636#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014637_ACEOF
14638rm -f conftest$ac_exeext
14639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640 (eval $ac_link) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014650#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014651_ACEOF
14652 echo "$as_me:$LINENO: result: memcpy does" >&5
14653echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014654else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014655 echo "$as_me: program exited with status $ac_status" >&5
14656echo "$as_me: failed program was:" >&5
14657sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014658
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014659( exit $ac_status )
14660echo "$as_me:$LINENO: result: no" >&5
14661echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014662fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014664fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014665fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014666rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014667fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014668fi
14669rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14670fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014671
14672
14673if test "$enable_multibyte" = "yes"; then
14674 cflags_save=$CFLAGS
14675 ldflags_save=$LDFLAGS
14676 if test -n "$x_includes" ; then
14677 CFLAGS="$CFLAGS -I$x_includes"
14678 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014679 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
14680echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
14681 cat >conftest.$ac_ext <<_ACEOF
14682/* confdefs.h. */
14683_ACEOF
14684cat confdefs.h >>conftest.$ac_ext
14685cat >>conftest.$ac_ext <<_ACEOF
14686/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014687#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014688int
14689main ()
14690{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014691
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014692 ;
14693 return 0;
14694}
14695_ACEOF
14696rm -f conftest.$ac_objext
14697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14698 (eval $ac_compile) 2>conftest.er1
14699 ac_status=$?
14700 grep -v '^ *+' conftest.er1 >conftest.err
14701 rm -f conftest.er1
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -z "$ac_c_werror_flag"
14706 || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest.$ac_objext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 cat >conftest.$ac_ext <<_ACEOF
14719/* confdefs.h. */
14720_ACEOF
14721cat confdefs.h >>conftest.$ac_ext
14722cat >>conftest.$ac_ext <<_ACEOF
14723/* end confdefs.h. */
14724
Bram Moolenaar071d4272004-06-13 20:20:40 +000014725/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014726#ifdef __cplusplus
14727extern "C"
14728#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014729/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014730 builtin and then its argument prototype would still apply. */
14731char _Xsetlocale ();
14732int
14733main ()
14734{
14735_Xsetlocale ();
14736 ;
14737 return 0;
14738}
14739_ACEOF
14740rm -f conftest.$ac_objext conftest$ac_exeext
14741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>conftest.er1
14743 ac_status=$?
14744 grep -v '^ *+' conftest.er1 >conftest.err
14745 rm -f conftest.er1
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -z "$ac_c_werror_flag"
14750 || test ! -s conftest.err'
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest$ac_exeext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 echo "$as_me:$LINENO: result: yes" >&5
14763echo "${ECHO_T}yes" >&6
14764 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014765#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014766_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014767
14768else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014769 echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
14772echo "$as_me:$LINENO: result: no" >&5
14773echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014774fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014775rm -f conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014777else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014778 echo "$as_me: failed program was:" >&5
14779sed 's/^/| /' conftest.$ac_ext >&5
14780
14781echo "$as_me:$LINENO: result: no" >&5
14782echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014783fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014785 fi
14786 CFLAGS=$cflags_save
14787 LDFLAGS=$ldflags_save
14788fi
14789
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014790echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14791echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14792if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014794else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014795 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014796LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014797cat >conftest.$ac_ext <<_ACEOF
14798/* confdefs.h. */
14799_ACEOF
14800cat confdefs.h >>conftest.$ac_ext
14801cat >>conftest.$ac_ext <<_ACEOF
14802/* end confdefs.h. */
14803
Bram Moolenaar071d4272004-06-13 20:20:40 +000014804/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014805#ifdef __cplusplus
14806extern "C"
14807#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014808/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014809 builtin and then its argument prototype would still apply. */
14810char _xpg4_setrunelocale ();
14811int
14812main ()
14813{
14814_xpg4_setrunelocale ();
14815 ;
14816 return 0;
14817}
14818_ACEOF
14819rm -f conftest.$ac_objext conftest$ac_exeext
14820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14821 (eval $ac_link) 2>conftest.er1
14822 ac_status=$?
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -z "$ac_c_werror_flag"
14829 || test ! -s conftest.err'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try='test -s conftest$ac_exeext'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014842else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014843 echo "$as_me: failed program was:" >&5
14844sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014845
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014846ac_cv_lib_xpg4__xpg4_setrunelocale=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014847fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014848rm -f conftest.err conftest.$ac_objext \
14849 conftest$ac_exeext conftest.$ac_ext
14850LIBS=$ac_check_lib_save_LIBS
14851fi
14852echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14853echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14854if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014855 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014856fi
14857
14858
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014859echo "$as_me:$LINENO: checking how to create tags" >&5
14860echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014861test -f tags && mv tags tags.save
14862if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
Bram Moolenaar78984f52005-08-01 07:19:10 +000014863 TAGPRG="ctags -I INIT+"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014864else
14865 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14866 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14867 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14868 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14869 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14870 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14871 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14872fi
14873test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014874echo "$as_me:$LINENO: result: $TAGPRG" >&5
14875echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014876
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014877echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14878echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014879MANDEF="man"
14880(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014881echo "$as_me:$LINENO: result: $MANDEF" >&5
14882echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014883if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014884 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014885#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014886_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014887
14888fi
14889
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014890echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14891echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014892# Check whether --enable-nls or --disable-nls was given.
14893if test "${enable_nls+set}" = set; then
14894 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014895
Bram Moolenaar071d4272004-06-13 20:20:40 +000014896else
14897 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014898fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014899
14900if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014901 echo "$as_me:$LINENO: result: no" >&5
14902echo "${ECHO_T}no" >&6
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000014903
14904 INSTALL_LANGS=install-languages
14905
14906 INSTALL_TOOL_LANGS=install-tool-languages
14907
14908
Bram Moolenaar071d4272004-06-13 20:20:40 +000014909 # Extract the first word of "msgfmt", so it can be a program name with args.
14910set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014911echo "$as_me:$LINENO: checking for $ac_word" >&5
14912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14913if test "${ac_cv_prog_MSGFMT+set}" = set; then
14914 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014915else
14916 if test -n "$MSGFMT"; then
14917 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14918else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14920for as_dir in $PATH
14921do
14922 IFS=$as_save_IFS
14923 test -z "$as_dir" && as_dir=.
14924 for ac_exec_ext in '' $ac_executable_extensions; do
14925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14926 ac_cv_prog_MSGFMT="msgfmt"
14927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14928 break 2
14929 fi
14930done
14931done
14932
Bram Moolenaar071d4272004-06-13 20:20:40 +000014933fi
14934fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014935MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000014936if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014937 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14938echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014939else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014940 echo "$as_me:$LINENO: result: no" >&5
14941echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014942fi
14943
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014944 echo "$as_me:$LINENO: checking for NLS" >&5
14945echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014946 if test -f po/Makefile; then
14947 have_gettext="no"
14948 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014949 cat >conftest.$ac_ext <<_ACEOF
14950/* confdefs.h. */
14951_ACEOF
14952cat confdefs.h >>conftest.$ac_ext
14953cat >>conftest.$ac_ext <<_ACEOF
14954/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014955#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014956int
14957main ()
14958{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014959gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014960 ;
14961 return 0;
14962}
14963_ACEOF
14964rm -f conftest.$ac_objext conftest$ac_exeext
14965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
14973 { ac_try='test -z "$ac_c_werror_flag"
14974 || test ! -s conftest.err'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; } &&
14980 { ac_try='test -s conftest$ac_exeext'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; }; then
14986 echo "$as_me:$LINENO: result: gettext() works" >&5
14987echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014988else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014989 echo "$as_me: failed program was:" >&5
14990sed 's/^/| /' conftest.$ac_ext >&5
14991
14992olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014993 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014994 cat >conftest.$ac_ext <<_ACEOF
14995/* confdefs.h. */
14996_ACEOF
14997cat confdefs.h >>conftest.$ac_ext
14998cat >>conftest.$ac_ext <<_ACEOF
14999/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015000#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015001int
15002main ()
15003{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015004gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015005 ;
15006 return 0;
15007}
15008_ACEOF
15009rm -f conftest.$ac_objext conftest$ac_exeext
15010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15011 (eval $ac_link) 2>conftest.er1
15012 ac_status=$?
15013 grep -v '^ *+' conftest.er1 >conftest.err
15014 rm -f conftest.er1
15015 cat conftest.err >&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } &&
15018 { ac_try='test -z "$ac_c_werror_flag"
15019 || test ! -s conftest.err'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; } &&
15025 { ac_try='test -s conftest$ac_exeext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15032echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000015033else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015034 echo "$as_me: failed program was:" >&5
15035sed 's/^/| /' conftest.$ac_ext >&5
15036
15037echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15038echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015039 LIBS=$olibs
15040fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015041rm -f conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015043fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015044rm -f conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015046 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015047 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15048echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015049 fi
15050 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015051 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015052#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015053_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015054
15055 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015056
15057
15058for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000015059do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15061echo "$as_me:$LINENO: checking for $ac_func" >&5
15062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15063if eval "test \"\${$as_ac_var+set}\" = set"; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015065else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015066 cat >conftest.$ac_ext <<_ACEOF
15067/* confdefs.h. */
15068_ACEOF
15069cat confdefs.h >>conftest.$ac_ext
15070cat >>conftest.$ac_ext <<_ACEOF
15071/* end confdefs.h. */
15072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15074#define $ac_func innocuous_$ac_func
15075
Bram Moolenaar071d4272004-06-13 20:20:40 +000015076/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015077 which can conflict with char $ac_func (); below.
15078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15079 <limits.h> exists even on freestanding compilers. */
15080
15081#ifdef __STDC__
15082# include <limits.h>
15083#else
15084# include <assert.h>
15085#endif
15086
15087#undef $ac_func
15088
Bram Moolenaar071d4272004-06-13 20:20:40 +000015089/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015090#ifdef __cplusplus
15091extern "C"
15092{
15093#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000015094/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015095 builtin and then its argument prototype would still apply. */
15096char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000015097/* The GNU C library defines this for functions which it implements
15098 to always fail with ENOSYS. Some functions are actually named
15099 something starting with __ and the normal name is an alias. */
15100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15101choke me
15102#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015103char (*f) () = $ac_func;
15104#endif
15105#ifdef __cplusplus
15106}
Bram Moolenaar071d4272004-06-13 20:20:40 +000015107#endif
15108
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015109int
15110main ()
15111{
15112return f != $ac_func;
15113 ;
15114 return 0;
15115}
15116_ACEOF
15117rm -f conftest.$ac_objext conftest$ac_exeext
15118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15119 (eval $ac_link) 2>conftest.er1
15120 ac_status=$?
15121 grep -v '^ *+' conftest.er1 >conftest.err
15122 rm -f conftest.er1
15123 cat conftest.err >&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } &&
15126 { ac_try='test -z "$ac_c_werror_flag"
15127 || test ! -s conftest.err'
15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129 (eval $ac_try) 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; } &&
15133 { ac_try='test -s conftest$ac_exeext'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000015140else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015141 echo "$as_me: failed program was:" >&5
15142sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000015143
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015144eval "$as_ac_var=no"
15145fi
15146rm -f conftest.err conftest.$ac_objext \
15147 conftest$ac_exeext conftest.$ac_ext
15148fi
15149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15150echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15151if test `eval echo '${'$as_ac_var'}'` = yes; then
15152 cat >>confdefs.h <<_ACEOF
15153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15154_ACEOF
15155
Bram Moolenaar071d4272004-06-13 20:20:40 +000015156fi
15157done
15158
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015159 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15160echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
15161 cat >conftest.$ac_ext <<_ACEOF
15162/* confdefs.h. */
15163_ACEOF
15164cat confdefs.h >>conftest.$ac_ext
15165cat >>conftest.$ac_ext <<_ACEOF
15166/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015167#include <libintl.h>
15168 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015169int
15170main ()
15171{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015172++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015173 ;
15174 return 0;
15175}
15176_ACEOF
15177rm -f conftest.$ac_objext conftest$ac_exeext
15178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15179 (eval $ac_link) 2>conftest.er1
15180 ac_status=$?
15181 grep -v '^ *+' conftest.er1 >conftest.err
15182 rm -f conftest.er1
15183 cat conftest.err >&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); } &&
15186 { ac_try='test -z "$ac_c_werror_flag"
15187 || test ! -s conftest.err'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; } &&
15193 { ac_try='test -s conftest$ac_exeext'
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; }; then
15199 echo "$as_me:$LINENO: result: yes" >&5
15200echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015201#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015202_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015203
15204else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015205 echo "$as_me: failed program was:" >&5
15206sed 's/^/| /' conftest.$ac_ext >&5
15207
15208echo "$as_me:$LINENO: result: no" >&5
15209echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015210fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015211rm -f conftest.err conftest.$ac_objext \
15212 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015213 fi
15214 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015215 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15216echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015217 fi
15218else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015219 echo "$as_me:$LINENO: result: yes" >&5
15220echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015221fi
15222
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015223if test "${ac_cv_header_dlfcn_h+set}" = set; then
15224 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15225echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
15226if test "${ac_cv_header_dlfcn_h+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15228fi
15229echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15230echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015231else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015232 # Is the header compilable?
15233echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
15234echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
15235cat >conftest.$ac_ext <<_ACEOF
15236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
15240/* end confdefs.h. */
15241$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000015242#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015243_ACEOF
15244rm -f conftest.$ac_objext
15245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246 (eval $ac_compile) 2>conftest.er1
15247 ac_status=$?
15248 grep -v '^ *+' conftest.er1 >conftest.err
15249 rm -f conftest.er1
15250 cat conftest.err >&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } &&
15253 { ac_try='test -z "$ac_c_werror_flag"
15254 || test ! -s conftest.err'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; } &&
15260 { ac_try='test -s conftest.$ac_objext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000015267else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015268 echo "$as_me: failed program was:" >&5
15269sed 's/^/| /' conftest.$ac_ext >&5
15270
15271ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015272fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15274echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15275echo "${ECHO_T}$ac_header_compiler" >&6
15276
15277# Is the header present?
15278echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
15279echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
15280cat >conftest.$ac_ext <<_ACEOF
15281/* confdefs.h. */
15282_ACEOF
15283cat confdefs.h >>conftest.$ac_ext
15284cat >>conftest.$ac_ext <<_ACEOF
15285/* end confdefs.h. */
15286#include <dlfcn.h>
15287_ACEOF
15288if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15290 ac_status=$?
15291 grep -v '^ *+' conftest.er1 >conftest.err
15292 rm -f conftest.er1
15293 cat conftest.err >&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } >/dev/null; then
15296 if test -s conftest.err; then
15297 ac_cpp_err=$ac_c_preproc_warn_flag
15298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15299 else
15300 ac_cpp_err=
15301 fi
15302else
15303 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000015304fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015305if test -z "$ac_cpp_err"; then
15306 ac_header_preproc=yes
15307else
15308 echo "$as_me: failed program was:" >&5
15309sed 's/^/| /' conftest.$ac_ext >&5
15310
15311 ac_header_preproc=no
15312fi
15313rm -f conftest.err conftest.$ac_ext
15314echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15315echo "${ECHO_T}$ac_header_preproc" >&6
15316
15317# So? What about this header?
15318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15319 yes:no: )
15320 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
15321echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
15323echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
15324 ac_header_preproc=yes
15325 ;;
15326 no:yes:* )
15327 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
15328echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
15330echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
15331 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
15332echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
15334echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
15335 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
15336echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
15338echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
15339 (
15340 cat <<\_ASBOX
15341## ------------------------------------------ ##
15342## Report this to the AC_PACKAGE_NAME lists. ##
15343## ------------------------------------------ ##
15344_ASBOX
15345 ) |
15346 sed "s/^/$as_me: WARNING: /" >&2
15347 ;;
15348esac
15349echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15350echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
15351if test "${ac_cv_header_dlfcn_h+set}" = set; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15353else
15354 ac_cv_header_dlfcn_h=$ac_header_preproc
15355fi
15356echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15357echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
15358
15359fi
15360if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000015361 DLL=dlfcn.h
15362else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015363 if test "${ac_cv_header_dl_h+set}" = set; then
15364 echo "$as_me:$LINENO: checking for dl.h" >&5
15365echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
15366if test "${ac_cv_header_dl_h+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368fi
15369echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15370echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015371else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015372 # Is the header compilable?
15373echo "$as_me:$LINENO: checking dl.h usability" >&5
15374echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
15375cat >conftest.$ac_ext <<_ACEOF
15376/* confdefs.h. */
15377_ACEOF
15378cat confdefs.h >>conftest.$ac_ext
15379cat >>conftest.$ac_ext <<_ACEOF
15380/* end confdefs.h. */
15381$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000015382#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015383_ACEOF
15384rm -f conftest.$ac_objext
15385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>conftest.er1
15387 ac_status=$?
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try='test -z "$ac_c_werror_flag"
15394 || test ! -s conftest.err'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000015407else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015408 echo "$as_me: failed program was:" >&5
15409sed 's/^/| /' conftest.$ac_ext >&5
15410
15411ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015412fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15414echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15415echo "${ECHO_T}$ac_header_compiler" >&6
15416
15417# Is the header present?
15418echo "$as_me:$LINENO: checking dl.h presence" >&5
15419echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
15420cat >conftest.$ac_ext <<_ACEOF
15421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
15425/* end confdefs.h. */
15426#include <dl.h>
15427_ACEOF
15428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15430 ac_status=$?
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -f conftest.er1
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } >/dev/null; then
15436 if test -s conftest.err; then
15437 ac_cpp_err=$ac_c_preproc_warn_flag
15438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15439 else
15440 ac_cpp_err=
15441 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015442else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015443 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000015444fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015445if test -z "$ac_cpp_err"; then
15446 ac_header_preproc=yes
15447else
15448 echo "$as_me: failed program was:" >&5
15449sed 's/^/| /' conftest.$ac_ext >&5
15450
15451 ac_header_preproc=no
15452fi
15453rm -f conftest.err conftest.$ac_ext
15454echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15455echo "${ECHO_T}$ac_header_preproc" >&6
15456
15457# So? What about this header?
15458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15459 yes:no: )
15460 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15461echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
15463echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
15464 ac_header_preproc=yes
15465 ;;
15466 no:yes:* )
15467 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
15468echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
15470echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
15471 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
15472echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
15474echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
15476echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
15478echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
15479 (
15480 cat <<\_ASBOX
15481## ------------------------------------------ ##
15482## Report this to the AC_PACKAGE_NAME lists. ##
15483## ------------------------------------------ ##
15484_ASBOX
15485 ) |
15486 sed "s/^/$as_me: WARNING: /" >&2
15487 ;;
15488esac
15489echo "$as_me:$LINENO: checking for dl.h" >&5
15490echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
15491if test "${ac_cv_header_dl_h+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493else
15494 ac_cv_header_dl_h=$ac_header_preproc
15495fi
15496echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15497echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015498
15499fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015500if test $ac_cv_header_dl_h = yes; then
15501 DLL=dl.h
15502fi
15503
15504
15505fi
15506
Bram Moolenaar071d4272004-06-13 20:20:40 +000015507
15508if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015509
15510cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015511#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015512_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015513
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015514 echo "$as_me:$LINENO: checking for dlopen()" >&5
15515echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
15516 cat >conftest.$ac_ext <<_ACEOF
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015522
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015523int
15524main ()
15525{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015526
15527 extern void* dlopen();
15528 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015529
15530 ;
15531 return 0;
15532}
15533_ACEOF
15534rm -f conftest.$ac_objext conftest$ac_exeext
15535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15536 (eval $ac_link) 2>conftest.er1
15537 ac_status=$?
15538 grep -v '^ *+' conftest.er1 >conftest.err
15539 rm -f conftest.er1
15540 cat conftest.err >&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } &&
15543 { ac_try='test -z "$ac_c_werror_flag"
15544 || test ! -s conftest.err'
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest$ac_exeext'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 echo "$as_me:$LINENO: result: yes" >&5
15557echo "${ECHO_T}yes" >&6;
15558
15559cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015560#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015561_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015562
15563else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015564 echo "$as_me: failed program was:" >&5
15565sed 's/^/| /' conftest.$ac_ext >&5
15566
15567echo "$as_me:$LINENO: result: no" >&5
15568echo "${ECHO_T}no" >&6;
15569 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
15570echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015571 olibs=$LIBS
15572 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015573 cat >conftest.$ac_ext <<_ACEOF
15574/* confdefs.h. */
15575_ACEOF
15576cat confdefs.h >>conftest.$ac_ext
15577cat >>conftest.$ac_ext <<_ACEOF
15578/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015579
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015580int
15581main ()
15582{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015583
15584 extern void* dlopen();
15585 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015586
15587 ;
15588 return 0;
15589}
15590_ACEOF
15591rm -f conftest.$ac_objext conftest$ac_exeext
15592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15593 (eval $ac_link) 2>conftest.er1
15594 ac_status=$?
15595 grep -v '^ *+' conftest.er1 >conftest.err
15596 rm -f conftest.er1
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } &&
15600 { ac_try='test -z "$ac_c_werror_flag"
15601 || test ! -s conftest.err'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; } &&
15607 { ac_try='test -s conftest$ac_exeext'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 echo "$as_me:$LINENO: result: yes" >&5
15614echo "${ECHO_T}yes" >&6;
15615
15616cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015617#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015618_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015619
15620else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015621 echo "$as_me: failed program was:" >&5
15622sed 's/^/| /' conftest.$ac_ext >&5
15623
15624echo "$as_me:$LINENO: result: no" >&5
15625echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015626 LIBS=$olibs
15627fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015628rm -f conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015630fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015631rm -f conftest.err conftest.$ac_objext \
15632 conftest$ac_exeext conftest.$ac_ext
15633 echo "$as_me:$LINENO: checking for dlsym()" >&5
15634echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
15635 cat >conftest.$ac_ext <<_ACEOF
15636/* confdefs.h. */
15637_ACEOF
15638cat confdefs.h >>conftest.$ac_ext
15639cat >>conftest.$ac_ext <<_ACEOF
15640/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015641
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015642int
15643main ()
15644{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015645
15646 extern void* dlsym();
15647 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015648
15649 ;
15650 return 0;
15651}
15652_ACEOF
15653rm -f conftest.$ac_objext conftest$ac_exeext
15654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15655 (eval $ac_link) 2>conftest.er1
15656 ac_status=$?
15657 grep -v '^ *+' conftest.er1 >conftest.err
15658 rm -f conftest.er1
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } &&
15662 { ac_try='test -z "$ac_c_werror_flag"
15663 || test ! -s conftest.err'
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15666 ac_status=$?
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; } &&
15669 { ac_try='test -s conftest$ac_exeext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 echo "$as_me:$LINENO: result: yes" >&5
15676echo "${ECHO_T}yes" >&6;
15677
15678cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015679#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015680_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015681
15682else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015683 echo "$as_me: failed program was:" >&5
15684sed 's/^/| /' conftest.$ac_ext >&5
15685
15686echo "$as_me:$LINENO: result: no" >&5
15687echo "${ECHO_T}no" >&6;
15688 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
15689echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015690 olibs=$LIBS
15691 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015692 cat >conftest.$ac_ext <<_ACEOF
15693/* confdefs.h. */
15694_ACEOF
15695cat confdefs.h >>conftest.$ac_ext
15696cat >>conftest.$ac_ext <<_ACEOF
15697/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015698
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015699int
15700main ()
15701{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015702
15703 extern void* dlsym();
15704 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015705
15706 ;
15707 return 0;
15708}
15709_ACEOF
15710rm -f conftest.$ac_objext conftest$ac_exeext
15711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15712 (eval $ac_link) 2>conftest.er1
15713 ac_status=$?
15714 grep -v '^ *+' conftest.er1 >conftest.err
15715 rm -f conftest.er1
15716 cat conftest.err >&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -z "$ac_c_werror_flag"
15720 || test ! -s conftest.err'
15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; } &&
15726 { ac_try='test -s conftest$ac_exeext'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
15732 echo "$as_me:$LINENO: result: yes" >&5
15733echo "${ECHO_T}yes" >&6;
15734
15735cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015736#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015737_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015738
15739else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015740 echo "$as_me: failed program was:" >&5
15741sed 's/^/| /' conftest.$ac_ext >&5
15742
15743echo "$as_me:$LINENO: result: no" >&5
15744echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015745 LIBS=$olibs
15746fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015747rm -f conftest.err conftest.$ac_objext \
15748 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015749fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015750rm -f conftest.err conftest.$ac_objext \
15751 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015752elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015753
15754cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015755#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015756_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015757
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015758 echo "$as_me:$LINENO: checking for shl_load()" >&5
15759echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15760 cat >conftest.$ac_ext <<_ACEOF
15761/* confdefs.h. */
15762_ACEOF
15763cat confdefs.h >>conftest.$ac_ext
15764cat >>conftest.$ac_ext <<_ACEOF
15765/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015766
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015767int
15768main ()
15769{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015770
15771 extern void* shl_load();
15772 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015773
15774 ;
15775 return 0;
15776}
15777_ACEOF
15778rm -f conftest.$ac_objext conftest$ac_exeext
15779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15780 (eval $ac_link) 2>conftest.er1
15781 ac_status=$?
15782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } &&
15787 { ac_try='test -z "$ac_c_werror_flag"
15788 || test ! -s conftest.err'
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; } &&
15794 { ac_try='test -s conftest$ac_exeext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 echo "$as_me:$LINENO: result: yes" >&5
15801echo "${ECHO_T}yes" >&6;
15802
15803cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015804#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015805_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015806
15807else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015808 echo "$as_me: failed program was:" >&5
15809sed 's/^/| /' conftest.$ac_ext >&5
15810
15811echo "$as_me:$LINENO: result: no" >&5
15812echo "${ECHO_T}no" >&6;
15813 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15814echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015815 olibs=$LIBS
15816 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015817 cat >conftest.$ac_ext <<_ACEOF
15818/* confdefs.h. */
15819_ACEOF
15820cat confdefs.h >>conftest.$ac_ext
15821cat >>conftest.$ac_ext <<_ACEOF
15822/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015823
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015824int
15825main ()
15826{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015827
15828 extern void* shl_load();
15829 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015830
15831 ;
15832 return 0;
15833}
15834_ACEOF
15835rm -f conftest.$ac_objext conftest$ac_exeext
15836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15837 (eval $ac_link) 2>conftest.er1
15838 ac_status=$?
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
15844 { ac_try='test -z "$ac_c_werror_flag"
15845 || test ! -s conftest.err'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest$ac_exeext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15857 echo "$as_me:$LINENO: result: yes" >&5
15858echo "${ECHO_T}yes" >&6;
15859
15860cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015861#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015862_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015863
15864else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015865 echo "$as_me: failed program was:" >&5
15866sed 's/^/| /' conftest.$ac_ext >&5
15867
15868echo "$as_me:$LINENO: result: no" >&5
15869echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015870 LIBS=$olibs
15871fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015872rm -f conftest.err conftest.$ac_objext \
15873 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015874fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015875rm -f conftest.err conftest.$ac_objext \
15876 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015877fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015878
15879for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000015880do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15882if eval "test \"\${$as_ac_Header+set}\" = set"; then
15883 echo "$as_me:$LINENO: checking for $ac_header" >&5
15884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15885if eval "test \"\${$as_ac_Header+set}\" = set"; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015887fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015890else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015891 # Is the header compilable?
15892echo "$as_me:$LINENO: checking $ac_header usability" >&5
15893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15894cat >conftest.$ac_ext <<_ACEOF
15895/* confdefs.h. */
15896_ACEOF
15897cat confdefs.h >>conftest.$ac_ext
15898cat >>conftest.$ac_ext <<_ACEOF
15899/* end confdefs.h. */
15900$ac_includes_default
15901#include <$ac_header>
15902_ACEOF
15903rm -f conftest.$ac_objext
15904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15905 (eval $ac_compile) 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
15912 { ac_try='test -z "$ac_c_werror_flag"
15913 || test ! -s conftest.err'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; } &&
15919 { ac_try='test -s conftest.$ac_objext'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 ac_header_compiler=yes
15926else
15927 echo "$as_me: failed program was:" >&5
15928sed 's/^/| /' conftest.$ac_ext >&5
15929
15930ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015931fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15933echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15934echo "${ECHO_T}$ac_header_compiler" >&6
15935
15936# Is the header present?
15937echo "$as_me:$LINENO: checking $ac_header presence" >&5
15938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15939cat >conftest.$ac_ext <<_ACEOF
15940/* confdefs.h. */
15941_ACEOF
15942cat confdefs.h >>conftest.$ac_ext
15943cat >>conftest.$ac_ext <<_ACEOF
15944/* end confdefs.h. */
15945#include <$ac_header>
15946_ACEOF
15947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } >/dev/null; then
15955 if test -s conftest.err; then
15956 ac_cpp_err=$ac_c_preproc_warn_flag
15957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15958 else
15959 ac_cpp_err=
15960 fi
15961else
15962 ac_cpp_err=yes
15963fi
15964if test -z "$ac_cpp_err"; then
15965 ac_header_preproc=yes
15966else
15967 echo "$as_me: failed program was:" >&5
15968sed 's/^/| /' conftest.$ac_ext >&5
15969
15970 ac_header_preproc=no
15971fi
15972rm -f conftest.err conftest.$ac_ext
15973echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15974echo "${ECHO_T}$ac_header_preproc" >&6
15975
15976# So? What about this header?
15977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15978 yes:no: )
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15980echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15982echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15983 ac_header_preproc=yes
15984 ;;
15985 no:yes:* )
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15987echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15989echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15991echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15993echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15995echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15997echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15998 (
15999 cat <<\_ASBOX
16000## ------------------------------------------ ##
16001## Report this to the AC_PACKAGE_NAME lists. ##
16002## ------------------------------------------ ##
16003_ASBOX
16004 ) |
16005 sed "s/^/$as_me: WARNING: /" >&2
16006 ;;
16007esac
16008echo "$as_me:$LINENO: checking for $ac_header" >&5
16009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16010if eval "test \"\${$as_ac_Header+set}\" = set"; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16012else
16013 eval "$as_ac_Header=\$ac_header_preproc"
16014fi
16015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16017
16018fi
16019if test `eval echo '${'$as_ac_Header'}'` = yes; then
16020 cat >>confdefs.h <<_ACEOF
16021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16022_ACEOF
16023
16024fi
16025
Bram Moolenaar071d4272004-06-13 20:20:40 +000016026done
16027
16028
16029if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16030 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16031 LIBS=`echo $LIBS | sed s/-ldl//`
16032 PERL_LIBS="$PERL_LIBS -ldl"
16033 fi
16034fi
16035
16036if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16037 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016038 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16039echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000016040 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
16041 || test "x$features" = "xhuge"; then
16042 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016043 echo "$as_me:$LINENO: result: yes" >&5
16044echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000016045 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016046 echo "$as_me:$LINENO: result: no" >&5
16047echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000016048 fi
16049fi
16050
Bram Moolenaara5792f52005-11-23 21:25:05 +000016051echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16052echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000016053DEPEND_CFLAGS_FILTER=
16054if test "$GCC" = yes; then
Bram Moolenaara5792f52005-11-23 21:25:05 +000016055 gccmajor=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([1-9]\)\.[0-9.]*.*$/\1/g'`
16056 if test "$gccmajor" > "2"; then
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000016057 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16058 fi
16059fi
Bram Moolenaara5792f52005-11-23 21:25:05 +000016060if test "$DEPEND_CFLAGS_FILTER" = ""; then
16061 echo "$as_me:$LINENO: result: no" >&5
16062echo "${ECHO_T}no" >&6
16063else
16064 echo "$as_me:$LINENO: result: yes" >&5
16065echo "${ECHO_T}yes" >&6
16066fi
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000016067
Bram Moolenaar071d4272004-06-13 20:20:40 +000016068
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016069 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16070cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016071# This file is a shell script that caches the results of configure
16072# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016073# scripts and configure runs, see configure's option --config-cache.
16074# It is not useful on other systems. If it contains results you don't
16075# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016076#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016077# config.status only pays attention to the cache file if you give it
16078# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016079#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016080# `ac_cv_env_foo' variables (set or unset) will be overridden when
16081# loading this file, other *unset* `ac_cv_foo' will be assigned the
16082# following values.
16083
16084_ACEOF
16085
Bram Moolenaar071d4272004-06-13 20:20:40 +000016086# The following way of writing the cache mishandles newlines in values,
16087# but we know of no workaround that is simple, portable, and efficient.
16088# So, don't put newlines in cache variables' values.
16089# Ultrix sh set writes to stderr and can't be redirected directly,
16090# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016091{
16092 (set) 2>&1 |
16093 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16094 *ac_space=\ *)
16095 # `set' does not quote correctly, so add quotes (double-quote
16096 # substitution turns \\\\ into \\, and sed turns \\ into \).
16097 sed -n \
16098 "s/'/'\\\\''/g;
16099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16100 ;;
16101 *)
16102 # `set' quotes correctly as required by POSIX, so do not add quotes.
16103 sed -n \
16104 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16105 ;;
16106 esac;
16107} |
16108 sed '
16109 t clear
16110 : clear
16111 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16112 t end
16113 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16114 : end' >>confcache
16115if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000016116 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016117 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16118 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000016119 else
16120 echo "not updating unwritable cache $cache_file"
16121 fi
16122fi
16123rm -f confcache
16124
Bram Moolenaar071d4272004-06-13 20:20:40 +000016125test "x$prefix" = xNONE && prefix=$ac_default_prefix
16126# Let make expand exec_prefix.
16127test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16128
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016129# VPATH may cause trouble with some makes, so we remove $(srcdir),
16130# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16131# trailing colons and then remove the whole line if VPATH becomes empty
16132# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000016133if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016134 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16135s/:*\$(srcdir):*/:/;
16136s/:*\${srcdir}:*/:/;
16137s/:*@srcdir@:*/:/;
16138s/^\([^=]*=[ ]*\):*/\1/;
16139s/:*$//;
16140s/^[^=]*=[ ]*$//;
16141}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016142fi
16143
Bram Moolenaar071d4272004-06-13 20:20:40 +000016144DEFS=-DHAVE_CONFIG_H
16145
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016146ac_libobjs=
16147ac_ltlibobjs=
16148for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16149 # 1. Remove the extension, and $U if already installed.
16150 ac_i=`echo "$ac_i" |
16151 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16152 # 2. Add them.
16153 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16154 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16155done
16156LIBOBJS=$ac_libobjs
16157
16158LTLIBOBJS=$ac_ltlibobjs
16159
16160
16161
Bram Moolenaar071d4272004-06-13 20:20:40 +000016162: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016163ac_clean_files_save=$ac_clean_files
16164ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16165{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16166echo "$as_me: creating $CONFIG_STATUS" >&6;}
16167cat >$CONFIG_STATUS <<_ACEOF
16168#! $SHELL
16169# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016170# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016171# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016172# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016173
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016174debug=false
16175ac_cs_recheck=false
16176ac_cs_silent=false
16177SHELL=\${CONFIG_SHELL-$SHELL}
16178_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016179
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016180cat >>$CONFIG_STATUS <<\_ACEOF
16181## --------------------- ##
16182## M4sh Initialization. ##
16183## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000016184
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016185# Be Bourne compatible
16186if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16187 emulate sh
16188 NULLCMD=:
16189 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16190 # is contrary to our usage. Disable this feature.
16191 alias -g '${1+"$@"}'='"$@"'
16192elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16193 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000016194fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016195DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000016196
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016197# Support unset when possible.
16198if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16199 as_unset=unset
16200else
16201 as_unset=false
16202fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016203
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016204
16205# Work around bugs in pre-3.0 UWIN ksh.
16206$as_unset ENV MAIL MAILPATH
16207PS1='$ '
16208PS2='> '
16209PS4='+ '
16210
16211# NLS nuisances.
16212for as_var in \
16213 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16214 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16215 LC_TELEPHONE LC_TIME
16216do
16217 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16218 eval $as_var=C; export $as_var
16219 else
16220 $as_unset $as_var
16221 fi
16222done
16223
16224# Required to use basename.
16225if expr a : '\(a\)' >/dev/null 2>&1; then
16226 as_expr=expr
16227else
16228 as_expr=false
16229fi
16230
16231if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16232 as_basename=basename
16233else
16234 as_basename=false
16235fi
16236
16237
16238# Name of the executable.
16239as_me=`$as_basename "$0" ||
16240$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16241 X"$0" : 'X\(//\)$' \| \
16242 X"$0" : 'X\(/\)$' \| \
16243 . : '\(.\)' 2>/dev/null ||
16244echo X/"$0" |
16245 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16246 /^X\/\(\/\/\)$/{ s//\1/; q; }
16247 /^X\/\(\/\).*/{ s//\1/; q; }
16248 s/.*/./; q'`
16249
16250
16251# PATH needs CR, and LINENO needs CR and PATH.
16252# Avoid depending upon Character Ranges.
16253as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16254as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16255as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16256as_cr_digits='0123456789'
16257as_cr_alnum=$as_cr_Letters$as_cr_digits
16258
16259# The user is always right.
16260if test "${PATH_SEPARATOR+set}" != set; then
16261 echo "#! /bin/sh" >conf$$.sh
16262 echo "exit 0" >>conf$$.sh
16263 chmod +x conf$$.sh
16264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16265 PATH_SEPARATOR=';'
16266 else
16267 PATH_SEPARATOR=:
16268 fi
16269 rm -f conf$$.sh
16270fi
16271
16272
16273 as_lineno_1=$LINENO
16274 as_lineno_2=$LINENO
16275 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16276 test "x$as_lineno_1" != "x$as_lineno_2" &&
16277 test "x$as_lineno_3" = "x$as_lineno_2" || {
16278 # Find who we are. Look in the path if we contain no path at all
16279 # relative or not.
16280 case $0 in
16281 *[\\/]* ) as_myself=$0 ;;
16282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16283for as_dir in $PATH
16284do
16285 IFS=$as_save_IFS
16286 test -z "$as_dir" && as_dir=.
16287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16288done
16289
16290 ;;
16291 esac
16292 # We did not find ourselves, most probably we were run as `sh COMMAND'
16293 # in which case we are not to be found in the path.
16294 if test "x$as_myself" = x; then
16295 as_myself=$0
16296 fi
16297 if test ! -f "$as_myself"; then
16298 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16299echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16300 { (exit 1); exit 1; }; }
16301 fi
16302 case $CONFIG_SHELL in
16303 '')
16304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16305for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16306do
16307 IFS=$as_save_IFS
16308 test -z "$as_dir" && as_dir=.
16309 for as_base in sh bash ksh sh5; do
16310 case $as_dir in
16311 /*)
16312 if ("$as_dir/$as_base" -c '
16313 as_lineno_1=$LINENO
16314 as_lineno_2=$LINENO
16315 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16316 test "x$as_lineno_1" != "x$as_lineno_2" &&
16317 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16318 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16319 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16320 CONFIG_SHELL=$as_dir/$as_base
16321 export CONFIG_SHELL
16322 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16323 fi;;
16324 esac
16325 done
16326done
16327;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016328 esac
16329
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016330 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16331 # uniformly replaced by the line number. The first 'sed' inserts a
16332 # line-number line before each line; the second 'sed' does the real
16333 # work. The second script uses 'N' to pair each line-number line
16334 # with the numbered line, and appends trailing '-' during
16335 # substitution so that $LINENO is not a special case at line end.
16336 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16337 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16338 sed '=' <$as_myself |
16339 sed '
16340 N
16341 s,$,-,
16342 : loop
16343 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16344 t loop
16345 s,-$,,
16346 s,^['$as_cr_digits']*\n,,
16347 ' >$as_me.lineno &&
16348 chmod +x $as_me.lineno ||
16349 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16350echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16351 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016352
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016353 # Don't try to exec as it changes $[0], causing all sort of problems
16354 # (the dirname of $[0] is not the place where we might find the
16355 # original and so on. Autoconf is especially sensible to this).
16356 . ./$as_me.lineno
16357 # Exit status is that of the last command.
16358 exit
16359}
16360
16361
16362case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16363 *c*,-n*) ECHO_N= ECHO_C='
16364' ECHO_T=' ' ;;
16365 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16366 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16367esac
16368
16369if expr a : '\(a\)' >/dev/null 2>&1; then
16370 as_expr=expr
16371else
16372 as_expr=false
16373fi
16374
16375rm -f conf$$ conf$$.exe conf$$.file
16376echo >conf$$.file
16377if ln -s conf$$.file conf$$ 2>/dev/null; then
16378 # We could just check for DJGPP; but this test a) works b) is more generic
16379 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16380 if test -f conf$$.exe; then
16381 # Don't use ln at all; we don't have any links
16382 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016383 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016384 as_ln_s='ln -s'
16385 fi
16386elif ln conf$$.file conf$$ 2>/dev/null; then
16387 as_ln_s=ln
16388else
16389 as_ln_s='cp -p'
16390fi
16391rm -f conf$$ conf$$.exe conf$$.file
16392
16393if mkdir -p . 2>/dev/null; then
16394 as_mkdir_p=:
16395else
16396 test -d ./-p && rmdir ./-p
16397 as_mkdir_p=false
16398fi
16399
16400as_executable_p="test -f"
16401
16402# Sed expression to map a string onto a valid CPP name.
16403as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16404
16405# Sed expression to map a string onto a valid variable name.
16406as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16407
16408
16409# IFS
16410# We need space, tab and new line, in precisely that order.
16411as_nl='
16412'
16413IFS=" $as_nl"
16414
16415# CDPATH.
16416$as_unset CDPATH
16417
16418exec 6>&1
16419
16420# Open the log real soon, to keep \$[0] and so on meaningful, and to
16421# report actual input values of CONFIG_FILES etc. instead of their
16422# values after options handling. Logging --version etc. is OK.
Bram Moolenaar78984f52005-08-01 07:19:10 +000016423exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016424{
16425 echo
16426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16427## Running $as_me. ##
16428_ASBOX
16429} >&5
16430cat >&5 <<_CSEOF
16431
16432This file was extended by $as_me, which was
16433generated by GNU Autoconf 2.59. Invocation command line was
16434
16435 CONFIG_FILES = $CONFIG_FILES
16436 CONFIG_HEADERS = $CONFIG_HEADERS
16437 CONFIG_LINKS = $CONFIG_LINKS
16438 CONFIG_COMMANDS = $CONFIG_COMMANDS
16439 $ $0 $@
16440
16441_CSEOF
16442echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16443echo >&5
16444_ACEOF
16445
16446# Files that config.status was made for.
16447if test -n "$ac_config_files"; then
16448 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16449fi
16450
16451if test -n "$ac_config_headers"; then
16452 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16453fi
16454
16455if test -n "$ac_config_links"; then
16456 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16457fi
16458
16459if test -n "$ac_config_commands"; then
16460 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16461fi
16462
16463cat >>$CONFIG_STATUS <<\_ACEOF
16464
16465ac_cs_usage="\
16466\`$as_me' instantiates files from templates according to the
16467current configuration.
16468
16469Usage: $0 [OPTIONS] [FILE]...
16470
16471 -h, --help print this help, then exit
16472 -V, --version print version number, then exit
16473 -q, --quiet do not print progress messages
16474 -d, --debug don't remove temporary files
16475 --recheck update $as_me by reconfiguring in the same conditions
16476 --file=FILE[:TEMPLATE]
16477 instantiate the configuration file FILE
16478 --header=FILE[:TEMPLATE]
16479 instantiate the configuration header FILE
16480
16481Configuration files:
16482$config_files
16483
16484Configuration headers:
16485$config_headers
16486
16487Report bugs to <bug-autoconf@gnu.org>."
16488_ACEOF
16489
16490cat >>$CONFIG_STATUS <<_ACEOF
16491ac_cs_version="\\
16492config.status
16493configured by $0, generated by GNU Autoconf 2.59,
16494 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16495
16496Copyright (C) 2003 Free Software Foundation, Inc.
16497This config.status script is free software; the Free Software Foundation
16498gives unlimited permission to copy, distribute and modify it."
16499srcdir=$srcdir
16500_ACEOF
16501
16502cat >>$CONFIG_STATUS <<\_ACEOF
16503# If no file are specified by the user, then we need to provide default
16504# value. By we need to know if files were specified by the user.
16505ac_need_defaults=:
16506while test $# != 0
16507do
16508 case $1 in
16509 --*=*)
16510 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16511 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16512 ac_shift=:
16513 ;;
16514 -*)
16515 ac_option=$1
16516 ac_optarg=$2
16517 ac_shift=shift
16518 ;;
16519 *) # This is not an option, so the user has probably given explicit
16520 # arguments.
16521 ac_option=$1
16522 ac_need_defaults=false;;
16523 esac
16524
16525 case $ac_option in
16526 # Handling of the options.
16527_ACEOF
16528cat >>$CONFIG_STATUS <<\_ACEOF
16529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16530 ac_cs_recheck=: ;;
16531 --version | --vers* | -V )
16532 echo "$ac_cs_version"; exit 0 ;;
16533 --he | --h)
16534 # Conflict between --help and --header
16535 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16536Try \`$0 --help' for more information." >&5
16537echo "$as_me: error: ambiguous option: $1
16538Try \`$0 --help' for more information." >&2;}
16539 { (exit 1); exit 1; }; };;
16540 --help | --hel | -h )
16541 echo "$ac_cs_usage"; exit 0 ;;
16542 --debug | --d* | -d )
16543 debug=: ;;
16544 --file | --fil | --fi | --f )
16545 $ac_shift
16546 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16547 ac_need_defaults=false;;
16548 --header | --heade | --head | --hea )
16549 $ac_shift
16550 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16551 ac_need_defaults=false;;
16552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16553 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16554 ac_cs_silent=: ;;
16555
16556 # This is an error.
16557 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16558Try \`$0 --help' for more information." >&5
16559echo "$as_me: error: unrecognized option: $1
16560Try \`$0 --help' for more information." >&2;}
16561 { (exit 1); exit 1; }; } ;;
16562
16563 *) ac_config_targets="$ac_config_targets $1" ;;
16564
16565 esac
16566 shift
16567done
16568
16569ac_configure_extra_args=
16570
16571if $ac_cs_silent; then
16572 exec 6>/dev/null
16573 ac_configure_extra_args="$ac_configure_extra_args --silent"
16574fi
16575
16576_ACEOF
16577cat >>$CONFIG_STATUS <<_ACEOF
16578if \$ac_cs_recheck; then
16579 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16580 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16581fi
16582
16583_ACEOF
16584
16585
16586
16587
16588
16589cat >>$CONFIG_STATUS <<\_ACEOF
16590for ac_config_target in $ac_config_targets
16591do
16592 case "$ac_config_target" in
16593 # Handling of arguments.
16594 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
16595 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
16596 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16597echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16598 { (exit 1); exit 1; }; };;
16599 esac
16600done
16601
16602# If the user did not use the arguments to specify the items to instantiate,
16603# then the envvar interface is used. Set only those that are not.
16604# We use the long form for the default assignment because of an extremely
16605# bizarre bug on SunOS 4.1.3.
16606if $ac_need_defaults; then
16607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16608 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16609fi
16610
16611# Have a temporary directory for convenience. Make it in the build tree
16612# simply because there is no reason to put it here, and in addition,
16613# creating and moving files from /tmp can sometimes cause problems.
16614# Create a temporary directory, and hook for its removal unless debugging.
16615$debug ||
16616{
16617 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16618 trap '{ (exit 1); exit 1; }' 1 2 13 15
16619}
16620
16621# Create a (secure) tmp directory for tmp files.
16622
16623{
16624 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16625 test -n "$tmp" && test -d "$tmp"
16626} ||
16627{
16628 tmp=./confstat$$-$RANDOM
16629 (umask 077 && mkdir $tmp)
16630} ||
16631{
16632 echo "$me: cannot create a temporary directory in ." >&2
16633 { (exit 1); exit 1; }
16634}
16635
16636_ACEOF
16637
16638cat >>$CONFIG_STATUS <<_ACEOF
16639
16640#
16641# CONFIG_FILES section.
16642#
16643
16644# No need to generate the scripts if there are no CONFIG_FILES.
16645# This happens for instance when ./config.status config.h
16646if test -n "\$CONFIG_FILES"; then
16647 # Protect against being on the right side of a sed subst in config.status.
16648 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16649 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16650s,@SHELL@,$SHELL,;t t
16651s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16652s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16653s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16654s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16655s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16656s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16657s,@exec_prefix@,$exec_prefix,;t t
16658s,@prefix@,$prefix,;t t
16659s,@program_transform_name@,$program_transform_name,;t t
16660s,@bindir@,$bindir,;t t
16661s,@sbindir@,$sbindir,;t t
16662s,@libexecdir@,$libexecdir,;t t
16663s,@datadir@,$datadir,;t t
16664s,@sysconfdir@,$sysconfdir,;t t
16665s,@sharedstatedir@,$sharedstatedir,;t t
16666s,@localstatedir@,$localstatedir,;t t
16667s,@libdir@,$libdir,;t t
16668s,@includedir@,$includedir,;t t
16669s,@oldincludedir@,$oldincludedir,;t t
16670s,@infodir@,$infodir,;t t
16671s,@mandir@,$mandir,;t t
16672s,@build_alias@,$build_alias,;t t
16673s,@host_alias@,$host_alias,;t t
16674s,@target_alias@,$target_alias,;t t
16675s,@DEFS@,$DEFS,;t t
16676s,@ECHO_C@,$ECHO_C,;t t
16677s,@ECHO_N@,$ECHO_N,;t t
16678s,@ECHO_T@,$ECHO_T,;t t
16679s,@LIBS@,$LIBS,;t t
16680s,@SET_MAKE@,$SET_MAKE,;t t
16681s,@CC@,$CC,;t t
16682s,@CFLAGS@,$CFLAGS,;t t
16683s,@LDFLAGS@,$LDFLAGS,;t t
16684s,@CPPFLAGS@,$CPPFLAGS,;t t
16685s,@ac_ct_CC@,$ac_ct_CC,;t t
16686s,@EXEEXT@,$EXEEXT,;t t
16687s,@OBJEXT@,$OBJEXT,;t t
16688s,@CPP@,$CPP,;t t
16689s,@EGREP@,$EGREP,;t t
16690s,@AWK@,$AWK,;t t
16691s,@STRIP@,$STRIP,;t t
16692s,@CPP_MM@,$CPP_MM,;t t
16693s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
16694s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
16695s,@VIMNAME@,$VIMNAME,;t t
16696s,@EXNAME@,$EXNAME,;t t
16697s,@VIEWNAME@,$VIEWNAME,;t t
16698s,@line_break@,$line_break,;t t
16699s,@dovimdiff@,$dovimdiff,;t t
16700s,@dogvimdiff@,$dogvimdiff,;t t
16701s,@compiledby@,$compiledby,;t t
16702s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
16703s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
16704s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
16705s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
16706s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
16707s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
16708s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
16709s,@vi_cv_perllib@,$vi_cv_perllib,;t t
16710s,@shrpenv@,$shrpenv,;t t
16711s,@PERL_SRC@,$PERL_SRC,;t t
16712s,@PERL_OBJ@,$PERL_OBJ,;t t
16713s,@PERL_PRO@,$PERL_PRO,;t t
16714s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
16715s,@PERL_LIBS@,$PERL_LIBS,;t t
16716s,@vi_cv_path_python@,$vi_cv_path_python,;t t
16717s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
16718s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
16719s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
16720s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
16721s,@PYTHON_SRC@,$PYTHON_SRC,;t t
16722s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
16723s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
16724s,@TCL_SRC@,$TCL_SRC,;t t
16725s,@TCL_OBJ@,$TCL_OBJ,;t t
16726s,@TCL_PRO@,$TCL_PRO,;t t
16727s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
16728s,@TCL_LIBS@,$TCL_LIBS,;t t
16729s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
16730s,@RUBY_SRC@,$RUBY_SRC,;t t
16731s,@RUBY_OBJ@,$RUBY_OBJ,;t t
16732s,@RUBY_PRO@,$RUBY_PRO,;t t
16733s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16734s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16735s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16736s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16737s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16738s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16739s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16740s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16741s,@xmkmfpath@,$xmkmfpath,;t t
16742s,@X_CFLAGS@,$X_CFLAGS,;t t
16743s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16744s,@X_LIBS@,$X_LIBS,;t t
16745s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16746s,@X_LIB@,$X_LIB,;t t
16747s,@MOC@,$MOC,;t t
16748s,@KDE_CONFIG@,$KDE_CONFIG,;t t
16749s,@KDE_LIBS@,$KDE_LIBS,;t t
16750s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t
16751s,@KDE_PREFIX@,$KDE_PREFIX,;t t
16752s,@CXX@,$CXX,;t t
16753s,@CXXFLAGS@,$CXXFLAGS,;t t
16754s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16755s,@QT_LIBS@,$QT_LIBS,;t t
16756s,@QT_INCLUDES@,$QT_INCLUDES,;t t
16757s,@ROOTQT@,$ROOTQT,;t t
16758s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16759s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16760s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16761s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16762s,@GTK_LIBS@,$GTK_LIBS,;t t
16763s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16764s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16765s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16766s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16767s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16768s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16769s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16770s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16771s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16772s,@GUITYPE@,$GUITYPE,;t t
16773s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16774s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16775s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16776s,@TAGPRG@,$TAGPRG,;t t
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000016777s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16778s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016779s,@MSGFMT@,$MSGFMT,;t t
16780s,@MAKEMO@,$MAKEMO,;t t
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000016781s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016782s,@LIBOBJS@,$LIBOBJS,;t t
16783s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16784CEOF
16785
16786_ACEOF
16787
16788 cat >>$CONFIG_STATUS <<\_ACEOF
16789 # Split the substitutions into bite-sized pieces for seds with
16790 # small command number limits, like on Digital OSF/1 and HP-UX.
16791 ac_max_sed_lines=48
16792 ac_sed_frag=1 # Number of current file.
16793 ac_beg=1 # First line for current file.
16794 ac_end=$ac_max_sed_lines # Line after last line for current file.
16795 ac_more_lines=:
16796 ac_sed_cmds=
16797 while $ac_more_lines; do
16798 if test $ac_beg -gt 1; then
16799 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16800 else
16801 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16802 fi
16803 if test ! -s $tmp/subs.frag; then
16804 ac_more_lines=false
16805 else
16806 # The purpose of the label and of the branching condition is to
16807 # speed up the sed processing (if there are no `@' at all, there
16808 # is no need to browse any of the substitutions).
16809 # These are the two extra sed commands mentioned above.
16810 (echo ':t
16811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16812 if test -z "$ac_sed_cmds"; then
16813 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16814 else
16815 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16816 fi
16817 ac_sed_frag=`expr $ac_sed_frag + 1`
16818 ac_beg=$ac_end
16819 ac_end=`expr $ac_end + $ac_max_sed_lines`
16820 fi
16821 done
16822 if test -z "$ac_sed_cmds"; then
16823 ac_sed_cmds=cat
16824 fi
16825fi # test -n "$CONFIG_FILES"
16826
16827_ACEOF
16828cat >>$CONFIG_STATUS <<\_ACEOF
16829for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16831 case $ac_file in
16832 - | *:- | *:-:* ) # input from stdin
16833 cat >$tmp/stdin
16834 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16835 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16836 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16837 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16838 * ) ac_file_in=$ac_file.in ;;
16839 esac
16840
16841 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16842 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16843$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16844 X"$ac_file" : 'X\(//\)[^/]' \| \
16845 X"$ac_file" : 'X\(//\)$' \| \
16846 X"$ac_file" : 'X\(/\)' \| \
16847 . : '\(.\)' 2>/dev/null ||
16848echo X"$ac_file" |
16849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16851 /^X\(\/\/\)$/{ s//\1/; q; }
16852 /^X\(\/\).*/{ s//\1/; q; }
16853 s/.*/./; q'`
16854 { if $as_mkdir_p; then
16855 mkdir -p "$ac_dir"
16856 else
16857 as_dir="$ac_dir"
16858 as_dirs=
16859 while test ! -d "$as_dir"; do
16860 as_dirs="$as_dir $as_dirs"
16861 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16862$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16863 X"$as_dir" : 'X\(//\)[^/]' \| \
16864 X"$as_dir" : 'X\(//\)$' \| \
16865 X"$as_dir" : 'X\(/\)' \| \
16866 . : '\(.\)' 2>/dev/null ||
16867echo X"$as_dir" |
16868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16870 /^X\(\/\/\)$/{ s//\1/; q; }
16871 /^X\(\/\).*/{ s//\1/; q; }
16872 s/.*/./; q'`
16873 done
16874 test ! -n "$as_dirs" || mkdir $as_dirs
16875 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16876echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16877 { (exit 1); exit 1; }; }; }
16878
16879 ac_builddir=.
16880
16881if test "$ac_dir" != .; then
16882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16883 # A "../" for each directory in $ac_dir_suffix.
16884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16885else
16886 ac_dir_suffix= ac_top_builddir=
16887fi
16888
16889case $srcdir in
16890 .) # No --srcdir option. We are building in place.
16891 ac_srcdir=.
16892 if test -z "$ac_top_builddir"; then
16893 ac_top_srcdir=.
16894 else
16895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16896 fi ;;
16897 [\\/]* | ?:[\\/]* ) # Absolute path.
16898 ac_srcdir=$srcdir$ac_dir_suffix;
16899 ac_top_srcdir=$srcdir ;;
16900 *) # Relative path.
16901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16903esac
16904
16905# Do not use `cd foo && pwd` to compute absolute paths, because
16906# the directories may not exist.
16907case `pwd` in
16908.) ac_abs_builddir="$ac_dir";;
16909*)
16910 case "$ac_dir" in
16911 .) ac_abs_builddir=`pwd`;;
16912 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16913 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16914 esac;;
16915esac
16916case $ac_abs_builddir in
16917.) ac_abs_top_builddir=${ac_top_builddir}.;;
16918*)
16919 case ${ac_top_builddir}. in
16920 .) ac_abs_top_builddir=$ac_abs_builddir;;
16921 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16922 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16923 esac;;
16924esac
16925case $ac_abs_builddir in
16926.) ac_abs_srcdir=$ac_srcdir;;
16927*)
16928 case $ac_srcdir in
16929 .) ac_abs_srcdir=$ac_abs_builddir;;
16930 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16931 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16932 esac;;
16933esac
16934case $ac_abs_builddir in
16935.) ac_abs_top_srcdir=$ac_top_srcdir;;
16936*)
16937 case $ac_top_srcdir in
16938 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16939 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16940 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16941 esac;;
16942esac
16943
16944
16945
16946 if test x"$ac_file" != x-; then
16947 { echo "$as_me:$LINENO: creating $ac_file" >&5
16948echo "$as_me: creating $ac_file" >&6;}
16949 rm -f "$ac_file"
16950 fi
16951 # Let's still pretend it is `configure' which instantiates (i.e., don't
16952 # use $as_me), people would be surprised to read:
16953 # /* config.h. Generated by config.status. */
16954 if test x"$ac_file" = x-; then
16955 configure_input=
16956 else
16957 configure_input="$ac_file. "
16958 fi
16959 configure_input=$configure_input"Generated from `echo $ac_file_in |
16960 sed 's,.*/,,'` by configure."
16961
16962 # First look for the input files in the build tree, otherwise in the
16963 # src tree.
16964 ac_file_inputs=`IFS=:
16965 for f in $ac_file_in; do
16966 case $f in
16967 -) echo $tmp/stdin ;;
16968 [\\/$]*)
16969 # Absolute (can't be DOS-style, as IFS=:)
16970 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16971echo "$as_me: error: cannot find input file: $f" >&2;}
16972 { (exit 1); exit 1; }; }
16973 echo "$f";;
16974 *) # Relative
16975 if test -f "$f"; then
16976 # Build tree
16977 echo "$f"
16978 elif test -f "$srcdir/$f"; then
16979 # Source tree
16980 echo "$srcdir/$f"
16981 else
16982 # /dev/null tree
16983 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16984echo "$as_me: error: cannot find input file: $f" >&2;}
16985 { (exit 1); exit 1; }; }
16986 fi;;
16987 esac
16988 done` || { (exit 1); exit 1; }
16989_ACEOF
16990cat >>$CONFIG_STATUS <<_ACEOF
16991 sed "$ac_vpsub
16992$extrasub
16993_ACEOF
16994cat >>$CONFIG_STATUS <<\_ACEOF
16995:t
16996/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16997s,@configure_input@,$configure_input,;t t
16998s,@srcdir@,$ac_srcdir,;t t
16999s,@abs_srcdir@,$ac_abs_srcdir,;t t
17000s,@top_srcdir@,$ac_top_srcdir,;t t
17001s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17002s,@builddir@,$ac_builddir,;t t
17003s,@abs_builddir@,$ac_abs_builddir,;t t
17004s,@top_builddir@,$ac_top_builddir,;t t
17005s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17006" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17007 rm -f $tmp/stdin
17008 if test x"$ac_file" != x-; then
17009 mv $tmp/out $ac_file
17010 else
17011 cat $tmp/out
17012 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000017013 fi
17014
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017015done
17016_ACEOF
17017cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017018
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017019#
17020# CONFIG_HEADER section.
17021#
Bram Moolenaar071d4272004-06-13 20:20:40 +000017022
17023# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17024# NAME is the cpp macro being defined and VALUE is the value it is being given.
17025#
17026# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017027ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17028ac_dB='[ ].*$,\1#\2'
17029ac_dC=' '
17030ac_dD=',;t'
17031# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17032ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17033ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000017034ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017035ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000017036
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017037for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000017038 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017039 case $ac_file in
17040 - | *:- | *:-:* ) # input from stdin
17041 cat >$tmp/stdin
17042 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17043 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17044 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17046 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000017047 esac
17048
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017049 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17050echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000017051
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017052 # First look for the input files in the build tree, otherwise in the
17053 # src tree.
17054 ac_file_inputs=`IFS=:
17055 for f in $ac_file_in; do
17056 case $f in
17057 -) echo $tmp/stdin ;;
17058 [\\/$]*)
17059 # Absolute (can't be DOS-style, as IFS=:)
17060 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17061echo "$as_me: error: cannot find input file: $f" >&2;}
17062 { (exit 1); exit 1; }; }
17063 # Do quote $f, to prevent DOS paths from being IFS'd.
17064 echo "$f";;
17065 *) # Relative
17066 if test -f "$f"; then
17067 # Build tree
17068 echo "$f"
17069 elif test -f "$srcdir/$f"; then
17070 # Source tree
17071 echo "$srcdir/$f"
17072 else
17073 # /dev/null tree
17074 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17075echo "$as_me: error: cannot find input file: $f" >&2;}
17076 { (exit 1); exit 1; }; }
17077 fi;;
17078 esac
17079 done` || { (exit 1); exit 1; }
17080 # Remove the trailing spaces.
17081 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000017082
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017083_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017084
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017085# Transform confdefs.h into two sed scripts, `conftest.defines' and
17086# `conftest.undefs', that substitutes the proper values into
17087# config.h.in to produce config.h. The first handles `#define'
17088# templates, and the second `#undef' templates.
17089# And first: Protect against being on the right side of a sed subst in
17090# config.status. Protect against being in an unquoted here document
17091# in config.status.
17092rm -f conftest.defines conftest.undefs
17093# Using a here document instead of a string reduces the quoting nightmare.
17094# Putting comments in sed scripts is not portable.
17095#
17096# `end' is used to avoid that the second main sed command (meant for
17097# 0-ary CPP macros) applies to n-ary macro definitions.
17098# See the Autoconf documentation for `clear'.
17099cat >confdef2sed.sed <<\_ACEOF
17100s/[\\&,]/\\&/g
17101s,[\\$`],\\&,g
17102t clear
17103: clear
17104s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17105t end
17106s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17107: end
17108_ACEOF
17109# If some macros were called several times there might be several times
17110# the same #defines, which is useless. Nevertheless, we may not want to
17111# sort them, since we want the *last* AC-DEFINE to be honored.
17112uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17113sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17114rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000017115
17116# This sed command replaces #undef with comments. This is necessary, for
17117# example, in the case of _POSIX_SOURCE, which is predefined and required
17118# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017119cat >>conftest.undefs <<\_ACEOF
17120s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17121_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017122
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017123# Break up conftest.defines because some shells have a limit on the size
17124# of here documents, and old seds have small limits too (100 cmds).
17125echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17126echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17127echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17128echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000017129rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017130while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000017131do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017132 # Write a limited-size here document to $tmp/defines.sed.
17133 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17134 # Speed up: don't consider the non `#define' lines.
17135 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17136 # Work around the forget-to-reset-the-flag bug.
17137 echo 't clr' >>$CONFIG_STATUS
17138 echo ': clr' >>$CONFIG_STATUS
17139 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000017140 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017141 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17142 rm -f $tmp/in
17143 mv $tmp/out $tmp/in
17144' >>$CONFIG_STATUS
17145 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17146 rm -f conftest.defines
17147 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000017148done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017149rm -f conftest.defines
17150echo ' fi # grep' >>$CONFIG_STATUS
17151echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000017152
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017153# Break up conftest.undefs because some shells have a limit on the size
17154# of here documents, and old seds have small limits too (100 cmds).
17155echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17156rm -f conftest.tail
17157while grep . conftest.undefs >/dev/null
17158do
17159 # Write a limited-size here document to $tmp/undefs.sed.
17160 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17161 # Speed up: don't consider the non `#undef'
17162 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17163 # Work around the forget-to-reset-the-flag bug.
17164 echo 't clr' >>$CONFIG_STATUS
17165 echo ': clr' >>$CONFIG_STATUS
17166 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17167 echo 'CEOF
17168 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17169 rm -f $tmp/in
17170 mv $tmp/out $tmp/in
17171' >>$CONFIG_STATUS
17172 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17173 rm -f conftest.undefs
17174 mv conftest.tail conftest.undefs
17175done
17176rm -f conftest.undefs
17177
17178cat >>$CONFIG_STATUS <<\_ACEOF
17179 # Let's still pretend it is `configure' which instantiates (i.e., don't
17180 # use $as_me), people would be surprised to read:
17181 # /* config.h. Generated by config.status. */
17182 if test x"$ac_file" = x-; then
17183 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000017184 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017185 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000017186 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017187 cat $tmp/in >>$tmp/config.h
17188 rm -f $tmp/in
17189 if test x"$ac_file" != x-; then
17190 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17191 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17192echo "$as_me: $ac_file is unchanged" >&6;}
17193 else
17194 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17195$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17196 X"$ac_file" : 'X\(//\)[^/]' \| \
17197 X"$ac_file" : 'X\(//\)$' \| \
17198 X"$ac_file" : 'X\(/\)' \| \
17199 . : '\(.\)' 2>/dev/null ||
17200echo X"$ac_file" |
17201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17203 /^X\(\/\/\)$/{ s//\1/; q; }
17204 /^X\(\/\).*/{ s//\1/; q; }
17205 s/.*/./; q'`
17206 { if $as_mkdir_p; then
17207 mkdir -p "$ac_dir"
17208 else
17209 as_dir="$ac_dir"
17210 as_dirs=
17211 while test ! -d "$as_dir"; do
17212 as_dirs="$as_dir $as_dirs"
17213 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17214$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17215 X"$as_dir" : 'X\(//\)[^/]' \| \
17216 X"$as_dir" : 'X\(//\)$' \| \
17217 X"$as_dir" : 'X\(/\)' \| \
17218 . : '\(.\)' 2>/dev/null ||
17219echo X"$as_dir" |
17220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17222 /^X\(\/\/\)$/{ s//\1/; q; }
17223 /^X\(\/\).*/{ s//\1/; q; }
17224 s/.*/./; q'`
17225 done
17226 test ! -n "$as_dirs" || mkdir $as_dirs
17227 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17228echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17229 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000017230
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017231 rm -f $ac_file
17232 mv $tmp/config.h $ac_file
17233 fi
17234 else
17235 cat $tmp/config.h
17236 rm -f $tmp/config.h
17237 fi
17238done
17239_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017240
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017241cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017242
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017243{ (exit 0); exit 0; }
17244_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017245chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017246ac_clean_files=$ac_clean_files_save
17247
17248
17249# configure is writing to config.log, and then calls config.status.
17250# config.status does its own redirection, appending to config.log.
17251# Unfortunately, on DOS this fails, as config.log is still kept open
17252# by configure, so config.status won't be able to write to it; its
17253# output is simply discarded. So we exec the FD to /dev/null,
17254# effectively closing config.log, so it can be properly (re)opened and
17255# appended to by config.status. When coming back to configure, we
17256# need to make the FD available again.
17257if test "$no_create" != yes; then
17258 ac_cs_success=:
17259 ac_config_status_args=
17260 test "$silent" = yes &&
17261 ac_config_status_args="$ac_config_status_args --quiet"
17262 exec 5>/dev/null
17263 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Bram Moolenaar78984f52005-08-01 07:19:10 +000017264 exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017265 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17266 # would make configure fail if this is the last instruction.
17267 $ac_cs_success || { (exit 1); exit 1; }
17268fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000017269
17270