xref: /vim-8.2.3635/src/auto/configure (revision 6be7f873)
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
596LINK_AS_NEEDED
597DEPEND_CFLAGS_FILTER
598MAKEMO
599MSGFMT
600INSTALL_TOOL_LANGS
601INSTALL_LANGS
602TAGPRG
603HANGULIN_OBJ
604HANGULIN_SRC
605GUI_X_LIBS
606GUITYPE
607GUI_LIB_LOC
608GUI_INC_LOC
609NARROW_PROTO
610MOTIF_LIBNAME
611GNOME_INCLUDEDIR
612GNOME_LIBDIR
613GNOME_LIBS
614GTK_LIBNAME
615GTK_LIBS
616GTK_CFLAGS
617PKG_CONFIG
618X_LIB
619X_EXTRA_LIBS
620X_LIBS
621X_PRE_LIBS
622X_CFLAGS
623XMKMF
624xmkmfpath
625SNIFF_OBJ
626SNIFF_SRC
627NETBEANS_OBJ
628NETBEANS_SRC
629WORKSHOP_OBJ
630WORKSHOP_SRC
631RUBY_LIBS
632RUBY_CFLAGS
633RUBY_PRO
634RUBY_OBJ
635RUBY_SRC
636vi_cv_path_ruby
637TCL_LIBS
638TCL_CFLAGS
639TCL_PRO
640TCL_OBJ
641TCL_SRC
642vi_cv_path_tcl
643PYTHON3_OBJ
644PYTHON3_SRC
645PYTHON3_CFLAGS
646PYTHON3_LIBS
647PYTHON3_CONFDIR
648vi_cv_path_python3
649PYTHON_OBJ
650PYTHON_SRC
651PYTHON_CFLAGS
652PYTHON_GETPATH_CFLAGS
653PYTHON_LIBS
654PYTHON_CONFDIR
655vi_cv_path_python
656PERL_LIBS
657PERL_CFLAGS
658PERL_PRO
659PERL_OBJ
660PERL_SRC
661shrpenv
662vi_cv_perllib
663vi_cv_path_perl
664MZSCHEME_MZC
665MZSCHEME_EXTRA
666MZSCHEME_CFLAGS
667MZSCHEME_LIBS
668MZSCHEME_PRO
669MZSCHEME_OBJ
670MZSCHEME_SRC
671vi_cv_path_mzscheme
672LUA_CFLAGS
673LUA_LIBS
674LUA_PRO
675LUA_OBJ
676LUA_SRC
677vi_cv_path_lua
678compiledby
679dogvimdiff
680dovimdiff
681QUOTESED
682line_break
683VIEWNAME
684EXNAME
685VIMNAME
686OS_EXTRA_OBJ
687OS_EXTRA_SRC
688XCODE_SELECT
689CPP_MM
690STRIP
691AWK
692EGREP
693GREP
694CPP
695OBJEXT
696EXEEXT
697ac_ct_CC
698CPPFLAGS
699LDFLAGS
700CFLAGS
701CC
702SET_MAKE
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
740SHELL'
741ac_subst_files=''
742ac_user_opts='
743enable_option_checking
744enable_fail_if_missing
745enable_darwin
746with_mac_arch
747with_developer_dir
748with_local_dir
749with_vim_name
750with_ex_name
751with_view_name
752with_global_runtime
753with_modified_by
754enable_selinux
755with_features
756with_compiledby
757enable_xsmp
758enable_xsmp_interact
759enable_luainterp
760with_lua_prefix
761enable_mzschemeinterp
762with_plthome
763enable_perlinterp
764enable_pythoninterp
765with_python_config_dir
766enable_python3interp
767with_python3_config_dir
768enable_tclinterp
769with_tclsh
770enable_rubyinterp
771with_ruby_command
772enable_cscope
773enable_workshop
774enable_netbeans
775enable_sniff
776enable_multibyte
777enable_hangulinput
778enable_xim
779enable_fontset
780with_x
781enable_gui
782enable_gtk2_check
783enable_gnome_check
784enable_motif_check
785enable_athena_check
786enable_nextaw_check
787enable_carbon_check
788enable_gtktest
789with_gnome_includes
790with_gnome_libs
791with_gnome
792with_motif_lib
793with_tlib
794enable_largefile
795enable_acl
796enable_gpm
797enable_sysmouse
798enable_nls
799'
800      ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CPP
809XMKMF'
810
811
812# Initialize some variables set by options.
813ac_init_help=
814ac_init_version=false
815ac_unrecognized_opts=
816ac_unrecognized_sep=
817# The variables have the same names as the options, with
818# dashes changed to underlines.
819cache_file=/dev/null
820exec_prefix=NONE
821no_create=
822no_recursion=
823prefix=NONE
824program_prefix=NONE
825program_suffix=NONE
826program_transform_name=s,x,x,
827silent=
828site=
829srcdir=
830verbose=
831x_includes=NONE
832x_libraries=NONE
833
834# Installation directory options.
835# These are left unexpanded so users can "make install exec_prefix=/foo"
836# and all the variables that are supposed to be based on exec_prefix
837# by default will actually change.
838# Use braces instead of parens because sh, perl, etc. also accept them.
839# (The list follows the same order as the GNU Coding Standards.)
840bindir='${exec_prefix}/bin'
841sbindir='${exec_prefix}/sbin'
842libexecdir='${exec_prefix}/libexec'
843datarootdir='${prefix}/share'
844datadir='${datarootdir}'
845sysconfdir='${prefix}/etc'
846sharedstatedir='${prefix}/com'
847localstatedir='${prefix}/var'
848includedir='${prefix}/include'
849oldincludedir='/usr/include'
850docdir='${datarootdir}/doc/${PACKAGE}'
851infodir='${datarootdir}/info'
852htmldir='${docdir}'
853dvidir='${docdir}'
854pdfdir='${docdir}'
855psdir='${docdir}'
856libdir='${exec_prefix}/lib'
857localedir='${datarootdir}/locale'
858mandir='${datarootdir}/man'
859
860ac_prev=
861ac_dashdash=
862for ac_option
863do
864  # If the previous option needs an argument, assign it.
865  if test -n "$ac_prev"; then
866    eval $ac_prev=\$ac_option
867    ac_prev=
868    continue
869  fi
870
871  case $ac_option in
872  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873  *)	ac_optarg=yes ;;
874  esac
875
876  # Accept the important Cygnus configure options, so we can diagnose typos.
877
878  case $ac_dashdash$ac_option in
879  --)
880    ac_dashdash=yes ;;
881
882  -bindir | --bindir | --bindi | --bind | --bin | --bi)
883    ac_prev=bindir ;;
884  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885    bindir=$ac_optarg ;;
886
887  -build | --build | --buil | --bui | --bu)
888    ac_prev=build_alias ;;
889  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890    build_alias=$ac_optarg ;;
891
892  -cache-file | --cache-file | --cache-fil | --cache-fi \
893  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894    ac_prev=cache_file ;;
895  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897    cache_file=$ac_optarg ;;
898
899  --config-cache | -C)
900    cache_file=config.cache ;;
901
902  -datadir | --datadir | --datadi | --datad)
903    ac_prev=datadir ;;
904  -datadir=* | --datadir=* | --datadi=* | --datad=*)
905    datadir=$ac_optarg ;;
906
907  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908  | --dataroo | --dataro | --datar)
909    ac_prev=datarootdir ;;
910  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912    datarootdir=$ac_optarg ;;
913
914  -disable-* | --disable-*)
915    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916    # Reject names that are not valid shell variable names.
917    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918      as_fn_error "invalid feature name: $ac_useropt"
919    ac_useropt_orig=$ac_useropt
920    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921    case $ac_user_opts in
922      *"
923"enable_$ac_useropt"
924"*) ;;
925      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926	 ac_unrecognized_sep=', ';;
927    esac
928    eval enable_$ac_useropt=no ;;
929
930  -docdir | --docdir | --docdi | --doc | --do)
931    ac_prev=docdir ;;
932  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933    docdir=$ac_optarg ;;
934
935  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936    ac_prev=dvidir ;;
937  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938    dvidir=$ac_optarg ;;
939
940  -enable-* | --enable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      as_fn_error "invalid feature name: $ac_useropt"
945    ac_useropt_orig=$ac_useropt
946    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947    case $ac_user_opts in
948      *"
949"enable_$ac_useropt"
950"*) ;;
951      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952	 ac_unrecognized_sep=', ';;
953    esac
954    eval enable_$ac_useropt=\$ac_optarg ;;
955
956  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958  | --exec | --exe | --ex)
959    ac_prev=exec_prefix ;;
960  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962  | --exec=* | --exe=* | --ex=*)
963    exec_prefix=$ac_optarg ;;
964
965  -gas | --gas | --ga | --g)
966    # Obsolete; use --with-gas.
967    with_gas=yes ;;
968
969  -help | --help | --hel | --he | -h)
970    ac_init_help=long ;;
971  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972    ac_init_help=recursive ;;
973  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974    ac_init_help=short ;;
975
976  -host | --host | --hos | --ho)
977    ac_prev=host_alias ;;
978  -host=* | --host=* | --hos=* | --ho=*)
979    host_alias=$ac_optarg ;;
980
981  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982    ac_prev=htmldir ;;
983  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984  | --ht=*)
985    htmldir=$ac_optarg ;;
986
987  -includedir | --includedir | --includedi | --included | --include \
988  | --includ | --inclu | --incl | --inc)
989    ac_prev=includedir ;;
990  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991  | --includ=* | --inclu=* | --incl=* | --inc=*)
992    includedir=$ac_optarg ;;
993
994  -infodir | --infodir | --infodi | --infod | --info | --inf)
995    ac_prev=infodir ;;
996  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997    infodir=$ac_optarg ;;
998
999  -libdir | --libdir | --libdi | --libd)
1000    ac_prev=libdir ;;
1001  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002    libdir=$ac_optarg ;;
1003
1004  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005  | --libexe | --libex | --libe)
1006    ac_prev=libexecdir ;;
1007  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008  | --libexe=* | --libex=* | --libe=*)
1009    libexecdir=$ac_optarg ;;
1010
1011  -localedir | --localedir | --localedi | --localed | --locale)
1012    ac_prev=localedir ;;
1013  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014    localedir=$ac_optarg ;;
1015
1016  -localstatedir | --localstatedir | --localstatedi | --localstated \
1017  | --localstate | --localstat | --localsta | --localst | --locals)
1018    ac_prev=localstatedir ;;
1019  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021    localstatedir=$ac_optarg ;;
1022
1023  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024    ac_prev=mandir ;;
1025  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026    mandir=$ac_optarg ;;
1027
1028  -nfp | --nfp | --nf)
1029    # Obsolete; use --without-fp.
1030    with_fp=no ;;
1031
1032  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033  | --no-cr | --no-c | -n)
1034    no_create=yes ;;
1035
1036  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038    no_recursion=yes ;;
1039
1040  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042  | --oldin | --oldi | --old | --ol | --o)
1043    ac_prev=oldincludedir ;;
1044  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047    oldincludedir=$ac_optarg ;;
1048
1049  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050    ac_prev=prefix ;;
1051  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052    prefix=$ac_optarg ;;
1053
1054  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055  | --program-pre | --program-pr | --program-p)
1056    ac_prev=program_prefix ;;
1057  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059    program_prefix=$ac_optarg ;;
1060
1061  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062  | --program-suf | --program-su | --program-s)
1063    ac_prev=program_suffix ;;
1064  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066    program_suffix=$ac_optarg ;;
1067
1068  -program-transform-name | --program-transform-name \
1069  | --program-transform-nam | --program-transform-na \
1070  | --program-transform-n | --program-transform- \
1071  | --program-transform | --program-transfor \
1072  | --program-transfo | --program-transf \
1073  | --program-trans | --program-tran \
1074  | --progr-tra | --program-tr | --program-t)
1075    ac_prev=program_transform_name ;;
1076  -program-transform-name=* | --program-transform-name=* \
1077  | --program-transform-nam=* | --program-transform-na=* \
1078  | --program-transform-n=* | --program-transform-=* \
1079  | --program-transform=* | --program-transfor=* \
1080  | --program-transfo=* | --program-transf=* \
1081  | --program-trans=* | --program-tran=* \
1082  | --progr-tra=* | --program-tr=* | --program-t=*)
1083    program_transform_name=$ac_optarg ;;
1084
1085  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086    ac_prev=pdfdir ;;
1087  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088    pdfdir=$ac_optarg ;;
1089
1090  -psdir | --psdir | --psdi | --psd | --ps)
1091    ac_prev=psdir ;;
1092  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093    psdir=$ac_optarg ;;
1094
1095  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096  | -silent | --silent | --silen | --sile | --sil)
1097    silent=yes ;;
1098
1099  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100    ac_prev=sbindir ;;
1101  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102  | --sbi=* | --sb=*)
1103    sbindir=$ac_optarg ;;
1104
1105  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107  | --sharedst | --shareds | --shared | --share | --shar \
1108  | --sha | --sh)
1109    ac_prev=sharedstatedir ;;
1110  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113  | --sha=* | --sh=*)
1114    sharedstatedir=$ac_optarg ;;
1115
1116  -site | --site | --sit)
1117    ac_prev=site ;;
1118  -site=* | --site=* | --sit=*)
1119    site=$ac_optarg ;;
1120
1121  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122    ac_prev=srcdir ;;
1123  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124    srcdir=$ac_optarg ;;
1125
1126  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127  | --syscon | --sysco | --sysc | --sys | --sy)
1128    ac_prev=sysconfdir ;;
1129  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131    sysconfdir=$ac_optarg ;;
1132
1133  -target | --target | --targe | --targ | --tar | --ta | --t)
1134    ac_prev=target_alias ;;
1135  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136    target_alias=$ac_optarg ;;
1137
1138  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139    verbose=yes ;;
1140
1141  -version | --version | --versio | --versi | --vers | -V)
1142    ac_init_version=: ;;
1143
1144  -with-* | --with-*)
1145    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148      as_fn_error "invalid package name: $ac_useropt"
1149    ac_useropt_orig=$ac_useropt
1150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151    case $ac_user_opts in
1152      *"
1153"with_$ac_useropt"
1154"*) ;;
1155      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156	 ac_unrecognized_sep=', ';;
1157    esac
1158    eval with_$ac_useropt=\$ac_optarg ;;
1159
1160  -without-* | --without-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      as_fn_error "invalid package name: $ac_useropt"
1165    ac_useropt_orig=$ac_useropt
1166    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167    case $ac_user_opts in
1168      *"
1169"with_$ac_useropt"
1170"*) ;;
1171      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172	 ac_unrecognized_sep=', ';;
1173    esac
1174    eval with_$ac_useropt=no ;;
1175
1176  --x)
1177    # Obsolete; use --with-x.
1178    with_x=yes ;;
1179
1180  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181  | --x-incl | --x-inc | --x-in | --x-i)
1182    ac_prev=x_includes ;;
1183  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185    x_includes=$ac_optarg ;;
1186
1187  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189    ac_prev=x_libraries ;;
1190  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192    x_libraries=$ac_optarg ;;
1193
1194  -*) as_fn_error "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information."
1196    ;;
1197
1198  *=*)
1199    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200    # Reject names that are not valid shell variable names.
1201    case $ac_envvar in #(
1202      '' | [0-9]* | *[!_$as_cr_alnum]* )
1203      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204    esac
1205    eval $ac_envvar=\$ac_optarg
1206    export $ac_envvar ;;
1207
1208  *)
1209    # FIXME: should be removed in autoconf 3.0.
1210    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1214    ;;
1215
1216  esac
1217done
1218
1219if test -n "$ac_prev"; then
1220  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221  as_fn_error "missing argument to $ac_option"
1222fi
1223
1224if test -n "$ac_unrecognized_opts"; then
1225  case $enable_option_checking in
1226    no) ;;
1227    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1228    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229  esac
1230fi
1231
1232# Check all directory arguments for consistency.
1233for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234		datadir sysconfdir sharedstatedir localstatedir includedir \
1235		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236		libdir localedir mandir
1237do
1238  eval ac_val=\$$ac_var
1239  # Remove trailing slashes.
1240  case $ac_val in
1241    */ )
1242      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243      eval $ac_var=\$ac_val;;
1244  esac
1245  # Be sure to have absolute directory names.
1246  case $ac_val in
1247    [\\/$]* | ?:[\\/]* )  continue;;
1248    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249  esac
1250  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1251done
1252
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262  if test "x$build_alias" = x; then
1263    cross_compiling=maybe
1264    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265    If a cross compiler is detected then cross compile mode will be used." >&2
1266  elif test "x$build_alias" != "x$host_alias"; then
1267    cross_compiling=yes
1268  fi
1269fi
1270
1271ac_tool_prefix=
1272test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274test "$silent" = yes && exec 6>/dev/null
1275
1276
1277ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278ac_ls_di=`ls -di .` &&
1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280  as_fn_error "working directory cannot be determined"
1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282  as_fn_error "pwd does not report name of working directory"
1283
1284
1285# Find the source files, if location was not specified.
1286if test -z "$srcdir"; then
1287  ac_srcdir_defaulted=yes
1288  # Try the directory containing this script, then the parent directory.
1289  ac_confdir=`$as_dirname -- "$as_myself" ||
1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291	 X"$as_myself" : 'X\(//\)[^/]' \| \
1292	 X"$as_myself" : 'X\(//\)$' \| \
1293	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294$as_echo X"$as_myself" |
1295    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)[^/].*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\).*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  s/.*/./; q'`
1312  srcdir=$ac_confdir
1313  if test ! -r "$srcdir/$ac_unique_file"; then
1314    srcdir=..
1315  fi
1316else
1317  ac_srcdir_defaulted=no
1318fi
1319if test ! -r "$srcdir/$ac_unique_file"; then
1320  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1322fi
1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324ac_abs_confdir=`(
1325	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1326	pwd)`
1327# When building in place, set srcdir=.
1328if test "$ac_abs_confdir" = "$ac_pwd"; then
1329  srcdir=.
1330fi
1331# Remove unnecessary trailing slashes from srcdir.
1332# Double slashes in file names in object file debugging info
1333# mess up M-x gdb in Emacs.
1334case $srcdir in
1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336esac
1337for ac_var in $ac_precious_vars; do
1338  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339  eval ac_env_${ac_var}_value=\$${ac_var}
1340  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342done
1343
1344#
1345# Report the --help message.
1346#
1347if test "$ac_init_help" = "long"; then
1348  # Omit some internal or obsolete options to make the list less imposing.
1349  # This message is too long to be a string in the A/UX 3.1 sh.
1350  cat <<_ACEOF
1351\`configure' configures this package to adapt to many kinds of systems.
1352
1353Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356VAR=VALUE.  See below for descriptions of some of the useful variables.
1357
1358Defaults for the options are specified in brackets.
1359
1360Configuration:
1361  -h, --help              display this help and exit
1362      --help=short        display options specific to this package
1363      --help=recursive    display the short help of all the included packages
1364  -V, --version           display version information and exit
1365  -q, --quiet, --silent   do not print \`checking...' messages
1366      --cache-file=FILE   cache test results in FILE [disabled]
1367  -C, --config-cache      alias for \`--cache-file=config.cache'
1368  -n, --no-create         do not create output files
1369      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1370
1371Installation directories:
1372  --prefix=PREFIX         install architecture-independent files in PREFIX
1373                          [$ac_default_prefix]
1374  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1375                          [PREFIX]
1376
1377By default, \`make install' will install all the files in
1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1379an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380for instance \`--prefix=\$HOME'.
1381
1382For better control, use the options below.
1383
1384Fine tuning of the installation directories:
1385  --bindir=DIR            user executables [EPREFIX/bin]
1386  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1387  --libexecdir=DIR        program executables [EPREFIX/libexec]
1388  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1389  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1390  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1391  --libdir=DIR            object code libraries [EPREFIX/lib]
1392  --includedir=DIR        C header files [PREFIX/include]
1393  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1394  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1395  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1396  --infodir=DIR           info documentation [DATAROOTDIR/info]
1397  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1398  --mandir=DIR            man documentation [DATAROOTDIR/man]
1399  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1400  --htmldir=DIR           html documentation [DOCDIR]
1401  --dvidir=DIR            dvi documentation [DOCDIR]
1402  --pdfdir=DIR            pdf documentation [DOCDIR]
1403  --psdir=DIR             ps documentation [DOCDIR]
1404_ACEOF
1405
1406  cat <<\_ACEOF
1407
1408X features:
1409  --x-includes=DIR    X include files are in DIR
1410  --x-libraries=DIR   X library files are in DIR
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415
1416  cat <<\_ACEOF
1417
1418Optional Features:
1419  --disable-option-checking  ignore unrecognized --enable/--with options
1420  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422  --enable-fail-if-missing    Fail if dependencies on additional features
1423     specified on the command line are missing.
1424  --disable-darwin        Disable Darwin (Mac OS X) support.
1425  --disable-selinux	  Don't check for SELinux support.
1426  --disable-xsmp          Disable XSMP session management
1427  --disable-xsmp-interact Disable XSMP interaction
1428  --enable-luainterp=OPTS     Include Lua interpreter.  default=no OPTS=no/yes/dynamic
1429  --enable-mzschemeinterp   Include MzScheme interpreter.
1430  --enable-perlinterp=OPTS     Include Perl interpreter.  default=no OPTS=no/yes/dynamic
1431  --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
1432  --enable-python3interp=OPTS   Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1433  --enable-tclinterp      Include Tcl interpreter.
1434  --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
1435  --enable-cscope         Include cscope interface.
1436  --enable-workshop       Include Sun Visual Workshop support.
1437  --disable-netbeans      Disable NetBeans integration support.
1438  --enable-sniff          Include Sniff interface.
1439  --enable-multibyte      Include multibyte editing support.
1440  --enable-hangulinput    Include Hangul input support.
1441  --enable-xim            Include XIM input support.
1442  --enable-fontset        Include X fontset output support.
1443  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon
1444  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1445  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1446  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1447  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1448  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1449  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1450  --disable-gtktest       Do not try to compile and run a test GTK program
1451  --disable-largefile     omit support for large files
1452  --disable-acl           Don't check for ACL support.
1453  --disable-gpm           Don't use gpm (Linux mouse daemon).
1454  --disable-sysmouse    Don't use sysmouse (mouse in *BSD console).
1455  --disable-nls           Don't support NLS (gettext()).
1456
1457Optional Packages:
1458  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460  --with-mac-arch=ARCH    current, intel, ppc or both
1461  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1462  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1463  --without-local-dir     do not search /usr/local for local libraries.
1464  --with-vim-name=NAME    what to call the Vim executable
1465  --with-ex-name=NAME     what to call the Ex executable
1466  --with-view-name=NAME   what to call the View executable
1467  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1468  --with-modified-by=NAME       name of who modified a release version
1469  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
1470  --with-compiledby=NAME  name to show in :version message
1471  --with-lua-prefix=PFX   Prefix where Lua is installed.
1472  --with-plthome=PLTHOME   Use PLTHOME.
1473  --with-python-config-dir=PATH  Python's config directory
1474  --with-python3-config-dir=PATH  Python's config directory
1475  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1476  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1477  --with-x                use the X Window System
1478  --with-gnome-includes=DIR Specify location of GNOME headers
1479  --with-gnome-libs=DIR   Specify location of GNOME libs
1480  --with-gnome            Specify prefix for GNOME files
1481  --with-motif-lib=STRING   Library for Motif
1482  --with-tlib=library     terminal library to be used
1483
1484Some influential environment variables:
1485  CC          C compiler command
1486  CFLAGS      C compiler flags
1487  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488              nonstandard directory <lib dir>
1489  LIBS        libraries to pass to the linker, e.g. -l<library>
1490  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491              you have headers in a nonstandard directory <include dir>
1492  CPP         C preprocessor
1493  XMKMF       Path to xmkmf, Makefile generator for X Window System
1494
1495Use these variables to override the choices made by `configure' or to help
1496it to find libraries and programs with nonstandard names/locations.
1497
1498Report bugs to the package provider.
1499_ACEOF
1500ac_status=$?
1501fi
1502
1503if test "$ac_init_help" = "recursive"; then
1504  # If there are subdirs, report their specific --help.
1505  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506    test -d "$ac_dir" ||
1507      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508      continue
1509    ac_builddir=.
1510
1511case "$ac_dir" in
1512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513*)
1514  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515  # A ".." for each directory in $ac_dir_suffix.
1516  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517  case $ac_top_builddir_sub in
1518  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520  esac ;;
1521esac
1522ac_abs_top_builddir=$ac_pwd
1523ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524# for backward compatibility:
1525ac_top_builddir=$ac_top_build_prefix
1526
1527case $srcdir in
1528  .)  # We are building in place.
1529    ac_srcdir=.
1530    ac_top_srcdir=$ac_top_builddir_sub
1531    ac_abs_top_srcdir=$ac_pwd ;;
1532  [\\/]* | ?:[\\/]* )  # Absolute name.
1533    ac_srcdir=$srcdir$ac_dir_suffix;
1534    ac_top_srcdir=$srcdir
1535    ac_abs_top_srcdir=$srcdir ;;
1536  *) # Relative name.
1537    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538    ac_top_srcdir=$ac_top_build_prefix$srcdir
1539    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540esac
1541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543    cd "$ac_dir" || { ac_status=$?; continue; }
1544    # Check for guested configure.
1545    if test -f "$ac_srcdir/configure.gnu"; then
1546      echo &&
1547      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548    elif test -f "$ac_srcdir/configure"; then
1549      echo &&
1550      $SHELL "$ac_srcdir/configure" --help=recursive
1551    else
1552      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553    fi || ac_status=$?
1554    cd "$ac_pwd" || { ac_status=$?; break; }
1555  done
1556fi
1557
1558test -n "$ac_init_help" && exit $ac_status
1559if $ac_init_version; then
1560  cat <<\_ACEOF
1561configure
1562generated by GNU Autoconf 2.65
1563
1564Copyright (C) 2009 Free Software Foundation, Inc.
1565This configure script is free software; the Free Software Foundation
1566gives unlimited permission to copy, distribute and modify it.
1567_ACEOF
1568  exit
1569fi
1570
1571## ------------------------ ##
1572## Autoconf initialization. ##
1573## ------------------------ ##
1574
1575# ac_fn_c_try_compile LINENO
1576# --------------------------
1577# Try to compile conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_c_try_compile ()
1579{
1580  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581  rm -f conftest.$ac_objext
1582  if { { ac_try="$ac_compile"
1583case "(($ac_try" in
1584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585  *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589  (eval "$ac_compile") 2>conftest.err
1590  ac_status=$?
1591  if test -s conftest.err; then
1592    grep -v '^ *+' conftest.err >conftest.er1
1593    cat conftest.er1 >&5
1594    mv -f conftest.er1 conftest.err
1595  fi
1596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597  test $ac_status = 0; } && {
1598	 test -z "$ac_c_werror_flag" ||
1599	 test ! -s conftest.err
1600       } && test -s conftest.$ac_objext; then :
1601  ac_retval=0
1602else
1603  $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606	ac_retval=1
1607fi
1608  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609  as_fn_set_status $ac_retval
1610
1611} # ac_fn_c_try_compile
1612
1613# ac_fn_c_try_cpp LINENO
1614# ----------------------
1615# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_cpp ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  if { { ac_try="$ac_cpp conftest.$ac_ext"
1620case "(($ac_try" in
1621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622  *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1627  ac_status=$?
1628  if test -s conftest.err; then
1629    grep -v '^ *+' conftest.err >conftest.er1
1630    cat conftest.er1 >&5
1631    mv -f conftest.er1 conftest.err
1632  fi
1633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634  test $ac_status = 0; } >/dev/null && {
1635	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1636	 test ! -s conftest.err
1637       }; then :
1638  ac_retval=0
1639else
1640  $as_echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643    ac_retval=1
1644fi
1645  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646  as_fn_set_status $ac_retval
1647
1648} # ac_fn_c_try_cpp
1649
1650# ac_fn_c_try_link LINENO
1651# -----------------------
1652# Try to link conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_link ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  rm -f conftest.$ac_objext conftest$ac_exeext
1657  if { { ac_try="$ac_link"
1658case "(($ac_try" in
1659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660  *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664  (eval "$ac_link") 2>conftest.err
1665  ac_status=$?
1666  if test -s conftest.err; then
1667    grep -v '^ *+' conftest.err >conftest.er1
1668    cat conftest.er1 >&5
1669    mv -f conftest.er1 conftest.err
1670  fi
1671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672  test $ac_status = 0; } && {
1673	 test -z "$ac_c_werror_flag" ||
1674	 test ! -s conftest.err
1675       } && test -s conftest$ac_exeext && {
1676	 test "$cross_compiling" = yes ||
1677	 $as_test_x conftest$ac_exeext
1678       }; then :
1679  ac_retval=0
1680else
1681  $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684	ac_retval=1
1685fi
1686  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688  # interfere with the next link command; also delete a directory that is
1689  # left behind by Apple's compiler.  We do this before executing the actions.
1690  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692  as_fn_set_status $ac_retval
1693
1694} # ac_fn_c_try_link
1695
1696# ac_fn_c_try_run LINENO
1697# ----------------------
1698# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699# that executables *can* be run.
1700ac_fn_c_try_run ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  if { { ac_try="$ac_link"
1704case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_link") 2>&5
1711  ac_status=$?
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714  { { case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720  (eval "$ac_try") 2>&5
1721  ac_status=$?
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; }; }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: program exited with status $ac_status" >&5
1727       $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730       ac_retval=$ac_status
1731fi
1732  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734  as_fn_set_status $ac_retval
1735
1736} # ac_fn_c_try_run
1737
1738# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1739# -------------------------------------------------------
1740# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1741# the include files in INCLUDES and setting the cache variable VAR
1742# accordingly.
1743ac_fn_c_check_header_mongrel ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
1749if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750  $as_echo_n "(cached) " >&6
1751fi
1752eval ac_res=\$$3
1753	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }
1755else
1756  # Is the header compilable?
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1758$as_echo_n "checking $2 usability... " >&6; }
1759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h.  */
1761$4
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765  ac_header_compiler=yes
1766else
1767  ac_header_compiler=no
1768fi
1769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1771$as_echo "$ac_header_compiler" >&6; }
1772
1773# Is the header present?
1774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1775$as_echo_n "checking $2 presence... " >&6; }
1776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h.  */
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_cpp "$LINENO"; then :
1781  ac_header_preproc=yes
1782else
1783  ac_header_preproc=no
1784fi
1785rm -f conftest.err conftest.$ac_ext
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1787$as_echo "$ac_header_preproc" >&6; }
1788
1789# So?  What about this header?
1790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1791  yes:no: )
1792    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1793$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1794    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796    ;;
1797  no:yes:* )
1798    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1799$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1800    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1801$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1802    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1803$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1804    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1805$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1806    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808    ;;
1809esac
1810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811$as_echo_n "checking for $2... " >&6; }
1812if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1813  $as_echo_n "(cached) " >&6
1814else
1815  eval "$3=\$ac_header_compiler"
1816fi
1817eval ac_res=\$$3
1818	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819$as_echo "$ac_res" >&6; }
1820fi
1821  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822
1823} # ac_fn_c_check_header_mongrel
1824
1825# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1826# -------------------------------------------------------
1827# Tests whether HEADER exists and can be compiled using the include files in
1828# INCLUDES, setting the cache variable VAR accordingly.
1829ac_fn_c_check_header_compile ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835  $as_echo_n "(cached) " >&6
1836else
1837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839$4
1840#include <$2>
1841_ACEOF
1842if ac_fn_c_try_compile "$LINENO"; then :
1843  eval "$3=yes"
1844else
1845  eval "$3=no"
1846fi
1847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848fi
1849eval ac_res=\$$3
1850	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851$as_echo "$ac_res" >&6; }
1852  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853
1854} # ac_fn_c_check_header_compile
1855
1856# ac_fn_c_check_func LINENO FUNC VAR
1857# ----------------------------------
1858# Tests whether FUNC exists, setting the cache variable VAR accordingly
1859ac_fn_c_check_func ()
1860{
1861  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
1864if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865  $as_echo_n "(cached) " >&6
1866else
1867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h.  */
1869/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1871#define $2 innocuous_$2
1872
1873/* System header to define __stub macros and hopefully few prototypes,
1874    which can conflict with char $2 (); below.
1875    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876    <limits.h> exists even on freestanding compilers.  */
1877
1878#ifdef __STDC__
1879# include <limits.h>
1880#else
1881# include <assert.h>
1882#endif
1883
1884#undef $2
1885
1886/* Override any GCC internal prototype to avoid an error.
1887   Use char because int might match the return type of a GCC
1888   builtin and then its argument prototype would still apply.  */
1889#ifdef __cplusplus
1890extern "C"
1891#endif
1892char $2 ();
1893/* The GNU C library defines this for functions which it implements
1894    to always fail with ENOSYS.  Some functions are actually named
1895    something starting with __ and the normal name is an alias.  */
1896#if defined __stub_$2 || defined __stub___$2
1897choke me
1898#endif
1899
1900int
1901main ()
1902{
1903return $2 ();
1904  ;
1905  return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_link "$LINENO"; then :
1909  eval "$3=yes"
1910else
1911  eval "$3=no"
1912fi
1913rm -f core conftest.err conftest.$ac_objext \
1914    conftest$ac_exeext conftest.$ac_ext
1915fi
1916eval ac_res=\$$3
1917	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918$as_echo "$ac_res" >&6; }
1919  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920
1921} # ac_fn_c_check_func
1922
1923# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1924# -------------------------------------------
1925# Tests whether TYPE exists after having included INCLUDES, setting cache
1926# variable VAR accordingly.
1927ac_fn_c_check_type ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933  $as_echo_n "(cached) " >&6
1934else
1935  eval "$3=no"
1936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h.  */
1938$4
1939int
1940main ()
1941{
1942if (sizeof ($2))
1943	 return 0;
1944  ;
1945  return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_compile "$LINENO"; then :
1949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h.  */
1951$4
1952int
1953main ()
1954{
1955if (sizeof (($2)))
1956	    return 0;
1957  ;
1958  return 0;
1959}
1960_ACEOF
1961if ac_fn_c_try_compile "$LINENO"; then :
1962
1963else
1964  eval "$3=yes"
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969fi
1970eval ac_res=\$$3
1971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974
1975} # ac_fn_c_check_type
1976
1977# ac_fn_c_find_uintX_t LINENO BITS VAR
1978# ------------------------------------
1979# Finds an unsigned integer type with width BITS, setting cache variable VAR
1980# accordingly.
1981ac_fn_c_find_uintX_t ()
1982{
1983  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1985$as_echo_n "checking for uint$2_t... " >&6; }
1986if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987  $as_echo_n "(cached) " >&6
1988else
1989  eval "$3=no"
1990     # Order is important - never check a type that is potentially smaller
1991     # than half of the expected target width.
1992     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1993	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996$ac_includes_default
1997int
1998main ()
1999{
2000static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2001test_array [0] = 0
2002
2003  ;
2004  return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_compile "$LINENO"; then :
2008  case $ac_type in #(
2009  uint$2_t) :
2010    eval "$3=yes" ;; #(
2011  *) :
2012    eval "$3=\$ac_type" ;;
2013esac
2014fi
2015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016       eval as_val=\$$3
2017   if test "x$as_val" = x""no; then :
2018
2019else
2020  break
2021fi
2022     done
2023fi
2024eval ac_res=\$$3
2025	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026$as_echo "$ac_res" >&6; }
2027  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028
2029} # ac_fn_c_find_uintX_t
2030
2031# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2032# --------------------------------------------
2033# Tries to find the compile-time value of EXPR in a program that includes
2034# INCLUDES, setting VAR accordingly. Returns whether the value could be
2035# computed
2036ac_fn_c_compute_int ()
2037{
2038  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039  if test "$cross_compiling" = yes; then
2040    # Depending upon the size, compute the lo and hi bounds.
2041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h.  */
2043$4
2044int
2045main ()
2046{
2047static int test_array [1 - 2 * !(($2) >= 0)];
2048test_array [0] = 0
2049
2050  ;
2051  return 0;
2052}
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055  ac_lo=0 ac_mid=0
2056  while :; do
2057    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h.  */
2059$4
2060int
2061main ()
2062{
2063static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2064test_array [0] = 0
2065
2066  ;
2067  return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071  ac_hi=$ac_mid; break
2072else
2073  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2074			if test $ac_lo -le $ac_mid; then
2075			  ac_lo= ac_hi=
2076			  break
2077			fi
2078			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081  done
2082else
2083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h.  */
2085$4
2086int
2087main ()
2088{
2089static int test_array [1 - 2 * !(($2) < 0)];
2090test_array [0] = 0
2091
2092  ;
2093  return 0;
2094}
2095_ACEOF
2096if ac_fn_c_try_compile "$LINENO"; then :
2097  ac_hi=-1 ac_mid=-1
2098  while :; do
2099    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h.  */
2101$4
2102int
2103main ()
2104{
2105static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106test_array [0] = 0
2107
2108  ;
2109  return 0;
2110}
2111_ACEOF
2112if ac_fn_c_try_compile "$LINENO"; then :
2113  ac_lo=$ac_mid; break
2114else
2115  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2116			if test $ac_mid -le $ac_hi; then
2117			  ac_lo= ac_hi=
2118			  break
2119			fi
2120			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2121fi
2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123  done
2124else
2125  ac_lo= ac_hi=
2126fi
2127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128fi
2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130# Binary search between lo and hi bounds.
2131while test "x$ac_lo" != "x$ac_hi"; do
2132  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h.  */
2135$4
2136int
2137main ()
2138{
2139static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140test_array [0] = 0
2141
2142  ;
2143  return 0;
2144}
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147  ac_hi=$ac_mid
2148else
2149  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152done
2153case $ac_lo in #((
2154?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2155'') ac_retval=1 ;;
2156esac
2157  else
2158    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160$4
2161static long int longval () { return $2; }
2162static unsigned long int ulongval () { return $2; }
2163#include <stdio.h>
2164#include <stdlib.h>
2165int
2166main ()
2167{
2168
2169  FILE *f = fopen ("conftest.val", "w");
2170  if (! f)
2171    return 1;
2172  if (($2) < 0)
2173    {
2174      long int i = longval ();
2175      if (i != ($2))
2176	return 1;
2177      fprintf (f, "%ld", i);
2178    }
2179  else
2180    {
2181      unsigned long int i = ulongval ();
2182      if (i != ($2))
2183	return 1;
2184      fprintf (f, "%lu", i);
2185    }
2186  /* Do not output a trailing newline, as this causes \r\n confusion
2187     on some platforms.  */
2188  return ferror (f) || fclose (f) != 0;
2189
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_run "$LINENO"; then :
2195  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2196else
2197  ac_retval=1
2198fi
2199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2200  conftest.$ac_objext conftest.beam conftest.$ac_ext
2201rm -f conftest.val
2202
2203  fi
2204  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2205  as_fn_set_status $ac_retval
2206
2207} # ac_fn_c_compute_int
2208cat >auto/config.log <<_ACEOF
2209This file contains any messages produced by compilers while
2210running configure, to aid debugging if configure makes a mistake.
2211
2212It was created by $as_me, which was
2213generated by GNU Autoconf 2.65.  Invocation command line was
2214
2215  $ $0 $@
2216
2217_ACEOF
2218exec 5>>auto/config.log
2219{
2220cat <<_ASUNAME
2221## --------- ##
2222## Platform. ##
2223## --------- ##
2224
2225hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2226uname -m = `(uname -m) 2>/dev/null || echo unknown`
2227uname -r = `(uname -r) 2>/dev/null || echo unknown`
2228uname -s = `(uname -s) 2>/dev/null || echo unknown`
2229uname -v = `(uname -v) 2>/dev/null || echo unknown`
2230
2231/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2232/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2233
2234/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2235/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2236/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2237/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2238/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2239/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2240/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2241
2242_ASUNAME
2243
2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247  IFS=$as_save_IFS
2248  test -z "$as_dir" && as_dir=.
2249    $as_echo "PATH: $as_dir"
2250  done
2251IFS=$as_save_IFS
2252
2253} >&5
2254
2255cat >&5 <<_ACEOF
2256
2257
2258## ----------- ##
2259## Core tests. ##
2260## ----------- ##
2261
2262_ACEOF
2263
2264
2265# Keep a trace of the command line.
2266# Strip out --no-create and --no-recursion so they do not pile up.
2267# Strip out --silent because we don't want to record it for future runs.
2268# Also quote any args containing shell meta-characters.
2269# Make two passes to allow for proper duplicate-argument suppression.
2270ac_configure_args=
2271ac_configure_args0=
2272ac_configure_args1=
2273ac_must_keep_next=false
2274for ac_pass in 1 2
2275do
2276  for ac_arg
2277  do
2278    case $ac_arg in
2279    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2280    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2281    | -silent | --silent | --silen | --sile | --sil)
2282      continue ;;
2283    *\'*)
2284      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2285    esac
2286    case $ac_pass in
2287    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2288    2)
2289      as_fn_append ac_configure_args1 " '$ac_arg'"
2290      if test $ac_must_keep_next = true; then
2291	ac_must_keep_next=false # Got value, back to normal.
2292      else
2293	case $ac_arg in
2294	  *=* | --config-cache | -C | -disable-* | --disable-* \
2295	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2296	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2297	  | -with-* | --with-* | -without-* | --without-* | --x)
2298	    case "$ac_configure_args0 " in
2299	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2300	    esac
2301	    ;;
2302	  -* ) ac_must_keep_next=true ;;
2303	esac
2304      fi
2305      as_fn_append ac_configure_args " '$ac_arg'"
2306      ;;
2307    esac
2308  done
2309done
2310{ ac_configure_args0=; unset ac_configure_args0;}
2311{ ac_configure_args1=; unset ac_configure_args1;}
2312
2313# When interrupted or exit'd, cleanup temporary files, and complete
2314# config.log.  We remove comments because anyway the quotes in there
2315# would cause problems or look ugly.
2316# WARNING: Use '\'' to represent an apostrophe within the trap.
2317# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2318trap 'exit_status=$?
2319  # Save into config.log some information that might help in debugging.
2320  {
2321    echo
2322
2323    cat <<\_ASBOX
2324## ---------------- ##
2325## Cache variables. ##
2326## ---------------- ##
2327_ASBOX
2328    echo
2329    # The following way of writing the cache mishandles newlines in values,
2330(
2331  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2332    eval ac_val=\$$ac_var
2333    case $ac_val in #(
2334    *${as_nl}*)
2335      case $ac_var in #(
2336      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2337$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2338      esac
2339      case $ac_var in #(
2340      _ | IFS | as_nl) ;; #(
2341      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2342      *) { eval $ac_var=; unset $ac_var;} ;;
2343      esac ;;
2344    esac
2345  done
2346  (set) 2>&1 |
2347    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2348    *${as_nl}ac_space=\ *)
2349      sed -n \
2350	"s/'\''/'\''\\\\'\'''\''/g;
2351	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2352      ;; #(
2353    *)
2354      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2355      ;;
2356    esac |
2357    sort
2358)
2359    echo
2360
2361    cat <<\_ASBOX
2362## ----------------- ##
2363## Output variables. ##
2364## ----------------- ##
2365_ASBOX
2366    echo
2367    for ac_var in $ac_subst_vars
2368    do
2369      eval ac_val=\$$ac_var
2370      case $ac_val in
2371      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2372      esac
2373      $as_echo "$ac_var='\''$ac_val'\''"
2374    done | sort
2375    echo
2376
2377    if test -n "$ac_subst_files"; then
2378      cat <<\_ASBOX
2379## ------------------- ##
2380## File substitutions. ##
2381## ------------------- ##
2382_ASBOX
2383      echo
2384      for ac_var in $ac_subst_files
2385      do
2386	eval ac_val=\$$ac_var
2387	case $ac_val in
2388	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2389	esac
2390	$as_echo "$ac_var='\''$ac_val'\''"
2391      done | sort
2392      echo
2393    fi
2394
2395    if test -s confdefs.h; then
2396      cat <<\_ASBOX
2397## ----------- ##
2398## confdefs.h. ##
2399## ----------- ##
2400_ASBOX
2401      echo
2402      cat confdefs.h
2403      echo
2404    fi
2405    test "$ac_signal" != 0 &&
2406      $as_echo "$as_me: caught signal $ac_signal"
2407    $as_echo "$as_me: exit $exit_status"
2408  } >&5
2409  rm -f core *.core core.conftest.* &&
2410    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2411    exit $exit_status
2412' 0
2413for ac_signal in 1 2 13 15; do
2414  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2415done
2416ac_signal=0
2417
2418# confdefs.h avoids OS command line length limits that DEFS can exceed.
2419rm -f -r conftest* confdefs.h
2420
2421$as_echo "/* confdefs.h */" > confdefs.h
2422
2423# Predefined preprocessor variables.
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_NAME "$PACKAGE_NAME"
2427_ACEOF
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_VERSION "$PACKAGE_VERSION"
2435_ACEOF
2436
2437cat >>confdefs.h <<_ACEOF
2438#define PACKAGE_STRING "$PACKAGE_STRING"
2439_ACEOF
2440
2441cat >>confdefs.h <<_ACEOF
2442#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2443_ACEOF
2444
2445cat >>confdefs.h <<_ACEOF
2446#define PACKAGE_URL "$PACKAGE_URL"
2447_ACEOF
2448
2449
2450# Let the site file select an alternate cache file if it wants to.
2451# Prefer an explicitly selected file to automatically selected ones.
2452ac_site_file1=NONE
2453ac_site_file2=NONE
2454if test -n "$CONFIG_SITE"; then
2455  ac_site_file1=$CONFIG_SITE
2456elif test "x$prefix" != xNONE; then
2457  ac_site_file1=$prefix/share/config.site
2458  ac_site_file2=$prefix/etc/config.site
2459else
2460  ac_site_file1=$ac_default_prefix/share/config.site
2461  ac_site_file2=$ac_default_prefix/etc/config.site
2462fi
2463for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2464do
2465  test "x$ac_site_file" = xNONE && continue
2466  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2467    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2468$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2469    sed 's/^/| /' "$ac_site_file" >&5
2470    . "$ac_site_file"
2471  fi
2472done
2473
2474if test -r "$cache_file"; then
2475  # Some versions of bash will fail to source /dev/null (special files
2476  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2477  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2478    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2479$as_echo "$as_me: loading cache $cache_file" >&6;}
2480    case $cache_file in
2481      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2482      *)                      . "./$cache_file";;
2483    esac
2484  fi
2485else
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2487$as_echo "$as_me: creating cache $cache_file" >&6;}
2488  >$cache_file
2489fi
2490
2491# Check that the precious variables saved in the cache have kept the same
2492# value.
2493ac_cache_corrupted=false
2494for ac_var in $ac_precious_vars; do
2495  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2496  eval ac_new_set=\$ac_env_${ac_var}_set
2497  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2498  eval ac_new_val=\$ac_env_${ac_var}_value
2499  case $ac_old_set,$ac_new_set in
2500    set,)
2501      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2502$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2503      ac_cache_corrupted=: ;;
2504    ,set)
2505      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2506$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2507      ac_cache_corrupted=: ;;
2508    ,);;
2509    *)
2510      if test "x$ac_old_val" != "x$ac_new_val"; then
2511	# differences in whitespace do not lead to failure.
2512	ac_old_val_w=`echo x $ac_old_val`
2513	ac_new_val_w=`echo x $ac_new_val`
2514	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2515	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2516$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2517	  ac_cache_corrupted=:
2518	else
2519	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2520$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2521	  eval $ac_var=\$ac_old_val
2522	fi
2523	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2524$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2525	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2526$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2527      fi;;
2528  esac
2529  # Pass precious variables to config.status.
2530  if test "$ac_new_set" = set; then
2531    case $ac_new_val in
2532    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2533    *) ac_arg=$ac_var=$ac_new_val ;;
2534    esac
2535    case " $ac_configure_args " in
2536      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2537      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2538    esac
2539  fi
2540done
2541if $ac_cache_corrupted; then
2542  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2545$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2546  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2547fi
2548## -------------------- ##
2549## Main body of script. ##
2550## -------------------- ##
2551
2552ac_ext=c
2553ac_cpp='$CPP $CPPFLAGS'
2554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557
2558
2559ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2560
2561
2562$as_echo "#define UNIX 1" >>confdefs.h
2563
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2565$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2566set x ${MAKE-make}
2567ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2568if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2569  $as_echo_n "(cached) " >&6
2570else
2571  cat >conftest.make <<\_ACEOF
2572SHELL = /bin/sh
2573all:
2574	@echo '@@@%%%=$(MAKE)=@@@%%%'
2575_ACEOF
2576# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2577case `${MAKE-make} -f conftest.make 2>/dev/null` in
2578  *@@@%%%=?*=@@@%%%*)
2579    eval ac_cv_prog_make_${ac_make}_set=yes;;
2580  *)
2581    eval ac_cv_prog_make_${ac_make}_set=no;;
2582esac
2583rm -f conftest.make
2584fi
2585if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2587$as_echo "yes" >&6; }
2588  SET_MAKE=
2589else
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591$as_echo "no" >&6; }
2592  SET_MAKE="MAKE=${MAKE-make}"
2593fi
2594
2595
2596ac_ext=c
2597ac_cpp='$CPP $CPPFLAGS'
2598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601if test -n "$ac_tool_prefix"; then
2602  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2603set dummy ${ac_tool_prefix}gcc; ac_word=$2
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605$as_echo_n "checking for $ac_word... " >&6; }
2606if test "${ac_cv_prog_CC+set}" = set; then :
2607  $as_echo_n "(cached) " >&6
2608else
2609  if test -n "$CC"; then
2610  ac_cv_prog_CC="$CC" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615  IFS=$as_save_IFS
2616  test -z "$as_dir" && as_dir=.
2617    for ac_exec_ext in '' $ac_executable_extensions; do
2618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621    break 2
2622  fi
2623done
2624  done
2625IFS=$as_save_IFS
2626
2627fi
2628fi
2629CC=$ac_cv_prog_CC
2630if test -n "$CC"; then
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2632$as_echo "$CC" >&6; }
2633else
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635$as_echo "no" >&6; }
2636fi
2637
2638
2639fi
2640if test -z "$ac_cv_prog_CC"; then
2641  ac_ct_CC=$CC
2642  # Extract the first word of "gcc", so it can be a program name with args.
2643set dummy gcc; ac_word=$2
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645$as_echo_n "checking for $ac_word... " >&6; }
2646if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  if test -n "$ac_ct_CC"; then
2650  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2651else
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655  IFS=$as_save_IFS
2656  test -z "$as_dir" && as_dir=.
2657    for ac_exec_ext in '' $ac_executable_extensions; do
2658  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659    ac_cv_prog_ac_ct_CC="gcc"
2660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661    break 2
2662  fi
2663done
2664  done
2665IFS=$as_save_IFS
2666
2667fi
2668fi
2669ac_ct_CC=$ac_cv_prog_ac_ct_CC
2670if test -n "$ac_ct_CC"; then
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2672$as_echo "$ac_ct_CC" >&6; }
2673else
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675$as_echo "no" >&6; }
2676fi
2677
2678  if test "x$ac_ct_CC" = x; then
2679    CC=""
2680  else
2681    case $cross_compiling:$ac_tool_warned in
2682yes:)
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685ac_tool_warned=yes ;;
2686esac
2687    CC=$ac_ct_CC
2688  fi
2689else
2690  CC="$ac_cv_prog_CC"
2691fi
2692
2693if test -z "$CC"; then
2694          if test -n "$ac_tool_prefix"; then
2695    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2696set dummy ${ac_tool_prefix}cc; ac_word=$2
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698$as_echo_n "checking for $ac_word... " >&6; }
2699if test "${ac_cv_prog_CC+set}" = set; then :
2700  $as_echo_n "(cached) " >&6
2701else
2702  if test -n "$CC"; then
2703  ac_cv_prog_CC="$CC" # Let the user override the test.
2704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708  IFS=$as_save_IFS
2709  test -z "$as_dir" && as_dir=.
2710    for ac_exec_ext in '' $ac_executable_extensions; do
2711  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712    ac_cv_prog_CC="${ac_tool_prefix}cc"
2713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714    break 2
2715  fi
2716done
2717  done
2718IFS=$as_save_IFS
2719
2720fi
2721fi
2722CC=$ac_cv_prog_CC
2723if test -n "$CC"; then
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2725$as_echo "$CC" >&6; }
2726else
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728$as_echo "no" >&6; }
2729fi
2730
2731
2732  fi
2733fi
2734if test -z "$CC"; then
2735  # Extract the first word of "cc", so it can be a program name with args.
2736set dummy cc; ac_word=$2
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
2739if test "${ac_cv_prog_CC+set}" = set; then :
2740  $as_echo_n "(cached) " >&6
2741else
2742  if test -n "$CC"; then
2743  ac_cv_prog_CC="$CC" # Let the user override the test.
2744else
2745  ac_prog_rejected=no
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751    for ac_exec_ext in '' $ac_executable_extensions; do
2752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2754       ac_prog_rejected=yes
2755       continue
2756     fi
2757    ac_cv_prog_CC="cc"
2758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759    break 2
2760  fi
2761done
2762  done
2763IFS=$as_save_IFS
2764
2765if test $ac_prog_rejected = yes; then
2766  # We found a bogon in the path, so make sure we never use it.
2767  set dummy $ac_cv_prog_CC
2768  shift
2769  if test $# != 0; then
2770    # We chose a different compiler from the bogus one.
2771    # However, it has the same basename, so the bogon will be chosen
2772    # first if we set CC to just the basename; use the full file name.
2773    shift
2774    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2775  fi
2776fi
2777fi
2778fi
2779CC=$ac_cv_prog_CC
2780if test -n "$CC"; then
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782$as_echo "$CC" >&6; }
2783else
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785$as_echo "no" >&6; }
2786fi
2787
2788
2789fi
2790if test -z "$CC"; then
2791  if test -n "$ac_tool_prefix"; then
2792  for ac_prog in cl.exe
2793  do
2794    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797$as_echo_n "checking for $ac_word... " >&6; }
2798if test "${ac_cv_prog_CC+set}" = set; then :
2799  $as_echo_n "(cached) " >&6
2800else
2801  if test -n "$CC"; then
2802  ac_cv_prog_CC="$CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807  IFS=$as_save_IFS
2808  test -z "$as_dir" && as_dir=.
2809    for ac_exec_ext in '' $ac_executable_extensions; do
2810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813    break 2
2814  fi
2815done
2816  done
2817IFS=$as_save_IFS
2818
2819fi
2820fi
2821CC=$ac_cv_prog_CC
2822if test -n "$CC"; then
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824$as_echo "$CC" >&6; }
2825else
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
2828fi
2829
2830
2831    test -n "$CC" && break
2832  done
2833fi
2834if test -z "$CC"; then
2835  ac_ct_CC=$CC
2836  for ac_prog in cl.exe
2837do
2838  # Extract the first word of "$ac_prog", so it can be a program name with args.
2839set dummy $ac_prog; ac_word=$2
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2843  $as_echo_n "(cached) " >&6
2844else
2845  if test -n "$ac_ct_CC"; then
2846  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2847else
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851  IFS=$as_save_IFS
2852  test -z "$as_dir" && as_dir=.
2853    for ac_exec_ext in '' $ac_executable_extensions; do
2854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855    ac_cv_prog_ac_ct_CC="$ac_prog"
2856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857    break 2
2858  fi
2859done
2860  done
2861IFS=$as_save_IFS
2862
2863fi
2864fi
2865ac_ct_CC=$ac_cv_prog_ac_ct_CC
2866if test -n "$ac_ct_CC"; then
2867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2868$as_echo "$ac_ct_CC" >&6; }
2869else
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871$as_echo "no" >&6; }
2872fi
2873
2874
2875  test -n "$ac_ct_CC" && break
2876done
2877
2878  if test "x$ac_ct_CC" = x; then
2879    CC=""
2880  else
2881    case $cross_compiling:$ac_tool_warned in
2882yes:)
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887    CC=$ac_ct_CC
2888  fi
2889fi
2890
2891fi
2892
2893
2894test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896as_fn_error "no acceptable C compiler found in \$PATH
2897See \`config.log' for more details." "$LINENO" 5; }
2898
2899# Provide some information about the compiler.
2900$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2901set X $ac_compile
2902ac_compiler=$2
2903for ac_option in --version -v -V -qversion; do
2904  { { ac_try="$ac_compiler $ac_option >&5"
2905case "(($ac_try" in
2906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907  *) ac_try_echo=$ac_try;;
2908esac
2909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910$as_echo "$ac_try_echo"; } >&5
2911  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2912  ac_status=$?
2913  if test -s conftest.err; then
2914    sed '10a\
2915... rest of stderr output deleted ...
2916         10q' conftest.err >conftest.er1
2917    cat conftest.er1 >&5
2918  fi
2919  rm -f conftest.er1 conftest.err
2920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921  test $ac_status = 0; }
2922done
2923
2924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925/* end confdefs.h.  */
2926
2927int
2928main ()
2929{
2930
2931  ;
2932  return 0;
2933}
2934_ACEOF
2935ac_clean_files_save=$ac_clean_files
2936ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2937# Try to create an executable without -o first, disregard a.out.
2938# It will help us diagnose broken compilers, and finding out an intuition
2939# of exeext.
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2941$as_echo_n "checking whether the C compiler works... " >&6; }
2942ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2943
2944# The possible output files:
2945ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2946
2947ac_rmfiles=
2948for ac_file in $ac_files
2949do
2950  case $ac_file in
2951    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2952    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2953  esac
2954done
2955rm -f $ac_rmfiles
2956
2957if { { ac_try="$ac_link_default"
2958case "(($ac_try" in
2959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960  *) ac_try_echo=$ac_try;;
2961esac
2962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963$as_echo "$ac_try_echo"; } >&5
2964  (eval "$ac_link_default") 2>&5
2965  ac_status=$?
2966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967  test $ac_status = 0; }; then :
2968  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2969# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2970# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2971# so that the user can short-circuit this test for compilers unknown to
2972# Autoconf.
2973for ac_file in $ac_files ''
2974do
2975  test -f "$ac_file" || continue
2976  case $ac_file in
2977    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2978	;;
2979    [ab].out )
2980	# We found the default executable, but exeext='' is most
2981	# certainly right.
2982	break;;
2983    *.* )
2984	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2985	then :; else
2986	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2987	fi
2988	# We set ac_cv_exeext here because the later test for it is not
2989	# safe: cross compilers may not add the suffix if given an `-o'
2990	# argument, so we may need to know it at that point already.
2991	# Even if this section looks crufty: it has the advantage of
2992	# actually working.
2993	break;;
2994    * )
2995	break;;
2996  esac
2997done
2998test "$ac_cv_exeext" = no && ac_cv_exeext=
2999
3000else
3001  ac_file=''
3002fi
3003if test -z "$ac_file"; then :
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005$as_echo "no" >&6; }
3006$as_echo "$as_me: failed program was:" >&5
3007sed 's/^/| /' conftest.$ac_ext >&5
3008
3009{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011{ as_fn_set_status 77
3012as_fn_error "C compiler cannot create executables
3013See \`config.log' for more details." "$LINENO" 5; }; }
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016$as_echo "yes" >&6; }
3017fi
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3019$as_echo_n "checking for C compiler default output file name... " >&6; }
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3021$as_echo "$ac_file" >&6; }
3022ac_exeext=$ac_cv_exeext
3023
3024rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3025ac_clean_files=$ac_clean_files_save
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3027$as_echo_n "checking for suffix of executables... " >&6; }
3028if { { ac_try="$ac_link"
3029case "(($ac_try" in
3030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031  *) ac_try_echo=$ac_try;;
3032esac
3033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034$as_echo "$ac_try_echo"; } >&5
3035  (eval "$ac_link") 2>&5
3036  ac_status=$?
3037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038  test $ac_status = 0; }; then :
3039  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3040# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3041# work properly (i.e., refer to `conftest.exe'), while it won't with
3042# `rm'.
3043for ac_file in conftest.exe conftest conftest.*; do
3044  test -f "$ac_file" || continue
3045  case $ac_file in
3046    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3047    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048	  break;;
3049    * ) break;;
3050  esac
3051done
3052else
3053  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055as_fn_error "cannot compute suffix of executables: cannot compile and link
3056See \`config.log' for more details." "$LINENO" 5; }
3057fi
3058rm -f conftest conftest$ac_cv_exeext
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3060$as_echo "$ac_cv_exeext" >&6; }
3061
3062rm -f conftest.$ac_ext
3063EXEEXT=$ac_cv_exeext
3064ac_exeext=$EXEEXT
3065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066/* end confdefs.h.  */
3067#include <stdio.h>
3068int
3069main ()
3070{
3071FILE *f = fopen ("conftest.out", "w");
3072 return ferror (f) || fclose (f) != 0;
3073
3074  ;
3075  return 0;
3076}
3077_ACEOF
3078ac_clean_files="$ac_clean_files conftest.out"
3079# Check that the compiler produces executables we can run.  If not, either
3080# the compiler is broken, or we cross compile.
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3082$as_echo_n "checking whether we are cross compiling... " >&6; }
3083if test "$cross_compiling" != yes; then
3084  { { ac_try="$ac_link"
3085case "(($ac_try" in
3086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087  *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
3091  (eval "$ac_link") 2>&5
3092  ac_status=$?
3093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094  test $ac_status = 0; }
3095  if { ac_try='./conftest$ac_cv_exeext'
3096  { { case "(($ac_try" in
3097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098  *) ac_try_echo=$ac_try;;
3099esac
3100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101$as_echo "$ac_try_echo"; } >&5
3102  (eval "$ac_try") 2>&5
3103  ac_status=$?
3104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105  test $ac_status = 0; }; }; then
3106    cross_compiling=no
3107  else
3108    if test "$cross_compiling" = maybe; then
3109	cross_compiling=yes
3110    else
3111	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113as_fn_error "cannot run C compiled programs.
3114If you meant to cross compile, use \`--host'.
3115See \`config.log' for more details." "$LINENO" 5; }
3116    fi
3117  fi
3118fi
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3120$as_echo "$cross_compiling" >&6; }
3121
3122rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3123ac_clean_files=$ac_clean_files_save
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3125$as_echo_n "checking for suffix of object files... " >&6; }
3126if test "${ac_cv_objext+set}" = set; then :
3127  $as_echo_n "(cached) " >&6
3128else
3129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130/* end confdefs.h.  */
3131
3132int
3133main ()
3134{
3135
3136  ;
3137  return 0;
3138}
3139_ACEOF
3140rm -f conftest.o conftest.obj
3141if { { ac_try="$ac_compile"
3142case "(($ac_try" in
3143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144  *) ac_try_echo=$ac_try;;
3145esac
3146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147$as_echo "$ac_try_echo"; } >&5
3148  (eval "$ac_compile") 2>&5
3149  ac_status=$?
3150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3151  test $ac_status = 0; }; then :
3152  for ac_file in conftest.o conftest.obj conftest.*; do
3153  test -f "$ac_file" || continue;
3154  case $ac_file in
3155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3156    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3157       break;;
3158  esac
3159done
3160else
3161  $as_echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166as_fn_error "cannot compute suffix of object files: cannot compile
3167See \`config.log' for more details." "$LINENO" 5; }
3168fi
3169rm -f conftest.$ac_cv_objext conftest.$ac_ext
3170fi
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3172$as_echo "$ac_cv_objext" >&6; }
3173OBJEXT=$ac_cv_objext
3174ac_objext=$OBJEXT
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3176$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3177if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3178  $as_echo_n "(cached) " >&6
3179else
3180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h.  */
3182
3183int
3184main ()
3185{
3186#ifndef __GNUC__
3187       choke me
3188#endif
3189
3190  ;
3191  return 0;
3192}
3193_ACEOF
3194if ac_fn_c_try_compile "$LINENO"; then :
3195  ac_compiler_gnu=yes
3196else
3197  ac_compiler_gnu=no
3198fi
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200ac_cv_c_compiler_gnu=$ac_compiler_gnu
3201
3202fi
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3204$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3205if test $ac_compiler_gnu = yes; then
3206  GCC=yes
3207else
3208  GCC=
3209fi
3210ac_test_CFLAGS=${CFLAGS+set}
3211ac_save_CFLAGS=$CFLAGS
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3213$as_echo_n "checking whether $CC accepts -g... " >&6; }
3214if test "${ac_cv_prog_cc_g+set}" = set; then :
3215  $as_echo_n "(cached) " >&6
3216else
3217  ac_save_c_werror_flag=$ac_c_werror_flag
3218   ac_c_werror_flag=yes
3219   ac_cv_prog_cc_g=no
3220   CFLAGS="-g"
3221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222/* end confdefs.h.  */
3223
3224int
3225main ()
3226{
3227
3228  ;
3229  return 0;
3230}
3231_ACEOF
3232if ac_fn_c_try_compile "$LINENO"; then :
3233  ac_cv_prog_cc_g=yes
3234else
3235  CFLAGS=""
3236      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237/* end confdefs.h.  */
3238
3239int
3240main ()
3241{
3242
3243  ;
3244  return 0;
3245}
3246_ACEOF
3247if ac_fn_c_try_compile "$LINENO"; then :
3248
3249else
3250  ac_c_werror_flag=$ac_save_c_werror_flag
3251	 CFLAGS="-g"
3252	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h.  */
3254
3255int
3256main ()
3257{
3258
3259  ;
3260  return 0;
3261}
3262_ACEOF
3263if ac_fn_c_try_compile "$LINENO"; then :
3264  ac_cv_prog_cc_g=yes
3265fi
3266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267fi
3268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269fi
3270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271   ac_c_werror_flag=$ac_save_c_werror_flag
3272fi
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3274$as_echo "$ac_cv_prog_cc_g" >&6; }
3275if test "$ac_test_CFLAGS" = set; then
3276  CFLAGS=$ac_save_CFLAGS
3277elif test $ac_cv_prog_cc_g = yes; then
3278  if test "$GCC" = yes; then
3279    CFLAGS="-g -O2"
3280  else
3281    CFLAGS="-g"
3282  fi
3283else
3284  if test "$GCC" = yes; then
3285    CFLAGS="-O2"
3286  else
3287    CFLAGS=
3288  fi
3289fi
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3291$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3292if test "${ac_cv_prog_cc_c89+set}" = set; then :
3293  $as_echo_n "(cached) " >&6
3294else
3295  ac_cv_prog_cc_c89=no
3296ac_save_CC=$CC
3297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298/* end confdefs.h.  */
3299#include <stdarg.h>
3300#include <stdio.h>
3301#include <sys/types.h>
3302#include <sys/stat.h>
3303/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3304struct buf { int x; };
3305FILE * (*rcsopen) (struct buf *, struct stat *, int);
3306static char *e (p, i)
3307     char **p;
3308     int i;
3309{
3310  return p[i];
3311}
3312static char *f (char * (*g) (char **, int), char **p, ...)
3313{
3314  char *s;
3315  va_list v;
3316  va_start (v,p);
3317  s = g (p, va_arg (v,int));
3318  va_end (v);
3319  return s;
3320}
3321
3322/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3323   function prototypes and stuff, but not '\xHH' hex character constants.
3324   These don't provoke an error unfortunately, instead are silently treated
3325   as 'x'.  The following induces an error, until -std is added to get
3326   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3327   array size at least.  It's necessary to write '\x00'==0 to get something
3328   that's true only with -std.  */
3329int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3330
3331/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3332   inside strings and character constants.  */
3333#define FOO(x) 'x'
3334int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3335
3336int test (int i, double x);
3337struct s1 {int (*f) (int a);};
3338struct s2 {int (*f) (double a);};
3339int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3340int argc;
3341char **argv;
3342int
3343main ()
3344{
3345return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3346  ;
3347  return 0;
3348}
3349_ACEOF
3350for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3351	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3352do
3353  CC="$ac_save_CC $ac_arg"
3354  if ac_fn_c_try_compile "$LINENO"; then :
3355  ac_cv_prog_cc_c89=$ac_arg
3356fi
3357rm -f core conftest.err conftest.$ac_objext
3358  test "x$ac_cv_prog_cc_c89" != "xno" && break
3359done
3360rm -f conftest.$ac_ext
3361CC=$ac_save_CC
3362
3363fi
3364# AC_CACHE_VAL
3365case "x$ac_cv_prog_cc_c89" in
3366  x)
3367    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3368$as_echo "none needed" >&6; } ;;
3369  xno)
3370    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3371$as_echo "unsupported" >&6; } ;;
3372  *)
3373    CC="$CC $ac_cv_prog_cc_c89"
3374    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3375$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3376esac
3377if test "x$ac_cv_prog_cc_c89" != xno; then :
3378
3379fi
3380
3381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386	ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3392$as_echo_n "checking how to run the C preprocessor... " >&6; }
3393# On Suns, sometimes $CPP names a directory.
3394if test -n "$CPP" && test -d "$CPP"; then
3395  CPP=
3396fi
3397if test -z "$CPP"; then
3398  if test "${ac_cv_prog_CPP+set}" = set; then :
3399  $as_echo_n "(cached) " >&6
3400else
3401      # Double quotes because CPP needs to be expanded
3402    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3403    do
3404      ac_preproc_ok=false
3405for ac_c_preproc_warn_flag in '' yes
3406do
3407  # Use a header file that comes with gcc, so configuring glibc
3408  # with a fresh cross-compiler works.
3409  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410  # <limits.h> exists even on freestanding compilers.
3411  # On the NeXT, cc -E runs the code through the compiler's parser,
3412  # not just through cpp. "Syntax error" is here to catch this case.
3413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h.  */
3415#ifdef __STDC__
3416# include <limits.h>
3417#else
3418# include <assert.h>
3419#endif
3420		     Syntax error
3421_ACEOF
3422if ac_fn_c_try_cpp "$LINENO"; then :
3423
3424else
3425  # Broken: fails on valid input.
3426continue
3427fi
3428rm -f conftest.err conftest.$ac_ext
3429
3430  # OK, works on sane cases.  Now check whether nonexistent headers
3431  # can be detected and how.
3432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434#include <ac_nonexistent.h>
3435_ACEOF
3436if ac_fn_c_try_cpp "$LINENO"; then :
3437  # Broken: success on invalid input.
3438continue
3439else
3440  # Passes both tests.
3441ac_preproc_ok=:
3442break
3443fi
3444rm -f conftest.err conftest.$ac_ext
3445
3446done
3447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448rm -f conftest.err conftest.$ac_ext
3449if $ac_preproc_ok; then :
3450  break
3451fi
3452
3453    done
3454    ac_cv_prog_CPP=$CPP
3455
3456fi
3457  CPP=$ac_cv_prog_CPP
3458else
3459  ac_cv_prog_CPP=$CPP
3460fi
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3462$as_echo "$CPP" >&6; }
3463ac_preproc_ok=false
3464for ac_c_preproc_warn_flag in '' yes
3465do
3466  # Use a header file that comes with gcc, so configuring glibc
3467  # with a fresh cross-compiler works.
3468  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469  # <limits.h> exists even on freestanding compilers.
3470  # On the NeXT, cc -E runs the code through the compiler's parser,
3471  # not just through cpp. "Syntax error" is here to catch this case.
3472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h.  */
3474#ifdef __STDC__
3475# include <limits.h>
3476#else
3477# include <assert.h>
3478#endif
3479		     Syntax error
3480_ACEOF
3481if ac_fn_c_try_cpp "$LINENO"; then :
3482
3483else
3484  # Broken: fails on valid input.
3485continue
3486fi
3487rm -f conftest.err conftest.$ac_ext
3488
3489  # OK, works on sane cases.  Now check whether nonexistent headers
3490  # can be detected and how.
3491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h.  */
3493#include <ac_nonexistent.h>
3494_ACEOF
3495if ac_fn_c_try_cpp "$LINENO"; then :
3496  # Broken: success on invalid input.
3497continue
3498else
3499  # Passes both tests.
3500ac_preproc_ok=:
3501break
3502fi
3503rm -f conftest.err conftest.$ac_ext
3504
3505done
3506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507rm -f conftest.err conftest.$ac_ext
3508if $ac_preproc_ok; then :
3509
3510else
3511  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513as_fn_error "C preprocessor \"$CPP\" fails sanity check
3514See \`config.log' for more details." "$LINENO" 5; }
3515fi
3516
3517ac_ext=c
3518ac_cpp='$CPP $CPPFLAGS'
3519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3525$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3526if test "${ac_cv_path_GREP+set}" = set; then :
3527  $as_echo_n "(cached) " >&6
3528else
3529  if test -z "$GREP"; then
3530  ac_path_GREP_found=false
3531  # Loop through the user's path and test for each of PROGNAME-LIST
3532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3534do
3535  IFS=$as_save_IFS
3536  test -z "$as_dir" && as_dir=.
3537    for ac_prog in grep ggrep; do
3538    for ac_exec_ext in '' $ac_executable_extensions; do
3539      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3540      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3541# Check for GNU ac_path_GREP and select it if it is found.
3542  # Check for GNU $ac_path_GREP
3543case `"$ac_path_GREP" --version 2>&1` in
3544*GNU*)
3545  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3546*)
3547  ac_count=0
3548  $as_echo_n 0123456789 >"conftest.in"
3549  while :
3550  do
3551    cat "conftest.in" "conftest.in" >"conftest.tmp"
3552    mv "conftest.tmp" "conftest.in"
3553    cp "conftest.in" "conftest.nl"
3554    $as_echo 'GREP' >> "conftest.nl"
3555    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3556    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3557    as_fn_arith $ac_count + 1 && ac_count=$as_val
3558    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3559      # Best one so far, save it but keep looking for a better one
3560      ac_cv_path_GREP="$ac_path_GREP"
3561      ac_path_GREP_max=$ac_count
3562    fi
3563    # 10*(2^10) chars as input seems more than enough
3564    test $ac_count -gt 10 && break
3565  done
3566  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3567esac
3568
3569      $ac_path_GREP_found && break 3
3570    done
3571  done
3572  done
3573IFS=$as_save_IFS
3574  if test -z "$ac_cv_path_GREP"; then
3575    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3576  fi
3577else
3578  ac_cv_path_GREP=$GREP
3579fi
3580
3581fi
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3583$as_echo "$ac_cv_path_GREP" >&6; }
3584 GREP="$ac_cv_path_GREP"
3585
3586
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3588$as_echo_n "checking for egrep... " >&6; }
3589if test "${ac_cv_path_EGREP+set}" = set; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3593   then ac_cv_path_EGREP="$GREP -E"
3594   else
3595     if test -z "$EGREP"; then
3596  ac_path_EGREP_found=false
3597  # Loop through the user's path and test for each of PROGNAME-LIST
3598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3600do
3601  IFS=$as_save_IFS
3602  test -z "$as_dir" && as_dir=.
3603    for ac_prog in egrep; do
3604    for ac_exec_ext in '' $ac_executable_extensions; do
3605      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3606      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3607# Check for GNU ac_path_EGREP and select it if it is found.
3608  # Check for GNU $ac_path_EGREP
3609case `"$ac_path_EGREP" --version 2>&1` in
3610*GNU*)
3611  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3612*)
3613  ac_count=0
3614  $as_echo_n 0123456789 >"conftest.in"
3615  while :
3616  do
3617    cat "conftest.in" "conftest.in" >"conftest.tmp"
3618    mv "conftest.tmp" "conftest.in"
3619    cp "conftest.in" "conftest.nl"
3620    $as_echo 'EGREP' >> "conftest.nl"
3621    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3622    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3623    as_fn_arith $ac_count + 1 && ac_count=$as_val
3624    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3625      # Best one so far, save it but keep looking for a better one
3626      ac_cv_path_EGREP="$ac_path_EGREP"
3627      ac_path_EGREP_max=$ac_count
3628    fi
3629    # 10*(2^10) chars as input seems more than enough
3630    test $ac_count -gt 10 && break
3631  done
3632  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3633esac
3634
3635      $ac_path_EGREP_found && break 3
3636    done
3637  done
3638  done
3639IFS=$as_save_IFS
3640  if test -z "$ac_cv_path_EGREP"; then
3641    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3642  fi
3643else
3644  ac_cv_path_EGREP=$EGREP
3645fi
3646
3647   fi
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3650$as_echo "$ac_cv_path_EGREP" >&6; }
3651 EGREP="$ac_cv_path_EGREP"
3652
3653
3654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h.  */
3656
3657_ACEOF
3658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3659  $EGREP "" >/dev/null 2>&1; then :
3660
3661fi
3662rm -f conftest*
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3664$as_echo_n "checking for library containing strerror... " >&6; }
3665if test "${ac_cv_search_strerror+set}" = set; then :
3666  $as_echo_n "(cached) " >&6
3667else
3668  ac_func_search_save_LIBS=$LIBS
3669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h.  */
3671
3672/* Override any GCC internal prototype to avoid an error.
3673   Use char because int might match the return type of a GCC
3674   builtin and then its argument prototype would still apply.  */
3675#ifdef __cplusplus
3676extern "C"
3677#endif
3678char strerror ();
3679int
3680main ()
3681{
3682return strerror ();
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687for ac_lib in '' cposix; do
3688  if test -z "$ac_lib"; then
3689    ac_res="none required"
3690  else
3691    ac_res=-l$ac_lib
3692    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3693  fi
3694  if ac_fn_c_try_link "$LINENO"; then :
3695  ac_cv_search_strerror=$ac_res
3696fi
3697rm -f core conftest.err conftest.$ac_objext \
3698    conftest$ac_exeext
3699  if test "${ac_cv_search_strerror+set}" = set; then :
3700  break
3701fi
3702done
3703if test "${ac_cv_search_strerror+set}" = set; then :
3704
3705else
3706  ac_cv_search_strerror=no
3707fi
3708rm conftest.$ac_ext
3709LIBS=$ac_func_search_save_LIBS
3710fi
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3712$as_echo "$ac_cv_search_strerror" >&6; }
3713ac_res=$ac_cv_search_strerror
3714if test "$ac_res" != no; then :
3715  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3716
3717fi
3718	for ac_prog in gawk mawk nawk awk
3719do
3720  # Extract the first word of "$ac_prog", so it can be a program name with args.
3721set dummy $ac_prog; ac_word=$2
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723$as_echo_n "checking for $ac_word... " >&6; }
3724if test "${ac_cv_prog_AWK+set}" = set; then :
3725  $as_echo_n "(cached) " >&6
3726else
3727  if test -n "$AWK"; then
3728  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3729else
3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731for as_dir in $PATH
3732do
3733  IFS=$as_save_IFS
3734  test -z "$as_dir" && as_dir=.
3735    for ac_exec_ext in '' $ac_executable_extensions; do
3736  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737    ac_cv_prog_AWK="$ac_prog"
3738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739    break 2
3740  fi
3741done
3742  done
3743IFS=$as_save_IFS
3744
3745fi
3746fi
3747AWK=$ac_cv_prog_AWK
3748if test -n "$AWK"; then
3749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3750$as_echo "$AWK" >&6; }
3751else
3752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753$as_echo "no" >&6; }
3754fi
3755
3756
3757  test -n "$AWK" && break
3758done
3759
3760# Extract the first word of "strip", so it can be a program name with args.
3761set dummy strip; ac_word=$2
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763$as_echo_n "checking for $ac_word... " >&6; }
3764if test "${ac_cv_prog_STRIP+set}" = set; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  if test -n "$STRIP"; then
3768  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3769else
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773  IFS=$as_save_IFS
3774  test -z "$as_dir" && as_dir=.
3775    for ac_exec_ext in '' $ac_executable_extensions; do
3776  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777    ac_cv_prog_STRIP="strip"
3778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779    break 2
3780  fi
3781done
3782  done
3783IFS=$as_save_IFS
3784
3785  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3786fi
3787fi
3788STRIP=$ac_cv_prog_STRIP
3789if test -n "$STRIP"; then
3790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3791$as_echo "$STRIP" >&6; }
3792else
3793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794$as_echo "no" >&6; }
3795fi
3796
3797
3798
3799
3800
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3802$as_echo_n "checking for ANSI C header files... " >&6; }
3803if test "${ac_cv_header_stdc+set}" = set; then :
3804  $as_echo_n "(cached) " >&6
3805else
3806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808#include <stdlib.h>
3809#include <stdarg.h>
3810#include <string.h>
3811#include <float.h>
3812
3813int
3814main ()
3815{
3816
3817  ;
3818  return 0;
3819}
3820_ACEOF
3821if ac_fn_c_try_compile "$LINENO"; then :
3822  ac_cv_header_stdc=yes
3823else
3824  ac_cv_header_stdc=no
3825fi
3826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827
3828if test $ac_cv_header_stdc = yes; then
3829  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831/* end confdefs.h.  */
3832#include <string.h>
3833
3834_ACEOF
3835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3836  $EGREP "memchr" >/dev/null 2>&1; then :
3837
3838else
3839  ac_cv_header_stdc=no
3840fi
3841rm -f conftest*
3842
3843fi
3844
3845if test $ac_cv_header_stdc = yes; then
3846  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h.  */
3849#include <stdlib.h>
3850
3851_ACEOF
3852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853  $EGREP "free" >/dev/null 2>&1; then :
3854
3855else
3856  ac_cv_header_stdc=no
3857fi
3858rm -f conftest*
3859
3860fi
3861
3862if test $ac_cv_header_stdc = yes; then
3863  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3864  if test "$cross_compiling" = yes; then :
3865  :
3866else
3867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h.  */
3869#include <ctype.h>
3870#include <stdlib.h>
3871#if ((' ' & 0x0FF) == 0x020)
3872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3874#else
3875# define ISLOWER(c) \
3876		   (('a' <= (c) && (c) <= 'i') \
3877		     || ('j' <= (c) && (c) <= 'r') \
3878		     || ('s' <= (c) && (c) <= 'z'))
3879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3880#endif
3881
3882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3883int
3884main ()
3885{
3886  int i;
3887  for (i = 0; i < 256; i++)
3888    if (XOR (islower (i), ISLOWER (i))
3889	|| toupper (i) != TOUPPER (i))
3890      return 2;
3891  return 0;
3892}
3893_ACEOF
3894if ac_fn_c_try_run "$LINENO"; then :
3895
3896else
3897  ac_cv_header_stdc=no
3898fi
3899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3900  conftest.$ac_objext conftest.beam conftest.$ac_ext
3901fi
3902
3903fi
3904fi
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3906$as_echo "$ac_cv_header_stdc" >&6; }
3907if test $ac_cv_header_stdc = yes; then
3908
3909$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3910
3911fi
3912
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
3914$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3915if test "${ac_cv_header_sys_wait_h+set}" = set; then :
3916  $as_echo_n "(cached) " >&6
3917else
3918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h.  */
3920#include <sys/types.h>
3921#include <sys/wait.h>
3922#ifndef WEXITSTATUS
3923# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3924#endif
3925#ifndef WIFEXITED
3926# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3927#endif
3928
3929int
3930main ()
3931{
3932  int s;
3933  wait (&s);
3934  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939if ac_fn_c_try_compile "$LINENO"; then :
3940  ac_cv_header_sys_wait_h=yes
3941else
3942  ac_cv_header_sys_wait_h=no
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
3947$as_echo "$ac_cv_header_sys_wait_h" >&6; }
3948if test $ac_cv_header_sys_wait_h = yes; then
3949
3950$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
3951
3952fi
3953
3954
3955
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
3957$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
3958# Check whether --enable-fail_if_missing was given.
3959if test "${enable_fail_if_missing+set}" = set; then :
3960  enableval=$enable_fail_if_missing; fail_if_missing="yes"
3961else
3962  fail_if_missing="no"
3963fi
3964
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
3966$as_echo "$fail_if_missing" >&6; }
3967
3968if test -z "$CFLAGS"; then
3969  CFLAGS="-O"
3970  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3971fi
3972if test "$GCC" = yes; then
3973    gccversion=`"$CC" -dumpversion`
3974  if test "x$gccversion" = "x"; then
3975        gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3976  fi
3977    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3978    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3979    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3980  else
3981    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3982      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3983      CFLAGS="$CFLAGS -fno-strength-reduce"
3984    fi
3985  fi
3986fi
3987
3988if test "$cross_compiling" = yes; then
3989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3990$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3991fi
3992
3993test "$GCC" = yes && CPP_MM=M;
3994
3995if test -f ./toolcheck; then
3996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
3997$as_echo "$as_me: checking for buggy tools..." >&6;}
3998  sh ./toolcheck 1>&6
3999fi
4000
4001OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4002
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4004$as_echo_n "checking for BeOS... " >&6; }
4005case `uname` in
4006    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4007		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4008$as_echo "yes" >&6; };;
4009    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010$as_echo "no" >&6; };;
4011esac
4012
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4014$as_echo_n "checking for QNX... " >&6; }
4015case `uname` in
4016    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4017		test -z "$with_x" && with_x=no
4018		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4019$as_echo "yes" >&6; };;
4020    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021$as_echo "no" >&6; };;
4022esac
4023
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4025$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4026if test "`(uname) 2>/dev/null`" = Darwin; then
4027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4028$as_echo "yes" >&6; }
4029
4030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4031$as_echo_n "checking --disable-darwin argument... " >&6; }
4032  # Check whether --enable-darwin was given.
4033if test "${enable_darwin+set}" = set; then :
4034  enableval=$enable_darwin;
4035else
4036  enable_darwin="yes"
4037fi
4038
4039  if test "$enable_darwin" = "yes"; then
4040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041$as_echo "no" >&6; }
4042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4043$as_echo_n "checking if Darwin files are there... " >&6; }
4044    if test -f os_macosx.m; then
4045      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4046$as_echo "yes" >&6; }
4047    else
4048      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4049$as_echo "no, Darwin support disabled" >&6; }
4050      enable_darwin=no
4051    fi
4052  else
4053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4054$as_echo "yes, Darwin support excluded" >&6; }
4055  fi
4056
4057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4058$as_echo_n "checking --with-mac-arch argument... " >&6; }
4059
4060# Check whether --with-mac-arch was given.
4061if test "${with_mac_arch+set}" = set; then :
4062  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4063$as_echo "$MACARCH" >&6; }
4064else
4065  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4066$as_echo "defaulting to $MACARCH" >&6; }
4067fi
4068
4069
4070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4071$as_echo_n "checking --with-developer-dir argument... " >&6; }
4072
4073# Check whether --with-developer-dir was given.
4074if test "${with_developer_dir+set}" = set; then :
4075  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4076$as_echo "$DEVELOPER_DIR" >&6; }
4077else
4078  DEVELOPER_DIR=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4079$as_echo "not present" >&6; }
4080fi
4081
4082
4083  if test "x$DEVELOPER_DIR" = "x"; then
4084    # Extract the first word of "xcode-select", so it can be a program name with args.
4085set dummy xcode-select; ac_word=$2
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087$as_echo_n "checking for $ac_word... " >&6; }
4088if test "${ac_cv_path_XCODE_SELECT+set}" = set; then :
4089  $as_echo_n "(cached) " >&6
4090else
4091  case $XCODE_SELECT in
4092  [\\/]* | ?:[\\/]*)
4093  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4094  ;;
4095  *)
4096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099  IFS=$as_save_IFS
4100  test -z "$as_dir" && as_dir=.
4101    for ac_exec_ext in '' $ac_executable_extensions; do
4102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4103    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105    break 2
4106  fi
4107done
4108  done
4109IFS=$as_save_IFS
4110
4111  ;;
4112esac
4113fi
4114XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4115if test -n "$XCODE_SELECT"; then
4116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4117$as_echo "$XCODE_SELECT" >&6; }
4118else
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120$as_echo "no" >&6; }
4121fi
4122
4123
4124    if test "x$XCODE_SELECT" != "x"; then
4125      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4126$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4127      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4128      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4129$as_echo "$DEVELOPER_DIR" >&6; }
4130    else
4131      DEVELOPER_DIR=/Developer
4132    fi
4133  fi
4134
4135  if test "x$MACARCH" = "xboth"; then
4136    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4137$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4138                            save_cppflags="$CPPFLAGS"
4139    save_cflags="$CFLAGS"
4140    save_ldflags="$LDFLAGS"
4141    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4142    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143/* end confdefs.h.  */
4144
4145int
4146main ()
4147{
4148
4149  ;
4150  return 0;
4151}
4152_ACEOF
4153if ac_fn_c_try_link "$LINENO"; then :
4154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4155$as_echo "found" >&6; }
4156else
4157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4158$as_echo "not found" >&6; }
4159	CFLAGS="$save_cflags"
4160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4161$as_echo_n "checking if Intel architecture is supported... " >&6; }
4162	CPPFLAGS="$CPPFLAGS -arch i386"
4163	LDFLAGS="$save_ldflags -arch i386"
4164	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165/* end confdefs.h.  */
4166
4167int
4168main ()
4169{
4170
4171  ;
4172  return 0;
4173}
4174_ACEOF
4175if ac_fn_c_try_link "$LINENO"; then :
4176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4177$as_echo "yes" >&6; }; MACARCH="intel"
4178else
4179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180$as_echo "no" >&6; }
4181		MACARCH="ppc"
4182		CPPFLAGS="$save_cppflags -arch ppc"
4183		LDFLAGS="$save_ldflags -arch ppc"
4184fi
4185rm -f core conftest.err conftest.$ac_objext \
4186    conftest$ac_exeext conftest.$ac_ext
4187fi
4188rm -f core conftest.err conftest.$ac_objext \
4189    conftest$ac_exeext conftest.$ac_ext
4190  elif test "x$MACARCH" = "xintel"; then
4191    CPPFLAGS="$CPPFLAGS -arch intel"
4192    LDFLAGS="$LDFLAGS -arch intel"
4193  elif test "x$MACARCH" = "xppc"; then
4194    CPPFLAGS="$CPPFLAGS -arch ppc"
4195    LDFLAGS="$LDFLAGS -arch ppc"
4196  fi
4197
4198  if test "$enable_darwin" = "yes"; then
4199    MACOSX=yes
4200    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4201    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4202        CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
4203
4204                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4205for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4206		  inttypes.h stdint.h unistd.h
4207do :
4208  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4209ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4210"
4211eval as_val=\$$as_ac_Header
4212   if test "x$as_val" = x""yes; then :
4213  cat >>confdefs.h <<_ACEOF
4214#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4215_ACEOF
4216
4217fi
4218
4219done
4220
4221
4222ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4223if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
4224  CARBON=yes
4225fi
4226
4227
4228    if test "x$CARBON" = "xyes"; then
4229      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2; then
4230	with_x=no
4231      fi
4232    fi
4233  fi
4234
4235        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4236    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4237  fi
4238
4239else
4240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
4242fi
4243
4244
4245
4246
4247if test "$cross_compiling" = no; then
4248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4249$as_echo_n "checking --with-local-dir argument... " >&6; }
4250  have_local_include=''
4251  have_local_lib=''
4252
4253# Check whether --with-local-dir was given.
4254if test "${with_local_dir+set}" = set; then :
4255  withval=$with_local_dir;
4256    local_dir="$withval"
4257    case "$withval" in
4258    */*) ;;
4259    no)
4260      # avoid adding local dir to LDFLAGS and CPPFLAGS
4261      have_local_include=yes
4262      have_local_lib=yes
4263      ;;
4264    *) as_fn_error "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4265    esac
4266	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4267$as_echo "$local_dir" >&6; }
4268
4269else
4270
4271    local_dir=/usr/local
4272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4273$as_echo "Defaulting to $local_dir" >&6; }
4274
4275fi
4276
4277  if test "$GCC" = yes -a "$local_dir" != no; then
4278    echo 'void f(){}' > conftest.c
4279        have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4280    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4281    rm -f conftest.c conftest.o
4282  fi
4283  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4284    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4285    if test "$tt" = "$LDFLAGS"; then
4286      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4287    fi
4288  fi
4289  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4290    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4291    if test "$tt" = "$CPPFLAGS"; then
4292      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4293    fi
4294  fi
4295fi
4296
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4298$as_echo_n "checking --with-vim-name argument... " >&6; }
4299
4300# Check whether --with-vim-name was given.
4301if test "${with_vim_name+set}" = set; then :
4302  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4303$as_echo "$VIMNAME" >&6; }
4304else
4305  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4306$as_echo "Defaulting to $VIMNAME" >&6; }
4307fi
4308
4309
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4311$as_echo_n "checking --with-ex-name argument... " >&6; }
4312
4313# Check whether --with-ex-name was given.
4314if test "${with_ex_name+set}" = set; then :
4315  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4316$as_echo "$EXNAME" >&6; }
4317else
4318  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4319$as_echo "Defaulting to ex" >&6; }
4320fi
4321
4322
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4324$as_echo_n "checking --with-view-name argument... " >&6; }
4325
4326# Check whether --with-view-name was given.
4327if test "${with_view_name+set}" = set; then :
4328  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4329$as_echo "$VIEWNAME" >&6; }
4330else
4331  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4332$as_echo "Defaulting to view" >&6; }
4333fi
4334
4335
4336
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4338$as_echo_n "checking --with-global-runtime argument... " >&6; }
4339
4340# Check whether --with-global-runtime was given.
4341if test "${with_global_runtime+set}" = set; then :
4342  withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4343$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4344#define RUNTIME_GLOBAL "$withval"
4345_ACEOF
4346
4347else
4348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349$as_echo "no" >&6; }
4350fi
4351
4352
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4354$as_echo_n "checking --with-modified-by argument... " >&6; }
4355
4356# Check whether --with-modified-by was given.
4357if test "${with_modified_by+set}" = set; then :
4358  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4359$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4360#define MODIFIED_BY "$withval"
4361_ACEOF
4362
4363else
4364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365$as_echo "no" >&6; }
4366fi
4367
4368
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4370$as_echo_n "checking if character set is EBCDIC... " >&6; }
4371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372/* end confdefs.h.  */
4373
4374int
4375main ()
4376{
4377 /* TryCompile function for CharSet.
4378   Treat any failure as ASCII for compatibility with existing art.
4379   Use compile-time rather than run-time tests for cross-compiler
4380   tolerance.  */
4381#if '0'!=240
4382make an error "Character set is not EBCDIC"
4383#endif
4384  ;
4385  return 0;
4386}
4387_ACEOF
4388if ac_fn_c_try_compile "$LINENO"; then :
4389   # TryCompile action if true
4390cf_cv_ebcdic=yes
4391else
4392   # TryCompile action if false
4393cf_cv_ebcdic=no
4394fi
4395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396# end of TryCompile ])
4397# end of CacheVal CvEbcdic
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4399$as_echo "$cf_cv_ebcdic" >&6; }
4400case "$cf_cv_ebcdic" in  #(vi
4401    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4402
4403		line_break='"\\n"'
4404		;;
4405    *)		line_break='"\\012"';;
4406esac
4407
4408
4409if test "$cf_cv_ebcdic" = "yes"; then
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4411$as_echo_n "checking for z/OS Unix... " >&6; }
4412case `uname` in
4413    OS/390)	zOSUnix="yes";
4414										if test "$CC" = "cc"; then
4415		  ccm="$_CC_CCMODE"
4416		  ccn="CC"
4417		else
4418		  if test "$CC" = "c89"; then
4419		    ccm="$_CC_C89MODE"
4420		    ccn="C89"
4421		  else
4422		    ccm=1
4423		  fi
4424		fi
4425		if test "$ccm" != "1"; then
4426		  echo ""
4427		  echo "------------------------------------------"
4428		  echo " On z/OS Unix, the environment variable"
4429		  echo " __CC_${ccn}MODE must be set to \"1\"!"
4430		  echo " Do:"
4431		  echo "    export _CC_${ccn}MODE=1"
4432		  echo " and then call configure again."
4433		  echo "------------------------------------------"
4434		  exit 1
4435		fi
4436		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)";
4437                LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4438		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4439$as_echo "yes" >&6; }
4440		;;
4441    *)		zOSUnix="no";
4442		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443$as_echo "no" >&6; }
4444		;;
4445esac
4446fi
4447
4448if test "$zOSUnix" = "yes"; then
4449    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
4450else
4451    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
4452fi
4453
4454
4455
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
4457$as_echo_n "checking --disable-selinux argument... " >&6; }
4458# Check whether --enable-selinux was given.
4459if test "${enable_selinux+set}" = set; then :
4460  enableval=$enable_selinux;
4461else
4462  enable_selinux="yes"
4463fi
4464
4465if test "$enable_selinux" = "yes"; then
4466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467$as_echo "no" >&6; }
4468  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
4469$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4470if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
4471  $as_echo_n "(cached) " >&6
4472else
4473  ac_check_lib_save_LIBS=$LIBS
4474LIBS="-lselinux  $LIBS"
4475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477
4478/* Override any GCC internal prototype to avoid an error.
4479   Use char because int might match the return type of a GCC
4480   builtin and then its argument prototype would still apply.  */
4481#ifdef __cplusplus
4482extern "C"
4483#endif
4484char is_selinux_enabled ();
4485int
4486main ()
4487{
4488return is_selinux_enabled ();
4489  ;
4490  return 0;
4491}
4492_ACEOF
4493if ac_fn_c_try_link "$LINENO"; then :
4494  ac_cv_lib_selinux_is_selinux_enabled=yes
4495else
4496  ac_cv_lib_selinux_is_selinux_enabled=no
4497fi
4498rm -f core conftest.err conftest.$ac_objext \
4499    conftest$ac_exeext conftest.$ac_ext
4500LIBS=$ac_check_lib_save_LIBS
4501fi
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4503$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4504if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
4505  LIBS="$LIBS -lselinux"
4506	   $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
4507
4508fi
4509
4510else
4511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4512$as_echo "yes" >&6; }
4513fi
4514
4515
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
4517$as_echo_n "checking --with-features argument... " >&6; }
4518
4519# Check whether --with-features was given.
4520if test "${with_features+set}" = set; then :
4521  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
4522$as_echo "$features" >&6; }
4523else
4524  features="normal"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to normal" >&5
4525$as_echo "Defaulting to normal" >&6; }
4526fi
4527
4528
4529dovimdiff=""
4530dogvimdiff=""
4531case "$features" in
4532  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
4533 ;;
4534  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
4535 ;;
4536  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
4537 dovimdiff="installvimdiff";
4538			dogvimdiff="installgvimdiff" ;;
4539  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
4540 dovimdiff="installvimdiff";
4541			dogvimdiff="installgvimdiff" ;;
4542  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
4543 dovimdiff="installvimdiff";
4544			dogvimdiff="installgvimdiff" ;;
4545  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
4546$as_echo "Sorry, $features is not supported" >&6; } ;;
4547esac
4548
4549
4550
4551
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
4553$as_echo_n "checking --with-compiledby argument... " >&6; }
4554
4555# Check whether --with-compiledby was given.
4556if test "${with_compiledby+set}" = set; then :
4557  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4558$as_echo "$withval" >&6; }
4559else
4560  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561$as_echo "no" >&6; }
4562fi
4563
4564
4565
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
4567$as_echo_n "checking --disable-xsmp argument... " >&6; }
4568# Check whether --enable-xsmp was given.
4569if test "${enable_xsmp+set}" = set; then :
4570  enableval=$enable_xsmp;
4571else
4572  enable_xsmp="yes"
4573fi
4574
4575
4576if test "$enable_xsmp" = "yes"; then
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
4580$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4581  # Check whether --enable-xsmp-interact was given.
4582if test "${enable_xsmp_interact+set}" = set; then :
4583  enableval=$enable_xsmp_interact;
4584else
4585  enable_xsmp_interact="yes"
4586fi
4587
4588  if test "$enable_xsmp_interact" = "yes"; then
4589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590$as_echo "no" >&6; }
4591    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
4592
4593  else
4594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4595$as_echo "yes" >&6; }
4596  fi
4597else
4598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4599$as_echo "yes" >&6; }
4600fi
4601
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
4603$as_echo_n "checking --enable-luainterp argument... " >&6; }
4604# Check whether --enable-luainterp was given.
4605if test "${enable_luainterp+set}" = set; then :
4606  enableval=$enable_luainterp;
4607else
4608  enable_luainterp="no"
4609fi
4610
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
4612$as_echo "$enable_luainterp" >&6; }
4613
4614if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
4615
4616
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
4618$as_echo_n "checking --with-lua-prefix argument... " >&6; }
4619
4620# Check whether --with-lua_prefix was given.
4621if test "${with_lua_prefix+set}" = set; then :
4622  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
4623$as_echo "$with_lua_prefix" >&6; }
4624else
4625  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626$as_echo "no" >&6; }
4627fi
4628
4629
4630  if test "X$with_lua_prefix" != "X"; then
4631       vi_cv_path_lua_pfx="$with_lua_prefix"
4632  else
4633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
4634$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
4635    if test "X$LUA_PREFIX" != "X"; then
4636	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
4637$as_echo "\"$LUA_PREFIX\"" >&6; }
4638	vi_cv_path_lua_pfx="$LUA_PREFIX"
4639    else
4640	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
4641$as_echo "not set, default to /usr" >&6; }
4642	vi_cv_path_lua_pfx="/usr"
4643    fi
4644  fi
4645
4646  LUA_INC=
4647  if test "X$vi_cv_path_lua_pfx" != "X"; then
4648    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
4649$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
4650    if test -f $vi_cv_path_lua_pfx/include/lua.h; then
4651      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4652$as_echo "yes" >&6; }
4653    else
4654      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655$as_echo "no" >&6; }
4656            # Extract the first word of "lua", so it can be a program name with args.
4657set dummy lua; ac_word=$2
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659$as_echo_n "checking for $ac_word... " >&6; }
4660if test "${ac_cv_path_vi_cv_path_lua+set}" = set; then :
4661  $as_echo_n "(cached) " >&6
4662else
4663  case $vi_cv_path_lua in
4664  [\\/]* | ?:[\\/]*)
4665  ac_cv_path_vi_cv_path_lua="$vi_cv_path_lua" # Let the user override the test with a path.
4666  ;;
4667  *)
4668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH
4670do
4671  IFS=$as_save_IFS
4672  test -z "$as_dir" && as_dir=.
4673    for ac_exec_ext in '' $ac_executable_extensions; do
4674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675    ac_cv_path_vi_cv_path_lua="$as_dir/$ac_word$ac_exec_ext"
4676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677    break 2
4678  fi
4679done
4680  done
4681IFS=$as_save_IFS
4682
4683  ;;
4684esac
4685fi
4686vi_cv_path_lua=$ac_cv_path_vi_cv_path_lua
4687if test -n "$vi_cv_path_lua"; then
4688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_lua" >&5
4689$as_echo "$vi_cv_path_lua" >&6; }
4690else
4691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692$as_echo "no" >&6; }
4693fi
4694
4695
4696      if test "X$vi_cv_path_lua" != "X"; then
4697                { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
4698$as_echo_n "checking Lua version... " >&6; }
4699if test "${vi_cv_version_lua+set}" = set; then :
4700  $as_echo_n "(cached) " >&6
4701else
4702   vi_cv_version_lua=`${vi_cv_path_lua} -e "print(_VERSION)" | sed 's/.* //'`
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua" >&5
4705$as_echo "$vi_cv_version_lua" >&6; }
4706        { $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
4707$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
4708        if test -f $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h; then
4709          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4710$as_echo "yes" >&6; }
4711          LUA_INC=/lua$vi_cv_version_lua
4712        else
4713          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714$as_echo "no" >&6; }
4715          vi_cv_path_lua_pfx=
4716        fi
4717      fi
4718    fi
4719  fi
4720
4721  if test "X$vi_cv_path_lua_pfx" != "X"; then
4722    if test "X$vi_cv_version_lua" != "X"; then
4723            LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
4724    else
4725      LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
4726    fi
4727    LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
4728    LUA_SRC="if_lua.c"
4729    LUA_OBJ="objects/if_lua.o"
4730    LUA_PRO="if_lua.pro"
4731    $as_echo "#define FEAT_LUA 1" >>confdefs.h
4732
4733    if test "$enable_luainterp" = "dynamic"; then
4734                  for i in 0 1 2 3 4 5 6 7 8 9; do
4735	if test -f "${vi_cv_path_lua_pfx}/lib/liblua${vi_cv_version_lua}.so.$i"; then
4736	  LUA_SONAME=".$i"
4737	  break
4738	fi
4739      done
4740      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
4741
4742      LUA_LIBS=""
4743      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua${vi_cv_version_lua}.so$LUA_SONAME\\\" $LUA_CFLAGS"
4744    fi
4745  fi
4746  if test "$fail_if_missing" = "yes" -a -z "$LUA_SRC"; then
4747    as_fn_error "could not configure lua" "$LINENO" 5
4748  fi
4749
4750
4751
4752
4753
4754fi
4755
4756
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
4758$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4759# Check whether --enable-mzschemeinterp was given.
4760if test "${enable_mzschemeinterp+set}" = set; then :
4761  enableval=$enable_mzschemeinterp;
4762else
4763  enable_mzschemeinterp="no"
4764fi
4765
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
4767$as_echo "$enable_mzschemeinterp" >&6; }
4768
4769if test "$enable_mzschemeinterp" = "yes"; then
4770
4771
4772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
4773$as_echo_n "checking --with-plthome argument... " >&6; }
4774
4775# Check whether --with-plthome was given.
4776if test "${with_plthome+set}" = set; then :
4777  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
4778$as_echo "$with_plthome" >&6; }
4779else
4780  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
4781$as_echo "\"no\"" >&6; }
4782fi
4783
4784
4785  if test "X$with_plthome" != "X"; then
4786       vi_cv_path_mzscheme_pfx="$with_plthome"
4787  else
4788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
4789$as_echo_n "checking PLTHOME environment var... " >&6; }
4790    if test "X$PLTHOME" != "X"; then
4791	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
4792$as_echo "\"$PLTHOME\"" >&6; }
4793	vi_cv_path_mzscheme_pfx="$PLTHOME"
4794    else
4795	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
4796$as_echo "not set" >&6; }
4797		# Extract the first word of "mzscheme", so it can be a program name with args.
4798set dummy mzscheme; ac_word=$2
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  case $vi_cv_path_mzscheme in
4805  [\\/]* | ?:[\\/]*)
4806  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4807  ;;
4808  *)
4809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812  IFS=$as_save_IFS
4813  test -z "$as_dir" && as_dir=.
4814    for ac_exec_ext in '' $ac_executable_extensions; do
4815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818    break 2
4819  fi
4820done
4821  done
4822IFS=$as_save_IFS
4823
4824  ;;
4825esac
4826fi
4827vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4828if test -n "$vi_cv_path_mzscheme"; then
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
4830$as_echo "$vi_cv_path_mzscheme" >&6; }
4831else
4832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833$as_echo "no" >&6; }
4834fi
4835
4836
4837
4838			if test "X$vi_cv_path_mzscheme" != "X"; then
4839	  lsout=`ls -l $vi_cv_path_mzscheme`
4840	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4841	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4842	  fi
4843	fi
4844
4845	if test "X$vi_cv_path_mzscheme" != "X"; then
4846	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
4847$as_echo_n "checking MzScheme install prefix... " >&6; }
4848if test "${vi_cv_path_mzscheme_pfx+set}" = set; then :
4849  $as_echo_n "(cached) " >&6
4850else
4851  	    	    echo "(display (simplify-path		\
4852	       (build-path (call-with-values	\
4853		(lambda () (split-path (find-system-path (quote exec-file)))) \
4854		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4855	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4856		sed -e 's+/$++'`
4857fi
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
4859$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4860	    rm -f mzdirs.scm
4861	fi
4862    fi
4863  fi
4864
4865  SCHEME_INC=
4866  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4868$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4869    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4870      SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4871      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4872$as_echo "yes" >&6; }
4873    else
4874      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875$as_echo "no" >&6; }
4876      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4877$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4878      if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4879	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4880$as_echo "yes" >&6; }
4881	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4882      else
4883	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }
4885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
4886$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
4887	if test -f $vi_cv_path_mzscheme_pfx/include/racket/scheme.h; then
4888	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4889$as_echo "yes" >&6; }
4890	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
4891	else
4892	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893$as_echo "no" >&6; }
4894	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
4895$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4896	  if test -f /usr/include/plt/scheme.h; then
4897	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4898$as_echo "yes" >&6; }
4899	    SCHEME_INC=/usr/include/plt
4900	  else
4901	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902$as_echo "no" >&6; }
4903	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
4904$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
4905	    if test -f /usr/include/racket/scheme.h; then
4906	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4907$as_echo "yes" >&6; }
4908	      SCHEME_INC=/usr/include/racket
4909	    else
4910	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911$as_echo "no" >&6; }
4912	      vi_cv_path_mzscheme_pfx=
4913	    fi
4914	  fi
4915	fi
4916      fi
4917    fi
4918  fi
4919
4920  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4921    if test "x$MACOSX" = "xyes"; then
4922      MZSCHEME_LIBS="-framework PLT_MzScheme"
4923    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4924      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4925      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4926    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"; then
4927      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"
4928      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4929    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.a"; then
4930      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4931    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"; then
4932      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4933    else
4934            if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4935        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4936	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4937      elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.so"; then
4938        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket3m"
4939	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4940      elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.so"; then
4941        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket -lmzgc"
4942      else
4943        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4944      fi
4945      if test "$GCC" = yes; then
4946			MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4947      elif test "`(uname) 2>/dev/null`" = SunOS &&
4948			       uname -r | grep '^5' >/dev/null; then
4949	MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4950      fi
4951    fi
4952    if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4953      SCHEME_COLLECTS=lib/plt/
4954    else
4955      if test -d $vi_cv_path_mzscheme_pfx/lib/racket/collects; then
4956	SCHEME_COLLECTS=lib/racket/
4957      fi
4958    fi
4959    if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4960      MZSCHEME_EXTRA="mzscheme_base.c"
4961    else
4962      if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
4963	MZSCHEME_EXTRA="mzscheme_base.c"
4964      fi
4965    fi
4966    if test "X$MZSCHEME_EXTRA" != "X" ; then
4967            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4968      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4969    fi
4970    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4971      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4972    MZSCHEME_SRC="if_mzsch.c"
4973    MZSCHEME_OBJ="objects/if_mzsch.o"
4974    MZSCHEME_PRO="if_mzsch.pro"
4975    $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
4976
4977  fi
4978
4979
4980
4981
4982
4983
4984
4985fi
4986
4987
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
4989$as_echo_n "checking --enable-perlinterp argument... " >&6; }
4990# Check whether --enable-perlinterp was given.
4991if test "${enable_perlinterp+set}" = set; then :
4992  enableval=$enable_perlinterp;
4993else
4994  enable_perlinterp="no"
4995fi
4996
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
4998$as_echo "$enable_perlinterp" >&6; }
4999if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
5000
5001  # Extract the first word of "perl", so it can be a program name with args.
5002set dummy perl; ac_word=$2
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004$as_echo_n "checking for $ac_word... " >&6; }
5005if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then :
5006  $as_echo_n "(cached) " >&6
5007else
5008  case $vi_cv_path_perl in
5009  [\\/]* | ?:[\\/]*)
5010  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
5011  ;;
5012  *)
5013  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016  IFS=$as_save_IFS
5017  test -z "$as_dir" && as_dir=.
5018    for ac_exec_ext in '' $ac_executable_extensions; do
5019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
5021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022    break 2
5023  fi
5024done
5025  done
5026IFS=$as_save_IFS
5027
5028  ;;
5029esac
5030fi
5031vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
5032if test -n "$vi_cv_path_perl"; then
5033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
5034$as_echo "$vi_cv_path_perl" >&6; }
5035else
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037$as_echo "no" >&6; }
5038fi
5039
5040
5041  if test "X$vi_cv_path_perl" != "X"; then
5042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
5043$as_echo_n "checking Perl version... " >&6; }
5044    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
5045     eval `$vi_cv_path_perl -V:usethreads`
5046     eval `$vi_cv_path_perl -V:libperl`
5047     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
5048       badthreads=no
5049     else
5050       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
5051	 eval `$vi_cv_path_perl -V:use5005threads`
5052	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
5053	   badthreads=no
5054	 else
5055	   badthreads=yes
5056	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
5057$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
5058	 fi
5059       else
5060	 badthreads=yes
5061	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
5062$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
5063       fi
5064     fi
5065     if test $badthreads = no; then
5066      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
5067$as_echo "OK" >&6; }
5068      eval `$vi_cv_path_perl -V:shrpenv`
5069      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
5070	shrpenv=""
5071      fi
5072      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
5073
5074            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
5075	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
5076            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
5077		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
5078			-e 's/-bE:perl.exp//' -e 's/-lc //'`
5079                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
5080		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
5081
5082                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
5083$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
5084      cflags_save=$CFLAGS
5085      libs_save=$LIBS
5086      ldflags_save=$LDFLAGS
5087      CFLAGS="$CFLAGS $perlcppflags"
5088      LIBS="$LIBS $perllibs"
5089      LDFLAGS="$perlldflags $LDFLAGS"
5090      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h.  */
5092
5093int
5094main ()
5095{
5096
5097  ;
5098  return 0;
5099}
5100_ACEOF
5101if ac_fn_c_try_link "$LINENO"; then :
5102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5103$as_echo "yes" >&6; }; perl_ok=yes
5104else
5105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
5106$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5107fi
5108rm -f core conftest.err conftest.$ac_objext \
5109    conftest$ac_exeext conftest.$ac_ext
5110      CFLAGS=$cflags_save
5111      LIBS=$libs_save
5112      LDFLAGS=$ldflags_save
5113      if test $perl_ok = yes; then
5114	if test "X$perlcppflags" != "X"; then
5115	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5116	fi
5117	if test "X$perlldflags" != "X"; then
5118	  LDFLAGS="$perlldflags $LDFLAGS"
5119	fi
5120	PERL_LIBS=$perllibs
5121	PERL_SRC="auto/if_perl.c if_perlsfio.c"
5122	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5123	PERL_PRO="if_perl.pro if_perlsfio.pro"
5124	$as_echo "#define FEAT_PERL 1" >>confdefs.h
5125
5126      fi
5127     fi
5128    else
5129      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5130$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5131    fi
5132  fi
5133
5134  if test "x$MACOSX" = "xyes"; then
5135        dir=/System/Library/Perl
5136    darwindir=$dir/darwin
5137    if test -d $darwindir; then
5138      PERL=/usr/bin/perl
5139    else
5140            dir=/System/Library/Perl/5.8.1
5141      darwindir=$dir/darwin-thread-multi-2level
5142      if test -d $darwindir; then
5143	PERL=/usr/bin/perl
5144      fi
5145    fi
5146    if test -n "$PERL"; then
5147      PERL_DIR="$dir"
5148      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5149      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5150      PERL_LIBS="-L$darwindir/CORE -lperl"
5151    fi
5152                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5153    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5154  fi
5155  if test "$enable_perlinterp" = "dynamic"; then
5156    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
5157      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
5158
5159      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
5160    fi
5161  fi
5162
5163  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
5164    as_fn_error "could not configure perl" "$LINENO" 5
5165  fi
5166fi
5167
5168
5169
5170
5171
5172
5173
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
5175$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5176# Check whether --enable-pythoninterp was given.
5177if test "${enable_pythoninterp+set}" = set; then :
5178  enableval=$enable_pythoninterp;
5179else
5180  enable_pythoninterp="no"
5181fi
5182
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
5184$as_echo "$enable_pythoninterp" >&6; }
5185if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
5186    # Extract the first word of "python", so it can be a program name with args.
5187set dummy python; ac_word=$2
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189$as_echo_n "checking for $ac_word... " >&6; }
5190if test "${ac_cv_path_vi_cv_path_python+set}" = set; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  case $vi_cv_path_python in
5194  [\\/]* | ?:[\\/]*)
5195  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5196  ;;
5197  *)
5198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201  IFS=$as_save_IFS
5202  test -z "$as_dir" && as_dir=.
5203    for ac_exec_ext in '' $ac_executable_extensions; do
5204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207    break 2
5208  fi
5209done
5210  done
5211IFS=$as_save_IFS
5212
5213  ;;
5214esac
5215fi
5216vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5217if test -n "$vi_cv_path_python"; then
5218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
5219$as_echo "$vi_cv_path_python" >&6; }
5220else
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222$as_echo "no" >&6; }
5223fi
5224
5225
5226  if test "X$vi_cv_path_python" != "X"; then
5227
5228        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
5229$as_echo_n "checking Python version... " >&6; }
5230if test "${vi_cv_var_python_version+set}" = set; then :
5231  $as_echo_n "(cached) " >&6
5232else
5233  vi_cv_var_python_version=`
5234	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5235
5236fi
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
5238$as_echo "$vi_cv_var_python_version" >&6; }
5239
5240        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 1.4 or better" >&5
5241$as_echo_n "checking Python is 1.4 or better... " >&6; }
5242    if ${vi_cv_path_python} -c \
5243	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5244    then
5245      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
5246$as_echo "yep" >&6; }
5247
5248            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
5249$as_echo_n "checking Python's install prefix... " >&6; }
5250if test "${vi_cv_path_python_pfx+set}" = set; then :
5251  $as_echo_n "(cached) " >&6
5252else
5253   vi_cv_path_python_pfx=`
5254	    ${vi_cv_path_python} -c \
5255		"import sys; print sys.prefix"`
5256fi
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
5258$as_echo "$vi_cv_path_python_pfx" >&6; }
5259
5260            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
5261$as_echo_n "checking Python's execution prefix... " >&6; }
5262if test "${vi_cv_path_python_epfx+set}" = set; then :
5263  $as_echo_n "(cached) " >&6
5264else
5265   vi_cv_path_python_epfx=`
5266	    ${vi_cv_path_python} -c \
5267		"import sys; print sys.exec_prefix"`
5268fi
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
5270$as_echo "$vi_cv_path_python_epfx" >&6; }
5271
5272
5273      if test "${vi_cv_path_pythonpath+set}" = set; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276   vi_cv_path_pythonpath=`
5277	    unset PYTHONPATH;
5278	    ${vi_cv_path_python} -c \
5279		"import sys, string; print string.join(sys.path,':')"`
5280fi
5281
5282
5283
5284
5285# Check whether --with-python-config-dir was given.
5286if test "${with_python_config_dir+set}" = set; then :
5287  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5288fi
5289
5290
5291      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
5292$as_echo_n "checking Python's configuration directory... " >&6; }
5293if test "${vi_cv_path_python_conf+set}" = set; then :
5294  $as_echo_n "(cached) " >&6
5295else
5296
5297	vi_cv_path_python_conf=
5298	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5299	  for subdir in lib64 lib share; do
5300	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5301	    if test -d "$d" && test -f "$d/config.c"; then
5302	      vi_cv_path_python_conf="$d"
5303	    fi
5304	  done
5305	done
5306
5307fi
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
5309$as_echo "$vi_cv_path_python_conf" >&6; }
5310
5311      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5312
5313      if test "X$PYTHON_CONFDIR" = "X"; then
5314	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
5315$as_echo "can't find it!" >&6; }
5316      else
5317
5318			if test "${vi_cv_path_python_plibs+set}" = set; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321
5322	    pwd=`pwd`
5323	    tmp_mkf="$pwd/config-PyMake$$"
5324	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5325__:
5326	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
5327	@echo "python_LIBS='$(LIBS)'"
5328	@echo "python_SYSLIBS='$(SYSLIBS)'"
5329	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5330	@echo "python_INSTSONAME='$(INSTSONAME)'"
5331eof
5332	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5333	    rm -f -- "${tmp_mkf}"
5334	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5335		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5336	      vi_cv_path_python_plibs="-framework Python"
5337	    else
5338	      if test "${vi_cv_var_python_version}" = "1.4"; then
5339		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5340	      else
5341		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5342	      fi
5343	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5344	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5345	    fi
5346
5347fi
5348
5349
5350	PYTHON_LIBS="${vi_cv_path_python_plibs}"
5351	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5352	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME=\\\"${vi_cv_path_python_pfx}\\\""
5353	else
5354	  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} -DPYTHON_HOME=\\\"${vi_cv_path_python_pfx}\\\""
5355	fi
5356	PYTHON_SRC="if_python.c"
5357		if test "x$MACOSX" = "xyes"; then
5358	  PYTHON_OBJ="objects/if_python.o"
5359	else
5360	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5361	fi
5362	if test "${vi_cv_var_python_version}" = "1.4"; then
5363	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5364	fi
5365    PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5366
5367								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
5368$as_echo_n "checking if -pthread should be used... " >&6; }
5369	threadsafe_flag=
5370	thread_lib=
5371	        if test "`(uname) 2>/dev/null`" != Darwin; then
5372	  test "$GCC" = yes && threadsafe_flag="-pthread"
5373	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
5374	    threadsafe_flag="-D_THREAD_SAFE"
5375	    thread_lib="-pthread"
5376	  fi
5377	fi
5378	libs_save_old=$LIBS
5379	if test -n "$threadsafe_flag"; then
5380	  cflags_save=$CFLAGS
5381	  CFLAGS="$CFLAGS $threadsafe_flag"
5382	  LIBS="$LIBS $thread_lib"
5383	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h.  */
5385
5386int
5387main ()
5388{
5389
5390  ;
5391  return 0;
5392}
5393_ACEOF
5394if ac_fn_c_try_link "$LINENO"; then :
5395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5396$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5397else
5398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399$as_echo "no" >&6; }; LIBS=$libs_save_old
5400
5401fi
5402rm -f core conftest.err conftest.$ac_objext \
5403    conftest$ac_exeext conftest.$ac_ext
5404	  CFLAGS=$cflags_save
5405	else
5406	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408	fi
5409
5410			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
5411$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5412	cflags_save=$CFLAGS
5413	libs_save=$LIBS
5414	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5415	LIBS="$LIBS $PYTHON_LIBS"
5416	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417/* end confdefs.h.  */
5418
5419int
5420main ()
5421{
5422
5423  ;
5424  return 0;
5425}
5426_ACEOF
5427if ac_fn_c_try_link "$LINENO"; then :
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429$as_echo "yes" >&6; }; python_ok=yes
5430else
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
5432$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5433fi
5434rm -f core conftest.err conftest.$ac_objext \
5435    conftest$ac_exeext conftest.$ac_ext
5436	CFLAGS=$cflags_save
5437	LIBS=$libs_save
5438	if test $python_ok = yes; then
5439	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
5440
5441	else
5442	  LIBS=$libs_save_old
5443	  PYTHON_SRC=
5444	  PYTHON_OBJ=
5445	  PYTHON_LIBS=
5446	  PYTHON_CFLAGS=
5447	fi
5448
5449      fi
5450    else
5451      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
5452$as_echo "too old" >&6; }
5453    fi
5454  fi
5455
5456  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
5457    as_fn_error "could not configure python" "$LINENO" 5
5458  fi
5459fi
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
5470$as_echo_n "checking --enable-python3interp argument... " >&6; }
5471# Check whether --enable-python3interp was given.
5472if test "${enable_python3interp+set}" = set; then :
5473  enableval=$enable_python3interp;
5474else
5475  enable_python3interp="no"
5476fi
5477
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
5479$as_echo "$enable_python3interp" >&6; }
5480if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
5481    # Extract the first word of "python3", so it can be a program name with args.
5482set dummy python3; ac_word=$2
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484$as_echo_n "checking for $ac_word... " >&6; }
5485if test "${ac_cv_path_vi_cv_path_python3+set}" = set; then :
5486  $as_echo_n "(cached) " >&6
5487else
5488  case $vi_cv_path_python3 in
5489  [\\/]* | ?:[\\/]*)
5490  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
5491  ;;
5492  *)
5493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496  IFS=$as_save_IFS
5497  test -z "$as_dir" && as_dir=.
5498    for ac_exec_ext in '' $ac_executable_extensions; do
5499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
5501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502    break 2
5503  fi
5504done
5505  done
5506IFS=$as_save_IFS
5507
5508  ;;
5509esac
5510fi
5511vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
5512if test -n "$vi_cv_path_python3"; then
5513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
5514$as_echo "$vi_cv_path_python3" >&6; }
5515else
5516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517$as_echo "no" >&6; }
5518fi
5519
5520
5521  if test "X$vi_cv_path_python3" != "X"; then
5522
5523        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
5524$as_echo_n "checking Python version... " >&6; }
5525if test "${vi_cv_var_python3_version+set}" = set; then :
5526  $as_echo_n "(cached) " >&6
5527else
5528  vi_cv_var_python3_version=`
5529          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
5530
5531fi
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
5533$as_echo "$vi_cv_var_python3_version" >&6; }
5534
5535        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
5536$as_echo_n "checking Python's abiflags... " >&6; }
5537if test "${vi_cv_var_python3_abiflags+set}" = set; then :
5538  $as_echo_n "(cached) " >&6
5539else
5540
5541     vi_cv_var_python3_abiflags=
5542     if ${vi_cv_path_python3} -c \
5543         "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
5544     then
5545       vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
5546         "import sys; print(sys.abiflags)"`
5547     fi
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
5550$as_echo "$vi_cv_var_python3_abiflags" >&6; }
5551
5552        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
5553$as_echo_n "checking Python's install prefix... " >&6; }
5554if test "${vi_cv_path_python3_pfx+set}" = set; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557   vi_cv_path_python3_pfx=`
5558     ${vi_cv_path_python3} -c \
5559     "import sys; print(sys.prefix)"`
5560fi
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
5562$as_echo "$vi_cv_path_python3_pfx" >&6; }
5563
5564        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
5565$as_echo_n "checking Python's execution prefix... " >&6; }
5566if test "${vi_cv_path_python3_epfx+set}" = set; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569   vi_cv_path_python3_epfx=`
5570     ${vi_cv_path_python3} -c \
5571     "import sys; print(sys.exec_prefix)"`
5572fi
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
5574$as_echo "$vi_cv_path_python3_epfx" >&6; }
5575
5576
5577    if test "${vi_cv_path_python3path+set}" = set; then :
5578  $as_echo_n "(cached) " >&6
5579else
5580   vi_cv_path_python3path=`
5581     unset PYTHONPATH;
5582     ${vi_cv_path_python3} -c \
5583     "import sys, string; print(':'.join(sys.path))"`
5584fi
5585
5586
5587
5588
5589# Check whether --with-python3-config-dir was given.
5590if test "${with_python3_config_dir+set}" = set; then :
5591  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"
5592fi
5593
5594
5595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
5596$as_echo_n "checking Python's configuration directory... " >&6; }
5597if test "${vi_cv_path_python3_conf+set}" = set; then :
5598  $as_echo_n "(cached) " >&6
5599else
5600
5601     vi_cv_path_python3_conf=
5602     config_dir="config"
5603     if test "${vi_cv_var_python3_abiflags}" != ""; then
5604       config_dir="${config_dir}-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
5605     fi
5606     for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
5607       for subdir in lib64 lib share; do
5608         d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
5609         if test -d "$d" && test -f "$d/config.c"; then
5610           vi_cv_path_python3_conf="$d"
5611         fi
5612       done
5613     done
5614
5615fi
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
5617$as_echo "$vi_cv_path_python3_conf" >&6; }
5618
5619    PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
5620
5621    if test "X$PYTHON3_CONFDIR" = "X"; then
5622      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
5623$as_echo "can't find it!" >&6; }
5624    else
5625
5626                  if test "${vi_cv_path_python3_plibs+set}" = set; then :
5627  $as_echo_n "(cached) " >&6
5628else
5629
5630          pwd=`pwd`
5631          tmp_mkf="$pwd/config-PyMake$$"
5632          cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5633__:
5634	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
5635	@echo "python3_LIBS='$(LIBS)'"
5636	@echo "python3_SYSLIBS='$(SYSLIBS)'"
5637	@echo "python3_INSTSONAME='$(INSTSONAME)'"
5638eof
5639                    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5640          rm -f -- "${tmp_mkf}"
5641	  vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
5642          vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
5643                    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
5644          vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
5645
5646fi
5647
5648
5649      PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
5650      if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
5651        PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME=L\\\"${vi_cv_path_python3_pfx}\\\""
5652      else
5653        PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -I${vi_cv_path_python3_epfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME=L\\\"${vi_cv_path_python3_pfx}\\\""
5654      fi
5655      PYTHON3_SRC="if_python3.c"
5656            if test "x$MACOSX" = "xyes"; then
5657        PYTHON3_OBJ="objects/if_python3.o"
5658      else
5659        PYTHON3_OBJ="objects/if_python3.o objects/py3_config.o"
5660      fi
5661
5662                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
5663$as_echo_n "checking if -pthread should be used... " >&6; }
5664      threadsafe_flag=
5665      thread_lib=
5666            if test "`(uname) 2>/dev/null`" != Darwin; then
5667        test "$GCC" = yes && threadsafe_flag="-pthread"
5668        if test "`(uname) 2>/dev/null`" = FreeBSD; then
5669          threadsafe_flag="-D_THREAD_SAFE"
5670          thread_lib="-pthread"
5671        fi
5672      fi
5673      libs_save_old=$LIBS
5674      if test -n "$threadsafe_flag"; then
5675        cflags_save=$CFLAGS
5676        CFLAGS="$CFLAGS $threadsafe_flag"
5677        LIBS="$LIBS $thread_lib"
5678        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679/* end confdefs.h.  */
5680
5681int
5682main ()
5683{
5684
5685  ;
5686  return 0;
5687}
5688_ACEOF
5689if ac_fn_c_try_link "$LINENO"; then :
5690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5691$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
5692else
5693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }; LIBS=$libs_save_old
5695
5696fi
5697rm -f core conftest.err conftest.$ac_objext \
5698    conftest$ac_exeext conftest.$ac_ext
5699        CFLAGS=$cflags_save
5700      else
5701        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703      fi
5704
5705                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
5706$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
5707      cflags_save=$CFLAGS
5708      libs_save=$LIBS
5709      CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
5710      LIBS="$LIBS $PYTHON3_LIBS"
5711      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h.  */
5713
5714int
5715main ()
5716{
5717
5718  ;
5719  return 0;
5720}
5721_ACEOF
5722if ac_fn_c_try_link "$LINENO"; then :
5723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5724$as_echo "yes" >&6; }; python3_ok=yes
5725else
5726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
5727$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
5728fi
5729rm -f core conftest.err conftest.$ac_objext \
5730    conftest$ac_exeext conftest.$ac_ext
5731      CFLAGS=$cflags_save
5732      LIBS=$libs_save
5733      if test "$python3_ok" = yes; then
5734        $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
5735
5736      else
5737        LIBS=$libs_save_old
5738        PYTHON3_SRC=
5739        PYTHON3_OBJ=
5740        PYTHON3_LIBS=
5741        PYTHON3_CFLAGS=
5742      fi
5743    fi
5744  fi
5745fi
5746
5747
5748
5749
5750
5751
5752
5753if test "$python_ok" = yes && test "$python3_ok" = yes; then
5754  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
5755
5756  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
5757
5758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
5759$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
5760  cflags_save=$CFLAGS
5761  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5762  ldflags_save=$LDFLAGS
5763    LDFLAGS="-ldl $LDFLAGS"
5764  if test "$cross_compiling" = yes; then :
5765  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5767as_fn_error "cannot run test program while cross compiling
5768See \`config.log' for more details." "$LINENO" 5; }
5769else
5770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h.  */
5772
5773    #include <dlfcn.h>
5774    /* If this program fails, then RTLD_GLOBAL is needed.
5775     * RTLD_GLOBAL will be used and then it is not possible to
5776     * have both python versions enabled in the same vim instance.
5777     * Only the first pyhton version used will be switched on.
5778     */
5779
5780    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
5781    {
5782      int needed = 0;
5783      void* pylib = dlopen(python_instsoname, RTLD_LAZY);
5784      if (pylib != 0)
5785      {
5786          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
5787          void (*init)(void) = dlsym(pylib, "Py_Initialize");
5788          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
5789          void (*final)(void) = dlsym(pylib, "Py_Finalize");
5790          (*pfx)(prefix);
5791          (*init)();
5792          needed = (*simple)("import termios") == -1;
5793          (*final)();
5794          dlclose(pylib);
5795      }
5796      return !needed;
5797    }
5798
5799    int main(int argc, char** argv)
5800    {
5801      int not_needed = 0;
5802      if (no_rtl_global_needed_for("${python_INSTSONAME}", "${vi_cv_path_python_pfx}"))
5803            not_needed = 1;
5804      return !not_needed;
5805    }
5806_ACEOF
5807if ac_fn_c_try_run "$LINENO"; then :
5808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5809$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
5810
5811else
5812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813$as_echo "no" >&6; }
5814fi
5815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5816  conftest.$ac_objext conftest.beam conftest.$ac_ext
5817fi
5818
5819
5820  CFLAGS=$cflags_save
5821  LDFLAGS=$ldflags_save
5822
5823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
5824$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
5825  cflags_save=$CFLAGS
5826  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
5827  ldflags_save=$LDFLAGS
5828    LDFLAGS="-ldl $LDFLAGS"
5829  if test "$cross_compiling" = yes; then :
5830  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5832as_fn_error "cannot run test program while cross compiling
5833See \`config.log' for more details." "$LINENO" 5; }
5834else
5835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836/* end confdefs.h.  */
5837
5838    #include <dlfcn.h>
5839    #include <wchar.h>
5840    /* If this program fails, then RTLD_GLOBAL is needed.
5841     * RTLD_GLOBAL will be used and then it is not possible to
5842     * have both python versions enabled in the same vim instance.
5843     * Only the first pyhton version used will be switched on.
5844     */
5845
5846    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
5847    {
5848      int needed = 0;
5849      void* pylib = dlopen(python_instsoname, RTLD_LAZY);
5850      if (pylib != 0)
5851      {
5852          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
5853          void (*init)(void) = dlsym(pylib, "Py_Initialize");
5854          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
5855          void (*final)(void) = dlsym(pylib, "Py_Finalize");
5856          (*pfx)(prefix);
5857          (*init)();
5858          needed = (*simple)("import termios") == -1;
5859          (*final)();
5860          dlclose(pylib);
5861      }
5862      return !needed;
5863    }
5864
5865    int main(int argc, char** argv)
5866    {
5867      int not_needed = 0;
5868      if (no_rtl_global_needed_for("${python3_INSTSONAME}", L"${vi_cv_path_python3_pfx}"))
5869            not_needed = 1;
5870      return !not_needed;
5871    }
5872_ACEOF
5873if ac_fn_c_try_run "$LINENO"; then :
5874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5875$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
5876
5877else
5878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879$as_echo "no" >&6; }
5880fi
5881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5882  conftest.$ac_objext conftest.beam conftest.$ac_ext
5883fi
5884
5885
5886  CFLAGS=$cflags_save
5887  LDFLAGS=$ldflags_save
5888
5889  PYTHON_SRC="if_python.c"
5890  PYTHON_OBJ="objects/if_python.o"
5891  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${python_INSTSONAME}\\\""
5892  PYTHON_LIBS=
5893  PYTHON3_SRC="if_python3.c"
5894  PYTHON3_OBJ="objects/if_python3.o"
5895  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${python3_INSTSONAME}\\\""
5896  PYTHON3_LIBS=
5897elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
5898  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
5899
5900  PYTHON_SRC="if_python.c"
5901  PYTHON_OBJ="objects/if_python.o"
5902  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${python_INSTSONAME}\\\""
5903  PYTHON_LIBS=
5904elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
5905  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
5906
5907  PYTHON3_SRC="if_python3.c"
5908  PYTHON3_OBJ="objects/if_python3.o"
5909  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${python3_INSTSONAME}\\\""
5910  PYTHON3_LIBS=
5911fi
5912
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
5914$as_echo_n "checking --enable-tclinterp argument... " >&6; }
5915# Check whether --enable-tclinterp was given.
5916if test "${enable_tclinterp+set}" = set; then :
5917  enableval=$enable_tclinterp;
5918else
5919  enable_tclinterp="no"
5920fi
5921
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
5923$as_echo "$enable_tclinterp" >&6; }
5924
5925if test "$enable_tclinterp" = "yes"; then
5926
5927    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
5928$as_echo_n "checking --with-tclsh argument... " >&6; }
5929
5930# Check whether --with-tclsh was given.
5931if test "${with_tclsh+set}" = set; then :
5932  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
5933$as_echo "$tclsh_name" >&6; }
5934else
5935  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936$as_echo "no" >&6; }
5937fi
5938
5939  # Extract the first word of "$tclsh_name", so it can be a program name with args.
5940set dummy $tclsh_name; ac_word=$2
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942$as_echo_n "checking for $ac_word... " >&6; }
5943if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5944  $as_echo_n "(cached) " >&6
5945else
5946  case $vi_cv_path_tcl in
5947  [\\/]* | ?:[\\/]*)
5948  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5949  ;;
5950  *)
5951  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952for as_dir in $PATH
5953do
5954  IFS=$as_save_IFS
5955  test -z "$as_dir" && as_dir=.
5956    for ac_exec_ext in '' $ac_executable_extensions; do
5957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960    break 2
5961  fi
5962done
5963  done
5964IFS=$as_save_IFS
5965
5966  ;;
5967esac
5968fi
5969vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5970if test -n "$vi_cv_path_tcl"; then
5971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5972$as_echo "$vi_cv_path_tcl" >&6; }
5973else
5974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975$as_echo "no" >&6; }
5976fi
5977
5978
5979
5980
5981    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5982    tclsh_name="tclsh8.4"
5983    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5984set dummy $tclsh_name; ac_word=$2
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986$as_echo_n "checking for $ac_word... " >&6; }
5987if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5988  $as_echo_n "(cached) " >&6
5989else
5990  case $vi_cv_path_tcl in
5991  [\\/]* | ?:[\\/]*)
5992  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5993  ;;
5994  *)
5995  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998  IFS=$as_save_IFS
5999  test -z "$as_dir" && as_dir=.
6000    for ac_exec_ext in '' $ac_executable_extensions; do
6001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004    break 2
6005  fi
6006done
6007  done
6008IFS=$as_save_IFS
6009
6010  ;;
6011esac
6012fi
6013vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6014if test -n "$vi_cv_path_tcl"; then
6015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6016$as_echo "$vi_cv_path_tcl" >&6; }
6017else
6018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019$as_echo "no" >&6; }
6020fi
6021
6022
6023  fi
6024  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
6025    tclsh_name="tclsh8.2"
6026    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6027set dummy $tclsh_name; ac_word=$2
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029$as_echo_n "checking for $ac_word... " >&6; }
6030if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
6031  $as_echo_n "(cached) " >&6
6032else
6033  case $vi_cv_path_tcl in
6034  [\\/]* | ?:[\\/]*)
6035  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6036  ;;
6037  *)
6038  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041  IFS=$as_save_IFS
6042  test -z "$as_dir" && as_dir=.
6043    for ac_exec_ext in '' $ac_executable_extensions; do
6044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047    break 2
6048  fi
6049done
6050  done
6051IFS=$as_save_IFS
6052
6053  ;;
6054esac
6055fi
6056vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6057if test -n "$vi_cv_path_tcl"; then
6058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6059$as_echo "$vi_cv_path_tcl" >&6; }
6060else
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062$as_echo "no" >&6; }
6063fi
6064
6065
6066  fi
6067  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
6068    tclsh_name="tclsh8.0"
6069    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6070set dummy $tclsh_name; ac_word=$2
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072$as_echo_n "checking for $ac_word... " >&6; }
6073if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
6074  $as_echo_n "(cached) " >&6
6075else
6076  case $vi_cv_path_tcl in
6077  [\\/]* | ?:[\\/]*)
6078  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6079  ;;
6080  *)
6081  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084  IFS=$as_save_IFS
6085  test -z "$as_dir" && as_dir=.
6086    for ac_exec_ext in '' $ac_executable_extensions; do
6087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090    break 2
6091  fi
6092done
6093  done
6094IFS=$as_save_IFS
6095
6096  ;;
6097esac
6098fi
6099vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6100if test -n "$vi_cv_path_tcl"; then
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6102$as_echo "$vi_cv_path_tcl" >&6; }
6103else
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108
6109  fi
6110    if test "X$vi_cv_path_tcl" = "X"; then
6111    tclsh_name="tclsh"
6112    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6113set dummy $tclsh_name; ac_word=$2
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115$as_echo_n "checking for $ac_word... " >&6; }
6116if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  case $vi_cv_path_tcl in
6120  [\\/]* | ?:[\\/]*)
6121  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6122  ;;
6123  *)
6124  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125for as_dir in $PATH
6126do
6127  IFS=$as_save_IFS
6128  test -z "$as_dir" && as_dir=.
6129    for ac_exec_ext in '' $ac_executable_extensions; do
6130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133    break 2
6134  fi
6135done
6136  done
6137IFS=$as_save_IFS
6138
6139  ;;
6140esac
6141fi
6142vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6143if test -n "$vi_cv_path_tcl"; then
6144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6145$as_echo "$vi_cv_path_tcl" >&6; }
6146else
6147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148$as_echo "no" >&6; }
6149fi
6150
6151
6152  fi
6153  if test "X$vi_cv_path_tcl" != "X"; then
6154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
6155$as_echo_n "checking Tcl version... " >&6; }
6156    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
6157      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
6158      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
6159$as_echo "$tclver - OK" >&6; };
6160      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 -`
6161
6162      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
6163$as_echo_n "checking for location of Tcl include... " >&6; }
6164      if test "x$MACOSX" != "xyes"; then
6165	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
6166      else
6167		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
6168      fi
6169      TCL_INC=
6170      for try in $tclinc; do
6171	if test -f "$try/tcl.h"; then
6172	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
6173$as_echo "$try/tcl.h" >&6; }
6174	  TCL_INC=$try
6175	  break
6176	fi
6177      done
6178      if test -z "$TCL_INC"; then
6179	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6180$as_echo "<not found>" >&6; }
6181	SKIP_TCL=YES
6182      fi
6183      if test -z "$SKIP_TCL"; then
6184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
6185$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
6186	if test "x$MACOSX" != "xyes"; then
6187	  tclcnf=`echo $tclinc | sed s/include/lib/g`
6188	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
6189	else
6190	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
6191	fi
6192	for try in $tclcnf; do
6193	  if test -f $try/tclConfig.sh; then
6194	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
6195$as_echo "$try/tclConfig.sh" >&6; }
6196	    . $try/tclConfig.sh
6197	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
6198	    	    	    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'`
6199	    break
6200	  fi
6201	done
6202	if test -z "$TCL_LIBS"; then
6203	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6204$as_echo "<not found>" >&6; }
6205	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
6206$as_echo_n "checking for Tcl library by myself... " >&6; }
6207	  tcllib=`echo $tclinc | sed s/include/lib/g`
6208	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
6209	  for ext in .so .a ; do
6210	    for ver in "" $tclver ; do
6211	      for try in $tcllib ; do
6212		trylib=tcl$ver$ext
6213		if test -f $try/lib$trylib ; then
6214		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
6215$as_echo "$try/lib$trylib" >&6; }
6216		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
6217		  if test "`(uname) 2>/dev/null`" = SunOS &&
6218					 uname -r | grep '^5' >/dev/null; then
6219		    TCL_LIBS="$TCL_LIBS -R $try"
6220		  fi
6221		  break 3
6222		fi
6223	      done
6224	    done
6225	  done
6226	  if test -z "$TCL_LIBS"; then
6227	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6228$as_echo "<not found>" >&6; }
6229	    SKIP_TCL=YES
6230	  fi
6231	fi
6232	if test -z "$SKIP_TCL"; then
6233	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
6234
6235	  TCL_SRC=if_tcl.c
6236	  TCL_OBJ=objects/if_tcl.o
6237	  TCL_PRO=if_tcl.pro
6238	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
6239	fi
6240      fi
6241    else
6242      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
6243$as_echo "too old; need Tcl version 8.0 or later" >&6; }
6244    fi
6245  fi
6246  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
6247    as_fn_error "could not configure Tcl" "$LINENO" 5
6248  fi
6249fi
6250
6251
6252
6253
6254
6255
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
6257$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
6258# Check whether --enable-rubyinterp was given.
6259if test "${enable_rubyinterp+set}" = set; then :
6260  enableval=$enable_rubyinterp;
6261else
6262  enable_rubyinterp="no"
6263fi
6264
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
6266$as_echo "$enable_rubyinterp" >&6; }
6267if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
6268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
6269$as_echo_n "checking --with-ruby-command argument... " >&6; }
6270
6271
6272# Check whether --with-ruby-command was given.
6273if test "${with_ruby_command+set}" = set; then :
6274  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
6275$as_echo "$RUBY_CMD" >&6; }
6276else
6277  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
6278$as_echo "defaulting to $RUBY_CMD" >&6; }
6279fi
6280
6281  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
6282set dummy $RUBY_CMD; ac_word=$2
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
6285if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then :
6286  $as_echo_n "(cached) " >&6
6287else
6288  case $vi_cv_path_ruby in
6289  [\\/]* | ?:[\\/]*)
6290  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
6291  ;;
6292  *)
6293  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296  IFS=$as_save_IFS
6297  test -z "$as_dir" && as_dir=.
6298    for ac_exec_ext in '' $ac_executable_extensions; do
6299  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
6301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302    break 2
6303  fi
6304done
6305  done
6306IFS=$as_save_IFS
6307
6308  ;;
6309esac
6310fi
6311vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
6312if test -n "$vi_cv_path_ruby"; then
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
6314$as_echo "$vi_cv_path_ruby" >&6; }
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320
6321  if test "X$vi_cv_path_ruby" != "X"; then
6322    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
6323$as_echo_n "checking Ruby version... " >&6; }
6324    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
6325      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6326$as_echo "OK" >&6; }
6327      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
6328$as_echo_n "checking Ruby header files... " >&6; }
6329      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
6330      if test "X$rubyhdrdir" != "X"; then
6331	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
6332$as_echo "$rubyhdrdir" >&6; }
6333	RUBY_CFLAGS="-I$rubyhdrdir"
6334        rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
6335        if test -d "$rubyhdrdir/$rubyarch"; then
6336          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
6337        fi
6338        rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
6339        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
6340	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
6341	if test "X$rubylibs" != "X"; then
6342	  RUBY_LIBS="$rubylibs"
6343	fi
6344	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
6345	librubya=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBY_A"])'`
6346  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
6347	if test -f "$rubylibdir/$librubya"; then
6348	  librubyarg="$librubyarg"
6349    RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
6350  elif test "$librubyarg" = "libruby.a"; then
6351        librubyarg="-lruby"
6352    RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
6353	fi
6354
6355	if test "X$librubyarg" != "X"; then
6356	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
6357	fi
6358	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
6359	if test "X$rubyldflags" != "X"; then
6360	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6361	  if test "X$rubyldflags" != "X"; then
6362	    LDFLAGS="$rubyldflags $LDFLAGS"
6363	  fi
6364	fi
6365	RUBY_SRC="if_ruby.c"
6366	RUBY_OBJ="objects/if_ruby.o"
6367	RUBY_PRO="if_ruby.pro"
6368	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
6369
6370	if test "$enable_rubyinterp" = "dynamic"; then
6371	  libruby=`$vi_cv_path_ruby -r rbconfig -e 'printf "lib%s.%s\n", Config::CONFIG["RUBY_SO_NAME"], Config::CONFIG["DLEXT"]'`
6372	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
6373
6374	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
6375	  RUBY_LIBS=
6376	fi
6377      else
6378	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
6379$as_echo "not found; disabling Ruby" >&6; }
6380      fi
6381    else
6382      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
6383$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
6384    fi
6385  fi
6386
6387  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
6388    as_fn_error "could not configure Ruby" "$LINENO" 5
6389  fi
6390fi
6391
6392
6393
6394
6395
6396
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
6398$as_echo_n "checking --enable-cscope argument... " >&6; }
6399# Check whether --enable-cscope was given.
6400if test "${enable_cscope+set}" = set; then :
6401  enableval=$enable_cscope;
6402else
6403  enable_cscope="no"
6404fi
6405
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
6407$as_echo "$enable_cscope" >&6; }
6408if test "$enable_cscope" = "yes"; then
6409  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
6410
6411fi
6412
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
6414$as_echo_n "checking --enable-workshop argument... " >&6; }
6415# Check whether --enable-workshop was given.
6416if test "${enable_workshop+set}" = set; then :
6417  enableval=$enable_workshop;
6418else
6419  enable_workshop="no"
6420fi
6421
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
6423$as_echo "$enable_workshop" >&6; }
6424if test "$enable_workshop" = "yes"; then
6425  $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
6426
6427  WORKSHOP_SRC="workshop.c integration.c"
6428
6429  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
6430
6431  if test "${enable_gui-xxx}" = xxx; then
6432    enable_gui=motif
6433  fi
6434fi
6435
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
6437$as_echo_n "checking --disable-netbeans argument... " >&6; }
6438# Check whether --enable-netbeans was given.
6439if test "${enable_netbeans+set}" = set; then :
6440  enableval=$enable_netbeans;
6441else
6442  enable_netbeans="yes"
6443fi
6444
6445if test "$enable_netbeans" = "yes"; then
6446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
6448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
6449$as_echo_n "checking for socket in -lsocket... " >&6; }
6450if test "${ac_cv_lib_socket_socket+set}" = set; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  ac_check_lib_save_LIBS=$LIBS
6454LIBS="-lsocket  $LIBS"
6455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456/* end confdefs.h.  */
6457
6458/* Override any GCC internal prototype to avoid an error.
6459   Use char because int might match the return type of a GCC
6460   builtin and then its argument prototype would still apply.  */
6461#ifdef __cplusplus
6462extern "C"
6463#endif
6464char socket ();
6465int
6466main ()
6467{
6468return socket ();
6469  ;
6470  return 0;
6471}
6472_ACEOF
6473if ac_fn_c_try_link "$LINENO"; then :
6474  ac_cv_lib_socket_socket=yes
6475else
6476  ac_cv_lib_socket_socket=no
6477fi
6478rm -f core conftest.err conftest.$ac_objext \
6479    conftest$ac_exeext conftest.$ac_ext
6480LIBS=$ac_check_lib_save_LIBS
6481fi
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6483$as_echo "$ac_cv_lib_socket_socket" >&6; }
6484if test "x$ac_cv_lib_socket_socket" = x""yes; then :
6485  cat >>confdefs.h <<_ACEOF
6486#define HAVE_LIBSOCKET 1
6487_ACEOF
6488
6489  LIBS="-lsocket $LIBS"
6490
6491fi
6492
6493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6494$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6495if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6496  $as_echo_n "(cached) " >&6
6497else
6498  ac_check_lib_save_LIBS=$LIBS
6499LIBS="-lnsl  $LIBS"
6500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h.  */
6502
6503/* Override any GCC internal prototype to avoid an error.
6504   Use char because int might match the return type of a GCC
6505   builtin and then its argument prototype would still apply.  */
6506#ifdef __cplusplus
6507extern "C"
6508#endif
6509char gethostbyname ();
6510int
6511main ()
6512{
6513return gethostbyname ();
6514  ;
6515  return 0;
6516}
6517_ACEOF
6518if ac_fn_c_try_link "$LINENO"; then :
6519  ac_cv_lib_nsl_gethostbyname=yes
6520else
6521  ac_cv_lib_nsl_gethostbyname=no
6522fi
6523rm -f core conftest.err conftest.$ac_objext \
6524    conftest$ac_exeext conftest.$ac_ext
6525LIBS=$ac_check_lib_save_LIBS
6526fi
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6528$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6529if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6530  cat >>confdefs.h <<_ACEOF
6531#define HAVE_LIBNSL 1
6532_ACEOF
6533
6534  LIBS="-lnsl $LIBS"
6535
6536fi
6537
6538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling netbeans integration is possible" >&5
6539$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541/* end confdefs.h.  */
6542
6543#include <stdio.h>
6544#include <stdlib.h>
6545#include <stdarg.h>
6546#include <fcntl.h>
6547#include <netdb.h>
6548#include <netinet/in.h>
6549#include <errno.h>
6550#include <sys/types.h>
6551#include <sys/socket.h>
6552	/* Check bitfields */
6553	struct nbbuf {
6554	unsigned int  initDone:1;
6555	ushort signmaplen;
6556	};
6557
6558int
6559main ()
6560{
6561
6562		/* Check creating a socket. */
6563		struct sockaddr_in server;
6564		(void)socket(AF_INET, SOCK_STREAM, 0);
6565		(void)htons(100);
6566		(void)gethostbyname("microsoft.com");
6567		if (errno == ECONNREFUSED)
6568		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6569
6570  ;
6571  return 0;
6572}
6573_ACEOF
6574if ac_fn_c_try_link "$LINENO"; then :
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6576$as_echo "yes" >&6; }
6577else
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }; enable_netbeans="no"
6580fi
6581rm -f core conftest.err conftest.$ac_objext \
6582    conftest$ac_exeext conftest.$ac_ext
6583else
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6585$as_echo "yes" >&6; }
6586fi
6587if test "$enable_netbeans" = "yes"; then
6588  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
6589
6590  NETBEANS_SRC="netbeans.c"
6591
6592  NETBEANS_OBJ="objects/netbeans.o"
6593
6594fi
6595
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5
6597$as_echo_n "checking --enable-sniff argument... " >&6; }
6598# Check whether --enable-sniff was given.
6599if test "${enable_sniff+set}" = set; then :
6600  enableval=$enable_sniff;
6601else
6602  enable_sniff="no"
6603fi
6604
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sniff" >&5
6606$as_echo "$enable_sniff" >&6; }
6607if test "$enable_sniff" = "yes"; then
6608  $as_echo "#define FEAT_SNIFF 1" >>confdefs.h
6609
6610  SNIFF_SRC="if_sniff.c"
6611
6612  SNIFF_OBJ="objects/if_sniff.o"
6613
6614fi
6615
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
6617$as_echo_n "checking --enable-multibyte argument... " >&6; }
6618# Check whether --enable-multibyte was given.
6619if test "${enable_multibyte+set}" = set; then :
6620  enableval=$enable_multibyte;
6621else
6622  enable_multibyte="no"
6623fi
6624
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
6626$as_echo "$enable_multibyte" >&6; }
6627if test "$enable_multibyte" = "yes"; then
6628  $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
6629
6630fi
6631
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
6633$as_echo_n "checking --enable-hangulinput argument... " >&6; }
6634# Check whether --enable-hangulinput was given.
6635if test "${enable_hangulinput+set}" = set; then :
6636  enableval=$enable_hangulinput;
6637else
6638  enable_hangulinput="no"
6639fi
6640
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
6642$as_echo "$enable_hangulinput" >&6; }
6643
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
6645$as_echo_n "checking --enable-xim argument... " >&6; }
6646# Check whether --enable-xim was given.
6647if test "${enable_xim+set}" = set; then :
6648  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
6649$as_echo "$enable_xim" >&6; }
6650else
6651  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
6652$as_echo "defaulting to auto" >&6; }
6653fi
6654
6655
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
6657$as_echo_n "checking --enable-fontset argument... " >&6; }
6658# Check whether --enable-fontset was given.
6659if test "${enable_fontset+set}" = set; then :
6660  enableval=$enable_fontset;
6661else
6662  enable_fontset="no"
6663fi
6664
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
6666$as_echo "$enable_fontset" >&6; }
6667
6668test -z "$with_x" && with_x=yes
6669test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6670if test "$with_x" = no; then
6671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
6672$as_echo "defaulting to: don't HAVE_X11" >&6; }
6673else
6674
6675  # Extract the first word of "xmkmf", so it can be a program name with args.
6676set dummy xmkmf; ac_word=$2
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678$as_echo_n "checking for $ac_word... " >&6; }
6679if test "${ac_cv_path_xmkmfpath+set}" = set; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  case $xmkmfpath in
6683  [\\/]* | ?:[\\/]*)
6684  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6685  ;;
6686  *)
6687  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690  IFS=$as_save_IFS
6691  test -z "$as_dir" && as_dir=.
6692    for ac_exec_ext in '' $ac_executable_extensions; do
6693  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696    break 2
6697  fi
6698done
6699  done
6700IFS=$as_save_IFS
6701
6702  ;;
6703esac
6704fi
6705xmkmfpath=$ac_cv_path_xmkmfpath
6706if test -n "$xmkmfpath"; then
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
6708$as_echo "$xmkmfpath" >&6; }
6709else
6710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711$as_echo "no" >&6; }
6712fi
6713
6714
6715
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6717$as_echo_n "checking for X... " >&6; }
6718
6719
6720# Check whether --with-x was given.
6721if test "${with_x+set}" = set; then :
6722  withval=$with_x;
6723fi
6724
6725# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6726if test "x$with_x" = xno; then
6727  # The user explicitly disabled X.
6728  have_x=disabled
6729else
6730  case $x_includes,$x_libraries in #(
6731    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6732    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  # One or both of the vars are not set, and there is no cached value.
6736ac_x_includes=no ac_x_libraries=no
6737rm -f -r conftest.dir
6738if mkdir conftest.dir; then
6739  cd conftest.dir
6740  cat >Imakefile <<'_ACEOF'
6741incroot:
6742	@echo incroot='${INCROOT}'
6743usrlibdir:
6744	@echo usrlibdir='${USRLIBDIR}'
6745libdir:
6746	@echo libdir='${LIBDIR}'
6747_ACEOF
6748  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6749    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6750    for ac_var in incroot usrlibdir libdir; do
6751      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6752    done
6753    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6754    for ac_extension in a so sl dylib la dll; do
6755      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6756	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6757	ac_im_usrlibdir=$ac_im_libdir; break
6758      fi
6759    done
6760    # Screen out bogus values from the imake configuration.  They are
6761    # bogus both because they are the default anyway, and because
6762    # using them would break gcc on systems where it needs fixed includes.
6763    case $ac_im_incroot in
6764	/usr/include) ac_x_includes= ;;
6765	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6766    esac
6767    case $ac_im_usrlibdir in
6768	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
6769	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6770    esac
6771  fi
6772  cd ..
6773  rm -f -r conftest.dir
6774fi
6775
6776# Standard set of common directories for X headers.
6777# Check X11 before X11Rn because it is often a symlink to the current release.
6778ac_x_header_dirs='
6779/usr/X11/include
6780/usr/X11R7/include
6781/usr/X11R6/include
6782/usr/X11R5/include
6783/usr/X11R4/include
6784
6785/usr/include/X11
6786/usr/include/X11R7
6787/usr/include/X11R6
6788/usr/include/X11R5
6789/usr/include/X11R4
6790
6791/usr/local/X11/include
6792/usr/local/X11R7/include
6793/usr/local/X11R6/include
6794/usr/local/X11R5/include
6795/usr/local/X11R4/include
6796
6797/usr/local/include/X11
6798/usr/local/include/X11R7
6799/usr/local/include/X11R6
6800/usr/local/include/X11R5
6801/usr/local/include/X11R4
6802
6803/usr/X386/include
6804/usr/x386/include
6805/usr/XFree86/include/X11
6806
6807/usr/include
6808/usr/local/include
6809/usr/unsupported/include
6810/usr/athena/include
6811/usr/local/x11r5/include
6812/usr/lpp/Xamples/include
6813
6814/usr/openwin/include
6815/usr/openwin/share/include'
6816
6817if test "$ac_x_includes" = no; then
6818  # Guess where to find include files, by looking for Xlib.h.
6819  # First, try using that file with no special directory specified.
6820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h.  */
6822#include <X11/Xlib.h>
6823_ACEOF
6824if ac_fn_c_try_cpp "$LINENO"; then :
6825  # We can compile using X headers with no special include directory.
6826ac_x_includes=
6827else
6828  for ac_dir in $ac_x_header_dirs; do
6829  if test -r "$ac_dir/X11/Xlib.h"; then
6830    ac_x_includes=$ac_dir
6831    break
6832  fi
6833done
6834fi
6835rm -f conftest.err conftest.$ac_ext
6836fi # $ac_x_includes = no
6837
6838if test "$ac_x_libraries" = no; then
6839  # Check for the libraries.
6840  # See if we find them without any special options.
6841  # Don't add to $LIBS permanently.
6842  ac_save_LIBS=$LIBS
6843  LIBS="-lX11 $LIBS"
6844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846#include <X11/Xlib.h>
6847int
6848main ()
6849{
6850XrmInitialize ()
6851  ;
6852  return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_link "$LINENO"; then :
6856  LIBS=$ac_save_LIBS
6857# We can link X programs with no special library path.
6858ac_x_libraries=
6859else
6860  LIBS=$ac_save_LIBS
6861for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6862do
6863  # Don't even attempt the hair of trying to link an X program!
6864  for ac_extension in a so sl dylib la dll; do
6865    if test -r "$ac_dir/libX11.$ac_extension"; then
6866      ac_x_libraries=$ac_dir
6867      break 2
6868    fi
6869  done
6870done
6871fi
6872rm -f core conftest.err conftest.$ac_objext \
6873    conftest$ac_exeext conftest.$ac_ext
6874fi # $ac_x_libraries = no
6875
6876case $ac_x_includes,$ac_x_libraries in #(
6877  no,* | *,no | *\'*)
6878    # Didn't find X, or a directory has "'" in its name.
6879    ac_cv_have_x="have_x=no";; #(
6880  *)
6881    # Record where we found X for the cache.
6882    ac_cv_have_x="have_x=yes\
6883	ac_x_includes='$ac_x_includes'\
6884	ac_x_libraries='$ac_x_libraries'"
6885esac
6886fi
6887;; #(
6888    *) have_x=yes;;
6889  esac
6890  eval "$ac_cv_have_x"
6891fi # $with_x != no
6892
6893if test "$have_x" != yes; then
6894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6895$as_echo "$have_x" >&6; }
6896  no_x=yes
6897else
6898  # If each of the values was on the command line, it overrides each guess.
6899  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6900  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6901  # Update the cache value to reflect the command line values.
6902  ac_cv_have_x="have_x=yes\
6903	ac_x_includes='$x_includes'\
6904	ac_x_libraries='$x_libraries'"
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6906$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6907fi
6908
6909if test "$no_x" = yes; then
6910  # Not all programs may use this symbol, but it does not hurt to define it.
6911
6912$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6913
6914  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6915else
6916  if test -n "$x_includes"; then
6917    X_CFLAGS="$X_CFLAGS -I$x_includes"
6918  fi
6919
6920  # It would also be nice to do this for all -L options, not just this one.
6921  if test -n "$x_libraries"; then
6922    X_LIBS="$X_LIBS -L$x_libraries"
6923    # For Solaris; some versions of Sun CC require a space after -R and
6924    # others require no space.  Words are not sufficient . . . .
6925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6926$as_echo_n "checking whether -R must be followed by a space... " >&6; }
6927    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6928    ac_xsave_c_werror_flag=$ac_c_werror_flag
6929    ac_c_werror_flag=yes
6930    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931/* end confdefs.h.  */
6932
6933int
6934main ()
6935{
6936
6937  ;
6938  return 0;
6939}
6940_ACEOF
6941if ac_fn_c_try_link "$LINENO"; then :
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
6944       X_LIBS="$X_LIBS -R$x_libraries"
6945else
6946  LIBS="$ac_xsave_LIBS -R $x_libraries"
6947       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949
6950int
6951main ()
6952{
6953
6954  ;
6955  return 0;
6956}
6957_ACEOF
6958if ac_fn_c_try_link "$LINENO"; then :
6959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6960$as_echo "yes" >&6; }
6961	  X_LIBS="$X_LIBS -R $x_libraries"
6962else
6963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6964$as_echo "neither works" >&6; }
6965fi
6966rm -f core conftest.err conftest.$ac_objext \
6967    conftest$ac_exeext conftest.$ac_ext
6968fi
6969rm -f core conftest.err conftest.$ac_objext \
6970    conftest$ac_exeext conftest.$ac_ext
6971    ac_c_werror_flag=$ac_xsave_c_werror_flag
6972    LIBS=$ac_xsave_LIBS
6973  fi
6974
6975  # Check for system-dependent libraries X programs must link with.
6976  # Do this before checking for the system-independent R6 libraries
6977  # (-lICE), since we may need -lsocket or whatever for X linking.
6978
6979  if test "$ISC" = yes; then
6980    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6981  else
6982    # Martyn Johnson says this is needed for Ultrix, if the X
6983    # libraries were built with DECnet support.  And Karl Berry says
6984    # the Alpha needs dnet_stub (dnet does not exist).
6985    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h.  */
6988
6989/* Override any GCC internal prototype to avoid an error.
6990   Use char because int might match the return type of a GCC
6991   builtin and then its argument prototype would still apply.  */
6992#ifdef __cplusplus
6993extern "C"
6994#endif
6995char XOpenDisplay ();
6996int
6997main ()
6998{
6999return XOpenDisplay ();
7000  ;
7001  return 0;
7002}
7003_ACEOF
7004if ac_fn_c_try_link "$LINENO"; then :
7005
7006else
7007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7008$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7009if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7010  $as_echo_n "(cached) " >&6
7011else
7012  ac_check_lib_save_LIBS=$LIBS
7013LIBS="-ldnet  $LIBS"
7014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016
7017/* Override any GCC internal prototype to avoid an error.
7018   Use char because int might match the return type of a GCC
7019   builtin and then its argument prototype would still apply.  */
7020#ifdef __cplusplus
7021extern "C"
7022#endif
7023char dnet_ntoa ();
7024int
7025main ()
7026{
7027return dnet_ntoa ();
7028  ;
7029  return 0;
7030}
7031_ACEOF
7032if ac_fn_c_try_link "$LINENO"; then :
7033  ac_cv_lib_dnet_dnet_ntoa=yes
7034else
7035  ac_cv_lib_dnet_dnet_ntoa=no
7036fi
7037rm -f core conftest.err conftest.$ac_objext \
7038    conftest$ac_exeext conftest.$ac_ext
7039LIBS=$ac_check_lib_save_LIBS
7040fi
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7042$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7043if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7044  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7045fi
7046
7047    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7048      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7049$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7050if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  ac_check_lib_save_LIBS=$LIBS
7054LIBS="-ldnet_stub  $LIBS"
7055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056/* end confdefs.h.  */
7057
7058/* Override any GCC internal prototype to avoid an error.
7059   Use char because int might match the return type of a GCC
7060   builtin and then its argument prototype would still apply.  */
7061#ifdef __cplusplus
7062extern "C"
7063#endif
7064char dnet_ntoa ();
7065int
7066main ()
7067{
7068return dnet_ntoa ();
7069  ;
7070  return 0;
7071}
7072_ACEOF
7073if ac_fn_c_try_link "$LINENO"; then :
7074  ac_cv_lib_dnet_stub_dnet_ntoa=yes
7075else
7076  ac_cv_lib_dnet_stub_dnet_ntoa=no
7077fi
7078rm -f core conftest.err conftest.$ac_objext \
7079    conftest$ac_exeext conftest.$ac_ext
7080LIBS=$ac_check_lib_save_LIBS
7081fi
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7083$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7084if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7085  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7086fi
7087
7088    fi
7089fi
7090rm -f core conftest.err conftest.$ac_objext \
7091    conftest$ac_exeext conftest.$ac_ext
7092    LIBS="$ac_xsave_LIBS"
7093
7094    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
7095    # to get the SysV transport functions.
7096    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7097    # needs -lnsl.
7098    # The nsl library prevents programs from opening the X display
7099    # on Irix 5.2, according to T.E. Dickey.
7100    # The functions gethostbyname, getservbyname, and inet_addr are
7101    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7102    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7103if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7104
7105fi
7106
7107    if test $ac_cv_func_gethostbyname = no; then
7108      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7109$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7110if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  ac_check_lib_save_LIBS=$LIBS
7114LIBS="-lnsl  $LIBS"
7115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117
7118/* Override any GCC internal prototype to avoid an error.
7119   Use char because int might match the return type of a GCC
7120   builtin and then its argument prototype would still apply.  */
7121#ifdef __cplusplus
7122extern "C"
7123#endif
7124char gethostbyname ();
7125int
7126main ()
7127{
7128return gethostbyname ();
7129  ;
7130  return 0;
7131}
7132_ACEOF
7133if ac_fn_c_try_link "$LINENO"; then :
7134  ac_cv_lib_nsl_gethostbyname=yes
7135else
7136  ac_cv_lib_nsl_gethostbyname=no
7137fi
7138rm -f core conftest.err conftest.$ac_objext \
7139    conftest$ac_exeext conftest.$ac_ext
7140LIBS=$ac_check_lib_save_LIBS
7141fi
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7143$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7144if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7145  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7146fi
7147
7148      if test $ac_cv_lib_nsl_gethostbyname = no; then
7149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7150$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7151if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7152  $as_echo_n "(cached) " >&6
7153else
7154  ac_check_lib_save_LIBS=$LIBS
7155LIBS="-lbsd  $LIBS"
7156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h.  */
7158
7159/* Override any GCC internal prototype to avoid an error.
7160   Use char because int might match the return type of a GCC
7161   builtin and then its argument prototype would still apply.  */
7162#ifdef __cplusplus
7163extern "C"
7164#endif
7165char gethostbyname ();
7166int
7167main ()
7168{
7169return gethostbyname ();
7170  ;
7171  return 0;
7172}
7173_ACEOF
7174if ac_fn_c_try_link "$LINENO"; then :
7175  ac_cv_lib_bsd_gethostbyname=yes
7176else
7177  ac_cv_lib_bsd_gethostbyname=no
7178fi
7179rm -f core conftest.err conftest.$ac_objext \
7180    conftest$ac_exeext conftest.$ac_ext
7181LIBS=$ac_check_lib_save_LIBS
7182fi
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7184$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7185if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7186  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7187fi
7188
7189      fi
7190    fi
7191
7192    # [email protected] says without -lsocket,
7193    # socket/setsockopt and other routines are undefined under SCO ODT
7194    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7195    # on later versions), says Simon Leinen: it contains gethostby*
7196    # variants that don't use the name server (or something).  -lsocket
7197    # must be given before -lnsl if both are needed.  We assume that
7198    # if connect needs -lnsl, so does gethostbyname.
7199    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7200if test "x$ac_cv_func_connect" = x""yes; then :
7201
7202fi
7203
7204    if test $ac_cv_func_connect = no; then
7205      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7206$as_echo_n "checking for connect in -lsocket... " >&6; }
7207if test "${ac_cv_lib_socket_connect+set}" = set; then :
7208  $as_echo_n "(cached) " >&6
7209else
7210  ac_check_lib_save_LIBS=$LIBS
7211LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h.  */
7214
7215/* Override any GCC internal prototype to avoid an error.
7216   Use char because int might match the return type of a GCC
7217   builtin and then its argument prototype would still apply.  */
7218#ifdef __cplusplus
7219extern "C"
7220#endif
7221char connect ();
7222int
7223main ()
7224{
7225return connect ();
7226  ;
7227  return 0;
7228}
7229_ACEOF
7230if ac_fn_c_try_link "$LINENO"; then :
7231  ac_cv_lib_socket_connect=yes
7232else
7233  ac_cv_lib_socket_connect=no
7234fi
7235rm -f core conftest.err conftest.$ac_objext \
7236    conftest$ac_exeext conftest.$ac_ext
7237LIBS=$ac_check_lib_save_LIBS
7238fi
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7240$as_echo "$ac_cv_lib_socket_connect" >&6; }
7241if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7242  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7243fi
7244
7245    fi
7246
7247    # Guillermo Gomez says -lposix is necessary on A/UX.
7248    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7249if test "x$ac_cv_func_remove" = x""yes; then :
7250
7251fi
7252
7253    if test $ac_cv_func_remove = no; then
7254      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7255$as_echo_n "checking for remove in -lposix... " >&6; }
7256if test "${ac_cv_lib_posix_remove+set}" = set; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  ac_check_lib_save_LIBS=$LIBS
7260LIBS="-lposix  $LIBS"
7261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262/* end confdefs.h.  */
7263
7264/* Override any GCC internal prototype to avoid an error.
7265   Use char because int might match the return type of a GCC
7266   builtin and then its argument prototype would still apply.  */
7267#ifdef __cplusplus
7268extern "C"
7269#endif
7270char remove ();
7271int
7272main ()
7273{
7274return remove ();
7275  ;
7276  return 0;
7277}
7278_ACEOF
7279if ac_fn_c_try_link "$LINENO"; then :
7280  ac_cv_lib_posix_remove=yes
7281else
7282  ac_cv_lib_posix_remove=no
7283fi
7284rm -f core conftest.err conftest.$ac_objext \
7285    conftest$ac_exeext conftest.$ac_ext
7286LIBS=$ac_check_lib_save_LIBS
7287fi
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7289$as_echo "$ac_cv_lib_posix_remove" >&6; }
7290if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7291  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7292fi
7293
7294    fi
7295
7296    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7297    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7298if test "x$ac_cv_func_shmat" = x""yes; then :
7299
7300fi
7301
7302    if test $ac_cv_func_shmat = no; then
7303      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7304$as_echo_n "checking for shmat in -lipc... " >&6; }
7305if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7306  $as_echo_n "(cached) " >&6
7307else
7308  ac_check_lib_save_LIBS=$LIBS
7309LIBS="-lipc  $LIBS"
7310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h.  */
7312
7313/* Override any GCC internal prototype to avoid an error.
7314   Use char because int might match the return type of a GCC
7315   builtin and then its argument prototype would still apply.  */
7316#ifdef __cplusplus
7317extern "C"
7318#endif
7319char shmat ();
7320int
7321main ()
7322{
7323return shmat ();
7324  ;
7325  return 0;
7326}
7327_ACEOF
7328if ac_fn_c_try_link "$LINENO"; then :
7329  ac_cv_lib_ipc_shmat=yes
7330else
7331  ac_cv_lib_ipc_shmat=no
7332fi
7333rm -f core conftest.err conftest.$ac_objext \
7334    conftest$ac_exeext conftest.$ac_ext
7335LIBS=$ac_check_lib_save_LIBS
7336fi
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7338$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7339if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7340  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7341fi
7342
7343    fi
7344  fi
7345
7346  # Check for libraries that X11R6 Xt/Xaw programs need.
7347  ac_save_LDFLAGS=$LDFLAGS
7348  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7349  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7350  # check for ICE first), but we must link in the order -lSM -lICE or
7351  # we get undefined symbols.  So assume we have SM if we have ICE.
7352  # These have to be linked with before -lX11, unlike the other
7353  # libraries we check for below, so use a different variable.
7354  # John Interrante, Karl Berry
7355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7356$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7357if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  ac_check_lib_save_LIBS=$LIBS
7361LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363/* end confdefs.h.  */
7364
7365/* Override any GCC internal prototype to avoid an error.
7366   Use char because int might match the return type of a GCC
7367   builtin and then its argument prototype would still apply.  */
7368#ifdef __cplusplus
7369extern "C"
7370#endif
7371char IceConnectionNumber ();
7372int
7373main ()
7374{
7375return IceConnectionNumber ();
7376  ;
7377  return 0;
7378}
7379_ACEOF
7380if ac_fn_c_try_link "$LINENO"; then :
7381  ac_cv_lib_ICE_IceConnectionNumber=yes
7382else
7383  ac_cv_lib_ICE_IceConnectionNumber=no
7384fi
7385rm -f core conftest.err conftest.$ac_objext \
7386    conftest$ac_exeext conftest.$ac_ext
7387LIBS=$ac_check_lib_save_LIBS
7388fi
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7390$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7391if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7392  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7393fi
7394
7395  LDFLAGS=$ac_save_LDFLAGS
7396
7397fi
7398
7399
7400        if test "$zOSUnix" = "yes"; then
7401    CFLAGS="$CFLAGS -W c,dll"
7402    LDFLAGS="$LDFLAGS -W l,dll"
7403    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7404  fi
7405
7406
7407  if test -d "$x_includes" && test ! -d "$x_libraries"; then
7408    x_libraries=`echo "$x_includes" | sed s/include/lib/`
7409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
7410$as_echo "Corrected X libraries to $x_libraries" >&6; }
7411    X_LIBS="$X_LIBS -L$x_libraries"
7412    if test "`(uname) 2>/dev/null`" = SunOS &&
7413					 uname -r | grep '^5' >/dev/null; then
7414      X_LIBS="$X_LIBS -R $x_libraries"
7415    fi
7416  fi
7417
7418  if test -d "$x_libraries" && test ! -d "$x_includes"; then
7419    x_includes=`echo "$x_libraries" | sed s/lib/include/`
7420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
7421$as_echo "Corrected X includes to $x_includes" >&6; }
7422    X_CFLAGS="$X_CFLAGS -I$x_includes"
7423  fi
7424
7425    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
7426    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
7427    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7428
7429
7430        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
7431$as_echo_n "checking if X11 header files can be found... " >&6; }
7432  cflags_save=$CFLAGS
7433  CFLAGS="$CFLAGS $X_CFLAGS"
7434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h.  */
7436#include <X11/Xlib.h>
7437#include <X11/Intrinsic.h>
7438int
7439main ()
7440{
7441
7442  ;
7443  return 0;
7444}
7445_ACEOF
7446if ac_fn_c_try_compile "$LINENO"; then :
7447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7448$as_echo "yes" >&6; }
7449else
7450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451$as_echo "no" >&6; }; no_x=yes
7452fi
7453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454  CFLAGS=$cflags_save
7455
7456  if test "${no_x-no}" = yes; then
7457    with_x=no
7458  else
7459    $as_echo "#define HAVE_X11 1" >>confdefs.h
7460
7461    X_LIB="-lXt -lX11";
7462
7463
7464    ac_save_LDFLAGS="$LDFLAGS"
7465    LDFLAGS="-L$x_libraries $LDFLAGS"
7466
7467            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7468$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7469if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then :
7470  $as_echo_n "(cached) " >&6
7471else
7472  ac_check_lib_save_LIBS=$LIBS
7473LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476
7477/* Override any GCC internal prototype to avoid an error.
7478   Use char because int might match the return type of a GCC
7479   builtin and then its argument prototype would still apply.  */
7480#ifdef __cplusplus
7481extern "C"
7482#endif
7483char _XdmcpAuthDoIt ();
7484int
7485main ()
7486{
7487return _XdmcpAuthDoIt ();
7488  ;
7489  return 0;
7490}
7491_ACEOF
7492if ac_fn_c_try_link "$LINENO"; then :
7493  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7494else
7495  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7496fi
7497rm -f core conftest.err conftest.$ac_objext \
7498    conftest$ac_exeext conftest.$ac_ext
7499LIBS=$ac_check_lib_save_LIBS
7500fi
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7502$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7503if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then :
7504  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7505fi
7506
7507
7508                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
7509$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7510if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then :
7511  $as_echo_n "(cached) " >&6
7512else
7513  ac_check_lib_save_LIBS=$LIBS
7514LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516/* end confdefs.h.  */
7517
7518/* Override any GCC internal prototype to avoid an error.
7519   Use char because int might match the return type of a GCC
7520   builtin and then its argument prototype would still apply.  */
7521#ifdef __cplusplus
7522extern "C"
7523#endif
7524char IceOpenConnection ();
7525int
7526main ()
7527{
7528return IceOpenConnection ();
7529  ;
7530  return 0;
7531}
7532_ACEOF
7533if ac_fn_c_try_link "$LINENO"; then :
7534  ac_cv_lib_ICE_IceOpenConnection=yes
7535else
7536  ac_cv_lib_ICE_IceOpenConnection=no
7537fi
7538rm -f core conftest.err conftest.$ac_objext \
7539    conftest$ac_exeext conftest.$ac_ext
7540LIBS=$ac_check_lib_save_LIBS
7541fi
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7543$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7544if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then :
7545  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7546fi
7547
7548
7549        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7550    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
7551$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7552if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then :
7553  $as_echo_n "(cached) " >&6
7554else
7555  ac_check_lib_save_LIBS=$LIBS
7556LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558/* end confdefs.h.  */
7559
7560/* Override any GCC internal prototype to avoid an error.
7561   Use char because int might match the return type of a GCC
7562   builtin and then its argument prototype would still apply.  */
7563#ifdef __cplusplus
7564extern "C"
7565#endif
7566char XpmCreatePixmapFromData ();
7567int
7568main ()
7569{
7570return XpmCreatePixmapFromData ();
7571  ;
7572  return 0;
7573}
7574_ACEOF
7575if ac_fn_c_try_link "$LINENO"; then :
7576  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7577else
7578  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7579fi
7580rm -f core conftest.err conftest.$ac_objext \
7581    conftest$ac_exeext conftest.$ac_ext
7582LIBS=$ac_check_lib_save_LIBS
7583fi
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7585$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7586if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then :
7587  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7588fi
7589
7590
7591        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
7592$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7593    cflags_save=$CFLAGS
7594    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7595    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597#include <X11/Xlib.h>
7598int
7599main ()
7600{
7601
7602  ;
7603  return 0;
7604}
7605_ACEOF
7606if ac_fn_c_try_compile "$LINENO"; then :
7607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608$as_echo "no" >&6; }
7609else
7610  CFLAGS="$CFLAGS -Wno-implicit-int"
7611	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h.  */
7613#include <X11/Xlib.h>
7614int
7615main ()
7616{
7617
7618  ;
7619  return 0;
7620}
7621_ACEOF
7622if ac_fn_c_try_compile "$LINENO"; then :
7623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7624$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7625else
7626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
7627$as_echo "test failed" >&6; }
7628
7629fi
7630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631
7632fi
7633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634    CFLAGS=$cflags_save
7635
7636    LDFLAGS="$ac_save_LDFLAGS"
7637
7638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
7639$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
7640    if test "${ac_cv_small_wchar_t+set}" = set; then :
7641  $as_echo_n "(cached) " >&6
7642else
7643  if test "$cross_compiling" = yes; then :
7644  as_fn_error "failed to compile test program" "$LINENO" 5
7645else
7646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647/* end confdefs.h.  */
7648
7649#include <X11/Xlib.h>
7650#if STDC_HEADERS
7651# include <stdlib.h>
7652# include <stddef.h>
7653#endif
7654		main()
7655		{
7656		  if (sizeof(wchar_t) <= 2)
7657		    exit(1);
7658		  exit(0);
7659		}
7660_ACEOF
7661if ac_fn_c_try_run "$LINENO"; then :
7662  ac_cv_small_wchar_t="no"
7663else
7664  ac_cv_small_wchar_t="yes"
7665fi
7666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7667  conftest.$ac_objext conftest.beam conftest.$ac_ext
7668fi
7669
7670fi
7671
7672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
7673$as_echo "$ac_cv_small_wchar_t" >&6; }
7674    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
7675      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
7676
7677    fi
7678
7679  fi
7680fi
7681
7682test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7683
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
7685$as_echo_n "checking --enable-gui argument... " >&6; }
7686# Check whether --enable-gui was given.
7687if test "${enable_gui+set}" = set; then :
7688  enableval=$enable_gui;
7689else
7690  enable_gui="auto"
7691fi
7692
7693
7694enable_gui_canon=`echo "_$enable_gui" | \
7695	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7696
7697SKIP_GTK2=YES
7698SKIP_GNOME=YES
7699SKIP_MOTIF=YES
7700SKIP_ATHENA=YES
7701SKIP_NEXTAW=YES
7702SKIP_PHOTON=YES
7703SKIP_CARBON=YES
7704GUITYPE=NONE
7705
7706if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7707  SKIP_PHOTON=
7708  case "$enable_gui_canon" in
7709    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
7710$as_echo "no GUI support" >&6; }
7711		SKIP_PHOTON=YES ;;
7712    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
7713$as_echo "yes - automatic GUI support" >&6; } ;;
7714    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
7715$as_echo "auto - automatic GUI support" >&6; } ;;
7716    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
7717$as_echo "Photon GUI support" >&6; } ;;
7718    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
7719$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
7720		SKIP_PHOTON=YES ;;
7721  esac
7722
7723elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7724  SKIP_CARBON=
7725  case "$enable_gui_canon" in
7726    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
7727$as_echo "no GUI support" >&6; }
7728		SKIP_CARBON=YES ;;
7729    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
7730$as_echo "yes - automatic GUI support" >&6; } ;;
7731    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
7732$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
7733		SKIP_CARBON=YES ;;
7734    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
7735$as_echo "Carbon GUI support" >&6; } ;;
7736    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
7737$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
7738		SKIP_CARBON=YES ;;
7739  esac
7740
7741else
7742
7743  case "$enable_gui_canon" in
7744    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
7745$as_echo "no GUI support" >&6; } ;;
7746    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
7747$as_echo "yes/auto - automatic GUI support" >&6; }
7748		SKIP_GTK2=
7749		SKIP_GNOME=
7750		SKIP_MOTIF=
7751		SKIP_ATHENA=
7752		SKIP_NEXTAW=
7753		SKIP_CARBON=;;
7754    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
7755$as_echo "GTK+ 2.x GUI support" >&6; }
7756		SKIP_GTK2=;;
7757    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
7758$as_echo "GNOME 2.x GUI support" >&6; }
7759		SKIP_GNOME=
7760		SKIP_GTK2=;;
7761    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
7762$as_echo "Motif GUI support" >&6; }
7763		SKIP_MOTIF=;;
7764    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
7765$as_echo "Athena GUI support" >&6; }
7766		SKIP_ATHENA=;;
7767    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
7768$as_echo "neXtaw GUI support" >&6; }
7769		SKIP_NEXTAW=;;
7770    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
7771$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
7772  esac
7773
7774fi
7775
7776if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7777				-a "$enable_gui_canon" != "gnome2"; then
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
7779$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
7780  # Check whether --enable-gtk2-check was given.
7781if test "${enable_gtk2_check+set}" = set; then :
7782  enableval=$enable_gtk2_check;
7783else
7784  enable_gtk2_check="yes"
7785fi
7786
7787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
7788$as_echo "$enable_gtk2_check" >&6; }
7789  if test "x$enable_gtk2_check" = "xno"; then
7790    SKIP_GTK2=YES
7791    SKIP_GNOME=YES
7792  fi
7793fi
7794
7795if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
7796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
7797$as_echo_n "checking whether or not to look for GNOME... " >&6; }
7798  # Check whether --enable-gnome-check was given.
7799if test "${enable_gnome_check+set}" = set; then :
7800  enableval=$enable_gnome_check;
7801else
7802  enable_gnome_check="no"
7803fi
7804
7805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
7806$as_echo "$enable_gnome_check" >&6; }
7807  if test "x$enable_gnome_check" = "xno"; then
7808    SKIP_GNOME=YES
7809  fi
7810fi
7811
7812if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
7813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
7814$as_echo_n "checking whether or not to look for Motif... " >&6; }
7815  # Check whether --enable-motif-check was given.
7816if test "${enable_motif_check+set}" = set; then :
7817  enableval=$enable_motif_check;
7818else
7819  enable_motif_check="yes"
7820fi
7821
7822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
7823$as_echo "$enable_motif_check" >&6; }
7824  if test "x$enable_motif_check" = "xno"; then
7825    SKIP_MOTIF=YES
7826  fi
7827fi
7828
7829if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
7830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
7831$as_echo_n "checking whether or not to look for Athena... " >&6; }
7832  # Check whether --enable-athena-check was given.
7833if test "${enable_athena_check+set}" = set; then :
7834  enableval=$enable_athena_check;
7835else
7836  enable_athena_check="yes"
7837fi
7838
7839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
7840$as_echo "$enable_athena_check" >&6; }
7841  if test "x$enable_athena_check" = "xno"; then
7842    SKIP_ATHENA=YES
7843  fi
7844fi
7845
7846if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
7847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
7848$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
7849  # Check whether --enable-nextaw-check was given.
7850if test "${enable_nextaw_check+set}" = set; then :
7851  enableval=$enable_nextaw_check;
7852else
7853  enable_nextaw_check="yes"
7854fi
7855
7856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
7857$as_echo "$enable_nextaw_check" >&6; };
7858  if test "x$enable_nextaw_check" = "xno"; then
7859    SKIP_NEXTAW=YES
7860  fi
7861fi
7862
7863if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
7864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
7865$as_echo_n "checking whether or not to look for Carbon... " >&6; }
7866  # Check whether --enable-carbon-check was given.
7867if test "${enable_carbon_check+set}" = set; then :
7868  enableval=$enable_carbon_check;
7869else
7870  enable_carbon_check="yes"
7871fi
7872
7873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
7874$as_echo "$enable_carbon_check" >&6; };
7875  if test "x$enable_carbon_check" = "xno"; then
7876    SKIP_CARBON=YES
7877  fi
7878fi
7879
7880
7881if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
7882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
7883$as_echo_n "checking for Carbon GUI... " >&6; }
7884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7885$as_echo "yes" >&6; };
7886  GUITYPE=CARBONGUI
7887  if test "$VIMNAME" = "vim"; then
7888    VIMNAME=Vim
7889  fi
7890
7891  if test "x$MACARCH" = "xboth"; then
7892    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
7893  else
7894    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
7895  fi
7896
7897    if test x$prefix = xNONE; then
7898    prefix=/Applications
7899  fi
7900
7901    datadir='${prefix}/Vim.app/Contents/Resources'
7902
7903    SKIP_GTK2=YES;
7904  SKIP_GNOME=YES;
7905  SKIP_MOTIF=YES;
7906  SKIP_ATHENA=YES;
7907  SKIP_NEXTAW=YES;
7908  SKIP_PHOTON=YES;
7909  SKIP_CARBON=YES
7910fi
7911
7912
7913
7914
7915
7916
7917
7918
7919if test -z "$SKIP_GTK2"; then
7920
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
7922$as_echo_n "checking --disable-gtktest argument... " >&6; }
7923  # Check whether --enable-gtktest was given.
7924if test "${enable_gtktest+set}" = set; then :
7925  enableval=$enable_gtktest;
7926else
7927  enable_gtktest=yes
7928fi
7929
7930  if test "x$enable_gtktest" = "xyes" ; then
7931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
7932$as_echo "gtk test enabled" >&6; }
7933  else
7934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
7935$as_echo "gtk test disabled" >&6; }
7936  fi
7937
7938  if test "X$PKG_CONFIG" = "X"; then
7939    # Extract the first word of "pkg-config", so it can be a program name with args.
7940set dummy pkg-config; ac_word=$2
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942$as_echo_n "checking for $ac_word... " >&6; }
7943if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  case $PKG_CONFIG in
7947  [\\/]* | ?:[\\/]*)
7948  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7949  ;;
7950  *)
7951  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952for as_dir in $PATH
7953do
7954  IFS=$as_save_IFS
7955  test -z "$as_dir" && as_dir=.
7956    for ac_exec_ext in '' $ac_executable_extensions; do
7957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7958    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960    break 2
7961  fi
7962done
7963  done
7964IFS=$as_save_IFS
7965
7966  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7967  ;;
7968esac
7969fi
7970PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7971if test -n "$PKG_CONFIG"; then
7972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7973$as_echo "$PKG_CONFIG" >&6; }
7974else
7975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976$as_echo "no" >&6; }
7977fi
7978
7979
7980  fi
7981
7982  if test "x$PKG_CONFIG" != "xno"; then
7983
7984  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7985  {
7986    min_gtk_version=2.2.0
7987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
7988$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
7989    no_gtk=""
7990    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7991	  && $PKG_CONFIG --exists gtk+-2.0; then
7992    {
7993                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7994      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7995      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7996      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7997	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7998      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7999	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8000      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8001	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8002    }
8003    else
8004      no_gtk=yes
8005    fi
8006
8007    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8008    {
8009      ac_save_CFLAGS="$CFLAGS"
8010      ac_save_LIBS="$LIBS"
8011      CFLAGS="$CFLAGS $GTK_CFLAGS"
8012      LIBS="$LIBS $GTK_LIBS"
8013
8014                        rm -f conf.gtktest
8015      if test "$cross_compiling" = yes; then :
8016  echo $ac_n "cross compiling; assumed OK... $ac_c"
8017else
8018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h.  */
8020
8021#include <gtk/gtk.h>
8022#include <stdio.h>
8023#if STDC_HEADERS
8024# include <stdlib.h>
8025# include <stddef.h>
8026#endif
8027
8028int
8029main ()
8030{
8031int major, minor, micro;
8032char *tmp_version;
8033
8034system ("touch conf.gtktest");
8035
8036/* HP/UX 9 (%@#!) writes to sscanf strings */
8037tmp_version = g_strdup("$min_gtk_version");
8038if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8039   printf("%s, bad version string\n", "$min_gtk_version");
8040   exit(1);
8041 }
8042
8043if ((gtk_major_version > major) ||
8044    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8045    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8046				     (gtk_micro_version >= micro)))
8047{
8048    return 0;
8049}
8050return 1;
8051}
8052
8053_ACEOF
8054if ac_fn_c_try_run "$LINENO"; then :
8055
8056else
8057  no_gtk=yes
8058fi
8059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8060  conftest.$ac_objext conftest.beam conftest.$ac_ext
8061fi
8062
8063      CFLAGS="$ac_save_CFLAGS"
8064      LIBS="$ac_save_LIBS"
8065    }
8066    fi
8067    if test "x$no_gtk" = x ; then
8068      if test "x$enable_gtktest" = "xyes"; then
8069	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8070$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8071      else
8072	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8073$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8074      fi
8075      GUI_LIB_LOC="$GTK_LIBDIR"
8076		 GTK_LIBNAME="$GTK_LIBS"
8077		GUI_INC_LOC="$GTK_CFLAGS"
8078    else
8079    {
8080      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081$as_echo "no" >&6; }
8082      GTK_CFLAGS=""
8083      GTK_LIBS=""
8084      :
8085    }
8086    fi
8087  }
8088  else
8089    GTK_CFLAGS=""
8090    GTK_LIBS=""
8091    :
8092  fi
8093
8094
8095  rm -f conf.gtktest
8096
8097    if test "x$GTK_CFLAGS" != "x"; then
8098      SKIP_ATHENA=YES
8099      SKIP_NEXTAW=YES
8100      SKIP_MOTIF=YES
8101      GUITYPE=GTK
8102
8103    fi
8104  fi
8105  if test "x$GUITYPE" = "xGTK"; then
8106    if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8107	|| test "0$gtk_minor_version" -ge 2; then
8108      $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h
8109
8110    fi
8111                if test -z "$SKIP_GNOME"; then
8112    {
8113
8114
8115
8116
8117
8118
8119# Check whether --with-gnome-includes was given.
8120if test "${with_gnome_includes+set}" = set; then :
8121  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8122
8123fi
8124
8125
8126
8127# Check whether --with-gnome-libs was given.
8128if test "${with_gnome_libs+set}" = set; then :
8129  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8130
8131fi
8132
8133
8134
8135# Check whether --with-gnome was given.
8136if test "${with_gnome+set}" = set; then :
8137  withval=$with_gnome; if test x$withval = xyes; then
8138      want_gnome=yes
8139      have_gnome=yes
8140    else
8141      if test "x$withval" = xno; then
8142	want_gnome=no
8143      else
8144	want_gnome=yes
8145	LDFLAGS="$LDFLAGS -L$withval/lib"
8146	CFLAGS="$CFLAGS -I$withval/include"
8147	gnome_prefix=$withval/lib
8148      fi
8149    fi
8150else
8151  want_gnome=yes
8152fi
8153
8154
8155  if test "x$want_gnome" = xyes; then
8156  {
8157    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
8158$as_echo_n "checking for libgnomeui-2.0... " >&6; }
8159    if $PKG_CONFIG --exists libgnomeui-2.0; then
8160      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8161$as_echo "yes" >&6; }
8162      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8163      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8164      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8165
8166                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
8167$as_echo_n "checking for FreeBSD... " >&6; }
8168      if test "`(uname) 2>/dev/null`" = FreeBSD; then
8169	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8170$as_echo "yes" >&6; }
8171	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8172	GNOME_LIBS="$GNOME_LIBS -pthread"
8173      else
8174	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175$as_echo "no" >&6; }
8176      fi
8177      have_gnome=yes
8178    else
8179      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8180$as_echo "not found" >&6; }
8181      if test "x" = xfail; then
8182	as_fn_error "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
8183      fi
8184    fi
8185  }
8186  fi
8187
8188      if test "x$have_gnome" = xyes ; then
8189	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
8190
8191	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8192	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8193      fi
8194    }
8195    fi
8196  fi
8197fi
8198
8199
8200if test -z "$SKIP_MOTIF"; then
8201  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"
8202    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8203
8204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
8205$as_echo_n "checking for location of Motif GUI includes... " >&6; }
8206  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8207  GUI_INC_LOC=
8208  for try in $gui_includes; do
8209    if test -f "$try/Xm/Xm.h"; then
8210      GUI_INC_LOC=$try
8211    fi
8212  done
8213  if test -n "$GUI_INC_LOC"; then
8214    if test "$GUI_INC_LOC" = /usr/include; then
8215      GUI_INC_LOC=
8216      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
8217$as_echo "in default path" >&6; }
8218    else
8219      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
8220$as_echo "$GUI_INC_LOC" >&6; }
8221    fi
8222  else
8223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
8224$as_echo "<not found>" >&6; }
8225    SKIP_MOTIF=YES
8226  fi
8227fi
8228
8229
8230if test -z "$SKIP_MOTIF"; then
8231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
8232$as_echo_n "checking --with-motif-lib argument... " >&6; }
8233
8234# Check whether --with-motif-lib was given.
8235if test "${with_motif_lib+set}" = set; then :
8236  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
8237fi
8238
8239
8240  if test -n "$MOTIF_LIBNAME"; then
8241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
8242$as_echo "$MOTIF_LIBNAME" >&6; }
8243    GUI_LIB_LOC=
8244  else
8245    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246$as_echo "no" >&6; }
8247
8248        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8249
8250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
8251$as_echo_n "checking for location of Motif GUI libs... " >&6; }
8252    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"
8253    GUI_LIB_LOC=
8254    for try in $gui_libs; do
8255      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
8256	if test -f "$libtry"; then
8257	  GUI_LIB_LOC=$try
8258	fi
8259      done
8260    done
8261    if test -n "$GUI_LIB_LOC"; then
8262            if test "$GUI_LIB_LOC" = /usr/lib; then
8263	GUI_LIB_LOC=
8264	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
8265$as_echo "in default path" >&6; }
8266      else
8267	if test -n "$GUI_LIB_LOC"; then
8268	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
8269$as_echo "$GUI_LIB_LOC" >&6; }
8270	  if test "`(uname) 2>/dev/null`" = SunOS &&
8271					 uname -r | grep '^5' >/dev/null; then
8272	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8273	  fi
8274	fi
8275      fi
8276      MOTIF_LIBNAME=-lXm
8277    else
8278      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
8279$as_echo "<not found>" >&6; }
8280      SKIP_MOTIF=YES
8281    fi
8282  fi
8283fi
8284
8285if test -z "$SKIP_MOTIF"; then
8286  SKIP_ATHENA=YES
8287  SKIP_NEXTAW=YES
8288  GUITYPE=MOTIF
8289
8290fi
8291
8292
8293GUI_X_LIBS=
8294
8295if test -z "$SKIP_ATHENA"; then
8296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
8297$as_echo_n "checking if Athena header files can be found... " >&6; }
8298  cflags_save=$CFLAGS
8299  CFLAGS="$CFLAGS $X_CFLAGS"
8300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301/* end confdefs.h.  */
8302
8303#include <X11/Intrinsic.h>
8304#include <X11/Xaw/Paned.h>
8305int
8306main ()
8307{
8308
8309  ;
8310  return 0;
8311}
8312_ACEOF
8313if ac_fn_c_try_compile "$LINENO"; then :
8314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8315$as_echo "yes" >&6; }
8316else
8317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318$as_echo "no" >&6; }; SKIP_ATHENA=YES
8319fi
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321  CFLAGS=$cflags_save
8322fi
8323
8324if test -z "$SKIP_ATHENA"; then
8325  GUITYPE=ATHENA
8326fi
8327
8328if test -z "$SKIP_NEXTAW"; then
8329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
8330$as_echo_n "checking if neXtaw header files can be found... " >&6; }
8331  cflags_save=$CFLAGS
8332  CFLAGS="$CFLAGS $X_CFLAGS"
8333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334/* end confdefs.h.  */
8335
8336#include <X11/Intrinsic.h>
8337#include <X11/neXtaw/Paned.h>
8338int
8339main ()
8340{
8341
8342  ;
8343  return 0;
8344}
8345_ACEOF
8346if ac_fn_c_try_compile "$LINENO"; then :
8347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8348$as_echo "yes" >&6; }
8349else
8350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351$as_echo "no" >&6; }; SKIP_NEXTAW=YES
8352fi
8353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354  CFLAGS=$cflags_save
8355fi
8356
8357if test -z "$SKIP_NEXTAW"; then
8358  GUITYPE=NEXTAW
8359fi
8360
8361if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8362      if test -n "$GUI_INC_LOC"; then
8363    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8364  fi
8365  if test -n "$GUI_LIB_LOC"; then
8366    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8367  fi
8368
8369    ldflags_save=$LDFLAGS
8370  LDFLAGS="$X_LIBS $LDFLAGS"
8371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8372$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8373if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8374  $as_echo_n "(cached) " >&6
8375else
8376  ac_check_lib_save_LIBS=$LIBS
8377LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379/* end confdefs.h.  */
8380
8381/* Override any GCC internal prototype to avoid an error.
8382   Use char because int might match the return type of a GCC
8383   builtin and then its argument prototype would still apply.  */
8384#ifdef __cplusplus
8385extern "C"
8386#endif
8387char XShapeQueryExtension ();
8388int
8389main ()
8390{
8391return XShapeQueryExtension ();
8392  ;
8393  return 0;
8394}
8395_ACEOF
8396if ac_fn_c_try_link "$LINENO"; then :
8397  ac_cv_lib_Xext_XShapeQueryExtension=yes
8398else
8399  ac_cv_lib_Xext_XShapeQueryExtension=no
8400fi
8401rm -f core conftest.err conftest.$ac_objext \
8402    conftest$ac_exeext conftest.$ac_ext
8403LIBS=$ac_check_lib_save_LIBS
8404fi
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8406$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8407if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8408  GUI_X_LIBS="-lXext"
8409fi
8410
8411    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
8412$as_echo_n "checking for wslen in -lw... " >&6; }
8413if test "${ac_cv_lib_w_wslen+set}" = set; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416  ac_check_lib_save_LIBS=$LIBS
8417LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419/* end confdefs.h.  */
8420
8421/* Override any GCC internal prototype to avoid an error.
8422   Use char because int might match the return type of a GCC
8423   builtin and then its argument prototype would still apply.  */
8424#ifdef __cplusplus
8425extern "C"
8426#endif
8427char wslen ();
8428int
8429main ()
8430{
8431return wslen ();
8432  ;
8433  return 0;
8434}
8435_ACEOF
8436if ac_fn_c_try_link "$LINENO"; then :
8437  ac_cv_lib_w_wslen=yes
8438else
8439  ac_cv_lib_w_wslen=no
8440fi
8441rm -f core conftest.err conftest.$ac_objext \
8442    conftest$ac_exeext conftest.$ac_ext
8443LIBS=$ac_check_lib_save_LIBS
8444fi
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
8446$as_echo "$ac_cv_lib_w_wslen" >&6; }
8447if test "x$ac_cv_lib_w_wslen" = x""yes; then :
8448  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
8449fi
8450
8451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
8452$as_echo_n "checking for dlsym in -ldl... " >&6; }
8453if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
8454  $as_echo_n "(cached) " >&6
8455else
8456  ac_check_lib_save_LIBS=$LIBS
8457LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h.  */
8460
8461/* Override any GCC internal prototype to avoid an error.
8462   Use char because int might match the return type of a GCC
8463   builtin and then its argument prototype would still apply.  */
8464#ifdef __cplusplus
8465extern "C"
8466#endif
8467char dlsym ();
8468int
8469main ()
8470{
8471return dlsym ();
8472  ;
8473  return 0;
8474}
8475_ACEOF
8476if ac_fn_c_try_link "$LINENO"; then :
8477  ac_cv_lib_dl_dlsym=yes
8478else
8479  ac_cv_lib_dl_dlsym=no
8480fi
8481rm -f core conftest.err conftest.$ac_objext \
8482    conftest$ac_exeext conftest.$ac_ext
8483LIBS=$ac_check_lib_save_LIBS
8484fi
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
8486$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
8487if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
8488  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
8489fi
8490
8491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
8492$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
8493if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then :
8494  $as_echo_n "(cached) " >&6
8495else
8496  ac_check_lib_save_LIBS=$LIBS
8497LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h.  */
8500
8501/* Override any GCC internal prototype to avoid an error.
8502   Use char because int might match the return type of a GCC
8503   builtin and then its argument prototype would still apply.  */
8504#ifdef __cplusplus
8505extern "C"
8506#endif
8507char XmuCreateStippledPixmap ();
8508int
8509main ()
8510{
8511return XmuCreateStippledPixmap ();
8512  ;
8513  return 0;
8514}
8515_ACEOF
8516if ac_fn_c_try_link "$LINENO"; then :
8517  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
8518else
8519  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
8520fi
8521rm -f core conftest.err conftest.$ac_objext \
8522    conftest$ac_exeext conftest.$ac_ext
8523LIBS=$ac_check_lib_save_LIBS
8524fi
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8526$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
8527if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then :
8528  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
8529fi
8530
8531  if test -z "$SKIP_MOTIF"; then
8532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
8533$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
8534if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then :
8535  $as_echo_n "(cached) " >&6
8536else
8537  ac_check_lib_save_LIBS=$LIBS
8538LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540/* end confdefs.h.  */
8541
8542/* Override any GCC internal prototype to avoid an error.
8543   Use char because int might match the return type of a GCC
8544   builtin and then its argument prototype would still apply.  */
8545#ifdef __cplusplus
8546extern "C"
8547#endif
8548char XpEndJob ();
8549int
8550main ()
8551{
8552return XpEndJob ();
8553  ;
8554  return 0;
8555}
8556_ACEOF
8557if ac_fn_c_try_link "$LINENO"; then :
8558  ac_cv_lib_Xp_XpEndJob=yes
8559else
8560  ac_cv_lib_Xp_XpEndJob=no
8561fi
8562rm -f core conftest.err conftest.$ac_objext \
8563    conftest$ac_exeext conftest.$ac_ext
8564LIBS=$ac_check_lib_save_LIBS
8565fi
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
8567$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
8568if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then :
8569  GUI_X_LIBS="-lXp $GUI_X_LIBS"
8570fi
8571
8572  fi
8573  LDFLAGS=$ldflags_save
8574
8575    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
8576$as_echo_n "checking for extra X11 defines... " >&6; }
8577  NARROW_PROTO=
8578  rm -fr conftestdir
8579  if mkdir conftestdir; then
8580    cd conftestdir
8581    cat > Imakefile <<'EOF'
8582acfindx:
8583	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8584EOF
8585    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8586      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8587    fi
8588    cd ..
8589    rm -fr conftestdir
8590  fi
8591  if test -z "$NARROW_PROTO"; then
8592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593$as_echo "no" >&6; }
8594  else
8595    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
8596$as_echo "$NARROW_PROTO" >&6; }
8597  fi
8598
8599fi
8600
8601if test "$enable_xsmp" = "yes"; then
8602  cppflags_save=$CPPFLAGS
8603  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8604  for ac_header in X11/SM/SMlib.h
8605do :
8606  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
8607if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
8608  cat >>confdefs.h <<_ACEOF
8609#define HAVE_X11_SM_SMLIB_H 1
8610_ACEOF
8611
8612fi
8613
8614done
8615
8616  CPPFLAGS=$cppflags_save
8617fi
8618
8619
8620if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2"; then
8621    cppflags_save=$CPPFLAGS
8622  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8623  for ac_header in X11/xpm.h X11/Sunkeysym.h
8624do :
8625  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8626ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8627eval as_val=\$$as_ac_Header
8628   if test "x$as_val" = x""yes; then :
8629  cat >>confdefs.h <<_ACEOF
8630#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8631_ACEOF
8632
8633fi
8634
8635done
8636
8637
8638    if test ! "$enable_xim" = "no"; then
8639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
8640$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
8641    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642/* end confdefs.h.  */
8643#include <X11/Xlib.h>
8644_ACEOF
8645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8646  $EGREP "XIMText" >/dev/null 2>&1; then :
8647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8648$as_echo "yes" >&6; }
8649else
8650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
8651$as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
8652fi
8653rm -f conftest*
8654
8655  fi
8656  CPPFLAGS=$cppflags_save
8657
8658    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8659		-a "x$GUITYPE" != "xNONE" ; then
8660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
8661$as_echo "X GUI selected; xim has been enabled" >&6; }
8662    enable_xim="yes"
8663  fi
8664fi
8665
8666if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8667  cppflags_save=$CPPFLAGS
8668  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
8670$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
8671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h.  */
8673
8674#include <X11/Intrinsic.h>
8675#include <X11/Xmu/Editres.h>
8676int
8677main ()
8678{
8679int i; i = 0;
8680  ;
8681  return 0;
8682}
8683_ACEOF
8684if ac_fn_c_try_compile "$LINENO"; then :
8685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8686$as_echo "yes" >&6; }
8687		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
8688
8689else
8690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
8692fi
8693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694  CPPFLAGS=$cppflags_save
8695fi
8696
8697if test -z "$SKIP_MOTIF"; then
8698  cppflags_save=$CPPFLAGS
8699  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8700  for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8701		   Xm/UnhighlightT.h Xm/Notebook.h
8702do :
8703  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8704ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8705eval as_val=\$$as_ac_Header
8706   if test "x$as_val" = x""yes; then :
8707  cat >>confdefs.h <<_ACEOF
8708#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8709_ACEOF
8710
8711fi
8712
8713done
8714
8715
8716  if test $ac_cv_header_Xm_XpmP_h = yes; then
8717        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
8718$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
8719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720/* end confdefs.h.  */
8721#include <Xm/XpmP.h>
8722int
8723main ()
8724{
8725XpmAttributes_21 attr;
8726  ;
8727  return 0;
8728}
8729_ACEOF
8730if ac_fn_c_try_compile "$LINENO"; then :
8731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8732$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
8733
8734else
8735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
8737
8738
8739fi
8740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741  else
8742    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
8743
8744  fi
8745  CPPFLAGS=$cppflags_save
8746fi
8747
8748if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
8749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
8750$as_echo "no GUI selected; xim has been disabled" >&6; }
8751  enable_xim="no"
8752fi
8753if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
8754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
8755$as_echo "no GUI selected; fontset has been disabled" >&6; }
8756  enable_fontset="no"
8757fi
8758if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
8759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
8760$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
8761  enable_fontset="no"
8762fi
8763
8764if test -z "$SKIP_PHOTON"; then
8765  GUITYPE=PHOTONGUI
8766fi
8767
8768
8769
8770
8771
8772
8773if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
8774  as_fn_error "cannot use workshop without Motif" "$LINENO" 5
8775fi
8776
8777if test "$enable_xim" = "yes"; then
8778  $as_echo "#define FEAT_XIM 1" >>confdefs.h
8779
8780fi
8781if test "$enable_fontset" = "yes"; then
8782  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
8783
8784fi
8785
8786
8787
8788
8789if test "$enable_hangulinput" = "yes"; then
8790  if test "x$GUITYPE" = "xNONE"; then
8791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
8792$as_echo "no GUI selected; hangul input has been disabled" >&6; }
8793    enable_hangulinput=no
8794  else
8795    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
8796
8797    HANGULIN_SRC=hangulin.c
8798
8799    HANGULIN_OBJ=objects/hangulin.o
8800
8801  fi
8802fi
8803
8804
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
8806$as_echo_n "checking whether toupper is broken... " >&6; }
8807if test "${vim_cv_toupper_broken+set}" = set; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810
8811    if test "$cross_compiling" = yes; then :
8812
8813    as_fn_error "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
8814
8815else
8816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h.  */
8818
8819#include "confdefs.h"
8820#include <ctype.h>
8821#if STDC_HEADERS
8822# include <stdlib.h>
8823# include <stddef.h>
8824#endif
8825main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
8826
8827_ACEOF
8828if ac_fn_c_try_run "$LINENO"; then :
8829
8830    vim_cv_toupper_broken=yes
8831
8832else
8833
8834    vim_cv_toupper_broken=no
8835
8836fi
8837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8838  conftest.$ac_objext conftest.beam conftest.$ac_ext
8839fi
8840
8841fi
8842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
8843$as_echo "$vim_cv_toupper_broken" >&6; }
8844
8845if test "x$vim_cv_toupper_broken" = "xyes" ; then
8846  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
8847
8848fi
8849
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
8851$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
8852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853/* end confdefs.h.  */
8854#include <stdio.h>
8855int
8856main ()
8857{
8858printf("(" __DATE__ " " __TIME__ ")");
8859  ;
8860  return 0;
8861}
8862_ACEOF
8863if ac_fn_c_try_compile "$LINENO"; then :
8864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8865$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
8866
8867else
8868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869$as_echo "no" >&6; }
8870fi
8871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
8874$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
8875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876/* end confdefs.h.  */
8877#include <stdio.h>
8878int
8879main ()
8880{
8881int x __attribute__((unused));
8882  ;
8883  return 0;
8884}
8885_ACEOF
8886if ac_fn_c_try_compile "$LINENO"; then :
8887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8888$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
8889
8890else
8891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892$as_echo "no" >&6; }
8893fi
8894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895
8896ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
8897if test "x$ac_cv_header_elf_h" = x""yes; then :
8898  HAS_ELF=1
8899fi
8900
8901
8902if test "$HAS_ELF" = 1; then
8903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
8904$as_echo_n "checking for main in -lelf... " >&6; }
8905if test "${ac_cv_lib_elf_main+set}" = set; then :
8906  $as_echo_n "(cached) " >&6
8907else
8908  ac_check_lib_save_LIBS=$LIBS
8909LIBS="-lelf  $LIBS"
8910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911/* end confdefs.h.  */
8912
8913
8914int
8915main ()
8916{
8917return main ();
8918  ;
8919  return 0;
8920}
8921_ACEOF
8922if ac_fn_c_try_link "$LINENO"; then :
8923  ac_cv_lib_elf_main=yes
8924else
8925  ac_cv_lib_elf_main=no
8926fi
8927rm -f core conftest.err conftest.$ac_objext \
8928    conftest$ac_exeext conftest.$ac_ext
8929LIBS=$ac_check_lib_save_LIBS
8930fi
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
8932$as_echo "$ac_cv_lib_elf_main" >&6; }
8933if test "x$ac_cv_lib_elf_main" = x""yes; then :
8934  cat >>confdefs.h <<_ACEOF
8935#define HAVE_LIBELF 1
8936_ACEOF
8937
8938  LIBS="-lelf $LIBS"
8939
8940fi
8941
8942fi
8943
8944ac_header_dirent=no
8945for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8946  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8948$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8950  $as_echo_n "(cached) " >&6
8951else
8952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953/* end confdefs.h.  */
8954#include <sys/types.h>
8955#include <$ac_hdr>
8956
8957int
8958main ()
8959{
8960if ((DIR *) 0)
8961return 0;
8962  ;
8963  return 0;
8964}
8965_ACEOF
8966if ac_fn_c_try_compile "$LINENO"; then :
8967  eval "$as_ac_Header=yes"
8968else
8969  eval "$as_ac_Header=no"
8970fi
8971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972fi
8973eval ac_res=\$$as_ac_Header
8974	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8975$as_echo "$ac_res" >&6; }
8976eval as_val=\$$as_ac_Header
8977   if test "x$as_val" = x""yes; then :
8978  cat >>confdefs.h <<_ACEOF
8979#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8980_ACEOF
8981
8982ac_header_dirent=$ac_hdr; break
8983fi
8984
8985done
8986# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8987if test $ac_header_dirent = dirent.h; then
8988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8989$as_echo_n "checking for library containing opendir... " >&6; }
8990if test "${ac_cv_search_opendir+set}" = set; then :
8991  $as_echo_n "(cached) " >&6
8992else
8993  ac_func_search_save_LIBS=$LIBS
8994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h.  */
8996
8997/* Override any GCC internal prototype to avoid an error.
8998   Use char because int might match the return type of a GCC
8999   builtin and then its argument prototype would still apply.  */
9000#ifdef __cplusplus
9001extern "C"
9002#endif
9003char opendir ();
9004int
9005main ()
9006{
9007return opendir ();
9008  ;
9009  return 0;
9010}
9011_ACEOF
9012for ac_lib in '' dir; do
9013  if test -z "$ac_lib"; then
9014    ac_res="none required"
9015  else
9016    ac_res=-l$ac_lib
9017    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9018  fi
9019  if ac_fn_c_try_link "$LINENO"; then :
9020  ac_cv_search_opendir=$ac_res
9021fi
9022rm -f core conftest.err conftest.$ac_objext \
9023    conftest$ac_exeext
9024  if test "${ac_cv_search_opendir+set}" = set; then :
9025  break
9026fi
9027done
9028if test "${ac_cv_search_opendir+set}" = set; then :
9029
9030else
9031  ac_cv_search_opendir=no
9032fi
9033rm conftest.$ac_ext
9034LIBS=$ac_func_search_save_LIBS
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9037$as_echo "$ac_cv_search_opendir" >&6; }
9038ac_res=$ac_cv_search_opendir
9039if test "$ac_res" != no; then :
9040  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9041
9042fi
9043
9044else
9045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9046$as_echo_n "checking for library containing opendir... " >&6; }
9047if test "${ac_cv_search_opendir+set}" = set; then :
9048  $as_echo_n "(cached) " >&6
9049else
9050  ac_func_search_save_LIBS=$LIBS
9051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052/* end confdefs.h.  */
9053
9054/* Override any GCC internal prototype to avoid an error.
9055   Use char because int might match the return type of a GCC
9056   builtin and then its argument prototype would still apply.  */
9057#ifdef __cplusplus
9058extern "C"
9059#endif
9060char opendir ();
9061int
9062main ()
9063{
9064return opendir ();
9065  ;
9066  return 0;
9067}
9068_ACEOF
9069for ac_lib in '' x; do
9070  if test -z "$ac_lib"; then
9071    ac_res="none required"
9072  else
9073    ac_res=-l$ac_lib
9074    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9075  fi
9076  if ac_fn_c_try_link "$LINENO"; then :
9077  ac_cv_search_opendir=$ac_res
9078fi
9079rm -f core conftest.err conftest.$ac_objext \
9080    conftest$ac_exeext
9081  if test "${ac_cv_search_opendir+set}" = set; then :
9082  break
9083fi
9084done
9085if test "${ac_cv_search_opendir+set}" = set; then :
9086
9087else
9088  ac_cv_search_opendir=no
9089fi
9090rm conftest.$ac_ext
9091LIBS=$ac_func_search_save_LIBS
9092fi
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9094$as_echo "$ac_cv_search_opendir" >&6; }
9095ac_res=$ac_cv_search_opendir
9096if test "$ac_res" != no; then :
9097  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9098
9099fi
9100
9101fi
9102
9103
9104if test $ac_cv_header_sys_wait_h = no; then
9105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
9106$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
9107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108/* end confdefs.h.  */
9109#include <sys/wait.h>
9110int
9111main ()
9112{
9113union wait xx, yy; xx = yy
9114  ;
9115  return 0;
9116}
9117_ACEOF
9118if ac_fn_c_try_compile "$LINENO"; then :
9119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9120$as_echo "yes" >&6; }
9121			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9122
9123			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
9124
9125else
9126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127$as_echo "no" >&6; }
9128fi
9129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130fi
9131
9132for ac_header in stdarg.h stdint.h stdlib.h string.h \
9133	sys/select.h sys/utsname.h termcap.h fcntl.h \
9134	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
9135	termio.h iconv.h inttypes.h langinfo.h math.h \
9136	unistd.h stropts.h errno.h sys/resource.h \
9137	sys/systeminfo.h locale.h sys/stream.h termios.h \
9138	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
9139	utime.h sys/param.h libintl.h libgen.h \
9140	util/debug.h util/msg18n.h frame.h sys/acl.h \
9141	sys/access.h sys/sysinfo.h wchar.h wctype.h
9142do :
9143  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9144ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9145eval as_val=\$$as_ac_Header
9146   if test "x$as_val" = x""yes; then :
9147  cat >>confdefs.h <<_ACEOF
9148#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9149_ACEOF
9150
9151fi
9152
9153done
9154
9155
9156for ac_header in sys/ptem.h
9157do :
9158  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
9159#  include <sys/stream.h>
9160#endif
9161"
9162if test "x$ac_cv_header_sys_ptem_h" = x""yes; then :
9163  cat >>confdefs.h <<_ACEOF
9164#define HAVE_SYS_PTEM_H 1
9165_ACEOF
9166
9167fi
9168
9169done
9170
9171
9172for ac_header in sys/sysctl.h
9173do :
9174  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
9175#  include <sys/param.h>
9176#endif
9177"
9178if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
9179  cat >>confdefs.h <<_ACEOF
9180#define HAVE_SYS_SYSCTL_H 1
9181_ACEOF
9182
9183fi
9184
9185done
9186
9187
9188
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
9190$as_echo_n "checking for pthread_np.h... " >&6; }
9191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193
9194#include <pthread.h>
9195#include <pthread_np.h>
9196int
9197main ()
9198{
9199int i; i = 0;
9200  ;
9201  return 0;
9202}
9203_ACEOF
9204if ac_fn_c_try_compile "$LINENO"; then :
9205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9206$as_echo "yes" >&6; }
9207		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
9208
9209else
9210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211$as_echo "no" >&6; }
9212fi
9213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214
9215for ac_header in strings.h
9216do :
9217  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
9218if test "x$ac_cv_header_strings_h" = x""yes; then :
9219  cat >>confdefs.h <<_ACEOF
9220#define HAVE_STRINGS_H 1
9221_ACEOF
9222
9223fi
9224
9225done
9226
9227if test "x$MACOSX" = "xyes"; then
9228    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
9229
9230else
9231
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
9233$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
9234cppflags_save=$CPPFLAGS
9235CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238
9239#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
9240# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
9241			/* but don't do it on AIX 5.1 (Uribarri) */
9242#endif
9243#ifdef HAVE_XM_XM_H
9244# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
9245#endif
9246#ifdef HAVE_STRING_H
9247# include <string.h>
9248#endif
9249#if defined(HAVE_STRINGS_H)
9250# include <strings.h>
9251#endif
9252
9253int
9254main ()
9255{
9256int i; i = 0;
9257  ;
9258  return 0;
9259}
9260_ACEOF
9261if ac_fn_c_try_compile "$LINENO"; then :
9262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9263$as_echo "yes" >&6; }
9264else
9265  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
9266
9267		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268$as_echo "no" >&6; }
9269fi
9270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271CPPFLAGS=$cppflags_save
9272fi
9273
9274if test $ac_cv_c_compiler_gnu = yes; then
9275    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
9276$as_echo_n "checking whether $CC needs -traditional... " >&6; }
9277if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
9278  $as_echo_n "(cached) " >&6
9279else
9280    ac_pattern="Autoconf.*'x'"
9281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282/* end confdefs.h.  */
9283#include <sgtty.h>
9284Autoconf TIOCGETP
9285_ACEOF
9286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9287  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
9288  ac_cv_prog_gcc_traditional=yes
9289else
9290  ac_cv_prog_gcc_traditional=no
9291fi
9292rm -f conftest*
9293
9294
9295  if test $ac_cv_prog_gcc_traditional = no; then
9296    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297/* end confdefs.h.  */
9298#include <termio.h>
9299Autoconf TCGETA
9300_ACEOF
9301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9302  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
9303  ac_cv_prog_gcc_traditional=yes
9304fi
9305rm -f conftest*
9306
9307  fi
9308fi
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
9310$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
9311  if test $ac_cv_prog_gcc_traditional = yes; then
9312    CC="$CC -traditional"
9313  fi
9314fi
9315
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9317$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9318if test "${ac_cv_c_const+set}" = set; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323
9324int
9325main ()
9326{
9327/* FIXME: Include the comments suggested by Paul. */
9328#ifndef __cplusplus
9329  /* Ultrix mips cc rejects this.  */
9330  typedef int charset[2];
9331  const charset cs;
9332  /* SunOS 4.1.1 cc rejects this.  */
9333  char const *const *pcpcc;
9334  char **ppc;
9335  /* NEC SVR4.0.2 mips cc rejects this.  */
9336  struct point {int x, y;};
9337  static struct point const zero = {0,0};
9338  /* AIX XL C 1.02.0.0 rejects this.
9339     It does not let you subtract one const X* pointer from another in
9340     an arm of an if-expression whose if-part is not a constant
9341     expression */
9342  const char *g = "string";
9343  pcpcc = &g + (g ? g-g : 0);
9344  /* HPUX 7.0 cc rejects these. */
9345  ++pcpcc;
9346  ppc = (char**) pcpcc;
9347  pcpcc = (char const *const *) ppc;
9348  { /* SCO 3.2v4 cc rejects this.  */
9349    char *t;
9350    char const *s = 0 ? (char *) 0 : (char const *) 0;
9351
9352    *t++ = 0;
9353    if (s) return 0;
9354  }
9355  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9356    int x[] = {25, 17};
9357    const int *foo = &x[0];
9358    ++foo;
9359  }
9360  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9361    typedef const int *iptr;
9362    iptr p = 0;
9363    ++p;
9364  }
9365  { /* AIX XL C 1.02.0.0 rejects this saying
9366       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9367    struct s { int j; const int *ap[3]; };
9368    struct s *b; b->j = 5;
9369  }
9370  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9371    const int foo = 10;
9372    if (!foo) return 0;
9373  }
9374  return !cs[0] && !zero.x;
9375#endif
9376
9377  ;
9378  return 0;
9379}
9380_ACEOF
9381if ac_fn_c_try_compile "$LINENO"; then :
9382  ac_cv_c_const=yes
9383else
9384  ac_cv_c_const=no
9385fi
9386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9387fi
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9389$as_echo "$ac_cv_c_const" >&6; }
9390if test $ac_cv_c_const = no; then
9391
9392$as_echo "#define const /**/" >>confdefs.h
9393
9394fi
9395
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9397$as_echo_n "checking for working volatile... " >&6; }
9398if test "${ac_cv_c_volatile+set}" = set; then :
9399  $as_echo_n "(cached) " >&6
9400else
9401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402/* end confdefs.h.  */
9403
9404int
9405main ()
9406{
9407
9408volatile int x;
9409int * volatile y = (int *) 0;
9410return !x && !y;
9411  ;
9412  return 0;
9413}
9414_ACEOF
9415if ac_fn_c_try_compile "$LINENO"; then :
9416  ac_cv_c_volatile=yes
9417else
9418  ac_cv_c_volatile=no
9419fi
9420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9421fi
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9423$as_echo "$ac_cv_c_volatile" >&6; }
9424if test $ac_cv_c_volatile = no; then
9425
9426$as_echo "#define volatile /**/" >>confdefs.h
9427
9428fi
9429
9430ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9431if test "x$ac_cv_type_mode_t" = x""yes; then :
9432
9433else
9434
9435cat >>confdefs.h <<_ACEOF
9436#define mode_t int
9437_ACEOF
9438
9439fi
9440
9441ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9442if test "x$ac_cv_type_off_t" = x""yes; then :
9443
9444else
9445
9446cat >>confdefs.h <<_ACEOF
9447#define off_t long int
9448_ACEOF
9449
9450fi
9451
9452ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9453if test "x$ac_cv_type_pid_t" = x""yes; then :
9454
9455else
9456
9457cat >>confdefs.h <<_ACEOF
9458#define pid_t int
9459_ACEOF
9460
9461fi
9462
9463ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9464if test "x$ac_cv_type_size_t" = x""yes; then :
9465
9466else
9467
9468cat >>confdefs.h <<_ACEOF
9469#define size_t unsigned int
9470_ACEOF
9471
9472fi
9473
9474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9475$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9476if test "${ac_cv_type_uid_t+set}" = set; then :
9477  $as_echo_n "(cached) " >&6
9478else
9479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480/* end confdefs.h.  */
9481#include <sys/types.h>
9482
9483_ACEOF
9484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9485  $EGREP "uid_t" >/dev/null 2>&1; then :
9486  ac_cv_type_uid_t=yes
9487else
9488  ac_cv_type_uid_t=no
9489fi
9490rm -f conftest*
9491
9492fi
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9494$as_echo "$ac_cv_type_uid_t" >&6; }
9495if test $ac_cv_type_uid_t = no; then
9496
9497$as_echo "#define uid_t int" >>confdefs.h
9498
9499
9500$as_echo "#define gid_t int" >>confdefs.h
9501
9502fi
9503
9504ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
9505case $ac_cv_c_uint32_t in #(
9506  no|yes) ;; #(
9507  *)
9508
9509$as_echo "#define _UINT32_T 1" >>confdefs.h
9510
9511
9512cat >>confdefs.h <<_ACEOF
9513#define uint32_t $ac_cv_c_uint32_t
9514_ACEOF
9515;;
9516  esac
9517
9518
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9520$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9521if test "${ac_cv_header_time+set}" = set; then :
9522  $as_echo_n "(cached) " >&6
9523else
9524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525/* end confdefs.h.  */
9526#include <sys/types.h>
9527#include <sys/time.h>
9528#include <time.h>
9529
9530int
9531main ()
9532{
9533if ((struct tm *) 0)
9534return 0;
9535  ;
9536  return 0;
9537}
9538_ACEOF
9539if ac_fn_c_try_compile "$LINENO"; then :
9540  ac_cv_header_time=yes
9541else
9542  ac_cv_header_time=no
9543fi
9544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9545fi
9546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9547$as_echo "$ac_cv_header_time" >&6; }
9548if test $ac_cv_header_time = yes; then
9549
9550$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9551
9552fi
9553
9554ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
9555if test "x$ac_cv_type_ino_t" = x""yes; then :
9556
9557else
9558
9559cat >>confdefs.h <<_ACEOF
9560#define ino_t long
9561_ACEOF
9562
9563fi
9564
9565ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
9566if test "x$ac_cv_type_dev_t" = x""yes; then :
9567
9568else
9569
9570cat >>confdefs.h <<_ACEOF
9571#define dev_t unsigned
9572_ACEOF
9573
9574fi
9575
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9577$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9578if test "${ac_cv_c_bigendian+set}" = set; then :
9579  $as_echo_n "(cached) " >&6
9580else
9581  ac_cv_c_bigendian=unknown
9582    # See if we're dealing with a universal compiler.
9583    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584/* end confdefs.h.  */
9585#ifndef __APPLE_CC__
9586	       not a universal capable compiler
9587	     #endif
9588	     typedef int dummy;
9589
9590_ACEOF
9591if ac_fn_c_try_compile "$LINENO"; then :
9592
9593	# Check for potential -arch flags.  It is not universal unless
9594	# there are at least two -arch flags with different values.
9595	ac_arch=
9596	ac_prev=
9597	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9598	 if test -n "$ac_prev"; then
9599	   case $ac_word in
9600	     i?86 | x86_64 | ppc | ppc64)
9601	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9602		 ac_arch=$ac_word
9603	       else
9604		 ac_cv_c_bigendian=universal
9605		 break
9606	       fi
9607	       ;;
9608	   esac
9609	   ac_prev=
9610	 elif test "x$ac_word" = "x-arch"; then
9611	   ac_prev=arch
9612	 fi
9613       done
9614fi
9615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9616    if test $ac_cv_c_bigendian = unknown; then
9617      # See if sys/param.h defines the BYTE_ORDER macro.
9618      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619/* end confdefs.h.  */
9620#include <sys/types.h>
9621	     #include <sys/param.h>
9622
9623int
9624main ()
9625{
9626#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9627		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9628		     && LITTLE_ENDIAN)
9629	      bogus endian macros
9630	     #endif
9631
9632  ;
9633  return 0;
9634}
9635_ACEOF
9636if ac_fn_c_try_compile "$LINENO"; then :
9637  # It does; now see whether it defined to BIG_ENDIAN or not.
9638	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h.  */
9640#include <sys/types.h>
9641		#include <sys/param.h>
9642
9643int
9644main ()
9645{
9646#if BYTE_ORDER != BIG_ENDIAN
9647		 not big endian
9648		#endif
9649
9650  ;
9651  return 0;
9652}
9653_ACEOF
9654if ac_fn_c_try_compile "$LINENO"; then :
9655  ac_cv_c_bigendian=yes
9656else
9657  ac_cv_c_bigendian=no
9658fi
9659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660fi
9661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662    fi
9663    if test $ac_cv_c_bigendian = unknown; then
9664      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9665      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666/* end confdefs.h.  */
9667#include <limits.h>
9668
9669int
9670main ()
9671{
9672#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9673	      bogus endian macros
9674	     #endif
9675
9676  ;
9677  return 0;
9678}
9679_ACEOF
9680if ac_fn_c_try_compile "$LINENO"; then :
9681  # It does; now see whether it defined to _BIG_ENDIAN or not.
9682	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683/* end confdefs.h.  */
9684#include <limits.h>
9685
9686int
9687main ()
9688{
9689#ifndef _BIG_ENDIAN
9690		 not big endian
9691		#endif
9692
9693  ;
9694  return 0;
9695}
9696_ACEOF
9697if ac_fn_c_try_compile "$LINENO"; then :
9698  ac_cv_c_bigendian=yes
9699else
9700  ac_cv_c_bigendian=no
9701fi
9702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703fi
9704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9705    fi
9706    if test $ac_cv_c_bigendian = unknown; then
9707      # Compile a test program.
9708      if test "$cross_compiling" = yes; then :
9709  # Try to guess by grepping values from an object file.
9710	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711/* end confdefs.h.  */
9712short int ascii_mm[] =
9713		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9714		short int ascii_ii[] =
9715		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9716		int use_ascii (int i) {
9717		  return ascii_mm[i] + ascii_ii[i];
9718		}
9719		short int ebcdic_ii[] =
9720		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9721		short int ebcdic_mm[] =
9722		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9723		int use_ebcdic (int i) {
9724		  return ebcdic_mm[i] + ebcdic_ii[i];
9725		}
9726		extern int foo;
9727
9728int
9729main ()
9730{
9731return use_ascii (foo) == use_ebcdic (foo);
9732  ;
9733  return 0;
9734}
9735_ACEOF
9736if ac_fn_c_try_compile "$LINENO"; then :
9737  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9738	      ac_cv_c_bigendian=yes
9739	    fi
9740	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9741	      if test "$ac_cv_c_bigendian" = unknown; then
9742		ac_cv_c_bigendian=no
9743	      else
9744		# finding both strings is unlikely to happen, but who knows?
9745		ac_cv_c_bigendian=unknown
9746	      fi
9747	    fi
9748fi
9749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9750else
9751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752/* end confdefs.h.  */
9753$ac_includes_default
9754int
9755main ()
9756{
9757
9758	     /* Are we little or big endian?  From Harbison&Steele.  */
9759	     union
9760	     {
9761	       long int l;
9762	       char c[sizeof (long int)];
9763	     } u;
9764	     u.l = 1;
9765	     return u.c[sizeof (long int) - 1] == 1;
9766
9767  ;
9768  return 0;
9769}
9770_ACEOF
9771if ac_fn_c_try_run "$LINENO"; then :
9772  ac_cv_c_bigendian=no
9773else
9774  ac_cv_c_bigendian=yes
9775fi
9776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9777  conftest.$ac_objext conftest.beam conftest.$ac_ext
9778fi
9779
9780    fi
9781fi
9782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9783$as_echo "$ac_cv_c_bigendian" >&6; }
9784 case $ac_cv_c_bigendian in #(
9785   yes)
9786     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9787;; #(
9788   no)
9789      ;; #(
9790   universal)
9791
9792$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9793
9794     ;; #(
9795   *)
9796     as_fn_error "unknown endianness
9797 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9798 esac
9799
9800
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
9802$as_echo_n "checking for rlim_t... " >&6; }
9803if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
9804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
9805$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
9806else
9807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808/* end confdefs.h.  */
9809
9810#include <sys/types.h>
9811#if STDC_HEADERS
9812# include <stdlib.h>
9813# include <stddef.h>
9814#endif
9815#ifdef HAVE_SYS_RESOURCE_H
9816# include <sys/resource.h>
9817#endif
9818
9819_ACEOF
9820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9821  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
9822  ac_cv_type_rlim_t=yes
9823else
9824  ac_cv_type_rlim_t=no
9825fi
9826rm -f conftest*
9827
9828	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
9829$as_echo "$ac_cv_type_rlim_t" >&6; }
9830fi
9831if test $ac_cv_type_rlim_t = no; then
9832  cat >> confdefs.h <<\EOF
9833#define rlim_t unsigned long
9834EOF
9835fi
9836
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
9838$as_echo_n "checking for stack_t... " >&6; }
9839if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
9840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
9841$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
9842else
9843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844/* end confdefs.h.  */
9845
9846#include <sys/types.h>
9847#if STDC_HEADERS
9848# include <stdlib.h>
9849# include <stddef.h>
9850#endif
9851#include <signal.h>
9852
9853_ACEOF
9854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9855  $EGREP "stack_t" >/dev/null 2>&1; then :
9856  ac_cv_type_stack_t=yes
9857else
9858  ac_cv_type_stack_t=no
9859fi
9860rm -f conftest*
9861
9862	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
9863$as_echo "$ac_cv_type_stack_t" >&6; }
9864fi
9865if test $ac_cv_type_stack_t = no; then
9866  cat >> confdefs.h <<\EOF
9867#define stack_t struct sigaltstack
9868EOF
9869fi
9870
9871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
9872$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
9873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h.  */
9875
9876#include <sys/types.h>
9877#if STDC_HEADERS
9878# include <stdlib.h>
9879# include <stddef.h>
9880#endif
9881#include <signal.h>
9882#include "confdefs.h"
9883
9884int
9885main ()
9886{
9887stack_t sigstk; sigstk.ss_base = 0;
9888  ;
9889  return 0;
9890}
9891_ACEOF
9892if ac_fn_c_try_compile "$LINENO"; then :
9893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9894$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
9895
9896else
9897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898$as_echo "no" >&6; }
9899fi
9900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901
9902olibs="$LIBS"
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
9904$as_echo_n "checking --with-tlib argument... " >&6; }
9905
9906# Check whether --with-tlib was given.
9907if test "${with_tlib+set}" = set; then :
9908  withval=$with_tlib;
9909fi
9910
9911if test -n "$with_tlib"; then
9912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
9913$as_echo "$with_tlib" >&6; }
9914  LIBS="$LIBS -l$with_tlib"
9915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
9916$as_echo_n "checking for linking with $with_tlib library... " >&6; }
9917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918/* end confdefs.h.  */
9919
9920int
9921main ()
9922{
9923
9924  ;
9925  return 0;
9926}
9927_ACEOF
9928if ac_fn_c_try_link "$LINENO"; then :
9929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
9930$as_echo "OK" >&6; }
9931else
9932  as_fn_error "FAILED" "$LINENO" 5
9933fi
9934rm -f core conftest.err conftest.$ac_objext \
9935    conftest$ac_exeext conftest.$ac_ext
9936    olibs="$LIBS"
9937else
9938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
9939$as_echo "empty: automatic terminal library selection" >&6; }
9940                case "`uname -s 2>/dev/null`" in
9941	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
9942	*)	tlibs="tinfo ncurses termlib termcap curses";;
9943  esac
9944  for libname in $tlibs; do
9945    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
9947$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
9948if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9949  $as_echo_n "(cached) " >&6
9950else
9951  ac_check_lib_save_LIBS=$LIBS
9952LIBS="-l${libname}  $LIBS"
9953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954/* end confdefs.h.  */
9955
9956/* Override any GCC internal prototype to avoid an error.
9957   Use char because int might match the return type of a GCC
9958   builtin and then its argument prototype would still apply.  */
9959#ifdef __cplusplus
9960extern "C"
9961#endif
9962char tgetent ();
9963int
9964main ()
9965{
9966return tgetent ();
9967  ;
9968  return 0;
9969}
9970_ACEOF
9971if ac_fn_c_try_link "$LINENO"; then :
9972  eval "$as_ac_Lib=yes"
9973else
9974  eval "$as_ac_Lib=no"
9975fi
9976rm -f core conftest.err conftest.$ac_objext \
9977    conftest$ac_exeext conftest.$ac_ext
9978LIBS=$ac_check_lib_save_LIBS
9979fi
9980eval ac_res=\$$as_ac_Lib
9981	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9982$as_echo "$ac_res" >&6; }
9983eval as_val=\$$as_ac_Lib
9984   if test "x$as_val" = x""yes; then :
9985  cat >>confdefs.h <<_ACEOF
9986#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
9987_ACEOF
9988
9989  LIBS="-l${libname} $LIBS"
9990
9991fi
9992
9993    if test "x$olibs" != "x$LIBS"; then
9994                        if test "$cross_compiling" = yes; then :
9995  res="FAIL"
9996else
9997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998/* end confdefs.h.  */
9999
10000#ifdef HAVE_TERMCAP_H
10001# include <termcap.h>
10002#endif
10003#if STDC_HEADERS
10004# include <stdlib.h>
10005# include <stddef.h>
10006#endif
10007main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
10008_ACEOF
10009if ac_fn_c_try_run "$LINENO"; then :
10010  res="OK"
10011else
10012  res="FAIL"
10013fi
10014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10015  conftest.$ac_objext conftest.beam conftest.$ac_ext
10016fi
10017
10018      if test "$res" = "OK"; then
10019	break
10020      fi
10021      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
10022$as_echo "$libname library is not usable" >&6; }
10023      LIBS="$olibs"
10024    fi
10025  done
10026  if test "x$olibs" = "x$LIBS"; then
10027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
10028$as_echo "no terminal library found" >&6; }
10029  fi
10030fi
10031
10032if test "x$olibs" = "x$LIBS"; then
10033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
10034$as_echo_n "checking for tgetent()... " >&6; }
10035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036/* end confdefs.h.  */
10037
10038int
10039main ()
10040{
10041char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
10042  ;
10043  return 0;
10044}
10045_ACEOF
10046if ac_fn_c_try_link "$LINENO"; then :
10047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10048$as_echo "yes" >&6; }
10049else
10050  as_fn_error "NOT FOUND!
10051      You need to install a terminal library; for example ncurses.
10052      Or specify the name of the library with --with-tlib." "$LINENO" 5
10053fi
10054rm -f core conftest.err conftest.$ac_objext \
10055    conftest$ac_exeext conftest.$ac_ext
10056fi
10057
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
10059$as_echo_n "checking whether we talk terminfo... " >&6; }
10060if test "${vim_cv_terminfo+set}" = set; then :
10061  $as_echo_n "(cached) " >&6
10062else
10063
10064    if test "$cross_compiling" = yes; then :
10065
10066      as_fn_error "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
10067
10068else
10069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070/* end confdefs.h.  */
10071
10072#include "confdefs.h"
10073#ifdef HAVE_TERMCAP_H
10074# include <termcap.h>
10075#endif
10076#ifdef HAVE_STRING_H
10077# include <string.h>
10078#endif
10079#if STDC_HEADERS
10080# include <stdlib.h>
10081# include <stddef.h>
10082#endif
10083main()
10084{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
10085
10086_ACEOF
10087if ac_fn_c_try_run "$LINENO"; then :
10088
10089      vim_cv_terminfo=no
10090
10091else
10092
10093      vim_cv_terminfo=yes
10094
10095fi
10096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10097  conftest.$ac_objext conftest.beam conftest.$ac_ext
10098fi
10099
10100
10101fi
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
10103$as_echo "$vim_cv_terminfo" >&6; }
10104
10105if test "x$vim_cv_terminfo" = "xyes" ; then
10106  $as_echo "#define TERMINFO 1" >>confdefs.h
10107
10108fi
10109
10110if test "x$olibs" != "x$LIBS"; then
10111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
10112$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
10113if test "${vim_cv_tgent+set}" = set; then :
10114  $as_echo_n "(cached) " >&6
10115else
10116
10117      if test "$cross_compiling" = yes; then :
10118
10119	as_fn_error "failed to compile test program." "$LINENO" 5
10120
10121else
10122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h.  */
10124
10125#include "confdefs.h"
10126#ifdef HAVE_TERMCAP_H
10127# include <termcap.h>
10128#endif
10129#if STDC_HEADERS
10130# include <stdlib.h>
10131# include <stddef.h>
10132#endif
10133main()
10134{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
10135
10136_ACEOF
10137if ac_fn_c_try_run "$LINENO"; then :
10138
10139	vim_cv_tgent=zero
10140
10141else
10142
10143	vim_cv_tgent=non-zero
10144
10145fi
10146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10147  conftest.$ac_objext conftest.beam conftest.$ac_ext
10148fi
10149
10150
10151fi
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5
10153$as_echo "$vim_cv_tgent" >&6; }
10154
10155  if test "x$vim_cv_tgent" = "xzero" ; then
10156    $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
10157
10158  fi
10159fi
10160
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
10162$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
10163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164/* end confdefs.h.  */
10165
10166#ifdef HAVE_TERMCAP_H
10167# include <termcap.h>
10168#endif
10169
10170int
10171main ()
10172{
10173ospeed = 20000
10174  ;
10175  return 0;
10176}
10177_ACEOF
10178if ac_fn_c_try_link "$LINENO"; then :
10179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10180$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
10181
10182else
10183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184$as_echo "no" >&6; }
10185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
10186$as_echo_n "checking whether ospeed can be extern... " >&6; }
10187	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188/* end confdefs.h.  */
10189
10190#ifdef HAVE_TERMCAP_H
10191# include <termcap.h>
10192#endif
10193extern short ospeed;
10194
10195int
10196main ()
10197{
10198ospeed = 20000
10199  ;
10200  return 0;
10201}
10202_ACEOF
10203if ac_fn_c_try_link "$LINENO"; then :
10204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10205$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
10206
10207else
10208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209$as_echo "no" >&6; }
10210fi
10211rm -f core conftest.err conftest.$ac_objext \
10212    conftest$ac_exeext conftest.$ac_ext
10213
10214fi
10215rm -f core conftest.err conftest.$ac_objext \
10216    conftest$ac_exeext conftest.$ac_ext
10217
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
10219$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
10220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221/* end confdefs.h.  */
10222
10223#ifdef HAVE_TERMCAP_H
10224# include <termcap.h>
10225#endif
10226
10227int
10228main ()
10229{
10230if (UP == 0 && BC == 0) PC = 1
10231  ;
10232  return 0;
10233}
10234_ACEOF
10235if ac_fn_c_try_link "$LINENO"; then :
10236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10237$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
10238
10239else
10240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241$as_echo "no" >&6; }
10242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
10243$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
10244	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245/* end confdefs.h.  */
10246
10247#ifdef HAVE_TERMCAP_H
10248# include <termcap.h>
10249#endif
10250extern char *UP, *BC, PC;
10251
10252int
10253main ()
10254{
10255if (UP == 0 && BC == 0) PC = 1
10256  ;
10257  return 0;
10258}
10259_ACEOF
10260if ac_fn_c_try_link "$LINENO"; then :
10261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10262$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
10263
10264else
10265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266$as_echo "no" >&6; }
10267fi
10268rm -f core conftest.err conftest.$ac_objext \
10269    conftest$ac_exeext conftest.$ac_ext
10270
10271fi
10272rm -f core conftest.err conftest.$ac_objext \
10273    conftest$ac_exeext conftest.$ac_ext
10274
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
10276$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
10277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278/* end confdefs.h.  */
10279
10280#ifdef HAVE_TERMCAP_H
10281# include <termcap.h>
10282#endif
10283
10284int
10285main ()
10286{
10287extern int xx(); tputs("test", 1, (outfuntype)xx)
10288  ;
10289  return 0;
10290}
10291_ACEOF
10292if ac_fn_c_try_compile "$LINENO"; then :
10293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10294$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
10295
10296else
10297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298$as_echo "no" >&6; }
10299fi
10300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
10303$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
10304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305/* end confdefs.h.  */
10306
10307#include <sys/types.h>
10308#include <sys/time.h>
10309#include <sys/select.h>
10310int
10311main ()
10312{
10313
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318if ac_fn_c_try_compile "$LINENO"; then :
10319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10320$as_echo "yes" >&6; }
10321			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
10322
10323else
10324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325$as_echo "no" >&6; }
10326fi
10327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10328
10329
10330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
10331$as_echo_n "checking for /dev/ptc... " >&6; }
10332if test -r /dev/ptc; then
10333  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
10334
10335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10336$as_echo "yes" >&6; }
10337else
10338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339$as_echo "no" >&6; }
10340fi
10341
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
10343$as_echo_n "checking for SVR4 ptys... " >&6; }
10344if test -c /dev/ptmx ; then
10345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346/* end confdefs.h.  */
10347
10348int
10349main ()
10350{
10351ptsname(0);grantpt(0);unlockpt(0);
10352  ;
10353  return 0;
10354}
10355_ACEOF
10356if ac_fn_c_try_link "$LINENO"; then :
10357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10358$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
10359
10360else
10361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362$as_echo "no" >&6; }
10363fi
10364rm -f core conftest.err conftest.$ac_objext \
10365    conftest$ac_exeext conftest.$ac_ext
10366else
10367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368$as_echo "no" >&6; }
10369fi
10370
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
10372$as_echo_n "checking for ptyranges... " >&6; }
10373if test -d /dev/ptym ; then
10374  pdir='/dev/ptym'
10375else
10376  pdir='/dev'
10377fi
10378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379/* end confdefs.h.  */
10380#ifdef M_UNIX
10381   yes;
10382#endif
10383
10384_ACEOF
10385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10386  $EGREP "yes" >/dev/null 2>&1; then :
10387  ptys=`echo /dev/ptyp??`
10388else
10389  ptys=`echo $pdir/pty??`
10390fi
10391rm -f conftest*
10392
10393if test "$ptys" != "$pdir/pty??" ; then
10394  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
10395  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
10396  cat >>confdefs.h <<_ACEOF
10397#define PTYRANGE0 "$p0"
10398_ACEOF
10399
10400  cat >>confdefs.h <<_ACEOF
10401#define PTYRANGE1 "$p1"
10402_ACEOF
10403
10404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
10405$as_echo "$p0 / $p1" >&6; }
10406else
10407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
10408$as_echo "don't know" >&6; }
10409fi
10410
10411rm -f conftest_grp
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
10413$as_echo_n "checking default tty permissions/group... " >&6; }
10414if test "${vim_cv_tty_group+set}" = set; then :
10415  $as_echo_n "(cached) " >&6
10416else
10417
10418    if test "$cross_compiling" = yes; then :
10419
10420      as_fn_error "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
10421
10422else
10423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424/* end confdefs.h.  */
10425
10426#include "confdefs.h"
10427#include <sys/types.h>
10428#if STDC_HEADERS
10429# include <stdlib.h>
10430# include <stddef.h>
10431#endif
10432#ifdef HAVE_UNISTD_H
10433#include <unistd.h>
10434#endif
10435#include <sys/stat.h>
10436#include <stdio.h>
10437main()
10438{
10439  struct stat sb;
10440  char *x,*ttyname();
10441  int om, m;
10442  FILE *fp;
10443
10444  if (!(x = ttyname(0))) exit(1);
10445  if (stat(x, &sb)) exit(1);
10446  om = sb.st_mode;
10447  if (om & 002) exit(0);
10448  m = system("mesg y");
10449  if (m == -1 || m == 127) exit(1);
10450  if (stat(x, &sb)) exit(1);
10451  m = sb.st_mode;
10452  if (chmod(x, om)) exit(1);
10453  if (m & 002) exit(0);
10454  if (sb.st_gid == getgid()) exit(1);
10455  if (!(fp=fopen("conftest_grp", "w")))
10456    exit(1);
10457  fprintf(fp, "%d\n", sb.st_gid);
10458  fclose(fp);
10459  exit(0);
10460}
10461
10462_ACEOF
10463if ac_fn_c_try_run "$LINENO"; then :
10464
10465      if test -f conftest_grp; then
10466	vim_cv_tty_group=`cat conftest_grp`
10467	if test "x$vim_cv_tty_mode" = "x" ; then
10468	  vim_cv_tty_mode=0620
10469	fi
10470	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
10471$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
10472      else
10473	vim_cv_tty_group=world
10474	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
10475$as_echo "ptys are world accessible" >&6; }
10476      fi
10477
10478else
10479
10480      vim_cv_tty_group=world
10481      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
10482$as_echo "can't determine - assume ptys are world accessible" >&6; }
10483
10484fi
10485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10486  conftest.$ac_objext conftest.beam conftest.$ac_ext
10487fi
10488
10489
10490fi
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
10492$as_echo "$vim_cv_tty_group" >&6; }
10493rm -f conftest_grp
10494
10495if test "x$vim_cv_tty_group" != "xworld" ; then
10496  cat >>confdefs.h <<_ACEOF
10497#define PTYGROUP $vim_cv_tty_group
10498_ACEOF
10499
10500  if test "x$vim_cv_tty_mode" = "x" ; then
10501    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
10502  else
10503    $as_echo "#define PTYMODE 0620" >>confdefs.h
10504
10505  fi
10506fi
10507
10508
10509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10510$as_echo_n "checking return type of signal handlers... " >&6; }
10511if test "${ac_cv_type_signal+set}" = set; then :
10512  $as_echo_n "(cached) " >&6
10513else
10514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515/* end confdefs.h.  */
10516#include <sys/types.h>
10517#include <signal.h>
10518
10519int
10520main ()
10521{
10522return *(signal (0, 0)) (0) == 1;
10523  ;
10524  return 0;
10525}
10526_ACEOF
10527if ac_fn_c_try_compile "$LINENO"; then :
10528  ac_cv_type_signal=int
10529else
10530  ac_cv_type_signal=void
10531fi
10532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10533fi
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10535$as_echo "$ac_cv_type_signal" >&6; }
10536
10537cat >>confdefs.h <<_ACEOF
10538#define RETSIGTYPE $ac_cv_type_signal
10539_ACEOF
10540
10541
10542
10543if test $ac_cv_type_signal = void; then
10544  $as_echo "#define SIGRETURN return" >>confdefs.h
10545
10546else
10547  $as_echo "#define SIGRETURN return 0" >>confdefs.h
10548
10549fi
10550
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
10552$as_echo_n "checking for struct sigcontext... " >&6; }
10553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554/* end confdefs.h.  */
10555
10556#include <signal.h>
10557test_sig()
10558{
10559    struct sigcontext *scont;
10560    scont = (struct sigcontext *)0;
10561    return 1;
10562}
10563int
10564main ()
10565{
10566
10567  ;
10568  return 0;
10569}
10570_ACEOF
10571if ac_fn_c_try_compile "$LINENO"; then :
10572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10573$as_echo "yes" >&6; }
10574		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
10575
10576else
10577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578$as_echo "no" >&6; }
10579fi
10580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
10583$as_echo_n "checking getcwd implementation is broken... " >&6; }
10584if test "${vim_cv_getcwd_broken+set}" = set; then :
10585  $as_echo_n "(cached) " >&6
10586else
10587
10588    if test "$cross_compiling" = yes; then :
10589
10590      as_fn_error "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
10591
10592else
10593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594/* end confdefs.h.  */
10595
10596#include "confdefs.h"
10597#ifdef HAVE_UNISTD_H
10598#include <unistd.h>
10599#endif
10600char *dagger[] = { "IFS=pwd", 0 };
10601main()
10602{
10603  char buffer[500];
10604  extern char **environ;
10605  environ = dagger;
10606  return getcwd(buffer, 500) ? 0 : 1;
10607}
10608
10609_ACEOF
10610if ac_fn_c_try_run "$LINENO"; then :
10611
10612      vim_cv_getcwd_broken=no
10613
10614else
10615
10616      vim_cv_getcwd_broken=yes
10617
10618fi
10619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10620  conftest.$ac_objext conftest.beam conftest.$ac_ext
10621fi
10622
10623
10624fi
10625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
10626$as_echo "$vim_cv_getcwd_broken" >&6; }
10627
10628if test "x$vim_cv_getcwd_broken" = "xyes" ; then
10629  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
10630
10631fi
10632
10633for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
10634	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
10635	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
10636	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
10637	sigvec strcasecmp strerror strftime stricmp strncasecmp \
10638	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
10639	usleep utime utimes
10640do :
10641  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10642ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10643eval as_val=\$$as_ac_var
10644   if test "x$as_val" = x""yes; then :
10645  cat >>confdefs.h <<_ACEOF
10646#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10647_ACEOF
10648
10649fi
10650done
10651
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10653$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
10654if test "${ac_cv_sys_largefile_source+set}" = set; then :
10655  $as_echo_n "(cached) " >&6
10656else
10657  while :; do
10658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10659/* end confdefs.h.  */
10660#include <sys/types.h> /* for off_t */
10661     #include <stdio.h>
10662int
10663main ()
10664{
10665int (*fp) (FILE *, off_t, int) = fseeko;
10666     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10667  ;
10668  return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_link "$LINENO"; then :
10672  ac_cv_sys_largefile_source=no; break
10673fi
10674rm -f core conftest.err conftest.$ac_objext \
10675    conftest$ac_exeext conftest.$ac_ext
10676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677/* end confdefs.h.  */
10678#define _LARGEFILE_SOURCE 1
10679#include <sys/types.h> /* for off_t */
10680     #include <stdio.h>
10681int
10682main ()
10683{
10684int (*fp) (FILE *, off_t, int) = fseeko;
10685     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10686  ;
10687  return 0;
10688}
10689_ACEOF
10690if ac_fn_c_try_link "$LINENO"; then :
10691  ac_cv_sys_largefile_source=1; break
10692fi
10693rm -f core conftest.err conftest.$ac_objext \
10694    conftest$ac_exeext conftest.$ac_ext
10695  ac_cv_sys_largefile_source=unknown
10696  break
10697done
10698fi
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
10700$as_echo "$ac_cv_sys_largefile_source" >&6; }
10701case $ac_cv_sys_largefile_source in #(
10702  no | unknown) ;;
10703  *)
10704cat >>confdefs.h <<_ACEOF
10705#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10706_ACEOF
10707;;
10708esac
10709rm -rf conftest*
10710
10711# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10712# in glibc 2.1.3, but that breaks too many other things.
10713# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10714if test $ac_cv_sys_largefile_source != unknown; then
10715
10716$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
10717
10718fi
10719
10720
10721# Check whether --enable-largefile was given.
10722if test "${enable_largefile+set}" = set; then :
10723  enableval=$enable_largefile;
10724fi
10725
10726if test "$enable_largefile" != no; then
10727
10728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10729$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10730if test "${ac_cv_sys_largefile_CC+set}" = set; then :
10731  $as_echo_n "(cached) " >&6
10732else
10733  ac_cv_sys_largefile_CC=no
10734     if test "$GCC" != yes; then
10735       ac_save_CC=$CC
10736       while :; do
10737	 # IRIX 6.2 and later do not support large files by default,
10738	 # so use the C compiler's -n32 option if that helps.
10739	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740/* end confdefs.h.  */
10741#include <sys/types.h>
10742 /* Check that off_t can represent 2**63 - 1 correctly.
10743    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10744    since some C++ compilers masquerading as C compilers
10745    incorrectly reject 9223372036854775807.  */
10746#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10747  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10748		       && LARGE_OFF_T % 2147483647 == 1)
10749		      ? 1 : -1];
10750int
10751main ()
10752{
10753
10754  ;
10755  return 0;
10756}
10757_ACEOF
10758	 if ac_fn_c_try_compile "$LINENO"; then :
10759  break
10760fi
10761rm -f core conftest.err conftest.$ac_objext
10762	 CC="$CC -n32"
10763	 if ac_fn_c_try_compile "$LINENO"; then :
10764  ac_cv_sys_largefile_CC=' -n32'; break
10765fi
10766rm -f core conftest.err conftest.$ac_objext
10767	 break
10768       done
10769       CC=$ac_save_CC
10770       rm -f conftest.$ac_ext
10771    fi
10772fi
10773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10774$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10775  if test "$ac_cv_sys_largefile_CC" != no; then
10776    CC=$CC$ac_cv_sys_largefile_CC
10777  fi
10778
10779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10780$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10781if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
10782  $as_echo_n "(cached) " >&6
10783else
10784  while :; do
10785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786/* end confdefs.h.  */
10787#include <sys/types.h>
10788 /* Check that off_t can represent 2**63 - 1 correctly.
10789    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10790    since some C++ compilers masquerading as C compilers
10791    incorrectly reject 9223372036854775807.  */
10792#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10793  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10794		       && LARGE_OFF_T % 2147483647 == 1)
10795		      ? 1 : -1];
10796int
10797main ()
10798{
10799
10800  ;
10801  return 0;
10802}
10803_ACEOF
10804if ac_fn_c_try_compile "$LINENO"; then :
10805  ac_cv_sys_file_offset_bits=no; break
10806fi
10807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809/* end confdefs.h.  */
10810#define _FILE_OFFSET_BITS 64
10811#include <sys/types.h>
10812 /* Check that off_t can represent 2**63 - 1 correctly.
10813    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10814    since some C++ compilers masquerading as C compilers
10815    incorrectly reject 9223372036854775807.  */
10816#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10817  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10818		       && LARGE_OFF_T % 2147483647 == 1)
10819		      ? 1 : -1];
10820int
10821main ()
10822{
10823
10824  ;
10825  return 0;
10826}
10827_ACEOF
10828if ac_fn_c_try_compile "$LINENO"; then :
10829  ac_cv_sys_file_offset_bits=64; break
10830fi
10831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832  ac_cv_sys_file_offset_bits=unknown
10833  break
10834done
10835fi
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10837$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10838case $ac_cv_sys_file_offset_bits in #(
10839  no | unknown) ;;
10840  *)
10841cat >>confdefs.h <<_ACEOF
10842#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10843_ACEOF
10844;;
10845esac
10846rm -rf conftest*
10847  if test $ac_cv_sys_file_offset_bits = unknown; then
10848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10849$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10850if test "${ac_cv_sys_large_files+set}" = set; then :
10851  $as_echo_n "(cached) " >&6
10852else
10853  while :; do
10854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855/* end confdefs.h.  */
10856#include <sys/types.h>
10857 /* Check that off_t can represent 2**63 - 1 correctly.
10858    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10859    since some C++ compilers masquerading as C compilers
10860    incorrectly reject 9223372036854775807.  */
10861#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10862  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10863		       && LARGE_OFF_T % 2147483647 == 1)
10864		      ? 1 : -1];
10865int
10866main ()
10867{
10868
10869  ;
10870  return 0;
10871}
10872_ACEOF
10873if ac_fn_c_try_compile "$LINENO"; then :
10874  ac_cv_sys_large_files=no; break
10875fi
10876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878/* end confdefs.h.  */
10879#define _LARGE_FILES 1
10880#include <sys/types.h>
10881 /* Check that off_t can represent 2**63 - 1 correctly.
10882    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10883    since some C++ compilers masquerading as C compilers
10884    incorrectly reject 9223372036854775807.  */
10885#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10886  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10887		       && LARGE_OFF_T % 2147483647 == 1)
10888		      ? 1 : -1];
10889int
10890main ()
10891{
10892
10893  ;
10894  return 0;
10895}
10896_ACEOF
10897if ac_fn_c_try_compile "$LINENO"; then :
10898  ac_cv_sys_large_files=1; break
10899fi
10900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901  ac_cv_sys_large_files=unknown
10902  break
10903done
10904fi
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10906$as_echo "$ac_cv_sys_large_files" >&6; }
10907case $ac_cv_sys_large_files in #(
10908  no | unknown) ;;
10909  *)
10910cat >>confdefs.h <<_ACEOF
10911#define _LARGE_FILES $ac_cv_sys_large_files
10912_ACEOF
10913;;
10914esac
10915rm -rf conftest*
10916  fi
10917fi
10918
10919
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
10921$as_echo_n "checking for st_blksize... " >&6; }
10922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923/* end confdefs.h.  */
10924#include <sys/types.h>
10925#include <sys/stat.h>
10926int
10927main ()
10928{
10929	struct stat st;
10930	int n;
10931
10932	stat("/", &st);
10933	n = (int)st.st_blksize;
10934  ;
10935  return 0;
10936}
10937_ACEOF
10938if ac_fn_c_try_compile "$LINENO"; then :
10939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10940$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
10941
10942else
10943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944$as_echo "no" >&6; }
10945fi
10946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10947
10948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
10949$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
10950if test "${vim_cv_stat_ignores_slash+set}" = set; then :
10951  $as_echo_n "(cached) " >&6
10952else
10953
10954    if test "$cross_compiling" = yes; then :
10955
10956      as_fn_error "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
10957
10958else
10959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960/* end confdefs.h.  */
10961
10962#include "confdefs.h"
10963#if STDC_HEADERS
10964# include <stdlib.h>
10965# include <stddef.h>
10966#endif
10967#include <sys/types.h>
10968#include <sys/stat.h>
10969main() {struct stat st;  exit(stat("configure/", &st) != 0); }
10970
10971_ACEOF
10972if ac_fn_c_try_run "$LINENO"; then :
10973
10974      vim_cv_stat_ignores_slash=yes
10975
10976else
10977
10978      vim_cv_stat_ignores_slash=no
10979
10980fi
10981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10982  conftest.$ac_objext conftest.beam conftest.$ac_ext
10983fi
10984
10985
10986fi
10987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
10988$as_echo "$vim_cv_stat_ignores_slash" >&6; }
10989
10990if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
10991  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
10992
10993fi
10994
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
10996$as_echo_n "checking for iconv_open()... " >&6; }
10997save_LIBS="$LIBS"
10998LIBS="$LIBS -liconv"
10999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000/* end confdefs.h.  */
11001
11002#ifdef HAVE_ICONV_H
11003# include <iconv.h>
11004#endif
11005
11006int
11007main ()
11008{
11009iconv_open("fr", "to");
11010  ;
11011  return 0;
11012}
11013_ACEOF
11014if ac_fn_c_try_link "$LINENO"; then :
11015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
11016$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11017
11018else
11019  LIBS="$save_LIBS"
11020    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021/* end confdefs.h.  */
11022
11023#ifdef HAVE_ICONV_H
11024# include <iconv.h>
11025#endif
11026
11027int
11028main ()
11029{
11030iconv_open("fr", "to");
11031  ;
11032  return 0;
11033}
11034_ACEOF
11035if ac_fn_c_try_link "$LINENO"; then :
11036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11037$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11038
11039else
11040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
11042fi
11043rm -f core conftest.err conftest.$ac_objext \
11044    conftest$ac_exeext conftest.$ac_ext
11045fi
11046rm -f core conftest.err conftest.$ac_objext \
11047    conftest$ac_exeext conftest.$ac_ext
11048
11049
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
11051$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
11052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053/* end confdefs.h.  */
11054
11055#ifdef HAVE_LANGINFO_H
11056# include <langinfo.h>
11057#endif
11058
11059int
11060main ()
11061{
11062char *cs = nl_langinfo(CODESET);
11063  ;
11064  return 0;
11065}
11066_ACEOF
11067if ac_fn_c_try_link "$LINENO"; then :
11068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11069$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
11070
11071else
11072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073$as_echo "no" >&6; }
11074fi
11075rm -f core conftest.err conftest.$ac_objext \
11076    conftest$ac_exeext conftest.$ac_ext
11077
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
11079$as_echo_n "checking for strtod in -lm... " >&6; }
11080if test "${ac_cv_lib_m_strtod+set}" = set; then :
11081  $as_echo_n "(cached) " >&6
11082else
11083  ac_check_lib_save_LIBS=$LIBS
11084LIBS="-lm  $LIBS"
11085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086/* end confdefs.h.  */
11087
11088/* Override any GCC internal prototype to avoid an error.
11089   Use char because int might match the return type of a GCC
11090   builtin and then its argument prototype would still apply.  */
11091#ifdef __cplusplus
11092extern "C"
11093#endif
11094char strtod ();
11095int
11096main ()
11097{
11098return strtod ();
11099  ;
11100  return 0;
11101}
11102_ACEOF
11103if ac_fn_c_try_link "$LINENO"; then :
11104  ac_cv_lib_m_strtod=yes
11105else
11106  ac_cv_lib_m_strtod=no
11107fi
11108rm -f core conftest.err conftest.$ac_objext \
11109    conftest$ac_exeext conftest.$ac_ext
11110LIBS=$ac_check_lib_save_LIBS
11111fi
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
11113$as_echo "$ac_cv_lib_m_strtod" >&6; }
11114if test "x$ac_cv_lib_m_strtod" = x""yes; then :
11115  cat >>confdefs.h <<_ACEOF
11116#define HAVE_LIBM 1
11117_ACEOF
11118
11119  LIBS="-lm $LIBS"
11120
11121fi
11122
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
11124$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
11125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126/* end confdefs.h.  */
11127
11128#ifdef HAVE_MATH_H
11129# include <math.h>
11130#endif
11131#if STDC_HEADERS
11132# include <stdlib.h>
11133# include <stddef.h>
11134#endif
11135
11136int
11137main ()
11138{
11139char *s; double d;
11140    d = strtod("1.1", &s);
11141    d = fabs(1.11);
11142    d = ceil(1.11);
11143    d = floor(1.11);
11144    d = log10(1.11);
11145    d = pow(1.11, 2.22);
11146    d = sqrt(1.11);
11147    d = sin(1.11);
11148    d = cos(1.11);
11149    d = atan(1.11);
11150
11151  ;
11152  return 0;
11153}
11154_ACEOF
11155if ac_fn_c_try_link "$LINENO"; then :
11156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11157$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
11158
11159else
11160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161$as_echo "no" >&6; }
11162fi
11163rm -f core conftest.err conftest.$ac_objext \
11164    conftest$ac_exeext conftest.$ac_ext
11165
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
11167$as_echo_n "checking --disable-acl argument... " >&6; }
11168# Check whether --enable-acl was given.
11169if test "${enable_acl+set}" = set; then :
11170  enableval=$enable_acl;
11171else
11172  enable_acl="yes"
11173fi
11174
11175if test "$enable_acl" = "yes"; then
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177$as_echo "no" >&6; }
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
11179$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
11180if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then :
11181  $as_echo_n "(cached) " >&6
11182else
11183  ac_check_lib_save_LIBS=$LIBS
11184LIBS="-lposix1e  $LIBS"
11185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11186/* end confdefs.h.  */
11187
11188/* Override any GCC internal prototype to avoid an error.
11189   Use char because int might match the return type of a GCC
11190   builtin and then its argument prototype would still apply.  */
11191#ifdef __cplusplus
11192extern "C"
11193#endif
11194char acl_get_file ();
11195int
11196main ()
11197{
11198return acl_get_file ();
11199  ;
11200  return 0;
11201}
11202_ACEOF
11203if ac_fn_c_try_link "$LINENO"; then :
11204  ac_cv_lib_posix1e_acl_get_file=yes
11205else
11206  ac_cv_lib_posix1e_acl_get_file=no
11207fi
11208rm -f core conftest.err conftest.$ac_objext \
11209    conftest$ac_exeext conftest.$ac_ext
11210LIBS=$ac_check_lib_save_LIBS
11211fi
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
11213$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
11214if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then :
11215  LIBS="$LIBS -lposix1e"
11216else
11217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
11218$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
11219if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
11220  $as_echo_n "(cached) " >&6
11221else
11222  ac_check_lib_save_LIBS=$LIBS
11223LIBS="-lacl  $LIBS"
11224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225/* end confdefs.h.  */
11226
11227/* Override any GCC internal prototype to avoid an error.
11228   Use char because int might match the return type of a GCC
11229   builtin and then its argument prototype would still apply.  */
11230#ifdef __cplusplus
11231extern "C"
11232#endif
11233char acl_get_file ();
11234int
11235main ()
11236{
11237return acl_get_file ();
11238  ;
11239  return 0;
11240}
11241_ACEOF
11242if ac_fn_c_try_link "$LINENO"; then :
11243  ac_cv_lib_acl_acl_get_file=yes
11244else
11245  ac_cv_lib_acl_acl_get_file=no
11246fi
11247rm -f core conftest.err conftest.$ac_objext \
11248    conftest$ac_exeext conftest.$ac_ext
11249LIBS=$ac_check_lib_save_LIBS
11250fi
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
11252$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
11253if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
11254  LIBS="$LIBS -lacl"
11255		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
11256$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
11257if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then :
11258  $as_echo_n "(cached) " >&6
11259else
11260  ac_check_lib_save_LIBS=$LIBS
11261LIBS="-lattr  $LIBS"
11262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263/* end confdefs.h.  */
11264
11265/* Override any GCC internal prototype to avoid an error.
11266   Use char because int might match the return type of a GCC
11267   builtin and then its argument prototype would still apply.  */
11268#ifdef __cplusplus
11269extern "C"
11270#endif
11271char fgetxattr ();
11272int
11273main ()
11274{
11275return fgetxattr ();
11276  ;
11277  return 0;
11278}
11279_ACEOF
11280if ac_fn_c_try_link "$LINENO"; then :
11281  ac_cv_lib_attr_fgetxattr=yes
11282else
11283  ac_cv_lib_attr_fgetxattr=no
11284fi
11285rm -f core conftest.err conftest.$ac_objext \
11286    conftest$ac_exeext conftest.$ac_ext
11287LIBS=$ac_check_lib_save_LIBS
11288fi
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
11290$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
11291if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then :
11292  LIBS="$LIBS -lattr"
11293fi
11294
11295fi
11296
11297fi
11298
11299
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
11301$as_echo_n "checking for POSIX ACL support... " >&6; }
11302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h.  */
11304
11305#include <sys/types.h>
11306#ifdef HAVE_SYS_ACL_H
11307# include <sys/acl.h>
11308#endif
11309acl_t acl;
11310int
11311main ()
11312{
11313acl = acl_get_file("foo", ACL_TYPE_ACCESS);
11314	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
11315	acl_free(acl);
11316  ;
11317  return 0;
11318}
11319_ACEOF
11320if ac_fn_c_try_link "$LINENO"; then :
11321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11322$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11323
11324else
11325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326$as_echo "no" >&6; }
11327fi
11328rm -f core conftest.err conftest.$ac_objext \
11329    conftest$ac_exeext conftest.$ac_ext
11330
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
11332$as_echo_n "checking for Solaris ACL support... " >&6; }
11333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334/* end confdefs.h.  */
11335
11336#ifdef HAVE_SYS_ACL_H
11337# include <sys/acl.h>
11338#endif
11339int
11340main ()
11341{
11342acl("foo", GETACLCNT, 0, NULL);
11343
11344  ;
11345  return 0;
11346}
11347_ACEOF
11348if ac_fn_c_try_link "$LINENO"; then :
11349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11350$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
11351
11352else
11353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354$as_echo "no" >&6; }
11355fi
11356rm -f core conftest.err conftest.$ac_objext \
11357    conftest$ac_exeext conftest.$ac_ext
11358
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
11360$as_echo_n "checking for AIX ACL support... " >&6; }
11361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h.  */
11363
11364#if STDC_HEADERS
11365# include <stdlib.h>
11366# include <stddef.h>
11367#endif
11368#ifdef HAVE_SYS_ACL_H
11369# include <sys/acl.h>
11370#endif
11371#ifdef HAVE_SYS_ACCESS_H
11372# include <sys/access.h>
11373#endif
11374#define _ALL_SOURCE
11375
11376#include <sys/stat.h>
11377
11378int aclsize;
11379struct acl *aclent;
11380int
11381main ()
11382{
11383aclsize = sizeof(struct acl);
11384	aclent = (void *)malloc(aclsize);
11385	statacl("foo", STX_NORMAL, aclent, aclsize);
11386
11387  ;
11388  return 0;
11389}
11390_ACEOF
11391if ac_fn_c_try_link "$LINENO"; then :
11392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11393$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
11394
11395else
11396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397$as_echo "no" >&6; }
11398fi
11399rm -f core conftest.err conftest.$ac_objext \
11400    conftest$ac_exeext conftest.$ac_ext
11401else
11402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11403$as_echo "yes" >&6; }
11404fi
11405
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
11407$as_echo_n "checking --disable-gpm argument... " >&6; }
11408# Check whether --enable-gpm was given.
11409if test "${enable_gpm+set}" = set; then :
11410  enableval=$enable_gpm;
11411else
11412  enable_gpm="yes"
11413fi
11414
11415
11416if test "$enable_gpm" = "yes"; then
11417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
11419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
11420$as_echo_n "checking for gpm... " >&6; }
11421if test "${vi_cv_have_gpm+set}" = set; then :
11422  $as_echo_n "(cached) " >&6
11423else
11424  olibs="$LIBS" ; LIBS="-lgpm"
11425	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426/* end confdefs.h.  */
11427#include <gpm.h>
11428	    #include <linux/keyboard.h>
11429int
11430main ()
11431{
11432Gpm_GetLibVersion(NULL);
11433  ;
11434  return 0;
11435}
11436_ACEOF
11437if ac_fn_c_try_link "$LINENO"; then :
11438  	    	    vi_cv_have_gpm=yes
11439else
11440  vi_cv_have_gpm=no
11441fi
11442rm -f core conftest.err conftest.$ac_objext \
11443    conftest$ac_exeext conftest.$ac_ext
11444	LIBS="$olibs"
11445
11446fi
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
11448$as_echo "$vi_cv_have_gpm" >&6; }
11449  if test $vi_cv_have_gpm = yes; then
11450    LIBS="$LIBS -lgpm"
11451    $as_echo "#define HAVE_GPM 1" >>confdefs.h
11452
11453  fi
11454else
11455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11456$as_echo "yes" >&6; }
11457fi
11458
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
11460$as_echo_n "checking --disable-sysmouse argument... " >&6; }
11461# Check whether --enable-sysmouse was given.
11462if test "${enable_sysmouse+set}" = set; then :
11463  enableval=$enable_sysmouse;
11464else
11465  enable_sysmouse="yes"
11466fi
11467
11468
11469if test "$enable_sysmouse" = "yes"; then
11470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471$as_echo "no" >&6; }
11472        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
11473$as_echo_n "checking for sysmouse... " >&6; }
11474if test "${vi_cv_have_sysmouse+set}" = set; then :
11475  $as_echo_n "(cached) " >&6
11476else
11477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478/* end confdefs.h.  */
11479#include <sys/consio.h>
11480	     #include <signal.h>
11481	     #include <sys/fbio.h>
11482int
11483main ()
11484{
11485struct mouse_info   mouse;
11486	     mouse.operation = MOUSE_MODE;
11487	     mouse.operation = MOUSE_SHOW;
11488	     mouse.u.mode.mode = 0;
11489	     mouse.u.mode.signal = SIGUSR2;
11490  ;
11491  return 0;
11492}
11493_ACEOF
11494if ac_fn_c_try_link "$LINENO"; then :
11495  vi_cv_have_sysmouse=yes
11496else
11497  vi_cv_have_sysmouse=no
11498fi
11499rm -f core conftest.err conftest.$ac_objext \
11500    conftest$ac_exeext conftest.$ac_ext
11501
11502fi
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
11504$as_echo "$vi_cv_have_sysmouse" >&6; }
11505  if test $vi_cv_have_sysmouse = yes; then
11506    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
11507
11508  fi
11509else
11510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11511$as_echo "yes" >&6; }
11512fi
11513
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
11515$as_echo_n "checking for FD_CLOEXEC... " >&6; }
11516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517/* end confdefs.h.  */
11518#if HAVE_FCNTL_H
11519# include <fcntl.h>
11520#endif
11521int
11522main ()
11523{
11524	int flag = FD_CLOEXEC;
11525  ;
11526  return 0;
11527}
11528_ACEOF
11529if ac_fn_c_try_compile "$LINENO"; then :
11530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
11532
11533else
11534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
11535$as_echo "not usable" >&6; }
11536fi
11537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
11540$as_echo_n "checking for rename... " >&6; }
11541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542/* end confdefs.h.  */
11543#include <stdio.h>
11544int
11545main ()
11546{
11547rename("this", "that")
11548  ;
11549  return 0;
11550}
11551_ACEOF
11552if ac_fn_c_try_link "$LINENO"; then :
11553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
11555
11556else
11557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558$as_echo "no" >&6; }
11559fi
11560rm -f core conftest.err conftest.$ac_objext \
11561    conftest$ac_exeext conftest.$ac_ext
11562
11563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
11564$as_echo_n "checking for sysctl... " >&6; }
11565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566/* end confdefs.h.  */
11567#include <sys/types.h>
11568#include <sys/sysctl.h>
11569int
11570main ()
11571{
11572	int mib[2], r;
11573	size_t len;
11574
11575	mib[0] = CTL_HW;
11576	mib[1] = HW_USERMEM;
11577	len = sizeof(r);
11578	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
11579
11580  ;
11581  return 0;
11582}
11583_ACEOF
11584if ac_fn_c_try_compile "$LINENO"; then :
11585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11586$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
11587
11588else
11589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
11590$as_echo "not usable" >&6; }
11591fi
11592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
11595$as_echo_n "checking for sysinfo... " >&6; }
11596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h.  */
11598#include <sys/types.h>
11599#include <sys/sysinfo.h>
11600int
11601main ()
11602{
11603	struct sysinfo sinfo;
11604	int t;
11605
11606	(void)sysinfo(&sinfo);
11607	t = sinfo.totalram;
11608
11609  ;
11610  return 0;
11611}
11612_ACEOF
11613if ac_fn_c_try_compile "$LINENO"; then :
11614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11615$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
11616
11617else
11618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
11619$as_echo "not usable" >&6; }
11620fi
11621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
11624$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
11625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626/* end confdefs.h.  */
11627#include <sys/types.h>
11628#include <sys/sysinfo.h>
11629int
11630main ()
11631{
11632	struct sysinfo sinfo;
11633 	sinfo.mem_unit = 1;
11634
11635  ;
11636  return 0;
11637}
11638_ACEOF
11639if ac_fn_c_try_compile "$LINENO"; then :
11640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11641$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
11642
11643else
11644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
11646fi
11647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11648
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
11650$as_echo_n "checking for sysconf... " >&6; }
11651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652/* end confdefs.h.  */
11653#include <unistd.h>
11654int
11655main ()
11656{
11657	(void)sysconf(_SC_PAGESIZE);
11658	(void)sysconf(_SC_PHYS_PAGES);
11659
11660  ;
11661  return 0;
11662}
11663_ACEOF
11664if ac_fn_c_try_compile "$LINENO"; then :
11665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11666$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
11667
11668else
11669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
11670$as_echo "not usable" >&6; }
11671fi
11672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673
11674# The cast to long int works around a bug in the HP C Compiler
11675# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11676# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11677# This bug is HP SR number 8606223364.
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11679$as_echo_n "checking size of int... " >&6; }
11680if test "${ac_cv_sizeof_int+set}" = set; then :
11681  $as_echo_n "(cached) " >&6
11682else
11683  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
11684
11685else
11686  if test "$ac_cv_type_int" = yes; then
11687     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11689{ as_fn_set_status 77
11690as_fn_error "cannot compute sizeof (int)
11691See \`config.log' for more details." "$LINENO" 5; }; }
11692   else
11693     ac_cv_sizeof_int=0
11694   fi
11695fi
11696
11697fi
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11699$as_echo "$ac_cv_sizeof_int" >&6; }
11700
11701
11702
11703cat >>confdefs.h <<_ACEOF
11704#define SIZEOF_INT $ac_cv_sizeof_int
11705_ACEOF
11706
11707
11708# The cast to long int works around a bug in the HP C Compiler
11709# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11710# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11711# This bug is HP SR number 8606223364.
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11713$as_echo_n "checking size of long... " >&6; }
11714if test "${ac_cv_sizeof_long+set}" = set; then :
11715  $as_echo_n "(cached) " >&6
11716else
11717  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
11718
11719else
11720  if test "$ac_cv_type_long" = yes; then
11721     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11723{ as_fn_set_status 77
11724as_fn_error "cannot compute sizeof (long)
11725See \`config.log' for more details." "$LINENO" 5; }; }
11726   else
11727     ac_cv_sizeof_long=0
11728   fi
11729fi
11730
11731fi
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11733$as_echo "$ac_cv_sizeof_long" >&6; }
11734
11735
11736
11737cat >>confdefs.h <<_ACEOF
11738#define SIZEOF_LONG $ac_cv_sizeof_long
11739_ACEOF
11740
11741
11742# The cast to long int works around a bug in the HP C Compiler
11743# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11744# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11745# This bug is HP SR number 8606223364.
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
11747$as_echo_n "checking size of time_t... " >&6; }
11748if test "${ac_cv_sizeof_time_t+set}" = set; then :
11749  $as_echo_n "(cached) " >&6
11750else
11751  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
11752
11753else
11754  if test "$ac_cv_type_time_t" = yes; then
11755     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11757{ as_fn_set_status 77
11758as_fn_error "cannot compute sizeof (time_t)
11759See \`config.log' for more details." "$LINENO" 5; }; }
11760   else
11761     ac_cv_sizeof_time_t=0
11762   fi
11763fi
11764
11765fi
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
11767$as_echo "$ac_cv_sizeof_time_t" >&6; }
11768
11769
11770
11771cat >>confdefs.h <<_ACEOF
11772#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11773_ACEOF
11774
11775
11776# The cast to long int works around a bug in the HP C Compiler
11777# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11778# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11779# This bug is HP SR number 8606223364.
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
11781$as_echo_n "checking size of off_t... " >&6; }
11782if test "${ac_cv_sizeof_off_t+set}" = set; then :
11783  $as_echo_n "(cached) " >&6
11784else
11785  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
11786
11787else
11788  if test "$ac_cv_type_off_t" = yes; then
11789     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11791{ as_fn_set_status 77
11792as_fn_error "cannot compute sizeof (off_t)
11793See \`config.log' for more details." "$LINENO" 5; }; }
11794   else
11795     ac_cv_sizeof_off_t=0
11796   fi
11797fi
11798
11799fi
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
11801$as_echo "$ac_cv_sizeof_off_t" >&6; }
11802
11803
11804
11805cat >>confdefs.h <<_ACEOF
11806#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11807_ACEOF
11808
11809
11810
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
11812$as_echo_n "checking uint32_t is 32 bits... " >&6; }
11813if test "$cross_compiling" = yes; then :
11814  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
11815$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
11816else
11817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818/* end confdefs.h.  */
11819
11820#ifdef HAVE_STDINT_H
11821# include <stdint.h>
11822#endif
11823#ifdef HAVE_INTTYPES_H
11824# include <inttypes.h>
11825#endif
11826main() {
11827  uint32_t nr1 = (uint32_t)-1;
11828  uint32_t nr2 = (uint32_t)0xffffffffUL;
11829  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
11830  exit(0);
11831}
11832_ACEOF
11833if ac_fn_c_try_run "$LINENO"; then :
11834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11835$as_echo "ok" >&6; }
11836else
11837  as_fn_error "WRONG!  uint32_t not defined correctly." "$LINENO" 5
11838fi
11839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11840  conftest.$ac_objext conftest.beam conftest.$ac_ext
11841fi
11842
11843
11844
11845bcopy_test_prog='
11846#include "confdefs.h"
11847#ifdef HAVE_STRING_H
11848# include <string.h>
11849#endif
11850#if STDC_HEADERS
11851# include <stdlib.h>
11852# include <stddef.h>
11853#endif
11854main() {
11855  char buf[10];
11856  strcpy(buf, "abcdefghi");
11857  mch_memmove(buf, buf + 2, 3);
11858  if (strncmp(buf, "ababcf", 6))
11859    exit(1);
11860  strcpy(buf, "abcdefghi");
11861  mch_memmove(buf + 2, buf, 3);
11862  if (strncmp(buf, "cdedef", 6))
11863    exit(1);
11864  exit(0); /* libc version works properly.  */
11865}'
11866
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
11868$as_echo_n "checking whether memmove handles overlaps... " >&6; }
11869if test "${vim_cv_memmove_handles_overlap+set}" = set; then :
11870  $as_echo_n "(cached) " >&6
11871else
11872
11873    if test "$cross_compiling" = yes; then :
11874
11875	as_fn_error "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
11876
11877else
11878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879/* end confdefs.h.  */
11880#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
11881_ACEOF
11882if ac_fn_c_try_run "$LINENO"; then :
11883
11884	vim_cv_memmove_handles_overlap=yes
11885
11886else
11887
11888	vim_cv_memmove_handles_overlap=no
11889
11890fi
11891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11892  conftest.$ac_objext conftest.beam conftest.$ac_ext
11893fi
11894
11895
11896fi
11897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
11898$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
11899
11900if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
11901  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
11902
11903else
11904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
11905$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
11906if test "${vim_cv_bcopy_handles_overlap+set}" = set; then :
11907  $as_echo_n "(cached) " >&6
11908else
11909
11910      if test "$cross_compiling" = yes; then :
11911
11912	as_fn_error "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
11913
11914else
11915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916/* end confdefs.h.  */
11917#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
11918_ACEOF
11919if ac_fn_c_try_run "$LINENO"; then :
11920
11921	vim_cv_bcopy_handles_overlap=yes
11922
11923else
11924
11925	vim_cv_bcopy_handles_overlap=no
11926
11927fi
11928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11929  conftest.$ac_objext conftest.beam conftest.$ac_ext
11930fi
11931
11932
11933fi
11934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
11935$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
11936
11937  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
11938    $as_echo "#define USEBCOPY 1" >>confdefs.h
11939
11940  else
11941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
11942$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
11943if test "${vim_cv_memcpy_handles_overlap+set}" = set; then :
11944  $as_echo_n "(cached) " >&6
11945else
11946
11947	if test "$cross_compiling" = yes; then :
11948
11949	    as_fn_error "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
11950
11951else
11952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953/* end confdefs.h.  */
11954#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
11955_ACEOF
11956if ac_fn_c_try_run "$LINENO"; then :
11957
11958	    vim_cv_memcpy_handles_overlap=yes
11959
11960else
11961
11962	    vim_cv_memcpy_handles_overlap=no
11963
11964fi
11965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11966  conftest.$ac_objext conftest.beam conftest.$ac_ext
11967fi
11968
11969
11970fi
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
11972$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
11973
11974    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
11975      $as_echo "#define USEMEMCPY 1" >>confdefs.h
11976
11977    fi
11978  fi
11979fi
11980
11981
11982
11983if test "$enable_multibyte" = "yes"; then
11984  cflags_save=$CFLAGS
11985  ldflags_save=$LDFLAGS
11986  if test "x$x_includes" != "xNONE" ; then
11987    CFLAGS="$CFLAGS -I$x_includes"
11988    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
11989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
11990$as_echo_n "checking whether X_LOCALE needed... " >&6; }
11991    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992/* end confdefs.h.  */
11993#include <X11/Xlocale.h>
11994int
11995main ()
11996{
11997
11998  ;
11999  return 0;
12000}
12001_ACEOF
12002if ac_fn_c_try_compile "$LINENO"; then :
12003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004/* end confdefs.h.  */
12005
12006/* Override any GCC internal prototype to avoid an error.
12007   Use char because int might match the return type of a GCC
12008   builtin and then its argument prototype would still apply.  */
12009#ifdef __cplusplus
12010extern "C"
12011#endif
12012char _Xsetlocale ();
12013int
12014main ()
12015{
12016return _Xsetlocale ();
12017  ;
12018  return 0;
12019}
12020_ACEOF
12021if ac_fn_c_try_link "$LINENO"; then :
12022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12023$as_echo "yes" >&6; }
12024		$as_echo "#define X_LOCALE 1" >>confdefs.h
12025
12026else
12027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028$as_echo "no" >&6; }
12029fi
12030rm -f core conftest.err conftest.$ac_objext \
12031    conftest$ac_exeext conftest.$ac_ext
12032else
12033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034$as_echo "no" >&6; }
12035fi
12036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037  fi
12038  CFLAGS=$cflags_save
12039  LDFLAGS=$ldflags_save
12040fi
12041
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
12043$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
12044if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then :
12045  $as_echo_n "(cached) " >&6
12046else
12047  ac_check_lib_save_LIBS=$LIBS
12048LIBS="-lxpg4  $LIBS"
12049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050/* end confdefs.h.  */
12051
12052/* Override any GCC internal prototype to avoid an error.
12053   Use char because int might match the return type of a GCC
12054   builtin and then its argument prototype would still apply.  */
12055#ifdef __cplusplus
12056extern "C"
12057#endif
12058char _xpg4_setrunelocale ();
12059int
12060main ()
12061{
12062return _xpg4_setrunelocale ();
12063  ;
12064  return 0;
12065}
12066_ACEOF
12067if ac_fn_c_try_link "$LINENO"; then :
12068  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
12069else
12070  ac_cv_lib_xpg4__xpg4_setrunelocale=no
12071fi
12072rm -f core conftest.err conftest.$ac_objext \
12073    conftest$ac_exeext conftest.$ac_ext
12074LIBS=$ac_check_lib_save_LIBS
12075fi
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
12077$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
12078if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then :
12079  LIBS="$LIBS -lxpg4"
12080fi
12081
12082
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
12084$as_echo_n "checking how to create tags... " >&6; }
12085test -f tags && mv tags tags.save
12086if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
12087  TAGPRG="ctags -I INIT+ --fields=+S"
12088elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
12089  TAGPRG="exctags -I INIT+ --fields=+S"
12090elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
12091  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
12092else
12093  TAGPRG="ctags"
12094  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
12095  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
12096  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
12097  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
12098  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
12099  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
12100  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
12101fi
12102test -f tags.save && mv tags.save tags
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
12104$as_echo "$TAGPRG" >&6; }
12105
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
12107$as_echo_n "checking how to run man with a section nr... " >&6; }
12108MANDEF="man"
12109(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
12110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
12111$as_echo "$MANDEF" >&6; }
12112if test "$MANDEF" = "man -s"; then
12113  $as_echo "#define USEMAN_S 1" >>confdefs.h
12114
12115fi
12116
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
12118$as_echo_n "checking --disable-nls argument... " >&6; }
12119# Check whether --enable-nls was given.
12120if test "${enable_nls+set}" = set; then :
12121  enableval=$enable_nls;
12122else
12123  enable_nls="yes"
12124fi
12125
12126
12127if test "$enable_nls" = "yes"; then
12128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129$as_echo "no" >&6; }
12130
12131  INSTALL_LANGS=install-languages
12132
12133  INSTALL_TOOL_LANGS=install-tool-languages
12134
12135
12136  # Extract the first word of "msgfmt", so it can be a program name with args.
12137set dummy msgfmt; ac_word=$2
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139$as_echo_n "checking for $ac_word... " >&6; }
12140if test "${ac_cv_prog_MSGFMT+set}" = set; then :
12141  $as_echo_n "(cached) " >&6
12142else
12143  if test -n "$MSGFMT"; then
12144  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
12145else
12146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147for as_dir in $PATH
12148do
12149  IFS=$as_save_IFS
12150  test -z "$as_dir" && as_dir=.
12151    for ac_exec_ext in '' $ac_executable_extensions; do
12152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12153    ac_cv_prog_MSGFMT="msgfmt"
12154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12155    break 2
12156  fi
12157done
12158  done
12159IFS=$as_save_IFS
12160
12161fi
12162fi
12163MSGFMT=$ac_cv_prog_MSGFMT
12164if test -n "$MSGFMT"; then
12165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12166$as_echo "$MSGFMT" >&6; }
12167else
12168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169$as_echo "no" >&6; }
12170fi
12171
12172
12173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
12174$as_echo_n "checking for NLS... " >&6; }
12175  if test -f po/Makefile; then
12176    have_gettext="no"
12177    if test -n "$MSGFMT"; then
12178      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179/* end confdefs.h.  */
12180#include <libintl.h>
12181int
12182main ()
12183{
12184gettext("Test");
12185  ;
12186  return 0;
12187}
12188_ACEOF
12189if ac_fn_c_try_link "$LINENO"; then :
12190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
12191$as_echo "gettext() works" >&6; }; have_gettext="yes"
12192else
12193  olibs=$LIBS
12194	  LIBS="$LIBS -lintl"
12195	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196/* end confdefs.h.  */
12197#include <libintl.h>
12198int
12199main ()
12200{
12201gettext("Test");
12202  ;
12203  return 0;
12204}
12205_ACEOF
12206if ac_fn_c_try_link "$LINENO"; then :
12207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
12208$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
12209else
12210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
12211$as_echo "gettext() doesn't work" >&6; };
12212	      LIBS=$olibs
12213fi
12214rm -f core conftest.err conftest.$ac_objext \
12215    conftest$ac_exeext conftest.$ac_ext
12216fi
12217rm -f core conftest.err conftest.$ac_objext \
12218    conftest$ac_exeext conftest.$ac_ext
12219    else
12220      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
12221$as_echo "msgfmt not found - disabled" >&6; };
12222    fi
12223    if test $have_gettext = "yes"; then
12224      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12225
12226      MAKEMO=yes
12227
12228            for ac_func in bind_textdomain_codeset
12229do :
12230  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12231if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
12232  cat >>confdefs.h <<_ACEOF
12233#define HAVE_BIND_TEXTDOMAIN_CODESET 1
12234_ACEOF
12235
12236fi
12237done
12238
12239            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
12240$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
12241      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242/* end confdefs.h.  */
12243#include <libintl.h>
12244		extern int _nl_msg_cat_cntr;
12245int
12246main ()
12247{
12248++_nl_msg_cat_cntr;
12249  ;
12250  return 0;
12251}
12252_ACEOF
12253if ac_fn_c_try_link "$LINENO"; then :
12254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12255$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
12256
12257else
12258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259$as_echo "no" >&6; }
12260fi
12261rm -f core conftest.err conftest.$ac_objext \
12262    conftest$ac_exeext conftest.$ac_ext
12263    fi
12264  else
12265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
12266$as_echo "no \"po/Makefile\" - disabled" >&6; };
12267  fi
12268else
12269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12270$as_echo "yes" >&6; }
12271fi
12272
12273ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12274if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
12275  DLL=dlfcn.h
12276else
12277  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
12278if test "x$ac_cv_header_dl_h" = x""yes; then :
12279  DLL=dl.h
12280fi
12281
12282
12283fi
12284
12285
12286if test x${DLL} = xdlfcn.h; then
12287
12288$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
12289
12290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
12291$as_echo_n "checking for dlopen()... " >&6; }
12292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293/* end confdefs.h.  */
12294
12295int
12296main ()
12297{
12298
12299		extern void* dlopen();
12300		dlopen();
12301
12302  ;
12303  return 0;
12304}
12305_ACEOF
12306if ac_fn_c_try_link "$LINENO"; then :
12307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308$as_echo "yes" >&6; };
12309
12310$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12311
12312else
12313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314$as_echo "no" >&6; };
12315	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
12316$as_echo_n "checking for dlopen() in -ldl... " >&6; }
12317	      olibs=$LIBS
12318	      LIBS="$LIBS -ldl"
12319	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320/* end confdefs.h.  */
12321
12322int
12323main ()
12324{
12325
12326				extern void* dlopen();
12327				dlopen();
12328
12329  ;
12330  return 0;
12331}
12332_ACEOF
12333if ac_fn_c_try_link "$LINENO"; then :
12334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12335$as_echo "yes" >&6; };
12336
12337$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12338
12339else
12340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; };
12342			  LIBS=$olibs
12343fi
12344rm -f core conftest.err conftest.$ac_objext \
12345    conftest$ac_exeext conftest.$ac_ext
12346fi
12347rm -f core conftest.err conftest.$ac_objext \
12348    conftest$ac_exeext conftest.$ac_ext
12349      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
12350$as_echo_n "checking for dlsym()... " >&6; }
12351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352/* end confdefs.h.  */
12353
12354int
12355main ()
12356{
12357
12358		extern void* dlsym();
12359		dlsym();
12360
12361  ;
12362  return 0;
12363}
12364_ACEOF
12365if ac_fn_c_try_link "$LINENO"; then :
12366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12367$as_echo "yes" >&6; };
12368
12369$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
12370
12371else
12372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; };
12374	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
12375$as_echo_n "checking for dlsym() in -ldl... " >&6; }
12376	      olibs=$LIBS
12377	      LIBS="$LIBS -ldl"
12378	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379/* end confdefs.h.  */
12380
12381int
12382main ()
12383{
12384
12385				extern void* dlsym();
12386				dlsym();
12387
12388  ;
12389  return 0;
12390}
12391_ACEOF
12392if ac_fn_c_try_link "$LINENO"; then :
12393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12394$as_echo "yes" >&6; };
12395
12396$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
12397
12398else
12399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400$as_echo "no" >&6; };
12401			  LIBS=$olibs
12402fi
12403rm -f core conftest.err conftest.$ac_objext \
12404    conftest$ac_exeext conftest.$ac_ext
12405fi
12406rm -f core conftest.err conftest.$ac_objext \
12407    conftest$ac_exeext conftest.$ac_ext
12408elif test x${DLL} = xdl.h; then
12409
12410$as_echo "#define HAVE_DL_H 1" >>confdefs.h
12411
12412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
12413$as_echo_n "checking for shl_load()... " >&6; }
12414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415/* end confdefs.h.  */
12416
12417int
12418main ()
12419{
12420
12421		extern void* shl_load();
12422		shl_load();
12423
12424  ;
12425  return 0;
12426}
12427_ACEOF
12428if ac_fn_c_try_link "$LINENO"; then :
12429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12430$as_echo "yes" >&6; };
12431
12432$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12433
12434else
12435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; };
12437	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
12438$as_echo_n "checking for shl_load() in -ldld... " >&6; }
12439	  olibs=$LIBS
12440	  LIBS="$LIBS -ldld"
12441	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442/* end confdefs.h.  */
12443
12444int
12445main ()
12446{
12447
12448			extern void* shl_load();
12449			shl_load();
12450
12451  ;
12452  return 0;
12453}
12454_ACEOF
12455if ac_fn_c_try_link "$LINENO"; then :
12456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12457$as_echo "yes" >&6; };
12458
12459$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12460
12461else
12462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463$as_echo "no" >&6; };
12464		  LIBS=$olibs
12465fi
12466rm -f core conftest.err conftest.$ac_objext \
12467    conftest$ac_exeext conftest.$ac_ext
12468fi
12469rm -f core conftest.err conftest.$ac_objext \
12470    conftest$ac_exeext conftest.$ac_ext
12471fi
12472for ac_header in setjmp.h
12473do :
12474  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
12475if test "x$ac_cv_header_setjmp_h" = x""yes; then :
12476  cat >>confdefs.h <<_ACEOF
12477#define HAVE_SETJMP_H 1
12478_ACEOF
12479
12480fi
12481
12482done
12483
12484
12485if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
12486    if echo $LIBS | grep -e '-ldl' >/dev/null; then
12487    LIBS=`echo $LIBS | sed s/-ldl//`
12488    PERL_LIBS="$PERL_LIBS -ldl"
12489  fi
12490fi
12491
12492if test "x$MACOSX" = "xyes"; then
12493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5
12494$as_echo_n "checking whether we need -framework Cocoa... " >&6; }
12495      if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then
12496    LIBS=$"$LIBS -framework Cocoa"
12497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12498$as_echo "yes" >&6; }
12499  else
12500    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501$as_echo "no" >&6; }
12502  fi
12503fi
12504if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
12505  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
12506fi
12507
12508DEPEND_CFLAGS_FILTER=
12509if test "$GCC" = yes; then
12510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
12511$as_echo_n "checking for GCC 3 or later... " >&6; }
12512  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
12513  if test "$gccmajor" -gt "2"; then
12514    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
12515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12516$as_echo "yes" >&6; }
12517  else
12518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519$as_echo "no" >&6; }
12520  fi
12521          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
12522$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
12523  if test "$gccmajor" -gt "3"; then
12524    CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
12525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12526$as_echo "yes" >&6; }
12527  else
12528    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529$as_echo "no" >&6; }
12530  fi
12531fi
12532
12533
12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
12535$as_echo_n "checking linker --as-needed support... " >&6; }
12536LINK_AS_NEEDED=
12537# Check if linker supports --as-needed and --no-as-needed options
12538if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
12539  LDFLAGS="$LDFLAGS -Wl,--as-needed"
12540  LINK_AS_NEEDED=yes
12541fi
12542if test "$LINK_AS_NEEDED" = yes; then
12543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12544$as_echo "yes" >&6; }
12545else
12546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547$as_echo "no" >&6; }
12548fi
12549
12550
12551ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
12552
12553cat >confcache <<\_ACEOF
12554# This file is a shell script that caches the results of configure
12555# tests run on this system so they can be shared between configure
12556# scripts and configure runs, see configure's option --config-cache.
12557# It is not useful on other systems.  If it contains results you don't
12558# want to keep, you may remove or edit it.
12559#
12560# config.status only pays attention to the cache file if you give it
12561# the --recheck option to rerun configure.
12562#
12563# `ac_cv_env_foo' variables (set or unset) will be overridden when
12564# loading this file, other *unset* `ac_cv_foo' will be assigned the
12565# following values.
12566
12567_ACEOF
12568
12569# The following way of writing the cache mishandles newlines in values,
12570# but we know of no workaround that is simple, portable, and efficient.
12571# So, we kill variables containing newlines.
12572# Ultrix sh set writes to stderr and can't be redirected directly,
12573# and sets the high bit in the cache file unless we assign to the vars.
12574(
12575  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12576    eval ac_val=\$$ac_var
12577    case $ac_val in #(
12578    *${as_nl}*)
12579      case $ac_var in #(
12580      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12581$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12582      esac
12583      case $ac_var in #(
12584      _ | IFS | as_nl) ;; #(
12585      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12586      *) { eval $ac_var=; unset $ac_var;} ;;
12587      esac ;;
12588    esac
12589  done
12590
12591  (set) 2>&1 |
12592    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12593    *${as_nl}ac_space=\ *)
12594      # `set' does not quote correctly, so add quotes: double-quote
12595      # substitution turns \\\\ into \\, and sed turns \\ into \.
12596      sed -n \
12597	"s/'/'\\\\''/g;
12598	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12599      ;; #(
12600    *)
12601      # `set' quotes correctly as required by POSIX, so do not add quotes.
12602      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12603      ;;
12604    esac |
12605    sort
12606) |
12607  sed '
12608     /^ac_cv_env_/b end
12609     t clear
12610     :clear
12611     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12612     t end
12613     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12614     :end' >>confcache
12615if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12616  if test -w "$cache_file"; then
12617    test "x$cache_file" != "x/dev/null" &&
12618      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12619$as_echo "$as_me: updating cache $cache_file" >&6;}
12620    cat confcache >$cache_file
12621  else
12622    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12623$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12624  fi
12625fi
12626rm -f confcache
12627
12628test "x$prefix" = xNONE && prefix=$ac_default_prefix
12629# Let make expand exec_prefix.
12630test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12631
12632DEFS=-DHAVE_CONFIG_H
12633
12634ac_libobjs=
12635ac_ltlibobjs=
12636for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12637  # 1. Remove the extension, and $U if already installed.
12638  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12639  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12640  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12641  #    will be set to the directory where LIBOBJS objects are built.
12642  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12643  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12644done
12645LIBOBJS=$ac_libobjs
12646
12647LTLIBOBJS=$ac_ltlibobjs
12648
12649
12650
12651
12652: ${CONFIG_STATUS=./config.status}
12653ac_write_fail=0
12654ac_clean_files_save=$ac_clean_files
12655ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12657$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12658as_write_fail=0
12659cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12660#! $SHELL
12661# Generated by $as_me.
12662# Run this file to recreate the current configuration.
12663# Compiler output produced by configure, useful for debugging
12664# configure, is in config.log if it exists.
12665
12666debug=false
12667ac_cs_recheck=false
12668ac_cs_silent=false
12669
12670SHELL=\${CONFIG_SHELL-$SHELL}
12671export SHELL
12672_ASEOF
12673cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12674## -------------------- ##
12675## M4sh Initialization. ##
12676## -------------------- ##
12677
12678# Be more Bourne compatible
12679DUALCASE=1; export DUALCASE # for MKS sh
12680if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12681  emulate sh
12682  NULLCMD=:
12683  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12684  # is contrary to our usage.  Disable this feature.
12685  alias -g '${1+"$@"}'='"$@"'
12686  setopt NO_GLOB_SUBST
12687else
12688  case `(set -o) 2>/dev/null` in #(
12689  *posix*) :
12690    set -o posix ;; #(
12691  *) :
12692     ;;
12693esac
12694fi
12695
12696
12697as_nl='
12698'
12699export as_nl
12700# Printing a long string crashes Solaris 7 /usr/bin/printf.
12701as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12702as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12703as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12704# Prefer a ksh shell builtin over an external printf program on Solaris,
12705# but without wasting forks for bash or zsh.
12706if test -z "$BASH_VERSION$ZSH_VERSION" \
12707    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12708  as_echo='print -r --'
12709  as_echo_n='print -rn --'
12710elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12711  as_echo='printf %s\n'
12712  as_echo_n='printf %s'
12713else
12714  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12715    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12716    as_echo_n='/usr/ucb/echo -n'
12717  else
12718    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12719    as_echo_n_body='eval
12720      arg=$1;
12721      case $arg in #(
12722      *"$as_nl"*)
12723	expr "X$arg" : "X\\(.*\\)$as_nl";
12724	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12725      esac;
12726      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12727    '
12728    export as_echo_n_body
12729    as_echo_n='sh -c $as_echo_n_body as_echo'
12730  fi
12731  export as_echo_body
12732  as_echo='sh -c $as_echo_body as_echo'
12733fi
12734
12735# The user is always right.
12736if test "${PATH_SEPARATOR+set}" != set; then
12737  PATH_SEPARATOR=:
12738  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12739    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12740      PATH_SEPARATOR=';'
12741  }
12742fi
12743
12744
12745# IFS
12746# We need space, tab and new line, in precisely that order.  Quoting is
12747# there to prevent editors from complaining about space-tab.
12748# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12749# splitting by setting IFS to empty value.)
12750IFS=" ""	$as_nl"
12751
12752# Find who we are.  Look in the path if we contain no directory separator.
12753case $0 in #((
12754  *[\\/]* ) as_myself=$0 ;;
12755  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756for as_dir in $PATH
12757do
12758  IFS=$as_save_IFS
12759  test -z "$as_dir" && as_dir=.
12760    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12761  done
12762IFS=$as_save_IFS
12763
12764     ;;
12765esac
12766# We did not find ourselves, most probably we were run as `sh COMMAND'
12767# in which case we are not to be found in the path.
12768if test "x$as_myself" = x; then
12769  as_myself=$0
12770fi
12771if test ! -f "$as_myself"; then
12772  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12773  exit 1
12774fi
12775
12776# Unset variables that we do not need and which cause bugs (e.g. in
12777# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12778# suppresses any "Segmentation fault" message there.  '((' could
12779# trigger a bug in pdksh 5.2.14.
12780for as_var in BASH_ENV ENV MAIL MAILPATH
12781do eval test x\${$as_var+set} = xset \
12782  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12783done
12784PS1='$ '
12785PS2='> '
12786PS4='+ '
12787
12788# NLS nuisances.
12789LC_ALL=C
12790export LC_ALL
12791LANGUAGE=C
12792export LANGUAGE
12793
12794# CDPATH.
12795(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12796
12797
12798# as_fn_error ERROR [LINENO LOG_FD]
12799# ---------------------------------
12800# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12801# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12802# script with status $?, using 1 if that was 0.
12803as_fn_error ()
12804{
12805  as_status=$?; test $as_status -eq 0 && as_status=1
12806  if test "$3"; then
12807    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12808    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12809  fi
12810  $as_echo "$as_me: error: $1" >&2
12811  as_fn_exit $as_status
12812} # as_fn_error
12813
12814
12815# as_fn_set_status STATUS
12816# -----------------------
12817# Set $? to STATUS, without forking.
12818as_fn_set_status ()
12819{
12820  return $1
12821} # as_fn_set_status
12822
12823# as_fn_exit STATUS
12824# -----------------
12825# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12826as_fn_exit ()
12827{
12828  set +e
12829  as_fn_set_status $1
12830  exit $1
12831} # as_fn_exit
12832
12833# as_fn_unset VAR
12834# ---------------
12835# Portably unset VAR.
12836as_fn_unset ()
12837{
12838  { eval $1=; unset $1;}
12839}
12840as_unset=as_fn_unset
12841# as_fn_append VAR VALUE
12842# ----------------------
12843# Append the text in VALUE to the end of the definition contained in VAR. Take
12844# advantage of any shell optimizations that allow amortized linear growth over
12845# repeated appends, instead of the typical quadratic growth present in naive
12846# implementations.
12847if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12848  eval 'as_fn_append ()
12849  {
12850    eval $1+=\$2
12851  }'
12852else
12853  as_fn_append ()
12854  {
12855    eval $1=\$$1\$2
12856  }
12857fi # as_fn_append
12858
12859# as_fn_arith ARG...
12860# ------------------
12861# Perform arithmetic evaluation on the ARGs, and store the result in the
12862# global $as_val. Take advantage of shells that can avoid forks. The arguments
12863# must be portable across $(()) and expr.
12864if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12865  eval 'as_fn_arith ()
12866  {
12867    as_val=$(( $* ))
12868  }'
12869else
12870  as_fn_arith ()
12871  {
12872    as_val=`expr "$@" || test $? -eq 1`
12873  }
12874fi # as_fn_arith
12875
12876
12877if expr a : '\(a\)' >/dev/null 2>&1 &&
12878   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12879  as_expr=expr
12880else
12881  as_expr=false
12882fi
12883
12884if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12885  as_basename=basename
12886else
12887  as_basename=false
12888fi
12889
12890if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12891  as_dirname=dirname
12892else
12893  as_dirname=false
12894fi
12895
12896as_me=`$as_basename -- "$0" ||
12897$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12898	 X"$0" : 'X\(//\)$' \| \
12899	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12900$as_echo X/"$0" |
12901    sed '/^.*\/\([^/][^/]*\)\/*$/{
12902	    s//\1/
12903	    q
12904	  }
12905	  /^X\/\(\/\/\)$/{
12906	    s//\1/
12907	    q
12908	  }
12909	  /^X\/\(\/\).*/{
12910	    s//\1/
12911	    q
12912	  }
12913	  s/.*/./; q'`
12914
12915# Avoid depending upon Character Ranges.
12916as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12917as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12918as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12919as_cr_digits='0123456789'
12920as_cr_alnum=$as_cr_Letters$as_cr_digits
12921
12922ECHO_C= ECHO_N= ECHO_T=
12923case `echo -n x` in #(((((
12924-n*)
12925  case `echo 'xy\c'` in
12926  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12927  xy)  ECHO_C='\c';;
12928  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12929       ECHO_T='	';;
12930  esac;;
12931*)
12932  ECHO_N='-n';;
12933esac
12934
12935rm -f conf$$ conf$$.exe conf$$.file
12936if test -d conf$$.dir; then
12937  rm -f conf$$.dir/conf$$.file
12938else
12939  rm -f conf$$.dir
12940  mkdir conf$$.dir 2>/dev/null
12941fi
12942if (echo >conf$$.file) 2>/dev/null; then
12943  if ln -s conf$$.file conf$$ 2>/dev/null; then
12944    as_ln_s='ln -s'
12945    # ... but there are two gotchas:
12946    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12947    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12948    # In both cases, we have to default to `cp -p'.
12949    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12950      as_ln_s='cp -p'
12951  elif ln conf$$.file conf$$ 2>/dev/null; then
12952    as_ln_s=ln
12953  else
12954    as_ln_s='cp -p'
12955  fi
12956else
12957  as_ln_s='cp -p'
12958fi
12959rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12960rmdir conf$$.dir 2>/dev/null
12961
12962
12963# as_fn_mkdir_p
12964# -------------
12965# Create "$as_dir" as a directory, including parents if necessary.
12966as_fn_mkdir_p ()
12967{
12968
12969  case $as_dir in #(
12970  -*) as_dir=./$as_dir;;
12971  esac
12972  test -d "$as_dir" || eval $as_mkdir_p || {
12973    as_dirs=
12974    while :; do
12975      case $as_dir in #(
12976      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12977      *) as_qdir=$as_dir;;
12978      esac
12979      as_dirs="'$as_qdir' $as_dirs"
12980      as_dir=`$as_dirname -- "$as_dir" ||
12981$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12982	 X"$as_dir" : 'X\(//\)[^/]' \| \
12983	 X"$as_dir" : 'X\(//\)$' \| \
12984	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12985$as_echo X"$as_dir" |
12986    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12987	    s//\1/
12988	    q
12989	  }
12990	  /^X\(\/\/\)[^/].*/{
12991	    s//\1/
12992	    q
12993	  }
12994	  /^X\(\/\/\)$/{
12995	    s//\1/
12996	    q
12997	  }
12998	  /^X\(\/\).*/{
12999	    s//\1/
13000	    q
13001	  }
13002	  s/.*/./; q'`
13003      test -d "$as_dir" && break
13004    done
13005    test -z "$as_dirs" || eval "mkdir $as_dirs"
13006  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13007
13008
13009} # as_fn_mkdir_p
13010if mkdir -p . 2>/dev/null; then
13011  as_mkdir_p='mkdir -p "$as_dir"'
13012else
13013  test -d ./-p && rmdir ./-p
13014  as_mkdir_p=false
13015fi
13016
13017if test -x / >/dev/null 2>&1; then
13018  as_test_x='test -x'
13019else
13020  if ls -dL / >/dev/null 2>&1; then
13021    as_ls_L_option=L
13022  else
13023    as_ls_L_option=
13024  fi
13025  as_test_x='
13026    eval sh -c '\''
13027      if test -d "$1"; then
13028	test -d "$1/.";
13029      else
13030	case $1 in #(
13031	-*)set "./$1";;
13032	esac;
13033	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13034	???[sx]*):;;*)false;;esac;fi
13035    '\'' sh
13036  '
13037fi
13038as_executable_p=$as_test_x
13039
13040# Sed expression to map a string onto a valid CPP name.
13041as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13042
13043# Sed expression to map a string onto a valid variable name.
13044as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13045
13046
13047exec 6>&1
13048## ----------------------------------- ##
13049## Main body of $CONFIG_STATUS script. ##
13050## ----------------------------------- ##
13051_ASEOF
13052test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13053
13054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13055# Save the log message, to keep $0 and so on meaningful, and to
13056# report actual input values of CONFIG_FILES etc. instead of their
13057# values after options handling.
13058ac_log="
13059This file was extended by $as_me, which was
13060generated by GNU Autoconf 2.65.  Invocation command line was
13061
13062  CONFIG_FILES    = $CONFIG_FILES
13063  CONFIG_HEADERS  = $CONFIG_HEADERS
13064  CONFIG_LINKS    = $CONFIG_LINKS
13065  CONFIG_COMMANDS = $CONFIG_COMMANDS
13066  $ $0 $@
13067
13068on `(hostname || uname -n) 2>/dev/null | sed 1q`
13069"
13070
13071_ACEOF
13072
13073case $ac_config_files in *"
13074"*) set x $ac_config_files; shift; ac_config_files=$*;;
13075esac
13076
13077case $ac_config_headers in *"
13078"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13079esac
13080
13081
13082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13083# Files that config.status was made for.
13084config_files="$ac_config_files"
13085config_headers="$ac_config_headers"
13086
13087_ACEOF
13088
13089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13090ac_cs_usage="\
13091\`$as_me' instantiates files and other configuration actions
13092from templates according to the current configuration.  Unless the files
13093and actions are specified as TAGs, all are instantiated by default.
13094
13095Usage: $0 [OPTION]... [TAG]...
13096
13097  -h, --help       print this help, then exit
13098  -V, --version    print version number and configuration settings, then exit
13099      --config     print configuration, then exit
13100  -q, --quiet, --silent
13101                   do not print progress messages
13102  -d, --debug      don't remove temporary files
13103      --recheck    update $as_me by reconfiguring in the same conditions
13104      --file=FILE[:TEMPLATE]
13105                   instantiate the configuration file FILE
13106      --header=FILE[:TEMPLATE]
13107                   instantiate the configuration header FILE
13108
13109Configuration files:
13110$config_files
13111
13112Configuration headers:
13113$config_headers
13114
13115Report bugs to the package provider."
13116
13117_ACEOF
13118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13119ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13120ac_cs_version="\\
13121config.status
13122configured by $0, generated by GNU Autoconf 2.65,
13123  with options \\"\$ac_cs_config\\"
13124
13125Copyright (C) 2009 Free Software Foundation, Inc.
13126This config.status script is free software; the Free Software Foundation
13127gives unlimited permission to copy, distribute and modify it."
13128
13129ac_pwd='$ac_pwd'
13130srcdir='$srcdir'
13131AWK='$AWK'
13132test -n "\$AWK" || AWK=awk
13133_ACEOF
13134
13135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13136# The default lists apply if the user does not specify any file.
13137ac_need_defaults=:
13138while test $# != 0
13139do
13140  case $1 in
13141  --*=*)
13142    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13143    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13144    ac_shift=:
13145    ;;
13146  *)
13147    ac_option=$1
13148    ac_optarg=$2
13149    ac_shift=shift
13150    ;;
13151  esac
13152
13153  case $ac_option in
13154  # Handling of the options.
13155  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13156    ac_cs_recheck=: ;;
13157  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13158    $as_echo "$ac_cs_version"; exit ;;
13159  --config | --confi | --conf | --con | --co | --c )
13160    $as_echo "$ac_cs_config"; exit ;;
13161  --debug | --debu | --deb | --de | --d | -d )
13162    debug=: ;;
13163  --file | --fil | --fi | --f )
13164    $ac_shift
13165    case $ac_optarg in
13166    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13167    esac
13168    as_fn_append CONFIG_FILES " '$ac_optarg'"
13169    ac_need_defaults=false;;
13170  --header | --heade | --head | --hea )
13171    $ac_shift
13172    case $ac_optarg in
13173    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13174    esac
13175    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13176    ac_need_defaults=false;;
13177  --he | --h)
13178    # Conflict between --help and --header
13179    as_fn_error "ambiguous option: \`$1'
13180Try \`$0 --help' for more information.";;
13181  --help | --hel | -h )
13182    $as_echo "$ac_cs_usage"; exit ;;
13183  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13184  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13185    ac_cs_silent=: ;;
13186
13187  # This is an error.
13188  -*) as_fn_error "unrecognized option: \`$1'
13189Try \`$0 --help' for more information." ;;
13190
13191  *) as_fn_append ac_config_targets " $1"
13192     ac_need_defaults=false ;;
13193
13194  esac
13195  shift
13196done
13197
13198ac_configure_extra_args=
13199
13200if $ac_cs_silent; then
13201  exec 6>/dev/null
13202  ac_configure_extra_args="$ac_configure_extra_args --silent"
13203fi
13204
13205_ACEOF
13206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207if \$ac_cs_recheck; then
13208  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13209  shift
13210  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13211  CONFIG_SHELL='$SHELL'
13212  export CONFIG_SHELL
13213  exec "\$@"
13214fi
13215
13216_ACEOF
13217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13218exec 5>>auto/config.log
13219{
13220  echo
13221  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13222## Running $as_me. ##
13223_ASBOX
13224  $as_echo "$ac_log"
13225} >&5
13226
13227_ACEOF
13228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13229_ACEOF
13230
13231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232
13233# Handling of arguments.
13234for ac_config_target in $ac_config_targets
13235do
13236  case $ac_config_target in
13237    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
13238    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
13239
13240  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13241  esac
13242done
13243
13244
13245# If the user did not use the arguments to specify the items to instantiate,
13246# then the envvar interface is used.  Set only those that are not.
13247# We use the long form for the default assignment because of an extremely
13248# bizarre bug on SunOS 4.1.3.
13249if $ac_need_defaults; then
13250  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13251  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13252fi
13253
13254# Have a temporary directory for convenience.  Make it in the build tree
13255# simply because there is no reason against having it here, and in addition,
13256# creating and moving files from /tmp can sometimes cause problems.
13257# Hook for its removal unless debugging.
13258# Note that there is a small window in which the directory will not be cleaned:
13259# after its creation but before its name has been assigned to `$tmp'.
13260$debug ||
13261{
13262  tmp=
13263  trap 'exit_status=$?
13264  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13265' 0
13266  trap 'as_fn_exit 1' 1 2 13 15
13267}
13268# Create a (secure) tmp directory for tmp files.
13269
13270{
13271  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13272  test -n "$tmp" && test -d "$tmp"
13273}  ||
13274{
13275  tmp=./conf$$-$RANDOM
13276  (umask 077 && mkdir "$tmp")
13277} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13278
13279# Set up the scripts for CONFIG_FILES section.
13280# No need to generate them if there are no CONFIG_FILES.
13281# This happens for instance with `./config.status config.h'.
13282if test -n "$CONFIG_FILES"; then
13283
13284
13285ac_cr=`echo X | tr X '\015'`
13286# On cygwin, bash can eat \r inside `` if the user requested igncr.
13287# But we know of no other shell where ac_cr would be empty at this
13288# point, so we can use a bashism as a fallback.
13289if test "x$ac_cr" = x; then
13290  eval ac_cr=\$\'\\r\'
13291fi
13292ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13293if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13294  ac_cs_awk_cr='\r'
13295else
13296  ac_cs_awk_cr=$ac_cr
13297fi
13298
13299echo 'BEGIN {' >"$tmp/subs1.awk" &&
13300_ACEOF
13301
13302
13303{
13304  echo "cat >conf$$subs.awk <<_ACEOF" &&
13305  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13306  echo "_ACEOF"
13307} >conf$$subs.sh ||
13308  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13309ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13310ac_delim='%!_!# '
13311for ac_last_try in false false false false false :; do
13312  . ./conf$$subs.sh ||
13313    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13314
13315  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13316  if test $ac_delim_n = $ac_delim_num; then
13317    break
13318  elif $ac_last_try; then
13319    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13320  else
13321    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13322  fi
13323done
13324rm -f conf$$subs.sh
13325
13326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13327cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13328_ACEOF
13329sed -n '
13330h
13331s/^/S["/; s/!.*/"]=/
13332p
13333g
13334s/^[^!]*!//
13335:repl
13336t repl
13337s/'"$ac_delim"'$//
13338t delim
13339:nl
13340h
13341s/\(.\{148\}\)..*/\1/
13342t more1
13343s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13344p
13345n
13346b repl
13347:more1
13348s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13349p
13350g
13351s/.\{148\}//
13352t nl
13353:delim
13354h
13355s/\(.\{148\}\)..*/\1/
13356t more2
13357s/["\\]/\\&/g; s/^/"/; s/$/"/
13358p
13359b
13360:more2
13361s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13362p
13363g
13364s/.\{148\}//
13365t delim
13366' <conf$$subs.awk | sed '
13367/^[^""]/{
13368  N
13369  s/\n//
13370}
13371' >>$CONFIG_STATUS || ac_write_fail=1
13372rm -f conf$$subs.awk
13373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13374_ACAWK
13375cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13376  for (key in S) S_is_set[key] = 1
13377  FS = ""
13378
13379}
13380{
13381  line = $ 0
13382  nfields = split(line, field, "@")
13383  substed = 0
13384  len = length(field[1])
13385  for (i = 2; i < nfields; i++) {
13386    key = field[i]
13387    keylen = length(key)
13388    if (S_is_set[key]) {
13389      value = S[key]
13390      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13391      len += length(value) + length(field[++i])
13392      substed = 1
13393    } else
13394      len += 1 + keylen
13395  }
13396
13397  print line
13398}
13399
13400_ACAWK
13401_ACEOF
13402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13403if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13404  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13405else
13406  cat
13407fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13408  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13409_ACEOF
13410
13411# VPATH may cause trouble with some makes, so we remove $(srcdir),
13412# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13413# trailing colons and then remove the whole line if VPATH becomes empty
13414# (actually we leave an empty line to preserve line numbers).
13415if test "x$srcdir" = x.; then
13416  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13417s/:*\$(srcdir):*/:/
13418s/:*\${srcdir}:*/:/
13419s/:*@srcdir@:*/:/
13420s/^\([^=]*=[	 ]*\):*/\1/
13421s/:*$//
13422s/^[^=]*=[	 ]*$//
13423}'
13424fi
13425
13426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13427fi # test -n "$CONFIG_FILES"
13428
13429# Set up the scripts for CONFIG_HEADERS section.
13430# No need to generate them if there are no CONFIG_HEADERS.
13431# This happens for instance with `./config.status Makefile'.
13432if test -n "$CONFIG_HEADERS"; then
13433cat >"$tmp/defines.awk" <<\_ACAWK ||
13434BEGIN {
13435_ACEOF
13436
13437# Transform confdefs.h into an awk script `defines.awk', embedded as
13438# here-document in config.status, that substitutes the proper values into
13439# config.h.in to produce config.h.
13440
13441# Create a delimiter string that does not exist in confdefs.h, to ease
13442# handling of long lines.
13443ac_delim='%!_!# '
13444for ac_last_try in false false :; do
13445  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13446  if test -z "$ac_t"; then
13447    break
13448  elif $ac_last_try; then
13449    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13450  else
13451    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13452  fi
13453done
13454
13455# For the awk script, D is an array of macro values keyed by name,
13456# likewise P contains macro parameters if any.  Preserve backslash
13457# newline sequences.
13458
13459ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13460sed -n '
13461s/.\{148\}/&'"$ac_delim"'/g
13462t rset
13463:rset
13464s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13465t def
13466d
13467:def
13468s/\\$//
13469t bsnl
13470s/["\\]/\\&/g
13471s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13472D["\1"]=" \3"/p
13473s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13474d
13475:bsnl
13476s/["\\]/\\&/g
13477s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13478D["\1"]=" \3\\\\\\n"\\/p
13479t cont
13480s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13481t cont
13482d
13483:cont
13484n
13485s/.\{148\}/&'"$ac_delim"'/g
13486t clear
13487:clear
13488s/\\$//
13489t bsnlc
13490s/["\\]/\\&/g; s/^/"/; s/$/"/p
13491d
13492:bsnlc
13493s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13494b cont
13495' <confdefs.h | sed '
13496s/'"$ac_delim"'/"\\\
13497"/g' >>$CONFIG_STATUS || ac_write_fail=1
13498
13499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13500  for (key in D) D_is_set[key] = 1
13501  FS = ""
13502}
13503/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13504  line = \$ 0
13505  split(line, arg, " ")
13506  if (arg[1] == "#") {
13507    defundef = arg[2]
13508    mac1 = arg[3]
13509  } else {
13510    defundef = substr(arg[1], 2)
13511    mac1 = arg[2]
13512  }
13513  split(mac1, mac2, "(") #)
13514  macro = mac2[1]
13515  prefix = substr(line, 1, index(line, defundef) - 1)
13516  if (D_is_set[macro]) {
13517    # Preserve the white space surrounding the "#".
13518    print prefix "define", macro P[macro] D[macro]
13519    next
13520  } else {
13521    # Replace #undef with comments.  This is necessary, for example,
13522    # in the case of _POSIX_SOURCE, which is predefined and required
13523    # on some systems where configure will not decide to define it.
13524    if (defundef == "undef") {
13525      print "/*", prefix defundef, macro, "*/"
13526      next
13527    }
13528  }
13529}
13530{ print }
13531_ACAWK
13532_ACEOF
13533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13534  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13535fi # test -n "$CONFIG_HEADERS"
13536
13537
13538eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
13539shift
13540for ac_tag
13541do
13542  case $ac_tag in
13543  :[FHLC]) ac_mode=$ac_tag; continue;;
13544  esac
13545  case $ac_mode$ac_tag in
13546  :[FHL]*:*);;
13547  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13548  :[FH]-) ac_tag=-:-;;
13549  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13550  esac
13551  ac_save_IFS=$IFS
13552  IFS=:
13553  set x $ac_tag
13554  IFS=$ac_save_IFS
13555  shift
13556  ac_file=$1
13557  shift
13558
13559  case $ac_mode in
13560  :L) ac_source=$1;;
13561  :[FH])
13562    ac_file_inputs=
13563    for ac_f
13564    do
13565      case $ac_f in
13566      -) ac_f="$tmp/stdin";;
13567      *) # Look for the file first in the build tree, then in the source tree
13568	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13569	 # because $ac_f cannot contain `:'.
13570	 test -f "$ac_f" ||
13571	   case $ac_f in
13572	   [\\/$]*) false;;
13573	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13574	   esac ||
13575	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13576      esac
13577      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13578      as_fn_append ac_file_inputs " '$ac_f'"
13579    done
13580
13581    # Let's still pretend it is `configure' which instantiates (i.e., don't
13582    # use $as_me), people would be surprised to read:
13583    #    /* config.h.  Generated by config.status.  */
13584    configure_input='Generated from '`
13585	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13586	`' by configure.'
13587    if test x"$ac_file" != x-; then
13588      configure_input="$ac_file.  $configure_input"
13589      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13590$as_echo "$as_me: creating $ac_file" >&6;}
13591    fi
13592    # Neutralize special characters interpreted by sed in replacement strings.
13593    case $configure_input in #(
13594    *\&* | *\|* | *\\* )
13595       ac_sed_conf_input=`$as_echo "$configure_input" |
13596       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13597    *) ac_sed_conf_input=$configure_input;;
13598    esac
13599
13600    case $ac_tag in
13601    *:-:* | *:-) cat >"$tmp/stdin" \
13602      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13603    esac
13604    ;;
13605  esac
13606
13607  ac_dir=`$as_dirname -- "$ac_file" ||
13608$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13609	 X"$ac_file" : 'X\(//\)[^/]' \| \
13610	 X"$ac_file" : 'X\(//\)$' \| \
13611	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13612$as_echo X"$ac_file" |
13613    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13614	    s//\1/
13615	    q
13616	  }
13617	  /^X\(\/\/\)[^/].*/{
13618	    s//\1/
13619	    q
13620	  }
13621	  /^X\(\/\/\)$/{
13622	    s//\1/
13623	    q
13624	  }
13625	  /^X\(\/\).*/{
13626	    s//\1/
13627	    q
13628	  }
13629	  s/.*/./; q'`
13630  as_dir="$ac_dir"; as_fn_mkdir_p
13631  ac_builddir=.
13632
13633case "$ac_dir" in
13634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13635*)
13636  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13637  # A ".." for each directory in $ac_dir_suffix.
13638  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13639  case $ac_top_builddir_sub in
13640  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13641  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13642  esac ;;
13643esac
13644ac_abs_top_builddir=$ac_pwd
13645ac_abs_builddir=$ac_pwd$ac_dir_suffix
13646# for backward compatibility:
13647ac_top_builddir=$ac_top_build_prefix
13648
13649case $srcdir in
13650  .)  # We are building in place.
13651    ac_srcdir=.
13652    ac_top_srcdir=$ac_top_builddir_sub
13653    ac_abs_top_srcdir=$ac_pwd ;;
13654  [\\/]* | ?:[\\/]* )  # Absolute name.
13655    ac_srcdir=$srcdir$ac_dir_suffix;
13656    ac_top_srcdir=$srcdir
13657    ac_abs_top_srcdir=$srcdir ;;
13658  *) # Relative name.
13659    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13660    ac_top_srcdir=$ac_top_build_prefix$srcdir
13661    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13662esac
13663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13664
13665
13666  case $ac_mode in
13667  :F)
13668  #
13669  # CONFIG_FILE
13670  #
13671
13672_ACEOF
13673
13674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13675# If the template does not know about datarootdir, expand it.
13676# FIXME: This hack should be removed a few years after 2.60.
13677ac_datarootdir_hack=; ac_datarootdir_seen=
13678ac_sed_dataroot='
13679/datarootdir/ {
13680  p
13681  q
13682}
13683/@datadir@/p
13684/@docdir@/p
13685/@infodir@/p
13686/@localedir@/p
13687/@mandir@/p'
13688case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13689*datarootdir*) ac_datarootdir_seen=yes;;
13690*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13691  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13692$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13693_ACEOF
13694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13695  ac_datarootdir_hack='
13696  s&@datadir@&$datadir&g
13697  s&@docdir@&$docdir&g
13698  s&@infodir@&$infodir&g
13699  s&@localedir@&$localedir&g
13700  s&@mandir@&$mandir&g
13701  s&\\\${datarootdir}&$datarootdir&g' ;;
13702esac
13703_ACEOF
13704
13705# Neutralize VPATH when `$srcdir' = `.'.
13706# Shell code in configure.ac might set extrasub.
13707# FIXME: do we really want to maintain this feature?
13708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13709ac_sed_extra="$ac_vpsub
13710$extrasub
13711_ACEOF
13712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13713:t
13714/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13715s|@configure_input@|$ac_sed_conf_input|;t t
13716s&@top_builddir@&$ac_top_builddir_sub&;t t
13717s&@top_build_prefix@&$ac_top_build_prefix&;t t
13718s&@srcdir@&$ac_srcdir&;t t
13719s&@abs_srcdir@&$ac_abs_srcdir&;t t
13720s&@top_srcdir@&$ac_top_srcdir&;t t
13721s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13722s&@builddir@&$ac_builddir&;t t
13723s&@abs_builddir@&$ac_abs_builddir&;t t
13724s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13725$ac_datarootdir_hack
13726"
13727eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13728  || as_fn_error "could not create $ac_file" "$LINENO" 5
13729
13730test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13731  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13732  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13733  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13734which seems to be undefined.  Please make sure it is defined." >&5
13735$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13736which seems to be undefined.  Please make sure it is defined." >&2;}
13737
13738  rm -f "$tmp/stdin"
13739  case $ac_file in
13740  -) cat "$tmp/out" && rm -f "$tmp/out";;
13741  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13742  esac \
13743  || as_fn_error "could not create $ac_file" "$LINENO" 5
13744 ;;
13745  :H)
13746  #
13747  # CONFIG_HEADER
13748  #
13749  if test x"$ac_file" != x-; then
13750    {
13751      $as_echo "/* $configure_input  */" \
13752      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13753    } >"$tmp/config.h" \
13754      || as_fn_error "could not create $ac_file" "$LINENO" 5
13755    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13756      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13757$as_echo "$as_me: $ac_file is unchanged" >&6;}
13758    else
13759      rm -f "$ac_file"
13760      mv "$tmp/config.h" "$ac_file" \
13761	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13762    fi
13763  else
13764    $as_echo "/* $configure_input  */" \
13765      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13766      || as_fn_error "could not create -" "$LINENO" 5
13767  fi
13768 ;;
13769
13770
13771  esac
13772
13773done # for ac_tag
13774
13775
13776as_fn_exit 0
13777_ACEOF
13778ac_clean_files=$ac_clean_files_save
13779
13780test $ac_write_fail = 0 ||
13781  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13782
13783
13784# configure is writing to config.log, and then calls config.status.
13785# config.status does its own redirection, appending to config.log.
13786# Unfortunately, on DOS this fails, as config.log is still kept open
13787# by configure, so config.status won't be able to write to it; its
13788# output is simply discarded.  So we exec the FD to /dev/null,
13789# effectively closing config.log, so it can be properly (re)opened and
13790# appended to by config.status.  When coming back to configure, we
13791# need to make the FD available again.
13792if test "$no_create" != yes; then
13793  ac_cs_success=:
13794  ac_config_status_args=
13795  test "$silent" = yes &&
13796    ac_config_status_args="$ac_config_status_args --quiet"
13797  exec 5>/dev/null
13798  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13799  exec 5>>auto/config.log
13800  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13801  # would make configure fail if this is the last instruction.
13802  $ac_cs_success || as_fn_exit $?
13803fi
13804if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13805  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13806$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13807fi
13808
13809
13810