xref: /vim-8.2.3635/src/auto/configure (revision 607cc1e0)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell [email protected] about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
555PACKAGE_URL=
556
557ac_unique_file="vim.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif
564#ifdef HAVE_SYS_STAT_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572#  include <stdlib.h>
573# endif
574#endif
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577#  include <memory.h>
578# endif
579# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif
584#ifdef HAVE_INTTYPES_H
585# include <inttypes.h>
586#endif
587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
591# include <unistd.h>
592#endif"
593
594ac_subst_vars='LTLIBOBJS
595LIBOBJS
596DEPEND_CFLAGS_FILTER
597MAKEMO
598MSGFMT
599INSTALL_TOOL_LANGS
600INSTALL_LANGS
601TAGPRG
602HANGULIN_OBJ
603HANGULIN_SRC
604GUI_X_LIBS
605GUITYPE
606GUI_LIB_LOC
607GUI_INC_LOC
608NARROW_PROTO
609MOTIF_LIBNAME
610GNOME_INCLUDEDIR
611GNOME_LIBDIR
612GNOME_LIBS
613GTK_LIBNAME
614GTK_LIBS
615GTK_CFLAGS
616PKG_CONFIG
617X_LIB
618X_EXTRA_LIBS
619X_LIBS
620X_PRE_LIBS
621X_CFLAGS
622XMKMF
623xmkmfpath
624SNIFF_OBJ
625SNIFF_SRC
626NETBEANS_OBJ
627NETBEANS_SRC
628WORKSHOP_OBJ
629WORKSHOP_SRC
630RUBY_LIBS
631RUBY_CFLAGS
632RUBY_PRO
633RUBY_OBJ
634RUBY_SRC
635vi_cv_path_ruby
636TCL_LIBS
637TCL_CFLAGS
638TCL_PRO
639TCL_OBJ
640TCL_SRC
641vi_cv_path_tcl
642PYTHON3_OBJ
643PYTHON3_SRC
644PYTHON3_CFLAGS
645PYTHON3_LIBS
646PYTHON3_CONFDIR
647vi_cv_path_python3
648PYTHON_OBJ
649PYTHON_SRC
650PYTHON_CFLAGS
651PYTHON_GETPATH_CFLAGS
652PYTHON_LIBS
653PYTHON_CONFDIR
654vi_cv_path_python
655PERL_LIBS
656PERL_CFLAGS
657PERL_PRO
658PERL_OBJ
659PERL_SRC
660shrpenv
661vi_cv_perllib
662vi_cv_path_perl
663MZSCHEME_MZC
664MZSCHEME_EXTRA
665MZSCHEME_CFLAGS
666MZSCHEME_LIBS
667MZSCHEME_PRO
668MZSCHEME_OBJ
669MZSCHEME_SRC
670vi_cv_path_mzscheme
671LUA_CFLAGS
672LUA_LIBS
673LUA_PRO
674LUA_OBJ
675LUA_SRC
676vi_cv_path_lua
677compiledby
678dogvimdiff
679dovimdiff
680QUOTESED
681line_break
682VIEWNAME
683EXNAME
684VIMNAME
685OS_EXTRA_OBJ
686OS_EXTRA_SRC
687XCODE_SELECT
688CPP_MM
689STRIP
690AWK
691EGREP
692GREP
693CPP
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701SET_MAKE
702target_alias
703host_alias
704build_alias
705LIBS
706ECHO_T
707ECHO_N
708ECHO_C
709DEFS
710mandir
711localedir
712libdir
713psdir
714pdfdir
715dvidir
716htmldir
717infodir
718docdir
719oldincludedir
720includedir
721localstatedir
722sharedstatedir
723sysconfdir
724datadir
725datarootdir
726libexecdir
727sbindir
728bindir
729program_transform_name
730prefix
731exec_prefix
732PACKAGE_URL
733PACKAGE_BUGREPORT
734PACKAGE_STRING
735PACKAGE_VERSION
736PACKAGE_TARNAME
737PACKAGE_NAME
738PATH_SEPARATOR
739SHELL'
740ac_subst_files=''
741ac_user_opts='
742enable_option_checking
743enable_darwin
744with_mac_arch
745with_developer_dir
746with_local_dir
747with_vim_name
748with_ex_name
749with_view_name
750with_global_runtime
751with_modified_by
752enable_selinux
753with_features
754with_compiledby
755enable_xsmp
756enable_xsmp_interact
757enable_luainterp
758with_lua_prefix
759enable_mzschemeinterp
760with_plthome
761enable_perlinterp
762enable_pythoninterp
763with_python_config_dir
764enable_python3interp
765with_python3_config_dir
766enable_tclinterp
767with_tclsh
768enable_rubyinterp
769with_ruby_command
770enable_cscope
771enable_workshop
772enable_netbeans
773enable_sniff
774enable_multibyte
775enable_hangulinput
776enable_xim
777enable_fontset
778with_x
779enable_gui
780enable_gtk2_check
781enable_gnome_check
782enable_motif_check
783enable_athena_check
784enable_nextaw_check
785enable_carbon_check
786enable_gtktest
787with_gnome_includes
788with_gnome_libs
789with_gnome
790with_motif_lib
791with_tlib
792enable_largefile
793enable_acl
794enable_gpm
795enable_sysmouse
796enable_nls
797'
798      ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
806CPP
807XMKMF'
808
809
810# Initialize some variables set by options.
811ac_init_help=
812ac_init_version=false
813ac_unrecognized_opts=
814ac_unrecognized_sep=
815# The variables have the same names as the options, with
816# dashes changed to underlines.
817cache_file=/dev/null
818exec_prefix=NONE
819no_create=
820no_recursion=
821prefix=NONE
822program_prefix=NONE
823program_suffix=NONE
824program_transform_name=s,x,x,
825silent=
826site=
827srcdir=
828verbose=
829x_includes=NONE
830x_libraries=NONE
831
832# Installation directory options.
833# These are left unexpanded so users can "make install exec_prefix=/foo"
834# and all the variables that are supposed to be based on exec_prefix
835# by default will actually change.
836# Use braces instead of parens because sh, perl, etc. also accept them.
837# (The list follows the same order as the GNU Coding Standards.)
838bindir='${exec_prefix}/bin'
839sbindir='${exec_prefix}/sbin'
840libexecdir='${exec_prefix}/libexec'
841datarootdir='${prefix}/share'
842datadir='${datarootdir}'
843sysconfdir='${prefix}/etc'
844sharedstatedir='${prefix}/com'
845localstatedir='${prefix}/var'
846includedir='${prefix}/include'
847oldincludedir='/usr/include'
848docdir='${datarootdir}/doc/${PACKAGE}'
849infodir='${datarootdir}/info'
850htmldir='${docdir}'
851dvidir='${docdir}'
852pdfdir='${docdir}'
853psdir='${docdir}'
854libdir='${exec_prefix}/lib'
855localedir='${datarootdir}/locale'
856mandir='${datarootdir}/man'
857
858ac_prev=
859ac_dashdash=
860for ac_option
861do
862  # If the previous option needs an argument, assign it.
863  if test -n "$ac_prev"; then
864    eval $ac_prev=\$ac_option
865    ac_prev=
866    continue
867  fi
868
869  case $ac_option in
870  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871  *)	ac_optarg=yes ;;
872  esac
873
874  # Accept the important Cygnus configure options, so we can diagnose typos.
875
876  case $ac_dashdash$ac_option in
877  --)
878    ac_dashdash=yes ;;
879
880  -bindir | --bindir | --bindi | --bind | --bin | --bi)
881    ac_prev=bindir ;;
882  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883    bindir=$ac_optarg ;;
884
885  -build | --build | --buil | --bui | --bu)
886    ac_prev=build_alias ;;
887  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888    build_alias=$ac_optarg ;;
889
890  -cache-file | --cache-file | --cache-fil | --cache-fi \
891  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892    ac_prev=cache_file ;;
893  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895    cache_file=$ac_optarg ;;
896
897  --config-cache | -C)
898    cache_file=config.cache ;;
899
900  -datadir | --datadir | --datadi | --datad)
901    ac_prev=datadir ;;
902  -datadir=* | --datadir=* | --datadi=* | --datad=*)
903    datadir=$ac_optarg ;;
904
905  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906  | --dataroo | --dataro | --datar)
907    ac_prev=datarootdir ;;
908  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910    datarootdir=$ac_optarg ;;
911
912  -disable-* | --disable-*)
913    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914    # Reject names that are not valid shell variable names.
915    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916      as_fn_error "invalid feature name: $ac_useropt"
917    ac_useropt_orig=$ac_useropt
918    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919    case $ac_user_opts in
920      *"
921"enable_$ac_useropt"
922"*) ;;
923      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924	 ac_unrecognized_sep=', ';;
925    esac
926    eval enable_$ac_useropt=no ;;
927
928  -docdir | --docdir | --docdi | --doc | --do)
929    ac_prev=docdir ;;
930  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931    docdir=$ac_optarg ;;
932
933  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934    ac_prev=dvidir ;;
935  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936    dvidir=$ac_optarg ;;
937
938  -enable-* | --enable-*)
939    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940    # Reject names that are not valid shell variable names.
941    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942      as_fn_error "invalid feature name: $ac_useropt"
943    ac_useropt_orig=$ac_useropt
944    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945    case $ac_user_opts in
946      *"
947"enable_$ac_useropt"
948"*) ;;
949      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950	 ac_unrecognized_sep=', ';;
951    esac
952    eval enable_$ac_useropt=\$ac_optarg ;;
953
954  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956  | --exec | --exe | --ex)
957    ac_prev=exec_prefix ;;
958  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960  | --exec=* | --exe=* | --ex=*)
961    exec_prefix=$ac_optarg ;;
962
963  -gas | --gas | --ga | --g)
964    # Obsolete; use --with-gas.
965    with_gas=yes ;;
966
967  -help | --help | --hel | --he | -h)
968    ac_init_help=long ;;
969  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970    ac_init_help=recursive ;;
971  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972    ac_init_help=short ;;
973
974  -host | --host | --hos | --ho)
975    ac_prev=host_alias ;;
976  -host=* | --host=* | --hos=* | --ho=*)
977    host_alias=$ac_optarg ;;
978
979  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980    ac_prev=htmldir ;;
981  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982  | --ht=*)
983    htmldir=$ac_optarg ;;
984
985  -includedir | --includedir | --includedi | --included | --include \
986  | --includ | --inclu | --incl | --inc)
987    ac_prev=includedir ;;
988  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989  | --includ=* | --inclu=* | --incl=* | --inc=*)
990    includedir=$ac_optarg ;;
991
992  -infodir | --infodir | --infodi | --infod | --info | --inf)
993    ac_prev=infodir ;;
994  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995    infodir=$ac_optarg ;;
996
997  -libdir | --libdir | --libdi | --libd)
998    ac_prev=libdir ;;
999  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000    libdir=$ac_optarg ;;
1001
1002  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003  | --libexe | --libex | --libe)
1004    ac_prev=libexecdir ;;
1005  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006  | --libexe=* | --libex=* | --libe=*)
1007    libexecdir=$ac_optarg ;;
1008
1009  -localedir | --localedir | --localedi | --localed | --locale)
1010    ac_prev=localedir ;;
1011  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012    localedir=$ac_optarg ;;
1013
1014  -localstatedir | --localstatedir | --localstatedi | --localstated \
1015  | --localstate | --localstat | --localsta | --localst | --locals)
1016    ac_prev=localstatedir ;;
1017  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019    localstatedir=$ac_optarg ;;
1020
1021  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022    ac_prev=mandir ;;
1023  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024    mandir=$ac_optarg ;;
1025
1026  -nfp | --nfp | --nf)
1027    # Obsolete; use --without-fp.
1028    with_fp=no ;;
1029
1030  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031  | --no-cr | --no-c | -n)
1032    no_create=yes ;;
1033
1034  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036    no_recursion=yes ;;
1037
1038  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040  | --oldin | --oldi | --old | --ol | --o)
1041    ac_prev=oldincludedir ;;
1042  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045    oldincludedir=$ac_optarg ;;
1046
1047  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048    ac_prev=prefix ;;
1049  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050    prefix=$ac_optarg ;;
1051
1052  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053  | --program-pre | --program-pr | --program-p)
1054    ac_prev=program_prefix ;;
1055  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057    program_prefix=$ac_optarg ;;
1058
1059  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060  | --program-suf | --program-su | --program-s)
1061    ac_prev=program_suffix ;;
1062  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064    program_suffix=$ac_optarg ;;
1065
1066  -program-transform-name | --program-transform-name \
1067  | --program-transform-nam | --program-transform-na \
1068  | --program-transform-n | --program-transform- \
1069  | --program-transform | --program-transfor \
1070  | --program-transfo | --program-transf \
1071  | --program-trans | --program-tran \
1072  | --progr-tra | --program-tr | --program-t)
1073    ac_prev=program_transform_name ;;
1074  -program-transform-name=* | --program-transform-name=* \
1075  | --program-transform-nam=* | --program-transform-na=* \
1076  | --program-transform-n=* | --program-transform-=* \
1077  | --program-transform=* | --program-transfor=* \
1078  | --program-transfo=* | --program-transf=* \
1079  | --program-trans=* | --program-tran=* \
1080  | --progr-tra=* | --program-tr=* | --program-t=*)
1081    program_transform_name=$ac_optarg ;;
1082
1083  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084    ac_prev=pdfdir ;;
1085  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086    pdfdir=$ac_optarg ;;
1087
1088  -psdir | --psdir | --psdi | --psd | --ps)
1089    ac_prev=psdir ;;
1090  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091    psdir=$ac_optarg ;;
1092
1093  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094  | -silent | --silent | --silen | --sile | --sil)
1095    silent=yes ;;
1096
1097  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098    ac_prev=sbindir ;;
1099  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100  | --sbi=* | --sb=*)
1101    sbindir=$ac_optarg ;;
1102
1103  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105  | --sharedst | --shareds | --shared | --share | --shar \
1106  | --sha | --sh)
1107    ac_prev=sharedstatedir ;;
1108  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111  | --sha=* | --sh=*)
1112    sharedstatedir=$ac_optarg ;;
1113
1114  -site | --site | --sit)
1115    ac_prev=site ;;
1116  -site=* | --site=* | --sit=*)
1117    site=$ac_optarg ;;
1118
1119  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120    ac_prev=srcdir ;;
1121  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122    srcdir=$ac_optarg ;;
1123
1124  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125  | --syscon | --sysco | --sysc | --sys | --sy)
1126    ac_prev=sysconfdir ;;
1127  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129    sysconfdir=$ac_optarg ;;
1130
1131  -target | --target | --targe | --targ | --tar | --ta | --t)
1132    ac_prev=target_alias ;;
1133  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134    target_alias=$ac_optarg ;;
1135
1136  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137    verbose=yes ;;
1138
1139  -version | --version | --versio | --versi | --vers | -V)
1140    ac_init_version=: ;;
1141
1142  -with-* | --with-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=\$ac_optarg ;;
1157
1158  -without-* | --without-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error "invalid package name: $ac_useropt"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=no ;;
1173
1174  --x)
1175    # Obsolete; use --with-x.
1176    with_x=yes ;;
1177
1178  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179  | --x-incl | --x-inc | --x-in | --x-i)
1180    ac_prev=x_includes ;;
1181  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183    x_includes=$ac_optarg ;;
1184
1185  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187    ac_prev=x_libraries ;;
1188  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190    x_libraries=$ac_optarg ;;
1191
1192  -*) as_fn_error "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information."
1194    ;;
1195
1196  *=*)
1197    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198    # Reject names that are not valid shell variable names.
1199    case $ac_envvar in #(
1200      '' | [0-9]* | *[!_$as_cr_alnum]* )
1201      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1202    esac
1203    eval $ac_envvar=\$ac_optarg
1204    export $ac_envvar ;;
1205
1206  *)
1207    # FIXME: should be removed in autoconf 3.0.
1208    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1212    ;;
1213
1214  esac
1215done
1216
1217if test -n "$ac_prev"; then
1218  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219  as_fn_error "missing argument to $ac_option"
1220fi
1221
1222if test -n "$ac_unrecognized_opts"; then
1223  case $enable_option_checking in
1224    no) ;;
1225    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1226    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227  esac
1228fi
1229
1230# Check all directory arguments for consistency.
1231for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232		datadir sysconfdir sharedstatedir localstatedir includedir \
1233		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234		libdir localedir mandir
1235do
1236  eval ac_val=\$$ac_var
1237  # Remove trailing slashes.
1238  case $ac_val in
1239    */ )
1240      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241      eval $ac_var=\$ac_val;;
1242  esac
1243  # Be sure to have absolute directory names.
1244  case $ac_val in
1245    [\\/$]* | ?:[\\/]* )  continue;;
1246    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247  esac
1248  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1249done
1250
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260  if test "x$build_alias" = x; then
1261    cross_compiling=maybe
1262    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1263    If a cross compiler is detected then cross compile mode will be used." >&2
1264  elif test "x$build_alias" != "x$host_alias"; then
1265    cross_compiling=yes
1266  fi
1267fi
1268
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
1273
1274
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278  as_fn_error "working directory cannot be determined"
1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280  as_fn_error "pwd does not report name of working directory"
1281
1282
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285  ac_srcdir_defaulted=yes
1286  # Try the directory containing this script, then the parent directory.
1287  ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289	 X"$as_myself" : 'X\(//\)[^/]' \| \
1290	 X"$as_myself" : 'X\(//\)$' \| \
1291	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
1293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)[^/].*/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\/\)$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\).*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  s/.*/./; q'`
1310  srcdir=$ac_confdir
1311  if test ! -r "$srcdir/$ac_unique_file"; then
1312    srcdir=..
1313  fi
1314else
1315  ac_srcdir_defaulted=no
1316fi
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
1323	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1324	pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327  srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_env_${ac_var}_value=\$${ac_var}
1338  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
1341
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346  # Omit some internal or obsolete options to make the list less imposing.
1347  # This message is too long to be a string in the A/UX 3.1 sh.
1348  cat <<_ACEOF
1349\`configure' configures this package to adapt to many kinds of systems.
1350
1351Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE.  See below for descriptions of some of the useful variables.
1355
1356Defaults for the options are specified in brackets.
1357
1358Configuration:
1359  -h, --help              display this help and exit
1360      --help=short        display options specific to this package
1361      --help=recursive    display the short help of all the included packages
1362  -V, --version           display version information and exit
1363  -q, --quiet, --silent   do not print \`checking...' messages
1364      --cache-file=FILE   cache test results in FILE [disabled]
1365  -C, --config-cache      alias for \`--cache-file=config.cache'
1366  -n, --no-create         do not create output files
1367      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1368
1369Installation directories:
1370  --prefix=PREFIX         install architecture-independent files in PREFIX
1371                          [$ac_default_prefix]
1372  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1373                          [PREFIX]
1374
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
1379
1380For better control, use the options below.
1381
1382Fine tuning of the installation directories:
1383  --bindir=DIR            user executables [EPREFIX/bin]
1384  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1385  --libexecdir=DIR        program executables [EPREFIX/libexec]
1386  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1387  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1388  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1389  --libdir=DIR            object code libraries [EPREFIX/lib]
1390  --includedir=DIR        C header files [PREFIX/include]
1391  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1392  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1393  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1394  --infodir=DIR           info documentation [DATAROOTDIR/info]
1395  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1396  --mandir=DIR            man documentation [DATAROOTDIR/man]
1397  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1398  --htmldir=DIR           html documentation [DOCDIR]
1399  --dvidir=DIR            dvi documentation [DOCDIR]
1400  --pdfdir=DIR            pdf documentation [DOCDIR]
1401  --psdir=DIR             ps documentation [DOCDIR]
1402_ACEOF
1403
1404  cat <<\_ACEOF
1405
1406X features:
1407  --x-includes=DIR    X include files are in DIR
1408  --x-libraries=DIR   X library files are in DIR
1409_ACEOF
1410fi
1411
1412if test -n "$ac_init_help"; then
1413
1414  cat <<\_ACEOF
1415
1416Optional Features:
1417  --disable-option-checking  ignore unrecognized --enable/--with options
1418  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1419  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1420  --disable-darwin        Disable Darwin (Mac OS X) support.
1421  --disable-selinux	  Don't check for SELinux support.
1422  --disable-xsmp          Disable XSMP session management
1423  --disable-xsmp-interact Disable XSMP interaction
1424  --enable-luainterp      Include Lua interpreter.
1425  --enable-mzschemeinterp   Include MzScheme interpreter.
1426  --enable-perlinterp     Include Perl interpreter.
1427  --enable-pythoninterp   Include Python interpreter.
1428  --enable-python3interp   Include Python3 interpreter.
1429  --enable-tclinterp      Include Tcl interpreter.
1430  --enable-rubyinterp     Include Ruby interpreter.
1431  --enable-cscope         Include cscope interface.
1432  --enable-workshop       Include Sun Visual Workshop support.
1433  --disable-netbeans      Disable NetBeans integration support.
1434  --enable-sniff          Include Sniff interface.
1435  --enable-multibyte      Include multibyte editing support.
1436  --enable-hangulinput    Include Hangul input support.
1437  --enable-xim            Include XIM input support.
1438  --enable-fontset        Include X fontset output support.
1439  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon
1440  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1441  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1442  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1443  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1444  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1445  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1446  --disable-gtktest       Do not try to compile and run a test GTK program
1447  --disable-largefile     omit support for large files
1448  --disable-acl           Don't check for ACL support.
1449  --disable-gpm           Don't use gpm (Linux mouse daemon).
1450  --disable-sysmouse    Don't use sysmouse (mouse in *BSD console).
1451  --disable-nls           Don't support NLS (gettext()).
1452
1453Optional Packages:
1454  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1455  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1456  --with-mac-arch=ARCH    current, intel, ppc or both
1457  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1458  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1459  --without-local-dir     do not search /usr/local for local libraries.
1460  --with-vim-name=NAME    what to call the Vim executable
1461  --with-ex-name=NAME     what to call the Ex executable
1462  --with-view-name=NAME   what to call the View executable
1463  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1464  --with-modified-by=NAME       name of who modified a release version
1465  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
1466  --with-compiledby=NAME  name to show in :version message
1467  --with-lua-prefix=PFX   Prefix where Lua is installed.
1468  --with-plthome=PLTHOME   Use PLTHOME.
1469  --with-python-config-dir=PATH  Python's config directory
1470  --with-python3-config-dir=PATH  Python's config directory
1471  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1472  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1473  --with-x                use the X Window System
1474  --with-gnome-includes=DIR Specify location of GNOME headers
1475  --with-gnome-libs=DIR   Specify location of GNOME libs
1476  --with-gnome            Specify prefix for GNOME files
1477  --with-motif-lib=STRING   Library for Motif
1478  --with-tlib=library     terminal library to be used
1479
1480Some influential environment variables:
1481  CC          C compiler command
1482  CFLAGS      C compiler flags
1483  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1484              nonstandard directory <lib dir>
1485  LIBS        libraries to pass to the linker, e.g. -l<library>
1486  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487              you have headers in a nonstandard directory <include dir>
1488  CPP         C preprocessor
1489  XMKMF       Path to xmkmf, Makefile generator for X Window System
1490
1491Use these variables to override the choices made by `configure' or to help
1492it to find libraries and programs with nonstandard names/locations.
1493
1494Report bugs to the package provider.
1495_ACEOF
1496ac_status=$?
1497fi
1498
1499if test "$ac_init_help" = "recursive"; then
1500  # If there are subdirs, report their specific --help.
1501  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502    test -d "$ac_dir" ||
1503      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1504      continue
1505    ac_builddir=.
1506
1507case "$ac_dir" in
1508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509*)
1510  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1511  # A ".." for each directory in $ac_dir_suffix.
1512  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1513  case $ac_top_builddir_sub in
1514  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516  esac ;;
1517esac
1518ac_abs_top_builddir=$ac_pwd
1519ac_abs_builddir=$ac_pwd$ac_dir_suffix
1520# for backward compatibility:
1521ac_top_builddir=$ac_top_build_prefix
1522
1523case $srcdir in
1524  .)  # We are building in place.
1525    ac_srcdir=.
1526    ac_top_srcdir=$ac_top_builddir_sub
1527    ac_abs_top_srcdir=$ac_pwd ;;
1528  [\\/]* | ?:[\\/]* )  # Absolute name.
1529    ac_srcdir=$srcdir$ac_dir_suffix;
1530    ac_top_srcdir=$srcdir
1531    ac_abs_top_srcdir=$srcdir ;;
1532  *) # Relative name.
1533    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1534    ac_top_srcdir=$ac_top_build_prefix$srcdir
1535    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536esac
1537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538
1539    cd "$ac_dir" || { ac_status=$?; continue; }
1540    # Check for guested configure.
1541    if test -f "$ac_srcdir/configure.gnu"; then
1542      echo &&
1543      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544    elif test -f "$ac_srcdir/configure"; then
1545      echo &&
1546      $SHELL "$ac_srcdir/configure" --help=recursive
1547    else
1548      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549    fi || ac_status=$?
1550    cd "$ac_pwd" || { ac_status=$?; break; }
1551  done
1552fi
1553
1554test -n "$ac_init_help" && exit $ac_status
1555if $ac_init_version; then
1556  cat <<\_ACEOF
1557configure
1558generated by GNU Autoconf 2.65
1559
1560Copyright (C) 2009 Free Software Foundation, Inc.
1561This configure script is free software; the Free Software Foundation
1562gives unlimited permission to copy, distribute and modify it.
1563_ACEOF
1564  exit
1565fi
1566
1567## ------------------------ ##
1568## Autoconf initialization. ##
1569## ------------------------ ##
1570
1571# ac_fn_c_try_compile LINENO
1572# --------------------------
1573# Try to compile conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_compile ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  rm -f conftest.$ac_objext
1578  if { { ac_try="$ac_compile"
1579case "(($ac_try" in
1580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581  *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585  (eval "$ac_compile") 2>conftest.err
1586  ac_status=$?
1587  if test -s conftest.err; then
1588    grep -v '^ *+' conftest.err >conftest.er1
1589    cat conftest.er1 >&5
1590    mv -f conftest.er1 conftest.err
1591  fi
1592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593  test $ac_status = 0; } && {
1594	 test -z "$ac_c_werror_flag" ||
1595	 test ! -s conftest.err
1596       } && test -s conftest.$ac_objext; then :
1597  ac_retval=0
1598else
1599  $as_echo "$as_me: failed program was:" >&5
1600sed 's/^/| /' conftest.$ac_ext >&5
1601
1602	ac_retval=1
1603fi
1604  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1605  as_fn_set_status $ac_retval
1606
1607} # ac_fn_c_try_compile
1608
1609# ac_fn_c_try_cpp LINENO
1610# ----------------------
1611# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612ac_fn_c_try_cpp ()
1613{
1614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615  if { { ac_try="$ac_cpp conftest.$ac_ext"
1616case "(($ac_try" in
1617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618  *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1623  ac_status=$?
1624  if test -s conftest.err; then
1625    grep -v '^ *+' conftest.err >conftest.er1
1626    cat conftest.er1 >&5
1627    mv -f conftest.er1 conftest.err
1628  fi
1629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } >/dev/null && {
1631	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1632	 test ! -s conftest.err
1633       }; then :
1634  ac_retval=0
1635else
1636  $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639    ac_retval=1
1640fi
1641  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642  as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_cpp
1645
1646# ac_fn_c_try_link LINENO
1647# -----------------------
1648# Try to link conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_link ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  rm -f conftest.$ac_objext conftest$ac_exeext
1653  if { { ac_try="$ac_link"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_link") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && {
1669	 test -z "$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       } && test -s conftest$ac_exeext && {
1672	 test "$cross_compiling" = yes ||
1673	 $as_test_x conftest$ac_exeext
1674       }; then :
1675  ac_retval=0
1676else
1677  $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680	ac_retval=1
1681fi
1682  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684  # interfere with the next link command; also delete a directory that is
1685  # left behind by Apple's compiler.  We do this before executing the actions.
1686  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688  as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_try_link
1691
1692# ac_fn_c_try_run LINENO
1693# ----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1695# that executables *can* be run.
1696ac_fn_c_try_run ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706  (eval "$ac_link") 2>&5
1707  ac_status=$?
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710  { { case "(($ac_try" in
1711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712  *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716  (eval "$ac_try") 2>&5
1717  ac_status=$?
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; }; }; then :
1720  ac_retval=0
1721else
1722  $as_echo "$as_me: program exited with status $ac_status" >&5
1723       $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726       ac_retval=$ac_status
1727fi
1728  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_run
1733
1734# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1735# -------------------------------------------------------
1736# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1737# the include files in INCLUDES and setting the cache variable VAR
1738# accordingly.
1739ac_fn_c_check_header_mongrel ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746  $as_echo_n "(cached) " >&6
1747fi
1748eval ac_res=\$$3
1749	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750$as_echo "$ac_res" >&6; }
1751else
1752  # Is the header compilable?
1753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1754$as_echo_n "checking $2 usability... " >&6; }
1755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757$4
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"; then :
1761  ac_header_compiler=yes
1762else
1763  ac_header_compiler=no
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1767$as_echo "$ac_header_compiler" >&6; }
1768
1769# Is the header present?
1770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1771$as_echo_n "checking $2 presence... " >&6; }
1772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774#include <$2>
1775_ACEOF
1776if ac_fn_c_try_cpp "$LINENO"; then :
1777  ac_header_preproc=yes
1778else
1779  ac_header_preproc=no
1780fi
1781rm -f conftest.err conftest.$ac_ext
1782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1783$as_echo "$ac_header_preproc" >&6; }
1784
1785# So?  What about this header?
1786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1787  yes:no: )
1788    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1789$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1790    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792    ;;
1793  no:yes:* )
1794    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1795$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1796    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1797$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1798    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1799$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1800    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1801$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1802    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1804    ;;
1805esac
1806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807$as_echo_n "checking for $2... " >&6; }
1808if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809  $as_echo_n "(cached) " >&6
1810else
1811  eval "$3=\$ac_header_compiler"
1812fi
1813eval ac_res=\$$3
1814	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
1816fi
1817  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819} # ac_fn_c_check_header_mongrel
1820
1821# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1822# -------------------------------------------------------
1823# Tests whether HEADER exists and can be compiled using the include files in
1824# INCLUDES, setting the cache variable VAR accordingly.
1825ac_fn_c_check_header_compile ()
1826{
1827  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829$as_echo_n "checking for $2... " >&6; }
1830if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831  $as_echo_n "(cached) " >&6
1832else
1833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h.  */
1835$4
1836#include <$2>
1837_ACEOF
1838if ac_fn_c_try_compile "$LINENO"; then :
1839  eval "$3=yes"
1840else
1841  eval "$3=no"
1842fi
1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844fi
1845eval ac_res=\$$3
1846	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847$as_echo "$ac_res" >&6; }
1848  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849
1850} # ac_fn_c_check_header_compile
1851
1852# ac_fn_c_check_func LINENO FUNC VAR
1853# ----------------------------------
1854# Tests whether FUNC exists, setting the cache variable VAR accordingly
1855ac_fn_c_check_func ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861  $as_echo_n "(cached) " >&6
1862else
1863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h.  */
1865/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1867#define $2 innocuous_$2
1868
1869/* System header to define __stub macros and hopefully few prototypes,
1870    which can conflict with char $2 (); below.
1871    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872    <limits.h> exists even on freestanding compilers.  */
1873
1874#ifdef __STDC__
1875# include <limits.h>
1876#else
1877# include <assert.h>
1878#endif
1879
1880#undef $2
1881
1882/* Override any GCC internal prototype to avoid an error.
1883   Use char because int might match the return type of a GCC
1884   builtin and then its argument prototype would still apply.  */
1885#ifdef __cplusplus
1886extern "C"
1887#endif
1888char $2 ();
1889/* The GNU C library defines this for functions which it implements
1890    to always fail with ENOSYS.  Some functions are actually named
1891    something starting with __ and the normal name is an alias.  */
1892#if defined __stub_$2 || defined __stub___$2
1893choke me
1894#endif
1895
1896int
1897main ()
1898{
1899return $2 ();
1900  ;
1901  return 0;
1902}
1903_ACEOF
1904if ac_fn_c_try_link "$LINENO"; then :
1905  eval "$3=yes"
1906else
1907  eval "$3=no"
1908fi
1909rm -f core conftest.err conftest.$ac_objext \
1910    conftest$ac_exeext conftest.$ac_ext
1911fi
1912eval ac_res=\$$3
1913	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914$as_echo "$ac_res" >&6; }
1915  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917} # ac_fn_c_check_func
1918
1919# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1920# -------------------------------------------
1921# Tests whether TYPE exists after having included INCLUDES, setting cache
1922# variable VAR accordingly.
1923ac_fn_c_check_type ()
1924{
1925  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; }
1928if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1929  $as_echo_n "(cached) " >&6
1930else
1931  eval "$3=no"
1932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934$4
1935int
1936main ()
1937{
1938if (sizeof ($2))
1939	 return 0;
1940  ;
1941  return 0;
1942}
1943_ACEOF
1944if ac_fn_c_try_compile "$LINENO"; then :
1945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947$4
1948int
1949main ()
1950{
1951if (sizeof (($2)))
1952	    return 0;
1953  ;
1954  return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958
1959else
1960  eval "$3=yes"
1961fi
1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965fi
1966eval ac_res=\$$3
1967	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968$as_echo "$ac_res" >&6; }
1969  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971} # ac_fn_c_check_type
1972
1973# ac_fn_c_find_uintX_t LINENO BITS VAR
1974# ------------------------------------
1975# Finds an unsigned integer type with width BITS, setting cache variable VAR
1976# accordingly.
1977ac_fn_c_find_uintX_t ()
1978{
1979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1981$as_echo_n "checking for uint$2_t... " >&6; }
1982if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983  $as_echo_n "(cached) " >&6
1984else
1985  eval "$3=no"
1986     # Order is important - never check a type that is potentially smaller
1987     # than half of the expected target width.
1988     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1989	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1990       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991/* end confdefs.h.  */
1992$ac_includes_default
1993int
1994main ()
1995{
1996static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1997test_array [0] = 0
1998
1999  ;
2000  return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004  case $ac_type in #(
2005  uint$2_t) :
2006    eval "$3=yes" ;; #(
2007  *) :
2008    eval "$3=\$ac_type" ;;
2009esac
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012       eval as_val=\$$3
2013   if test "x$as_val" = x""no; then :
2014
2015else
2016  break
2017fi
2018     done
2019fi
2020eval ac_res=\$$3
2021	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022$as_echo "$ac_res" >&6; }
2023  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024
2025} # ac_fn_c_find_uintX_t
2026
2027# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2028# --------------------------------------------
2029# Tries to find the compile-time value of EXPR in a program that includes
2030# INCLUDES, setting VAR accordingly. Returns whether the value could be
2031# computed
2032ac_fn_c_compute_int ()
2033{
2034  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035  if test "$cross_compiling" = yes; then
2036    # Depending upon the size, compute the lo and hi bounds.
2037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$4
2040int
2041main ()
2042{
2043static int test_array [1 - 2 * !(($2) >= 0)];
2044test_array [0] = 0
2045
2046  ;
2047  return 0;
2048}
2049_ACEOF
2050if ac_fn_c_try_compile "$LINENO"; then :
2051  ac_lo=0 ac_mid=0
2052  while :; do
2053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h.  */
2055$4
2056int
2057main ()
2058{
2059static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060test_array [0] = 0
2061
2062  ;
2063  return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_compile "$LINENO"; then :
2067  ac_hi=$ac_mid; break
2068else
2069  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2070			if test $ac_lo -le $ac_mid; then
2071			  ac_lo= ac_hi=
2072			  break
2073			fi
2074			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2075fi
2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077  done
2078else
2079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$4
2082int
2083main ()
2084{
2085static int test_array [1 - 2 * !(($2) < 0)];
2086test_array [0] = 0
2087
2088  ;
2089  return 0;
2090}
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093  ac_hi=-1 ac_mid=-1
2094  while :; do
2095    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h.  */
2097$4
2098int
2099main ()
2100{
2101static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2102test_array [0] = 0
2103
2104  ;
2105  return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"; then :
2109  ac_lo=$ac_mid; break
2110else
2111  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2112			if test $ac_mid -le $ac_hi; then
2113			  ac_lo= ac_hi=
2114			  break
2115			fi
2116			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119  done
2120else
2121  ac_lo= ac_hi=
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126# Binary search between lo and hi bounds.
2127while test "x$ac_lo" != "x$ac_hi"; do
2128  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h.  */
2131$4
2132int
2133main ()
2134{
2135static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2136test_array [0] = 0
2137
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"; then :
2143  ac_hi=$ac_mid
2144else
2145  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148done
2149case $ac_lo in #((
2150?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2151'') ac_retval=1 ;;
2152esac
2153  else
2154    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h.  */
2156$4
2157static long int longval () { return $2; }
2158static unsigned long int ulongval () { return $2; }
2159#include <stdio.h>
2160#include <stdlib.h>
2161int
2162main ()
2163{
2164
2165  FILE *f = fopen ("conftest.val", "w");
2166  if (! f)
2167    return 1;
2168  if (($2) < 0)
2169    {
2170      long int i = longval ();
2171      if (i != ($2))
2172	return 1;
2173      fprintf (f, "%ld", i);
2174    }
2175  else
2176    {
2177      unsigned long int i = ulongval ();
2178      if (i != ($2))
2179	return 1;
2180      fprintf (f, "%lu", i);
2181    }
2182  /* Do not output a trailing newline, as this causes \r\n confusion
2183     on some platforms.  */
2184  return ferror (f) || fclose (f) != 0;
2185
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_run "$LINENO"; then :
2191  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2192else
2193  ac_retval=1
2194fi
2195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2196  conftest.$ac_objext conftest.beam conftest.$ac_ext
2197rm -f conftest.val
2198
2199  fi
2200  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2201  as_fn_set_status $ac_retval
2202
2203} # ac_fn_c_compute_int
2204cat >auto/config.log <<_ACEOF
2205This file contains any messages produced by compilers while
2206running configure, to aid debugging if configure makes a mistake.
2207
2208It was created by $as_me, which was
2209generated by GNU Autoconf 2.65.  Invocation command line was
2210
2211  $ $0 $@
2212
2213_ACEOF
2214exec 5>>auto/config.log
2215{
2216cat <<_ASUNAME
2217## --------- ##
2218## Platform. ##
2219## --------- ##
2220
2221hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2222uname -m = `(uname -m) 2>/dev/null || echo unknown`
2223uname -r = `(uname -r) 2>/dev/null || echo unknown`
2224uname -s = `(uname -s) 2>/dev/null || echo unknown`
2225uname -v = `(uname -v) 2>/dev/null || echo unknown`
2226
2227/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2228/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2229
2230/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2231/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2232/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2233/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2234/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2235/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2236/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2237
2238_ASUNAME
2239
2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243  IFS=$as_save_IFS
2244  test -z "$as_dir" && as_dir=.
2245    $as_echo "PATH: $as_dir"
2246  done
2247IFS=$as_save_IFS
2248
2249} >&5
2250
2251cat >&5 <<_ACEOF
2252
2253
2254## ----------- ##
2255## Core tests. ##
2256## ----------- ##
2257
2258_ACEOF
2259
2260
2261# Keep a trace of the command line.
2262# Strip out --no-create and --no-recursion so they do not pile up.
2263# Strip out --silent because we don't want to record it for future runs.
2264# Also quote any args containing shell meta-characters.
2265# Make two passes to allow for proper duplicate-argument suppression.
2266ac_configure_args=
2267ac_configure_args0=
2268ac_configure_args1=
2269ac_must_keep_next=false
2270for ac_pass in 1 2
2271do
2272  for ac_arg
2273  do
2274    case $ac_arg in
2275    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2276    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2277    | -silent | --silent | --silen | --sile | --sil)
2278      continue ;;
2279    *\'*)
2280      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2281    esac
2282    case $ac_pass in
2283    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2284    2)
2285      as_fn_append ac_configure_args1 " '$ac_arg'"
2286      if test $ac_must_keep_next = true; then
2287	ac_must_keep_next=false # Got value, back to normal.
2288      else
2289	case $ac_arg in
2290	  *=* | --config-cache | -C | -disable-* | --disable-* \
2291	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2292	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2293	  | -with-* | --with-* | -without-* | --without-* | --x)
2294	    case "$ac_configure_args0 " in
2295	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2296	    esac
2297	    ;;
2298	  -* ) ac_must_keep_next=true ;;
2299	esac
2300      fi
2301      as_fn_append ac_configure_args " '$ac_arg'"
2302      ;;
2303    esac
2304  done
2305done
2306{ ac_configure_args0=; unset ac_configure_args0;}
2307{ ac_configure_args1=; unset ac_configure_args1;}
2308
2309# When interrupted or exit'd, cleanup temporary files, and complete
2310# config.log.  We remove comments because anyway the quotes in there
2311# would cause problems or look ugly.
2312# WARNING: Use '\'' to represent an apostrophe within the trap.
2313# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2314trap 'exit_status=$?
2315  # Save into config.log some information that might help in debugging.
2316  {
2317    echo
2318
2319    cat <<\_ASBOX
2320## ---------------- ##
2321## Cache variables. ##
2322## ---------------- ##
2323_ASBOX
2324    echo
2325    # The following way of writing the cache mishandles newlines in values,
2326(
2327  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2328    eval ac_val=\$$ac_var
2329    case $ac_val in #(
2330    *${as_nl}*)
2331      case $ac_var in #(
2332      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2333$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2334      esac
2335      case $ac_var in #(
2336      _ | IFS | as_nl) ;; #(
2337      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2338      *) { eval $ac_var=; unset $ac_var;} ;;
2339      esac ;;
2340    esac
2341  done
2342  (set) 2>&1 |
2343    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2344    *${as_nl}ac_space=\ *)
2345      sed -n \
2346	"s/'\''/'\''\\\\'\'''\''/g;
2347	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2348      ;; #(
2349    *)
2350      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2351      ;;
2352    esac |
2353    sort
2354)
2355    echo
2356
2357    cat <<\_ASBOX
2358## ----------------- ##
2359## Output variables. ##
2360## ----------------- ##
2361_ASBOX
2362    echo
2363    for ac_var in $ac_subst_vars
2364    do
2365      eval ac_val=\$$ac_var
2366      case $ac_val in
2367      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2368      esac
2369      $as_echo "$ac_var='\''$ac_val'\''"
2370    done | sort
2371    echo
2372
2373    if test -n "$ac_subst_files"; then
2374      cat <<\_ASBOX
2375## ------------------- ##
2376## File substitutions. ##
2377## ------------------- ##
2378_ASBOX
2379      echo
2380      for ac_var in $ac_subst_files
2381      do
2382	eval ac_val=\$$ac_var
2383	case $ac_val in
2384	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385	esac
2386	$as_echo "$ac_var='\''$ac_val'\''"
2387      done | sort
2388      echo
2389    fi
2390
2391    if test -s confdefs.h; then
2392      cat <<\_ASBOX
2393## ----------- ##
2394## confdefs.h. ##
2395## ----------- ##
2396_ASBOX
2397      echo
2398      cat confdefs.h
2399      echo
2400    fi
2401    test "$ac_signal" != 0 &&
2402      $as_echo "$as_me: caught signal $ac_signal"
2403    $as_echo "$as_me: exit $exit_status"
2404  } >&5
2405  rm -f core *.core core.conftest.* &&
2406    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2407    exit $exit_status
2408' 0
2409for ac_signal in 1 2 13 15; do
2410  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2411done
2412ac_signal=0
2413
2414# confdefs.h avoids OS command line length limits that DEFS can exceed.
2415rm -f -r conftest* confdefs.h
2416
2417$as_echo "/* confdefs.h */" > confdefs.h
2418
2419# Predefined preprocessor variables.
2420
2421cat >>confdefs.h <<_ACEOF
2422#define PACKAGE_NAME "$PACKAGE_NAME"
2423_ACEOF
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2427_ACEOF
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_VERSION "$PACKAGE_VERSION"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_STRING "$PACKAGE_STRING"
2435_ACEOF
2436
2437cat >>confdefs.h <<_ACEOF
2438#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2439_ACEOF
2440
2441cat >>confdefs.h <<_ACEOF
2442#define PACKAGE_URL "$PACKAGE_URL"
2443_ACEOF
2444
2445
2446# Let the site file select an alternate cache file if it wants to.
2447# Prefer an explicitly selected file to automatically selected ones.
2448ac_site_file1=NONE
2449ac_site_file2=NONE
2450if test -n "$CONFIG_SITE"; then
2451  ac_site_file1=$CONFIG_SITE
2452elif test "x$prefix" != xNONE; then
2453  ac_site_file1=$prefix/share/config.site
2454  ac_site_file2=$prefix/etc/config.site
2455else
2456  ac_site_file1=$ac_default_prefix/share/config.site
2457  ac_site_file2=$ac_default_prefix/etc/config.site
2458fi
2459for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2460do
2461  test "x$ac_site_file" = xNONE && continue
2462  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2463    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2464$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2465    sed 's/^/| /' "$ac_site_file" >&5
2466    . "$ac_site_file"
2467  fi
2468done
2469
2470if test -r "$cache_file"; then
2471  # Some versions of bash will fail to source /dev/null (special files
2472  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2473  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475$as_echo "$as_me: loading cache $cache_file" >&6;}
2476    case $cache_file in
2477      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2478      *)                      . "./$cache_file";;
2479    esac
2480  fi
2481else
2482  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483$as_echo "$as_me: creating cache $cache_file" >&6;}
2484  >$cache_file
2485fi
2486
2487# Check that the precious variables saved in the cache have kept the same
2488# value.
2489ac_cache_corrupted=false
2490for ac_var in $ac_precious_vars; do
2491  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2492  eval ac_new_set=\$ac_env_${ac_var}_set
2493  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2494  eval ac_new_val=\$ac_env_${ac_var}_value
2495  case $ac_old_set,$ac_new_set in
2496    set,)
2497      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2498$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2499      ac_cache_corrupted=: ;;
2500    ,set)
2501      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2502$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2503      ac_cache_corrupted=: ;;
2504    ,);;
2505    *)
2506      if test "x$ac_old_val" != "x$ac_new_val"; then
2507	# differences in whitespace do not lead to failure.
2508	ac_old_val_w=`echo x $ac_old_val`
2509	ac_new_val_w=`echo x $ac_new_val`
2510	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2511	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2512$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2513	  ac_cache_corrupted=:
2514	else
2515	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2516$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2517	  eval $ac_var=\$ac_old_val
2518	fi
2519	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2520$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2521	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2522$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2523      fi;;
2524  esac
2525  # Pass precious variables to config.status.
2526  if test "$ac_new_set" = set; then
2527    case $ac_new_val in
2528    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2529    *) ac_arg=$ac_var=$ac_new_val ;;
2530    esac
2531    case " $ac_configure_args " in
2532      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2533      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2534    esac
2535  fi
2536done
2537if $ac_cache_corrupted; then
2538  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2541$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2542  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2543fi
2544## -------------------- ##
2545## Main body of script. ##
2546## -------------------- ##
2547
2548ac_ext=c
2549ac_cpp='$CPP $CPPFLAGS'
2550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553
2554
2555ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2556
2557
2558$as_echo "#define UNIX 1" >>confdefs.h
2559
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2561$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2562set x ${MAKE-make}
2563ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2564if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2565  $as_echo_n "(cached) " >&6
2566else
2567  cat >conftest.make <<\_ACEOF
2568SHELL = /bin/sh
2569all:
2570	@echo '@@@%%%=$(MAKE)=@@@%%%'
2571_ACEOF
2572# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2573case `${MAKE-make} -f conftest.make 2>/dev/null` in
2574  *@@@%%%=?*=@@@%%%*)
2575    eval ac_cv_prog_make_${ac_make}_set=yes;;
2576  *)
2577    eval ac_cv_prog_make_${ac_make}_set=no;;
2578esac
2579rm -f conftest.make
2580fi
2581if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583$as_echo "yes" >&6; }
2584  SET_MAKE=
2585else
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
2588  SET_MAKE="MAKE=${MAKE-make}"
2589fi
2590
2591
2592ac_ext=c
2593ac_cpp='$CPP $CPPFLAGS'
2594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597if test -n "$ac_tool_prefix"; then
2598  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2599set dummy ${ac_tool_prefix}gcc; ac_word=$2
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601$as_echo_n "checking for $ac_word... " >&6; }
2602if test "${ac_cv_prog_CC+set}" = set; then :
2603  $as_echo_n "(cached) " >&6
2604else
2605  if test -n "$CC"; then
2606  ac_cv_prog_CC="$CC" # Let the user override the test.
2607else
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611  IFS=$as_save_IFS
2612  test -z "$as_dir" && as_dir=.
2613    for ac_exec_ext in '' $ac_executable_extensions; do
2614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617    break 2
2618  fi
2619done
2620  done
2621IFS=$as_save_IFS
2622
2623fi
2624fi
2625CC=$ac_cv_prog_CC
2626if test -n "$CC"; then
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2628$as_echo "$CC" >&6; }
2629else
2630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631$as_echo "no" >&6; }
2632fi
2633
2634
2635fi
2636if test -z "$ac_cv_prog_CC"; then
2637  ac_ct_CC=$CC
2638  # Extract the first word of "gcc", so it can be a program name with args.
2639set dummy gcc; ac_word=$2
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641$as_echo_n "checking for $ac_word... " >&6; }
2642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2643  $as_echo_n "(cached) " >&6
2644else
2645  if test -n "$ac_ct_CC"; then
2646  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651  IFS=$as_save_IFS
2652  test -z "$as_dir" && as_dir=.
2653    for ac_exec_ext in '' $ac_executable_extensions; do
2654  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655    ac_cv_prog_ac_ct_CC="gcc"
2656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657    break 2
2658  fi
2659done
2660  done
2661IFS=$as_save_IFS
2662
2663fi
2664fi
2665ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666if test -n "$ac_ct_CC"; then
2667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2668$as_echo "$ac_ct_CC" >&6; }
2669else
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671$as_echo "no" >&6; }
2672fi
2673
2674  if test "x$ac_ct_CC" = x; then
2675    CC=""
2676  else
2677    case $cross_compiling:$ac_tool_warned in
2678yes:)
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2681ac_tool_warned=yes ;;
2682esac
2683    CC=$ac_ct_CC
2684  fi
2685else
2686  CC="$ac_cv_prog_CC"
2687fi
2688
2689if test -z "$CC"; then
2690          if test -n "$ac_tool_prefix"; then
2691    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2692set dummy ${ac_tool_prefix}cc; ac_word=$2
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
2695if test "${ac_cv_prog_CC+set}" = set; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  if test -n "$CC"; then
2699  ac_cv_prog_CC="$CC" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704  IFS=$as_save_IFS
2705  test -z "$as_dir" && as_dir=.
2706    for ac_exec_ext in '' $ac_executable_extensions; do
2707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708    ac_cv_prog_CC="${ac_tool_prefix}cc"
2709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710    break 2
2711  fi
2712done
2713  done
2714IFS=$as_save_IFS
2715
2716fi
2717fi
2718CC=$ac_cv_prog_CC
2719if test -n "$CC"; then
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2721$as_echo "$CC" >&6; }
2722else
2723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724$as_echo "no" >&6; }
2725fi
2726
2727
2728  fi
2729fi
2730if test -z "$CC"; then
2731  # Extract the first word of "cc", so it can be a program name with args.
2732set dummy cc; ac_word=$2
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734$as_echo_n "checking for $ac_word... " >&6; }
2735if test "${ac_cv_prog_CC+set}" = set; then :
2736  $as_echo_n "(cached) " >&6
2737else
2738  if test -n "$CC"; then
2739  ac_cv_prog_CC="$CC" # Let the user override the test.
2740else
2741  ac_prog_rejected=no
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745  IFS=$as_save_IFS
2746  test -z "$as_dir" && as_dir=.
2747    for ac_exec_ext in '' $ac_executable_extensions; do
2748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2750       ac_prog_rejected=yes
2751       continue
2752     fi
2753    ac_cv_prog_CC="cc"
2754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755    break 2
2756  fi
2757done
2758  done
2759IFS=$as_save_IFS
2760
2761if test $ac_prog_rejected = yes; then
2762  # We found a bogon in the path, so make sure we never use it.
2763  set dummy $ac_cv_prog_CC
2764  shift
2765  if test $# != 0; then
2766    # We chose a different compiler from the bogus one.
2767    # However, it has the same basename, so the bogon will be chosen
2768    # first if we set CC to just the basename; use the full file name.
2769    shift
2770    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2771  fi
2772fi
2773fi
2774fi
2775CC=$ac_cv_prog_CC
2776if test -n "$CC"; then
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778$as_echo "$CC" >&6; }
2779else
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
2782fi
2783
2784
2785fi
2786if test -z "$CC"; then
2787  if test -n "$ac_tool_prefix"; then
2788  for ac_prog in cl.exe
2789  do
2790    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793$as_echo_n "checking for $ac_word... " >&6; }
2794if test "${ac_cv_prog_CC+set}" = set; then :
2795  $as_echo_n "(cached) " >&6
2796else
2797  if test -n "$CC"; then
2798  ac_cv_prog_CC="$CC" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803  IFS=$as_save_IFS
2804  test -z "$as_dir" && as_dir=.
2805    for ac_exec_ext in '' $ac_executable_extensions; do
2806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809    break 2
2810  fi
2811done
2812  done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817CC=$ac_cv_prog_CC
2818if test -n "$CC"; then
2819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820$as_echo "$CC" >&6; }
2821else
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
2824fi
2825
2826
2827    test -n "$CC" && break
2828  done
2829fi
2830if test -z "$CC"; then
2831  ac_ct_CC=$CC
2832  for ac_prog in cl.exe
2833do
2834  # Extract the first word of "$ac_prog", so it can be a program name with args.
2835set dummy $ac_prog; ac_word=$2
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837$as_echo_n "checking for $ac_word... " >&6; }
2838if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2839  $as_echo_n "(cached) " >&6
2840else
2841  if test -n "$ac_ct_CC"; then
2842  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847  IFS=$as_save_IFS
2848  test -z "$as_dir" && as_dir=.
2849    for ac_exec_ext in '' $ac_executable_extensions; do
2850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851    ac_cv_prog_ac_ct_CC="$ac_prog"
2852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853    break 2
2854  fi
2855done
2856  done
2857IFS=$as_save_IFS
2858
2859fi
2860fi
2861ac_ct_CC=$ac_cv_prog_ac_ct_CC
2862if test -n "$ac_ct_CC"; then
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2864$as_echo "$ac_ct_CC" >&6; }
2865else
2866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867$as_echo "no" >&6; }
2868fi
2869
2870
2871  test -n "$ac_ct_CC" && break
2872done
2873
2874  if test "x$ac_ct_CC" = x; then
2875    CC=""
2876  else
2877    case $cross_compiling:$ac_tool_warned in
2878yes:)
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881ac_tool_warned=yes ;;
2882esac
2883    CC=$ac_ct_CC
2884  fi
2885fi
2886
2887fi
2888
2889
2890test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892as_fn_error "no acceptable C compiler found in \$PATH
2893See \`config.log' for more details." "$LINENO" 5; }
2894
2895# Provide some information about the compiler.
2896$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2897set X $ac_compile
2898ac_compiler=$2
2899for ac_option in --version -v -V -qversion; do
2900  { { ac_try="$ac_compiler $ac_option >&5"
2901case "(($ac_try" in
2902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903  *) ac_try_echo=$ac_try;;
2904esac
2905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2906$as_echo "$ac_try_echo"; } >&5
2907  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2908  ac_status=$?
2909  if test -s conftest.err; then
2910    sed '10a\
2911... rest of stderr output deleted ...
2912         10q' conftest.err >conftest.er1
2913    cat conftest.er1 >&5
2914  fi
2915  rm -f conftest.er1 conftest.err
2916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917  test $ac_status = 0; }
2918done
2919
2920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921/* end confdefs.h.  */
2922
2923int
2924main ()
2925{
2926
2927  ;
2928  return 0;
2929}
2930_ACEOF
2931ac_clean_files_save=$ac_clean_files
2932ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2933# Try to create an executable without -o first, disregard a.out.
2934# It will help us diagnose broken compilers, and finding out an intuition
2935# of exeext.
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2937$as_echo_n "checking whether the C compiler works... " >&6; }
2938ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2939
2940# The possible output files:
2941ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2942
2943ac_rmfiles=
2944for ac_file in $ac_files
2945do
2946  case $ac_file in
2947    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2948    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2949  esac
2950done
2951rm -f $ac_rmfiles
2952
2953if { { ac_try="$ac_link_default"
2954case "(($ac_try" in
2955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956  *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
2960  (eval "$ac_link_default") 2>&5
2961  ac_status=$?
2962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963  test $ac_status = 0; }; then :
2964  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2965# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2966# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2967# so that the user can short-circuit this test for compilers unknown to
2968# Autoconf.
2969for ac_file in $ac_files ''
2970do
2971  test -f "$ac_file" || continue
2972  case $ac_file in
2973    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2974	;;
2975    [ab].out )
2976	# We found the default executable, but exeext='' is most
2977	# certainly right.
2978	break;;
2979    *.* )
2980	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2981	then :; else
2982	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983	fi
2984	# We set ac_cv_exeext here because the later test for it is not
2985	# safe: cross compilers may not add the suffix if given an `-o'
2986	# argument, so we may need to know it at that point already.
2987	# Even if this section looks crufty: it has the advantage of
2988	# actually working.
2989	break;;
2990    * )
2991	break;;
2992  esac
2993done
2994test "$ac_cv_exeext" = no && ac_cv_exeext=
2995
2996else
2997  ac_file=''
2998fi
2999if test -z "$ac_file"; then :
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001$as_echo "no" >&6; }
3002$as_echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007{ as_fn_set_status 77
3008as_fn_error "C compiler cannot create executables
3009See \`config.log' for more details." "$LINENO" 5; }; }
3010else
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3012$as_echo "yes" >&6; }
3013fi
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3015$as_echo_n "checking for C compiler default output file name... " >&6; }
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3017$as_echo "$ac_file" >&6; }
3018ac_exeext=$ac_cv_exeext
3019
3020rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3021ac_clean_files=$ac_clean_files_save
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3023$as_echo_n "checking for suffix of executables... " >&6; }
3024if { { ac_try="$ac_link"
3025case "(($ac_try" in
3026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027  *) ac_try_echo=$ac_try;;
3028esac
3029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030$as_echo "$ac_try_echo"; } >&5
3031  (eval "$ac_link") 2>&5
3032  ac_status=$?
3033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034  test $ac_status = 0; }; then :
3035  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3036# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3037# work properly (i.e., refer to `conftest.exe'), while it won't with
3038# `rm'.
3039for ac_file in conftest.exe conftest conftest.*; do
3040  test -f "$ac_file" || continue
3041  case $ac_file in
3042    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3043    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3044	  break;;
3045    * ) break;;
3046  esac
3047done
3048else
3049  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051as_fn_error "cannot compute suffix of executables: cannot compile and link
3052See \`config.log' for more details." "$LINENO" 5; }
3053fi
3054rm -f conftest conftest$ac_cv_exeext
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3056$as_echo "$ac_cv_exeext" >&6; }
3057
3058rm -f conftest.$ac_ext
3059EXEEXT=$ac_cv_exeext
3060ac_exeext=$EXEEXT
3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062/* end confdefs.h.  */
3063#include <stdio.h>
3064int
3065main ()
3066{
3067FILE *f = fopen ("conftest.out", "w");
3068 return ferror (f) || fclose (f) != 0;
3069
3070  ;
3071  return 0;
3072}
3073_ACEOF
3074ac_clean_files="$ac_clean_files conftest.out"
3075# Check that the compiler produces executables we can run.  If not, either
3076# the compiler is broken, or we cross compile.
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3078$as_echo_n "checking whether we are cross compiling... " >&6; }
3079if test "$cross_compiling" != yes; then
3080  { { ac_try="$ac_link"
3081case "(($ac_try" in
3082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083  *) ac_try_echo=$ac_try;;
3084esac
3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086$as_echo "$ac_try_echo"; } >&5
3087  (eval "$ac_link") 2>&5
3088  ac_status=$?
3089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090  test $ac_status = 0; }
3091  if { ac_try='./conftest$ac_cv_exeext'
3092  { { case "(($ac_try" in
3093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094  *) ac_try_echo=$ac_try;;
3095esac
3096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097$as_echo "$ac_try_echo"; } >&5
3098  (eval "$ac_try") 2>&5
3099  ac_status=$?
3100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101  test $ac_status = 0; }; }; then
3102    cross_compiling=no
3103  else
3104    if test "$cross_compiling" = maybe; then
3105	cross_compiling=yes
3106    else
3107	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109as_fn_error "cannot run C compiled programs.
3110If you meant to cross compile, use \`--host'.
3111See \`config.log' for more details." "$LINENO" 5; }
3112    fi
3113  fi
3114fi
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3116$as_echo "$cross_compiling" >&6; }
3117
3118rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3119ac_clean_files=$ac_clean_files_save
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3121$as_echo_n "checking for suffix of object files... " >&6; }
3122if test "${ac_cv_objext+set}" = set; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h.  */
3127
3128int
3129main ()
3130{
3131
3132  ;
3133  return 0;
3134}
3135_ACEOF
3136rm -f conftest.o conftest.obj
3137if { { ac_try="$ac_compile"
3138case "(($ac_try" in
3139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140  *) ac_try_echo=$ac_try;;
3141esac
3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143$as_echo "$ac_try_echo"; } >&5
3144  (eval "$ac_compile") 2>&5
3145  ac_status=$?
3146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147  test $ac_status = 0; }; then :
3148  for ac_file in conftest.o conftest.obj conftest.*; do
3149  test -f "$ac_file" || continue;
3150  case $ac_file in
3151    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3152    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3153       break;;
3154  esac
3155done
3156else
3157  $as_echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162as_fn_error "cannot compute suffix of object files: cannot compile
3163See \`config.log' for more details." "$LINENO" 5; }
3164fi
3165rm -f conftest.$ac_cv_objext conftest.$ac_ext
3166fi
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3168$as_echo "$ac_cv_objext" >&6; }
3169OBJEXT=$ac_cv_objext
3170ac_objext=$OBJEXT
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3172$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3173if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3174  $as_echo_n "(cached) " >&6
3175else
3176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177/* end confdefs.h.  */
3178
3179int
3180main ()
3181{
3182#ifndef __GNUC__
3183       choke me
3184#endif
3185
3186  ;
3187  return 0;
3188}
3189_ACEOF
3190if ac_fn_c_try_compile "$LINENO"; then :
3191  ac_compiler_gnu=yes
3192else
3193  ac_compiler_gnu=no
3194fi
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197
3198fi
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3200$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3201if test $ac_compiler_gnu = yes; then
3202  GCC=yes
3203else
3204  GCC=
3205fi
3206ac_test_CFLAGS=${CFLAGS+set}
3207ac_save_CFLAGS=$CFLAGS
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3209$as_echo_n "checking whether $CC accepts -g... " >&6; }
3210if test "${ac_cv_prog_cc_g+set}" = set; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  ac_save_c_werror_flag=$ac_c_werror_flag
3214   ac_c_werror_flag=yes
3215   ac_cv_prog_cc_g=no
3216   CFLAGS="-g"
3217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218/* end confdefs.h.  */
3219
3220int
3221main ()
3222{
3223
3224  ;
3225  return 0;
3226}
3227_ACEOF
3228if ac_fn_c_try_compile "$LINENO"; then :
3229  ac_cv_prog_cc_g=yes
3230else
3231  CFLAGS=""
3232      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233/* end confdefs.h.  */
3234
3235int
3236main ()
3237{
3238
3239  ;
3240  return 0;
3241}
3242_ACEOF
3243if ac_fn_c_try_compile "$LINENO"; then :
3244
3245else
3246  ac_c_werror_flag=$ac_save_c_werror_flag
3247	 CFLAGS="-g"
3248	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h.  */
3250
3251int
3252main ()
3253{
3254
3255  ;
3256  return 0;
3257}
3258_ACEOF
3259if ac_fn_c_try_compile "$LINENO"; then :
3260  ac_cv_prog_cc_g=yes
3261fi
3262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263fi
3264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265fi
3266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267   ac_c_werror_flag=$ac_save_c_werror_flag
3268fi
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3270$as_echo "$ac_cv_prog_cc_g" >&6; }
3271if test "$ac_test_CFLAGS" = set; then
3272  CFLAGS=$ac_save_CFLAGS
3273elif test $ac_cv_prog_cc_g = yes; then
3274  if test "$GCC" = yes; then
3275    CFLAGS="-g -O2"
3276  else
3277    CFLAGS="-g"
3278  fi
3279else
3280  if test "$GCC" = yes; then
3281    CFLAGS="-O2"
3282  else
3283    CFLAGS=
3284  fi
3285fi
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3287$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3288if test "${ac_cv_prog_cc_c89+set}" = set; then :
3289  $as_echo_n "(cached) " >&6
3290else
3291  ac_cv_prog_cc_c89=no
3292ac_save_CC=$CC
3293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294/* end confdefs.h.  */
3295#include <stdarg.h>
3296#include <stdio.h>
3297#include <sys/types.h>
3298#include <sys/stat.h>
3299/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3300struct buf { int x; };
3301FILE * (*rcsopen) (struct buf *, struct stat *, int);
3302static char *e (p, i)
3303     char **p;
3304     int i;
3305{
3306  return p[i];
3307}
3308static char *f (char * (*g) (char **, int), char **p, ...)
3309{
3310  char *s;
3311  va_list v;
3312  va_start (v,p);
3313  s = g (p, va_arg (v,int));
3314  va_end (v);
3315  return s;
3316}
3317
3318/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3319   function prototypes and stuff, but not '\xHH' hex character constants.
3320   These don't provoke an error unfortunately, instead are silently treated
3321   as 'x'.  The following induces an error, until -std is added to get
3322   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3323   array size at least.  It's necessary to write '\x00'==0 to get something
3324   that's true only with -std.  */
3325int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3326
3327/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3328   inside strings and character constants.  */
3329#define FOO(x) 'x'
3330int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3331
3332int test (int i, double x);
3333struct s1 {int (*f) (int a);};
3334struct s2 {int (*f) (double a);};
3335int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3336int argc;
3337char **argv;
3338int
3339main ()
3340{
3341return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3342  ;
3343  return 0;
3344}
3345_ACEOF
3346for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3347	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3348do
3349  CC="$ac_save_CC $ac_arg"
3350  if ac_fn_c_try_compile "$LINENO"; then :
3351  ac_cv_prog_cc_c89=$ac_arg
3352fi
3353rm -f core conftest.err conftest.$ac_objext
3354  test "x$ac_cv_prog_cc_c89" != "xno" && break
3355done
3356rm -f conftest.$ac_ext
3357CC=$ac_save_CC
3358
3359fi
3360# AC_CACHE_VAL
3361case "x$ac_cv_prog_cc_c89" in
3362  x)
3363    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3364$as_echo "none needed" >&6; } ;;
3365  xno)
3366    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3367$as_echo "unsupported" >&6; } ;;
3368  *)
3369    CC="$CC $ac_cv_prog_cc_c89"
3370    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3371$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3372esac
3373if test "x$ac_cv_prog_cc_c89" != xno; then :
3374
3375fi
3376
3377ac_ext=c
3378ac_cpp='$CPP $CPPFLAGS'
3379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382	ac_ext=c
3383ac_cpp='$CPP $CPPFLAGS'
3384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3388$as_echo_n "checking how to run the C preprocessor... " >&6; }
3389# On Suns, sometimes $CPP names a directory.
3390if test -n "$CPP" && test -d "$CPP"; then
3391  CPP=
3392fi
3393if test -z "$CPP"; then
3394  if test "${ac_cv_prog_CPP+set}" = set; then :
3395  $as_echo_n "(cached) " >&6
3396else
3397      # Double quotes because CPP needs to be expanded
3398    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3399    do
3400      ac_preproc_ok=false
3401for ac_c_preproc_warn_flag in '' yes
3402do
3403  # Use a header file that comes with gcc, so configuring glibc
3404  # with a fresh cross-compiler works.
3405  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3406  # <limits.h> exists even on freestanding compilers.
3407  # On the NeXT, cc -E runs the code through the compiler's parser,
3408  # not just through cpp. "Syntax error" is here to catch this case.
3409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411#ifdef __STDC__
3412# include <limits.h>
3413#else
3414# include <assert.h>
3415#endif
3416		     Syntax error
3417_ACEOF
3418if ac_fn_c_try_cpp "$LINENO"; then :
3419
3420else
3421  # Broken: fails on valid input.
3422continue
3423fi
3424rm -f conftest.err conftest.$ac_ext
3425
3426  # OK, works on sane cases.  Now check whether nonexistent headers
3427  # can be detected and how.
3428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h.  */
3430#include <ac_nonexistent.h>
3431_ACEOF
3432if ac_fn_c_try_cpp "$LINENO"; then :
3433  # Broken: success on invalid input.
3434continue
3435else
3436  # Passes both tests.
3437ac_preproc_ok=:
3438break
3439fi
3440rm -f conftest.err conftest.$ac_ext
3441
3442done
3443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444rm -f conftest.err conftest.$ac_ext
3445if $ac_preproc_ok; then :
3446  break
3447fi
3448
3449    done
3450    ac_cv_prog_CPP=$CPP
3451
3452fi
3453  CPP=$ac_cv_prog_CPP
3454else
3455  ac_cv_prog_CPP=$CPP
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3458$as_echo "$CPP" >&6; }
3459ac_preproc_ok=false
3460for ac_c_preproc_warn_flag in '' yes
3461do
3462  # Use a header file that comes with gcc, so configuring glibc
3463  # with a fresh cross-compiler works.
3464  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3465  # <limits.h> exists even on freestanding compilers.
3466  # On the NeXT, cc -E runs the code through the compiler's parser,
3467  # not just through cpp. "Syntax error" is here to catch this case.
3468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470#ifdef __STDC__
3471# include <limits.h>
3472#else
3473# include <assert.h>
3474#endif
3475		     Syntax error
3476_ACEOF
3477if ac_fn_c_try_cpp "$LINENO"; then :
3478
3479else
3480  # Broken: fails on valid input.
3481continue
3482fi
3483rm -f conftest.err conftest.$ac_ext
3484
3485  # OK, works on sane cases.  Now check whether nonexistent headers
3486  # can be detected and how.
3487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488/* end confdefs.h.  */
3489#include <ac_nonexistent.h>
3490_ACEOF
3491if ac_fn_c_try_cpp "$LINENO"; then :
3492  # Broken: success on invalid input.
3493continue
3494else
3495  # Passes both tests.
3496ac_preproc_ok=:
3497break
3498fi
3499rm -f conftest.err conftest.$ac_ext
3500
3501done
3502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503rm -f conftest.err conftest.$ac_ext
3504if $ac_preproc_ok; then :
3505
3506else
3507  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509as_fn_error "C preprocessor \"$CPP\" fails sanity check
3510See \`config.log' for more details." "$LINENO" 5; }
3511fi
3512
3513ac_ext=c
3514ac_cpp='$CPP $CPPFLAGS'
3515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518
3519
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3521$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3522if test "${ac_cv_path_GREP+set}" = set; then :
3523  $as_echo_n "(cached) " >&6
3524else
3525  if test -z "$GREP"; then
3526  ac_path_GREP_found=false
3527  # Loop through the user's path and test for each of PROGNAME-LIST
3528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3530do
3531  IFS=$as_save_IFS
3532  test -z "$as_dir" && as_dir=.
3533    for ac_prog in grep ggrep; do
3534    for ac_exec_ext in '' $ac_executable_extensions; do
3535      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3536      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3537# Check for GNU ac_path_GREP and select it if it is found.
3538  # Check for GNU $ac_path_GREP
3539case `"$ac_path_GREP" --version 2>&1` in
3540*GNU*)
3541  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3542*)
3543  ac_count=0
3544  $as_echo_n 0123456789 >"conftest.in"
3545  while :
3546  do
3547    cat "conftest.in" "conftest.in" >"conftest.tmp"
3548    mv "conftest.tmp" "conftest.in"
3549    cp "conftest.in" "conftest.nl"
3550    $as_echo 'GREP' >> "conftest.nl"
3551    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3552    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3553    as_fn_arith $ac_count + 1 && ac_count=$as_val
3554    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3555      # Best one so far, save it but keep looking for a better one
3556      ac_cv_path_GREP="$ac_path_GREP"
3557      ac_path_GREP_max=$ac_count
3558    fi
3559    # 10*(2^10) chars as input seems more than enough
3560    test $ac_count -gt 10 && break
3561  done
3562  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3563esac
3564
3565      $ac_path_GREP_found && break 3
3566    done
3567  done
3568  done
3569IFS=$as_save_IFS
3570  if test -z "$ac_cv_path_GREP"; then
3571    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3572  fi
3573else
3574  ac_cv_path_GREP=$GREP
3575fi
3576
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3579$as_echo "$ac_cv_path_GREP" >&6; }
3580 GREP="$ac_cv_path_GREP"
3581
3582
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3584$as_echo_n "checking for egrep... " >&6; }
3585if test "${ac_cv_path_EGREP+set}" = set; then :
3586  $as_echo_n "(cached) " >&6
3587else
3588  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3589   then ac_cv_path_EGREP="$GREP -E"
3590   else
3591     if test -z "$EGREP"; then
3592  ac_path_EGREP_found=false
3593  # Loop through the user's path and test for each of PROGNAME-LIST
3594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3596do
3597  IFS=$as_save_IFS
3598  test -z "$as_dir" && as_dir=.
3599    for ac_prog in egrep; do
3600    for ac_exec_ext in '' $ac_executable_extensions; do
3601      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3602      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3603# Check for GNU ac_path_EGREP and select it if it is found.
3604  # Check for GNU $ac_path_EGREP
3605case `"$ac_path_EGREP" --version 2>&1` in
3606*GNU*)
3607  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3608*)
3609  ac_count=0
3610  $as_echo_n 0123456789 >"conftest.in"
3611  while :
3612  do
3613    cat "conftest.in" "conftest.in" >"conftest.tmp"
3614    mv "conftest.tmp" "conftest.in"
3615    cp "conftest.in" "conftest.nl"
3616    $as_echo 'EGREP' >> "conftest.nl"
3617    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3618    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3619    as_fn_arith $ac_count + 1 && ac_count=$as_val
3620    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3621      # Best one so far, save it but keep looking for a better one
3622      ac_cv_path_EGREP="$ac_path_EGREP"
3623      ac_path_EGREP_max=$ac_count
3624    fi
3625    # 10*(2^10) chars as input seems more than enough
3626    test $ac_count -gt 10 && break
3627  done
3628  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3629esac
3630
3631      $ac_path_EGREP_found && break 3
3632    done
3633  done
3634  done
3635IFS=$as_save_IFS
3636  if test -z "$ac_cv_path_EGREP"; then
3637    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3638  fi
3639else
3640  ac_cv_path_EGREP=$EGREP
3641fi
3642
3643   fi
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3646$as_echo "$ac_cv_path_EGREP" >&6; }
3647 EGREP="$ac_cv_path_EGREP"
3648
3649
3650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651/* end confdefs.h.  */
3652
3653_ACEOF
3654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3655  $EGREP "" >/dev/null 2>&1; then :
3656
3657fi
3658rm -f conftest*
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3660$as_echo_n "checking for library containing strerror... " >&6; }
3661if test "${ac_cv_search_strerror+set}" = set; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  ac_func_search_save_LIBS=$LIBS
3665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h.  */
3667
3668/* Override any GCC internal prototype to avoid an error.
3669   Use char because int might match the return type of a GCC
3670   builtin and then its argument prototype would still apply.  */
3671#ifdef __cplusplus
3672extern "C"
3673#endif
3674char strerror ();
3675int
3676main ()
3677{
3678return strerror ();
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683for ac_lib in '' cposix; do
3684  if test -z "$ac_lib"; then
3685    ac_res="none required"
3686  else
3687    ac_res=-l$ac_lib
3688    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3689  fi
3690  if ac_fn_c_try_link "$LINENO"; then :
3691  ac_cv_search_strerror=$ac_res
3692fi
3693rm -f core conftest.err conftest.$ac_objext \
3694    conftest$ac_exeext
3695  if test "${ac_cv_search_strerror+set}" = set; then :
3696  break
3697fi
3698done
3699if test "${ac_cv_search_strerror+set}" = set; then :
3700
3701else
3702  ac_cv_search_strerror=no
3703fi
3704rm conftest.$ac_ext
3705LIBS=$ac_func_search_save_LIBS
3706fi
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3708$as_echo "$ac_cv_search_strerror" >&6; }
3709ac_res=$ac_cv_search_strerror
3710if test "$ac_res" != no; then :
3711  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3712
3713fi
3714	for ac_prog in gawk mawk nawk awk
3715do
3716  # Extract the first word of "$ac_prog", so it can be a program name with args.
3717set dummy $ac_prog; ac_word=$2
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719$as_echo_n "checking for $ac_word... " >&6; }
3720if test "${ac_cv_prog_AWK+set}" = set; then :
3721  $as_echo_n "(cached) " >&6
3722else
3723  if test -n "$AWK"; then
3724  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3725else
3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729  IFS=$as_save_IFS
3730  test -z "$as_dir" && as_dir=.
3731    for ac_exec_ext in '' $ac_executable_extensions; do
3732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733    ac_cv_prog_AWK="$ac_prog"
3734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735    break 2
3736  fi
3737done
3738  done
3739IFS=$as_save_IFS
3740
3741fi
3742fi
3743AWK=$ac_cv_prog_AWK
3744if test -n "$AWK"; then
3745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3746$as_echo "$AWK" >&6; }
3747else
3748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749$as_echo "no" >&6; }
3750fi
3751
3752
3753  test -n "$AWK" && break
3754done
3755
3756# Extract the first word of "strip", so it can be a program name with args.
3757set dummy strip; ac_word=$2
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759$as_echo_n "checking for $ac_word... " >&6; }
3760if test "${ac_cv_prog_STRIP+set}" = set; then :
3761  $as_echo_n "(cached) " >&6
3762else
3763  if test -n "$STRIP"; then
3764  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3765else
3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769  IFS=$as_save_IFS
3770  test -z "$as_dir" && as_dir=.
3771    for ac_exec_ext in '' $ac_executable_extensions; do
3772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773    ac_cv_prog_STRIP="strip"
3774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775    break 2
3776  fi
3777done
3778  done
3779IFS=$as_save_IFS
3780
3781  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3782fi
3783fi
3784STRIP=$ac_cv_prog_STRIP
3785if test -n "$STRIP"; then
3786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3787$as_echo "$STRIP" >&6; }
3788else
3789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790$as_echo "no" >&6; }
3791fi
3792
3793
3794
3795
3796
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3798$as_echo_n "checking for ANSI C header files... " >&6; }
3799if test "${ac_cv_header_stdc+set}" = set; then :
3800  $as_echo_n "(cached) " >&6
3801else
3802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h.  */
3804#include <stdlib.h>
3805#include <stdarg.h>
3806#include <string.h>
3807#include <float.h>
3808
3809int
3810main ()
3811{
3812
3813  ;
3814  return 0;
3815}
3816_ACEOF
3817if ac_fn_c_try_compile "$LINENO"; then :
3818  ac_cv_header_stdc=yes
3819else
3820  ac_cv_header_stdc=no
3821fi
3822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823
3824if test $ac_cv_header_stdc = yes; then
3825  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827/* end confdefs.h.  */
3828#include <string.h>
3829
3830_ACEOF
3831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3832  $EGREP "memchr" >/dev/null 2>&1; then :
3833
3834else
3835  ac_cv_header_stdc=no
3836fi
3837rm -f conftest*
3838
3839fi
3840
3841if test $ac_cv_header_stdc = yes; then
3842  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844/* end confdefs.h.  */
3845#include <stdlib.h>
3846
3847_ACEOF
3848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849  $EGREP "free" >/dev/null 2>&1; then :
3850
3851else
3852  ac_cv_header_stdc=no
3853fi
3854rm -f conftest*
3855
3856fi
3857
3858if test $ac_cv_header_stdc = yes; then
3859  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3860  if test "$cross_compiling" = yes; then :
3861  :
3862else
3863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h.  */
3865#include <ctype.h>
3866#include <stdlib.h>
3867#if ((' ' & 0x0FF) == 0x020)
3868# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3869# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3870#else
3871# define ISLOWER(c) \
3872		   (('a' <= (c) && (c) <= 'i') \
3873		     || ('j' <= (c) && (c) <= 'r') \
3874		     || ('s' <= (c) && (c) <= 'z'))
3875# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3876#endif
3877
3878#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3879int
3880main ()
3881{
3882  int i;
3883  for (i = 0; i < 256; i++)
3884    if (XOR (islower (i), ISLOWER (i))
3885	|| toupper (i) != TOUPPER (i))
3886      return 2;
3887  return 0;
3888}
3889_ACEOF
3890if ac_fn_c_try_run "$LINENO"; then :
3891
3892else
3893  ac_cv_header_stdc=no
3894fi
3895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3896  conftest.$ac_objext conftest.beam conftest.$ac_ext
3897fi
3898
3899fi
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3902$as_echo "$ac_cv_header_stdc" >&6; }
3903if test $ac_cv_header_stdc = yes; then
3904
3905$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3906
3907fi
3908
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
3910$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3911if test "${ac_cv_header_sys_wait_h+set}" = set; then :
3912  $as_echo_n "(cached) " >&6
3913else
3914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915/* end confdefs.h.  */
3916#include <sys/types.h>
3917#include <sys/wait.h>
3918#ifndef WEXITSTATUS
3919# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3920#endif
3921#ifndef WIFEXITED
3922# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3923#endif
3924
3925int
3926main ()
3927{
3928  int s;
3929  wait (&s);
3930  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3931  ;
3932  return 0;
3933}
3934_ACEOF
3935if ac_fn_c_try_compile "$LINENO"; then :
3936  ac_cv_header_sys_wait_h=yes
3937else
3938  ac_cv_header_sys_wait_h=no
3939fi
3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941fi
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
3943$as_echo "$ac_cv_header_sys_wait_h" >&6; }
3944if test $ac_cv_header_sys_wait_h = yes; then
3945
3946$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
3947
3948fi
3949
3950
3951if test -z "$CFLAGS"; then
3952  CFLAGS="-O"
3953  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3954fi
3955if test "$GCC" = yes; then
3956    gccversion=`"$CC" -dumpversion`
3957  if test "x$gccversion" = "x"; then
3958        gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3959  fi
3960    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3961    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3962    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3963  else
3964    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3965      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3966      CFLAGS="$CFLAGS -fno-strength-reduce"
3967    fi
3968  fi
3969fi
3970
3971if test "$cross_compiling" = yes; then
3972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3973$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3974fi
3975
3976test "$GCC" = yes && CPP_MM=M;
3977
3978if test -f ./toolcheck; then
3979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
3980$as_echo "$as_me: checking for buggy tools..." >&6;}
3981  sh ./toolcheck 1>&6
3982fi
3983
3984OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3985
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
3987$as_echo_n "checking for BeOS... " >&6; }
3988case `uname` in
3989    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3990		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3991$as_echo "yes" >&6; };;
3992    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; };;
3994esac
3995
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
3997$as_echo_n "checking for QNX... " >&6; }
3998case `uname` in
3999    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4000		test -z "$with_x" && with_x=no
4001		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4002$as_echo "yes" >&6; };;
4003    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004$as_echo "no" >&6; };;
4005esac
4006
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4008$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4009if test "`(uname) 2>/dev/null`" = Darwin; then
4010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4011$as_echo "yes" >&6; }
4012
4013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4014$as_echo_n "checking --disable-darwin argument... " >&6; }
4015  # Check whether --enable-darwin was given.
4016if test "${enable_darwin+set}" = set; then :
4017  enableval=$enable_darwin;
4018else
4019  enable_darwin="yes"
4020fi
4021
4022  if test "$enable_darwin" = "yes"; then
4023    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024$as_echo "no" >&6; }
4025    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4026$as_echo_n "checking if Darwin files are there... " >&6; }
4027    if test -f os_macosx.m; then
4028      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4029$as_echo "yes" >&6; }
4030    else
4031      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4032$as_echo "no, Darwin support disabled" >&6; }
4033      enable_darwin=no
4034    fi
4035  else
4036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4037$as_echo "yes, Darwin support excluded" >&6; }
4038  fi
4039
4040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4041$as_echo_n "checking --with-mac-arch argument... " >&6; }
4042
4043# Check whether --with-mac-arch was given.
4044if test "${with_mac_arch+set}" = set; then :
4045  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4046$as_echo "$MACARCH" >&6; }
4047else
4048  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4049$as_echo "defaulting to $MACARCH" >&6; }
4050fi
4051
4052
4053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4054$as_echo_n "checking --with-developer-dir argument... " >&6; }
4055
4056# Check whether --with-developer-dir was given.
4057if test "${with_developer_dir+set}" = set; then :
4058  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4059$as_echo "$DEVELOPER_DIR" >&6; }
4060else
4061  DEVELOPER_DIR=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4062$as_echo "not present" >&6; }
4063fi
4064
4065
4066  if test "x$DEVELOPER_DIR" = "x"; then
4067    # Extract the first word of "xcode-select", so it can be a program name with args.
4068set dummy xcode-select; ac_word=$2
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070$as_echo_n "checking for $ac_word... " >&6; }
4071if test "${ac_cv_path_XCODE_SELECT+set}" = set; then :
4072  $as_echo_n "(cached) " >&6
4073else
4074  case $XCODE_SELECT in
4075  [\\/]* | ?:[\\/]*)
4076  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4077  ;;
4078  *)
4079  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082  IFS=$as_save_IFS
4083  test -z "$as_dir" && as_dir=.
4084    for ac_exec_ext in '' $ac_executable_extensions; do
4085  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088    break 2
4089  fi
4090done
4091  done
4092IFS=$as_save_IFS
4093
4094  ;;
4095esac
4096fi
4097XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4098if test -n "$XCODE_SELECT"; then
4099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4100$as_echo "$XCODE_SELECT" >&6; }
4101else
4102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103$as_echo "no" >&6; }
4104fi
4105
4106
4107    if test "x$XCODE_SELECT" != "x"; then
4108      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4109$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4110      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4111      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4112$as_echo "$DEVELOPER_DIR" >&6; }
4113    else
4114      DEVELOPER_DIR=/Developer
4115    fi
4116  fi
4117
4118  if test "x$MACARCH" = "xboth"; then
4119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4120$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4121                            save_cppflags="$CPPFLAGS"
4122    save_cflags="$CFLAGS"
4123    save_ldflags="$LDFLAGS"
4124    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h.  */
4127
4128int
4129main ()
4130{
4131
4132  ;
4133  return 0;
4134}
4135_ACEOF
4136if ac_fn_c_try_link "$LINENO"; then :
4137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4138$as_echo "found" >&6; }
4139else
4140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4141$as_echo "not found" >&6; }
4142	CFLAGS="$save_cflags"
4143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4144$as_echo_n "checking if Intel architecture is supported... " >&6; }
4145	CPPFLAGS="$CPPFLAGS -arch i386"
4146	LDFLAGS="$save_ldflags -arch i386"
4147	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149
4150int
4151main ()
4152{
4153
4154  ;
4155  return 0;
4156}
4157_ACEOF
4158if ac_fn_c_try_link "$LINENO"; then :
4159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4160$as_echo "yes" >&6; }; MACARCH="intel"
4161else
4162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163$as_echo "no" >&6; }
4164		MACARCH="ppc"
4165		CPPFLAGS="$save_cppflags -arch ppc"
4166		LDFLAGS="$save_ldflags -arch ppc"
4167fi
4168rm -f core conftest.err conftest.$ac_objext \
4169    conftest$ac_exeext conftest.$ac_ext
4170fi
4171rm -f core conftest.err conftest.$ac_objext \
4172    conftest$ac_exeext conftest.$ac_ext
4173  elif test "x$MACARCH" = "xintel"; then
4174    CPPFLAGS="$CPPFLAGS -arch intel"
4175    LDFLAGS="$LDFLAGS -arch intel"
4176  elif test "x$MACARCH" = "xppc"; then
4177    CPPFLAGS="$CPPFLAGS -arch ppc"
4178    LDFLAGS="$LDFLAGS -arch ppc"
4179  fi
4180
4181  if test "$enable_darwin" = "yes"; then
4182    MACOSX=yes
4183    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4184    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4185        CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
4186
4187                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4188for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4189		  inttypes.h stdint.h unistd.h
4190do :
4191  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4192ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4193"
4194eval as_val=\$$as_ac_Header
4195   if test "x$as_val" = x""yes; then :
4196  cat >>confdefs.h <<_ACEOF
4197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4198_ACEOF
4199
4200fi
4201
4202done
4203
4204
4205ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4206if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
4207  CARBON=yes
4208fi
4209
4210
4211    if test "x$CARBON" = "xyes"; then
4212      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2; then
4213	with_x=no
4214      fi
4215    fi
4216  fi
4217
4218        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4219    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4220  fi
4221
4222else
4223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224$as_echo "no" >&6; }
4225fi
4226
4227
4228
4229
4230if test "$cross_compiling" = no; then
4231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4232$as_echo_n "checking --with-local-dir argument... " >&6; }
4233  have_local_include=''
4234  have_local_lib=''
4235
4236# Check whether --with-local-dir was given.
4237if test "${with_local_dir+set}" = set; then :
4238  withval=$with_local_dir;
4239    local_dir="$withval"
4240    case "$withval" in
4241    */*) ;;
4242    no)
4243      # avoid adding local dir to LDFLAGS and CPPFLAGS
4244      have_local_dir=yes
4245      have_local_lib=yes
4246      ;;
4247    *) as_fn_error "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4248    esac
4249	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4250$as_echo "$local_dir" >&6; }
4251
4252else
4253
4254    local_dir=/usr/local
4255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4256$as_echo "Defaulting to $local_dir" >&6; }
4257
4258fi
4259
4260  if test "$GCC" = yes -a "$local_dir" != no; then
4261    echo 'void f(){}' > conftest.c
4262        have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4263    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4264    rm -f conftest.c conftest.o
4265  fi
4266  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4267    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4268    if test "$tt" = "$LDFLAGS"; then
4269      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4270    fi
4271  fi
4272  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4273    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4274    if test "$tt" = "$CPPFLAGS"; then
4275      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4276    fi
4277  fi
4278fi
4279
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4281$as_echo_n "checking --with-vim-name argument... " >&6; }
4282
4283# Check whether --with-vim-name was given.
4284if test "${with_vim_name+set}" = set; then :
4285  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4286$as_echo "$VIMNAME" >&6; }
4287else
4288  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4289$as_echo "Defaulting to $VIMNAME" >&6; }
4290fi
4291
4292
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4294$as_echo_n "checking --with-ex-name argument... " >&6; }
4295
4296# Check whether --with-ex-name was given.
4297if test "${with_ex_name+set}" = set; then :
4298  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4299$as_echo "$EXNAME" >&6; }
4300else
4301  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4302$as_echo "Defaulting to ex" >&6; }
4303fi
4304
4305
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4307$as_echo_n "checking --with-view-name argument... " >&6; }
4308
4309# Check whether --with-view-name was given.
4310if test "${with_view_name+set}" = set; then :
4311  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4312$as_echo "$VIEWNAME" >&6; }
4313else
4314  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4315$as_echo "Defaulting to view" >&6; }
4316fi
4317
4318
4319
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4321$as_echo_n "checking --with-global-runtime argument... " >&6; }
4322
4323# Check whether --with-global-runtime was given.
4324if test "${with_global_runtime+set}" = set; then :
4325  withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4326$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4327#define RUNTIME_GLOBAL "$withval"
4328_ACEOF
4329
4330else
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332$as_echo "no" >&6; }
4333fi
4334
4335
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4337$as_echo_n "checking --with-modified-by argument... " >&6; }
4338
4339# Check whether --with-modified-by was given.
4340if test "${with_modified_by+set}" = set; then :
4341  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4342$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4343#define MODIFIED_BY "$withval"
4344_ACEOF
4345
4346else
4347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348$as_echo "no" >&6; }
4349fi
4350
4351
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4353$as_echo_n "checking if character set is EBCDIC... " >&6; }
4354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355/* end confdefs.h.  */
4356
4357int
4358main ()
4359{
4360 /* TryCompile function for CharSet.
4361   Treat any failure as ASCII for compatibility with existing art.
4362   Use compile-time rather than run-time tests for cross-compiler
4363   tolerance.  */
4364#if '0'!=240
4365make an error "Character set is not EBCDIC"
4366#endif
4367  ;
4368  return 0;
4369}
4370_ACEOF
4371if ac_fn_c_try_compile "$LINENO"; then :
4372   # TryCompile action if true
4373cf_cv_ebcdic=yes
4374else
4375   # TryCompile action if false
4376cf_cv_ebcdic=no
4377fi
4378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379# end of TryCompile ])
4380# end of CacheVal CvEbcdic
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4382$as_echo "$cf_cv_ebcdic" >&6; }
4383case "$cf_cv_ebcdic" in  #(vi
4384    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4385
4386		line_break='"\\n"'
4387		;;
4388    *)		line_break='"\\012"';;
4389esac
4390
4391
4392if test "$cf_cv_ebcdic" = "yes"; then
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4394$as_echo_n "checking for z/OS Unix... " >&6; }
4395case `uname` in
4396    OS/390)	zOSUnix="yes";
4397										if test "$CC" = "cc"; then
4398		  ccm="$_CC_CCMODE"
4399		  ccn="CC"
4400		else
4401		  if test "$CC" = "c89"; then
4402		    ccm="$_CC_C89MODE"
4403		    ccn="C89"
4404		  else
4405		    ccm=1
4406		  fi
4407		fi
4408		if test "$ccm" != "1"; then
4409		  echo ""
4410		  echo "------------------------------------------"
4411		  echo " On z/OS Unix, the environment variable"
4412		  echo " __CC_${ccn}MODE must be set to \"1\"!"
4413		  echo " Do:"
4414		  echo "    export _CC_${ccn}MODE=1"
4415		  echo " and then call configure again."
4416		  echo "------------------------------------------"
4417		  exit 1
4418		fi
4419		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)";
4420                LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4421		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4422$as_echo "yes" >&6; }
4423		;;
4424    *)		zOSUnix="no";
4425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427		;;
4428esac
4429fi
4430
4431if test "$zOSUnix" = "yes"; then
4432    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
4433else
4434    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
4435fi
4436
4437
4438
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
4440$as_echo_n "checking --disable-selinux argument... " >&6; }
4441# Check whether --enable-selinux was given.
4442if test "${enable_selinux+set}" = set; then :
4443  enableval=$enable_selinux;
4444else
4445  enable_selinux="yes"
4446fi
4447
4448if test "$enable_selinux" = "yes"; then
4449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450$as_echo "no" >&6; }
4451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
4452$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4453if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  ac_check_lib_save_LIBS=$LIBS
4457LIBS="-lselinux  $LIBS"
4458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h.  */
4460
4461/* Override any GCC internal prototype to avoid an error.
4462   Use char because int might match the return type of a GCC
4463   builtin and then its argument prototype would still apply.  */
4464#ifdef __cplusplus
4465extern "C"
4466#endif
4467char is_selinux_enabled ();
4468int
4469main ()
4470{
4471return is_selinux_enabled ();
4472  ;
4473  return 0;
4474}
4475_ACEOF
4476if ac_fn_c_try_link "$LINENO"; then :
4477  ac_cv_lib_selinux_is_selinux_enabled=yes
4478else
4479  ac_cv_lib_selinux_is_selinux_enabled=no
4480fi
4481rm -f core conftest.err conftest.$ac_objext \
4482    conftest$ac_exeext conftest.$ac_ext
4483LIBS=$ac_check_lib_save_LIBS
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4486$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4487if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
4488  LIBS="$LIBS -lselinux"
4489	   $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
4490
4491fi
4492
4493else
4494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4495$as_echo "yes" >&6; }
4496fi
4497
4498
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
4500$as_echo_n "checking --with-features argument... " >&6; }
4501
4502# Check whether --with-features was given.
4503if test "${with_features+set}" = set; then :
4504  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
4505$as_echo "$features" >&6; }
4506else
4507  features="normal"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to normal" >&5
4508$as_echo "Defaulting to normal" >&6; }
4509fi
4510
4511
4512dovimdiff=""
4513dogvimdiff=""
4514case "$features" in
4515  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
4516 ;;
4517  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
4518 ;;
4519  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
4520 dovimdiff="installvimdiff";
4521			dogvimdiff="installgvimdiff" ;;
4522  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
4523 dovimdiff="installvimdiff";
4524			dogvimdiff="installgvimdiff" ;;
4525  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
4526 dovimdiff="installvimdiff";
4527			dogvimdiff="installgvimdiff" ;;
4528  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
4529$as_echo "Sorry, $features is not supported" >&6; } ;;
4530esac
4531
4532
4533
4534
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
4536$as_echo_n "checking --with-compiledby argument... " >&6; }
4537
4538# Check whether --with-compiledby was given.
4539if test "${with_compiledby+set}" = set; then :
4540  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4541$as_echo "$withval" >&6; }
4542else
4543  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544$as_echo "no" >&6; }
4545fi
4546
4547
4548
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
4550$as_echo_n "checking --disable-xsmp argument... " >&6; }
4551# Check whether --enable-xsmp was given.
4552if test "${enable_xsmp+set}" = set; then :
4553  enableval=$enable_xsmp;
4554else
4555  enable_xsmp="yes"
4556fi
4557
4558
4559if test "$enable_xsmp" = "yes"; then
4560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561$as_echo "no" >&6; }
4562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
4563$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4564  # Check whether --enable-xsmp-interact was given.
4565if test "${enable_xsmp_interact+set}" = set; then :
4566  enableval=$enable_xsmp_interact;
4567else
4568  enable_xsmp_interact="yes"
4569fi
4570
4571  if test "$enable_xsmp_interact" = "yes"; then
4572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573$as_echo "no" >&6; }
4574    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
4575
4576  else
4577    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4578$as_echo "yes" >&6; }
4579  fi
4580else
4581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4582$as_echo "yes" >&6; }
4583fi
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
4586$as_echo_n "checking --enable-luainterp argument... " >&6; }
4587# Check whether --enable-luainterp was given.
4588if test "${enable_luainterp+set}" = set; then :
4589  enableval=$enable_luainterp;
4590else
4591  enable_luainterp="no"
4592fi
4593
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
4595$as_echo "$enable_luainterp" >&6; }
4596
4597if test "$enable_luainterp" = "yes"; then
4598
4599
4600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
4601$as_echo_n "checking --with-lua-prefix argument... " >&6; }
4602
4603# Check whether --with-lua_prefix was given.
4604if test "${with_lua_prefix+set}" = set; then :
4605  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
4606$as_echo "$with_lua_prefix" >&6; }
4607else
4608  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609$as_echo "no" >&6; }
4610fi
4611
4612
4613  if test "X$with_lua_prefix" != "X"; then
4614       vi_cv_path_lua_pfx="$with_lua_prefix"
4615  else
4616    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
4617$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
4618    if test "X$LUA_PREFIX" != "X"; then
4619	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
4620$as_echo "\"$LUA_PREFIX\"" >&6; }
4621	vi_cv_path_lua_pfx="$LUA_PREFIX"
4622    else
4623	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
4624$as_echo "not set, default to /usr" >&6; }
4625	vi_cv_path_lua_pfx="/usr"
4626    fi
4627  fi
4628
4629  LUA_INC=
4630  if test "X$vi_cv_path_lua_pfx" != "X"; then
4631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
4632$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
4633    if test -f $vi_cv_path_lua_pfx/include/lua.h; then
4634      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635$as_echo "yes" >&6; }
4636    else
4637      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
4639            # Extract the first word of "lua", so it can be a program name with args.
4640set dummy lua; ac_word=$2
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642$as_echo_n "checking for $ac_word... " >&6; }
4643if test "${ac_cv_path_vi_cv_path_lua+set}" = set; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  case $vi_cv_path_lua in
4647  [\\/]* | ?:[\\/]*)
4648  ac_cv_path_vi_cv_path_lua="$vi_cv_path_lua" # Let the user override the test with a path.
4649  ;;
4650  *)
4651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656    for ac_exec_ext in '' $ac_executable_extensions; do
4657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658    ac_cv_path_vi_cv_path_lua="$as_dir/$ac_word$ac_exec_ext"
4659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660    break 2
4661  fi
4662done
4663  done
4664IFS=$as_save_IFS
4665
4666  ;;
4667esac
4668fi
4669vi_cv_path_lua=$ac_cv_path_vi_cv_path_lua
4670if test -n "$vi_cv_path_lua"; then
4671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_lua" >&5
4672$as_echo "$vi_cv_path_lua" >&6; }
4673else
4674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675$as_echo "no" >&6; }
4676fi
4677
4678
4679      if test "X$vi_cv_path_lua" != "X"; then
4680                { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
4681$as_echo_n "checking Lua version... " >&6; }
4682if test "${vi_cv_version_lua+set}" = set; then :
4683  $as_echo_n "(cached) " >&6
4684else
4685   vi_cv_version_lua=`${vi_cv_path_lua} -e "print(_VERSION:sub(5,7))"`
4686fi
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua" >&5
4688$as_echo "$vi_cv_version_lua" >&6; }
4689        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5
4690$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
4691        if test -f $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h; then
4692          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4693$as_echo "yes" >&6; }
4694          LUA_INC=/lua$vi_cv_version_lua
4695        else
4696          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697$as_echo "no" >&6; }
4698          vi_cv_path_lua_pfx=
4699        fi
4700      fi
4701    fi
4702  fi
4703
4704  if test "X$vi_cv_path_lua_pfx" != "X"; then
4705    if test "X$vi_cv_version_lua" != "X"; then
4706            LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
4707    else
4708      LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
4709    fi
4710    LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
4711    LUA_SRC="if_lua.c"
4712    LUA_OBJ="objects/if_lua.o"
4713    LUA_PRO="if_lua.pro"
4714    $as_echo "#define FEAT_LUA 1" >>confdefs.h
4715
4716  fi
4717
4718
4719
4720
4721
4722fi
4723
4724
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
4726$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4727# Check whether --enable-mzschemeinterp was given.
4728if test "${enable_mzschemeinterp+set}" = set; then :
4729  enableval=$enable_mzschemeinterp;
4730else
4731  enable_mzschemeinterp="no"
4732fi
4733
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
4735$as_echo "$enable_mzschemeinterp" >&6; }
4736
4737if test "$enable_mzschemeinterp" = "yes"; then
4738
4739
4740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
4741$as_echo_n "checking --with-plthome argument... " >&6; }
4742
4743# Check whether --with-plthome was given.
4744if test "${with_plthome+set}" = set; then :
4745  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
4746$as_echo "$with_plthome" >&6; }
4747else
4748  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
4749$as_echo "\"no\"" >&6; }
4750fi
4751
4752
4753  if test "X$with_plthome" != "X"; then
4754       vi_cv_path_mzscheme_pfx="$with_plthome"
4755  else
4756    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
4757$as_echo_n "checking PLTHOME environment var... " >&6; }
4758    if test "X$PLTHOME" != "X"; then
4759	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
4760$as_echo "\"$PLTHOME\"" >&6; }
4761	vi_cv_path_mzscheme_pfx="$PLTHOME"
4762    else
4763	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
4764$as_echo "not set" >&6; }
4765		# Extract the first word of "mzscheme", so it can be a program name with args.
4766set dummy mzscheme; ac_word=$2
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768$as_echo_n "checking for $ac_word... " >&6; }
4769if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then :
4770  $as_echo_n "(cached) " >&6
4771else
4772  case $vi_cv_path_mzscheme in
4773  [\\/]* | ?:[\\/]*)
4774  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4775  ;;
4776  *)
4777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780  IFS=$as_save_IFS
4781  test -z "$as_dir" && as_dir=.
4782    for ac_exec_ext in '' $ac_executable_extensions; do
4783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786    break 2
4787  fi
4788done
4789  done
4790IFS=$as_save_IFS
4791
4792  ;;
4793esac
4794fi
4795vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4796if test -n "$vi_cv_path_mzscheme"; then
4797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
4798$as_echo "$vi_cv_path_mzscheme" >&6; }
4799else
4800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801$as_echo "no" >&6; }
4802fi
4803
4804
4805
4806			if test "X$vi_cv_path_mzscheme" != "X"; then
4807	  lsout=`ls -l $vi_cv_path_mzscheme`
4808	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4809	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4810	  fi
4811	fi
4812
4813	if test "X$vi_cv_path_mzscheme" != "X"; then
4814	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
4815$as_echo_n "checking MzScheme install prefix... " >&6; }
4816if test "${vi_cv_path_mzscheme_pfx+set}" = set; then :
4817  $as_echo_n "(cached) " >&6
4818else
4819  	    	    echo "(display (simplify-path		\
4820	       (build-path (call-with-values	\
4821		(lambda () (split-path (find-system-path (quote exec-file)))) \
4822		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4823	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4824		sed -e 's+/$++'`
4825fi
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
4827$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4828	    rm -f mzdirs.scm
4829	fi
4830    fi
4831  fi
4832
4833  SCHEME_INC=
4834  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4835    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4836$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4837    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4838      SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4839      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4840$as_echo "yes" >&6; }
4841    else
4842      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843$as_echo "no" >&6; }
4844      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4845$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4846      if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4847	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4848$as_echo "yes" >&6; }
4849	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4850      else
4851	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
4854$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4855	if test -f /usr/include/plt/scheme.h; then
4856	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4857$as_echo "yes" >&6; }
4858	  SCHEME_INC=/usr/include/plt
4859	else
4860	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861$as_echo "no" >&6; }
4862	  vi_cv_path_mzscheme_pfx=
4863	fi
4864      fi
4865    fi
4866  fi
4867
4868  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4869    if test "x$MACOSX" = "xyes"; then
4870      MZSCHEME_LIBS="-framework PLT_MzScheme"
4871    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4872      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4873      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4874    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4875      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4876    else
4877            if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4878        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4879	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4880      else
4881        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4882      fi
4883      if test "$GCC" = yes; then
4884			MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4885      elif test "`(uname) 2>/dev/null`" = SunOS &&
4886			       uname -r | grep '^5' >/dev/null; then
4887	MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4888      fi
4889    fi
4890    if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4891      SCHEME_COLLECTS=lib/plt/
4892    fi
4893    if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4894            MZSCHEME_EXTRA="mzscheme_base.c"
4895      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4896      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4897    fi
4898    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4899      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4900    MZSCHEME_SRC="if_mzsch.c"
4901    MZSCHEME_OBJ="objects/if_mzsch.o"
4902    MZSCHEME_PRO="if_mzsch.pro"
4903    $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
4904
4905  fi
4906
4907
4908
4909
4910
4911
4912
4913fi
4914
4915
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
4917$as_echo_n "checking --enable-perlinterp argument... " >&6; }
4918# Check whether --enable-perlinterp was given.
4919if test "${enable_perlinterp+set}" = set; then :
4920  enableval=$enable_perlinterp;
4921else
4922  enable_perlinterp="no"
4923fi
4924
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
4926$as_echo "$enable_perlinterp" >&6; }
4927if test "$enable_perlinterp" = "yes"; then
4928
4929  # Extract the first word of "perl", so it can be a program name with args.
4930set dummy perl; ac_word=$2
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932$as_echo_n "checking for $ac_word... " >&6; }
4933if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  case $vi_cv_path_perl in
4937  [\\/]* | ?:[\\/]*)
4938  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4939  ;;
4940  *)
4941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH
4943do
4944  IFS=$as_save_IFS
4945  test -z "$as_dir" && as_dir=.
4946    for ac_exec_ext in '' $ac_executable_extensions; do
4947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950    break 2
4951  fi
4952done
4953  done
4954IFS=$as_save_IFS
4955
4956  ;;
4957esac
4958fi
4959vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4960if test -n "$vi_cv_path_perl"; then
4961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
4962$as_echo "$vi_cv_path_perl" >&6; }
4963else
4964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965$as_echo "no" >&6; }
4966fi
4967
4968
4969  if test "X$vi_cv_path_perl" != "X"; then
4970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
4971$as_echo_n "checking Perl version... " >&6; }
4972    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4973     eval `$vi_cv_path_perl -V:usethreads`
4974     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4975       badthreads=no
4976     else
4977       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4978	 eval `$vi_cv_path_perl -V:use5005threads`
4979	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4980	   badthreads=no
4981	 else
4982	   badthreads=yes
4983	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4984$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4985	 fi
4986       else
4987	 badthreads=yes
4988	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4989$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4990       fi
4991     fi
4992     if test $badthreads = no; then
4993      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
4994$as_echo "OK" >&6; }
4995      eval `$vi_cv_path_perl -V:shrpenv`
4996      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4997	shrpenv=""
4998      fi
4999      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
5000
5001            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
5002	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
5003            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
5004		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
5005			-e 's/-bE:perl.exp//' -e 's/-lc //'`
5006                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
5007		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
5008
5009                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
5010$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
5011      cflags_save=$CFLAGS
5012      libs_save=$LIBS
5013      ldflags_save=$LDFLAGS
5014      CFLAGS="$CFLAGS $perlcppflags"
5015      LIBS="$LIBS $perllibs"
5016      LDFLAGS="$perlldflags $LDFLAGS"
5017      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018/* end confdefs.h.  */
5019
5020int
5021main ()
5022{
5023
5024  ;
5025  return 0;
5026}
5027_ACEOF
5028if ac_fn_c_try_link "$LINENO"; then :
5029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5030$as_echo "yes" >&6; }; perl_ok=yes
5031else
5032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
5033$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5034fi
5035rm -f core conftest.err conftest.$ac_objext \
5036    conftest$ac_exeext conftest.$ac_ext
5037      CFLAGS=$cflags_save
5038      LIBS=$libs_save
5039      LDFLAGS=$ldflags_save
5040      if test $perl_ok = yes; then
5041	if test "X$perlcppflags" != "X"; then
5042	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5043	fi
5044	if test "X$perlldflags" != "X"; then
5045	  LDFLAGS="$perlldflags $LDFLAGS"
5046	fi
5047	PERL_LIBS=$perllibs
5048	PERL_SRC="auto/if_perl.c if_perlsfio.c"
5049	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5050	PERL_PRO="if_perl.pro if_perlsfio.pro"
5051	$as_echo "#define FEAT_PERL 1" >>confdefs.h
5052
5053      fi
5054     fi
5055    else
5056      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5057$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5058    fi
5059  fi
5060
5061  if test "x$MACOSX" = "xyes"; then
5062        dir=/System/Library/Perl
5063    darwindir=$dir/darwin
5064    if test -d $darwindir; then
5065      PERL=/usr/bin/perl
5066    else
5067            dir=/System/Library/Perl/5.8.1
5068      darwindir=$dir/darwin-thread-multi-2level
5069      if test -d $darwindir; then
5070	PERL=/usr/bin/perl
5071      fi
5072    fi
5073    if test -n "$PERL"; then
5074      PERL_DIR="$dir"
5075      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5076      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5077      PERL_LIBS="-L$darwindir/CORE -lperl"
5078    fi
5079  fi
5080fi
5081
5082
5083
5084
5085
5086
5087
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
5089$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5090# Check whether --enable-pythoninterp was given.
5091if test "${enable_pythoninterp+set}" = set; then :
5092  enableval=$enable_pythoninterp;
5093else
5094  enable_pythoninterp="no"
5095fi
5096
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
5098$as_echo "$enable_pythoninterp" >&6; }
5099if test "$enable_pythoninterp" = "yes"; then
5100    # Extract the first word of "python", so it can be a program name with args.
5101set dummy python; ac_word=$2
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103$as_echo_n "checking for $ac_word... " >&6; }
5104if test "${ac_cv_path_vi_cv_path_python+set}" = set; then :
5105  $as_echo_n "(cached) " >&6
5106else
5107  case $vi_cv_path_python in
5108  [\\/]* | ?:[\\/]*)
5109  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5110  ;;
5111  *)
5112  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115  IFS=$as_save_IFS
5116  test -z "$as_dir" && as_dir=.
5117    for ac_exec_ext in '' $ac_executable_extensions; do
5118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121    break 2
5122  fi
5123done
5124  done
5125IFS=$as_save_IFS
5126
5127  ;;
5128esac
5129fi
5130vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5131if test -n "$vi_cv_path_python"; then
5132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
5133$as_echo "$vi_cv_path_python" >&6; }
5134else
5135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136$as_echo "no" >&6; }
5137fi
5138
5139
5140  if test "X$vi_cv_path_python" != "X"; then
5141
5142        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
5143$as_echo_n "checking Python version... " >&6; }
5144if test "${vi_cv_var_python_version+set}" = set; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147  vi_cv_var_python_version=`
5148	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5149
5150fi
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
5152$as_echo "$vi_cv_var_python_version" >&6; }
5153
5154        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 1.4 or better" >&5
5155$as_echo_n "checking Python is 1.4 or better... " >&6; }
5156    if ${vi_cv_path_python} -c \
5157	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5158    then
5159      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
5160$as_echo "yep" >&6; }
5161
5162            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
5163$as_echo_n "checking Python's install prefix... " >&6; }
5164if test "${vi_cv_path_python_pfx+set}" = set; then :
5165  $as_echo_n "(cached) " >&6
5166else
5167   vi_cv_path_python_pfx=`
5168	    ${vi_cv_path_python} -c \
5169		"import sys; print sys.prefix"`
5170fi
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
5172$as_echo "$vi_cv_path_python_pfx" >&6; }
5173
5174            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
5175$as_echo_n "checking Python's execution prefix... " >&6; }
5176if test "${vi_cv_path_python_epfx+set}" = set; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179   vi_cv_path_python_epfx=`
5180	    ${vi_cv_path_python} -c \
5181		"import sys; print sys.exec_prefix"`
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
5184$as_echo "$vi_cv_path_python_epfx" >&6; }
5185
5186
5187      if test "${vi_cv_path_pythonpath+set}" = set; then :
5188  $as_echo_n "(cached) " >&6
5189else
5190   vi_cv_path_pythonpath=`
5191	    unset PYTHONPATH;
5192	    ${vi_cv_path_python} -c \
5193		"import sys, string; print string.join(sys.path,':')"`
5194fi
5195
5196
5197
5198
5199# Check whether --with-python-config-dir was given.
5200if test "${with_python_config_dir+set}" = set; then :
5201  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5202fi
5203
5204
5205      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
5206$as_echo_n "checking Python's configuration directory... " >&6; }
5207if test "${vi_cv_path_python_conf+set}" = set; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210
5211	vi_cv_path_python_conf=
5212	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5213	  for subdir in lib64 lib share; do
5214	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5215	    if test -d "$d" && test -f "$d/config.c"; then
5216	      vi_cv_path_python_conf="$d"
5217	    fi
5218	  done
5219	done
5220
5221fi
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
5223$as_echo "$vi_cv_path_python_conf" >&6; }
5224
5225      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5226
5227      if test "X$PYTHON_CONFDIR" = "X"; then
5228	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
5229$as_echo "can't find it!" >&6; }
5230      else
5231
5232			if test "${vi_cv_path_python_plibs+set}" = set; then :
5233  $as_echo_n "(cached) " >&6
5234else
5235
5236	    pwd=`pwd`
5237	    tmp_mkf="$pwd/config-PyMake$$"
5238	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5239__:
5240	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
5241	@echo "python_LIBS='$(LIBS)'"
5242	@echo "python_SYSLIBS='$(SYSLIBS)'"
5243	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5244eof
5245	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5246	    rm -f -- "${tmp_mkf}"
5247	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5248		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5249	      vi_cv_path_python_plibs="-framework Python"
5250	    else
5251	      if test "${vi_cv_var_python_version}" = "1.4"; then
5252		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5253	      else
5254		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5255	      fi
5256	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5257	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5258	    fi
5259
5260fi
5261
5262
5263	PYTHON_LIBS="${vi_cv_path_python_plibs}"
5264	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5265	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5266	else
5267	  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}"
5268	fi
5269	PYTHON_SRC="if_python.c"
5270		if test "x$MACOSX" = "xyes"; then
5271	  PYTHON_OBJ="objects/if_python.o"
5272	else
5273	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5274	fi
5275	if test "${vi_cv_var_python_version}" = "1.4"; then
5276	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5277	fi
5278	PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5279
5280								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
5281$as_echo_n "checking if -pthread should be used... " >&6; }
5282	threadsafe_flag=
5283	thread_lib=
5284	        if test "`(uname) 2>/dev/null`" != Darwin; then
5285	  test "$GCC" = yes && threadsafe_flag="-pthread"
5286	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
5287	    threadsafe_flag="-D_THREAD_SAFE"
5288	    thread_lib="-pthread"
5289	  fi
5290	fi
5291	libs_save_old=$LIBS
5292	if test -n "$threadsafe_flag"; then
5293	  cflags_save=$CFLAGS
5294	  CFLAGS="$CFLAGS $threadsafe_flag"
5295	  LIBS="$LIBS $thread_lib"
5296	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298
5299int
5300main ()
5301{
5302
5303  ;
5304  return 0;
5305}
5306_ACEOF
5307if ac_fn_c_try_link "$LINENO"; then :
5308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5310else
5311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312$as_echo "no" >&6; }; LIBS=$libs_save_old
5313
5314fi
5315rm -f core conftest.err conftest.$ac_objext \
5316    conftest$ac_exeext conftest.$ac_ext
5317	  CFLAGS=$cflags_save
5318	else
5319	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }
5321	fi
5322
5323			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
5324$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5325	cflags_save=$CFLAGS
5326	libs_save=$LIBS
5327	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5328	LIBS="$LIBS $PYTHON_LIBS"
5329	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h.  */
5331
5332int
5333main ()
5334{
5335
5336  ;
5337  return 0;
5338}
5339_ACEOF
5340if ac_fn_c_try_link "$LINENO"; then :
5341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5342$as_echo "yes" >&6; }; python_ok=yes
5343else
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
5345$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5346fi
5347rm -f core conftest.err conftest.$ac_objext \
5348    conftest$ac_exeext conftest.$ac_ext
5349	CFLAGS=$cflags_save
5350	LIBS=$libs_save
5351	if test $python_ok = yes; then
5352	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
5353
5354	else
5355	  LIBS=$libs_save_old
5356	  PYTHON_SRC=
5357	  PYTHON_OBJ=
5358	  PYTHON_LIBS=
5359	  PYTHON_CFLAGS=
5360	fi
5361
5362      fi
5363    else
5364      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
5365$as_echo "too old" >&6; }
5366    fi
5367  fi
5368fi
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
5379$as_echo_n "checking --enable-python3interp argument... " >&6; }
5380# Check whether --enable-python3interp was given.
5381if test "${enable_python3interp+set}" = set; then :
5382  enableval=$enable_python3interp;
5383else
5384  enable_python3interp="no"
5385fi
5386
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
5388$as_echo "$enable_python3interp" >&6; }
5389if test "$enable_python3interp" = "yes"; then
5390    # Extract the first word of "python3", so it can be a program name with args.
5391set dummy python3; ac_word=$2
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
5394if test "${ac_cv_path_vi_cv_path_python3+set}" = set; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  case $vi_cv_path_python3 in
5398  [\\/]* | ?:[\\/]*)
5399  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
5400  ;;
5401  *)
5402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405  IFS=$as_save_IFS
5406  test -z "$as_dir" && as_dir=.
5407    for ac_exec_ext in '' $ac_executable_extensions; do
5408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
5410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411    break 2
5412  fi
5413done
5414  done
5415IFS=$as_save_IFS
5416
5417  ;;
5418esac
5419fi
5420vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
5421if test -n "$vi_cv_path_python3"; then
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
5423$as_echo "$vi_cv_path_python3" >&6; }
5424else
5425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426$as_echo "no" >&6; }
5427fi
5428
5429
5430  if test "X$vi_cv_path_python3" != "X"; then
5431
5432        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
5433$as_echo_n "checking Python version... " >&6; }
5434if test "${vi_cv_var_python3_version+set}" = set; then :
5435  $as_echo_n "(cached) " >&6
5436else
5437  vi_cv_var_python3_version=`
5438          ${vi_cv_path_python3} -c 'import sys; print(sys.version[1:3])'`
5439
5440fi
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
5442$as_echo "$vi_cv_var_python3_version" >&6; }
5443
5444        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
5445$as_echo_n "checking Python's install prefix... " >&6; }
5446if test "${vi_cv_path_python3_pfx+set}" = set; then :
5447  $as_echo_n "(cached) " >&6
5448else
5449   vi_cv_path_python3_pfx=`
5450     ${vi_cv_path_python3} -c \
5451     "import sys; print(sys.prefix)"`
5452fi
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
5454$as_echo "$vi_cv_path_python3_pfx" >&6; }
5455
5456        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
5457$as_echo_n "checking Python's execution prefix... " >&6; }
5458if test "${vi_cv_path_python3_epfx+set}" = set; then :
5459  $as_echo_n "(cached) " >&6
5460else
5461   vi_cv_path_python3_epfx=`
5462     ${vi_cv_path_python3} -c \
5463     "import sys; print(sys.exec_prefix)"`
5464fi
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
5466$as_echo "$vi_cv_path_python3_epfx" >&6; }
5467
5468
5469    if test "${vi_cv_path_python3path+set}" = set; then :
5470  $as_echo_n "(cached) " >&6
5471else
5472   vi_cv_path_python3path=`
5473     unset PYTHONPATH;
5474     ${vi_cv_path_python3} -c \
5475     "import sys, string; print(':'.join(sys.path))"`
5476fi
5477
5478
5479
5480
5481# Check whether --with-python3-config-dir was given.
5482if test "${with_python3_config_dir+set}" = set; then :
5483  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"
5484fi
5485
5486
5487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
5488$as_echo_n "checking Python's configuration directory... " >&6; }
5489if test "${vi_cv_path_python3_conf+set}" = set; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492
5493     vi_cv_path_python3_conf=
5494     for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
5495       for subdir in lib share; do
5496         d="${path}/${subdir}/python3${vi_cv_var_python3_version}/config"
5497         if test -d "$d" && test -f "$d/config.c"; then
5498           vi_cv_path_python3_conf="$d"
5499         fi
5500       done
5501     done
5502
5503fi
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
5505$as_echo "$vi_cv_path_python3_conf" >&6; }
5506
5507    PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
5508
5509    if test "X$PYTHON3_CONFDIR" = "X"; then
5510      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
5511$as_echo "can't find it!" >&6; }
5512    else
5513
5514                  if test "${vi_cv_path_python3_plibs+set}" = set; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517
5518          pwd=`pwd`
5519          tmp_mkf="$pwd/config-PyMake$$"
5520          cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5521__:
5522	@echo "python3_MODLIBS='$(MODLIBS)'"
5523	@echo "python3_LIBS='$(LIBS)'"
5524	@echo "python3_SYSLIBS='$(SYSLIBS)'"
5525	@echo "python3_LINKFORSHARED='$(LINKFORSHARED)'"
5526eof
5527                    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5528          rm -f -- "${tmp_mkf}"
5529          vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython3${vi_cv_var_python3_version}"
5530          vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_MODLIBS} ${python3_LIBS} ${python3_SYSLIBS} ${python3_LINKFORSHARED}"
5531                    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
5532          vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
5533
5534fi
5535
5536
5537      PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
5538      if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
5539        PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python3${vi_cv_var_python3_version}"
5540      else
5541        PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python3${vi_cv_var_python3_version} -I${vi_cv_path_python3_epfx}/include/python3${vi_cv_var_python3_version}"
5542      fi
5543      PYTHON3_SRC="if_python3.c"
5544            if test "x$MACOSX" = "xyes"; then
5545        PYTHON3_OBJ="objects/if_python3.o"
5546      else
5547        PYTHON3_OBJ="objects/if_python3.o objects/py3_config.o"
5548      fi
5549
5550                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
5551$as_echo_n "checking if -pthread should be used... " >&6; }
5552      threadsafe_flag=
5553      thread_lib=
5554            if test "`(uname) 2>/dev/null`" != Darwin; then
5555        test "$GCC" = yes && threadsafe_flag="-pthread"
5556        if test "`(uname) 2>/dev/null`" = FreeBSD; then
5557          threadsafe_flag="-D_THREAD_SAFE"
5558          thread_lib="-pthread"
5559        fi
5560      fi
5561      libs_save_old=$LIBS
5562      if test -n "$threadsafe_flag"; then
5563        cflags_save=$CFLAGS
5564        CFLAGS="$CFLAGS $threadsafe_flag"
5565        LIBS="$LIBS $thread_lib"
5566        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567/* end confdefs.h.  */
5568
5569int
5570main ()
5571{
5572
5573  ;
5574  return 0;
5575}
5576_ACEOF
5577if ac_fn_c_try_link "$LINENO"; then :
5578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5579$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
5580else
5581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582$as_echo "no" >&6; }; LIBS=$libs_save_old
5583
5584fi
5585rm -f core conftest.err conftest.$ac_objext \
5586    conftest$ac_exeext conftest.$ac_ext
5587        CFLAGS=$cflags_save
5588      else
5589        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590$as_echo "no" >&6; }
5591      fi
5592
5593                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
5594$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5595      cflags_save=$CFLAGS
5596      libs_save=$LIBS
5597      CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
5598      LIBS="$LIBS $PYTHON3_LIBS"
5599      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h.  */
5601
5602int
5603main ()
5604{
5605
5606  ;
5607  return 0;
5608}
5609_ACEOF
5610if ac_fn_c_try_link "$LINENO"; then :
5611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5612$as_echo "yes" >&6; }; python3_ok=yes
5613else
5614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
5615$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
5616fi
5617rm -f core conftest.err conftest.$ac_objext \
5618    conftest$ac_exeext conftest.$ac_ext
5619      CFLAGS=$cflags_save
5620      LIBS=$libs_save
5621      if test "$python3_ok" = yes; then
5622        $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
5623
5624      else
5625        LIBS=$libs_save_old
5626        PYTHON3_SRC=
5627        PYTHON3_OBJ=
5628        PYTHON3_LIBS=
5629        PYTHON3_CFLAGS=
5630      fi
5631    fi
5632  fi
5633fi
5634
5635
5636
5637
5638
5639
5640
5641if test "$python_ok" = yes && test "$python3_ok" = yes; then
5642  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
5643
5644  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
5645
5646  PYTHON_SRC="if_python.c"
5647  PYTHON_OBJ="objects/if_python.o"
5648  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"libpython${vi_cv_var_python_version}.so\\\""
5649  PYTHON_LIBS=
5650  PYTHON3_SRC="if_python3.c"
5651  PYTHON3_OBJ="objects/if_python3.o"
5652  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"libpython3${vi_cv_var_python3_version}.so\\\""
5653  PYTHON3_LIBS=
5654fi
5655
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
5657$as_echo_n "checking --enable-tclinterp argument... " >&6; }
5658# Check whether --enable-tclinterp was given.
5659if test "${enable_tclinterp+set}" = set; then :
5660  enableval=$enable_tclinterp;
5661else
5662  enable_tclinterp="no"
5663fi
5664
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
5666$as_echo "$enable_tclinterp" >&6; }
5667
5668if test "$enable_tclinterp" = "yes"; then
5669
5670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
5671$as_echo_n "checking --with-tclsh argument... " >&6; }
5672
5673# Check whether --with-tclsh was given.
5674if test "${with_tclsh+set}" = set; then :
5675  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
5676$as_echo "$tclsh_name" >&6; }
5677else
5678  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679$as_echo "no" >&6; }
5680fi
5681
5682  # Extract the first word of "$tclsh_name", so it can be a program name with args.
5683set dummy $tclsh_name; ac_word=$2
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685$as_echo_n "checking for $ac_word... " >&6; }
5686if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5687  $as_echo_n "(cached) " >&6
5688else
5689  case $vi_cv_path_tcl in
5690  [\\/]* | ?:[\\/]*)
5691  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5692  ;;
5693  *)
5694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697  IFS=$as_save_IFS
5698  test -z "$as_dir" && as_dir=.
5699    for ac_exec_ext in '' $ac_executable_extensions; do
5700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703    break 2
5704  fi
5705done
5706  done
5707IFS=$as_save_IFS
5708
5709  ;;
5710esac
5711fi
5712vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5713if test -n "$vi_cv_path_tcl"; then
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5715$as_echo "$vi_cv_path_tcl" >&6; }
5716else
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722
5723
5724    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5725    tclsh_name="tclsh8.4"
5726    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5727set dummy $tclsh_name; ac_word=$2
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729$as_echo_n "checking for $ac_word... " >&6; }
5730if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5731  $as_echo_n "(cached) " >&6
5732else
5733  case $vi_cv_path_tcl in
5734  [\\/]* | ?:[\\/]*)
5735  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5736  ;;
5737  *)
5738  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741  IFS=$as_save_IFS
5742  test -z "$as_dir" && as_dir=.
5743    for ac_exec_ext in '' $ac_executable_extensions; do
5744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747    break 2
5748  fi
5749done
5750  done
5751IFS=$as_save_IFS
5752
5753  ;;
5754esac
5755fi
5756vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5757if test -n "$vi_cv_path_tcl"; then
5758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5759$as_echo "$vi_cv_path_tcl" >&6; }
5760else
5761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762$as_echo "no" >&6; }
5763fi
5764
5765
5766  fi
5767  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5768    tclsh_name="tclsh8.2"
5769    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5770set dummy $tclsh_name; ac_word=$2
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772$as_echo_n "checking for $ac_word... " >&6; }
5773if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  case $vi_cv_path_tcl in
5777  [\\/]* | ?:[\\/]*)
5778  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5779  ;;
5780  *)
5781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH
5783do
5784  IFS=$as_save_IFS
5785  test -z "$as_dir" && as_dir=.
5786    for ac_exec_ext in '' $ac_executable_extensions; do
5787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5790    break 2
5791  fi
5792done
5793  done
5794IFS=$as_save_IFS
5795
5796  ;;
5797esac
5798fi
5799vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5800if test -n "$vi_cv_path_tcl"; then
5801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5802$as_echo "$vi_cv_path_tcl" >&6; }
5803else
5804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805$as_echo "no" >&6; }
5806fi
5807
5808
5809  fi
5810  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5811    tclsh_name="tclsh8.0"
5812    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5813set dummy $tclsh_name; ac_word=$2
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815$as_echo_n "checking for $ac_word... " >&6; }
5816if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5817  $as_echo_n "(cached) " >&6
5818else
5819  case $vi_cv_path_tcl in
5820  [\\/]* | ?:[\\/]*)
5821  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5822  ;;
5823  *)
5824  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827  IFS=$as_save_IFS
5828  test -z "$as_dir" && as_dir=.
5829    for ac_exec_ext in '' $ac_executable_extensions; do
5830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833    break 2
5834  fi
5835done
5836  done
5837IFS=$as_save_IFS
5838
5839  ;;
5840esac
5841fi
5842vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5843if test -n "$vi_cv_path_tcl"; then
5844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5845$as_echo "$vi_cv_path_tcl" >&6; }
5846else
5847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848$as_echo "no" >&6; }
5849fi
5850
5851
5852  fi
5853    if test "X$vi_cv_path_tcl" = "X"; then
5854    tclsh_name="tclsh"
5855    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5856set dummy $tclsh_name; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
5859if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5860  $as_echo_n "(cached) " >&6
5861else
5862  case $vi_cv_path_tcl in
5863  [\\/]* | ?:[\\/]*)
5864  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5865  ;;
5866  *)
5867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870  IFS=$as_save_IFS
5871  test -z "$as_dir" && as_dir=.
5872    for ac_exec_ext in '' $ac_executable_extensions; do
5873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876    break 2
5877  fi
5878done
5879  done
5880IFS=$as_save_IFS
5881
5882  ;;
5883esac
5884fi
5885vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5886if test -n "$vi_cv_path_tcl"; then
5887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5888$as_echo "$vi_cv_path_tcl" >&6; }
5889else
5890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891$as_echo "no" >&6; }
5892fi
5893
5894
5895  fi
5896  if test "X$vi_cv_path_tcl" != "X"; then
5897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
5898$as_echo_n "checking Tcl version... " >&6; }
5899    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5900      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5901      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
5902$as_echo "$tclver - OK" >&6; };
5903      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 -`
5904
5905      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
5906$as_echo_n "checking for location of Tcl include... " >&6; }
5907      if test "x$MACOSX" != "xyes"; then
5908	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5909      else
5910		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5911      fi
5912      TCL_INC=
5913      for try in $tclinc; do
5914	if test -f "$try/tcl.h"; then
5915	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
5916$as_echo "$try/tcl.h" >&6; }
5917	  TCL_INC=$try
5918	  break
5919	fi
5920      done
5921      if test -z "$TCL_INC"; then
5922	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
5923$as_echo "<not found>" >&6; }
5924	SKIP_TCL=YES
5925      fi
5926      if test -z "$SKIP_TCL"; then
5927	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
5928$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5929	if test "x$MACOSX" != "xyes"; then
5930	  tclcnf=`echo $tclinc | sed s/include/lib/g`
5931	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5932	else
5933	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
5934	fi
5935	for try in $tclcnf; do
5936	  if test -f $try/tclConfig.sh; then
5937	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
5938$as_echo "$try/tclConfig.sh" >&6; }
5939	    . $try/tclConfig.sh
5940	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5941	    	    	    TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
5942	    break
5943	  fi
5944	done
5945	if test -z "$TCL_LIBS"; then
5946	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
5947$as_echo "<not found>" >&6; }
5948	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
5949$as_echo_n "checking for Tcl library by myself... " >&6; }
5950	  tcllib=`echo $tclinc | sed s/include/lib/g`
5951	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5952	  for ext in .so .a ; do
5953	    for ver in "" $tclver ; do
5954	      for try in $tcllib ; do
5955		trylib=tcl$ver$ext
5956		if test -f $try/lib$trylib ; then
5957		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
5958$as_echo "$try/lib$trylib" >&6; }
5959		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5960		  if test "`(uname) 2>/dev/null`" = SunOS &&
5961					 uname -r | grep '^5' >/dev/null; then
5962		    TCL_LIBS="$TCL_LIBS -R $try"
5963		  fi
5964		  break 3
5965		fi
5966	      done
5967	    done
5968	  done
5969	  if test -z "$TCL_LIBS"; then
5970	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
5971$as_echo "<not found>" >&6; }
5972	    SKIP_TCL=YES
5973	  fi
5974	fi
5975	if test -z "$SKIP_TCL"; then
5976	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
5977
5978	  TCL_SRC=if_tcl.c
5979	  TCL_OBJ=objects/if_tcl.o
5980	  TCL_PRO=if_tcl.pro
5981	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5982	fi
5983      fi
5984    else
5985      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
5986$as_echo "too old; need Tcl version 8.0 or later" >&6; }
5987    fi
5988  fi
5989fi
5990
5991
5992
5993
5994
5995
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
5997$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5998# Check whether --enable-rubyinterp was given.
5999if test "${enable_rubyinterp+set}" = set; then :
6000  enableval=$enable_rubyinterp;
6001else
6002  enable_rubyinterp="no"
6003fi
6004
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
6006$as_echo "$enable_rubyinterp" >&6; }
6007if test "$enable_rubyinterp" = "yes"; then
6008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
6009$as_echo_n "checking --with-ruby-command argument... " >&6; }
6010
6011# Check whether --with-ruby-command was given.
6012if test "${with_ruby_command+set}" = set; then :
6013  withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
6014$as_echo "$RUBY_CMD" >&6; }
6015else
6016  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
6017$as_echo "defaulting to $RUBY_CMD" >&6; }
6018fi
6019
6020
6021  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
6022set dummy $RUBY_CMD; ac_word=$2
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024$as_echo_n "checking for $ac_word... " >&6; }
6025if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028  case $vi_cv_path_ruby in
6029  [\\/]* | ?:[\\/]*)
6030  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
6031  ;;
6032  *)
6033  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
6036  IFS=$as_save_IFS
6037  test -z "$as_dir" && as_dir=.
6038    for ac_exec_ext in '' $ac_executable_extensions; do
6039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
6041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042    break 2
6043  fi
6044done
6045  done
6046IFS=$as_save_IFS
6047
6048  ;;
6049esac
6050fi
6051vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
6052if test -n "$vi_cv_path_ruby"; then
6053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
6054$as_echo "$vi_cv_path_ruby" >&6; }
6055else
6056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057$as_echo "no" >&6; }
6058fi
6059
6060
6061  if test "X$vi_cv_path_ruby" != "X"; then
6062    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
6063$as_echo_n "checking Ruby version... " >&6; }
6064    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
6065      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6066$as_echo "OK" >&6; }
6067      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
6068$as_echo_n "checking Ruby header files... " >&6; }
6069      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
6070      if test "X$rubyhdrdir" != "X"; then
6071	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
6072$as_echo "$rubyhdrdir" >&6; }
6073	RUBY_CFLAGS="-I$rubyhdrdir"
6074        rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
6075        if test -d "$rubyhdrdir/$rubyarch"; then
6076          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
6077        fi
6078        rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
6079        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
6080	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
6081	if test "X$rubylibs" != "X"; then
6082	  RUBY_LIBS="$rubylibs"
6083	fi
6084	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
6085	if test -f "$rubyhdrdir/$librubyarg"; then
6086	  librubyarg="$rubyhdrdir/$librubyarg"
6087	else
6088	  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
6089	  if test -f "$rubylibdir/$librubyarg"; then
6090	    librubyarg="$rubylibdir/$librubyarg"
6091	  elif test "$librubyarg" = "libruby.a"; then
6092	    	    librubyarg="-lruby"
6093	  else
6094	    librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
6095	  fi
6096	fi
6097
6098	if test "X$librubyarg" != "X"; then
6099	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
6100	fi
6101	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
6102	if test "X$rubyldflags" != "X"; then
6103	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
6104	  if test "X$rubyldflags" != "X"; then
6105	    LDFLAGS="$rubyldflags $LDFLAGS"
6106	  fi
6107	fi
6108	RUBY_SRC="if_ruby.c"
6109	RUBY_OBJ="objects/if_ruby.o"
6110	RUBY_PRO="if_ruby.pro"
6111	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
6112
6113      else
6114	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
6115$as_echo "not found; disabling Ruby" >&6; }
6116      fi
6117    else
6118      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
6119$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
6120    fi
6121  fi
6122fi
6123
6124
6125
6126
6127
6128
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
6130$as_echo_n "checking --enable-cscope argument... " >&6; }
6131# Check whether --enable-cscope was given.
6132if test "${enable_cscope+set}" = set; then :
6133  enableval=$enable_cscope;
6134else
6135  enable_cscope="no"
6136fi
6137
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
6139$as_echo "$enable_cscope" >&6; }
6140if test "$enable_cscope" = "yes"; then
6141  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
6142
6143fi
6144
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
6146$as_echo_n "checking --enable-workshop argument... " >&6; }
6147# Check whether --enable-workshop was given.
6148if test "${enable_workshop+set}" = set; then :
6149  enableval=$enable_workshop;
6150else
6151  enable_workshop="no"
6152fi
6153
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
6155$as_echo "$enable_workshop" >&6; }
6156if test "$enable_workshop" = "yes"; then
6157  $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
6158
6159  WORKSHOP_SRC="workshop.c integration.c"
6160
6161  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
6162
6163  if test "${enable_gui-xxx}" = xxx; then
6164    enable_gui=motif
6165  fi
6166fi
6167
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
6169$as_echo_n "checking --disable-netbeans argument... " >&6; }
6170# Check whether --enable-netbeans was given.
6171if test "${enable_netbeans+set}" = set; then :
6172  enableval=$enable_netbeans;
6173else
6174  enable_netbeans="yes"
6175fi
6176
6177if test "$enable_netbeans" = "yes"; then
6178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179$as_echo "no" >&6; }
6180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
6181$as_echo_n "checking for socket in -lsocket... " >&6; }
6182if test "${ac_cv_lib_socket_socket+set}" = set; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  ac_check_lib_save_LIBS=$LIBS
6186LIBS="-lsocket  $LIBS"
6187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188/* end confdefs.h.  */
6189
6190/* Override any GCC internal prototype to avoid an error.
6191   Use char because int might match the return type of a GCC
6192   builtin and then its argument prototype would still apply.  */
6193#ifdef __cplusplus
6194extern "C"
6195#endif
6196char socket ();
6197int
6198main ()
6199{
6200return socket ();
6201  ;
6202  return 0;
6203}
6204_ACEOF
6205if ac_fn_c_try_link "$LINENO"; then :
6206  ac_cv_lib_socket_socket=yes
6207else
6208  ac_cv_lib_socket_socket=no
6209fi
6210rm -f core conftest.err conftest.$ac_objext \
6211    conftest$ac_exeext conftest.$ac_ext
6212LIBS=$ac_check_lib_save_LIBS
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6215$as_echo "$ac_cv_lib_socket_socket" >&6; }
6216if test "x$ac_cv_lib_socket_socket" = x""yes; then :
6217  cat >>confdefs.h <<_ACEOF
6218#define HAVE_LIBSOCKET 1
6219_ACEOF
6220
6221  LIBS="-lsocket $LIBS"
6222
6223fi
6224
6225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6226$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6227if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  ac_check_lib_save_LIBS=$LIBS
6231LIBS="-lnsl  $LIBS"
6232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h.  */
6234
6235/* Override any GCC internal prototype to avoid an error.
6236   Use char because int might match the return type of a GCC
6237   builtin and then its argument prototype would still apply.  */
6238#ifdef __cplusplus
6239extern "C"
6240#endif
6241char gethostbyname ();
6242int
6243main ()
6244{
6245return gethostbyname ();
6246  ;
6247  return 0;
6248}
6249_ACEOF
6250if ac_fn_c_try_link "$LINENO"; then :
6251  ac_cv_lib_nsl_gethostbyname=yes
6252else
6253  ac_cv_lib_nsl_gethostbyname=no
6254fi
6255rm -f core conftest.err conftest.$ac_objext \
6256    conftest$ac_exeext conftest.$ac_ext
6257LIBS=$ac_check_lib_save_LIBS
6258fi
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6260$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6261if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6262  cat >>confdefs.h <<_ACEOF
6263#define HAVE_LIBNSL 1
6264_ACEOF
6265
6266  LIBS="-lnsl $LIBS"
6267
6268fi
6269
6270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling netbeans integration is possible" >&5
6271$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h.  */
6274
6275#include <stdio.h>
6276#include <stdlib.h>
6277#include <stdarg.h>
6278#include <fcntl.h>
6279#include <netdb.h>
6280#include <netinet/in.h>
6281#include <errno.h>
6282#include <sys/types.h>
6283#include <sys/socket.h>
6284	/* Check bitfields */
6285	struct nbbuf {
6286	unsigned int  initDone:1;
6287	ushort signmaplen;
6288	};
6289
6290int
6291main ()
6292{
6293
6294		/* Check creating a socket. */
6295		struct sockaddr_in server;
6296		(void)socket(AF_INET, SOCK_STREAM, 0);
6297		(void)htons(100);
6298		(void)gethostbyname("microsoft.com");
6299		if (errno == ECONNREFUSED)
6300		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6301
6302  ;
6303  return 0;
6304}
6305_ACEOF
6306if ac_fn_c_try_link "$LINENO"; then :
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6308$as_echo "yes" >&6; }
6309else
6310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311$as_echo "no" >&6; }; enable_netbeans="no"
6312fi
6313rm -f core conftest.err conftest.$ac_objext \
6314    conftest$ac_exeext conftest.$ac_ext
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6317$as_echo "yes" >&6; }
6318fi
6319if test "$enable_netbeans" = "yes"; then
6320  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
6321
6322  NETBEANS_SRC="netbeans.c"
6323
6324  NETBEANS_OBJ="objects/netbeans.o"
6325
6326fi
6327
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5
6329$as_echo_n "checking --enable-sniff argument... " >&6; }
6330# Check whether --enable-sniff was given.
6331if test "${enable_sniff+set}" = set; then :
6332  enableval=$enable_sniff;
6333else
6334  enable_sniff="no"
6335fi
6336
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sniff" >&5
6338$as_echo "$enable_sniff" >&6; }
6339if test "$enable_sniff" = "yes"; then
6340  $as_echo "#define FEAT_SNIFF 1" >>confdefs.h
6341
6342  SNIFF_SRC="if_sniff.c"
6343
6344  SNIFF_OBJ="objects/if_sniff.o"
6345
6346fi
6347
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
6349$as_echo_n "checking --enable-multibyte argument... " >&6; }
6350# Check whether --enable-multibyte was given.
6351if test "${enable_multibyte+set}" = set; then :
6352  enableval=$enable_multibyte;
6353else
6354  enable_multibyte="no"
6355fi
6356
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
6358$as_echo "$enable_multibyte" >&6; }
6359if test "$enable_multibyte" = "yes"; then
6360  $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
6361
6362fi
6363
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
6365$as_echo_n "checking --enable-hangulinput argument... " >&6; }
6366# Check whether --enable-hangulinput was given.
6367if test "${enable_hangulinput+set}" = set; then :
6368  enableval=$enable_hangulinput;
6369else
6370  enable_hangulinput="no"
6371fi
6372
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
6374$as_echo "$enable_hangulinput" >&6; }
6375
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
6377$as_echo_n "checking --enable-xim argument... " >&6; }
6378# Check whether --enable-xim was given.
6379if test "${enable_xim+set}" = set; then :
6380  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
6381$as_echo "$enable_xim" >&6; }
6382else
6383  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
6384$as_echo "defaulting to auto" >&6; }
6385fi
6386
6387
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
6389$as_echo_n "checking --enable-fontset argument... " >&6; }
6390# Check whether --enable-fontset was given.
6391if test "${enable_fontset+set}" = set; then :
6392  enableval=$enable_fontset;
6393else
6394  enable_fontset="no"
6395fi
6396
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
6398$as_echo "$enable_fontset" >&6; }
6399
6400test -z "$with_x" && with_x=yes
6401test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6402if test "$with_x" = no; then
6403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
6404$as_echo "defaulting to: don't HAVE_X11" >&6; }
6405else
6406
6407  # Extract the first word of "xmkmf", so it can be a program name with args.
6408set dummy xmkmf; ac_word=$2
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410$as_echo_n "checking for $ac_word... " >&6; }
6411if test "${ac_cv_path_xmkmfpath+set}" = set; then :
6412  $as_echo_n "(cached) " >&6
6413else
6414  case $xmkmfpath in
6415  [\\/]* | ?:[\\/]*)
6416  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6417  ;;
6418  *)
6419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420for as_dir in $PATH
6421do
6422  IFS=$as_save_IFS
6423  test -z "$as_dir" && as_dir=.
6424    for ac_exec_ext in '' $ac_executable_extensions; do
6425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428    break 2
6429  fi
6430done
6431  done
6432IFS=$as_save_IFS
6433
6434  ;;
6435esac
6436fi
6437xmkmfpath=$ac_cv_path_xmkmfpath
6438if test -n "$xmkmfpath"; then
6439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
6440$as_echo "$xmkmfpath" >&6; }
6441else
6442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443$as_echo "no" >&6; }
6444fi
6445
6446
6447
6448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6449$as_echo_n "checking for X... " >&6; }
6450
6451
6452# Check whether --with-x was given.
6453if test "${with_x+set}" = set; then :
6454  withval=$with_x;
6455fi
6456
6457# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6458if test "x$with_x" = xno; then
6459  # The user explicitly disabled X.
6460  have_x=disabled
6461else
6462  case $x_includes,$x_libraries in #(
6463    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6464    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6465  $as_echo_n "(cached) " >&6
6466else
6467  # One or both of the vars are not set, and there is no cached value.
6468ac_x_includes=no ac_x_libraries=no
6469rm -f -r conftest.dir
6470if mkdir conftest.dir; then
6471  cd conftest.dir
6472  cat >Imakefile <<'_ACEOF'
6473incroot:
6474	@echo incroot='${INCROOT}'
6475usrlibdir:
6476	@echo usrlibdir='${USRLIBDIR}'
6477libdir:
6478	@echo libdir='${LIBDIR}'
6479_ACEOF
6480  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6481    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6482    for ac_var in incroot usrlibdir libdir; do
6483      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6484    done
6485    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6486    for ac_extension in a so sl dylib la dll; do
6487      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6488	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6489	ac_im_usrlibdir=$ac_im_libdir; break
6490      fi
6491    done
6492    # Screen out bogus values from the imake configuration.  They are
6493    # bogus both because they are the default anyway, and because
6494    # using them would break gcc on systems where it needs fixed includes.
6495    case $ac_im_incroot in
6496	/usr/include) ac_x_includes= ;;
6497	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6498    esac
6499    case $ac_im_usrlibdir in
6500	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
6501	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6502    esac
6503  fi
6504  cd ..
6505  rm -f -r conftest.dir
6506fi
6507
6508# Standard set of common directories for X headers.
6509# Check X11 before X11Rn because it is often a symlink to the current release.
6510ac_x_header_dirs='
6511/usr/X11/include
6512/usr/X11R7/include
6513/usr/X11R6/include
6514/usr/X11R5/include
6515/usr/X11R4/include
6516
6517/usr/include/X11
6518/usr/include/X11R7
6519/usr/include/X11R6
6520/usr/include/X11R5
6521/usr/include/X11R4
6522
6523/usr/local/X11/include
6524/usr/local/X11R7/include
6525/usr/local/X11R6/include
6526/usr/local/X11R5/include
6527/usr/local/X11R4/include
6528
6529/usr/local/include/X11
6530/usr/local/include/X11R7
6531/usr/local/include/X11R6
6532/usr/local/include/X11R5
6533/usr/local/include/X11R4
6534
6535/usr/X386/include
6536/usr/x386/include
6537/usr/XFree86/include/X11
6538
6539/usr/include
6540/usr/local/include
6541/usr/unsupported/include
6542/usr/athena/include
6543/usr/local/x11r5/include
6544/usr/lpp/Xamples/include
6545
6546/usr/openwin/include
6547/usr/openwin/share/include'
6548
6549if test "$ac_x_includes" = no; then
6550  # Guess where to find include files, by looking for Xlib.h.
6551  # First, try using that file with no special directory specified.
6552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553/* end confdefs.h.  */
6554#include <X11/Xlib.h>
6555_ACEOF
6556if ac_fn_c_try_cpp "$LINENO"; then :
6557  # We can compile using X headers with no special include directory.
6558ac_x_includes=
6559else
6560  for ac_dir in $ac_x_header_dirs; do
6561  if test -r "$ac_dir/X11/Xlib.h"; then
6562    ac_x_includes=$ac_dir
6563    break
6564  fi
6565done
6566fi
6567rm -f conftest.err conftest.$ac_ext
6568fi # $ac_x_includes = no
6569
6570if test "$ac_x_libraries" = no; then
6571  # Check for the libraries.
6572  # See if we find them without any special options.
6573  # Don't add to $LIBS permanently.
6574  ac_save_LIBS=$LIBS
6575  LIBS="-lX11 $LIBS"
6576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h.  */
6578#include <X11/Xlib.h>
6579int
6580main ()
6581{
6582XrmInitialize ()
6583  ;
6584  return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_link "$LINENO"; then :
6588  LIBS=$ac_save_LIBS
6589# We can link X programs with no special library path.
6590ac_x_libraries=
6591else
6592  LIBS=$ac_save_LIBS
6593for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6594do
6595  # Don't even attempt the hair of trying to link an X program!
6596  for ac_extension in a so sl dylib la dll; do
6597    if test -r "$ac_dir/libX11.$ac_extension"; then
6598      ac_x_libraries=$ac_dir
6599      break 2
6600    fi
6601  done
6602done
6603fi
6604rm -f core conftest.err conftest.$ac_objext \
6605    conftest$ac_exeext conftest.$ac_ext
6606fi # $ac_x_libraries = no
6607
6608case $ac_x_includes,$ac_x_libraries in #(
6609  no,* | *,no | *\'*)
6610    # Didn't find X, or a directory has "'" in its name.
6611    ac_cv_have_x="have_x=no";; #(
6612  *)
6613    # Record where we found X for the cache.
6614    ac_cv_have_x="have_x=yes\
6615	ac_x_includes='$ac_x_includes'\
6616	ac_x_libraries='$ac_x_libraries'"
6617esac
6618fi
6619;; #(
6620    *) have_x=yes;;
6621  esac
6622  eval "$ac_cv_have_x"
6623fi # $with_x != no
6624
6625if test "$have_x" != yes; then
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6627$as_echo "$have_x" >&6; }
6628  no_x=yes
6629else
6630  # If each of the values was on the command line, it overrides each guess.
6631  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6632  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6633  # Update the cache value to reflect the command line values.
6634  ac_cv_have_x="have_x=yes\
6635	ac_x_includes='$x_includes'\
6636	ac_x_libraries='$x_libraries'"
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6638$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6639fi
6640
6641if test "$no_x" = yes; then
6642  # Not all programs may use this symbol, but it does not hurt to define it.
6643
6644$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6645
6646  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6647else
6648  if test -n "$x_includes"; then
6649    X_CFLAGS="$X_CFLAGS -I$x_includes"
6650  fi
6651
6652  # It would also be nice to do this for all -L options, not just this one.
6653  if test -n "$x_libraries"; then
6654    X_LIBS="$X_LIBS -L$x_libraries"
6655    # For Solaris; some versions of Sun CC require a space after -R and
6656    # others require no space.  Words are not sufficient . . . .
6657    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6658$as_echo_n "checking whether -R must be followed by a space... " >&6; }
6659    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6660    ac_xsave_c_werror_flag=$ac_c_werror_flag
6661    ac_c_werror_flag=yes
6662    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h.  */
6664
6665int
6666main ()
6667{
6668
6669  ;
6670  return 0;
6671}
6672_ACEOF
6673if ac_fn_c_try_link "$LINENO"; then :
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675$as_echo "no" >&6; }
6676       X_LIBS="$X_LIBS -R$x_libraries"
6677else
6678  LIBS="$ac_xsave_LIBS -R $x_libraries"
6679       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680/* end confdefs.h.  */
6681
6682int
6683main ()
6684{
6685
6686  ;
6687  return 0;
6688}
6689_ACEOF
6690if ac_fn_c_try_link "$LINENO"; then :
6691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6692$as_echo "yes" >&6; }
6693	  X_LIBS="$X_LIBS -R $x_libraries"
6694else
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6696$as_echo "neither works" >&6; }
6697fi
6698rm -f core conftest.err conftest.$ac_objext \
6699    conftest$ac_exeext conftest.$ac_ext
6700fi
6701rm -f core conftest.err conftest.$ac_objext \
6702    conftest$ac_exeext conftest.$ac_ext
6703    ac_c_werror_flag=$ac_xsave_c_werror_flag
6704    LIBS=$ac_xsave_LIBS
6705  fi
6706
6707  # Check for system-dependent libraries X programs must link with.
6708  # Do this before checking for the system-independent R6 libraries
6709  # (-lICE), since we may need -lsocket or whatever for X linking.
6710
6711  if test "$ISC" = yes; then
6712    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6713  else
6714    # Martyn Johnson says this is needed for Ultrix, if the X
6715    # libraries were built with DECnet support.  And Karl Berry says
6716    # the Alpha needs dnet_stub (dnet does not exist).
6717    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6718    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719/* end confdefs.h.  */
6720
6721/* Override any GCC internal prototype to avoid an error.
6722   Use char because int might match the return type of a GCC
6723   builtin and then its argument prototype would still apply.  */
6724#ifdef __cplusplus
6725extern "C"
6726#endif
6727char XOpenDisplay ();
6728int
6729main ()
6730{
6731return XOpenDisplay ();
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736if ac_fn_c_try_link "$LINENO"; then :
6737
6738else
6739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6740$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6741if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6742  $as_echo_n "(cached) " >&6
6743else
6744  ac_check_lib_save_LIBS=$LIBS
6745LIBS="-ldnet  $LIBS"
6746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747/* end confdefs.h.  */
6748
6749/* Override any GCC internal prototype to avoid an error.
6750   Use char because int might match the return type of a GCC
6751   builtin and then its argument prototype would still apply.  */
6752#ifdef __cplusplus
6753extern "C"
6754#endif
6755char dnet_ntoa ();
6756int
6757main ()
6758{
6759return dnet_ntoa ();
6760  ;
6761  return 0;
6762}
6763_ACEOF
6764if ac_fn_c_try_link "$LINENO"; then :
6765  ac_cv_lib_dnet_dnet_ntoa=yes
6766else
6767  ac_cv_lib_dnet_dnet_ntoa=no
6768fi
6769rm -f core conftest.err conftest.$ac_objext \
6770    conftest$ac_exeext conftest.$ac_ext
6771LIBS=$ac_check_lib_save_LIBS
6772fi
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6774$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6775if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6776  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6777fi
6778
6779    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6780      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6781$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6782if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6783  $as_echo_n "(cached) " >&6
6784else
6785  ac_check_lib_save_LIBS=$LIBS
6786LIBS="-ldnet_stub  $LIBS"
6787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788/* end confdefs.h.  */
6789
6790/* Override any GCC internal prototype to avoid an error.
6791   Use char because int might match the return type of a GCC
6792   builtin and then its argument prototype would still apply.  */
6793#ifdef __cplusplus
6794extern "C"
6795#endif
6796char dnet_ntoa ();
6797int
6798main ()
6799{
6800return dnet_ntoa ();
6801  ;
6802  return 0;
6803}
6804_ACEOF
6805if ac_fn_c_try_link "$LINENO"; then :
6806  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6807else
6808  ac_cv_lib_dnet_stub_dnet_ntoa=no
6809fi
6810rm -f core conftest.err conftest.$ac_objext \
6811    conftest$ac_exeext conftest.$ac_ext
6812LIBS=$ac_check_lib_save_LIBS
6813fi
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6815$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6816if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6817  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6818fi
6819
6820    fi
6821fi
6822rm -f core conftest.err conftest.$ac_objext \
6823    conftest$ac_exeext conftest.$ac_ext
6824    LIBS="$ac_xsave_LIBS"
6825
6826    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
6827    # to get the SysV transport functions.
6828    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6829    # needs -lnsl.
6830    # The nsl library prevents programs from opening the X display
6831    # on Irix 5.2, according to T.E. Dickey.
6832    # The functions gethostbyname, getservbyname, and inet_addr are
6833    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6834    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6835if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6836
6837fi
6838
6839    if test $ac_cv_func_gethostbyname = no; then
6840      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6841$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6842if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6843  $as_echo_n "(cached) " >&6
6844else
6845  ac_check_lib_save_LIBS=$LIBS
6846LIBS="-lnsl  $LIBS"
6847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h.  */
6849
6850/* Override any GCC internal prototype to avoid an error.
6851   Use char because int might match the return type of a GCC
6852   builtin and then its argument prototype would still apply.  */
6853#ifdef __cplusplus
6854extern "C"
6855#endif
6856char gethostbyname ();
6857int
6858main ()
6859{
6860return gethostbyname ();
6861  ;
6862  return 0;
6863}
6864_ACEOF
6865if ac_fn_c_try_link "$LINENO"; then :
6866  ac_cv_lib_nsl_gethostbyname=yes
6867else
6868  ac_cv_lib_nsl_gethostbyname=no
6869fi
6870rm -f core conftest.err conftest.$ac_objext \
6871    conftest$ac_exeext conftest.$ac_ext
6872LIBS=$ac_check_lib_save_LIBS
6873fi
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6875$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6876if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6877  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6878fi
6879
6880      if test $ac_cv_lib_nsl_gethostbyname = no; then
6881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6882$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6883if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6884  $as_echo_n "(cached) " >&6
6885else
6886  ac_check_lib_save_LIBS=$LIBS
6887LIBS="-lbsd  $LIBS"
6888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889/* end confdefs.h.  */
6890
6891/* Override any GCC internal prototype to avoid an error.
6892   Use char because int might match the return type of a GCC
6893   builtin and then its argument prototype would still apply.  */
6894#ifdef __cplusplus
6895extern "C"
6896#endif
6897char gethostbyname ();
6898int
6899main ()
6900{
6901return gethostbyname ();
6902  ;
6903  return 0;
6904}
6905_ACEOF
6906if ac_fn_c_try_link "$LINENO"; then :
6907  ac_cv_lib_bsd_gethostbyname=yes
6908else
6909  ac_cv_lib_bsd_gethostbyname=no
6910fi
6911rm -f core conftest.err conftest.$ac_objext \
6912    conftest$ac_exeext conftest.$ac_ext
6913LIBS=$ac_check_lib_save_LIBS
6914fi
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6916$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6917if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6918  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6919fi
6920
6921      fi
6922    fi
6923
6924    # [email protected] says without -lsocket,
6925    # socket/setsockopt and other routines are undefined under SCO ODT
6926    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6927    # on later versions), says Simon Leinen: it contains gethostby*
6928    # variants that don't use the name server (or something).  -lsocket
6929    # must be given before -lnsl if both are needed.  We assume that
6930    # if connect needs -lnsl, so does gethostbyname.
6931    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
6932if test "x$ac_cv_func_connect" = x""yes; then :
6933
6934fi
6935
6936    if test $ac_cv_func_connect = no; then
6937      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6938$as_echo_n "checking for connect in -lsocket... " >&6; }
6939if test "${ac_cv_lib_socket_connect+set}" = set; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  ac_check_lib_save_LIBS=$LIBS
6943LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945/* end confdefs.h.  */
6946
6947/* Override any GCC internal prototype to avoid an error.
6948   Use char because int might match the return type of a GCC
6949   builtin and then its argument prototype would still apply.  */
6950#ifdef __cplusplus
6951extern "C"
6952#endif
6953char connect ();
6954int
6955main ()
6956{
6957return connect ();
6958  ;
6959  return 0;
6960}
6961_ACEOF
6962if ac_fn_c_try_link "$LINENO"; then :
6963  ac_cv_lib_socket_connect=yes
6964else
6965  ac_cv_lib_socket_connect=no
6966fi
6967rm -f core conftest.err conftest.$ac_objext \
6968    conftest$ac_exeext conftest.$ac_ext
6969LIBS=$ac_check_lib_save_LIBS
6970fi
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6972$as_echo "$ac_cv_lib_socket_connect" >&6; }
6973if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6974  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6975fi
6976
6977    fi
6978
6979    # Guillermo Gomez says -lposix is necessary on A/UX.
6980    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
6981if test "x$ac_cv_func_remove" = x""yes; then :
6982
6983fi
6984
6985    if test $ac_cv_func_remove = no; then
6986      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6987$as_echo_n "checking for remove in -lposix... " >&6; }
6988if test "${ac_cv_lib_posix_remove+set}" = set; then :
6989  $as_echo_n "(cached) " >&6
6990else
6991  ac_check_lib_save_LIBS=$LIBS
6992LIBS="-lposix  $LIBS"
6993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h.  */
6995
6996/* Override any GCC internal prototype to avoid an error.
6997   Use char because int might match the return type of a GCC
6998   builtin and then its argument prototype would still apply.  */
6999#ifdef __cplusplus
7000extern "C"
7001#endif
7002char remove ();
7003int
7004main ()
7005{
7006return remove ();
7007  ;
7008  return 0;
7009}
7010_ACEOF
7011if ac_fn_c_try_link "$LINENO"; then :
7012  ac_cv_lib_posix_remove=yes
7013else
7014  ac_cv_lib_posix_remove=no
7015fi
7016rm -f core conftest.err conftest.$ac_objext \
7017    conftest$ac_exeext conftest.$ac_ext
7018LIBS=$ac_check_lib_save_LIBS
7019fi
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7021$as_echo "$ac_cv_lib_posix_remove" >&6; }
7022if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7023  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7024fi
7025
7026    fi
7027
7028    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7029    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7030if test "x$ac_cv_func_shmat" = x""yes; then :
7031
7032fi
7033
7034    if test $ac_cv_func_shmat = no; then
7035      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7036$as_echo_n "checking for shmat in -lipc... " >&6; }
7037if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7038  $as_echo_n "(cached) " >&6
7039else
7040  ac_check_lib_save_LIBS=$LIBS
7041LIBS="-lipc  $LIBS"
7042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043/* end confdefs.h.  */
7044
7045/* Override any GCC internal prototype to avoid an error.
7046   Use char because int might match the return type of a GCC
7047   builtin and then its argument prototype would still apply.  */
7048#ifdef __cplusplus
7049extern "C"
7050#endif
7051char shmat ();
7052int
7053main ()
7054{
7055return shmat ();
7056  ;
7057  return 0;
7058}
7059_ACEOF
7060if ac_fn_c_try_link "$LINENO"; then :
7061  ac_cv_lib_ipc_shmat=yes
7062else
7063  ac_cv_lib_ipc_shmat=no
7064fi
7065rm -f core conftest.err conftest.$ac_objext \
7066    conftest$ac_exeext conftest.$ac_ext
7067LIBS=$ac_check_lib_save_LIBS
7068fi
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7070$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7071if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7072  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7073fi
7074
7075    fi
7076  fi
7077
7078  # Check for libraries that X11R6 Xt/Xaw programs need.
7079  ac_save_LDFLAGS=$LDFLAGS
7080  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7081  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7082  # check for ICE first), but we must link in the order -lSM -lICE or
7083  # we get undefined symbols.  So assume we have SM if we have ICE.
7084  # These have to be linked with before -lX11, unlike the other
7085  # libraries we check for below, so use a different variable.
7086  # John Interrante, Karl Berry
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7088$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7089if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7090  $as_echo_n "(cached) " >&6
7091else
7092  ac_check_lib_save_LIBS=$LIBS
7093LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095/* end confdefs.h.  */
7096
7097/* Override any GCC internal prototype to avoid an error.
7098   Use char because int might match the return type of a GCC
7099   builtin and then its argument prototype would still apply.  */
7100#ifdef __cplusplus
7101extern "C"
7102#endif
7103char IceConnectionNumber ();
7104int
7105main ()
7106{
7107return IceConnectionNumber ();
7108  ;
7109  return 0;
7110}
7111_ACEOF
7112if ac_fn_c_try_link "$LINENO"; then :
7113  ac_cv_lib_ICE_IceConnectionNumber=yes
7114else
7115  ac_cv_lib_ICE_IceConnectionNumber=no
7116fi
7117rm -f core conftest.err conftest.$ac_objext \
7118    conftest$ac_exeext conftest.$ac_ext
7119LIBS=$ac_check_lib_save_LIBS
7120fi
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7122$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7123if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7124  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7125fi
7126
7127  LDFLAGS=$ac_save_LDFLAGS
7128
7129fi
7130
7131
7132        if test "$zOSUnix" = "yes"; then
7133    CFLAGS="$CFLAGS -W c,dll"
7134    LDFLAGS="$LDFLAGS -W l,dll"
7135    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7136  fi
7137
7138
7139  if test -d "$x_includes" && test ! -d "$x_libraries"; then
7140    x_libraries=`echo "$x_includes" | sed s/include/lib/`
7141    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
7142$as_echo "Corrected X libraries to $x_libraries" >&6; }
7143    X_LIBS="$X_LIBS -L$x_libraries"
7144    if test "`(uname) 2>/dev/null`" = SunOS &&
7145					 uname -r | grep '^5' >/dev/null; then
7146      X_LIBS="$X_LIBS -R $x_libraries"
7147    fi
7148  fi
7149
7150  if test -d "$x_libraries" && test ! -d "$x_includes"; then
7151    x_includes=`echo "$x_libraries" | sed s/lib/include/`
7152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
7153$as_echo "Corrected X includes to $x_includes" >&6; }
7154    X_CFLAGS="$X_CFLAGS -I$x_includes"
7155  fi
7156
7157    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
7158    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
7159    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7160
7161
7162        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
7163$as_echo_n "checking if X11 header files can be found... " >&6; }
7164  cflags_save=$CFLAGS
7165  CFLAGS="$CFLAGS $X_CFLAGS"
7166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167/* end confdefs.h.  */
7168#include <X11/Xlib.h>
7169#include <X11/Intrinsic.h>
7170int
7171main ()
7172{
7173
7174  ;
7175  return 0;
7176}
7177_ACEOF
7178if ac_fn_c_try_compile "$LINENO"; then :
7179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7180$as_echo "yes" >&6; }
7181else
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183$as_echo "no" >&6; }; no_x=yes
7184fi
7185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186  CFLAGS=$cflags_save
7187
7188  if test "${no_x-no}" = yes; then
7189    with_x=no
7190  else
7191    $as_echo "#define HAVE_X11 1" >>confdefs.h
7192
7193    X_LIB="-lXt -lX11";
7194
7195
7196    ac_save_LDFLAGS="$LDFLAGS"
7197    LDFLAGS="-L$x_libraries $LDFLAGS"
7198
7199            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7200$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7201if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  ac_check_lib_save_LIBS=$LIBS
7205LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207/* end confdefs.h.  */
7208
7209/* Override any GCC internal prototype to avoid an error.
7210   Use char because int might match the return type of a GCC
7211   builtin and then its argument prototype would still apply.  */
7212#ifdef __cplusplus
7213extern "C"
7214#endif
7215char _XdmcpAuthDoIt ();
7216int
7217main ()
7218{
7219return _XdmcpAuthDoIt ();
7220  ;
7221  return 0;
7222}
7223_ACEOF
7224if ac_fn_c_try_link "$LINENO"; then :
7225  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7226else
7227  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7228fi
7229rm -f core conftest.err conftest.$ac_objext \
7230    conftest$ac_exeext conftest.$ac_ext
7231LIBS=$ac_check_lib_save_LIBS
7232fi
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7234$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7235if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then :
7236  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7237fi
7238
7239
7240                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
7241$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7242if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then :
7243  $as_echo_n "(cached) " >&6
7244else
7245  ac_check_lib_save_LIBS=$LIBS
7246LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249
7250/* Override any GCC internal prototype to avoid an error.
7251   Use char because int might match the return type of a GCC
7252   builtin and then its argument prototype would still apply.  */
7253#ifdef __cplusplus
7254extern "C"
7255#endif
7256char IceOpenConnection ();
7257int
7258main ()
7259{
7260return IceOpenConnection ();
7261  ;
7262  return 0;
7263}
7264_ACEOF
7265if ac_fn_c_try_link "$LINENO"; then :
7266  ac_cv_lib_ICE_IceOpenConnection=yes
7267else
7268  ac_cv_lib_ICE_IceOpenConnection=no
7269fi
7270rm -f core conftest.err conftest.$ac_objext \
7271    conftest$ac_exeext conftest.$ac_ext
7272LIBS=$ac_check_lib_save_LIBS
7273fi
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7275$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7276if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then :
7277  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7278fi
7279
7280
7281        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
7283$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7284if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then :
7285  $as_echo_n "(cached) " >&6
7286else
7287  ac_check_lib_save_LIBS=$LIBS
7288LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h.  */
7291
7292/* Override any GCC internal prototype to avoid an error.
7293   Use char because int might match the return type of a GCC
7294   builtin and then its argument prototype would still apply.  */
7295#ifdef __cplusplus
7296extern "C"
7297#endif
7298char XpmCreatePixmapFromData ();
7299int
7300main ()
7301{
7302return XpmCreatePixmapFromData ();
7303  ;
7304  return 0;
7305}
7306_ACEOF
7307if ac_fn_c_try_link "$LINENO"; then :
7308  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7309else
7310  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7311fi
7312rm -f core conftest.err conftest.$ac_objext \
7313    conftest$ac_exeext conftest.$ac_ext
7314LIBS=$ac_check_lib_save_LIBS
7315fi
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7317$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7318if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then :
7319  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7320fi
7321
7322
7323        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
7324$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7325    cflags_save=$CFLAGS
7326    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7327    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h.  */
7329#include <X11/Xlib.h>
7330int
7331main ()
7332{
7333
7334  ;
7335  return 0;
7336}
7337_ACEOF
7338if ac_fn_c_try_compile "$LINENO"; then :
7339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340$as_echo "no" >&6; }
7341else
7342  CFLAGS="$CFLAGS -Wno-implicit-int"
7343	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344/* end confdefs.h.  */
7345#include <X11/Xlib.h>
7346int
7347main ()
7348{
7349
7350  ;
7351  return 0;
7352}
7353_ACEOF
7354if ac_fn_c_try_compile "$LINENO"; then :
7355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7356$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7357else
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
7359$as_echo "test failed" >&6; }
7360
7361fi
7362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363
7364fi
7365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366    CFLAGS=$cflags_save
7367
7368    LDFLAGS="$ac_save_LDFLAGS"
7369
7370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
7371$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
7372    if test "${ac_cv_small_wchar_t+set}" = set; then :
7373  $as_echo_n "(cached) " >&6
7374else
7375  if test "$cross_compiling" = yes; then :
7376  as_fn_error "failed to compile test program" "$LINENO" 5
7377else
7378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h.  */
7380
7381#include <X11/Xlib.h>
7382#if STDC_HEADERS
7383# include <stdlib.h>
7384# include <stddef.h>
7385#endif
7386		main()
7387		{
7388		  if (sizeof(wchar_t) <= 2)
7389		    exit(1);
7390		  exit(0);
7391		}
7392_ACEOF
7393if ac_fn_c_try_run "$LINENO"; then :
7394  ac_cv_small_wchar_t="no"
7395else
7396  ac_cv_small_wchar_t="yes"
7397fi
7398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7399  conftest.$ac_objext conftest.beam conftest.$ac_ext
7400fi
7401
7402fi
7403
7404    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
7405$as_echo "$ac_cv_small_wchar_t" >&6; }
7406    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
7407      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
7408
7409    fi
7410
7411  fi
7412fi
7413
7414test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7415
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
7417$as_echo_n "checking --enable-gui argument... " >&6; }
7418# Check whether --enable-gui was given.
7419if test "${enable_gui+set}" = set; then :
7420  enableval=$enable_gui;
7421else
7422  enable_gui="auto"
7423fi
7424
7425
7426enable_gui_canon=`echo "_$enable_gui" | \
7427	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7428
7429SKIP_GTK2=YES
7430SKIP_GNOME=YES
7431SKIP_MOTIF=YES
7432SKIP_ATHENA=YES
7433SKIP_NEXTAW=YES
7434SKIP_PHOTON=YES
7435SKIP_CARBON=YES
7436GUITYPE=NONE
7437
7438if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7439  SKIP_PHOTON=
7440  case "$enable_gui_canon" in
7441    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
7442$as_echo "no GUI support" >&6; }
7443		SKIP_PHOTON=YES ;;
7444    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
7445$as_echo "yes - automatic GUI support" >&6; } ;;
7446    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
7447$as_echo "auto - automatic GUI support" >&6; } ;;
7448    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
7449$as_echo "Photon GUI support" >&6; } ;;
7450    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
7451$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
7452		SKIP_PHOTON=YES ;;
7453  esac
7454
7455elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7456  SKIP_CARBON=
7457  case "$enable_gui_canon" in
7458    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
7459$as_echo "no GUI support" >&6; }
7460		SKIP_CARBON=YES ;;
7461    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
7462$as_echo "yes - automatic GUI support" >&6; } ;;
7463    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
7464$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
7465		SKIP_CARBON=YES ;;
7466    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
7467$as_echo "Carbon GUI support" >&6; } ;;
7468    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
7469$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
7470		SKIP_CARBON=YES ;;
7471  esac
7472
7473else
7474
7475  case "$enable_gui_canon" in
7476    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
7477$as_echo "no GUI support" >&6; } ;;
7478    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
7479$as_echo "yes/auto - automatic GUI support" >&6; }
7480		SKIP_GTK2=
7481		SKIP_GNOME=
7482		SKIP_MOTIF=
7483		SKIP_ATHENA=
7484		SKIP_NEXTAW=
7485		SKIP_CARBON=;;
7486    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
7487$as_echo "GTK+ 2.x GUI support" >&6; }
7488		SKIP_GTK2=;;
7489    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
7490$as_echo "GNOME 2.x GUI support" >&6; }
7491		SKIP_GNOME=
7492		SKIP_GTK2=;;
7493    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
7494$as_echo "Motif GUI support" >&6; }
7495		SKIP_MOTIF=;;
7496    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
7497$as_echo "Athena GUI support" >&6; }
7498		SKIP_ATHENA=;;
7499    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
7500$as_echo "neXtaw GUI support" >&6; }
7501		SKIP_NEXTAW=;;
7502    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
7503$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
7504  esac
7505
7506fi
7507
7508if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7509				-a "$enable_gui_canon" != "gnome2"; then
7510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
7511$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
7512  # Check whether --enable-gtk2-check was given.
7513if test "${enable_gtk2_check+set}" = set; then :
7514  enableval=$enable_gtk2_check;
7515else
7516  enable_gtk2_check="yes"
7517fi
7518
7519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
7520$as_echo "$enable_gtk2_check" >&6; }
7521  if test "x$enable_gtk2_check" = "xno"; then
7522    SKIP_GTK2=YES
7523    SKIP_GNOME=YES
7524  fi
7525fi
7526
7527if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
7528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
7529$as_echo_n "checking whether or not to look for GNOME... " >&6; }
7530  # Check whether --enable-gnome-check was given.
7531if test "${enable_gnome_check+set}" = set; then :
7532  enableval=$enable_gnome_check;
7533else
7534  enable_gnome_check="no"
7535fi
7536
7537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
7538$as_echo "$enable_gnome_check" >&6; }
7539  if test "x$enable_gnome_check" = "xno"; then
7540    SKIP_GNOME=YES
7541  fi
7542fi
7543
7544if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
7545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
7546$as_echo_n "checking whether or not to look for Motif... " >&6; }
7547  # Check whether --enable-motif-check was given.
7548if test "${enable_motif_check+set}" = set; then :
7549  enableval=$enable_motif_check;
7550else
7551  enable_motif_check="yes"
7552fi
7553
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
7555$as_echo "$enable_motif_check" >&6; }
7556  if test "x$enable_motif_check" = "xno"; then
7557    SKIP_MOTIF=YES
7558  fi
7559fi
7560
7561if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
7562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
7563$as_echo_n "checking whether or not to look for Athena... " >&6; }
7564  # Check whether --enable-athena-check was given.
7565if test "${enable_athena_check+set}" = set; then :
7566  enableval=$enable_athena_check;
7567else
7568  enable_athena_check="yes"
7569fi
7570
7571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
7572$as_echo "$enable_athena_check" >&6; }
7573  if test "x$enable_athena_check" = "xno"; then
7574    SKIP_ATHENA=YES
7575  fi
7576fi
7577
7578if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
7579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
7580$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
7581  # Check whether --enable-nextaw-check was given.
7582if test "${enable_nextaw_check+set}" = set; then :
7583  enableval=$enable_nextaw_check;
7584else
7585  enable_nextaw_check="yes"
7586fi
7587
7588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
7589$as_echo "$enable_nextaw_check" >&6; };
7590  if test "x$enable_nextaw_check" = "xno"; then
7591    SKIP_NEXTAW=YES
7592  fi
7593fi
7594
7595if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
7596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
7597$as_echo_n "checking whether or not to look for Carbon... " >&6; }
7598  # Check whether --enable-carbon-check was given.
7599if test "${enable_carbon_check+set}" = set; then :
7600  enableval=$enable_carbon_check;
7601else
7602  enable_carbon_check="yes"
7603fi
7604
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
7606$as_echo "$enable_carbon_check" >&6; };
7607  if test "x$enable_carbon_check" = "xno"; then
7608    SKIP_CARBON=YES
7609  fi
7610fi
7611
7612
7613if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
7614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
7615$as_echo_n "checking for Carbon GUI... " >&6; }
7616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7617$as_echo "yes" >&6; };
7618  GUITYPE=CARBONGUI
7619  if test "$VIMNAME" = "vim"; then
7620    VIMNAME=Vim
7621  fi
7622
7623  if test "x$MACARCH" = "xboth"; then
7624    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
7625  else
7626    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
7627  fi
7628
7629    if test x$prefix = xNONE; then
7630    prefix=/Applications
7631  fi
7632
7633    datadir='${prefix}/Vim.app/Contents/Resources'
7634
7635    SKIP_GTK2=YES;
7636  SKIP_GNOME=YES;
7637  SKIP_MOTIF=YES;
7638  SKIP_ATHENA=YES;
7639  SKIP_NEXTAW=YES;
7640  SKIP_PHOTON=YES;
7641  SKIP_CARBON=YES
7642fi
7643
7644
7645
7646
7647
7648
7649
7650
7651if test -z "$SKIP_GTK2"; then
7652
7653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
7654$as_echo_n "checking --disable-gtktest argument... " >&6; }
7655  # Check whether --enable-gtktest was given.
7656if test "${enable_gtktest+set}" = set; then :
7657  enableval=$enable_gtktest;
7658else
7659  enable_gtktest=yes
7660fi
7661
7662  if test "x$enable_gtktest" = "xyes" ; then
7663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
7664$as_echo "gtk test enabled" >&6; }
7665  else
7666    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
7667$as_echo "gtk test disabled" >&6; }
7668  fi
7669
7670  if test "X$PKG_CONFIG" = "X"; then
7671    # Extract the first word of "pkg-config", so it can be a program name with args.
7672set dummy pkg-config; ac_word=$2
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674$as_echo_n "checking for $ac_word... " >&6; }
7675if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  case $PKG_CONFIG in
7679  [\\/]* | ?:[\\/]*)
7680  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7681  ;;
7682  *)
7683  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686  IFS=$as_save_IFS
7687  test -z "$as_dir" && as_dir=.
7688    for ac_exec_ext in '' $ac_executable_extensions; do
7689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692    break 2
7693  fi
7694done
7695  done
7696IFS=$as_save_IFS
7697
7698  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7699  ;;
7700esac
7701fi
7702PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7703if test -n "$PKG_CONFIG"; then
7704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7705$as_echo "$PKG_CONFIG" >&6; }
7706else
7707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708$as_echo "no" >&6; }
7709fi
7710
7711
7712  fi
7713
7714  if test "x$PKG_CONFIG" != "xno"; then
7715
7716  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7717  {
7718    min_gtk_version=2.2.0
7719    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
7720$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
7721    no_gtk=""
7722    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7723	  && $PKG_CONFIG --exists gtk+-2.0; then
7724    {
7725                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7726      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7727      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7728      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7729	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7730      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7731	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7732      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7733	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7734    }
7735    else
7736      no_gtk=yes
7737    fi
7738
7739    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7740    {
7741      ac_save_CFLAGS="$CFLAGS"
7742      ac_save_LIBS="$LIBS"
7743      CFLAGS="$CFLAGS $GTK_CFLAGS"
7744      LIBS="$LIBS $GTK_LIBS"
7745
7746                        rm -f conf.gtktest
7747      if test "$cross_compiling" = yes; then :
7748  echo $ac_n "cross compiling; assumed OK... $ac_c"
7749else
7750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752
7753#include <gtk/gtk.h>
7754#include <stdio.h>
7755#if STDC_HEADERS
7756# include <stdlib.h>
7757# include <stddef.h>
7758#endif
7759
7760int
7761main ()
7762{
7763int major, minor, micro;
7764char *tmp_version;
7765
7766system ("touch conf.gtktest");
7767
7768/* HP/UX 9 (%@#!) writes to sscanf strings */
7769tmp_version = g_strdup("$min_gtk_version");
7770if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7771   printf("%s, bad version string\n", "$min_gtk_version");
7772   exit(1);
7773 }
7774
7775if ((gtk_major_version > major) ||
7776    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7777    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7778				     (gtk_micro_version >= micro)))
7779{
7780    return 0;
7781}
7782return 1;
7783}
7784
7785_ACEOF
7786if ac_fn_c_try_run "$LINENO"; then :
7787
7788else
7789  no_gtk=yes
7790fi
7791rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7792  conftest.$ac_objext conftest.beam conftest.$ac_ext
7793fi
7794
7795      CFLAGS="$ac_save_CFLAGS"
7796      LIBS="$ac_save_LIBS"
7797    }
7798    fi
7799    if test "x$no_gtk" = x ; then
7800      if test "x$enable_gtktest" = "xyes"; then
7801	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7802$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
7803      else
7804	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7805$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
7806      fi
7807      GUI_LIB_LOC="$GTK_LIBDIR"
7808		 GTK_LIBNAME="$GTK_LIBS"
7809		GUI_INC_LOC="$GTK_CFLAGS"
7810    else
7811    {
7812      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813$as_echo "no" >&6; }
7814      GTK_CFLAGS=""
7815      GTK_LIBS=""
7816      :
7817    }
7818    fi
7819  }
7820  else
7821    GTK_CFLAGS=""
7822    GTK_LIBS=""
7823    :
7824  fi
7825
7826
7827  rm -f conf.gtktest
7828
7829    if test "x$GTK_CFLAGS" != "x"; then
7830      SKIP_ATHENA=YES
7831      SKIP_NEXTAW=YES
7832      SKIP_MOTIF=YES
7833      GUITYPE=GTK
7834
7835    fi
7836  fi
7837  if test "x$GUITYPE" = "xGTK"; then
7838    if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7839	|| test "0$gtk_minor_version" -ge 2; then
7840      $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h
7841
7842    fi
7843                if test -z "$SKIP_GNOME"; then
7844    {
7845
7846
7847
7848
7849
7850
7851# Check whether --with-gnome-includes was given.
7852if test "${with_gnome_includes+set}" = set; then :
7853  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
7854
7855fi
7856
7857
7858
7859# Check whether --with-gnome-libs was given.
7860if test "${with_gnome_libs+set}" = set; then :
7861  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
7862
7863fi
7864
7865
7866
7867# Check whether --with-gnome was given.
7868if test "${with_gnome+set}" = set; then :
7869  withval=$with_gnome; if test x$withval = xyes; then
7870      want_gnome=yes
7871      have_gnome=yes
7872    else
7873      if test "x$withval" = xno; then
7874	want_gnome=no
7875      else
7876	want_gnome=yes
7877	LDFLAGS="$LDFLAGS -L$withval/lib"
7878	CFLAGS="$CFLAGS -I$withval/include"
7879	gnome_prefix=$withval/lib
7880      fi
7881    fi
7882else
7883  want_gnome=yes
7884fi
7885
7886
7887  if test "x$want_gnome" = xyes; then
7888  {
7889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
7890$as_echo_n "checking for libgnomeui-2.0... " >&6; }
7891    if $PKG_CONFIG --exists libgnomeui-2.0; then
7892      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7893$as_echo "yes" >&6; }
7894      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7895      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7896      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
7897
7898                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
7899$as_echo_n "checking for FreeBSD... " >&6; }
7900      if test "`(uname) 2>/dev/null`" = FreeBSD; then
7901	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902$as_echo "yes" >&6; }
7903	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
7904	GNOME_LIBS="$GNOME_LIBS -pthread"
7905      else
7906	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }
7908      fi
7909      have_gnome=yes
7910    else
7911      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7912$as_echo "not found" >&6; }
7913      if test "x" = xfail; then
7914	as_fn_error "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
7915      fi
7916    fi
7917  }
7918  fi
7919
7920      if test "x$have_gnome" = xyes ; then
7921	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
7922
7923	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7924	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7925      fi
7926    }
7927    fi
7928  fi
7929fi
7930
7931
7932if test -z "$SKIP_MOTIF"; then
7933  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"
7934    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7935
7936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
7937$as_echo_n "checking for location of Motif GUI includes... " >&6; }
7938  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7939  GUI_INC_LOC=
7940  for try in $gui_includes; do
7941    if test -f "$try/Xm/Xm.h"; then
7942      GUI_INC_LOC=$try
7943    fi
7944  done
7945  if test -n "$GUI_INC_LOC"; then
7946    if test "$GUI_INC_LOC" = /usr/include; then
7947      GUI_INC_LOC=
7948      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
7949$as_echo "in default path" >&6; }
7950    else
7951      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
7952$as_echo "$GUI_INC_LOC" >&6; }
7953    fi
7954  else
7955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7956$as_echo "<not found>" >&6; }
7957    SKIP_MOTIF=YES
7958  fi
7959fi
7960
7961
7962if test -z "$SKIP_MOTIF"; then
7963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
7964$as_echo_n "checking --with-motif-lib argument... " >&6; }
7965
7966# Check whether --with-motif-lib was given.
7967if test "${with_motif_lib+set}" = set; then :
7968  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
7969fi
7970
7971
7972  if test -n "$MOTIF_LIBNAME"; then
7973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
7974$as_echo "$MOTIF_LIBNAME" >&6; }
7975    GUI_LIB_LOC=
7976  else
7977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978$as_echo "no" >&6; }
7979
7980        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
7981
7982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
7983$as_echo_n "checking for location of Motif GUI libs... " >&6; }
7984    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"
7985    GUI_LIB_LOC=
7986    for try in $gui_libs; do
7987      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
7988	if test -f "$libtry"; then
7989	  GUI_LIB_LOC=$try
7990	fi
7991      done
7992    done
7993    if test -n "$GUI_LIB_LOC"; then
7994            if test "$GUI_LIB_LOC" = /usr/lib; then
7995	GUI_LIB_LOC=
7996	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
7997$as_echo "in default path" >&6; }
7998      else
7999	if test -n "$GUI_LIB_LOC"; then
8000	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
8001$as_echo "$GUI_LIB_LOC" >&6; }
8002	  if test "`(uname) 2>/dev/null`" = SunOS &&
8003					 uname -r | grep '^5' >/dev/null; then
8004	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8005	  fi
8006	fi
8007      fi
8008      MOTIF_LIBNAME=-lXm
8009    else
8010      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
8011$as_echo "<not found>" >&6; }
8012      SKIP_MOTIF=YES
8013    fi
8014  fi
8015fi
8016
8017if test -z "$SKIP_MOTIF"; then
8018  SKIP_ATHENA=YES
8019  SKIP_NEXTAW=YES
8020  GUITYPE=MOTIF
8021
8022fi
8023
8024
8025GUI_X_LIBS=
8026
8027if test -z "$SKIP_ATHENA"; then
8028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
8029$as_echo_n "checking if Athena header files can be found... " >&6; }
8030  cflags_save=$CFLAGS
8031  CFLAGS="$CFLAGS $X_CFLAGS"
8032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033/* end confdefs.h.  */
8034
8035#include <X11/Intrinsic.h>
8036#include <X11/Xaw/Paned.h>
8037int
8038main ()
8039{
8040
8041  ;
8042  return 0;
8043}
8044_ACEOF
8045if ac_fn_c_try_compile "$LINENO"; then :
8046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8047$as_echo "yes" >&6; }
8048else
8049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050$as_echo "no" >&6; }; SKIP_ATHENA=YES
8051fi
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053  CFLAGS=$cflags_save
8054fi
8055
8056if test -z "$SKIP_ATHENA"; then
8057  GUITYPE=ATHENA
8058fi
8059
8060if test -z "$SKIP_NEXTAW"; then
8061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
8062$as_echo_n "checking if neXtaw header files can be found... " >&6; }
8063  cflags_save=$CFLAGS
8064  CFLAGS="$CFLAGS $X_CFLAGS"
8065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066/* end confdefs.h.  */
8067
8068#include <X11/Intrinsic.h>
8069#include <X11/neXtaw/Paned.h>
8070int
8071main ()
8072{
8073
8074  ;
8075  return 0;
8076}
8077_ACEOF
8078if ac_fn_c_try_compile "$LINENO"; then :
8079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8080$as_echo "yes" >&6; }
8081else
8082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083$as_echo "no" >&6; }; SKIP_NEXTAW=YES
8084fi
8085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086  CFLAGS=$cflags_save
8087fi
8088
8089if test -z "$SKIP_NEXTAW"; then
8090  GUITYPE=NEXTAW
8091fi
8092
8093if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8094      if test -n "$GUI_INC_LOC"; then
8095    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8096  fi
8097  if test -n "$GUI_LIB_LOC"; then
8098    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8099  fi
8100
8101    ldflags_save=$LDFLAGS
8102  LDFLAGS="$X_LIBS $LDFLAGS"
8103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8104$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8105if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8106  $as_echo_n "(cached) " >&6
8107else
8108  ac_check_lib_save_LIBS=$LIBS
8109LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h.  */
8112
8113/* Override any GCC internal prototype to avoid an error.
8114   Use char because int might match the return type of a GCC
8115   builtin and then its argument prototype would still apply.  */
8116#ifdef __cplusplus
8117extern "C"
8118#endif
8119char XShapeQueryExtension ();
8120int
8121main ()
8122{
8123return XShapeQueryExtension ();
8124  ;
8125  return 0;
8126}
8127_ACEOF
8128if ac_fn_c_try_link "$LINENO"; then :
8129  ac_cv_lib_Xext_XShapeQueryExtension=yes
8130else
8131  ac_cv_lib_Xext_XShapeQueryExtension=no
8132fi
8133rm -f core conftest.err conftest.$ac_objext \
8134    conftest$ac_exeext conftest.$ac_ext
8135LIBS=$ac_check_lib_save_LIBS
8136fi
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8138$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8139if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8140  GUI_X_LIBS="-lXext"
8141fi
8142
8143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
8144$as_echo_n "checking for wslen in -lw... " >&6; }
8145if test "${ac_cv_lib_w_wslen+set}" = set; then :
8146  $as_echo_n "(cached) " >&6
8147else
8148  ac_check_lib_save_LIBS=$LIBS
8149LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151/* end confdefs.h.  */
8152
8153/* Override any GCC internal prototype to avoid an error.
8154   Use char because int might match the return type of a GCC
8155   builtin and then its argument prototype would still apply.  */
8156#ifdef __cplusplus
8157extern "C"
8158#endif
8159char wslen ();
8160int
8161main ()
8162{
8163return wslen ();
8164  ;
8165  return 0;
8166}
8167_ACEOF
8168if ac_fn_c_try_link "$LINENO"; then :
8169  ac_cv_lib_w_wslen=yes
8170else
8171  ac_cv_lib_w_wslen=no
8172fi
8173rm -f core conftest.err conftest.$ac_objext \
8174    conftest$ac_exeext conftest.$ac_ext
8175LIBS=$ac_check_lib_save_LIBS
8176fi
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
8178$as_echo "$ac_cv_lib_w_wslen" >&6; }
8179if test "x$ac_cv_lib_w_wslen" = x""yes; then :
8180  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
8181fi
8182
8183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
8184$as_echo_n "checking for dlsym in -ldl... " >&6; }
8185if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
8186  $as_echo_n "(cached) " >&6
8187else
8188  ac_check_lib_save_LIBS=$LIBS
8189LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191/* end confdefs.h.  */
8192
8193/* Override any GCC internal prototype to avoid an error.
8194   Use char because int might match the return type of a GCC
8195   builtin and then its argument prototype would still apply.  */
8196#ifdef __cplusplus
8197extern "C"
8198#endif
8199char dlsym ();
8200int
8201main ()
8202{
8203return dlsym ();
8204  ;
8205  return 0;
8206}
8207_ACEOF
8208if ac_fn_c_try_link "$LINENO"; then :
8209  ac_cv_lib_dl_dlsym=yes
8210else
8211  ac_cv_lib_dl_dlsym=no
8212fi
8213rm -f core conftest.err conftest.$ac_objext \
8214    conftest$ac_exeext conftest.$ac_ext
8215LIBS=$ac_check_lib_save_LIBS
8216fi
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
8218$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
8219if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
8220  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
8221fi
8222
8223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
8224$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
8225if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then :
8226  $as_echo_n "(cached) " >&6
8227else
8228  ac_check_lib_save_LIBS=$LIBS
8229LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231/* end confdefs.h.  */
8232
8233/* Override any GCC internal prototype to avoid an error.
8234   Use char because int might match the return type of a GCC
8235   builtin and then its argument prototype would still apply.  */
8236#ifdef __cplusplus
8237extern "C"
8238#endif
8239char XmuCreateStippledPixmap ();
8240int
8241main ()
8242{
8243return XmuCreateStippledPixmap ();
8244  ;
8245  return 0;
8246}
8247_ACEOF
8248if ac_fn_c_try_link "$LINENO"; then :
8249  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
8250else
8251  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
8252fi
8253rm -f core conftest.err conftest.$ac_objext \
8254    conftest$ac_exeext conftest.$ac_ext
8255LIBS=$ac_check_lib_save_LIBS
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8258$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
8259if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then :
8260  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
8261fi
8262
8263  if test -z "$SKIP_MOTIF"; then
8264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
8265$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
8266if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then :
8267  $as_echo_n "(cached) " >&6
8268else
8269  ac_check_lib_save_LIBS=$LIBS
8270LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273
8274/* Override any GCC internal prototype to avoid an error.
8275   Use char because int might match the return type of a GCC
8276   builtin and then its argument prototype would still apply.  */
8277#ifdef __cplusplus
8278extern "C"
8279#endif
8280char XpEndJob ();
8281int
8282main ()
8283{
8284return XpEndJob ();
8285  ;
8286  return 0;
8287}
8288_ACEOF
8289if ac_fn_c_try_link "$LINENO"; then :
8290  ac_cv_lib_Xp_XpEndJob=yes
8291else
8292  ac_cv_lib_Xp_XpEndJob=no
8293fi
8294rm -f core conftest.err conftest.$ac_objext \
8295    conftest$ac_exeext conftest.$ac_ext
8296LIBS=$ac_check_lib_save_LIBS
8297fi
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
8299$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
8300if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then :
8301  GUI_X_LIBS="-lXp $GUI_X_LIBS"
8302fi
8303
8304  fi
8305  LDFLAGS=$ldflags_save
8306
8307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
8308$as_echo_n "checking for extra X11 defines... " >&6; }
8309  NARROW_PROTO=
8310  rm -fr conftestdir
8311  if mkdir conftestdir; then
8312    cd conftestdir
8313    cat > Imakefile <<'EOF'
8314acfindx:
8315	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8316EOF
8317    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8318      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8319    fi
8320    cd ..
8321    rm -fr conftestdir
8322  fi
8323  if test -z "$NARROW_PROTO"; then
8324    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325$as_echo "no" >&6; }
8326  else
8327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
8328$as_echo "$NARROW_PROTO" >&6; }
8329  fi
8330
8331fi
8332
8333if test "$enable_xsmp" = "yes"; then
8334  cppflags_save=$CPPFLAGS
8335  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8336  for ac_header in X11/SM/SMlib.h
8337do :
8338  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
8339if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
8340  cat >>confdefs.h <<_ACEOF
8341#define HAVE_X11_SM_SMLIB_H 1
8342_ACEOF
8343
8344fi
8345
8346done
8347
8348  CPPFLAGS=$cppflags_save
8349fi
8350
8351
8352if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2"; then
8353    cppflags_save=$CPPFLAGS
8354  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8355  for ac_header in X11/xpm.h X11/Sunkeysym.h
8356do :
8357  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8358ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8359eval as_val=\$$as_ac_Header
8360   if test "x$as_val" = x""yes; then :
8361  cat >>confdefs.h <<_ACEOF
8362#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8363_ACEOF
8364
8365fi
8366
8367done
8368
8369
8370    if test ! "$enable_xim" = "no"; then
8371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
8372$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
8373    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374/* end confdefs.h.  */
8375#include <X11/Xlib.h>
8376_ACEOF
8377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8378  $EGREP "XIMText" >/dev/null 2>&1; then :
8379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8380$as_echo "yes" >&6; }
8381else
8382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
8383$as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
8384fi
8385rm -f conftest*
8386
8387  fi
8388  CPPFLAGS=$cppflags_save
8389
8390    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8391		-a "x$GUITYPE" != "xNONE" ; then
8392    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
8393$as_echo "X GUI selected; xim has been enabled" >&6; }
8394    enable_xim="yes"
8395  fi
8396fi
8397
8398if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8399  cppflags_save=$CPPFLAGS
8400  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
8402$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
8403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404/* end confdefs.h.  */
8405
8406#include <X11/Intrinsic.h>
8407#include <X11/Xmu/Editres.h>
8408int
8409main ()
8410{
8411int i; i = 0;
8412  ;
8413  return 0;
8414}
8415_ACEOF
8416if ac_fn_c_try_compile "$LINENO"; then :
8417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8418$as_echo "yes" >&6; }
8419		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
8420
8421else
8422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423$as_echo "no" >&6; }
8424fi
8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426  CPPFLAGS=$cppflags_save
8427fi
8428
8429if test -z "$SKIP_MOTIF"; then
8430  cppflags_save=$CPPFLAGS
8431  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8432  for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8433		   Xm/UnhighlightT.h Xm/Notebook.h
8434do :
8435  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8436ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8437eval as_val=\$$as_ac_Header
8438   if test "x$as_val" = x""yes; then :
8439  cat >>confdefs.h <<_ACEOF
8440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8441_ACEOF
8442
8443fi
8444
8445done
8446
8447
8448  if test $ac_cv_header_Xm_XpmP_h = yes; then
8449        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
8450$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
8451    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h.  */
8453#include <Xm/XpmP.h>
8454int
8455main ()
8456{
8457XpmAttributes_21 attr;
8458  ;
8459  return 0;
8460}
8461_ACEOF
8462if ac_fn_c_try_compile "$LINENO"; then :
8463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8464$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
8465
8466else
8467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
8469
8470
8471fi
8472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473  else
8474    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
8475
8476  fi
8477  CPPFLAGS=$cppflags_save
8478fi
8479
8480if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
8481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
8482$as_echo "no GUI selected; xim has been disabled" >&6; }
8483  enable_xim="no"
8484fi
8485if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
8486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
8487$as_echo "no GUI selected; fontset has been disabled" >&6; }
8488  enable_fontset="no"
8489fi
8490if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
8491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
8492$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
8493  enable_fontset="no"
8494fi
8495
8496if test -z "$SKIP_PHOTON"; then
8497  GUITYPE=PHOTONGUI
8498fi
8499
8500
8501
8502
8503
8504
8505if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
8506  as_fn_error "cannot use workshop without Motif" "$LINENO" 5
8507fi
8508
8509if test "$enable_xim" = "yes"; then
8510  $as_echo "#define FEAT_XIM 1" >>confdefs.h
8511
8512fi
8513if test "$enable_fontset" = "yes"; then
8514  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
8515
8516fi
8517
8518
8519
8520
8521if test "$enable_hangulinput" = "yes"; then
8522  if test "x$GUITYPE" = "xNONE"; then
8523    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
8524$as_echo "no GUI selected; hangul input has been disabled" >&6; }
8525    enable_hangulinput=no
8526  else
8527    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
8528
8529    HANGULIN_SRC=hangulin.c
8530
8531    HANGULIN_OBJ=objects/hangulin.o
8532
8533  fi
8534fi
8535
8536
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
8538$as_echo_n "checking whether toupper is broken... " >&6; }
8539if test "${vim_cv_toupper_broken+set}" = set; then :
8540  $as_echo_n "(cached) " >&6
8541else
8542
8543    if test "$cross_compiling" = yes; then :
8544
8545    as_fn_error "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
8546
8547else
8548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h.  */
8550
8551#include "confdefs.h"
8552#include <ctype.h>
8553#if STDC_HEADERS
8554# include <stdlib.h>
8555# include <stddef.h>
8556#endif
8557main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
8558
8559_ACEOF
8560if ac_fn_c_try_run "$LINENO"; then :
8561
8562    vim_cv_toupper_broken=yes
8563
8564else
8565
8566    vim_cv_toupper_broken=no
8567
8568fi
8569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8570  conftest.$ac_objext conftest.beam conftest.$ac_ext
8571fi
8572
8573fi
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
8575$as_echo "$vim_cv_toupper_broken" >&6; }
8576
8577if test "x$vim_cv_toupper_broken" = "xyes" ; then
8578  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
8579
8580fi
8581
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
8583$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
8584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585/* end confdefs.h.  */
8586#include <stdio.h>
8587int
8588main ()
8589{
8590printf("(" __DATE__ " " __TIME__ ")");
8591  ;
8592  return 0;
8593}
8594_ACEOF
8595if ac_fn_c_try_compile "$LINENO"; then :
8596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8597$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
8598
8599else
8600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601$as_echo "no" >&6; }
8602fi
8603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
8606$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
8607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608/* end confdefs.h.  */
8609#include <stdio.h>
8610int
8611main ()
8612{
8613int x __attribute__((unused));
8614  ;
8615  return 0;
8616}
8617_ACEOF
8618if ac_fn_c_try_compile "$LINENO"; then :
8619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8620$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
8621
8622else
8623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624$as_echo "no" >&6; }
8625fi
8626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627
8628ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
8629if test "x$ac_cv_header_elf_h" = x""yes; then :
8630  HAS_ELF=1
8631fi
8632
8633
8634if test "$HAS_ELF" = 1; then
8635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
8636$as_echo_n "checking for main in -lelf... " >&6; }
8637if test "${ac_cv_lib_elf_main+set}" = set; then :
8638  $as_echo_n "(cached) " >&6
8639else
8640  ac_check_lib_save_LIBS=$LIBS
8641LIBS="-lelf  $LIBS"
8642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643/* end confdefs.h.  */
8644
8645
8646int
8647main ()
8648{
8649return main ();
8650  ;
8651  return 0;
8652}
8653_ACEOF
8654if ac_fn_c_try_link "$LINENO"; then :
8655  ac_cv_lib_elf_main=yes
8656else
8657  ac_cv_lib_elf_main=no
8658fi
8659rm -f core conftest.err conftest.$ac_objext \
8660    conftest$ac_exeext conftest.$ac_ext
8661LIBS=$ac_check_lib_save_LIBS
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
8664$as_echo "$ac_cv_lib_elf_main" >&6; }
8665if test "x$ac_cv_lib_elf_main" = x""yes; then :
8666  cat >>confdefs.h <<_ACEOF
8667#define HAVE_LIBELF 1
8668_ACEOF
8669
8670  LIBS="-lelf $LIBS"
8671
8672fi
8673
8674fi
8675
8676ac_header_dirent=no
8677for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8678  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8680$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8682  $as_echo_n "(cached) " >&6
8683else
8684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685/* end confdefs.h.  */
8686#include <sys/types.h>
8687#include <$ac_hdr>
8688
8689int
8690main ()
8691{
8692if ((DIR *) 0)
8693return 0;
8694  ;
8695  return 0;
8696}
8697_ACEOF
8698if ac_fn_c_try_compile "$LINENO"; then :
8699  eval "$as_ac_Header=yes"
8700else
8701  eval "$as_ac_Header=no"
8702fi
8703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704fi
8705eval ac_res=\$$as_ac_Header
8706	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8707$as_echo "$ac_res" >&6; }
8708eval as_val=\$$as_ac_Header
8709   if test "x$as_val" = x""yes; then :
8710  cat >>confdefs.h <<_ACEOF
8711#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8712_ACEOF
8713
8714ac_header_dirent=$ac_hdr; break
8715fi
8716
8717done
8718# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8719if test $ac_header_dirent = dirent.h; then
8720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8721$as_echo_n "checking for library containing opendir... " >&6; }
8722if test "${ac_cv_search_opendir+set}" = set; then :
8723  $as_echo_n "(cached) " >&6
8724else
8725  ac_func_search_save_LIBS=$LIBS
8726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h.  */
8728
8729/* Override any GCC internal prototype to avoid an error.
8730   Use char because int might match the return type of a GCC
8731   builtin and then its argument prototype would still apply.  */
8732#ifdef __cplusplus
8733extern "C"
8734#endif
8735char opendir ();
8736int
8737main ()
8738{
8739return opendir ();
8740  ;
8741  return 0;
8742}
8743_ACEOF
8744for ac_lib in '' dir; do
8745  if test -z "$ac_lib"; then
8746    ac_res="none required"
8747  else
8748    ac_res=-l$ac_lib
8749    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8750  fi
8751  if ac_fn_c_try_link "$LINENO"; then :
8752  ac_cv_search_opendir=$ac_res
8753fi
8754rm -f core conftest.err conftest.$ac_objext \
8755    conftest$ac_exeext
8756  if test "${ac_cv_search_opendir+set}" = set; then :
8757  break
8758fi
8759done
8760if test "${ac_cv_search_opendir+set}" = set; then :
8761
8762else
8763  ac_cv_search_opendir=no
8764fi
8765rm conftest.$ac_ext
8766LIBS=$ac_func_search_save_LIBS
8767fi
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8769$as_echo "$ac_cv_search_opendir" >&6; }
8770ac_res=$ac_cv_search_opendir
8771if test "$ac_res" != no; then :
8772  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8773
8774fi
8775
8776else
8777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8778$as_echo_n "checking for library containing opendir... " >&6; }
8779if test "${ac_cv_search_opendir+set}" = set; then :
8780  $as_echo_n "(cached) " >&6
8781else
8782  ac_func_search_save_LIBS=$LIBS
8783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784/* end confdefs.h.  */
8785
8786/* Override any GCC internal prototype to avoid an error.
8787   Use char because int might match the return type of a GCC
8788   builtin and then its argument prototype would still apply.  */
8789#ifdef __cplusplus
8790extern "C"
8791#endif
8792char opendir ();
8793int
8794main ()
8795{
8796return opendir ();
8797  ;
8798  return 0;
8799}
8800_ACEOF
8801for ac_lib in '' x; do
8802  if test -z "$ac_lib"; then
8803    ac_res="none required"
8804  else
8805    ac_res=-l$ac_lib
8806    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8807  fi
8808  if ac_fn_c_try_link "$LINENO"; then :
8809  ac_cv_search_opendir=$ac_res
8810fi
8811rm -f core conftest.err conftest.$ac_objext \
8812    conftest$ac_exeext
8813  if test "${ac_cv_search_opendir+set}" = set; then :
8814  break
8815fi
8816done
8817if test "${ac_cv_search_opendir+set}" = set; then :
8818
8819else
8820  ac_cv_search_opendir=no
8821fi
8822rm conftest.$ac_ext
8823LIBS=$ac_func_search_save_LIBS
8824fi
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8826$as_echo "$ac_cv_search_opendir" >&6; }
8827ac_res=$ac_cv_search_opendir
8828if test "$ac_res" != no; then :
8829  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8830
8831fi
8832
8833fi
8834
8835
8836if test $ac_cv_header_sys_wait_h = no; then
8837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
8838$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
8839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840/* end confdefs.h.  */
8841#include <sys/wait.h>
8842int
8843main ()
8844{
8845union wait xx, yy; xx = yy
8846  ;
8847  return 0;
8848}
8849_ACEOF
8850if ac_fn_c_try_compile "$LINENO"; then :
8851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8852$as_echo "yes" >&6; }
8853			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8854
8855			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
8856
8857else
8858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859$as_echo "no" >&6; }
8860fi
8861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862fi
8863
8864for ac_header in stdarg.h stdint.h stdlib.h string.h \
8865	sys/select.h sys/utsname.h termcap.h fcntl.h \
8866	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
8867	termio.h iconv.h inttypes.h langinfo.h math.h \
8868	unistd.h stropts.h errno.h sys/resource.h \
8869	sys/systeminfo.h locale.h sys/stream.h termios.h \
8870	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
8871	utime.h sys/param.h libintl.h libgen.h \
8872	util/debug.h util/msg18n.h frame.h sys/acl.h \
8873	sys/access.h sys/sysinfo.h wchar.h wctype.h
8874do :
8875  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8876ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8877eval as_val=\$$as_ac_Header
8878   if test "x$as_val" = x""yes; then :
8879  cat >>confdefs.h <<_ACEOF
8880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8881_ACEOF
8882
8883fi
8884
8885done
8886
8887
8888for ac_header in sys/ptem.h
8889do :
8890  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
8891#  include <sys/stream.h>
8892#endif
8893"
8894if test "x$ac_cv_header_sys_ptem_h" = x""yes; then :
8895  cat >>confdefs.h <<_ACEOF
8896#define HAVE_SYS_PTEM_H 1
8897_ACEOF
8898
8899fi
8900
8901done
8902
8903
8904for ac_header in sys/sysctl.h
8905do :
8906  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
8907#  include <sys/param.h>
8908#endif
8909"
8910if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
8911  cat >>confdefs.h <<_ACEOF
8912#define HAVE_SYS_SYSCTL_H 1
8913_ACEOF
8914
8915fi
8916
8917done
8918
8919
8920
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
8922$as_echo_n "checking for pthread_np.h... " >&6; }
8923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924/* end confdefs.h.  */
8925
8926#include <pthread.h>
8927#include <pthread_np.h>
8928int
8929main ()
8930{
8931int i; i = 0;
8932  ;
8933  return 0;
8934}
8935_ACEOF
8936if ac_fn_c_try_compile "$LINENO"; then :
8937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8938$as_echo "yes" >&6; }
8939		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
8940
8941else
8942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943$as_echo "no" >&6; }
8944fi
8945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946
8947for ac_header in strings.h
8948do :
8949  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
8950if test "x$ac_cv_header_strings_h" = x""yes; then :
8951  cat >>confdefs.h <<_ACEOF
8952#define HAVE_STRINGS_H 1
8953_ACEOF
8954
8955fi
8956
8957done
8958
8959if test "x$MACOSX" = "xyes"; then
8960    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
8961
8962else
8963
8964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
8965$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
8966cppflags_save=$CPPFLAGS
8967CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969/* end confdefs.h.  */
8970
8971#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
8972# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
8973			/* but don't do it on AIX 5.1 (Uribarri) */
8974#endif
8975#ifdef HAVE_XM_XM_H
8976# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
8977#endif
8978#ifdef HAVE_STRING_H
8979# include <string.h>
8980#endif
8981#if defined(HAVE_STRINGS_H)
8982# include <strings.h>
8983#endif
8984
8985int
8986main ()
8987{
8988int i; i = 0;
8989  ;
8990  return 0;
8991}
8992_ACEOF
8993if ac_fn_c_try_compile "$LINENO"; then :
8994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8995$as_echo "yes" >&6; }
8996else
8997  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
8998
8999		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000$as_echo "no" >&6; }
9001fi
9002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003CPPFLAGS=$cppflags_save
9004fi
9005
9006if test $ac_cv_c_compiler_gnu = yes; then
9007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
9008$as_echo_n "checking whether $CC needs -traditional... " >&6; }
9009if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
9010  $as_echo_n "(cached) " >&6
9011else
9012    ac_pattern="Autoconf.*'x'"
9013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014/* end confdefs.h.  */
9015#include <sgtty.h>
9016Autoconf TIOCGETP
9017_ACEOF
9018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9019  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
9020  ac_cv_prog_gcc_traditional=yes
9021else
9022  ac_cv_prog_gcc_traditional=no
9023fi
9024rm -f conftest*
9025
9026
9027  if test $ac_cv_prog_gcc_traditional = no; then
9028    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029/* end confdefs.h.  */
9030#include <termio.h>
9031Autoconf TCGETA
9032_ACEOF
9033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9034  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
9035  ac_cv_prog_gcc_traditional=yes
9036fi
9037rm -f conftest*
9038
9039  fi
9040fi
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
9042$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
9043  if test $ac_cv_prog_gcc_traditional = yes; then
9044    CC="$CC -traditional"
9045  fi
9046fi
9047
9048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9049$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9050if test "${ac_cv_c_const+set}" = set; then :
9051  $as_echo_n "(cached) " >&6
9052else
9053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054/* end confdefs.h.  */
9055
9056int
9057main ()
9058{
9059/* FIXME: Include the comments suggested by Paul. */
9060#ifndef __cplusplus
9061  /* Ultrix mips cc rejects this.  */
9062  typedef int charset[2];
9063  const charset cs;
9064  /* SunOS 4.1.1 cc rejects this.  */
9065  char const *const *pcpcc;
9066  char **ppc;
9067  /* NEC SVR4.0.2 mips cc rejects this.  */
9068  struct point {int x, y;};
9069  static struct point const zero = {0,0};
9070  /* AIX XL C 1.02.0.0 rejects this.
9071     It does not let you subtract one const X* pointer from another in
9072     an arm of an if-expression whose if-part is not a constant
9073     expression */
9074  const char *g = "string";
9075  pcpcc = &g + (g ? g-g : 0);
9076  /* HPUX 7.0 cc rejects these. */
9077  ++pcpcc;
9078  ppc = (char**) pcpcc;
9079  pcpcc = (char const *const *) ppc;
9080  { /* SCO 3.2v4 cc rejects this.  */
9081    char *t;
9082    char const *s = 0 ? (char *) 0 : (char const *) 0;
9083
9084    *t++ = 0;
9085    if (s) return 0;
9086  }
9087  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9088    int x[] = {25, 17};
9089    const int *foo = &x[0];
9090    ++foo;
9091  }
9092  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9093    typedef const int *iptr;
9094    iptr p = 0;
9095    ++p;
9096  }
9097  { /* AIX XL C 1.02.0.0 rejects this saying
9098       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9099    struct s { int j; const int *ap[3]; };
9100    struct s *b; b->j = 5;
9101  }
9102  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9103    const int foo = 10;
9104    if (!foo) return 0;
9105  }
9106  return !cs[0] && !zero.x;
9107#endif
9108
9109  ;
9110  return 0;
9111}
9112_ACEOF
9113if ac_fn_c_try_compile "$LINENO"; then :
9114  ac_cv_c_const=yes
9115else
9116  ac_cv_c_const=no
9117fi
9118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119fi
9120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9121$as_echo "$ac_cv_c_const" >&6; }
9122if test $ac_cv_c_const = no; then
9123
9124$as_echo "#define const /**/" >>confdefs.h
9125
9126fi
9127
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9129$as_echo_n "checking for working volatile... " >&6; }
9130if test "${ac_cv_c_volatile+set}" = set; then :
9131  $as_echo_n "(cached) " >&6
9132else
9133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134/* end confdefs.h.  */
9135
9136int
9137main ()
9138{
9139
9140volatile int x;
9141int * volatile y = (int *) 0;
9142return !x && !y;
9143  ;
9144  return 0;
9145}
9146_ACEOF
9147if ac_fn_c_try_compile "$LINENO"; then :
9148  ac_cv_c_volatile=yes
9149else
9150  ac_cv_c_volatile=no
9151fi
9152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153fi
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9155$as_echo "$ac_cv_c_volatile" >&6; }
9156if test $ac_cv_c_volatile = no; then
9157
9158$as_echo "#define volatile /**/" >>confdefs.h
9159
9160fi
9161
9162ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9163if test "x$ac_cv_type_mode_t" = x""yes; then :
9164
9165else
9166
9167cat >>confdefs.h <<_ACEOF
9168#define mode_t int
9169_ACEOF
9170
9171fi
9172
9173ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9174if test "x$ac_cv_type_off_t" = x""yes; then :
9175
9176else
9177
9178cat >>confdefs.h <<_ACEOF
9179#define off_t long int
9180_ACEOF
9181
9182fi
9183
9184ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9185if test "x$ac_cv_type_pid_t" = x""yes; then :
9186
9187else
9188
9189cat >>confdefs.h <<_ACEOF
9190#define pid_t int
9191_ACEOF
9192
9193fi
9194
9195ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9196if test "x$ac_cv_type_size_t" = x""yes; then :
9197
9198else
9199
9200cat >>confdefs.h <<_ACEOF
9201#define size_t unsigned int
9202_ACEOF
9203
9204fi
9205
9206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9207$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9208if test "${ac_cv_type_uid_t+set}" = set; then :
9209  $as_echo_n "(cached) " >&6
9210else
9211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h.  */
9213#include <sys/types.h>
9214
9215_ACEOF
9216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9217  $EGREP "uid_t" >/dev/null 2>&1; then :
9218  ac_cv_type_uid_t=yes
9219else
9220  ac_cv_type_uid_t=no
9221fi
9222rm -f conftest*
9223
9224fi
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9226$as_echo "$ac_cv_type_uid_t" >&6; }
9227if test $ac_cv_type_uid_t = no; then
9228
9229$as_echo "#define uid_t int" >>confdefs.h
9230
9231
9232$as_echo "#define gid_t int" >>confdefs.h
9233
9234fi
9235
9236ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
9237case $ac_cv_c_uint32_t in #(
9238  no|yes) ;; #(
9239  *)
9240
9241$as_echo "#define _UINT32_T 1" >>confdefs.h
9242
9243
9244cat >>confdefs.h <<_ACEOF
9245#define uint32_t $ac_cv_c_uint32_t
9246_ACEOF
9247;;
9248  esac
9249
9250
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9252$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9253if test "${ac_cv_header_time+set}" = set; then :
9254  $as_echo_n "(cached) " >&6
9255else
9256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257/* end confdefs.h.  */
9258#include <sys/types.h>
9259#include <sys/time.h>
9260#include <time.h>
9261
9262int
9263main ()
9264{
9265if ((struct tm *) 0)
9266return 0;
9267  ;
9268  return 0;
9269}
9270_ACEOF
9271if ac_fn_c_try_compile "$LINENO"; then :
9272  ac_cv_header_time=yes
9273else
9274  ac_cv_header_time=no
9275fi
9276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277fi
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9279$as_echo "$ac_cv_header_time" >&6; }
9280if test $ac_cv_header_time = yes; then
9281
9282$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9283
9284fi
9285
9286ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
9287if test "x$ac_cv_type_ino_t" = x""yes; then :
9288
9289else
9290
9291cat >>confdefs.h <<_ACEOF
9292#define ino_t long
9293_ACEOF
9294
9295fi
9296
9297ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
9298if test "x$ac_cv_type_dev_t" = x""yes; then :
9299
9300else
9301
9302cat >>confdefs.h <<_ACEOF
9303#define dev_t unsigned
9304_ACEOF
9305
9306fi
9307
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9309$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9310if test "${ac_cv_c_bigendian+set}" = set; then :
9311  $as_echo_n "(cached) " >&6
9312else
9313  ac_cv_c_bigendian=unknown
9314    # See if we're dealing with a universal compiler.
9315    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316/* end confdefs.h.  */
9317#ifndef __APPLE_CC__
9318	       not a universal capable compiler
9319	     #endif
9320	     typedef int dummy;
9321
9322_ACEOF
9323if ac_fn_c_try_compile "$LINENO"; then :
9324
9325	# Check for potential -arch flags.  It is not universal unless
9326	# there are at least two -arch flags with different values.
9327	ac_arch=
9328	ac_prev=
9329	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9330	 if test -n "$ac_prev"; then
9331	   case $ac_word in
9332	     i?86 | x86_64 | ppc | ppc64)
9333	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9334		 ac_arch=$ac_word
9335	       else
9336		 ac_cv_c_bigendian=universal
9337		 break
9338	       fi
9339	       ;;
9340	   esac
9341	   ac_prev=
9342	 elif test "x$ac_word" = "x-arch"; then
9343	   ac_prev=arch
9344	 fi
9345       done
9346fi
9347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348    if test $ac_cv_c_bigendian = unknown; then
9349      # See if sys/param.h defines the BYTE_ORDER macro.
9350      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351/* end confdefs.h.  */
9352#include <sys/types.h>
9353	     #include <sys/param.h>
9354
9355int
9356main ()
9357{
9358#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9359		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9360		     && LITTLE_ENDIAN)
9361	      bogus endian macros
9362	     #endif
9363
9364  ;
9365  return 0;
9366}
9367_ACEOF
9368if ac_fn_c_try_compile "$LINENO"; then :
9369  # It does; now see whether it defined to BIG_ENDIAN or not.
9370	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371/* end confdefs.h.  */
9372#include <sys/types.h>
9373		#include <sys/param.h>
9374
9375int
9376main ()
9377{
9378#if BYTE_ORDER != BIG_ENDIAN
9379		 not big endian
9380		#endif
9381
9382  ;
9383  return 0;
9384}
9385_ACEOF
9386if ac_fn_c_try_compile "$LINENO"; then :
9387  ac_cv_c_bigendian=yes
9388else
9389  ac_cv_c_bigendian=no
9390fi
9391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392fi
9393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394    fi
9395    if test $ac_cv_c_bigendian = unknown; then
9396      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9397      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398/* end confdefs.h.  */
9399#include <limits.h>
9400
9401int
9402main ()
9403{
9404#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9405	      bogus endian macros
9406	     #endif
9407
9408  ;
9409  return 0;
9410}
9411_ACEOF
9412if ac_fn_c_try_compile "$LINENO"; then :
9413  # It does; now see whether it defined to _BIG_ENDIAN or not.
9414	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415/* end confdefs.h.  */
9416#include <limits.h>
9417
9418int
9419main ()
9420{
9421#ifndef _BIG_ENDIAN
9422		 not big endian
9423		#endif
9424
9425  ;
9426  return 0;
9427}
9428_ACEOF
9429if ac_fn_c_try_compile "$LINENO"; then :
9430  ac_cv_c_bigendian=yes
9431else
9432  ac_cv_c_bigendian=no
9433fi
9434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435fi
9436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9437    fi
9438    if test $ac_cv_c_bigendian = unknown; then
9439      # Compile a test program.
9440      if test "$cross_compiling" = yes; then :
9441  # Try to guess by grepping values from an object file.
9442	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443/* end confdefs.h.  */
9444short int ascii_mm[] =
9445		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9446		short int ascii_ii[] =
9447		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9448		int use_ascii (int i) {
9449		  return ascii_mm[i] + ascii_ii[i];
9450		}
9451		short int ebcdic_ii[] =
9452		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9453		short int ebcdic_mm[] =
9454		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9455		int use_ebcdic (int i) {
9456		  return ebcdic_mm[i] + ebcdic_ii[i];
9457		}
9458		extern int foo;
9459
9460int
9461main ()
9462{
9463return use_ascii (foo) == use_ebcdic (foo);
9464  ;
9465  return 0;
9466}
9467_ACEOF
9468if ac_fn_c_try_compile "$LINENO"; then :
9469  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9470	      ac_cv_c_bigendian=yes
9471	    fi
9472	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9473	      if test "$ac_cv_c_bigendian" = unknown; then
9474		ac_cv_c_bigendian=no
9475	      else
9476		# finding both strings is unlikely to happen, but who knows?
9477		ac_cv_c_bigendian=unknown
9478	      fi
9479	    fi
9480fi
9481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9482else
9483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h.  */
9485$ac_includes_default
9486int
9487main ()
9488{
9489
9490	     /* Are we little or big endian?  From Harbison&Steele.  */
9491	     union
9492	     {
9493	       long int l;
9494	       char c[sizeof (long int)];
9495	     } u;
9496	     u.l = 1;
9497	     return u.c[sizeof (long int) - 1] == 1;
9498
9499  ;
9500  return 0;
9501}
9502_ACEOF
9503if ac_fn_c_try_run "$LINENO"; then :
9504  ac_cv_c_bigendian=no
9505else
9506  ac_cv_c_bigendian=yes
9507fi
9508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9509  conftest.$ac_objext conftest.beam conftest.$ac_ext
9510fi
9511
9512    fi
9513fi
9514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9515$as_echo "$ac_cv_c_bigendian" >&6; }
9516 case $ac_cv_c_bigendian in #(
9517   yes)
9518     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9519;; #(
9520   no)
9521      ;; #(
9522   universal)
9523
9524$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9525
9526     ;; #(
9527   *)
9528     as_fn_error "unknown endianness
9529 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9530 esac
9531
9532
9533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
9534$as_echo_n "checking for rlim_t... " >&6; }
9535if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
9536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
9537$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
9538else
9539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h.  */
9541
9542#include <sys/types.h>
9543#if STDC_HEADERS
9544# include <stdlib.h>
9545# include <stddef.h>
9546#endif
9547#ifdef HAVE_SYS_RESOURCE_H
9548# include <sys/resource.h>
9549#endif
9550
9551_ACEOF
9552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9553  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
9554  ac_cv_type_rlim_t=yes
9555else
9556  ac_cv_type_rlim_t=no
9557fi
9558rm -f conftest*
9559
9560	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
9561$as_echo "$ac_cv_type_rlim_t" >&6; }
9562fi
9563if test $ac_cv_type_rlim_t = no; then
9564  cat >> confdefs.h <<\EOF
9565#define rlim_t unsigned long
9566EOF
9567fi
9568
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
9570$as_echo_n "checking for stack_t... " >&6; }
9571if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
9572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
9573$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
9574else
9575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576/* end confdefs.h.  */
9577
9578#include <sys/types.h>
9579#if STDC_HEADERS
9580# include <stdlib.h>
9581# include <stddef.h>
9582#endif
9583#include <signal.h>
9584
9585_ACEOF
9586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9587  $EGREP "stack_t" >/dev/null 2>&1; then :
9588  ac_cv_type_stack_t=yes
9589else
9590  ac_cv_type_stack_t=no
9591fi
9592rm -f conftest*
9593
9594	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
9595$as_echo "$ac_cv_type_stack_t" >&6; }
9596fi
9597if test $ac_cv_type_stack_t = no; then
9598  cat >> confdefs.h <<\EOF
9599#define stack_t struct sigaltstack
9600EOF
9601fi
9602
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
9604$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
9605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606/* end confdefs.h.  */
9607
9608#include <sys/types.h>
9609#if STDC_HEADERS
9610# include <stdlib.h>
9611# include <stddef.h>
9612#endif
9613#include <signal.h>
9614#include "confdefs.h"
9615
9616int
9617main ()
9618{
9619stack_t sigstk; sigstk.ss_base = 0;
9620  ;
9621  return 0;
9622}
9623_ACEOF
9624if ac_fn_c_try_compile "$LINENO"; then :
9625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9626$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
9627
9628else
9629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630$as_echo "no" >&6; }
9631fi
9632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633
9634olibs="$LIBS"
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
9636$as_echo_n "checking --with-tlib argument... " >&6; }
9637
9638# Check whether --with-tlib was given.
9639if test "${with_tlib+set}" = set; then :
9640  withval=$with_tlib;
9641fi
9642
9643if test -n "$with_tlib"; then
9644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
9645$as_echo "$with_tlib" >&6; }
9646  LIBS="$LIBS -l$with_tlib"
9647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
9648$as_echo_n "checking for linking with $with_tlib library... " >&6; }
9649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h.  */
9651
9652int
9653main ()
9654{
9655
9656  ;
9657  return 0;
9658}
9659_ACEOF
9660if ac_fn_c_try_link "$LINENO"; then :
9661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
9662$as_echo "OK" >&6; }
9663else
9664  as_fn_error "FAILED" "$LINENO" 5
9665fi
9666rm -f core conftest.err conftest.$ac_objext \
9667    conftest$ac_exeext conftest.$ac_ext
9668    olibs="$LIBS"
9669else
9670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
9671$as_echo "empty: automatic terminal library selection" >&6; }
9672              case "`uname -s 2>/dev/null`" in
9673	OSF1|SCO_SV)	tlibs="ncurses curses termlib termcap";;
9674	*)	tlibs="ncurses termlib termcap curses";;
9675  esac
9676  for libname in $tlibs; do
9677    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
9679$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
9680if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9681  $as_echo_n "(cached) " >&6
9682else
9683  ac_check_lib_save_LIBS=$LIBS
9684LIBS="-l${libname}  $LIBS"
9685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686/* end confdefs.h.  */
9687
9688/* Override any GCC internal prototype to avoid an error.
9689   Use char because int might match the return type of a GCC
9690   builtin and then its argument prototype would still apply.  */
9691#ifdef __cplusplus
9692extern "C"
9693#endif
9694char tgetent ();
9695int
9696main ()
9697{
9698return tgetent ();
9699  ;
9700  return 0;
9701}
9702_ACEOF
9703if ac_fn_c_try_link "$LINENO"; then :
9704  eval "$as_ac_Lib=yes"
9705else
9706  eval "$as_ac_Lib=no"
9707fi
9708rm -f core conftest.err conftest.$ac_objext \
9709    conftest$ac_exeext conftest.$ac_ext
9710LIBS=$ac_check_lib_save_LIBS
9711fi
9712eval ac_res=\$$as_ac_Lib
9713	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9714$as_echo "$ac_res" >&6; }
9715eval as_val=\$$as_ac_Lib
9716   if test "x$as_val" = x""yes; then :
9717  cat >>confdefs.h <<_ACEOF
9718#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
9719_ACEOF
9720
9721  LIBS="-l${libname} $LIBS"
9722
9723fi
9724
9725    if test "x$olibs" != "x$LIBS"; then
9726                        if test "$cross_compiling" = yes; then :
9727  res="FAIL"
9728else
9729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730/* end confdefs.h.  */
9731
9732#ifdef HAVE_TERMCAP_H
9733# include <termcap.h>
9734#endif
9735#if STDC_HEADERS
9736# include <stdlib.h>
9737# include <stddef.h>
9738#endif
9739main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
9740_ACEOF
9741if ac_fn_c_try_run "$LINENO"; then :
9742  res="OK"
9743else
9744  res="FAIL"
9745fi
9746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9747  conftest.$ac_objext conftest.beam conftest.$ac_ext
9748fi
9749
9750      if test "$res" = "OK"; then
9751	break
9752      fi
9753      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
9754$as_echo "$libname library is not usable" >&6; }
9755      LIBS="$olibs"
9756    fi
9757  done
9758  if test "x$olibs" = "x$LIBS"; then
9759    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
9760$as_echo "no terminal library found" >&6; }
9761  fi
9762fi
9763
9764if test "x$olibs" = "x$LIBS"; then
9765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
9766$as_echo_n "checking for tgetent()... " >&6; }
9767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768/* end confdefs.h.  */
9769
9770int
9771main ()
9772{
9773char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
9774  ;
9775  return 0;
9776}
9777_ACEOF
9778if ac_fn_c_try_link "$LINENO"; then :
9779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9780$as_echo "yes" >&6; }
9781else
9782  as_fn_error "NOT FOUND!
9783      You need to install a terminal library; for example ncurses.
9784      Or specify the name of the library with --with-tlib." "$LINENO" 5
9785fi
9786rm -f core conftest.err conftest.$ac_objext \
9787    conftest$ac_exeext conftest.$ac_ext
9788fi
9789
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
9791$as_echo_n "checking whether we talk terminfo... " >&6; }
9792if test "${vim_cv_terminfo+set}" = set; then :
9793  $as_echo_n "(cached) " >&6
9794else
9795
9796    if test "$cross_compiling" = yes; then :
9797
9798      as_fn_error "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
9799
9800else
9801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802/* end confdefs.h.  */
9803
9804#include "confdefs.h"
9805#ifdef HAVE_TERMCAP_H
9806# include <termcap.h>
9807#endif
9808#ifdef HAVE_STRING_H
9809# include <string.h>
9810#endif
9811#if STDC_HEADERS
9812# include <stdlib.h>
9813# include <stddef.h>
9814#endif
9815main()
9816{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
9817
9818_ACEOF
9819if ac_fn_c_try_run "$LINENO"; then :
9820
9821      vim_cv_terminfo=no
9822
9823else
9824
9825      vim_cv_terminfo=yes
9826
9827fi
9828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9829  conftest.$ac_objext conftest.beam conftest.$ac_ext
9830fi
9831
9832
9833fi
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
9835$as_echo "$vim_cv_terminfo" >&6; }
9836
9837if test "x$vim_cv_terminfo" = "xyes" ; then
9838  $as_echo "#define TERMINFO 1" >>confdefs.h
9839
9840fi
9841
9842if test "x$olibs" != "x$LIBS"; then
9843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
9844$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
9845if test "${vim_cv_tgent+set}" = set; then :
9846  $as_echo_n "(cached) " >&6
9847else
9848
9849      if test "$cross_compiling" = yes; then :
9850
9851	as_fn_error "failed to compile test program." "$LINENO" 5
9852
9853else
9854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h.  */
9856
9857#include "confdefs.h"
9858#ifdef HAVE_TERMCAP_H
9859# include <termcap.h>
9860#endif
9861#if STDC_HEADERS
9862# include <stdlib.h>
9863# include <stddef.h>
9864#endif
9865main()
9866{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
9867
9868_ACEOF
9869if ac_fn_c_try_run "$LINENO"; then :
9870
9871	vim_cv_tgent=zero
9872
9873else
9874
9875	vim_cv_tgent=non-zero
9876
9877fi
9878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9879  conftest.$ac_objext conftest.beam conftest.$ac_ext
9880fi
9881
9882
9883fi
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5
9885$as_echo "$vim_cv_tgent" >&6; }
9886
9887  if test "x$vim_cv_tgent" = "xzero" ; then
9888    $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
9889
9890  fi
9891fi
9892
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
9894$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
9895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h.  */
9897
9898#ifdef HAVE_TERMCAP_H
9899# include <termcap.h>
9900#endif
9901
9902int
9903main ()
9904{
9905ospeed = 20000
9906  ;
9907  return 0;
9908}
9909_ACEOF
9910if ac_fn_c_try_link "$LINENO"; then :
9911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9912$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
9913
9914else
9915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916$as_echo "no" >&6; }
9917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
9918$as_echo_n "checking whether ospeed can be extern... " >&6; }
9919	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h.  */
9921
9922#ifdef HAVE_TERMCAP_H
9923# include <termcap.h>
9924#endif
9925extern short ospeed;
9926
9927int
9928main ()
9929{
9930ospeed = 20000
9931  ;
9932  return 0;
9933}
9934_ACEOF
9935if ac_fn_c_try_link "$LINENO"; then :
9936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9937$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
9938
9939else
9940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941$as_echo "no" >&6; }
9942fi
9943rm -f core conftest.err conftest.$ac_objext \
9944    conftest$ac_exeext conftest.$ac_ext
9945
9946fi
9947rm -f core conftest.err conftest.$ac_objext \
9948    conftest$ac_exeext conftest.$ac_ext
9949
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
9951$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
9952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h.  */
9954
9955#ifdef HAVE_TERMCAP_H
9956# include <termcap.h>
9957#endif
9958
9959int
9960main ()
9961{
9962if (UP == 0 && BC == 0) PC = 1
9963  ;
9964  return 0;
9965}
9966_ACEOF
9967if ac_fn_c_try_link "$LINENO"; then :
9968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9969$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
9970
9971else
9972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973$as_echo "no" >&6; }
9974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
9975$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
9976	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977/* end confdefs.h.  */
9978
9979#ifdef HAVE_TERMCAP_H
9980# include <termcap.h>
9981#endif
9982extern char *UP, *BC, PC;
9983
9984int
9985main ()
9986{
9987if (UP == 0 && BC == 0) PC = 1
9988  ;
9989  return 0;
9990}
9991_ACEOF
9992if ac_fn_c_try_link "$LINENO"; then :
9993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9994$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
9995
9996else
9997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998$as_echo "no" >&6; }
9999fi
10000rm -f core conftest.err conftest.$ac_objext \
10001    conftest$ac_exeext conftest.$ac_ext
10002
10003fi
10004rm -f core conftest.err conftest.$ac_objext \
10005    conftest$ac_exeext conftest.$ac_ext
10006
10007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
10008$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
10009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010/* end confdefs.h.  */
10011
10012#ifdef HAVE_TERMCAP_H
10013# include <termcap.h>
10014#endif
10015
10016int
10017main ()
10018{
10019extern int xx(); tputs("test", 1, (outfuntype)xx)
10020  ;
10021  return 0;
10022}
10023_ACEOF
10024if ac_fn_c_try_compile "$LINENO"; then :
10025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10026$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
10027
10028else
10029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030$as_echo "no" >&6; }
10031fi
10032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10033
10034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
10035$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
10036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037/* end confdefs.h.  */
10038
10039#include <sys/types.h>
10040#include <sys/time.h>
10041#include <sys/select.h>
10042int
10043main ()
10044{
10045
10046  ;
10047  return 0;
10048}
10049_ACEOF
10050if ac_fn_c_try_compile "$LINENO"; then :
10051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10052$as_echo "yes" >&6; }
10053			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
10054
10055else
10056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057$as_echo "no" >&6; }
10058fi
10059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10060
10061
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
10063$as_echo_n "checking for /dev/ptc... " >&6; }
10064if test -r /dev/ptc; then
10065  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
10066
10067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10068$as_echo "yes" >&6; }
10069else
10070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071$as_echo "no" >&6; }
10072fi
10073
10074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
10075$as_echo_n "checking for SVR4 ptys... " >&6; }
10076if test -c /dev/ptmx ; then
10077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078/* end confdefs.h.  */
10079
10080int
10081main ()
10082{
10083ptsname(0);grantpt(0);unlockpt(0);
10084  ;
10085  return 0;
10086}
10087_ACEOF
10088if ac_fn_c_try_link "$LINENO"; then :
10089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10090$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
10091
10092else
10093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094$as_echo "no" >&6; }
10095fi
10096rm -f core conftest.err conftest.$ac_objext \
10097    conftest$ac_exeext conftest.$ac_ext
10098else
10099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100$as_echo "no" >&6; }
10101fi
10102
10103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
10104$as_echo_n "checking for ptyranges... " >&6; }
10105if test -d /dev/ptym ; then
10106  pdir='/dev/ptym'
10107else
10108  pdir='/dev'
10109fi
10110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111/* end confdefs.h.  */
10112#ifdef M_UNIX
10113   yes;
10114#endif
10115
10116_ACEOF
10117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10118  $EGREP "yes" >/dev/null 2>&1; then :
10119  ptys=`echo /dev/ptyp??`
10120else
10121  ptys=`echo $pdir/pty??`
10122fi
10123rm -f conftest*
10124
10125if test "$ptys" != "$pdir/pty??" ; then
10126  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
10127  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
10128  cat >>confdefs.h <<_ACEOF
10129#define PTYRANGE0 "$p0"
10130_ACEOF
10131
10132  cat >>confdefs.h <<_ACEOF
10133#define PTYRANGE1 "$p1"
10134_ACEOF
10135
10136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
10137$as_echo "$p0 / $p1" >&6; }
10138else
10139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
10140$as_echo "don't know" >&6; }
10141fi
10142
10143rm -f conftest_grp
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
10145$as_echo_n "checking default tty permissions/group... " >&6; }
10146if test "${vim_cv_tty_group+set}" = set; then :
10147  $as_echo_n "(cached) " >&6
10148else
10149
10150    if test "$cross_compiling" = yes; then :
10151
10152      as_fn_error "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
10153
10154else
10155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156/* end confdefs.h.  */
10157
10158#include "confdefs.h"
10159#include <sys/types.h>
10160#if STDC_HEADERS
10161# include <stdlib.h>
10162# include <stddef.h>
10163#endif
10164#ifdef HAVE_UNISTD_H
10165#include <unistd.h>
10166#endif
10167#include <sys/stat.h>
10168#include <stdio.h>
10169main()
10170{
10171  struct stat sb;
10172  char *x,*ttyname();
10173  int om, m;
10174  FILE *fp;
10175
10176  if (!(x = ttyname(0))) exit(1);
10177  if (stat(x, &sb)) exit(1);
10178  om = sb.st_mode;
10179  if (om & 002) exit(0);
10180  m = system("mesg y");
10181  if (m == -1 || m == 127) exit(1);
10182  if (stat(x, &sb)) exit(1);
10183  m = sb.st_mode;
10184  if (chmod(x, om)) exit(1);
10185  if (m & 002) exit(0);
10186  if (sb.st_gid == getgid()) exit(1);
10187  if (!(fp=fopen("conftest_grp", "w")))
10188    exit(1);
10189  fprintf(fp, "%d\n", sb.st_gid);
10190  fclose(fp);
10191  exit(0);
10192}
10193
10194_ACEOF
10195if ac_fn_c_try_run "$LINENO"; then :
10196
10197      if test -f conftest_grp; then
10198	vim_cv_tty_group=`cat conftest_grp`
10199	if test "x$vim_cv_tty_mode" = "x" ; then
10200	  vim_cv_tty_mode=0620
10201	fi
10202	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
10203$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
10204      else
10205	vim_cv_tty_group=world
10206	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
10207$as_echo "ptys are world accessible" >&6; }
10208      fi
10209
10210else
10211
10212      vim_cv_tty_group=world
10213      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
10214$as_echo "can't determine - assume ptys are world accessible" >&6; }
10215
10216fi
10217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10218  conftest.$ac_objext conftest.beam conftest.$ac_ext
10219fi
10220
10221
10222fi
10223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
10224$as_echo "$vim_cv_tty_group" >&6; }
10225rm -f conftest_grp
10226
10227if test "x$vim_cv_tty_group" != "xworld" ; then
10228  cat >>confdefs.h <<_ACEOF
10229#define PTYGROUP $vim_cv_tty_group
10230_ACEOF
10231
10232  if test "x$vim_cv_tty_mode" = "x" ; then
10233    as_fn_error "It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" "$LINENO" 5
10234  else
10235    $as_echo "#define PTYMODE 0620" >>confdefs.h
10236
10237  fi
10238fi
10239
10240
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10242$as_echo_n "checking return type of signal handlers... " >&6; }
10243if test "${ac_cv_type_signal+set}" = set; then :
10244  $as_echo_n "(cached) " >&6
10245else
10246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247/* end confdefs.h.  */
10248#include <sys/types.h>
10249#include <signal.h>
10250
10251int
10252main ()
10253{
10254return *(signal (0, 0)) (0) == 1;
10255  ;
10256  return 0;
10257}
10258_ACEOF
10259if ac_fn_c_try_compile "$LINENO"; then :
10260  ac_cv_type_signal=int
10261else
10262  ac_cv_type_signal=void
10263fi
10264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265fi
10266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10267$as_echo "$ac_cv_type_signal" >&6; }
10268
10269cat >>confdefs.h <<_ACEOF
10270#define RETSIGTYPE $ac_cv_type_signal
10271_ACEOF
10272
10273
10274
10275if test $ac_cv_type_signal = void; then
10276  $as_echo "#define SIGRETURN return" >>confdefs.h
10277
10278else
10279  $as_echo "#define SIGRETURN return 0" >>confdefs.h
10280
10281fi
10282
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
10284$as_echo_n "checking for struct sigcontext... " >&6; }
10285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286/* end confdefs.h.  */
10287
10288#include <signal.h>
10289test_sig()
10290{
10291    struct sigcontext *scont;
10292    scont = (struct sigcontext *)0;
10293    return 1;
10294}
10295int
10296main ()
10297{
10298
10299  ;
10300  return 0;
10301}
10302_ACEOF
10303if ac_fn_c_try_compile "$LINENO"; then :
10304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10305$as_echo "yes" >&6; }
10306		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
10307
10308else
10309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310$as_echo "no" >&6; }
10311fi
10312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
10315$as_echo_n "checking getcwd implementation is broken... " >&6; }
10316if test "${vim_cv_getcwd_broken+set}" = set; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319
10320    if test "$cross_compiling" = yes; then :
10321
10322      as_fn_error "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
10323
10324else
10325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326/* end confdefs.h.  */
10327
10328#include "confdefs.h"
10329#ifdef HAVE_UNISTD_H
10330#include <unistd.h>
10331#endif
10332char *dagger[] = { "IFS=pwd", 0 };
10333main()
10334{
10335  char buffer[500];
10336  extern char **environ;
10337  environ = dagger;
10338  return getcwd(buffer, 500) ? 0 : 1;
10339}
10340
10341_ACEOF
10342if ac_fn_c_try_run "$LINENO"; then :
10343
10344      vim_cv_getcwd_broken=no
10345
10346else
10347
10348      vim_cv_getcwd_broken=yes
10349
10350fi
10351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10352  conftest.$ac_objext conftest.beam conftest.$ac_ext
10353fi
10354
10355
10356fi
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
10358$as_echo "$vim_cv_getcwd_broken" >&6; }
10359
10360if test "x$vim_cv_getcwd_broken" = "xyes" ; then
10361  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
10362
10363fi
10364
10365for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
10366	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
10367	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
10368	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
10369	sigvec strcasecmp strerror strftime stricmp strncasecmp \
10370	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
10371	usleep utime utimes
10372do :
10373  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10374ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10375eval as_val=\$$as_ac_var
10376   if test "x$as_val" = x""yes; then :
10377  cat >>confdefs.h <<_ACEOF
10378#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10379_ACEOF
10380
10381fi
10382done
10383
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10385$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
10386if test "${ac_cv_sys_largefile_source+set}" = set; then :
10387  $as_echo_n "(cached) " >&6
10388else
10389  while :; do
10390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391/* end confdefs.h.  */
10392#include <sys/types.h> /* for off_t */
10393     #include <stdio.h>
10394int
10395main ()
10396{
10397int (*fp) (FILE *, off_t, int) = fseeko;
10398     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10399  ;
10400  return 0;
10401}
10402_ACEOF
10403if ac_fn_c_try_link "$LINENO"; then :
10404  ac_cv_sys_largefile_source=no; break
10405fi
10406rm -f core conftest.err conftest.$ac_objext \
10407    conftest$ac_exeext conftest.$ac_ext
10408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h.  */
10410#define _LARGEFILE_SOURCE 1
10411#include <sys/types.h> /* for off_t */
10412     #include <stdio.h>
10413int
10414main ()
10415{
10416int (*fp) (FILE *, off_t, int) = fseeko;
10417     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10418  ;
10419  return 0;
10420}
10421_ACEOF
10422if ac_fn_c_try_link "$LINENO"; then :
10423  ac_cv_sys_largefile_source=1; break
10424fi
10425rm -f core conftest.err conftest.$ac_objext \
10426    conftest$ac_exeext conftest.$ac_ext
10427  ac_cv_sys_largefile_source=unknown
10428  break
10429done
10430fi
10431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
10432$as_echo "$ac_cv_sys_largefile_source" >&6; }
10433case $ac_cv_sys_largefile_source in #(
10434  no | unknown) ;;
10435  *)
10436cat >>confdefs.h <<_ACEOF
10437#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10438_ACEOF
10439;;
10440esac
10441rm -rf conftest*
10442
10443# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10444# in glibc 2.1.3, but that breaks too many other things.
10445# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10446if test $ac_cv_sys_largefile_source != unknown; then
10447
10448$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
10449
10450fi
10451
10452
10453# Check whether --enable-largefile was given.
10454if test "${enable_largefile+set}" = set; then :
10455  enableval=$enable_largefile;
10456fi
10457
10458if test "$enable_largefile" != no; then
10459
10460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10461$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10462if test "${ac_cv_sys_largefile_CC+set}" = set; then :
10463  $as_echo_n "(cached) " >&6
10464else
10465  ac_cv_sys_largefile_CC=no
10466     if test "$GCC" != yes; then
10467       ac_save_CC=$CC
10468       while :; do
10469	 # IRIX 6.2 and later do not support large files by default,
10470	 # so use the C compiler's -n32 option if that helps.
10471	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472/* end confdefs.h.  */
10473#include <sys/types.h>
10474 /* Check that off_t can represent 2**63 - 1 correctly.
10475    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10476    since some C++ compilers masquerading as C compilers
10477    incorrectly reject 9223372036854775807.  */
10478#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10479  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10480		       && LARGE_OFF_T % 2147483647 == 1)
10481		      ? 1 : -1];
10482int
10483main ()
10484{
10485
10486  ;
10487  return 0;
10488}
10489_ACEOF
10490	 if ac_fn_c_try_compile "$LINENO"; then :
10491  break
10492fi
10493rm -f core conftest.err conftest.$ac_objext
10494	 CC="$CC -n32"
10495	 if ac_fn_c_try_compile "$LINENO"; then :
10496  ac_cv_sys_largefile_CC=' -n32'; break
10497fi
10498rm -f core conftest.err conftest.$ac_objext
10499	 break
10500       done
10501       CC=$ac_save_CC
10502       rm -f conftest.$ac_ext
10503    fi
10504fi
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10506$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10507  if test "$ac_cv_sys_largefile_CC" != no; then
10508    CC=$CC$ac_cv_sys_largefile_CC
10509  fi
10510
10511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10512$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10513if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
10514  $as_echo_n "(cached) " >&6
10515else
10516  while :; do
10517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h.  */
10519#include <sys/types.h>
10520 /* Check that off_t can represent 2**63 - 1 correctly.
10521    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10522    since some C++ compilers masquerading as C compilers
10523    incorrectly reject 9223372036854775807.  */
10524#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10525  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10526		       && LARGE_OFF_T % 2147483647 == 1)
10527		      ? 1 : -1];
10528int
10529main ()
10530{
10531
10532  ;
10533  return 0;
10534}
10535_ACEOF
10536if ac_fn_c_try_compile "$LINENO"; then :
10537  ac_cv_sys_file_offset_bits=no; break
10538fi
10539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541/* end confdefs.h.  */
10542#define _FILE_OFFSET_BITS 64
10543#include <sys/types.h>
10544 /* Check that off_t can represent 2**63 - 1 correctly.
10545    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10546    since some C++ compilers masquerading as C compilers
10547    incorrectly reject 9223372036854775807.  */
10548#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10549  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10550		       && LARGE_OFF_T % 2147483647 == 1)
10551		      ? 1 : -1];
10552int
10553main ()
10554{
10555
10556  ;
10557  return 0;
10558}
10559_ACEOF
10560if ac_fn_c_try_compile "$LINENO"; then :
10561  ac_cv_sys_file_offset_bits=64; break
10562fi
10563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10564  ac_cv_sys_file_offset_bits=unknown
10565  break
10566done
10567fi
10568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10569$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10570case $ac_cv_sys_file_offset_bits in #(
10571  no | unknown) ;;
10572  *)
10573cat >>confdefs.h <<_ACEOF
10574#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10575_ACEOF
10576;;
10577esac
10578rm -rf conftest*
10579  if test $ac_cv_sys_file_offset_bits = unknown; then
10580    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10581$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10582if test "${ac_cv_sys_large_files+set}" = set; then :
10583  $as_echo_n "(cached) " >&6
10584else
10585  while :; do
10586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587/* end confdefs.h.  */
10588#include <sys/types.h>
10589 /* Check that off_t can represent 2**63 - 1 correctly.
10590    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10591    since some C++ compilers masquerading as C compilers
10592    incorrectly reject 9223372036854775807.  */
10593#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10594  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10595		       && LARGE_OFF_T % 2147483647 == 1)
10596		      ? 1 : -1];
10597int
10598main ()
10599{
10600
10601  ;
10602  return 0;
10603}
10604_ACEOF
10605if ac_fn_c_try_compile "$LINENO"; then :
10606  ac_cv_sys_large_files=no; break
10607fi
10608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610/* end confdefs.h.  */
10611#define _LARGE_FILES 1
10612#include <sys/types.h>
10613 /* Check that off_t can represent 2**63 - 1 correctly.
10614    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10615    since some C++ compilers masquerading as C compilers
10616    incorrectly reject 9223372036854775807.  */
10617#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10618  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10619		       && LARGE_OFF_T % 2147483647 == 1)
10620		      ? 1 : -1];
10621int
10622main ()
10623{
10624
10625  ;
10626  return 0;
10627}
10628_ACEOF
10629if ac_fn_c_try_compile "$LINENO"; then :
10630  ac_cv_sys_large_files=1; break
10631fi
10632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633  ac_cv_sys_large_files=unknown
10634  break
10635done
10636fi
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10638$as_echo "$ac_cv_sys_large_files" >&6; }
10639case $ac_cv_sys_large_files in #(
10640  no | unknown) ;;
10641  *)
10642cat >>confdefs.h <<_ACEOF
10643#define _LARGE_FILES $ac_cv_sys_large_files
10644_ACEOF
10645;;
10646esac
10647rm -rf conftest*
10648  fi
10649fi
10650
10651
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
10653$as_echo_n "checking for st_blksize... " >&6; }
10654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655/* end confdefs.h.  */
10656#include <sys/types.h>
10657#include <sys/stat.h>
10658int
10659main ()
10660{
10661	struct stat st;
10662	int n;
10663
10664	stat("/", &st);
10665	n = (int)st.st_blksize;
10666  ;
10667  return 0;
10668}
10669_ACEOF
10670if ac_fn_c_try_compile "$LINENO"; then :
10671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10672$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
10673
10674else
10675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676$as_echo "no" >&6; }
10677fi
10678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10679
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
10681$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
10682if test "${vim_cv_stat_ignores_slash+set}" = set; then :
10683  $as_echo_n "(cached) " >&6
10684else
10685
10686    if test "$cross_compiling" = yes; then :
10687
10688      as_fn_error "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
10689
10690else
10691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692/* end confdefs.h.  */
10693
10694#include "confdefs.h"
10695#if STDC_HEADERS
10696# include <stdlib.h>
10697# include <stddef.h>
10698#endif
10699#include <sys/types.h>
10700#include <sys/stat.h>
10701main() {struct stat st;  exit(stat("configure/", &st) != 0); }
10702
10703_ACEOF
10704if ac_fn_c_try_run "$LINENO"; then :
10705
10706      vim_cv_stat_ignores_slash=yes
10707
10708else
10709
10710      vim_cv_stat_ignores_slash=no
10711
10712fi
10713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10714  conftest.$ac_objext conftest.beam conftest.$ac_ext
10715fi
10716
10717
10718fi
10719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
10720$as_echo "$vim_cv_stat_ignores_slash" >&6; }
10721
10722if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
10723  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
10724
10725fi
10726
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
10728$as_echo_n "checking for iconv_open()... " >&6; }
10729save_LIBS="$LIBS"
10730LIBS="$LIBS -liconv"
10731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732/* end confdefs.h.  */
10733
10734#ifdef HAVE_ICONV_H
10735# include <iconv.h>
10736#endif
10737
10738int
10739main ()
10740{
10741iconv_open("fr", "to");
10742  ;
10743  return 0;
10744}
10745_ACEOF
10746if ac_fn_c_try_link "$LINENO"; then :
10747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
10748$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10749
10750else
10751  LIBS="$save_LIBS"
10752    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753/* end confdefs.h.  */
10754
10755#ifdef HAVE_ICONV_H
10756# include <iconv.h>
10757#endif
10758
10759int
10760main ()
10761{
10762iconv_open("fr", "to");
10763  ;
10764  return 0;
10765}
10766_ACEOF
10767if ac_fn_c_try_link "$LINENO"; then :
10768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10769$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10770
10771else
10772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773$as_echo "no" >&6; }
10774fi
10775rm -f core conftest.err conftest.$ac_objext \
10776    conftest$ac_exeext conftest.$ac_ext
10777fi
10778rm -f core conftest.err conftest.$ac_objext \
10779    conftest$ac_exeext conftest.$ac_ext
10780
10781
10782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
10783$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
10784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785/* end confdefs.h.  */
10786
10787#ifdef HAVE_LANGINFO_H
10788# include <langinfo.h>
10789#endif
10790
10791int
10792main ()
10793{
10794char *cs = nl_langinfo(CODESET);
10795  ;
10796  return 0;
10797}
10798_ACEOF
10799if ac_fn_c_try_link "$LINENO"; then :
10800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10801$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
10802
10803else
10804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805$as_echo "no" >&6; }
10806fi
10807rm -f core conftest.err conftest.$ac_objext \
10808    conftest$ac_exeext conftest.$ac_ext
10809
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
10811$as_echo_n "checking for strtod in -lm... " >&6; }
10812if test "${ac_cv_lib_m_strtod+set}" = set; then :
10813  $as_echo_n "(cached) " >&6
10814else
10815  ac_check_lib_save_LIBS=$LIBS
10816LIBS="-lm  $LIBS"
10817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818/* end confdefs.h.  */
10819
10820/* Override any GCC internal prototype to avoid an error.
10821   Use char because int might match the return type of a GCC
10822   builtin and then its argument prototype would still apply.  */
10823#ifdef __cplusplus
10824extern "C"
10825#endif
10826char strtod ();
10827int
10828main ()
10829{
10830return strtod ();
10831  ;
10832  return 0;
10833}
10834_ACEOF
10835if ac_fn_c_try_link "$LINENO"; then :
10836  ac_cv_lib_m_strtod=yes
10837else
10838  ac_cv_lib_m_strtod=no
10839fi
10840rm -f core conftest.err conftest.$ac_objext \
10841    conftest$ac_exeext conftest.$ac_ext
10842LIBS=$ac_check_lib_save_LIBS
10843fi
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
10845$as_echo "$ac_cv_lib_m_strtod" >&6; }
10846if test "x$ac_cv_lib_m_strtod" = x""yes; then :
10847  cat >>confdefs.h <<_ACEOF
10848#define HAVE_LIBM 1
10849_ACEOF
10850
10851  LIBS="-lm $LIBS"
10852
10853fi
10854
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
10856$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
10857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858/* end confdefs.h.  */
10859
10860#ifdef HAVE_MATH_H
10861# include <math.h>
10862#endif
10863#if STDC_HEADERS
10864# include <stdlib.h>
10865# include <stddef.h>
10866#endif
10867
10868int
10869main ()
10870{
10871char *s; double d;
10872    d = strtod("1.1", &s);
10873    d = fabs(1.11);
10874    d = ceil(1.11);
10875    d = floor(1.11);
10876    d = log10(1.11);
10877    d = pow(1.11, 2.22);
10878    d = sqrt(1.11);
10879    d = sin(1.11);
10880    d = cos(1.11);
10881    d = atan(1.11);
10882
10883  ;
10884  return 0;
10885}
10886_ACEOF
10887if ac_fn_c_try_link "$LINENO"; then :
10888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10889$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
10890
10891else
10892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893$as_echo "no" >&6; }
10894fi
10895rm -f core conftest.err conftest.$ac_objext \
10896    conftest$ac_exeext conftest.$ac_ext
10897
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
10899$as_echo_n "checking --disable-acl argument... " >&6; }
10900# Check whether --enable-acl was given.
10901if test "${enable_acl+set}" = set; then :
10902  enableval=$enable_acl;
10903else
10904  enable_acl="yes"
10905fi
10906
10907if test "$enable_acl" = "yes"; then
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
10911$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
10912if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then :
10913  $as_echo_n "(cached) " >&6
10914else
10915  ac_check_lib_save_LIBS=$LIBS
10916LIBS="-lposix1e  $LIBS"
10917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918/* end confdefs.h.  */
10919
10920/* Override any GCC internal prototype to avoid an error.
10921   Use char because int might match the return type of a GCC
10922   builtin and then its argument prototype would still apply.  */
10923#ifdef __cplusplus
10924extern "C"
10925#endif
10926char acl_get_file ();
10927int
10928main ()
10929{
10930return acl_get_file ();
10931  ;
10932  return 0;
10933}
10934_ACEOF
10935if ac_fn_c_try_link "$LINENO"; then :
10936  ac_cv_lib_posix1e_acl_get_file=yes
10937else
10938  ac_cv_lib_posix1e_acl_get_file=no
10939fi
10940rm -f core conftest.err conftest.$ac_objext \
10941    conftest$ac_exeext conftest.$ac_ext
10942LIBS=$ac_check_lib_save_LIBS
10943fi
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
10945$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
10946if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then :
10947  LIBS="$LIBS -lposix1e"
10948else
10949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
10950$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
10951if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
10952  $as_echo_n "(cached) " >&6
10953else
10954  ac_check_lib_save_LIBS=$LIBS
10955LIBS="-lacl  $LIBS"
10956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h.  */
10958
10959/* Override any GCC internal prototype to avoid an error.
10960   Use char because int might match the return type of a GCC
10961   builtin and then its argument prototype would still apply.  */
10962#ifdef __cplusplus
10963extern "C"
10964#endif
10965char acl_get_file ();
10966int
10967main ()
10968{
10969return acl_get_file ();
10970  ;
10971  return 0;
10972}
10973_ACEOF
10974if ac_fn_c_try_link "$LINENO"; then :
10975  ac_cv_lib_acl_acl_get_file=yes
10976else
10977  ac_cv_lib_acl_acl_get_file=no
10978fi
10979rm -f core conftest.err conftest.$ac_objext \
10980    conftest$ac_exeext conftest.$ac_ext
10981LIBS=$ac_check_lib_save_LIBS
10982fi
10983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
10984$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
10985if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
10986  LIBS="$LIBS -lacl"
10987		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
10988$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
10989if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then :
10990  $as_echo_n "(cached) " >&6
10991else
10992  ac_check_lib_save_LIBS=$LIBS
10993LIBS="-lattr  $LIBS"
10994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995/* end confdefs.h.  */
10996
10997/* Override any GCC internal prototype to avoid an error.
10998   Use char because int might match the return type of a GCC
10999   builtin and then its argument prototype would still apply.  */
11000#ifdef __cplusplus
11001extern "C"
11002#endif
11003char fgetxattr ();
11004int
11005main ()
11006{
11007return fgetxattr ();
11008  ;
11009  return 0;
11010}
11011_ACEOF
11012if ac_fn_c_try_link "$LINENO"; then :
11013  ac_cv_lib_attr_fgetxattr=yes
11014else
11015  ac_cv_lib_attr_fgetxattr=no
11016fi
11017rm -f core conftest.err conftest.$ac_objext \
11018    conftest$ac_exeext conftest.$ac_ext
11019LIBS=$ac_check_lib_save_LIBS
11020fi
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
11022$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
11023if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then :
11024  LIBS="$LIBS -lattr"
11025fi
11026
11027fi
11028
11029fi
11030
11031
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
11033$as_echo_n "checking for POSIX ACL support... " >&6; }
11034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035/* end confdefs.h.  */
11036
11037#include <sys/types.h>
11038#ifdef HAVE_SYS_ACL_H
11039# include <sys/acl.h>
11040#endif
11041acl_t acl;
11042int
11043main ()
11044{
11045acl = acl_get_file("foo", ACL_TYPE_ACCESS);
11046	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
11047	acl_free(acl);
11048  ;
11049  return 0;
11050}
11051_ACEOF
11052if ac_fn_c_try_link "$LINENO"; then :
11053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11054$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11055
11056else
11057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058$as_echo "no" >&6; }
11059fi
11060rm -f core conftest.err conftest.$ac_objext \
11061    conftest$ac_exeext conftest.$ac_ext
11062
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
11064$as_echo_n "checking for Solaris ACL support... " >&6; }
11065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066/* end confdefs.h.  */
11067
11068#ifdef HAVE_SYS_ACL_H
11069# include <sys/acl.h>
11070#endif
11071int
11072main ()
11073{
11074acl("foo", GETACLCNT, 0, NULL);
11075
11076  ;
11077  return 0;
11078}
11079_ACEOF
11080if ac_fn_c_try_link "$LINENO"; then :
11081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11082$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
11083
11084else
11085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086$as_echo "no" >&6; }
11087fi
11088rm -f core conftest.err conftest.$ac_objext \
11089    conftest$ac_exeext conftest.$ac_ext
11090
11091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
11092$as_echo_n "checking for AIX ACL support... " >&6; }
11093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094/* end confdefs.h.  */
11095
11096#if STDC_HEADERS
11097# include <stdlib.h>
11098# include <stddef.h>
11099#endif
11100#ifdef HAVE_SYS_ACL_H
11101# include <sys/acl.h>
11102#endif
11103#ifdef HAVE_SYS_ACCESS_H
11104# include <sys/access.h>
11105#endif
11106#define _ALL_SOURCE
11107
11108#include <sys/stat.h>
11109
11110int aclsize;
11111struct acl *aclent;
11112int
11113main ()
11114{
11115aclsize = sizeof(struct acl);
11116	aclent = (void *)malloc(aclsize);
11117	statacl("foo", STX_NORMAL, aclent, aclsize);
11118
11119  ;
11120  return 0;
11121}
11122_ACEOF
11123if ac_fn_c_try_link "$LINENO"; then :
11124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11125$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
11126
11127else
11128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129$as_echo "no" >&6; }
11130fi
11131rm -f core conftest.err conftest.$ac_objext \
11132    conftest$ac_exeext conftest.$ac_ext
11133else
11134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11135$as_echo "yes" >&6; }
11136fi
11137
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
11139$as_echo_n "checking --disable-gpm argument... " >&6; }
11140# Check whether --enable-gpm was given.
11141if test "${enable_gpm+set}" = set; then :
11142  enableval=$enable_gpm;
11143else
11144  enable_gpm="yes"
11145fi
11146
11147
11148if test "$enable_gpm" = "yes"; then
11149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150$as_echo "no" >&6; }
11151    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
11152$as_echo_n "checking for gpm... " >&6; }
11153if test "${vi_cv_have_gpm+set}" = set; then :
11154  $as_echo_n "(cached) " >&6
11155else
11156  olibs="$LIBS" ; LIBS="-lgpm"
11157	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158/* end confdefs.h.  */
11159#include <gpm.h>
11160	    #include <linux/keyboard.h>
11161int
11162main ()
11163{
11164Gpm_GetLibVersion(NULL);
11165  ;
11166  return 0;
11167}
11168_ACEOF
11169if ac_fn_c_try_link "$LINENO"; then :
11170  	    	    vi_cv_have_gpm=yes
11171else
11172  vi_cv_have_gpm=no
11173fi
11174rm -f core conftest.err conftest.$ac_objext \
11175    conftest$ac_exeext conftest.$ac_ext
11176	LIBS="$olibs"
11177
11178fi
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
11180$as_echo "$vi_cv_have_gpm" >&6; }
11181  if test $vi_cv_have_gpm = yes; then
11182    LIBS="$LIBS -lgpm"
11183    $as_echo "#define HAVE_GPM 1" >>confdefs.h
11184
11185  fi
11186else
11187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11188$as_echo "yes" >&6; }
11189fi
11190
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
11192$as_echo_n "checking --disable-sysmouse argument... " >&6; }
11193# Check whether --enable-sysmouse was given.
11194if test "${enable_sysmouse+set}" = set; then :
11195  enableval=$enable_sysmouse;
11196else
11197  enable_sysmouse="yes"
11198fi
11199
11200
11201if test "$enable_sysmouse" = "yes"; then
11202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203$as_echo "no" >&6; }
11204        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
11205$as_echo_n "checking for sysmouse... " >&6; }
11206if test "${vi_cv_have_sysmouse+set}" = set; then :
11207  $as_echo_n "(cached) " >&6
11208else
11209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210/* end confdefs.h.  */
11211#include <sys/consio.h>
11212	     #include <signal.h>
11213	     #include <sys/fbio.h>
11214int
11215main ()
11216{
11217struct mouse_info   mouse;
11218	     mouse.operation = MOUSE_MODE;
11219	     mouse.operation = MOUSE_SHOW;
11220	     mouse.u.mode.mode = 0;
11221	     mouse.u.mode.signal = SIGUSR2;
11222  ;
11223  return 0;
11224}
11225_ACEOF
11226if ac_fn_c_try_link "$LINENO"; then :
11227  vi_cv_have_sysmouse=yes
11228else
11229  vi_cv_have_sysmouse=no
11230fi
11231rm -f core conftest.err conftest.$ac_objext \
11232    conftest$ac_exeext conftest.$ac_ext
11233
11234fi
11235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
11236$as_echo "$vi_cv_have_sysmouse" >&6; }
11237  if test $vi_cv_have_sysmouse = yes; then
11238    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
11239
11240  fi
11241else
11242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11243$as_echo "yes" >&6; }
11244fi
11245
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
11247$as_echo_n "checking for FD_CLOEXEC... " >&6; }
11248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249/* end confdefs.h.  */
11250#if HAVE_FCNTL_H
11251# include <fcntl.h>
11252#endif
11253int
11254main ()
11255{
11256	int flag = FD_CLOEXEC;
11257  ;
11258  return 0;
11259}
11260_ACEOF
11261if ac_fn_c_try_compile "$LINENO"; then :
11262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
11264
11265else
11266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
11267$as_echo "not usable" >&6; }
11268fi
11269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
11272$as_echo_n "checking for rename... " >&6; }
11273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274/* end confdefs.h.  */
11275#include <stdio.h>
11276int
11277main ()
11278{
11279rename("this", "that")
11280  ;
11281  return 0;
11282}
11283_ACEOF
11284if ac_fn_c_try_link "$LINENO"; then :
11285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11286$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
11287
11288else
11289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290$as_echo "no" >&6; }
11291fi
11292rm -f core conftest.err conftest.$ac_objext \
11293    conftest$ac_exeext conftest.$ac_ext
11294
11295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
11296$as_echo_n "checking for sysctl... " >&6; }
11297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298/* end confdefs.h.  */
11299#include <sys/types.h>
11300#include <sys/sysctl.h>
11301int
11302main ()
11303{
11304	int mib[2], r;
11305	size_t len;
11306
11307	mib[0] = CTL_HW;
11308	mib[1] = HW_USERMEM;
11309	len = sizeof(r);
11310	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
11311
11312  ;
11313  return 0;
11314}
11315_ACEOF
11316if ac_fn_c_try_compile "$LINENO"; then :
11317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11318$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
11319
11320else
11321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
11322$as_echo "not usable" >&6; }
11323fi
11324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
11327$as_echo_n "checking for sysinfo... " >&6; }
11328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329/* end confdefs.h.  */
11330#include <sys/types.h>
11331#include <sys/sysinfo.h>
11332int
11333main ()
11334{
11335	struct sysinfo sinfo;
11336	int t;
11337
11338	(void)sysinfo(&sinfo);
11339	t = sinfo.totalram;
11340
11341  ;
11342  return 0;
11343}
11344_ACEOF
11345if ac_fn_c_try_compile "$LINENO"; then :
11346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11347$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
11348
11349else
11350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
11351$as_echo "not usable" >&6; }
11352fi
11353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
11356$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
11357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358/* end confdefs.h.  */
11359#include <sys/types.h>
11360#include <sys/sysinfo.h>
11361int
11362main ()
11363{
11364	struct sysinfo sinfo;
11365 	sinfo.mem_unit = 1;
11366
11367  ;
11368  return 0;
11369}
11370_ACEOF
11371if ac_fn_c_try_compile "$LINENO"; then :
11372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11373$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
11374
11375else
11376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
11378fi
11379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
11382$as_echo_n "checking for sysconf... " >&6; }
11383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384/* end confdefs.h.  */
11385#include <unistd.h>
11386int
11387main ()
11388{
11389	(void)sysconf(_SC_PAGESIZE);
11390	(void)sysconf(_SC_PHYS_PAGES);
11391
11392  ;
11393  return 0;
11394}
11395_ACEOF
11396if ac_fn_c_try_compile "$LINENO"; then :
11397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11398$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
11399
11400else
11401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
11402$as_echo "not usable" >&6; }
11403fi
11404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405
11406# The cast to long int works around a bug in the HP C Compiler
11407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11409# This bug is HP SR number 8606223364.
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11411$as_echo_n "checking size of int... " >&6; }
11412if test "${ac_cv_sizeof_int+set}" = set; then :
11413  $as_echo_n "(cached) " >&6
11414else
11415  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
11416
11417else
11418  if test "$ac_cv_type_int" = yes; then
11419     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11421{ as_fn_set_status 77
11422as_fn_error "cannot compute sizeof (int)
11423See \`config.log' for more details." "$LINENO" 5; }; }
11424   else
11425     ac_cv_sizeof_int=0
11426   fi
11427fi
11428
11429fi
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11431$as_echo "$ac_cv_sizeof_int" >&6; }
11432
11433
11434
11435cat >>confdefs.h <<_ACEOF
11436#define SIZEOF_INT $ac_cv_sizeof_int
11437_ACEOF
11438
11439
11440# The cast to long int works around a bug in the HP C Compiler
11441# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11442# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11443# This bug is HP SR number 8606223364.
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11445$as_echo_n "checking size of long... " >&6; }
11446if test "${ac_cv_sizeof_long+set}" = set; then :
11447  $as_echo_n "(cached) " >&6
11448else
11449  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
11450
11451else
11452  if test "$ac_cv_type_long" = yes; then
11453     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11455{ as_fn_set_status 77
11456as_fn_error "cannot compute sizeof (long)
11457See \`config.log' for more details." "$LINENO" 5; }; }
11458   else
11459     ac_cv_sizeof_long=0
11460   fi
11461fi
11462
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11465$as_echo "$ac_cv_sizeof_long" >&6; }
11466
11467
11468
11469cat >>confdefs.h <<_ACEOF
11470#define SIZEOF_LONG $ac_cv_sizeof_long
11471_ACEOF
11472
11473
11474# The cast to long int works around a bug in the HP C Compiler
11475# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11476# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11477# This bug is HP SR number 8606223364.
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
11479$as_echo_n "checking size of time_t... " >&6; }
11480if test "${ac_cv_sizeof_time_t+set}" = set; then :
11481  $as_echo_n "(cached) " >&6
11482else
11483  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
11484
11485else
11486  if test "$ac_cv_type_time_t" = yes; then
11487     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11489{ as_fn_set_status 77
11490as_fn_error "cannot compute sizeof (time_t)
11491See \`config.log' for more details." "$LINENO" 5; }; }
11492   else
11493     ac_cv_sizeof_time_t=0
11494   fi
11495fi
11496
11497fi
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
11499$as_echo "$ac_cv_sizeof_time_t" >&6; }
11500
11501
11502
11503cat >>confdefs.h <<_ACEOF
11504#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11505_ACEOF
11506
11507
11508# The cast to long int works around a bug in the HP C Compiler
11509# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11510# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11511# This bug is HP SR number 8606223364.
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
11513$as_echo_n "checking size of off_t... " >&6; }
11514if test "${ac_cv_sizeof_off_t+set}" = set; then :
11515  $as_echo_n "(cached) " >&6
11516else
11517  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
11518
11519else
11520  if test "$ac_cv_type_off_t" = yes; then
11521     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11523{ as_fn_set_status 77
11524as_fn_error "cannot compute sizeof (off_t)
11525See \`config.log' for more details." "$LINENO" 5; }; }
11526   else
11527     ac_cv_sizeof_off_t=0
11528   fi
11529fi
11530
11531fi
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
11533$as_echo "$ac_cv_sizeof_off_t" >&6; }
11534
11535
11536
11537cat >>confdefs.h <<_ACEOF
11538#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11539_ACEOF
11540
11541
11542
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
11544$as_echo_n "checking uint32_t is 32 bits... " >&6; }
11545if test "$cross_compiling" = yes; then :
11546  as_fn_error "could not compile program using uint32_t." "$LINENO" 5
11547else
11548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549/* end confdefs.h.  */
11550
11551#ifdef HAVE_STDINT_H
11552# include <stdint.h>
11553#endif
11554#ifdef HAVE_INTTYPES_H
11555# include <inttypes.h>
11556#endif
11557main() {
11558  uint32_t nr1 = (uint32_t)-1;
11559  uint32_t nr2 = (uint32_t)0xffffffffUL;
11560  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
11561  exit(0);
11562}
11563_ACEOF
11564if ac_fn_c_try_run "$LINENO"; then :
11565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11566$as_echo "ok" >&6; }
11567else
11568  as_fn_error "WRONG!  uint32_t not defined correctly." "$LINENO" 5
11569fi
11570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11571  conftest.$ac_objext conftest.beam conftest.$ac_ext
11572fi
11573
11574
11575
11576bcopy_test_prog='
11577#include "confdefs.h"
11578#ifdef HAVE_STRING_H
11579# include <string.h>
11580#endif
11581#if STDC_HEADERS
11582# include <stdlib.h>
11583# include <stddef.h>
11584#endif
11585main() {
11586  char buf[10];
11587  strcpy(buf, "abcdefghi");
11588  mch_memmove(buf, buf + 2, 3);
11589  if (strncmp(buf, "ababcf", 6))
11590    exit(1);
11591  strcpy(buf, "abcdefghi");
11592  mch_memmove(buf + 2, buf, 3);
11593  if (strncmp(buf, "cdedef", 6))
11594    exit(1);
11595  exit(0); /* libc version works properly.  */
11596}'
11597
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
11599$as_echo_n "checking whether memmove handles overlaps... " >&6; }
11600if test "${vim_cv_memmove_handles_overlap+set}" = set; then :
11601  $as_echo_n "(cached) " >&6
11602else
11603
11604    if test "$cross_compiling" = yes; then :
11605
11606	as_fn_error "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
11607
11608else
11609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610/* end confdefs.h.  */
11611#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
11612_ACEOF
11613if ac_fn_c_try_run "$LINENO"; then :
11614
11615	vim_cv_memmove_handles_overlap=yes
11616
11617else
11618
11619	vim_cv_memmove_handles_overlap=no
11620
11621fi
11622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11623  conftest.$ac_objext conftest.beam conftest.$ac_ext
11624fi
11625
11626
11627fi
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
11629$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
11630
11631if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
11632  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
11633
11634else
11635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
11636$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
11637if test "${vim_cv_bcopy_handles_overlap+set}" = set; then :
11638  $as_echo_n "(cached) " >&6
11639else
11640
11641      if test "$cross_compiling" = yes; then :
11642
11643	as_fn_error "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
11644
11645else
11646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647/* end confdefs.h.  */
11648#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
11649_ACEOF
11650if ac_fn_c_try_run "$LINENO"; then :
11651
11652	vim_cv_bcopy_handles_overlap=yes
11653
11654else
11655
11656	vim_cv_bcopy_handles_overlap=no
11657
11658fi
11659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11660  conftest.$ac_objext conftest.beam conftest.$ac_ext
11661fi
11662
11663
11664fi
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
11666$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
11667
11668  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
11669    $as_echo "#define USEBCOPY 1" >>confdefs.h
11670
11671  else
11672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
11673$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
11674if test "${vim_cv_memcpy_handles_overlap+set}" = set; then :
11675  $as_echo_n "(cached) " >&6
11676else
11677
11678	if test "$cross_compiling" = yes; then :
11679
11680	    as_fn_error "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
11681
11682else
11683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684/* end confdefs.h.  */
11685#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
11686_ACEOF
11687if ac_fn_c_try_run "$LINENO"; then :
11688
11689	    vim_cv_memcpy_handles_overlap=yes
11690
11691else
11692
11693	    vim_cv_memcpy_handles_overlap=no
11694
11695fi
11696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11697  conftest.$ac_objext conftest.beam conftest.$ac_ext
11698fi
11699
11700
11701fi
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
11703$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
11704
11705    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
11706      $as_echo "#define USEMEMCPY 1" >>confdefs.h
11707
11708    fi
11709  fi
11710fi
11711
11712
11713
11714if test "$enable_multibyte" = "yes"; then
11715  cflags_save=$CFLAGS
11716  ldflags_save=$LDFLAGS
11717  if test "x$x_includes" != "xNONE" ; then
11718    CFLAGS="$CFLAGS -I$x_includes"
11719    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
11720    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
11721$as_echo_n "checking whether X_LOCALE needed... " >&6; }
11722    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723/* end confdefs.h.  */
11724#include <X11/Xlocale.h>
11725int
11726main ()
11727{
11728
11729  ;
11730  return 0;
11731}
11732_ACEOF
11733if ac_fn_c_try_compile "$LINENO"; then :
11734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735/* end confdefs.h.  */
11736
11737/* Override any GCC internal prototype to avoid an error.
11738   Use char because int might match the return type of a GCC
11739   builtin and then its argument prototype would still apply.  */
11740#ifdef __cplusplus
11741extern "C"
11742#endif
11743char _Xsetlocale ();
11744int
11745main ()
11746{
11747return _Xsetlocale ();
11748  ;
11749  return 0;
11750}
11751_ACEOF
11752if ac_fn_c_try_link "$LINENO"; then :
11753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11754$as_echo "yes" >&6; }
11755		$as_echo "#define X_LOCALE 1" >>confdefs.h
11756
11757else
11758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
11760fi
11761rm -f core conftest.err conftest.$ac_objext \
11762    conftest$ac_exeext conftest.$ac_ext
11763else
11764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765$as_echo "no" >&6; }
11766fi
11767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768  fi
11769  CFLAGS=$cflags_save
11770  LDFLAGS=$ldflags_save
11771fi
11772
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
11774$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
11775if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then :
11776  $as_echo_n "(cached) " >&6
11777else
11778  ac_check_lib_save_LIBS=$LIBS
11779LIBS="-lxpg4  $LIBS"
11780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781/* end confdefs.h.  */
11782
11783/* Override any GCC internal prototype to avoid an error.
11784   Use char because int might match the return type of a GCC
11785   builtin and then its argument prototype would still apply.  */
11786#ifdef __cplusplus
11787extern "C"
11788#endif
11789char _xpg4_setrunelocale ();
11790int
11791main ()
11792{
11793return _xpg4_setrunelocale ();
11794  ;
11795  return 0;
11796}
11797_ACEOF
11798if ac_fn_c_try_link "$LINENO"; then :
11799  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
11800else
11801  ac_cv_lib_xpg4__xpg4_setrunelocale=no
11802fi
11803rm -f core conftest.err conftest.$ac_objext \
11804    conftest$ac_exeext conftest.$ac_ext
11805LIBS=$ac_check_lib_save_LIBS
11806fi
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
11808$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
11809if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then :
11810  LIBS="$LIBS -lxpg4"
11811fi
11812
11813
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
11815$as_echo_n "checking how to create tags... " >&6; }
11816test -f tags && mv tags tags.save
11817if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
11818  TAGPRG="ctags -I INIT+ --fields=+S"
11819else
11820  TAGPRG="ctags"
11821  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
11822  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
11823  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
11824  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
11825  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
11826  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
11827  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
11828fi
11829test -f tags.save && mv tags.save tags
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
11831$as_echo "$TAGPRG" >&6; }
11832
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
11834$as_echo_n "checking how to run man with a section nr... " >&6; }
11835MANDEF="man"
11836(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
11838$as_echo "$MANDEF" >&6; }
11839if test "$MANDEF" = "man -s"; then
11840  $as_echo "#define USEMAN_S 1" >>confdefs.h
11841
11842fi
11843
11844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
11845$as_echo_n "checking --disable-nls argument... " >&6; }
11846# Check whether --enable-nls was given.
11847if test "${enable_nls+set}" = set; then :
11848  enableval=$enable_nls;
11849else
11850  enable_nls="yes"
11851fi
11852
11853
11854if test "$enable_nls" = "yes"; then
11855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856$as_echo "no" >&6; }
11857
11858  INSTALL_LANGS=install-languages
11859
11860  INSTALL_TOOL_LANGS=install-tool-languages
11861
11862
11863  # Extract the first word of "msgfmt", so it can be a program name with args.
11864set dummy msgfmt; ac_word=$2
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11866$as_echo_n "checking for $ac_word... " >&6; }
11867if test "${ac_cv_prog_MSGFMT+set}" = set; then :
11868  $as_echo_n "(cached) " >&6
11869else
11870  if test -n "$MSGFMT"; then
11871  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
11872else
11873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874for as_dir in $PATH
11875do
11876  IFS=$as_save_IFS
11877  test -z "$as_dir" && as_dir=.
11878    for ac_exec_ext in '' $ac_executable_extensions; do
11879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11880    ac_cv_prog_MSGFMT="msgfmt"
11881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882    break 2
11883  fi
11884done
11885  done
11886IFS=$as_save_IFS
11887
11888fi
11889fi
11890MSGFMT=$ac_cv_prog_MSGFMT
11891if test -n "$MSGFMT"; then
11892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11893$as_echo "$MSGFMT" >&6; }
11894else
11895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
11897fi
11898
11899
11900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
11901$as_echo_n "checking for NLS... " >&6; }
11902  if test -f po/Makefile; then
11903    have_gettext="no"
11904    if test -n "$MSGFMT"; then
11905      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906/* end confdefs.h.  */
11907#include <libintl.h>
11908int
11909main ()
11910{
11911gettext("Test");
11912  ;
11913  return 0;
11914}
11915_ACEOF
11916if ac_fn_c_try_link "$LINENO"; then :
11917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
11918$as_echo "gettext() works" >&6; }; have_gettext="yes"
11919else
11920  olibs=$LIBS
11921	  LIBS="$LIBS -lintl"
11922	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923/* end confdefs.h.  */
11924#include <libintl.h>
11925int
11926main ()
11927{
11928gettext("Test");
11929  ;
11930  return 0;
11931}
11932_ACEOF
11933if ac_fn_c_try_link "$LINENO"; then :
11934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
11935$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
11936else
11937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
11938$as_echo "gettext() doesn't work" >&6; };
11939	      LIBS=$olibs
11940fi
11941rm -f core conftest.err conftest.$ac_objext \
11942    conftest$ac_exeext conftest.$ac_ext
11943fi
11944rm -f core conftest.err conftest.$ac_objext \
11945    conftest$ac_exeext conftest.$ac_ext
11946    else
11947      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
11948$as_echo "msgfmt not found - disabled" >&6; };
11949    fi
11950    if test $have_gettext = "yes"; then
11951      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11952
11953      MAKEMO=yes
11954
11955            for ac_func in bind_textdomain_codeset
11956do :
11957  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11958if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
11959  cat >>confdefs.h <<_ACEOF
11960#define HAVE_BIND_TEXTDOMAIN_CODESET 1
11961_ACEOF
11962
11963fi
11964done
11965
11966            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
11967$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
11968      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969/* end confdefs.h.  */
11970#include <libintl.h>
11971		extern int _nl_msg_cat_cntr;
11972int
11973main ()
11974{
11975++_nl_msg_cat_cntr;
11976  ;
11977  return 0;
11978}
11979_ACEOF
11980if ac_fn_c_try_link "$LINENO"; then :
11981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11982$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
11983
11984else
11985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986$as_echo "no" >&6; }
11987fi
11988rm -f core conftest.err conftest.$ac_objext \
11989    conftest$ac_exeext conftest.$ac_ext
11990    fi
11991  else
11992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
11993$as_echo "no \"po/Makefile\" - disabled" >&6; };
11994  fi
11995else
11996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11997$as_echo "yes" >&6; }
11998fi
11999
12000ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12001if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
12002  DLL=dlfcn.h
12003else
12004  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
12005if test "x$ac_cv_header_dl_h" = x""yes; then :
12006  DLL=dl.h
12007fi
12008
12009
12010fi
12011
12012
12013if test x${DLL} = xdlfcn.h; then
12014
12015$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
12016
12017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
12018$as_echo_n "checking for dlopen()... " >&6; }
12019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020/* end confdefs.h.  */
12021
12022int
12023main ()
12024{
12025
12026		extern void* dlopen();
12027		dlopen();
12028
12029  ;
12030  return 0;
12031}
12032_ACEOF
12033if ac_fn_c_try_link "$LINENO"; then :
12034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12035$as_echo "yes" >&6; };
12036
12037$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12038
12039else
12040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041$as_echo "no" >&6; };
12042	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
12043$as_echo_n "checking for dlopen() in -ldl... " >&6; }
12044	      olibs=$LIBS
12045	      LIBS="$LIBS -ldl"
12046	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047/* end confdefs.h.  */
12048
12049int
12050main ()
12051{
12052
12053				extern void* dlopen();
12054				dlopen();
12055
12056  ;
12057  return 0;
12058}
12059_ACEOF
12060if ac_fn_c_try_link "$LINENO"; then :
12061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12062$as_echo "yes" >&6; };
12063
12064$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12065
12066else
12067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068$as_echo "no" >&6; };
12069			  LIBS=$olibs
12070fi
12071rm -f core conftest.err conftest.$ac_objext \
12072    conftest$ac_exeext conftest.$ac_ext
12073fi
12074rm -f core conftest.err conftest.$ac_objext \
12075    conftest$ac_exeext conftest.$ac_ext
12076      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
12077$as_echo_n "checking for dlsym()... " >&6; }
12078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079/* end confdefs.h.  */
12080
12081int
12082main ()
12083{
12084
12085		extern void* dlsym();
12086		dlsym();
12087
12088  ;
12089  return 0;
12090}
12091_ACEOF
12092if ac_fn_c_try_link "$LINENO"; then :
12093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12094$as_echo "yes" >&6; };
12095
12096$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
12097
12098else
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100$as_echo "no" >&6; };
12101	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
12102$as_echo_n "checking for dlsym() in -ldl... " >&6; }
12103	      olibs=$LIBS
12104	      LIBS="$LIBS -ldl"
12105	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106/* end confdefs.h.  */
12107
12108int
12109main ()
12110{
12111
12112				extern void* dlsym();
12113				dlsym();
12114
12115  ;
12116  return 0;
12117}
12118_ACEOF
12119if ac_fn_c_try_link "$LINENO"; then :
12120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12121$as_echo "yes" >&6; };
12122
12123$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
12124
12125else
12126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127$as_echo "no" >&6; };
12128			  LIBS=$olibs
12129fi
12130rm -f core conftest.err conftest.$ac_objext \
12131    conftest$ac_exeext conftest.$ac_ext
12132fi
12133rm -f core conftest.err conftest.$ac_objext \
12134    conftest$ac_exeext conftest.$ac_ext
12135elif test x${DLL} = xdl.h; then
12136
12137$as_echo "#define HAVE_DL_H 1" >>confdefs.h
12138
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
12140$as_echo_n "checking for shl_load()... " >&6; }
12141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142/* end confdefs.h.  */
12143
12144int
12145main ()
12146{
12147
12148		extern void* shl_load();
12149		shl_load();
12150
12151  ;
12152  return 0;
12153}
12154_ACEOF
12155if ac_fn_c_try_link "$LINENO"; then :
12156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157$as_echo "yes" >&6; };
12158
12159$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12160
12161else
12162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; };
12164	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
12165$as_echo_n "checking for shl_load() in -ldld... " >&6; }
12166	  olibs=$LIBS
12167	  LIBS="$LIBS -ldld"
12168	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169/* end confdefs.h.  */
12170
12171int
12172main ()
12173{
12174
12175			extern void* shl_load();
12176			shl_load();
12177
12178  ;
12179  return 0;
12180}
12181_ACEOF
12182if ac_fn_c_try_link "$LINENO"; then :
12183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12184$as_echo "yes" >&6; };
12185
12186$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12187
12188else
12189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190$as_echo "no" >&6; };
12191		  LIBS=$olibs
12192fi
12193rm -f core conftest.err conftest.$ac_objext \
12194    conftest$ac_exeext conftest.$ac_ext
12195fi
12196rm -f core conftest.err conftest.$ac_objext \
12197    conftest$ac_exeext conftest.$ac_ext
12198fi
12199for ac_header in setjmp.h
12200do :
12201  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
12202if test "x$ac_cv_header_setjmp_h" = x""yes; then :
12203  cat >>confdefs.h <<_ACEOF
12204#define HAVE_SETJMP_H 1
12205_ACEOF
12206
12207fi
12208
12209done
12210
12211
12212if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
12213    if echo $LIBS | grep -e '-ldl' >/dev/null; then
12214    LIBS=`echo $LIBS | sed s/-ldl//`
12215    PERL_LIBS="$PERL_LIBS -ldl"
12216  fi
12217fi
12218
12219if test "x$MACOSX" = "xyes"; then
12220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5
12221$as_echo_n "checking whether we need -framework Cocoa... " >&6; }
12222      if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then
12223    LIBS=$"$LIBS -framework Cocoa"
12224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12225$as_echo "yes" >&6; }
12226  else
12227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228$as_echo "no" >&6; }
12229  fi
12230fi
12231if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
12232  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
12233fi
12234
12235DEPEND_CFLAGS_FILTER=
12236if test "$GCC" = yes; then
12237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
12238$as_echo_n "checking for GCC 3 or later... " >&6; }
12239  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
12240  if test "$gccmajor" -gt "2"; then
12241    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
12242    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12243$as_echo "yes" >&6; }
12244  else
12245    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246$as_echo "no" >&6; }
12247  fi
12248        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
12249$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
12250  if test "$gccmajor" -gt "3"; then
12251    CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
12252    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12253$as_echo "yes" >&6; }
12254  else
12255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256$as_echo "no" >&6; }
12257  fi
12258fi
12259
12260
12261ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
12262
12263cat >confcache <<\_ACEOF
12264# This file is a shell script that caches the results of configure
12265# tests run on this system so they can be shared between configure
12266# scripts and configure runs, see configure's option --config-cache.
12267# It is not useful on other systems.  If it contains results you don't
12268# want to keep, you may remove or edit it.
12269#
12270# config.status only pays attention to the cache file if you give it
12271# the --recheck option to rerun configure.
12272#
12273# `ac_cv_env_foo' variables (set or unset) will be overridden when
12274# loading this file, other *unset* `ac_cv_foo' will be assigned the
12275# following values.
12276
12277_ACEOF
12278
12279# The following way of writing the cache mishandles newlines in values,
12280# but we know of no workaround that is simple, portable, and efficient.
12281# So, we kill variables containing newlines.
12282# Ultrix sh set writes to stderr and can't be redirected directly,
12283# and sets the high bit in the cache file unless we assign to the vars.
12284(
12285  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12286    eval ac_val=\$$ac_var
12287    case $ac_val in #(
12288    *${as_nl}*)
12289      case $ac_var in #(
12290      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12291$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12292      esac
12293      case $ac_var in #(
12294      _ | IFS | as_nl) ;; #(
12295      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12296      *) { eval $ac_var=; unset $ac_var;} ;;
12297      esac ;;
12298    esac
12299  done
12300
12301  (set) 2>&1 |
12302    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12303    *${as_nl}ac_space=\ *)
12304      # `set' does not quote correctly, so add quotes: double-quote
12305      # substitution turns \\\\ into \\, and sed turns \\ into \.
12306      sed -n \
12307	"s/'/'\\\\''/g;
12308	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12309      ;; #(
12310    *)
12311      # `set' quotes correctly as required by POSIX, so do not add quotes.
12312      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12313      ;;
12314    esac |
12315    sort
12316) |
12317  sed '
12318     /^ac_cv_env_/b end
12319     t clear
12320     :clear
12321     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12322     t end
12323     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12324     :end' >>confcache
12325if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12326  if test -w "$cache_file"; then
12327    test "x$cache_file" != "x/dev/null" &&
12328      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12329$as_echo "$as_me: updating cache $cache_file" >&6;}
12330    cat confcache >$cache_file
12331  else
12332    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12333$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12334  fi
12335fi
12336rm -f confcache
12337
12338test "x$prefix" = xNONE && prefix=$ac_default_prefix
12339# Let make expand exec_prefix.
12340test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12341
12342DEFS=-DHAVE_CONFIG_H
12343
12344ac_libobjs=
12345ac_ltlibobjs=
12346for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12347  # 1. Remove the extension, and $U if already installed.
12348  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12349  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12350  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12351  #    will be set to the directory where LIBOBJS objects are built.
12352  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12353  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12354done
12355LIBOBJS=$ac_libobjs
12356
12357LTLIBOBJS=$ac_ltlibobjs
12358
12359
12360
12361
12362: ${CONFIG_STATUS=./config.status}
12363ac_write_fail=0
12364ac_clean_files_save=$ac_clean_files
12365ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12367$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12368as_write_fail=0
12369cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12370#! $SHELL
12371# Generated by $as_me.
12372# Run this file to recreate the current configuration.
12373# Compiler output produced by configure, useful for debugging
12374# configure, is in config.log if it exists.
12375
12376debug=false
12377ac_cs_recheck=false
12378ac_cs_silent=false
12379
12380SHELL=\${CONFIG_SHELL-$SHELL}
12381export SHELL
12382_ASEOF
12383cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12384## -------------------- ##
12385## M4sh Initialization. ##
12386## -------------------- ##
12387
12388# Be more Bourne compatible
12389DUALCASE=1; export DUALCASE # for MKS sh
12390if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12391  emulate sh
12392  NULLCMD=:
12393  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12394  # is contrary to our usage.  Disable this feature.
12395  alias -g '${1+"$@"}'='"$@"'
12396  setopt NO_GLOB_SUBST
12397else
12398  case `(set -o) 2>/dev/null` in #(
12399  *posix*) :
12400    set -o posix ;; #(
12401  *) :
12402     ;;
12403esac
12404fi
12405
12406
12407as_nl='
12408'
12409export as_nl
12410# Printing a long string crashes Solaris 7 /usr/bin/printf.
12411as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12412as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12413as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12414# Prefer a ksh shell builtin over an external printf program on Solaris,
12415# but without wasting forks for bash or zsh.
12416if test -z "$BASH_VERSION$ZSH_VERSION" \
12417    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12418  as_echo='print -r --'
12419  as_echo_n='print -rn --'
12420elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12421  as_echo='printf %s\n'
12422  as_echo_n='printf %s'
12423else
12424  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12425    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12426    as_echo_n='/usr/ucb/echo -n'
12427  else
12428    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12429    as_echo_n_body='eval
12430      arg=$1;
12431      case $arg in #(
12432      *"$as_nl"*)
12433	expr "X$arg" : "X\\(.*\\)$as_nl";
12434	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12435      esac;
12436      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12437    '
12438    export as_echo_n_body
12439    as_echo_n='sh -c $as_echo_n_body as_echo'
12440  fi
12441  export as_echo_body
12442  as_echo='sh -c $as_echo_body as_echo'
12443fi
12444
12445# The user is always right.
12446if test "${PATH_SEPARATOR+set}" != set; then
12447  PATH_SEPARATOR=:
12448  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12449    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12450      PATH_SEPARATOR=';'
12451  }
12452fi
12453
12454
12455# IFS
12456# We need space, tab and new line, in precisely that order.  Quoting is
12457# there to prevent editors from complaining about space-tab.
12458# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12459# splitting by setting IFS to empty value.)
12460IFS=" ""	$as_nl"
12461
12462# Find who we are.  Look in the path if we contain no directory separator.
12463case $0 in #((
12464  *[\\/]* ) as_myself=$0 ;;
12465  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466for as_dir in $PATH
12467do
12468  IFS=$as_save_IFS
12469  test -z "$as_dir" && as_dir=.
12470    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12471  done
12472IFS=$as_save_IFS
12473
12474     ;;
12475esac
12476# We did not find ourselves, most probably we were run as `sh COMMAND'
12477# in which case we are not to be found in the path.
12478if test "x$as_myself" = x; then
12479  as_myself=$0
12480fi
12481if test ! -f "$as_myself"; then
12482  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12483  exit 1
12484fi
12485
12486# Unset variables that we do not need and which cause bugs (e.g. in
12487# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12488# suppresses any "Segmentation fault" message there.  '((' could
12489# trigger a bug in pdksh 5.2.14.
12490for as_var in BASH_ENV ENV MAIL MAILPATH
12491do eval test x\${$as_var+set} = xset \
12492  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12493done
12494PS1='$ '
12495PS2='> '
12496PS4='+ '
12497
12498# NLS nuisances.
12499LC_ALL=C
12500export LC_ALL
12501LANGUAGE=C
12502export LANGUAGE
12503
12504# CDPATH.
12505(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12506
12507
12508# as_fn_error ERROR [LINENO LOG_FD]
12509# ---------------------------------
12510# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12511# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12512# script with status $?, using 1 if that was 0.
12513as_fn_error ()
12514{
12515  as_status=$?; test $as_status -eq 0 && as_status=1
12516  if test "$3"; then
12517    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12518    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12519  fi
12520  $as_echo "$as_me: error: $1" >&2
12521  as_fn_exit $as_status
12522} # as_fn_error
12523
12524
12525# as_fn_set_status STATUS
12526# -----------------------
12527# Set $? to STATUS, without forking.
12528as_fn_set_status ()
12529{
12530  return $1
12531} # as_fn_set_status
12532
12533# as_fn_exit STATUS
12534# -----------------
12535# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12536as_fn_exit ()
12537{
12538  set +e
12539  as_fn_set_status $1
12540  exit $1
12541} # as_fn_exit
12542
12543# as_fn_unset VAR
12544# ---------------
12545# Portably unset VAR.
12546as_fn_unset ()
12547{
12548  { eval $1=; unset $1;}
12549}
12550as_unset=as_fn_unset
12551# as_fn_append VAR VALUE
12552# ----------------------
12553# Append the text in VALUE to the end of the definition contained in VAR. Take
12554# advantage of any shell optimizations that allow amortized linear growth over
12555# repeated appends, instead of the typical quadratic growth present in naive
12556# implementations.
12557if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12558  eval 'as_fn_append ()
12559  {
12560    eval $1+=\$2
12561  }'
12562else
12563  as_fn_append ()
12564  {
12565    eval $1=\$$1\$2
12566  }
12567fi # as_fn_append
12568
12569# as_fn_arith ARG...
12570# ------------------
12571# Perform arithmetic evaluation on the ARGs, and store the result in the
12572# global $as_val. Take advantage of shells that can avoid forks. The arguments
12573# must be portable across $(()) and expr.
12574if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12575  eval 'as_fn_arith ()
12576  {
12577    as_val=$(( $* ))
12578  }'
12579else
12580  as_fn_arith ()
12581  {
12582    as_val=`expr "$@" || test $? -eq 1`
12583  }
12584fi # as_fn_arith
12585
12586
12587if expr a : '\(a\)' >/dev/null 2>&1 &&
12588   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12589  as_expr=expr
12590else
12591  as_expr=false
12592fi
12593
12594if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12595  as_basename=basename
12596else
12597  as_basename=false
12598fi
12599
12600if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12601  as_dirname=dirname
12602else
12603  as_dirname=false
12604fi
12605
12606as_me=`$as_basename -- "$0" ||
12607$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12608	 X"$0" : 'X\(//\)$' \| \
12609	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12610$as_echo X/"$0" |
12611    sed '/^.*\/\([^/][^/]*\)\/*$/{
12612	    s//\1/
12613	    q
12614	  }
12615	  /^X\/\(\/\/\)$/{
12616	    s//\1/
12617	    q
12618	  }
12619	  /^X\/\(\/\).*/{
12620	    s//\1/
12621	    q
12622	  }
12623	  s/.*/./; q'`
12624
12625# Avoid depending upon Character Ranges.
12626as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12627as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12628as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12629as_cr_digits='0123456789'
12630as_cr_alnum=$as_cr_Letters$as_cr_digits
12631
12632ECHO_C= ECHO_N= ECHO_T=
12633case `echo -n x` in #(((((
12634-n*)
12635  case `echo 'xy\c'` in
12636  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12637  xy)  ECHO_C='\c';;
12638  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12639       ECHO_T='	';;
12640  esac;;
12641*)
12642  ECHO_N='-n';;
12643esac
12644
12645rm -f conf$$ conf$$.exe conf$$.file
12646if test -d conf$$.dir; then
12647  rm -f conf$$.dir/conf$$.file
12648else
12649  rm -f conf$$.dir
12650  mkdir conf$$.dir 2>/dev/null
12651fi
12652if (echo >conf$$.file) 2>/dev/null; then
12653  if ln -s conf$$.file conf$$ 2>/dev/null; then
12654    as_ln_s='ln -s'
12655    # ... but there are two gotchas:
12656    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12657    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12658    # In both cases, we have to default to `cp -p'.
12659    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12660      as_ln_s='cp -p'
12661  elif ln conf$$.file conf$$ 2>/dev/null; then
12662    as_ln_s=ln
12663  else
12664    as_ln_s='cp -p'
12665  fi
12666else
12667  as_ln_s='cp -p'
12668fi
12669rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12670rmdir conf$$.dir 2>/dev/null
12671
12672
12673# as_fn_mkdir_p
12674# -------------
12675# Create "$as_dir" as a directory, including parents if necessary.
12676as_fn_mkdir_p ()
12677{
12678
12679  case $as_dir in #(
12680  -*) as_dir=./$as_dir;;
12681  esac
12682  test -d "$as_dir" || eval $as_mkdir_p || {
12683    as_dirs=
12684    while :; do
12685      case $as_dir in #(
12686      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12687      *) as_qdir=$as_dir;;
12688      esac
12689      as_dirs="'$as_qdir' $as_dirs"
12690      as_dir=`$as_dirname -- "$as_dir" ||
12691$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12692	 X"$as_dir" : 'X\(//\)[^/]' \| \
12693	 X"$as_dir" : 'X\(//\)$' \| \
12694	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12695$as_echo X"$as_dir" |
12696    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12697	    s//\1/
12698	    q
12699	  }
12700	  /^X\(\/\/\)[^/].*/{
12701	    s//\1/
12702	    q
12703	  }
12704	  /^X\(\/\/\)$/{
12705	    s//\1/
12706	    q
12707	  }
12708	  /^X\(\/\).*/{
12709	    s//\1/
12710	    q
12711	  }
12712	  s/.*/./; q'`
12713      test -d "$as_dir" && break
12714    done
12715    test -z "$as_dirs" || eval "mkdir $as_dirs"
12716  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12717
12718
12719} # as_fn_mkdir_p
12720if mkdir -p . 2>/dev/null; then
12721  as_mkdir_p='mkdir -p "$as_dir"'
12722else
12723  test -d ./-p && rmdir ./-p
12724  as_mkdir_p=false
12725fi
12726
12727if test -x / >/dev/null 2>&1; then
12728  as_test_x='test -x'
12729else
12730  if ls -dL / >/dev/null 2>&1; then
12731    as_ls_L_option=L
12732  else
12733    as_ls_L_option=
12734  fi
12735  as_test_x='
12736    eval sh -c '\''
12737      if test -d "$1"; then
12738	test -d "$1/.";
12739      else
12740	case $1 in #(
12741	-*)set "./$1";;
12742	esac;
12743	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12744	???[sx]*):;;*)false;;esac;fi
12745    '\'' sh
12746  '
12747fi
12748as_executable_p=$as_test_x
12749
12750# Sed expression to map a string onto a valid CPP name.
12751as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12752
12753# Sed expression to map a string onto a valid variable name.
12754as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12755
12756
12757exec 6>&1
12758## ----------------------------------- ##
12759## Main body of $CONFIG_STATUS script. ##
12760## ----------------------------------- ##
12761_ASEOF
12762test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12763
12764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12765# Save the log message, to keep $0 and so on meaningful, and to
12766# report actual input values of CONFIG_FILES etc. instead of their
12767# values after options handling.
12768ac_log="
12769This file was extended by $as_me, which was
12770generated by GNU Autoconf 2.65.  Invocation command line was
12771
12772  CONFIG_FILES    = $CONFIG_FILES
12773  CONFIG_HEADERS  = $CONFIG_HEADERS
12774  CONFIG_LINKS    = $CONFIG_LINKS
12775  CONFIG_COMMANDS = $CONFIG_COMMANDS
12776  $ $0 $@
12777
12778on `(hostname || uname -n) 2>/dev/null | sed 1q`
12779"
12780
12781_ACEOF
12782
12783case $ac_config_files in *"
12784"*) set x $ac_config_files; shift; ac_config_files=$*;;
12785esac
12786
12787case $ac_config_headers in *"
12788"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12789esac
12790
12791
12792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12793# Files that config.status was made for.
12794config_files="$ac_config_files"
12795config_headers="$ac_config_headers"
12796
12797_ACEOF
12798
12799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12800ac_cs_usage="\
12801\`$as_me' instantiates files and other configuration actions
12802from templates according to the current configuration.  Unless the files
12803and actions are specified as TAGs, all are instantiated by default.
12804
12805Usage: $0 [OPTION]... [TAG]...
12806
12807  -h, --help       print this help, then exit
12808  -V, --version    print version number and configuration settings, then exit
12809      --config     print configuration, then exit
12810  -q, --quiet, --silent
12811                   do not print progress messages
12812  -d, --debug      don't remove temporary files
12813      --recheck    update $as_me by reconfiguring in the same conditions
12814      --file=FILE[:TEMPLATE]
12815                   instantiate the configuration file FILE
12816      --header=FILE[:TEMPLATE]
12817                   instantiate the configuration header FILE
12818
12819Configuration files:
12820$config_files
12821
12822Configuration headers:
12823$config_headers
12824
12825Report bugs to the package provider."
12826
12827_ACEOF
12828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12829ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12830ac_cs_version="\\
12831config.status
12832configured by $0, generated by GNU Autoconf 2.65,
12833  with options \\"\$ac_cs_config\\"
12834
12835Copyright (C) 2009 Free Software Foundation, Inc.
12836This config.status script is free software; the Free Software Foundation
12837gives unlimited permission to copy, distribute and modify it."
12838
12839ac_pwd='$ac_pwd'
12840srcdir='$srcdir'
12841AWK='$AWK'
12842test -n "\$AWK" || AWK=awk
12843_ACEOF
12844
12845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12846# The default lists apply if the user does not specify any file.
12847ac_need_defaults=:
12848while test $# != 0
12849do
12850  case $1 in
12851  --*=*)
12852    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12853    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12854    ac_shift=:
12855    ;;
12856  *)
12857    ac_option=$1
12858    ac_optarg=$2
12859    ac_shift=shift
12860    ;;
12861  esac
12862
12863  case $ac_option in
12864  # Handling of the options.
12865  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12866    ac_cs_recheck=: ;;
12867  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12868    $as_echo "$ac_cs_version"; exit ;;
12869  --config | --confi | --conf | --con | --co | --c )
12870    $as_echo "$ac_cs_config"; exit ;;
12871  --debug | --debu | --deb | --de | --d | -d )
12872    debug=: ;;
12873  --file | --fil | --fi | --f )
12874    $ac_shift
12875    case $ac_optarg in
12876    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12877    esac
12878    as_fn_append CONFIG_FILES " '$ac_optarg'"
12879    ac_need_defaults=false;;
12880  --header | --heade | --head | --hea )
12881    $ac_shift
12882    case $ac_optarg in
12883    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12884    esac
12885    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12886    ac_need_defaults=false;;
12887  --he | --h)
12888    # Conflict between --help and --header
12889    as_fn_error "ambiguous option: \`$1'
12890Try \`$0 --help' for more information.";;
12891  --help | --hel | -h )
12892    $as_echo "$ac_cs_usage"; exit ;;
12893  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12894  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12895    ac_cs_silent=: ;;
12896
12897  # This is an error.
12898  -*) as_fn_error "unrecognized option: \`$1'
12899Try \`$0 --help' for more information." ;;
12900
12901  *) as_fn_append ac_config_targets " $1"
12902     ac_need_defaults=false ;;
12903
12904  esac
12905  shift
12906done
12907
12908ac_configure_extra_args=
12909
12910if $ac_cs_silent; then
12911  exec 6>/dev/null
12912  ac_configure_extra_args="$ac_configure_extra_args --silent"
12913fi
12914
12915_ACEOF
12916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12917if \$ac_cs_recheck; then
12918  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12919  shift
12920  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12921  CONFIG_SHELL='$SHELL'
12922  export CONFIG_SHELL
12923  exec "\$@"
12924fi
12925
12926_ACEOF
12927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12928exec 5>>auto/config.log
12929{
12930  echo
12931  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12932## Running $as_me. ##
12933_ASBOX
12934  $as_echo "$ac_log"
12935} >&5
12936
12937_ACEOF
12938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12939_ACEOF
12940
12941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12942
12943# Handling of arguments.
12944for ac_config_target in $ac_config_targets
12945do
12946  case $ac_config_target in
12947    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
12948    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
12949
12950  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12951  esac
12952done
12953
12954
12955# If the user did not use the arguments to specify the items to instantiate,
12956# then the envvar interface is used.  Set only those that are not.
12957# We use the long form for the default assignment because of an extremely
12958# bizarre bug on SunOS 4.1.3.
12959if $ac_need_defaults; then
12960  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12961  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12962fi
12963
12964# Have a temporary directory for convenience.  Make it in the build tree
12965# simply because there is no reason against having it here, and in addition,
12966# creating and moving files from /tmp can sometimes cause problems.
12967# Hook for its removal unless debugging.
12968# Note that there is a small window in which the directory will not be cleaned:
12969# after its creation but before its name has been assigned to `$tmp'.
12970$debug ||
12971{
12972  tmp=
12973  trap 'exit_status=$?
12974  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12975' 0
12976  trap 'as_fn_exit 1' 1 2 13 15
12977}
12978# Create a (secure) tmp directory for tmp files.
12979
12980{
12981  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12982  test -n "$tmp" && test -d "$tmp"
12983}  ||
12984{
12985  tmp=./conf$$-$RANDOM
12986  (umask 077 && mkdir "$tmp")
12987} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12988
12989# Set up the scripts for CONFIG_FILES section.
12990# No need to generate them if there are no CONFIG_FILES.
12991# This happens for instance with `./config.status config.h'.
12992if test -n "$CONFIG_FILES"; then
12993
12994
12995ac_cr=`echo X | tr X '\015'`
12996# On cygwin, bash can eat \r inside `` if the user requested igncr.
12997# But we know of no other shell where ac_cr would be empty at this
12998# point, so we can use a bashism as a fallback.
12999if test "x$ac_cr" = x; then
13000  eval ac_cr=\$\'\\r\'
13001fi
13002ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13003if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13004  ac_cs_awk_cr='\r'
13005else
13006  ac_cs_awk_cr=$ac_cr
13007fi
13008
13009echo 'BEGIN {' >"$tmp/subs1.awk" &&
13010_ACEOF
13011
13012
13013{
13014  echo "cat >conf$$subs.awk <<_ACEOF" &&
13015  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13016  echo "_ACEOF"
13017} >conf$$subs.sh ||
13018  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13019ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13020ac_delim='%!_!# '
13021for ac_last_try in false false false false false :; do
13022  . ./conf$$subs.sh ||
13023    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13024
13025  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13026  if test $ac_delim_n = $ac_delim_num; then
13027    break
13028  elif $ac_last_try; then
13029    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13030  else
13031    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13032  fi
13033done
13034rm -f conf$$subs.sh
13035
13036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13037cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13038_ACEOF
13039sed -n '
13040h
13041s/^/S["/; s/!.*/"]=/
13042p
13043g
13044s/^[^!]*!//
13045:repl
13046t repl
13047s/'"$ac_delim"'$//
13048t delim
13049:nl
13050h
13051s/\(.\{148\}\)..*/\1/
13052t more1
13053s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13054p
13055n
13056b repl
13057:more1
13058s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13059p
13060g
13061s/.\{148\}//
13062t nl
13063:delim
13064h
13065s/\(.\{148\}\)..*/\1/
13066t more2
13067s/["\\]/\\&/g; s/^/"/; s/$/"/
13068p
13069b
13070:more2
13071s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13072p
13073g
13074s/.\{148\}//
13075t delim
13076' <conf$$subs.awk | sed '
13077/^[^""]/{
13078  N
13079  s/\n//
13080}
13081' >>$CONFIG_STATUS || ac_write_fail=1
13082rm -f conf$$subs.awk
13083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13084_ACAWK
13085cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13086  for (key in S) S_is_set[key] = 1
13087  FS = ""
13088
13089}
13090{
13091  line = $ 0
13092  nfields = split(line, field, "@")
13093  substed = 0
13094  len = length(field[1])
13095  for (i = 2; i < nfields; i++) {
13096    key = field[i]
13097    keylen = length(key)
13098    if (S_is_set[key]) {
13099      value = S[key]
13100      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13101      len += length(value) + length(field[++i])
13102      substed = 1
13103    } else
13104      len += 1 + keylen
13105  }
13106
13107  print line
13108}
13109
13110_ACAWK
13111_ACEOF
13112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13113if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13114  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13115else
13116  cat
13117fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13118  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13119_ACEOF
13120
13121# VPATH may cause trouble with some makes, so we remove $(srcdir),
13122# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13123# trailing colons and then remove the whole line if VPATH becomes empty
13124# (actually we leave an empty line to preserve line numbers).
13125if test "x$srcdir" = x.; then
13126  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13127s/:*\$(srcdir):*/:/
13128s/:*\${srcdir}:*/:/
13129s/:*@srcdir@:*/:/
13130s/^\([^=]*=[	 ]*\):*/\1/
13131s/:*$//
13132s/^[^=]*=[	 ]*$//
13133}'
13134fi
13135
13136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13137fi # test -n "$CONFIG_FILES"
13138
13139# Set up the scripts for CONFIG_HEADERS section.
13140# No need to generate them if there are no CONFIG_HEADERS.
13141# This happens for instance with `./config.status Makefile'.
13142if test -n "$CONFIG_HEADERS"; then
13143cat >"$tmp/defines.awk" <<\_ACAWK ||
13144BEGIN {
13145_ACEOF
13146
13147# Transform confdefs.h into an awk script `defines.awk', embedded as
13148# here-document in config.status, that substitutes the proper values into
13149# config.h.in to produce config.h.
13150
13151# Create a delimiter string that does not exist in confdefs.h, to ease
13152# handling of long lines.
13153ac_delim='%!_!# '
13154for ac_last_try in false false :; do
13155  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13156  if test -z "$ac_t"; then
13157    break
13158  elif $ac_last_try; then
13159    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13160  else
13161    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13162  fi
13163done
13164
13165# For the awk script, D is an array of macro values keyed by name,
13166# likewise P contains macro parameters if any.  Preserve backslash
13167# newline sequences.
13168
13169ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13170sed -n '
13171s/.\{148\}/&'"$ac_delim"'/g
13172t rset
13173:rset
13174s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13175t def
13176d
13177:def
13178s/\\$//
13179t bsnl
13180s/["\\]/\\&/g
13181s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13182D["\1"]=" \3"/p
13183s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13184d
13185:bsnl
13186s/["\\]/\\&/g
13187s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13188D["\1"]=" \3\\\\\\n"\\/p
13189t cont
13190s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13191t cont
13192d
13193:cont
13194n
13195s/.\{148\}/&'"$ac_delim"'/g
13196t clear
13197:clear
13198s/\\$//
13199t bsnlc
13200s/["\\]/\\&/g; s/^/"/; s/$/"/p
13201d
13202:bsnlc
13203s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13204b cont
13205' <confdefs.h | sed '
13206s/'"$ac_delim"'/"\\\
13207"/g' >>$CONFIG_STATUS || ac_write_fail=1
13208
13209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13210  for (key in D) D_is_set[key] = 1
13211  FS = ""
13212}
13213/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13214  line = \$ 0
13215  split(line, arg, " ")
13216  if (arg[1] == "#") {
13217    defundef = arg[2]
13218    mac1 = arg[3]
13219  } else {
13220    defundef = substr(arg[1], 2)
13221    mac1 = arg[2]
13222  }
13223  split(mac1, mac2, "(") #)
13224  macro = mac2[1]
13225  prefix = substr(line, 1, index(line, defundef) - 1)
13226  if (D_is_set[macro]) {
13227    # Preserve the white space surrounding the "#".
13228    print prefix "define", macro P[macro] D[macro]
13229    next
13230  } else {
13231    # Replace #undef with comments.  This is necessary, for example,
13232    # in the case of _POSIX_SOURCE, which is predefined and required
13233    # on some systems where configure will not decide to define it.
13234    if (defundef == "undef") {
13235      print "/*", prefix defundef, macro, "*/"
13236      next
13237    }
13238  }
13239}
13240{ print }
13241_ACAWK
13242_ACEOF
13243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13244  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13245fi # test -n "$CONFIG_HEADERS"
13246
13247
13248eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
13249shift
13250for ac_tag
13251do
13252  case $ac_tag in
13253  :[FHLC]) ac_mode=$ac_tag; continue;;
13254  esac
13255  case $ac_mode$ac_tag in
13256  :[FHL]*:*);;
13257  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13258  :[FH]-) ac_tag=-:-;;
13259  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13260  esac
13261  ac_save_IFS=$IFS
13262  IFS=:
13263  set x $ac_tag
13264  IFS=$ac_save_IFS
13265  shift
13266  ac_file=$1
13267  shift
13268
13269  case $ac_mode in
13270  :L) ac_source=$1;;
13271  :[FH])
13272    ac_file_inputs=
13273    for ac_f
13274    do
13275      case $ac_f in
13276      -) ac_f="$tmp/stdin";;
13277      *) # Look for the file first in the build tree, then in the source tree
13278	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13279	 # because $ac_f cannot contain `:'.
13280	 test -f "$ac_f" ||
13281	   case $ac_f in
13282	   [\\/$]*) false;;
13283	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13284	   esac ||
13285	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13286      esac
13287      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13288      as_fn_append ac_file_inputs " '$ac_f'"
13289    done
13290
13291    # Let's still pretend it is `configure' which instantiates (i.e., don't
13292    # use $as_me), people would be surprised to read:
13293    #    /* config.h.  Generated by config.status.  */
13294    configure_input='Generated from '`
13295	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13296	`' by configure.'
13297    if test x"$ac_file" != x-; then
13298      configure_input="$ac_file.  $configure_input"
13299      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13300$as_echo "$as_me: creating $ac_file" >&6;}
13301    fi
13302    # Neutralize special characters interpreted by sed in replacement strings.
13303    case $configure_input in #(
13304    *\&* | *\|* | *\\* )
13305       ac_sed_conf_input=`$as_echo "$configure_input" |
13306       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13307    *) ac_sed_conf_input=$configure_input;;
13308    esac
13309
13310    case $ac_tag in
13311    *:-:* | *:-) cat >"$tmp/stdin" \
13312      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13313    esac
13314    ;;
13315  esac
13316
13317  ac_dir=`$as_dirname -- "$ac_file" ||
13318$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13319	 X"$ac_file" : 'X\(//\)[^/]' \| \
13320	 X"$ac_file" : 'X\(//\)$' \| \
13321	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13322$as_echo X"$ac_file" |
13323    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13324	    s//\1/
13325	    q
13326	  }
13327	  /^X\(\/\/\)[^/].*/{
13328	    s//\1/
13329	    q
13330	  }
13331	  /^X\(\/\/\)$/{
13332	    s//\1/
13333	    q
13334	  }
13335	  /^X\(\/\).*/{
13336	    s//\1/
13337	    q
13338	  }
13339	  s/.*/./; q'`
13340  as_dir="$ac_dir"; as_fn_mkdir_p
13341  ac_builddir=.
13342
13343case "$ac_dir" in
13344.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13345*)
13346  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13347  # A ".." for each directory in $ac_dir_suffix.
13348  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13349  case $ac_top_builddir_sub in
13350  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13351  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13352  esac ;;
13353esac
13354ac_abs_top_builddir=$ac_pwd
13355ac_abs_builddir=$ac_pwd$ac_dir_suffix
13356# for backward compatibility:
13357ac_top_builddir=$ac_top_build_prefix
13358
13359case $srcdir in
13360  .)  # We are building in place.
13361    ac_srcdir=.
13362    ac_top_srcdir=$ac_top_builddir_sub
13363    ac_abs_top_srcdir=$ac_pwd ;;
13364  [\\/]* | ?:[\\/]* )  # Absolute name.
13365    ac_srcdir=$srcdir$ac_dir_suffix;
13366    ac_top_srcdir=$srcdir
13367    ac_abs_top_srcdir=$srcdir ;;
13368  *) # Relative name.
13369    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13370    ac_top_srcdir=$ac_top_build_prefix$srcdir
13371    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13372esac
13373ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13374
13375
13376  case $ac_mode in
13377  :F)
13378  #
13379  # CONFIG_FILE
13380  #
13381
13382_ACEOF
13383
13384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13385# If the template does not know about datarootdir, expand it.
13386# FIXME: This hack should be removed a few years after 2.60.
13387ac_datarootdir_hack=; ac_datarootdir_seen=
13388ac_sed_dataroot='
13389/datarootdir/ {
13390  p
13391  q
13392}
13393/@datadir@/p
13394/@docdir@/p
13395/@infodir@/p
13396/@localedir@/p
13397/@mandir@/p'
13398case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13399*datarootdir*) ac_datarootdir_seen=yes;;
13400*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13401  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13402$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13403_ACEOF
13404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13405  ac_datarootdir_hack='
13406  s&@datadir@&$datadir&g
13407  s&@docdir@&$docdir&g
13408  s&@infodir@&$infodir&g
13409  s&@localedir@&$localedir&g
13410  s&@mandir@&$mandir&g
13411  s&\\\${datarootdir}&$datarootdir&g' ;;
13412esac
13413_ACEOF
13414
13415# Neutralize VPATH when `$srcdir' = `.'.
13416# Shell code in configure.ac might set extrasub.
13417# FIXME: do we really want to maintain this feature?
13418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13419ac_sed_extra="$ac_vpsub
13420$extrasub
13421_ACEOF
13422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13423:t
13424/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13425s|@configure_input@|$ac_sed_conf_input|;t t
13426s&@top_builddir@&$ac_top_builddir_sub&;t t
13427s&@top_build_prefix@&$ac_top_build_prefix&;t t
13428s&@srcdir@&$ac_srcdir&;t t
13429s&@abs_srcdir@&$ac_abs_srcdir&;t t
13430s&@top_srcdir@&$ac_top_srcdir&;t t
13431s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13432s&@builddir@&$ac_builddir&;t t
13433s&@abs_builddir@&$ac_abs_builddir&;t t
13434s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13435$ac_datarootdir_hack
13436"
13437eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13438  || as_fn_error "could not create $ac_file" "$LINENO" 5
13439
13440test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13441  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13442  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13443  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13444which seems to be undefined.  Please make sure it is defined." >&5
13445$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13446which seems to be undefined.  Please make sure it is defined." >&2;}
13447
13448  rm -f "$tmp/stdin"
13449  case $ac_file in
13450  -) cat "$tmp/out" && rm -f "$tmp/out";;
13451  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13452  esac \
13453  || as_fn_error "could not create $ac_file" "$LINENO" 5
13454 ;;
13455  :H)
13456  #
13457  # CONFIG_HEADER
13458  #
13459  if test x"$ac_file" != x-; then
13460    {
13461      $as_echo "/* $configure_input  */" \
13462      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13463    } >"$tmp/config.h" \
13464      || as_fn_error "could not create $ac_file" "$LINENO" 5
13465    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13466      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13467$as_echo "$as_me: $ac_file is unchanged" >&6;}
13468    else
13469      rm -f "$ac_file"
13470      mv "$tmp/config.h" "$ac_file" \
13471	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13472    fi
13473  else
13474    $as_echo "/* $configure_input  */" \
13475      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13476      || as_fn_error "could not create -" "$LINENO" 5
13477  fi
13478 ;;
13479
13480
13481  esac
13482
13483done # for ac_tag
13484
13485
13486as_fn_exit 0
13487_ACEOF
13488ac_clean_files=$ac_clean_files_save
13489
13490test $ac_write_fail = 0 ||
13491  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13492
13493
13494# configure is writing to config.log, and then calls config.status.
13495# config.status does its own redirection, appending to config.log.
13496# Unfortunately, on DOS this fails, as config.log is still kept open
13497# by configure, so config.status won't be able to write to it; its
13498# output is simply discarded.  So we exec the FD to /dev/null,
13499# effectively closing config.log, so it can be properly (re)opened and
13500# appended to by config.status.  When coming back to configure, we
13501# need to make the FD available again.
13502if test "$no_create" != yes; then
13503  ac_cs_success=:
13504  ac_config_status_args=
13505  test "$silent" = yes &&
13506    ac_config_status_args="$ac_config_status_args --quiet"
13507  exec 5>/dev/null
13508  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13509  exec 5>>auto/config.log
13510  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13511  # would make configure fail if this is the last instruction.
13512  $ac_cs_success || as_fn_exit $?
13513fi
13514if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13515  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13516$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13517fi
13518
13519
13520