xref: /vim-8.2.3635/src/auto/configure (revision 1ff14ba2)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell [email protected] about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="vim.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624LINK_AS_NEEDED
625DEPEND_CFLAGS_FILTER
626MSGFMT_DESKTOP
627MAKEMO
628MSGFMT
629INSTALL_TOOL_LANGS
630INSTALL_LANGS
631TAGPRG
632HANGULIN_OBJ
633HANGULIN_SRC
634GUI_X_LIBS
635GUITYPE
636GUI_LIB_LOC
637GUI_INC_LOC
638NARROW_PROTO
639MOTIF_LIBNAME
640GRESOURCE_OBJ
641GRESOURCE_SRC
642UPDATE_DESKTOP_DATABASE
643GTK_UPDATE_ICON_CACHE
644GLIB_COMPILE_RESOURCES
645GNOME_INCLUDEDIR
646GNOME_LIBDIR
647GNOME_LIBS
648GTK_LIBNAME
649GTK_LIBS
650GTK_CFLAGS
651PKG_CONFIG
652X_LIB
653X_EXTRA_LIBS
654X_LIBS
655X_PRE_LIBS
656X_CFLAGS
657XMKMF
658xmkmfpath
659TERM_TEST
660TERM_OBJ
661TERM_SRC
662CHANNEL_OBJ
663CHANNEL_SRC
664NETBEANS_OBJ
665NETBEANS_SRC
666RUBY_LIBS
667RUBY_CFLAGS
668RUBY_PRO
669RUBY_OBJ
670RUBY_SRC
671vi_cv_path_ruby
672TCL_LIBS
673TCL_CFLAGS
674TCL_PRO
675TCL_OBJ
676TCL_SRC
677vi_cv_path_tcl
678PYTHON3_OBJ
679PYTHON3_SRC
680PYTHON3_CFLAGS
681PYTHON3_LIBS
682vi_cv_path_python3
683PYTHON_OBJ
684PYTHON_SRC
685PYTHON_CFLAGS
686PYTHON_LIBS
687vi_cv_path_python
688PERL_LIBS
689PERL_CFLAGS
690PERL_PRO
691PERL_OBJ
692PERL_SRC
693shrpenv
694vi_cv_perl_xsubpp
695vi_cv_perllib
696vi_cv_path_perl
697MZSCHEME_MZC
698MZSCHEME_EXTRA
699MZSCHEME_CFLAGS
700MZSCHEME_LIBS
701MZSCHEME_PRO
702MZSCHEME_OBJ
703MZSCHEME_SRC
704vi_cv_path_mzscheme
705LUA_CFLAGS
706LUA_LIBS
707LUA_PRO
708LUA_OBJ
709LUA_SRC
710vi_cv_path_plain_lua
711vi_cv_path_luajit
712vi_cv_path_lua
713compiledby
714dogvimdiff
715dovimdiff
716QUOTESED
717line_break
718VIEWNAME
719EXNAME
720VIMNAME
721OS_EXTRA_OBJ
722OS_EXTRA_SRC
723XCODE_SELECT
724CPP_MM
725CROSS_COMPILING
726STRIP
727AWK
728FGREP
729EGREP
730GREP
731CPP
732OBJEXT
733EXEEXT
734ac_ct_CC
735CPPFLAGS
736LDFLAGS
737CFLAGS
738CC
739SET_MAKE
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759runstatedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_fail_if_missing
783enable_darwin
784with_mac_arch
785with_developer_dir
786with_local_dir
787with_vim_name
788with_ex_name
789with_view_name
790with_global_runtime
791with_modified_by
792enable_smack
793enable_selinux
794with_features
795with_compiledby
796enable_xsmp
797enable_xsmp_interact
798enable_luainterp
799with_lua_prefix
800with_luajit
801enable_mzschemeinterp
802with_plthome
803enable_perlinterp
804enable_pythoninterp
805with_python_command
806with_python_config_dir
807enable_python3interp
808with_python3_command
809with_python3_config_dir
810enable_tclinterp
811with_tclsh
812enable_rubyinterp
813with_ruby_command
814enable_cscope
815enable_netbeans
816enable_channel
817enable_terminal
818enable_autoservername
819enable_multibyte
820enable_rightleft
821enable_arabic
822enable_farsi
823enable_hangulinput
824enable_xim
825enable_fontset
826with_x
827enable_gui
828enable_gtk2_check
829enable_gnome_check
830enable_gtk3_check
831enable_motif_check
832enable_athena_check
833enable_nextaw_check
834enable_carbon_check
835enable_gtktest
836with_gnome_includes
837with_gnome_libs
838with_gnome
839enable_icon_cache_update
840enable_desktop_database_update
841with_motif_lib
842with_tlib
843enable_largefile
844enable_canberra
845enable_acl
846enable_gpm
847enable_sysmouse
848enable_nls
849'
850      ac_precious_vars='build_alias
851host_alias
852target_alias
853CC
854CFLAGS
855LDFLAGS
856LIBS
857CPPFLAGS
858CPP
859XMKMF'
860
861
862# Initialize some variables set by options.
863ac_init_help=
864ac_init_version=false
865ac_unrecognized_opts=
866ac_unrecognized_sep=
867# The variables have the same names as the options, with
868# dashes changed to underlines.
869cache_file=/dev/null
870exec_prefix=NONE
871no_create=
872no_recursion=
873prefix=NONE
874program_prefix=NONE
875program_suffix=NONE
876program_transform_name=s,x,x,
877silent=
878site=
879srcdir=
880verbose=
881x_includes=NONE
882x_libraries=NONE
883
884# Installation directory options.
885# These are left unexpanded so users can "make install exec_prefix=/foo"
886# and all the variables that are supposed to be based on exec_prefix
887# by default will actually change.
888# Use braces instead of parens because sh, perl, etc. also accept them.
889# (The list follows the same order as the GNU Coding Standards.)
890bindir='${exec_prefix}/bin'
891sbindir='${exec_prefix}/sbin'
892libexecdir='${exec_prefix}/libexec'
893datarootdir='${prefix}/share'
894datadir='${datarootdir}'
895sysconfdir='${prefix}/etc'
896sharedstatedir='${prefix}/com'
897localstatedir='${prefix}/var'
898runstatedir='${localstatedir}/run'
899includedir='${prefix}/include'
900oldincludedir='/usr/include'
901docdir='${datarootdir}/doc/${PACKAGE}'
902infodir='${datarootdir}/info'
903htmldir='${docdir}'
904dvidir='${docdir}'
905pdfdir='${docdir}'
906psdir='${docdir}'
907libdir='${exec_prefix}/lib'
908localedir='${datarootdir}/locale'
909mandir='${datarootdir}/man'
910
911ac_prev=
912ac_dashdash=
913for ac_option
914do
915  # If the previous option needs an argument, assign it.
916  if test -n "$ac_prev"; then
917    eval $ac_prev=\$ac_option
918    ac_prev=
919    continue
920  fi
921
922  case $ac_option in
923  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924  *=)   ac_optarg= ;;
925  *)    ac_optarg=yes ;;
926  esac
927
928  # Accept the important Cygnus configure options, so we can diagnose typos.
929
930  case $ac_dashdash$ac_option in
931  --)
932    ac_dashdash=yes ;;
933
934  -bindir | --bindir | --bindi | --bind | --bin | --bi)
935    ac_prev=bindir ;;
936  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937    bindir=$ac_optarg ;;
938
939  -build | --build | --buil | --bui | --bu)
940    ac_prev=build_alias ;;
941  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942    build_alias=$ac_optarg ;;
943
944  -cache-file | --cache-file | --cache-fil | --cache-fi \
945  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946    ac_prev=cache_file ;;
947  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949    cache_file=$ac_optarg ;;
950
951  --config-cache | -C)
952    cache_file=config.cache ;;
953
954  -datadir | --datadir | --datadi | --datad)
955    ac_prev=datadir ;;
956  -datadir=* | --datadir=* | --datadi=* | --datad=*)
957    datadir=$ac_optarg ;;
958
959  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960  | --dataroo | --dataro | --datar)
961    ac_prev=datarootdir ;;
962  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964    datarootdir=$ac_optarg ;;
965
966  -disable-* | --disable-*)
967    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968    # Reject names that are not valid shell variable names.
969    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970      as_fn_error $? "invalid feature name: $ac_useropt"
971    ac_useropt_orig=$ac_useropt
972    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973    case $ac_user_opts in
974      *"
975"enable_$ac_useropt"
976"*) ;;
977      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978	 ac_unrecognized_sep=', ';;
979    esac
980    eval enable_$ac_useropt=no ;;
981
982  -docdir | --docdir | --docdi | --doc | --do)
983    ac_prev=docdir ;;
984  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985    docdir=$ac_optarg ;;
986
987  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988    ac_prev=dvidir ;;
989  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990    dvidir=$ac_optarg ;;
991
992  -enable-* | --enable-*)
993    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994    # Reject names that are not valid shell variable names.
995    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996      as_fn_error $? "invalid feature name: $ac_useropt"
997    ac_useropt_orig=$ac_useropt
998    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999    case $ac_user_opts in
1000      *"
1001"enable_$ac_useropt"
1002"*) ;;
1003      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004	 ac_unrecognized_sep=', ';;
1005    esac
1006    eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010  | --exec | --exe | --ex)
1011    ac_prev=exec_prefix ;;
1012  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014  | --exec=* | --exe=* | --ex=*)
1015    exec_prefix=$ac_optarg ;;
1016
1017  -gas | --gas | --ga | --g)
1018    # Obsolete; use --with-gas.
1019    with_gas=yes ;;
1020
1021  -help | --help | --hel | --he | -h)
1022    ac_init_help=long ;;
1023  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024    ac_init_help=recursive ;;
1025  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026    ac_init_help=short ;;
1027
1028  -host | --host | --hos | --ho)
1029    ac_prev=host_alias ;;
1030  -host=* | --host=* | --hos=* | --ho=*)
1031    host_alias=$ac_optarg ;;
1032
1033  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034    ac_prev=htmldir ;;
1035  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036  | --ht=*)
1037    htmldir=$ac_optarg ;;
1038
1039  -includedir | --includedir | --includedi | --included | --include \
1040  | --includ | --inclu | --incl | --inc)
1041    ac_prev=includedir ;;
1042  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043  | --includ=* | --inclu=* | --incl=* | --inc=*)
1044    includedir=$ac_optarg ;;
1045
1046  -infodir | --infodir | --infodi | --infod | --info | --inf)
1047    ac_prev=infodir ;;
1048  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049    infodir=$ac_optarg ;;
1050
1051  -libdir | --libdir | --libdi | --libd)
1052    ac_prev=libdir ;;
1053  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054    libdir=$ac_optarg ;;
1055
1056  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057  | --libexe | --libex | --libe)
1058    ac_prev=libexecdir ;;
1059  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060  | --libexe=* | --libex=* | --libe=*)
1061    libexecdir=$ac_optarg ;;
1062
1063  -localedir | --localedir | --localedi | --localed | --locale)
1064    ac_prev=localedir ;;
1065  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066    localedir=$ac_optarg ;;
1067
1068  -localstatedir | --localstatedir | --localstatedi | --localstated \
1069  | --localstate | --localstat | --localsta | --localst | --locals)
1070    ac_prev=localstatedir ;;
1071  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073    localstatedir=$ac_optarg ;;
1074
1075  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076    ac_prev=mandir ;;
1077  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078    mandir=$ac_optarg ;;
1079
1080  -nfp | --nfp | --nf)
1081    # Obsolete; use --without-fp.
1082    with_fp=no ;;
1083
1084  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085  | --no-cr | --no-c | -n)
1086    no_create=yes ;;
1087
1088  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090    no_recursion=yes ;;
1091
1092  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094  | --oldin | --oldi | --old | --ol | --o)
1095    ac_prev=oldincludedir ;;
1096  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099    oldincludedir=$ac_optarg ;;
1100
1101  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102    ac_prev=prefix ;;
1103  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104    prefix=$ac_optarg ;;
1105
1106  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107  | --program-pre | --program-pr | --program-p)
1108    ac_prev=program_prefix ;;
1109  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111    program_prefix=$ac_optarg ;;
1112
1113  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114  | --program-suf | --program-su | --program-s)
1115    ac_prev=program_suffix ;;
1116  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118    program_suffix=$ac_optarg ;;
1119
1120  -program-transform-name | --program-transform-name \
1121  | --program-transform-nam | --program-transform-na \
1122  | --program-transform-n | --program-transform- \
1123  | --program-transform | --program-transfor \
1124  | --program-transfo | --program-transf \
1125  | --program-trans | --program-tran \
1126  | --progr-tra | --program-tr | --program-t)
1127    ac_prev=program_transform_name ;;
1128  -program-transform-name=* | --program-transform-name=* \
1129  | --program-transform-nam=* | --program-transform-na=* \
1130  | --program-transform-n=* | --program-transform-=* \
1131  | --program-transform=* | --program-transfor=* \
1132  | --program-transfo=* | --program-transf=* \
1133  | --program-trans=* | --program-tran=* \
1134  | --progr-tra=* | --program-tr=* | --program-t=*)
1135    program_transform_name=$ac_optarg ;;
1136
1137  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138    ac_prev=pdfdir ;;
1139  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140    pdfdir=$ac_optarg ;;
1141
1142  -psdir | --psdir | --psdi | --psd | --ps)
1143    ac_prev=psdir ;;
1144  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145    psdir=$ac_optarg ;;
1146
1147  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148  | -silent | --silent | --silen | --sile | --sil)
1149    silent=yes ;;
1150
1151  -runstatedir | --runstatedir | --runstatedi | --runstated \
1152  | --runstate | --runstat | --runsta | --runst | --runs \
1153  | --run | --ru | --r)
1154    ac_prev=runstatedir ;;
1155  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1156  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1157  | --run=* | --ru=* | --r=*)
1158    runstatedir=$ac_optarg ;;
1159
1160  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161    ac_prev=sbindir ;;
1162  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163  | --sbi=* | --sb=*)
1164    sbindir=$ac_optarg ;;
1165
1166  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168  | --sharedst | --shareds | --shared | --share | --shar \
1169  | --sha | --sh)
1170    ac_prev=sharedstatedir ;;
1171  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174  | --sha=* | --sh=*)
1175    sharedstatedir=$ac_optarg ;;
1176
1177  -site | --site | --sit)
1178    ac_prev=site ;;
1179  -site=* | --site=* | --sit=*)
1180    site=$ac_optarg ;;
1181
1182  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183    ac_prev=srcdir ;;
1184  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185    srcdir=$ac_optarg ;;
1186
1187  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188  | --syscon | --sysco | --sysc | --sys | --sy)
1189    ac_prev=sysconfdir ;;
1190  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192    sysconfdir=$ac_optarg ;;
1193
1194  -target | --target | --targe | --targ | --tar | --ta | --t)
1195    ac_prev=target_alias ;;
1196  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197    target_alias=$ac_optarg ;;
1198
1199  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200    verbose=yes ;;
1201
1202  -version | --version | --versio | --versi | --vers | -V)
1203    ac_init_version=: ;;
1204
1205  -with-* | --with-*)
1206    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207    # Reject names that are not valid shell variable names.
1208    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209      as_fn_error $? "invalid package name: $ac_useropt"
1210    ac_useropt_orig=$ac_useropt
1211    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212    case $ac_user_opts in
1213      *"
1214"with_$ac_useropt"
1215"*) ;;
1216      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217	 ac_unrecognized_sep=', ';;
1218    esac
1219    eval with_$ac_useropt=\$ac_optarg ;;
1220
1221  -without-* | --without-*)
1222    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223    # Reject names that are not valid shell variable names.
1224    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225      as_fn_error $? "invalid package name: $ac_useropt"
1226    ac_useropt_orig=$ac_useropt
1227    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228    case $ac_user_opts in
1229      *"
1230"with_$ac_useropt"
1231"*) ;;
1232      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233	 ac_unrecognized_sep=', ';;
1234    esac
1235    eval with_$ac_useropt=no ;;
1236
1237  --x)
1238    # Obsolete; use --with-x.
1239    with_x=yes ;;
1240
1241  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242  | --x-incl | --x-inc | --x-in | --x-i)
1243    ac_prev=x_includes ;;
1244  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246    x_includes=$ac_optarg ;;
1247
1248  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250    ac_prev=x_libraries ;;
1251  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253    x_libraries=$ac_optarg ;;
1254
1255  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256Try \`$0 --help' for more information"
1257    ;;
1258
1259  *=*)
1260    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261    # Reject names that are not valid shell variable names.
1262    case $ac_envvar in #(
1263      '' | [0-9]* | *[!_$as_cr_alnum]* )
1264      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1265    esac
1266    eval $ac_envvar=\$ac_optarg
1267    export $ac_envvar ;;
1268
1269  *)
1270    # FIXME: should be removed in autoconf 3.0.
1271    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1275    ;;
1276
1277  esac
1278done
1279
1280if test -n "$ac_prev"; then
1281  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282  as_fn_error $? "missing argument to $ac_option"
1283fi
1284
1285if test -n "$ac_unrecognized_opts"; then
1286  case $enable_option_checking in
1287    no) ;;
1288    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1289    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290  esac
1291fi
1292
1293# Check all directory arguments for consistency.
1294for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295		datadir sysconfdir sharedstatedir localstatedir includedir \
1296		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297		libdir localedir mandir runstatedir
1298do
1299  eval ac_val=\$$ac_var
1300  # Remove trailing slashes.
1301  case $ac_val in
1302    */ )
1303      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304      eval $ac_var=\$ac_val;;
1305  esac
1306  # Be sure to have absolute directory names.
1307  case $ac_val in
1308    [\\/$]* | ?:[\\/]* )  continue;;
1309    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310  esac
1311  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1312done
1313
1314# There might be people who depend on the old broken behavior: `$host'
1315# used to hold the argument of --host etc.
1316# FIXME: To remove some day.
1317build=$build_alias
1318host=$host_alias
1319target=$target_alias
1320
1321# FIXME: To remove some day.
1322if test "x$host_alias" != x; then
1323  if test "x$build_alias" = x; then
1324    cross_compiling=maybe
1325  elif test "x$build_alias" != "x$host_alias"; then
1326    cross_compiling=yes
1327  fi
1328fi
1329
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
1334
1335
1336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339  as_fn_error $? "working directory cannot be determined"
1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341  as_fn_error $? "pwd does not report name of working directory"
1342
1343
1344# Find the source files, if location was not specified.
1345if test -z "$srcdir"; then
1346  ac_srcdir_defaulted=yes
1347  # Try the directory containing this script, then the parent directory.
1348  ac_confdir=`$as_dirname -- "$as_myself" ||
1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350	 X"$as_myself" : 'X\(//\)[^/]' \| \
1351	 X"$as_myself" : 'X\(//\)$' \| \
1352	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353$as_echo X"$as_myself" |
1354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\/\)[^/].*/{
1359	    s//\1/
1360	    q
1361	  }
1362	  /^X\(\/\/\)$/{
1363	    s//\1/
1364	    q
1365	  }
1366	  /^X\(\/\).*/{
1367	    s//\1/
1368	    q
1369	  }
1370	  s/.*/./; q'`
1371  srcdir=$ac_confdir
1372  if test ! -r "$srcdir/$ac_unique_file"; then
1373    srcdir=..
1374  fi
1375else
1376  ac_srcdir_defaulted=no
1377fi
1378if test ! -r "$srcdir/$ac_unique_file"; then
1379  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
1384	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1385	pwd)`
1386# When building in place, set srcdir=.
1387if test "$ac_abs_confdir" = "$ac_pwd"; then
1388  srcdir=.
1389fi
1390# Remove unnecessary trailing slashes from srcdir.
1391# Double slashes in file names in object file debugging info
1392# mess up M-x gdb in Emacs.
1393case $srcdir in
1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395esac
1396for ac_var in $ac_precious_vars; do
1397  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398  eval ac_env_${ac_var}_value=\$${ac_var}
1399  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401done
1402
1403#
1404# Report the --help message.
1405#
1406if test "$ac_init_help" = "long"; then
1407  # Omit some internal or obsolete options to make the list less imposing.
1408  # This message is too long to be a string in the A/UX 3.1 sh.
1409  cat <<_ACEOF
1410\`configure' configures this package to adapt to many kinds of systems.
1411
1412Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415VAR=VALUE.  See below for descriptions of some of the useful variables.
1416
1417Defaults for the options are specified in brackets.
1418
1419Configuration:
1420  -h, --help              display this help and exit
1421      --help=short        display options specific to this package
1422      --help=recursive    display the short help of all the included packages
1423  -V, --version           display version information and exit
1424  -q, --quiet, --silent   do not print \`checking ...' messages
1425      --cache-file=FILE   cache test results in FILE [disabled]
1426  -C, --config-cache      alias for \`--cache-file=config.cache'
1427  -n, --no-create         do not create output files
1428      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1429
1430Installation directories:
1431  --prefix=PREFIX         install architecture-independent files in PREFIX
1432                          [$ac_default_prefix]
1433  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1434                          [PREFIX]
1435
1436By default, \`make install' will install all the files in
1437\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1438an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439for instance \`--prefix=\$HOME'.
1440
1441For better control, use the options below.
1442
1443Fine tuning of the installation directories:
1444  --bindir=DIR            user executables [EPREFIX/bin]
1445  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1446  --libexecdir=DIR        program executables [EPREFIX/libexec]
1447  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1448  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1449  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1450  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1451  --libdir=DIR            object code libraries [EPREFIX/lib]
1452  --includedir=DIR        C header files [PREFIX/include]
1453  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1454  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1455  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1456  --infodir=DIR           info documentation [DATAROOTDIR/info]
1457  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1458  --mandir=DIR            man documentation [DATAROOTDIR/man]
1459  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1460  --htmldir=DIR           html documentation [DOCDIR]
1461  --dvidir=DIR            dvi documentation [DOCDIR]
1462  --pdfdir=DIR            pdf documentation [DOCDIR]
1463  --psdir=DIR             ps documentation [DOCDIR]
1464_ACEOF
1465
1466  cat <<\_ACEOF
1467
1468X features:
1469  --x-includes=DIR    X include files are in DIR
1470  --x-libraries=DIR   X library files are in DIR
1471_ACEOF
1472fi
1473
1474if test -n "$ac_init_help"; then
1475
1476  cat <<\_ACEOF
1477
1478Optional Features:
1479  --disable-option-checking  ignore unrecognized --enable/--with options
1480  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482  --enable-fail-if-missing    Fail if dependencies on additional features
1483     specified on the command line are missing.
1484  --disable-darwin        Disable Darwin (Mac OS X) support.
1485  --disable-smack	  Do not check for Smack support.
1486  --disable-selinux	  Do not check for SELinux support.
1487  --disable-xsmp          Disable XSMP session management
1488  --disable-xsmp-interact Disable XSMP interaction
1489  --enable-luainterp=OPTS      Include Lua interpreter.  default=no OPTS=no/yes/dynamic
1490  --enable-mzschemeinterp      Include MzScheme interpreter.
1491  --enable-perlinterp=OPTS     Include Perl interpreter.  default=no OPTS=no/yes/dynamic
1492  --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
1493  --enable-python3interp=OPTS  Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1494  --enable-tclinterp=OPTS      Include Tcl interpreter. default=no OPTS=no/yes/dynamic
1495  --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
1496  --enable-cscope         Include cscope interface.
1497  --disable-netbeans      Disable NetBeans integration support.
1498  --disable-channel       Disable process communication support.
1499  --enable-terminal       Enable terminal emulation support.
1500  --enable-autoservername Automatically define servername at vim startup.
1501  --enable-multibyte      Include multibyte editing support.
1502  --disable-rightleft     Do not include Right-to-Left language support.
1503  --disable-arabic        Do not include Arabic language support.
1504  --disable-farsi         Deprecated.
1505  --enable-hangulinput    Include Hangul input support.
1506  --enable-xim            Include XIM input support.
1507  --enable-fontset        Include X fontset output support.
1508  --enable-gui=OPTS       X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon
1509  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1510  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1511  --enable-gtk3-check     If auto-select GUI, check for GTK+ 3 default=yes
1512  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1513  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1514  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1515  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1516  --disable-gtktest       Do not try to compile and run a test GTK program
1517  --disable-icon-cache-update        update disabled
1518  --disable-desktop-database-update  update disabled
1519  --disable-largefile     omit support for large files
1520  --disable-canberra      Do not use libcanberra.
1521  --disable-acl           No check for ACL support.
1522  --disable-gpm           Don't use gpm (Linux mouse daemon).
1523  --disable-sysmouse      Don't use sysmouse (mouse in *BSD console).
1524  --disable-nls           Don't support NLS (gettext()).
1525
1526Optional Packages:
1527  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1528  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1529  --with-mac-arch=ARCH    current, intel, ppc or both
1530  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1531  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1532  --without-local-dir     do not search /usr/local for local libraries.
1533  --with-vim-name=NAME    what to call the Vim executable
1534  --with-ex-name=NAME     what to call the Ex executable
1535  --with-view-name=NAME   what to call the View executable
1536  --with-global-runtime=DIR    global runtime directory in 'runtimepath', comma-separated for multiple directories
1537  --with-modified-by=NAME       name of who modified a release version
1538  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)
1539  --with-compiledby=NAME  name to show in :version message
1540  --with-lua-prefix=PFX   Prefix where Lua is installed.
1541  --with-luajit           Link with LuaJIT instead of Lua.
1542  --with-plthome=PLTHOME   Use PLTHOME.
1543  --with-python-command=NAME  name of the Python 2 command (default: python2 or python)
1544  --with-python-config-dir=PATH  Python's config directory (deprecated)
1545  --with-python3-command=NAME  name of the Python 3 command (default: python3 or python)
1546  --with-python3-config-dir=PATH  Python's config directory (deprecated)
1547  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1548  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1549  --with-x                use the X Window System
1550  --with-gnome-includes=DIR Specify location of GNOME headers
1551  --with-gnome-libs=DIR   Specify location of GNOME libs
1552  --with-gnome            Specify prefix for GNOME files
1553  --with-motif-lib=STRING Library for Motif
1554  --with-tlib=library     terminal library to be used
1555
1556Some influential environment variables:
1557  CC          C compiler command
1558  CFLAGS      C compiler flags
1559  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1560              nonstandard directory <lib dir>
1561  LIBS        libraries to pass to the linker, e.g. -l<library>
1562  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1563              you have headers in a nonstandard directory <include dir>
1564  CPP         C preprocessor
1565  XMKMF       Path to xmkmf, Makefile generator for X Window System
1566
1567Use these variables to override the choices made by `configure' or to help
1568it to find libraries and programs with nonstandard names/locations.
1569
1570Report bugs to the package provider.
1571_ACEOF
1572ac_status=$?
1573fi
1574
1575if test "$ac_init_help" = "recursive"; then
1576  # If there are subdirs, report their specific --help.
1577  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578    test -d "$ac_dir" ||
1579      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1580      continue
1581    ac_builddir=.
1582
1583case "$ac_dir" in
1584.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585*)
1586  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1587  # A ".." for each directory in $ac_dir_suffix.
1588  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1589  case $ac_top_builddir_sub in
1590  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592  esac ;;
1593esac
1594ac_abs_top_builddir=$ac_pwd
1595ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596# for backward compatibility:
1597ac_top_builddir=$ac_top_build_prefix
1598
1599case $srcdir in
1600  .)  # We are building in place.
1601    ac_srcdir=.
1602    ac_top_srcdir=$ac_top_builddir_sub
1603    ac_abs_top_srcdir=$ac_pwd ;;
1604  [\\/]* | ?:[\\/]* )  # Absolute name.
1605    ac_srcdir=$srcdir$ac_dir_suffix;
1606    ac_top_srcdir=$srcdir
1607    ac_abs_top_srcdir=$srcdir ;;
1608  *) # Relative name.
1609    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610    ac_top_srcdir=$ac_top_build_prefix$srcdir
1611    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612esac
1613ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614
1615    cd "$ac_dir" || { ac_status=$?; continue; }
1616    # Check for guested configure.
1617    if test -f "$ac_srcdir/configure.gnu"; then
1618      echo &&
1619      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620    elif test -f "$ac_srcdir/configure"; then
1621      echo &&
1622      $SHELL "$ac_srcdir/configure" --help=recursive
1623    else
1624      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625    fi || ac_status=$?
1626    cd "$ac_pwd" || { ac_status=$?; break; }
1627  done
1628fi
1629
1630test -n "$ac_init_help" && exit $ac_status
1631if $ac_init_version; then
1632  cat <<\_ACEOF
1633configure
1634generated by GNU Autoconf 2.69
1635
1636Copyright (C) 2012 Free Software Foundation, Inc.
1637This configure script is free software; the Free Software Foundation
1638gives unlimited permission to copy, distribute and modify it.
1639_ACEOF
1640  exit
1641fi
1642
1643## ------------------------ ##
1644## Autoconf initialization. ##
1645## ------------------------ ##
1646
1647# ac_fn_c_try_compile LINENO
1648# --------------------------
1649# Try to compile conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_compile ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  rm -f conftest.$ac_objext
1654  if { { ac_try="$ac_compile"
1655case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661  (eval "$ac_compile") 2>conftest.err
1662  ac_status=$?
1663  if test -s conftest.err; then
1664    grep -v '^ *+' conftest.err >conftest.er1
1665    cat conftest.er1 >&5
1666    mv -f conftest.er1 conftest.err
1667  fi
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } && {
1670	 test -z "$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       } && test -s conftest.$ac_objext; then :
1673  ac_retval=0
1674else
1675  $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678	ac_retval=1
1679fi
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681  as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_compile
1684
1685# ac_fn_c_try_cpp LINENO
1686# ----------------------
1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_cpp ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if { { ac_try="$ac_cpp conftest.$ac_ext"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699  ac_status=$?
1700  if test -s conftest.err; then
1701    grep -v '^ *+' conftest.err >conftest.er1
1702    cat conftest.er1 >&5
1703    mv -f conftest.er1 conftest.err
1704  fi
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } > conftest.i && {
1707	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708	 test ! -s conftest.err
1709       }; then :
1710  ac_retval=0
1711else
1712  $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715    ac_retval=1
1716fi
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_cpp
1721
1722# ac_fn_c_try_link LINENO
1723# -----------------------
1724# Try to link conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_c_try_link ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  rm -f conftest.$ac_objext conftest$ac_exeext
1729  if { { ac_try="$ac_link"
1730case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_link") 2>conftest.err
1737  ac_status=$?
1738  if test -s conftest.err; then
1739    grep -v '^ *+' conftest.err >conftest.er1
1740    cat conftest.er1 >&5
1741    mv -f conftest.er1 conftest.err
1742  fi
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; } && {
1745	 test -z "$ac_c_werror_flag" ||
1746	 test ! -s conftest.err
1747       } && test -s conftest$ac_exeext && {
1748	 test "$cross_compiling" = yes ||
1749	 test -x conftest$ac_exeext
1750       }; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756	ac_retval=1
1757fi
1758  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760  # interfere with the next link command; also delete a directory that is
1761  # left behind by Apple's compiler.  We do this before executing the actions.
1762  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764  as_fn_set_status $ac_retval
1765
1766} # ac_fn_c_try_link
1767
1768# ac_fn_c_try_run LINENO
1769# ----------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771# that executables *can* be run.
1772ac_fn_c_try_run ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782  (eval "$ac_link") 2>&5
1783  ac_status=$?
1784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786  { { case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792  (eval "$ac_try") 2>&5
1793  ac_status=$?
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; }; }; then :
1796  ac_retval=0
1797else
1798  $as_echo "$as_me: program exited with status $ac_status" >&5
1799       $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802       ac_retval=$ac_status
1803fi
1804  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806  as_fn_set_status $ac_retval
1807
1808} # ac_fn_c_try_run
1809
1810# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811# -------------------------------------------------------
1812# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813# the include files in INCLUDES and setting the cache variable VAR
1814# accordingly.
1815ac_fn_c_check_header_mongrel ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  if eval \${$3+:} false; then :
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822  $as_echo_n "(cached) " >&6
1823fi
1824eval ac_res=\$$3
1825	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827else
1828  # Is the header compilable?
1829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830$as_echo_n "checking $2 usability... " >&6; }
1831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833$4
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_compile "$LINENO"; then :
1837  ac_header_compiler=yes
1838else
1839  ac_header_compiler=no
1840fi
1841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843$as_echo "$ac_header_compiler" >&6; }
1844
1845# Is the header present?
1846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847$as_echo_n "checking $2 presence... " >&6; }
1848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850#include <$2>
1851_ACEOF
1852if ac_fn_c_try_cpp "$LINENO"; then :
1853  ac_header_preproc=yes
1854else
1855  ac_header_preproc=no
1856fi
1857rm -f conftest.err conftest.i conftest.$ac_ext
1858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859$as_echo "$ac_header_preproc" >&6; }
1860
1861# So?  What about this header?
1862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863  yes:no: )
1864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868    ;;
1869  no:yes:* )
1870    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1873$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1877$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880    ;;
1881esac
1882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if eval \${$3+:} false; then :
1885  $as_echo_n "(cached) " >&6
1886else
1887  eval "$3=\$ac_header_compiler"
1888fi
1889eval ac_res=\$$3
1890	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
1892fi
1893  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895} # ac_fn_c_check_header_mongrel
1896
1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898# -------------------------------------------------------
1899# Tests whether HEADER exists and can be compiled using the include files in
1900# INCLUDES, setting the cache variable VAR accordingly.
1901ac_fn_c_check_header_compile ()
1902{
1903  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval \${$3+:} false; then :
1907  $as_echo_n "(cached) " >&6
1908else
1909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911$4
1912#include <$2>
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915  eval "$3=yes"
1916else
1917  eval "$3=no"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_header_compile
1927
1928# ac_fn_c_check_func LINENO FUNC VAR
1929# ----------------------------------
1930# Tests whether FUNC exists, setting the cache variable VAR accordingly
1931ac_fn_c_check_func ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
1936if eval \${$3+:} false; then :
1937  $as_echo_n "(cached) " >&6
1938else
1939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h.  */
1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1943#define $2 innocuous_$2
1944
1945/* System header to define __stub macros and hopefully few prototypes,
1946    which can conflict with char $2 (); below.
1947    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948    <limits.h> exists even on freestanding compilers.  */
1949
1950#ifdef __STDC__
1951# include <limits.h>
1952#else
1953# include <assert.h>
1954#endif
1955
1956#undef $2
1957
1958/* Override any GCC internal prototype to avoid an error.
1959   Use char because int might match the return type of a GCC
1960   builtin and then its argument prototype would still apply.  */
1961#ifdef __cplusplus
1962extern "C"
1963#endif
1964char $2 ();
1965/* The GNU C library defines this for functions which it implements
1966    to always fail with ENOSYS.  Some functions are actually named
1967    something starting with __ and the normal name is an alias.  */
1968#if defined __stub_$2 || defined __stub___$2
1969choke me
1970#endif
1971
1972int
1973main ()
1974{
1975return $2 ();
1976  ;
1977  return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_link "$LINENO"; then :
1981  eval "$3=yes"
1982else
1983  eval "$3=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext \
1986    conftest$ac_exeext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993} # ac_fn_c_check_func
1994
1995# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996# -------------------------------------------
1997# Tests whether TYPE exists after having included INCLUDES, setting cache
1998# variable VAR accordingly.
1999ac_fn_c_check_type ()
2000{
2001  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if eval \${$3+:} false; then :
2005  $as_echo_n "(cached) " >&6
2006else
2007  eval "$3=no"
2008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h.  */
2010$4
2011int
2012main ()
2013{
2014if (sizeof ($2))
2015	 return 0;
2016  ;
2017  return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024int
2025main ()
2026{
2027if (sizeof (($2)))
2028	    return 0;
2029  ;
2030  return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"; then :
2034
2035else
2036  eval "$3=yes"
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042eval ac_res=\$$3
2043	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047} # ac_fn_c_check_type
2048
2049# ac_fn_c_find_uintX_t LINENO BITS VAR
2050# ------------------------------------
2051# Finds an unsigned integer type with width BITS, setting cache variable VAR
2052# accordingly.
2053ac_fn_c_find_uintX_t ()
2054{
2055  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2057$as_echo_n "checking for uint$2_t... " >&6; }
2058if eval \${$3+:} false; then :
2059  $as_echo_n "(cached) " >&6
2060else
2061  eval "$3=no"
2062     # Order is important - never check a type that is potentially smaller
2063     # than half of the expected target width.
2064     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2065	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h.  */
2068$ac_includes_default
2069int
2070main ()
2071{
2072static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2073test_array [0] = 0;
2074return test_array [0];
2075
2076  ;
2077  return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081  case $ac_type in #(
2082  uint$2_t) :
2083    eval "$3=yes" ;; #(
2084  *) :
2085    eval "$3=\$ac_type" ;;
2086esac
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089       if eval test \"x\$"$3"\" = x"no"; then :
2090
2091else
2092  break
2093fi
2094     done
2095fi
2096eval ac_res=\$$3
2097	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098$as_echo "$ac_res" >&6; }
2099  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100
2101} # ac_fn_c_find_uintX_t
2102
2103# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2104# --------------------------------------------
2105# Tries to find the compile-time value of EXPR in a program that includes
2106# INCLUDES, setting VAR accordingly. Returns whether the value could be
2107# computed
2108ac_fn_c_compute_int ()
2109{
2110  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111  if test "$cross_compiling" = yes; then
2112    # Depending upon the size, compute the lo and hi bounds.
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h.  */
2115$4
2116int
2117main ()
2118{
2119static int test_array [1 - 2 * !(($2) >= 0)];
2120test_array [0] = 0;
2121return test_array [0];
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128  ac_lo=0 ac_mid=0
2129  while :; do
2130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h.  */
2132$4
2133int
2134main ()
2135{
2136static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2137test_array [0] = 0;
2138return test_array [0];
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  ac_hi=$ac_mid; break
2146else
2147  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2148			if test $ac_lo -le $ac_mid; then
2149			  ac_lo= ac_hi=
2150			  break
2151			fi
2152			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155  done
2156else
2157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h.  */
2159$4
2160int
2161main ()
2162{
2163static int test_array [1 - 2 * !(($2) < 0)];
2164test_array [0] = 0;
2165return test_array [0];
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171if ac_fn_c_try_compile "$LINENO"; then :
2172  ac_hi=-1 ac_mid=-1
2173  while :; do
2174    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h.  */
2176$4
2177int
2178main ()
2179{
2180static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2181test_array [0] = 0;
2182return test_array [0];
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188if ac_fn_c_try_compile "$LINENO"; then :
2189  ac_lo=$ac_mid; break
2190else
2191  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2192			if test $ac_mid -le $ac_hi; then
2193			  ac_lo= ac_hi=
2194			  break
2195			fi
2196			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199  done
2200else
2201  ac_lo= ac_hi=
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206# Binary search between lo and hi bounds.
2207while test "x$ac_lo" != "x$ac_hi"; do
2208  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210/* end confdefs.h.  */
2211$4
2212int
2213main ()
2214{
2215static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2216test_array [0] = 0;
2217return test_array [0];
2218
2219  ;
2220  return 0;
2221}
2222_ACEOF
2223if ac_fn_c_try_compile "$LINENO"; then :
2224  ac_hi=$ac_mid
2225else
2226  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229done
2230case $ac_lo in #((
2231?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2232'') ac_retval=1 ;;
2233esac
2234  else
2235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$4
2238static long int longval () { return $2; }
2239static unsigned long int ulongval () { return $2; }
2240#include <stdio.h>
2241#include <stdlib.h>
2242int
2243main ()
2244{
2245
2246  FILE *f = fopen ("conftest.val", "w");
2247  if (! f)
2248    return 1;
2249  if (($2) < 0)
2250    {
2251      long int i = longval ();
2252      if (i != ($2))
2253	return 1;
2254      fprintf (f, "%ld", i);
2255    }
2256  else
2257    {
2258      unsigned long int i = ulongval ();
2259      if (i != ($2))
2260	return 1;
2261      fprintf (f, "%lu", i);
2262    }
2263  /* Do not output a trailing newline, as this causes \r\n confusion
2264     on some platforms.  */
2265  return ferror (f) || fclose (f) != 0;
2266
2267  ;
2268  return 0;
2269}
2270_ACEOF
2271if ac_fn_c_try_run "$LINENO"; then :
2272  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2273else
2274  ac_retval=1
2275fi
2276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2277  conftest.$ac_objext conftest.beam conftest.$ac_ext
2278rm -f conftest.val
2279
2280  fi
2281  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282  as_fn_set_status $ac_retval
2283
2284} # ac_fn_c_compute_int
2285cat >auto/config.log <<_ACEOF
2286This file contains any messages produced by compilers while
2287running configure, to aid debugging if configure makes a mistake.
2288
2289It was created by $as_me, which was
2290generated by GNU Autoconf 2.69.  Invocation command line was
2291
2292  $ $0 $@
2293
2294_ACEOF
2295exec 5>>auto/config.log
2296{
2297cat <<_ASUNAME
2298## --------- ##
2299## Platform. ##
2300## --------- ##
2301
2302hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2303uname -m = `(uname -m) 2>/dev/null || echo unknown`
2304uname -r = `(uname -r) 2>/dev/null || echo unknown`
2305uname -s = `(uname -s) 2>/dev/null || echo unknown`
2306uname -v = `(uname -v) 2>/dev/null || echo unknown`
2307
2308/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2309/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2310
2311/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2312/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2313/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2314/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2315/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2316/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2317/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2318
2319_ASUNAME
2320
2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324  IFS=$as_save_IFS
2325  test -z "$as_dir" && as_dir=.
2326    $as_echo "PATH: $as_dir"
2327  done
2328IFS=$as_save_IFS
2329
2330} >&5
2331
2332cat >&5 <<_ACEOF
2333
2334
2335## ----------- ##
2336## Core tests. ##
2337## ----------- ##
2338
2339_ACEOF
2340
2341
2342# Keep a trace of the command line.
2343# Strip out --no-create and --no-recursion so they do not pile up.
2344# Strip out --silent because we don't want to record it for future runs.
2345# Also quote any args containing shell meta-characters.
2346# Make two passes to allow for proper duplicate-argument suppression.
2347ac_configure_args=
2348ac_configure_args0=
2349ac_configure_args1=
2350ac_must_keep_next=false
2351for ac_pass in 1 2
2352do
2353  for ac_arg
2354  do
2355    case $ac_arg in
2356    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2357    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2358    | -silent | --silent | --silen | --sile | --sil)
2359      continue ;;
2360    *\'*)
2361      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2362    esac
2363    case $ac_pass in
2364    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2365    2)
2366      as_fn_append ac_configure_args1 " '$ac_arg'"
2367      if test $ac_must_keep_next = true; then
2368	ac_must_keep_next=false # Got value, back to normal.
2369      else
2370	case $ac_arg in
2371	  *=* | --config-cache | -C | -disable-* | --disable-* \
2372	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2373	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2374	  | -with-* | --with-* | -without-* | --without-* | --x)
2375	    case "$ac_configure_args0 " in
2376	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2377	    esac
2378	    ;;
2379	  -* ) ac_must_keep_next=true ;;
2380	esac
2381      fi
2382      as_fn_append ac_configure_args " '$ac_arg'"
2383      ;;
2384    esac
2385  done
2386done
2387{ ac_configure_args0=; unset ac_configure_args0;}
2388{ ac_configure_args1=; unset ac_configure_args1;}
2389
2390# When interrupted or exit'd, cleanup temporary files, and complete
2391# config.log.  We remove comments because anyway the quotes in there
2392# would cause problems or look ugly.
2393# WARNING: Use '\'' to represent an apostrophe within the trap.
2394# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2395trap 'exit_status=$?
2396  # Save into config.log some information that might help in debugging.
2397  {
2398    echo
2399
2400    $as_echo "## ---------------- ##
2401## Cache variables. ##
2402## ---------------- ##"
2403    echo
2404    # The following way of writing the cache mishandles newlines in values,
2405(
2406  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2407    eval ac_val=\$$ac_var
2408    case $ac_val in #(
2409    *${as_nl}*)
2410      case $ac_var in #(
2411      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2412$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2413      esac
2414      case $ac_var in #(
2415      _ | IFS | as_nl) ;; #(
2416      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2417      *) { eval $ac_var=; unset $ac_var;} ;;
2418      esac ;;
2419    esac
2420  done
2421  (set) 2>&1 |
2422    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2423    *${as_nl}ac_space=\ *)
2424      sed -n \
2425	"s/'\''/'\''\\\\'\'''\''/g;
2426	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2427      ;; #(
2428    *)
2429      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2430      ;;
2431    esac |
2432    sort
2433)
2434    echo
2435
2436    $as_echo "## ----------------- ##
2437## Output variables. ##
2438## ----------------- ##"
2439    echo
2440    for ac_var in $ac_subst_vars
2441    do
2442      eval ac_val=\$$ac_var
2443      case $ac_val in
2444      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2445      esac
2446      $as_echo "$ac_var='\''$ac_val'\''"
2447    done | sort
2448    echo
2449
2450    if test -n "$ac_subst_files"; then
2451      $as_echo "## ------------------- ##
2452## File substitutions. ##
2453## ------------------- ##"
2454      echo
2455      for ac_var in $ac_subst_files
2456      do
2457	eval ac_val=\$$ac_var
2458	case $ac_val in
2459	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460	esac
2461	$as_echo "$ac_var='\''$ac_val'\''"
2462      done | sort
2463      echo
2464    fi
2465
2466    if test -s confdefs.h; then
2467      $as_echo "## ----------- ##
2468## confdefs.h. ##
2469## ----------- ##"
2470      echo
2471      cat confdefs.h
2472      echo
2473    fi
2474    test "$ac_signal" != 0 &&
2475      $as_echo "$as_me: caught signal $ac_signal"
2476    $as_echo "$as_me: exit $exit_status"
2477  } >&5
2478  rm -f core *.core core.conftest.* &&
2479    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2480    exit $exit_status
2481' 0
2482for ac_signal in 1 2 13 15; do
2483  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2484done
2485ac_signal=0
2486
2487# confdefs.h avoids OS command line length limits that DEFS can exceed.
2488rm -f -r conftest* confdefs.h
2489
2490$as_echo "/* confdefs.h */" > confdefs.h
2491
2492# Predefined preprocessor variables.
2493
2494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_NAME "$PACKAGE_NAME"
2496_ACEOF
2497
2498cat >>confdefs.h <<_ACEOF
2499#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2500_ACEOF
2501
2502cat >>confdefs.h <<_ACEOF
2503#define PACKAGE_VERSION "$PACKAGE_VERSION"
2504_ACEOF
2505
2506cat >>confdefs.h <<_ACEOF
2507#define PACKAGE_STRING "$PACKAGE_STRING"
2508_ACEOF
2509
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2512_ACEOF
2513
2514cat >>confdefs.h <<_ACEOF
2515#define PACKAGE_URL "$PACKAGE_URL"
2516_ACEOF
2517
2518
2519# Let the site file select an alternate cache file if it wants to.
2520# Prefer an explicitly selected file to automatically selected ones.
2521ac_site_file1=NONE
2522ac_site_file2=NONE
2523if test -n "$CONFIG_SITE"; then
2524  # We do not want a PATH search for config.site.
2525  case $CONFIG_SITE in #((
2526    -*)  ac_site_file1=./$CONFIG_SITE;;
2527    */*) ac_site_file1=$CONFIG_SITE;;
2528    *)   ac_site_file1=./$CONFIG_SITE;;
2529  esac
2530elif test "x$prefix" != xNONE; then
2531  ac_site_file1=$prefix/share/config.site
2532  ac_site_file2=$prefix/etc/config.site
2533else
2534  ac_site_file1=$ac_default_prefix/share/config.site
2535  ac_site_file2=$ac_default_prefix/etc/config.site
2536fi
2537for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2538do
2539  test "x$ac_site_file" = xNONE && continue
2540  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2541    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2542$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2543    sed 's/^/| /' "$ac_site_file" >&5
2544    . "$ac_site_file" \
2545      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547as_fn_error $? "failed to load site script $ac_site_file
2548See \`config.log' for more details" "$LINENO" 5; }
2549  fi
2550done
2551
2552if test -r "$cache_file"; then
2553  # Some versions of bash will fail to source /dev/null (special files
2554  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2555  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2556    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2557$as_echo "$as_me: loading cache $cache_file" >&6;}
2558    case $cache_file in
2559      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2560      *)                      . "./$cache_file";;
2561    esac
2562  fi
2563else
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2565$as_echo "$as_me: creating cache $cache_file" >&6;}
2566  >$cache_file
2567fi
2568
2569# Check that the precious variables saved in the cache have kept the same
2570# value.
2571ac_cache_corrupted=false
2572for ac_var in $ac_precious_vars; do
2573  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2574  eval ac_new_set=\$ac_env_${ac_var}_set
2575  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2576  eval ac_new_val=\$ac_env_${ac_var}_value
2577  case $ac_old_set,$ac_new_set in
2578    set,)
2579      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2580$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2581      ac_cache_corrupted=: ;;
2582    ,set)
2583      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2584$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2585      ac_cache_corrupted=: ;;
2586    ,);;
2587    *)
2588      if test "x$ac_old_val" != "x$ac_new_val"; then
2589	# differences in whitespace do not lead to failure.
2590	ac_old_val_w=`echo x $ac_old_val`
2591	ac_new_val_w=`echo x $ac_new_val`
2592	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2593	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2594$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2595	  ac_cache_corrupted=:
2596	else
2597	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2598$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2599	  eval $ac_var=\$ac_old_val
2600	fi
2601	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2602$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2603	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2604$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2605      fi;;
2606  esac
2607  # Pass precious variables to config.status.
2608  if test "$ac_new_set" = set; then
2609    case $ac_new_val in
2610    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2611    *) ac_arg=$ac_var=$ac_new_val ;;
2612    esac
2613    case " $ac_configure_args " in
2614      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2615      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2616    esac
2617  fi
2618done
2619if $ac_cache_corrupted; then
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2623$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2624  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2625fi
2626## -------------------- ##
2627## Main body of script. ##
2628## -------------------- ##
2629
2630ac_ext=c
2631ac_cpp='$CPP $CPPFLAGS'
2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635
2636
2637ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2638
2639
2640$as_echo "#define UNIX 1" >>confdefs.h
2641
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2644set x ${MAKE-make}
2645ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  cat >conftest.make <<\_ACEOF
2650SHELL = /bin/sh
2651all:
2652	@echo '@@@%%%=$(MAKE)=@@@%%%'
2653_ACEOF
2654# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2655case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656  *@@@%%%=?*=@@@%%%*)
2657    eval ac_cv_prog_make_${ac_make}_set=yes;;
2658  *)
2659    eval ac_cv_prog_make_${ac_make}_set=no;;
2660esac
2661rm -f conftest.make
2662fi
2663if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665$as_echo "yes" >&6; }
2666  SET_MAKE=
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670  SET_MAKE="MAKE=${MAKE-make}"
2671fi
2672
2673
2674ac_ext=c
2675ac_cpp='$CPP $CPPFLAGS'
2676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679if test -n "$ac_tool_prefix"; then
2680  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2681set dummy ${ac_tool_prefix}gcc; ac_word=$2
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
2684if ${ac_cv_prog_CC+:} false; then :
2685  $as_echo_n "(cached) " >&6
2686else
2687  if test -n "$CC"; then
2688  ac_cv_prog_CC="$CC" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693  IFS=$as_save_IFS
2694  test -z "$as_dir" && as_dir=.
2695    for ac_exec_ext in '' $ac_executable_extensions; do
2696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699    break 2
2700  fi
2701done
2702  done
2703IFS=$as_save_IFS
2704
2705fi
2706fi
2707CC=$ac_cv_prog_CC
2708if test -n "$CC"; then
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710$as_echo "$CC" >&6; }
2711else
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713$as_echo "no" >&6; }
2714fi
2715
2716
2717fi
2718if test -z "$ac_cv_prog_CC"; then
2719  ac_ct_CC=$CC
2720  # Extract the first word of "gcc", so it can be a program name with args.
2721set dummy gcc; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
2724if ${ac_cv_prog_ac_ct_CC+:} false; then :
2725  $as_echo_n "(cached) " >&6
2726else
2727  if test -n "$ac_ct_CC"; then
2728  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733  IFS=$as_save_IFS
2734  test -z "$as_dir" && as_dir=.
2735    for ac_exec_ext in '' $ac_executable_extensions; do
2736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737    ac_cv_prog_ac_ct_CC="gcc"
2738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739    break 2
2740  fi
2741done
2742  done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748if test -n "$ac_ct_CC"; then
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750$as_echo "$ac_ct_CC" >&6; }
2751else
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
2754fi
2755
2756  if test "x$ac_ct_CC" = x; then
2757    CC=""
2758  else
2759    case $cross_compiling:$ac_tool_warned in
2760yes:)
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763ac_tool_warned=yes ;;
2764esac
2765    CC=$ac_ct_CC
2766  fi
2767else
2768  CC="$ac_cv_prog_CC"
2769fi
2770
2771if test -z "$CC"; then
2772          if test -n "$ac_tool_prefix"; then
2773    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774set dummy ${ac_tool_prefix}cc; ac_word=$2
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if ${ac_cv_prog_CC+:} false; then :
2778  $as_echo_n "(cached) " >&6
2779else
2780  if test -n "$CC"; then
2781  ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786  IFS=$as_save_IFS
2787  test -z "$as_dir" && as_dir=.
2788    for ac_exec_ext in '' $ac_executable_extensions; do
2789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790    ac_cv_prog_CC="${ac_tool_prefix}cc"
2791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792    break 2
2793  fi
2794done
2795  done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803$as_echo "$CC" >&6; }
2804else
2805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810  fi
2811fi
2812if test -z "$CC"; then
2813  # Extract the first word of "cc", so it can be a program name with args.
2814set dummy cc; ac_word=$2
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816$as_echo_n "checking for $ac_word... " >&6; }
2817if ${ac_cv_prog_CC+:} false; then :
2818  $as_echo_n "(cached) " >&6
2819else
2820  if test -n "$CC"; then
2821  ac_cv_prog_CC="$CC" # Let the user override the test.
2822else
2823  ac_prog_rejected=no
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827  IFS=$as_save_IFS
2828  test -z "$as_dir" && as_dir=.
2829    for ac_exec_ext in '' $ac_executable_extensions; do
2830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832       ac_prog_rejected=yes
2833       continue
2834     fi
2835    ac_cv_prog_CC="cc"
2836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840  done
2841IFS=$as_save_IFS
2842
2843if test $ac_prog_rejected = yes; then
2844  # We found a bogon in the path, so make sure we never use it.
2845  set dummy $ac_cv_prog_CC
2846  shift
2847  if test $# != 0; then
2848    # We chose a different compiler from the bogus one.
2849    # However, it has the same basename, so the bogon will be chosen
2850    # first if we set CC to just the basename; use the full file name.
2851    shift
2852    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2853  fi
2854fi
2855fi
2856fi
2857CC=$ac_cv_prog_CC
2858if test -n "$CC"; then
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860$as_echo "$CC" >&6; }
2861else
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866
2867fi
2868if test -z "$CC"; then
2869  if test -n "$ac_tool_prefix"; then
2870  for ac_prog in cl.exe
2871  do
2872    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2873set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if ${ac_cv_prog_CC+:} false; then :
2877  $as_echo_n "(cached) " >&6
2878else
2879  if test -n "$CC"; then
2880  ac_cv_prog_CC="$CC" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887    for ac_exec_ext in '' $ac_executable_extensions; do
2888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891    break 2
2892  fi
2893done
2894  done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899CC=$ac_cv_prog_CC
2900if test -n "$CC"; then
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902$as_echo "$CC" >&6; }
2903else
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908
2909    test -n "$CC" && break
2910  done
2911fi
2912if test -z "$CC"; then
2913  ac_ct_CC=$CC
2914  for ac_prog in cl.exe
2915do
2916  # Extract the first word of "$ac_prog", so it can be a program name with args.
2917set dummy $ac_prog; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
2920if ${ac_cv_prog_ac_ct_CC+:} false; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  if test -n "$ac_ct_CC"; then
2924  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929  IFS=$as_save_IFS
2930  test -z "$as_dir" && as_dir=.
2931    for ac_exec_ext in '' $ac_executable_extensions; do
2932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933    ac_cv_prog_ac_ct_CC="$ac_prog"
2934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935    break 2
2936  fi
2937done
2938  done
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944if test -n "$ac_ct_CC"; then
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2946$as_echo "$ac_ct_CC" >&6; }
2947else
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950fi
2951
2952
2953  test -n "$ac_ct_CC" && break
2954done
2955
2956  if test "x$ac_ct_CC" = x; then
2957    CC=""
2958  else
2959    case $cross_compiling:$ac_tool_warned in
2960yes:)
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963ac_tool_warned=yes ;;
2964esac
2965    CC=$ac_ct_CC
2966  fi
2967fi
2968
2969fi
2970
2971
2972test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974as_fn_error $? "no acceptable C compiler found in \$PATH
2975See \`config.log' for more details" "$LINENO" 5; }
2976
2977# Provide some information about the compiler.
2978$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2979set X $ac_compile
2980ac_compiler=$2
2981for ac_option in --version -v -V -qversion; do
2982  { { ac_try="$ac_compiler $ac_option >&5"
2983case "(($ac_try" in
2984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985  *) ac_try_echo=$ac_try;;
2986esac
2987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988$as_echo "$ac_try_echo"; } >&5
2989  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2990  ac_status=$?
2991  if test -s conftest.err; then
2992    sed '10a\
2993... rest of stderr output deleted ...
2994         10q' conftest.err >conftest.er1
2995    cat conftest.er1 >&5
2996  fi
2997  rm -f conftest.er1 conftest.err
2998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999  test $ac_status = 0; }
3000done
3001
3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003/* end confdefs.h.  */
3004
3005int
3006main ()
3007{
3008
3009  ;
3010  return 0;
3011}
3012_ACEOF
3013ac_clean_files_save=$ac_clean_files
3014ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3015# Try to create an executable without -o first, disregard a.out.
3016# It will help us diagnose broken compilers, and finding out an intuition
3017# of exeext.
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3019$as_echo_n "checking whether the C compiler works... " >&6; }
3020ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3021
3022# The possible output files:
3023ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3024
3025ac_rmfiles=
3026for ac_file in $ac_files
3027do
3028  case $ac_file in
3029    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3030    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3031  esac
3032done
3033rm -f $ac_rmfiles
3034
3035if { { ac_try="$ac_link_default"
3036case "(($ac_try" in
3037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038  *) ac_try_echo=$ac_try;;
3039esac
3040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041$as_echo "$ac_try_echo"; } >&5
3042  (eval "$ac_link_default") 2>&5
3043  ac_status=$?
3044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045  test $ac_status = 0; }; then :
3046  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3047# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3048# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3049# so that the user can short-circuit this test for compilers unknown to
3050# Autoconf.
3051for ac_file in $ac_files ''
3052do
3053  test -f "$ac_file" || continue
3054  case $ac_file in
3055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3056	;;
3057    [ab].out )
3058	# We found the default executable, but exeext='' is most
3059	# certainly right.
3060	break;;
3061    *.* )
3062	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3063	then :; else
3064	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065	fi
3066	# We set ac_cv_exeext here because the later test for it is not
3067	# safe: cross compilers may not add the suffix if given an `-o'
3068	# argument, so we may need to know it at that point already.
3069	# Even if this section looks crufty: it has the advantage of
3070	# actually working.
3071	break;;
3072    * )
3073	break;;
3074  esac
3075done
3076test "$ac_cv_exeext" = no && ac_cv_exeext=
3077
3078else
3079  ac_file=''
3080fi
3081if test -z "$ac_file"; then :
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083$as_echo "no" >&6; }
3084$as_echo "$as_me: failed program was:" >&5
3085sed 's/^/| /' conftest.$ac_ext >&5
3086
3087{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089as_fn_error 77 "C compiler cannot create executables
3090See \`config.log' for more details" "$LINENO" 5; }
3091else
3092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093$as_echo "yes" >&6; }
3094fi
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3096$as_echo_n "checking for C compiler default output file name... " >&6; }
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3098$as_echo "$ac_file" >&6; }
3099ac_exeext=$ac_cv_exeext
3100
3101rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3102ac_clean_files=$ac_clean_files_save
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3104$as_echo_n "checking for suffix of executables... " >&6; }
3105if { { ac_try="$ac_link"
3106case "(($ac_try" in
3107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108  *) ac_try_echo=$ac_try;;
3109esac
3110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111$as_echo "$ac_try_echo"; } >&5
3112  (eval "$ac_link") 2>&5
3113  ac_status=$?
3114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115  test $ac_status = 0; }; then :
3116  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3117# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3118# work properly (i.e., refer to `conftest.exe'), while it won't with
3119# `rm'.
3120for ac_file in conftest.exe conftest conftest.*; do
3121  test -f "$ac_file" || continue
3122  case $ac_file in
3123    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3124    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125	  break;;
3126    * ) break;;
3127  esac
3128done
3129else
3130  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3133See \`config.log' for more details" "$LINENO" 5; }
3134fi
3135rm -f conftest conftest$ac_cv_exeext
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3137$as_echo "$ac_cv_exeext" >&6; }
3138
3139rm -f conftest.$ac_ext
3140EXEEXT=$ac_cv_exeext
3141ac_exeext=$EXEEXT
3142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h.  */
3144#include <stdio.h>
3145int
3146main ()
3147{
3148FILE *f = fopen ("conftest.out", "w");
3149 return ferror (f) || fclose (f) != 0;
3150
3151  ;
3152  return 0;
3153}
3154_ACEOF
3155ac_clean_files="$ac_clean_files conftest.out"
3156# Check that the compiler produces executables we can run.  If not, either
3157# the compiler is broken, or we cross compile.
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3159$as_echo_n "checking whether we are cross compiling... " >&6; }
3160if test "$cross_compiling" != yes; then
3161  { { ac_try="$ac_link"
3162case "(($ac_try" in
3163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164  *) ac_try_echo=$ac_try;;
3165esac
3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167$as_echo "$ac_try_echo"; } >&5
3168  (eval "$ac_link") 2>&5
3169  ac_status=$?
3170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171  test $ac_status = 0; }
3172  if { ac_try='./conftest$ac_cv_exeext'
3173  { { case "(($ac_try" in
3174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175  *) ac_try_echo=$ac_try;;
3176esac
3177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178$as_echo "$ac_try_echo"; } >&5
3179  (eval "$ac_try") 2>&5
3180  ac_status=$?
3181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182  test $ac_status = 0; }; }; then
3183    cross_compiling=no
3184  else
3185    if test "$cross_compiling" = maybe; then
3186	cross_compiling=yes
3187    else
3188	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190as_fn_error $? "cannot run C compiled programs.
3191If you meant to cross compile, use \`--host'.
3192See \`config.log' for more details" "$LINENO" 5; }
3193    fi
3194  fi
3195fi
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3197$as_echo "$cross_compiling" >&6; }
3198
3199rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3200ac_clean_files=$ac_clean_files_save
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3202$as_echo_n "checking for suffix of object files... " >&6; }
3203if ${ac_cv_objext+:} false; then :
3204  $as_echo_n "(cached) " >&6
3205else
3206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217rm -f conftest.o conftest.obj
3218if { { ac_try="$ac_compile"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_compile") 2>&5
3226  ac_status=$?
3227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228  test $ac_status = 0; }; then :
3229  for ac_file in conftest.o conftest.obj conftest.*; do
3230  test -f "$ac_file" || continue;
3231  case $ac_file in
3232    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3233    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234       break;;
3235  esac
3236done
3237else
3238  $as_echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error $? "cannot compute suffix of object files: cannot compile
3244See \`config.log' for more details" "$LINENO" 5; }
3245fi
3246rm -f conftest.$ac_cv_objext conftest.$ac_ext
3247fi
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3249$as_echo "$ac_cv_objext" >&6; }
3250OBJEXT=$ac_cv_objext
3251ac_objext=$OBJEXT
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3253$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3254if ${ac_cv_c_compiler_gnu+:} false; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h.  */
3259
3260int
3261main ()
3262{
3263#ifndef __GNUC__
3264       choke me
3265#endif
3266
3267  ;
3268  return 0;
3269}
3270_ACEOF
3271if ac_fn_c_try_compile "$LINENO"; then :
3272  ac_compiler_gnu=yes
3273else
3274  ac_compiler_gnu=no
3275fi
3276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277ac_cv_c_compiler_gnu=$ac_compiler_gnu
3278
3279fi
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3281$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3282if test $ac_compiler_gnu = yes; then
3283  GCC=yes
3284else
3285  GCC=
3286fi
3287ac_test_CFLAGS=${CFLAGS+set}
3288ac_save_CFLAGS=$CFLAGS
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3290$as_echo_n "checking whether $CC accepts -g... " >&6; }
3291if ${ac_cv_prog_cc_g+:} false; then :
3292  $as_echo_n "(cached) " >&6
3293else
3294  ac_save_c_werror_flag=$ac_c_werror_flag
3295   ac_c_werror_flag=yes
3296   ac_cv_prog_cc_g=no
3297   CFLAGS="-g"
3298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299/* end confdefs.h.  */
3300
3301int
3302main ()
3303{
3304
3305  ;
3306  return 0;
3307}
3308_ACEOF
3309if ac_fn_c_try_compile "$LINENO"; then :
3310  ac_cv_prog_cc_g=yes
3311else
3312  CFLAGS=""
3313      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h.  */
3315
3316int
3317main ()
3318{
3319
3320  ;
3321  return 0;
3322}
3323_ACEOF
3324if ac_fn_c_try_compile "$LINENO"; then :
3325
3326else
3327  ac_c_werror_flag=$ac_save_c_werror_flag
3328	 CFLAGS="-g"
3329	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330/* end confdefs.h.  */
3331
3332int
3333main ()
3334{
3335
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340if ac_fn_c_try_compile "$LINENO"; then :
3341  ac_cv_prog_cc_g=yes
3342fi
3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344fi
3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346fi
3347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348   ac_c_werror_flag=$ac_save_c_werror_flag
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3351$as_echo "$ac_cv_prog_cc_g" >&6; }
3352if test "$ac_test_CFLAGS" = set; then
3353  CFLAGS=$ac_save_CFLAGS
3354elif test $ac_cv_prog_cc_g = yes; then
3355  if test "$GCC" = yes; then
3356    CFLAGS="-g -O2"
3357  else
3358    CFLAGS="-g"
3359  fi
3360else
3361  if test "$GCC" = yes; then
3362    CFLAGS="-O2"
3363  else
3364    CFLAGS=
3365  fi
3366fi
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3368$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3369if ${ac_cv_prog_cc_c89+:} false; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  ac_cv_prog_cc_c89=no
3373ac_save_CC=$CC
3374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h.  */
3376#include <stdarg.h>
3377#include <stdio.h>
3378struct stat;
3379/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3380struct buf { int x; };
3381FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382static char *e (p, i)
3383     char **p;
3384     int i;
3385{
3386  return p[i];
3387}
3388static char *f (char * (*g) (char **, int), char **p, ...)
3389{
3390  char *s;
3391  va_list v;
3392  va_start (v,p);
3393  s = g (p, va_arg (v,int));
3394  va_end (v);
3395  return s;
3396}
3397
3398/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3399   function prototypes and stuff, but not '\xHH' hex character constants.
3400   These don't provoke an error unfortunately, instead are silently treated
3401   as 'x'.  The following induces an error, until -std is added to get
3402   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3403   array size at least.  It's necessary to write '\x00'==0 to get something
3404   that's true only with -std.  */
3405int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3406
3407/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408   inside strings and character constants.  */
3409#define FOO(x) 'x'
3410int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3411
3412int test (int i, double x);
3413struct s1 {int (*f) (int a);};
3414struct s2 {int (*f) (double a);};
3415int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416int argc;
3417char **argv;
3418int
3419main ()
3420{
3421return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428do
3429  CC="$ac_save_CC $ac_arg"
3430  if ac_fn_c_try_compile "$LINENO"; then :
3431  ac_cv_prog_cc_c89=$ac_arg
3432fi
3433rm -f core conftest.err conftest.$ac_objext
3434  test "x$ac_cv_prog_cc_c89" != "xno" && break
3435done
3436rm -f conftest.$ac_ext
3437CC=$ac_save_CC
3438
3439fi
3440# AC_CACHE_VAL
3441case "x$ac_cv_prog_cc_c89" in
3442  x)
3443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3444$as_echo "none needed" >&6; } ;;
3445  xno)
3446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3447$as_echo "unsupported" >&6; } ;;
3448  *)
3449    CC="$CC $ac_cv_prog_cc_c89"
3450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3451$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3452esac
3453if test "x$ac_cv_prog_cc_c89" != xno; then :
3454
3455fi
3456
3457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3464$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3465if ${ac_cv_prog_cc_c99+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  ac_cv_prog_cc_c99=no
3469ac_save_CC=$CC
3470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471/* end confdefs.h.  */
3472#include <stdarg.h>
3473#include <stdbool.h>
3474#include <stdlib.h>
3475#include <wchar.h>
3476#include <stdio.h>
3477
3478// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3479#define debug(...) fprintf (stderr, __VA_ARGS__)
3480#define showlist(...) puts (#__VA_ARGS__)
3481#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3482static void
3483test_varargs_macros (void)
3484{
3485  int x = 1234;
3486  int y = 5678;
3487  debug ("Flag");
3488  debug ("X = %d\n", x);
3489  showlist (The first, second, and third items.);
3490  report (x>y, "x is %d but y is %d", x, y);
3491}
3492
3493// Check long long types.
3494#define BIG64 18446744073709551615ull
3495#define BIG32 4294967295ul
3496#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3497#if !BIG_OK
3498  your preprocessor is broken;
3499#endif
3500#if BIG_OK
3501#else
3502  your preprocessor is broken;
3503#endif
3504static long long int bignum = -9223372036854775807LL;
3505static unsigned long long int ubignum = BIG64;
3506
3507struct incomplete_array
3508{
3509  int datasize;
3510  double data[];
3511};
3512
3513struct named_init {
3514  int number;
3515  const wchar_t *name;
3516  double average;
3517};
3518
3519typedef const char *ccp;
3520
3521static inline int
3522test_restrict (ccp restrict text)
3523{
3524  // See if C++-style comments work.
3525  // Iterate through items via the restricted pointer.
3526  // Also check for declarations in for loops.
3527  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3528    continue;
3529  return 0;
3530}
3531
3532// Check varargs and va_copy.
3533static void
3534test_varargs (const char *format, ...)
3535{
3536  va_list args;
3537  va_start (args, format);
3538  va_list args_copy;
3539  va_copy (args_copy, args);
3540
3541  const char *str;
3542  int number;
3543  float fnumber;
3544
3545  while (*format)
3546    {
3547      switch (*format++)
3548	{
3549	case 's': // string
3550	  str = va_arg (args_copy, const char *);
3551	  break;
3552	case 'd': // int
3553	  number = va_arg (args_copy, int);
3554	  break;
3555	case 'f': // float
3556	  fnumber = va_arg (args_copy, double);
3557	  break;
3558	default:
3559	  break;
3560	}
3561    }
3562  va_end (args_copy);
3563  va_end (args);
3564}
3565
3566int
3567main ()
3568{
3569
3570  // Check bool.
3571  _Bool success = false;
3572
3573  // Check restrict.
3574  if (test_restrict ("String literal") == 0)
3575    success = true;
3576  char *restrict newvar = "Another string";
3577
3578  // Check varargs.
3579  test_varargs ("s, d' f .", "string", 65, 34.234);
3580  test_varargs_macros ();
3581
3582  // Check flexible array members.
3583  struct incomplete_array *ia =
3584    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3585  ia->datasize = 10;
3586  for (int i = 0; i < ia->datasize; ++i)
3587    ia->data[i] = i * 1.234;
3588
3589  // Check named initializers.
3590  struct named_init ni = {
3591    .number = 34,
3592    .name = L"Test wide string",
3593    .average = 543.34343,
3594  };
3595
3596  ni.number = 58;
3597
3598  int dynamic_array[ni.number];
3599  dynamic_array[ni.number - 1] = 543;
3600
3601  // work around unused variable warnings
3602  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3603	  || dynamic_array[ni.number - 1] != 543);
3604
3605  ;
3606  return 0;
3607}
3608_ACEOF
3609for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3610do
3611  CC="$ac_save_CC $ac_arg"
3612  if ac_fn_c_try_compile "$LINENO"; then :
3613  ac_cv_prog_cc_c99=$ac_arg
3614fi
3615rm -f core conftest.err conftest.$ac_objext
3616  test "x$ac_cv_prog_cc_c99" != "xno" && break
3617done
3618rm -f conftest.$ac_ext
3619CC=$ac_save_CC
3620
3621fi
3622# AC_CACHE_VAL
3623case "x$ac_cv_prog_cc_c99" in
3624  x)
3625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3626$as_echo "none needed" >&6; } ;;
3627  xno)
3628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3629$as_echo "unsupported" >&6; } ;;
3630  *)
3631    CC="$CC $ac_cv_prog_cc_c99"
3632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3633$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3634esac
3635if test "x$ac_cv_prog_cc_c99" != xno; then :
3636
3637fi
3638
3639		ac_ext=c
3640ac_cpp='$CPP $CPPFLAGS'
3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3645$as_echo_n "checking how to run the C preprocessor... " >&6; }
3646# On Suns, sometimes $CPP names a directory.
3647if test -n "$CPP" && test -d "$CPP"; then
3648  CPP=
3649fi
3650if test -z "$CPP"; then
3651  if ${ac_cv_prog_CPP+:} false; then :
3652  $as_echo_n "(cached) " >&6
3653else
3654      # Double quotes because CPP needs to be expanded
3655    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3656    do
3657      ac_preproc_ok=false
3658for ac_c_preproc_warn_flag in '' yes
3659do
3660  # Use a header file that comes with gcc, so configuring glibc
3661  # with a fresh cross-compiler works.
3662  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3663  # <limits.h> exists even on freestanding compilers.
3664  # On the NeXT, cc -E runs the code through the compiler's parser,
3665  # not just through cpp. "Syntax error" is here to catch this case.
3666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h.  */
3668#ifdef __STDC__
3669# include <limits.h>
3670#else
3671# include <assert.h>
3672#endif
3673		     Syntax error
3674_ACEOF
3675if ac_fn_c_try_cpp "$LINENO"; then :
3676
3677else
3678  # Broken: fails on valid input.
3679continue
3680fi
3681rm -f conftest.err conftest.i conftest.$ac_ext
3682
3683  # OK, works on sane cases.  Now check whether nonexistent headers
3684  # can be detected and how.
3685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687#include <ac_nonexistent.h>
3688_ACEOF
3689if ac_fn_c_try_cpp "$LINENO"; then :
3690  # Broken: success on invalid input.
3691continue
3692else
3693  # Passes both tests.
3694ac_preproc_ok=:
3695break
3696fi
3697rm -f conftest.err conftest.i conftest.$ac_ext
3698
3699done
3700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3701rm -f conftest.i conftest.err conftest.$ac_ext
3702if $ac_preproc_ok; then :
3703  break
3704fi
3705
3706    done
3707    ac_cv_prog_CPP=$CPP
3708
3709fi
3710  CPP=$ac_cv_prog_CPP
3711else
3712  ac_cv_prog_CPP=$CPP
3713fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3715$as_echo "$CPP" >&6; }
3716ac_preproc_ok=false
3717for ac_c_preproc_warn_flag in '' yes
3718do
3719  # Use a header file that comes with gcc, so configuring glibc
3720  # with a fresh cross-compiler works.
3721  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722  # <limits.h> exists even on freestanding compilers.
3723  # On the NeXT, cc -E runs the code through the compiler's parser,
3724  # not just through cpp. "Syntax error" is here to catch this case.
3725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726/* end confdefs.h.  */
3727#ifdef __STDC__
3728# include <limits.h>
3729#else
3730# include <assert.h>
3731#endif
3732		     Syntax error
3733_ACEOF
3734if ac_fn_c_try_cpp "$LINENO"; then :
3735
3736else
3737  # Broken: fails on valid input.
3738continue
3739fi
3740rm -f conftest.err conftest.i conftest.$ac_ext
3741
3742  # OK, works on sane cases.  Now check whether nonexistent headers
3743  # can be detected and how.
3744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h.  */
3746#include <ac_nonexistent.h>
3747_ACEOF
3748if ac_fn_c_try_cpp "$LINENO"; then :
3749  # Broken: success on invalid input.
3750continue
3751else
3752  # Passes both tests.
3753ac_preproc_ok=:
3754break
3755fi
3756rm -f conftest.err conftest.i conftest.$ac_ext
3757
3758done
3759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3760rm -f conftest.i conftest.err conftest.$ac_ext
3761if $ac_preproc_ok; then :
3762
3763else
3764  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3767See \`config.log' for more details" "$LINENO" 5; }
3768fi
3769
3770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3778$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3779if ${ac_cv_path_GREP+:} false; then :
3780  $as_echo_n "(cached) " >&6
3781else
3782  if test -z "$GREP"; then
3783  ac_path_GREP_found=false
3784  # Loop through the user's path and test for each of PROGNAME-LIST
3785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787do
3788  IFS=$as_save_IFS
3789  test -z "$as_dir" && as_dir=.
3790    for ac_prog in grep ggrep; do
3791    for ac_exec_ext in '' $ac_executable_extensions; do
3792      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3793      as_fn_executable_p "$ac_path_GREP" || continue
3794# Check for GNU ac_path_GREP and select it if it is found.
3795  # Check for GNU $ac_path_GREP
3796case `"$ac_path_GREP" --version 2>&1` in
3797*GNU*)
3798  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3799*)
3800  ac_count=0
3801  $as_echo_n 0123456789 >"conftest.in"
3802  while :
3803  do
3804    cat "conftest.in" "conftest.in" >"conftest.tmp"
3805    mv "conftest.tmp" "conftest.in"
3806    cp "conftest.in" "conftest.nl"
3807    $as_echo 'GREP' >> "conftest.nl"
3808    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810    as_fn_arith $ac_count + 1 && ac_count=$as_val
3811    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3812      # Best one so far, save it but keep looking for a better one
3813      ac_cv_path_GREP="$ac_path_GREP"
3814      ac_path_GREP_max=$ac_count
3815    fi
3816    # 10*(2^10) chars as input seems more than enough
3817    test $ac_count -gt 10 && break
3818  done
3819  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820esac
3821
3822      $ac_path_GREP_found && break 3
3823    done
3824  done
3825  done
3826IFS=$as_save_IFS
3827  if test -z "$ac_cv_path_GREP"; then
3828    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3829  fi
3830else
3831  ac_cv_path_GREP=$GREP
3832fi
3833
3834fi
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3836$as_echo "$ac_cv_path_GREP" >&6; }
3837 GREP="$ac_cv_path_GREP"
3838
3839
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3841$as_echo_n "checking for egrep... " >&6; }
3842if ${ac_cv_path_EGREP+:} false; then :
3843  $as_echo_n "(cached) " >&6
3844else
3845  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3846   then ac_cv_path_EGREP="$GREP -E"
3847   else
3848     if test -z "$EGREP"; then
3849  ac_path_EGREP_found=false
3850  # Loop through the user's path and test for each of PROGNAME-LIST
3851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853do
3854  IFS=$as_save_IFS
3855  test -z "$as_dir" && as_dir=.
3856    for ac_prog in egrep; do
3857    for ac_exec_ext in '' $ac_executable_extensions; do
3858      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3859      as_fn_executable_p "$ac_path_EGREP" || continue
3860# Check for GNU ac_path_EGREP and select it if it is found.
3861  # Check for GNU $ac_path_EGREP
3862case `"$ac_path_EGREP" --version 2>&1` in
3863*GNU*)
3864  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3865*)
3866  ac_count=0
3867  $as_echo_n 0123456789 >"conftest.in"
3868  while :
3869  do
3870    cat "conftest.in" "conftest.in" >"conftest.tmp"
3871    mv "conftest.tmp" "conftest.in"
3872    cp "conftest.in" "conftest.nl"
3873    $as_echo 'EGREP' >> "conftest.nl"
3874    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876    as_fn_arith $ac_count + 1 && ac_count=$as_val
3877    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3878      # Best one so far, save it but keep looking for a better one
3879      ac_cv_path_EGREP="$ac_path_EGREP"
3880      ac_path_EGREP_max=$ac_count
3881    fi
3882    # 10*(2^10) chars as input seems more than enough
3883    test $ac_count -gt 10 && break
3884  done
3885  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886esac
3887
3888      $ac_path_EGREP_found && break 3
3889    done
3890  done
3891  done
3892IFS=$as_save_IFS
3893  if test -z "$ac_cv_path_EGREP"; then
3894    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3895  fi
3896else
3897  ac_cv_path_EGREP=$EGREP
3898fi
3899
3900   fi
3901fi
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3903$as_echo "$ac_cv_path_EGREP" >&6; }
3904 EGREP="$ac_cv_path_EGREP"
3905
3906
3907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908/* end confdefs.h.  */
3909
3910_ACEOF
3911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912  $EGREP "" >/dev/null 2>&1; then :
3913
3914fi
3915rm -f conftest*
3916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3917$as_echo_n "checking for fgrep... " >&6; }
3918if ${ac_cv_path_FGREP+:} false; then :
3919  $as_echo_n "(cached) " >&6
3920else
3921  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3922   then ac_cv_path_FGREP="$GREP -F"
3923   else
3924     if test -z "$FGREP"; then
3925  ac_path_FGREP_found=false
3926  # Loop through the user's path and test for each of PROGNAME-LIST
3927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3929do
3930  IFS=$as_save_IFS
3931  test -z "$as_dir" && as_dir=.
3932    for ac_prog in fgrep; do
3933    for ac_exec_ext in '' $ac_executable_extensions; do
3934      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3935      as_fn_executable_p "$ac_path_FGREP" || continue
3936# Check for GNU ac_path_FGREP and select it if it is found.
3937  # Check for GNU $ac_path_FGREP
3938case `"$ac_path_FGREP" --version 2>&1` in
3939*GNU*)
3940  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3941*)
3942  ac_count=0
3943  $as_echo_n 0123456789 >"conftest.in"
3944  while :
3945  do
3946    cat "conftest.in" "conftest.in" >"conftest.tmp"
3947    mv "conftest.tmp" "conftest.in"
3948    cp "conftest.in" "conftest.nl"
3949    $as_echo 'FGREP' >> "conftest.nl"
3950    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952    as_fn_arith $ac_count + 1 && ac_count=$as_val
3953    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3954      # Best one so far, save it but keep looking for a better one
3955      ac_cv_path_FGREP="$ac_path_FGREP"
3956      ac_path_FGREP_max=$ac_count
3957    fi
3958    # 10*(2^10) chars as input seems more than enough
3959    test $ac_count -gt 10 && break
3960  done
3961  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962esac
3963
3964      $ac_path_FGREP_found && break 3
3965    done
3966  done
3967  done
3968IFS=$as_save_IFS
3969  if test -z "$ac_cv_path_FGREP"; then
3970    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3971  fi
3972else
3973  ac_cv_path_FGREP=$FGREP
3974fi
3975
3976   fi
3977fi
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3979$as_echo "$ac_cv_path_FGREP" >&6; }
3980 FGREP="$ac_cv_path_FGREP"
3981
3982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3983$as_echo_n "checking for library containing strerror... " >&6; }
3984if ${ac_cv_search_strerror+:} false; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  ac_func_search_save_LIBS=$LIBS
3988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989/* end confdefs.h.  */
3990
3991/* Override any GCC internal prototype to avoid an error.
3992   Use char because int might match the return type of a GCC
3993   builtin and then its argument prototype would still apply.  */
3994#ifdef __cplusplus
3995extern "C"
3996#endif
3997char strerror ();
3998int
3999main ()
4000{
4001return strerror ();
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006for ac_lib in '' cposix; do
4007  if test -z "$ac_lib"; then
4008    ac_res="none required"
4009  else
4010    ac_res=-l$ac_lib
4011    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4012  fi
4013  if ac_fn_c_try_link "$LINENO"; then :
4014  ac_cv_search_strerror=$ac_res
4015fi
4016rm -f core conftest.err conftest.$ac_objext \
4017    conftest$ac_exeext
4018  if ${ac_cv_search_strerror+:} false; then :
4019  break
4020fi
4021done
4022if ${ac_cv_search_strerror+:} false; then :
4023
4024else
4025  ac_cv_search_strerror=no
4026fi
4027rm conftest.$ac_ext
4028LIBS=$ac_func_search_save_LIBS
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4031$as_echo "$ac_cv_search_strerror" >&6; }
4032ac_res=$ac_cv_search_strerror
4033if test "$ac_res" != no; then :
4034  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4035
4036fi
4037		for ac_prog in gawk mawk nawk awk
4038do
4039  # Extract the first word of "$ac_prog", so it can be a program name with args.
4040set dummy $ac_prog; ac_word=$2
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
4043if ${ac_cv_prog_AWK+:} false; then :
4044  $as_echo_n "(cached) " >&6
4045else
4046  if test -n "$AWK"; then
4047  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  test -z "$as_dir" && as_dir=.
4054    for ac_exec_ext in '' $ac_executable_extensions; do
4055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056    ac_cv_prog_AWK="$ac_prog"
4057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058    break 2
4059  fi
4060done
4061  done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066AWK=$ac_cv_prog_AWK
4067if test -n "$AWK"; then
4068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4069$as_echo "$AWK" >&6; }
4070else
4071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072$as_echo "no" >&6; }
4073fi
4074
4075
4076  test -n "$AWK" && break
4077done
4078
4079# Extract the first word of "strip", so it can be a program name with args.
4080set dummy strip; ac_word=$2
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082$as_echo_n "checking for $ac_word... " >&6; }
4083if ${ac_cv_prog_STRIP+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  if test -n "$STRIP"; then
4087  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094    for ac_exec_ext in '' $ac_executable_extensions; do
4095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096    ac_cv_prog_STRIP="strip"
4097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098    break 2
4099  fi
4100done
4101  done
4102IFS=$as_save_IFS
4103
4104  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4105fi
4106fi
4107STRIP=$ac_cv_prog_STRIP
4108if test -n "$STRIP"; then
4109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4110$as_echo "$STRIP" >&6; }
4111else
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113$as_echo "no" >&6; }
4114fi
4115
4116
4117
4118
4119
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4121$as_echo_n "checking for ANSI C header files... " >&6; }
4122if ${ac_cv_header_stdc+:} false; then :
4123  $as_echo_n "(cached) " >&6
4124else
4125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h.  */
4127#include <stdlib.h>
4128#include <stdarg.h>
4129#include <string.h>
4130#include <float.h>
4131
4132int
4133main ()
4134{
4135
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"; then :
4141  ac_cv_header_stdc=yes
4142else
4143  ac_cv_header_stdc=no
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146
4147if test $ac_cv_header_stdc = yes; then
4148  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h.  */
4151#include <string.h>
4152
4153_ACEOF
4154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155  $EGREP "memchr" >/dev/null 2>&1; then :
4156
4157else
4158  ac_cv_header_stdc=no
4159fi
4160rm -f conftest*
4161
4162fi
4163
4164if test $ac_cv_header_stdc = yes; then
4165  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h.  */
4168#include <stdlib.h>
4169
4170_ACEOF
4171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172  $EGREP "free" >/dev/null 2>&1; then :
4173
4174else
4175  ac_cv_header_stdc=no
4176fi
4177rm -f conftest*
4178
4179fi
4180
4181if test $ac_cv_header_stdc = yes; then
4182  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4183  if test "$cross_compiling" = yes; then :
4184  :
4185else
4186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h.  */
4188#include <ctype.h>
4189#include <stdlib.h>
4190#if ((' ' & 0x0FF) == 0x020)
4191# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4192# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4193#else
4194# define ISLOWER(c) \
4195		   (('a' <= (c) && (c) <= 'i') \
4196		     || ('j' <= (c) && (c) <= 'r') \
4197		     || ('s' <= (c) && (c) <= 'z'))
4198# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4199#endif
4200
4201#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4202int
4203main ()
4204{
4205  int i;
4206  for (i = 0; i < 256; i++)
4207    if (XOR (islower (i), ISLOWER (i))
4208	|| toupper (i) != TOUPPER (i))
4209      return 2;
4210  return 0;
4211}
4212_ACEOF
4213if ac_fn_c_try_run "$LINENO"; then :
4214
4215else
4216  ac_cv_header_stdc=no
4217fi
4218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4219  conftest.$ac_objext conftest.beam conftest.$ac_ext
4220fi
4221
4222fi
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4225$as_echo "$ac_cv_header_stdc" >&6; }
4226if test $ac_cv_header_stdc = yes; then
4227
4228$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4229
4230fi
4231
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4233$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4234if ${ac_cv_header_sys_wait_h+:} false; then :
4235  $as_echo_n "(cached) " >&6
4236else
4237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h.  */
4239#include <sys/types.h>
4240#include <sys/wait.h>
4241#ifndef WEXITSTATUS
4242# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4243#endif
4244#ifndef WIFEXITED
4245# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4246#endif
4247
4248int
4249main ()
4250{
4251  int s;
4252  wait (&s);
4253  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4254  ;
4255  return 0;
4256}
4257_ACEOF
4258if ac_fn_c_try_compile "$LINENO"; then :
4259  ac_cv_header_sys_wait_h=yes
4260else
4261  ac_cv_header_sys_wait_h=no
4262fi
4263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4266$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4267if test $ac_cv_header_sys_wait_h = yes; then
4268
4269$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4270
4271fi
4272
4273
4274if test x"$ac_cv_prog_cc_c99" != xno; then
4275
4276
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4278$as_echo_n "checking for unsigned long long int... " >&6; }
4279if ${ac_cv_type_unsigned_long_long_int+:} false; then :
4280  $as_echo_n "(cached) " >&6
4281else
4282  ac_cv_type_unsigned_long_long_int=yes
4283     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4284       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286
4287  /* For now, do not test the preprocessor; as of 2007 there are too many
4288	 implementations with broken preprocessors.  Perhaps this can
4289	 be revisited in 2012.  In the meantime, code should not expect
4290	 #if to work with literals wider than 32 bits.  */
4291      /* Test literals.  */
4292      long long int ll = 9223372036854775807ll;
4293      long long int nll = -9223372036854775807LL;
4294      unsigned long long int ull = 18446744073709551615ULL;
4295      /* Test constant expressions.   */
4296      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4297		     ? 1 : -1)];
4298      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4299		     ? 1 : -1)];
4300      int i = 63;
4301int
4302main ()
4303{
4304/* Test availability of runtime routines for shift and division.  */
4305      long long int llmax = 9223372036854775807ll;
4306      unsigned long long int ullmax = 18446744073709551615ull;
4307      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4308	      | (llmax / ll) | (llmax % ll)
4309	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4310	      | (ullmax / ull) | (ullmax % ull));
4311  ;
4312  return 0;
4313}
4314
4315_ACEOF
4316if ac_fn_c_try_link "$LINENO"; then :
4317
4318else
4319  ac_cv_type_unsigned_long_long_int=no
4320fi
4321rm -f core conftest.err conftest.$ac_objext \
4322    conftest$ac_exeext conftest.$ac_ext
4323     fi
4324fi
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4326$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4327  if test $ac_cv_type_unsigned_long_long_int = yes; then
4328
4329$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4330
4331  fi
4332
4333
4334
4335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4336$as_echo_n "checking for long long int... " >&6; }
4337if ${ac_cv_type_long_long_int+:} false; then :
4338  $as_echo_n "(cached) " >&6
4339else
4340  ac_cv_type_long_long_int=yes
4341      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4342	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
4343	if test $ac_cv_type_long_long_int = yes; then
4344	  	  	  	  if test "$cross_compiling" = yes; then :
4345  :
4346else
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349#include <limits.h>
4350		 #ifndef LLONG_MAX
4351		 # define HALF \
4352			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4353		 # define LLONG_MAX (HALF - 1 + HALF)
4354		 #endif
4355int
4356main ()
4357{
4358long long int n = 1;
4359		 int i;
4360		 for (i = 0; ; i++)
4361		   {
4362		     long long int m = n << i;
4363		     if (m >> i != n)
4364		       return 1;
4365		     if (LLONG_MAX / 2 < m)
4366		       break;
4367		   }
4368		 return 0;
4369  ;
4370  return 0;
4371}
4372_ACEOF
4373if ac_fn_c_try_run "$LINENO"; then :
4374
4375else
4376  ac_cv_type_long_long_int=no
4377fi
4378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4379  conftest.$ac_objext conftest.beam conftest.$ac_ext
4380fi
4381
4382	fi
4383      fi
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4386$as_echo "$ac_cv_type_long_long_int" >&6; }
4387  if test $ac_cv_type_long_long_int = yes; then
4388
4389$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4390
4391  fi
4392
4393  if test "$ac_cv_type_long_long_int" = no; then
4394    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4396as_fn_error $? "Compiler does not support long long int
4397See \`config.log' for more details" "$LINENO" 5; }
4398  fi
4399
4400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5
4401$as_echo_n "checking if the compiler supports trailing commas... " >&6; }
4402  trailing_commas=no
4403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h.  */
4405
4406int
4407main ()
4408{
4409
4410    enum {
4411      one,
4412    };
4413  ;
4414  return 0;
4415}
4416_ACEOF
4417if ac_fn_c_try_compile "$LINENO"; then :
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4419$as_echo "yes" >&6; }; trailing_commas=yes
4420else
4421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422$as_echo "no" >&6; }
4423fi
4424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425  if test "$trailing_commas" = no; then
4426    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428as_fn_error $? "Compiler does not support trailing comma in enum
4429See \`config.log' for more details" "$LINENO" 5; }
4430  fi
4431
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5
4433$as_echo_n "checking if the compiler supports C++ comments... " >&6; }
4434  slash_comments=no
4435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436/* end confdefs.h.  */
4437
4438int
4439main ()
4440{
4441// C++ comments?
4442  ;
4443  return 0;
4444}
4445_ACEOF
4446if ac_fn_c_try_compile "$LINENO"; then :
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4448$as_echo "yes" >&6; }; slash_comments=yes
4449else
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451$as_echo "no" >&6; }
4452fi
4453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454  if test "$slash_comments" = no; then
4455    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4457as_fn_error $? "Compiler does not support C++ comments
4458See \`config.log' for more details" "$LINENO" 5; }
4459  fi
4460fi
4461
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4464$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4465# Check whether --enable-fail_if_missing was given.
4466if test "${enable_fail_if_missing+set}" = set; then :
4467  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4468else
4469  fail_if_missing="no"
4470fi
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4473$as_echo "$fail_if_missing" >&6; }
4474
4475with_x_arg="$with_x"
4476
4477if test -z "$CFLAGS"; then
4478  CFLAGS="-O"
4479  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4480fi
4481if test "$GCC" = yes; then
4482    gccversion=`$CC -dumpversion`
4483  if test "x$gccversion" = "x"; then
4484        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4485  fi
4486    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4487    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4488    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4489  else
4490    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4491      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4492      CFLAGS="$CFLAGS -fno-strength-reduce"
4493    fi
4494  fi
4495fi
4496
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4498$as_echo_n "checking for clang version... " >&6; }
4499CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed  -n -e 's/^.*clang[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'`
4500if test x"$CLANG_VERSION_STRING" != x"" ; then
4501  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4502  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4503  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4504  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4506$as_echo "$CLANG_VERSION" >&6; }
4507          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4508$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4509  if test "$CLANG_VERSION" -ge 500002075 ; then
4510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511$as_echo "no" >&6; }
4512    CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4513  else
4514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4515$as_echo "yes" >&6; }
4516  fi
4517else
4518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4519$as_echo "N/A" >&6; }
4520fi
4521
4522CROSS_COMPILING=
4523if test "$cross_compiling" = yes; then
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4525$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4526  CROSS_COMPILING=1
4527fi
4528
4529
4530test "$GCC" = yes && CPP_MM=M;
4531
4532if test -f ./toolcheck; then
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4534$as_echo "$as_me: checking for buggy tools..." >&6;}
4535  sh ./toolcheck 1>&6
4536fi
4537
4538OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4539
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4541$as_echo_n "checking for BeOS... " >&6; }
4542case `uname` in
4543    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4544		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545$as_echo "yes" >&6; };;
4546    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547$as_echo "no" >&6; };;
4548esac
4549
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4551$as_echo_n "checking for QNX... " >&6; }
4552case `uname` in
4553    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4554		test -z "$with_x" && with_x=no
4555		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4556$as_echo "yes" >&6; };;
4557    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558$as_echo "no" >&6; };;
4559esac
4560
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4562$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4563if test "`(uname) 2>/dev/null`" = Darwin; then
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565$as_echo "yes" >&6; }
4566  MACOS_X=yes
4567  CPPFLAGS="$CPPFLAGS -DMACOS_X"
4568
4569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4570$as_echo_n "checking --disable-darwin argument... " >&6; }
4571  # Check whether --enable-darwin was given.
4572if test "${enable_darwin+set}" = set; then :
4573  enableval=$enable_darwin;
4574else
4575  enable_darwin="yes"
4576fi
4577
4578  if test "$enable_darwin" = "yes"; then
4579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580$as_echo "no" >&6; }
4581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4582$as_echo_n "checking if Darwin files are there... " >&6; }
4583    if test -f os_macosx.m; then
4584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585$as_echo "yes" >&6; }
4586    else
4587      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4588$as_echo "no, Darwin support disabled" >&6; }
4589      enable_darwin=no
4590    fi
4591  else
4592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4593$as_echo "yes, Darwin support excluded" >&6; }
4594  fi
4595
4596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4597$as_echo_n "checking --with-mac-arch argument... " >&6; }
4598
4599# Check whether --with-mac-arch was given.
4600if test "${with_mac_arch+set}" = set; then :
4601  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4602$as_echo "$MACARCH" >&6; }
4603else
4604  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4605$as_echo "defaulting to $MACARCH" >&6; }
4606fi
4607
4608
4609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4610$as_echo_n "checking --with-developer-dir argument... " >&6; }
4611
4612# Check whether --with-developer-dir was given.
4613if test "${with_developer_dir+set}" = set; then :
4614  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4615$as_echo "$DEVELOPER_DIR" >&6; }
4616else
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4618$as_echo "not present" >&6; }
4619fi
4620
4621
4622  if test "x$DEVELOPER_DIR" = "x"; then
4623    # Extract the first word of "xcode-select", so it can be a program name with args.
4624set dummy xcode-select; ac_word=$2
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626$as_echo_n "checking for $ac_word... " >&6; }
4627if ${ac_cv_path_XCODE_SELECT+:} false; then :
4628  $as_echo_n "(cached) " >&6
4629else
4630  case $XCODE_SELECT in
4631  [\\/]* | ?:[\\/]*)
4632  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4633  ;;
4634  *)
4635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638  IFS=$as_save_IFS
4639  test -z "$as_dir" && as_dir=.
4640    for ac_exec_ext in '' $ac_executable_extensions; do
4641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644    break 2
4645  fi
4646done
4647  done
4648IFS=$as_save_IFS
4649
4650  ;;
4651esac
4652fi
4653XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4654if test -n "$XCODE_SELECT"; then
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4656$as_echo "$XCODE_SELECT" >&6; }
4657else
4658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4659$as_echo "no" >&6; }
4660fi
4661
4662
4663    if test "x$XCODE_SELECT" != "x"; then
4664      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4665$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4666      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4667      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4668$as_echo "$DEVELOPER_DIR" >&6; }
4669    else
4670      DEVELOPER_DIR=/Developer
4671    fi
4672  fi
4673
4674  if test "x$MACARCH" = "xboth"; then
4675    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4676$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4677                            save_cppflags="$CPPFLAGS"
4678    save_cflags="$CFLAGS"
4679    save_ldflags="$LDFLAGS"
4680    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4681    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682/* end confdefs.h.  */
4683
4684int
4685main ()
4686{
4687
4688  ;
4689  return 0;
4690}
4691_ACEOF
4692if ac_fn_c_try_link "$LINENO"; then :
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4694$as_echo "found" >&6; }
4695else
4696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4697$as_echo "not found" >&6; }
4698	CFLAGS="$save_cflags"
4699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4700$as_echo_n "checking if Intel architecture is supported... " >&6; }
4701	CPPFLAGS="$CPPFLAGS -arch i386"
4702	LDFLAGS="$save_ldflags -arch i386"
4703	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704/* end confdefs.h.  */
4705
4706int
4707main ()
4708{
4709
4710  ;
4711  return 0;
4712}
4713_ACEOF
4714if ac_fn_c_try_link "$LINENO"; then :
4715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4716$as_echo "yes" >&6; }; MACARCH="intel"
4717else
4718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719$as_echo "no" >&6; }
4720		MACARCH="ppc"
4721		CPPFLAGS="$save_cppflags -arch ppc"
4722		LDFLAGS="$save_ldflags -arch ppc"
4723fi
4724rm -f core conftest.err conftest.$ac_objext \
4725    conftest$ac_exeext conftest.$ac_ext
4726fi
4727rm -f core conftest.err conftest.$ac_objext \
4728    conftest$ac_exeext conftest.$ac_ext
4729  elif test "x$MACARCH" = "xintel"; then
4730    CPPFLAGS="$CPPFLAGS -arch intel"
4731    LDFLAGS="$LDFLAGS -arch intel"
4732  elif test "x$MACARCH" = "xppc"; then
4733    CPPFLAGS="$CPPFLAGS -arch ppc"
4734    LDFLAGS="$LDFLAGS -arch ppc"
4735  fi
4736
4737  if test "$enable_darwin" = "yes"; then
4738    MACOS_X_DARWIN=yes
4739    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4740    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4741            CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
4742
4743                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4744for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4745		  inttypes.h stdint.h unistd.h
4746do :
4747  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4749"
4750if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4751  cat >>confdefs.h <<_ACEOF
4752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4753_ACEOF
4754
4755fi
4756
4757done
4758
4759
4760ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4761if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4762  CARBON=yes
4763fi
4764
4765
4766    if test "x$CARBON" = "xyes"; then
4767      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then
4768	with_x=no
4769      fi
4770    fi
4771  fi
4772
4773        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4774    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4775  fi
4776
4777else
4778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779$as_echo "no" >&6; }
4780fi
4781
4782for ac_header in AvailabilityMacros.h
4783do :
4784  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4785if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4786  cat >>confdefs.h <<_ACEOF
4787#define HAVE_AVAILABILITYMACROS_H 1
4788_ACEOF
4789
4790fi
4791
4792done
4793
4794
4795
4796
4797
4798if test "$cross_compiling" = no; then
4799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4800$as_echo_n "checking --with-local-dir argument... " >&6; }
4801  have_local_include=''
4802  have_local_lib=''
4803
4804# Check whether --with-local-dir was given.
4805if test "${with_local_dir+set}" = set; then :
4806  withval=$with_local_dir;
4807    local_dir="$withval"
4808    case "$withval" in
4809    */*) ;;
4810    no)
4811      # avoid adding local dir to LDFLAGS and CPPFLAGS
4812      have_local_include=yes
4813      have_local_lib=yes
4814      ;;
4815    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4816    esac
4817	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4818$as_echo "$local_dir" >&6; }
4819
4820else
4821
4822    local_dir=/usr/local
4823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4824$as_echo "Defaulting to $local_dir" >&6; }
4825
4826fi
4827
4828  if test "$GCC" = yes -a "$local_dir" != no; then
4829    echo 'void f(){}' > conftest.c
4830        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4831    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4832    rm -f conftest.c conftest.o
4833  fi
4834  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4835    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4836    if test "$tt" = "$LDFLAGS"; then
4837      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4838    fi
4839  fi
4840  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4841    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4842    if test "$tt" = "$CPPFLAGS"; then
4843      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4844    fi
4845  fi
4846fi
4847
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4849$as_echo_n "checking --with-vim-name argument... " >&6; }
4850
4851# Check whether --with-vim-name was given.
4852if test "${with_vim_name+set}" = set; then :
4853  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4854$as_echo "$VIMNAME" >&6; }
4855else
4856  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4857$as_echo "Defaulting to $VIMNAME" >&6; }
4858fi
4859
4860
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4862$as_echo_n "checking --with-ex-name argument... " >&6; }
4863
4864# Check whether --with-ex-name was given.
4865if test "${with_ex_name+set}" = set; then :
4866  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4867$as_echo "$EXNAME" >&6; }
4868else
4869  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4870$as_echo "Defaulting to ex" >&6; }
4871fi
4872
4873
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4875$as_echo_n "checking --with-view-name argument... " >&6; }
4876
4877# Check whether --with-view-name was given.
4878if test "${with_view_name+set}" = set; then :
4879  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4880$as_echo "$VIEWNAME" >&6; }
4881else
4882  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4883$as_echo "Defaulting to view" >&6; }
4884fi
4885
4886
4887
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4889$as_echo_n "checking --with-global-runtime argument... " >&6; }
4890
4891# Check whether --with-global-runtime was given.
4892if test "${with_global_runtime+set}" = set; then :
4893  withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4894$as_echo "$withval" >&6; }
4895else
4896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897$as_echo "no" >&6; }
4898fi
4899
4900
4901if test "X$RUNTIME_GLOBAL" != "X"; then
4902  RUNTIME_GLOBAL_AFTER=$(printf -- "$RUNTIME_GLOBAL\\n" | $AWK -F, 'BEGIN { comma=0 } { for (i = NF; i > 0; i--) { if (comma) { printf ",%s/after", $i } else { printf "%s/after", $i; comma=1 } } } END { printf "\n" }')
4903  cat >>confdefs.h <<_ACEOF
4904#define RUNTIME_GLOBAL "$RUNTIME_GLOBAL"
4905_ACEOF
4906
4907  cat >>confdefs.h <<_ACEOF
4908#define RUNTIME_GLOBAL_AFTER "$RUNTIME_GLOBAL_AFTER"
4909_ACEOF
4910
4911fi
4912
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4914$as_echo_n "checking --with-modified-by argument... " >&6; }
4915
4916# Check whether --with-modified-by was given.
4917if test "${with_modified_by+set}" = set; then :
4918  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4919$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4920#define MODIFIED_BY "$withval"
4921_ACEOF
4922
4923else
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927
4928
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4930$as_echo_n "checking if character set is EBCDIC... " >&6; }
4931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h.  */
4933
4934int
4935main ()
4936{
4937 /* TryCompile function for CharSet.
4938   Treat any failure as ASCII for compatibility with existing art.
4939   Use compile-time rather than run-time tests for cross-compiler
4940   tolerance.  */
4941#if '0'!=240
4942make an error "Character set is not EBCDIC"
4943#endif
4944  ;
4945  return 0;
4946}
4947_ACEOF
4948if ac_fn_c_try_compile "$LINENO"; then :
4949   # TryCompile action if true
4950cf_cv_ebcdic=yes
4951else
4952   # TryCompile action if false
4953cf_cv_ebcdic=no
4954fi
4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956# end of TryCompile ])
4957# end of CacheVal CvEbcdic
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4959$as_echo "$cf_cv_ebcdic" >&6; }
4960case "$cf_cv_ebcdic" in  #(vi
4961    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4962
4963		line_break='"\\n"'
4964		;;
4965    *)		line_break='"\\012"';;
4966esac
4967
4968
4969if test "$cf_cv_ebcdic" = "yes"; then
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4971$as_echo_n "checking for z/OS Unix... " >&6; }
4972case `uname` in
4973    OS/390)	zOSUnix="yes";
4974										if test "$CC" = "cc"; then
4975		  ccm="$_CC_CCMODE"
4976		  ccn="CC"
4977		else
4978		  if test "$CC" = "c89"; then
4979		    ccm="$_CC_C89MODE"
4980		    ccn="C89"
4981		  else
4982		    ccm=1
4983		  fi
4984		fi
4985		if test "$ccm" != "1"; then
4986		  echo ""
4987		  echo "------------------------------------------"
4988		  echo " On z/OS Unix, the environment variable"
4989		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4990		  echo " Do:"
4991		  echo "    export _CC_${ccn}MODE=1"
4992		  echo " and then call configure again."
4993		  echo "------------------------------------------"
4994		  exit 1
4995		fi
4996		# Set CFLAGS for configure process.
4997		# This will be reset later for config.mk.
4998		# Use haltonmsg to force error for missing H files.
4999		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
5000		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
5001		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5002$as_echo "yes" >&6; }
5003		;;
5004    *)		zOSUnix="no";
5005		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006$as_echo "no" >&6; }
5007		;;
5008esac
5009fi
5010
5011if test "$zOSUnix" = "yes"; then
5012    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
5013else
5014    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
5015fi
5016
5017
5018
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
5020$as_echo_n "checking --disable-smack argument... " >&6; }
5021# Check whether --enable-smack was given.
5022if test "${enable_smack+set}" = set; then :
5023  enableval=$enable_smack;
5024else
5025  enable_smack="yes"
5026fi
5027
5028if test "$enable_smack" = "yes"; then
5029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030$as_echo "no" >&6; }
5031  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
5032if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
5033  true
5034else
5035  enable_smack="no"
5036fi
5037
5038
5039else
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5041$as_echo "yes" >&6; }
5042fi
5043if test "$enable_smack" = "yes"; then
5044  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
5045if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
5046  true
5047else
5048  enable_smack="no"
5049fi
5050
5051
5052fi
5053if test "$enable_smack" = "yes"; then
5054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
5055$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
5056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h.  */
5058#include <linux/xattr.h>
5059_ACEOF
5060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5061  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5063$as_echo "yes" >&6; }
5064else
5065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066$as_echo "no" >&6; }; enable_smack="no"
5067fi
5068rm -f conftest*
5069
5070fi
5071if test "$enable_smack" = "yes"; then
5072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
5073$as_echo_n "checking for setxattr in -lattr... " >&6; }
5074if ${ac_cv_lib_attr_setxattr+:} false; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077  ac_check_lib_save_LIBS=$LIBS
5078LIBS="-lattr  $LIBS"
5079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h.  */
5081
5082/* Override any GCC internal prototype to avoid an error.
5083   Use char because int might match the return type of a GCC
5084   builtin and then its argument prototype would still apply.  */
5085#ifdef __cplusplus
5086extern "C"
5087#endif
5088char setxattr ();
5089int
5090main ()
5091{
5092return setxattr ();
5093  ;
5094  return 0;
5095}
5096_ACEOF
5097if ac_fn_c_try_link "$LINENO"; then :
5098  ac_cv_lib_attr_setxattr=yes
5099else
5100  ac_cv_lib_attr_setxattr=no
5101fi
5102rm -f core conftest.err conftest.$ac_objext \
5103    conftest$ac_exeext conftest.$ac_ext
5104LIBS=$ac_check_lib_save_LIBS
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
5107$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
5108if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
5109  LIBS="$LIBS -lattr"
5110	   found_smack="yes"
5111	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
5112
5113fi
5114
5115fi
5116
5117if test "x$found_smack" = "x"; then
5118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
5119$as_echo_n "checking --disable-selinux argument... " >&6; }
5120  # Check whether --enable-selinux was given.
5121if test "${enable_selinux+set}" = set; then :
5122  enableval=$enable_selinux;
5123else
5124  enable_selinux="yes"
5125fi
5126
5127  if test "$enable_selinux" = "yes"; then
5128    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129$as_echo "no" >&6; }
5130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
5131$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
5132if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  ac_check_lib_save_LIBS=$LIBS
5136LIBS="-lselinux  $LIBS"
5137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138/* end confdefs.h.  */
5139
5140/* Override any GCC internal prototype to avoid an error.
5141   Use char because int might match the return type of a GCC
5142   builtin and then its argument prototype would still apply.  */
5143#ifdef __cplusplus
5144extern "C"
5145#endif
5146char is_selinux_enabled ();
5147int
5148main ()
5149{
5150return is_selinux_enabled ();
5151  ;
5152  return 0;
5153}
5154_ACEOF
5155if ac_fn_c_try_link "$LINENO"; then :
5156  ac_cv_lib_selinux_is_selinux_enabled=yes
5157else
5158  ac_cv_lib_selinux_is_selinux_enabled=no
5159fi
5160rm -f core conftest.err conftest.$ac_objext \
5161    conftest$ac_exeext conftest.$ac_ext
5162LIBS=$ac_check_lib_save_LIBS
5163fi
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
5165$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
5166if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
5167  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
5168if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
5169  LIBS="$LIBS -lselinux"
5170	    $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5171
5172fi
5173
5174
5175fi
5176
5177  else
5178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5179$as_echo "yes" >&6; }
5180  fi
5181fi
5182
5183
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
5185$as_echo_n "checking --with-features argument... " >&6; }
5186
5187# Check whether --with-features was given.
5188if test "${with_features+set}" = set; then :
5189  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
5190$as_echo "$features" >&6; }
5191else
5192  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
5193$as_echo "Defaulting to huge" >&6; }
5194fi
5195
5196
5197dovimdiff=""
5198dogvimdiff=""
5199case "$features" in
5200  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
5201 ;;
5202  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
5203 ;;
5204  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
5205 dovimdiff="installvimdiff";
5206			dogvimdiff="installgvimdiff" ;;
5207  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
5208 dovimdiff="installvimdiff";
5209			dogvimdiff="installgvimdiff" ;;
5210  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
5211 dovimdiff="installvimdiff";
5212			dogvimdiff="installgvimdiff" ;;
5213  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
5214$as_echo "Sorry, $features is not supported" >&6; } ;;
5215esac
5216
5217
5218
5219
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
5221$as_echo_n "checking --with-compiledby argument... " >&6; }
5222
5223# Check whether --with-compiledby was given.
5224if test "${with_compiledby+set}" = set; then :
5225  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5226$as_echo "$withval" >&6; }
5227else
5228  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229$as_echo "no" >&6; }
5230fi
5231
5232
5233
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
5235$as_echo_n "checking --disable-xsmp argument... " >&6; }
5236# Check whether --enable-xsmp was given.
5237if test "${enable_xsmp+set}" = set; then :
5238  enableval=$enable_xsmp;
5239else
5240  enable_xsmp="yes"
5241fi
5242
5243
5244if test "$enable_xsmp" = "yes"; then
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246$as_echo "no" >&6; }
5247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
5248$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
5249  # Check whether --enable-xsmp-interact was given.
5250if test "${enable_xsmp_interact+set}" = set; then :
5251  enableval=$enable_xsmp_interact;
5252else
5253  enable_xsmp_interact="yes"
5254fi
5255
5256  if test "$enable_xsmp_interact" = "yes"; then
5257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258$as_echo "no" >&6; }
5259    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
5260
5261  else
5262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5263$as_echo "yes" >&6; }
5264  fi
5265else
5266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5267$as_echo "yes" >&6; }
5268fi
5269
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
5271$as_echo_n "checking --enable-luainterp argument... " >&6; }
5272# Check whether --enable-luainterp was given.
5273if test "${enable_luainterp+set}" = set; then :
5274  enableval=$enable_luainterp;
5275else
5276  enable_luainterp="no"
5277fi
5278
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
5280$as_echo "$enable_luainterp" >&6; }
5281
5282if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
5283  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5284    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
5285  fi
5286
5287
5288
5289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
5290$as_echo_n "checking --with-lua-prefix argument... " >&6; }
5291
5292# Check whether --with-lua_prefix was given.
5293if test "${with_lua_prefix+set}" = set; then :
5294  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
5295$as_echo "$with_lua_prefix" >&6; }
5296else
5297  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298$as_echo "no" >&6; }
5299fi
5300
5301
5302  if test "X$with_lua_prefix" != "X"; then
5303       vi_cv_path_lua_pfx="$with_lua_prefix"
5304  else
5305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
5306$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
5307    if test "X$LUA_PREFIX" != "X"; then
5308	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
5309$as_echo "\"$LUA_PREFIX\"" >&6; }
5310	vi_cv_path_lua_pfx="$LUA_PREFIX"
5311    else
5312	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
5313$as_echo "not set, default to /usr" >&6; }
5314	vi_cv_path_lua_pfx="/usr"
5315    fi
5316  fi
5317
5318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
5319$as_echo_n "checking --with-luajit... " >&6; }
5320
5321# Check whether --with-luajit was given.
5322if test "${with_luajit+set}" = set; then :
5323  withval=$with_luajit; vi_cv_with_luajit="$withval"
5324else
5325  vi_cv_with_luajit="no"
5326fi
5327
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
5329$as_echo "$vi_cv_with_luajit" >&6; }
5330
5331  LUA_INC=
5332  if test "X$vi_cv_path_lua_pfx" != "X"; then
5333    if test "x$vi_cv_with_luajit" != "xno"; then
5334            # Extract the first word of "luajit", so it can be a program name with args.
5335set dummy luajit; ac_word=$2
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337$as_echo_n "checking for $ac_word... " >&6; }
5338if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  case $vi_cv_path_luajit in
5342  [\\/]* | ?:[\\/]*)
5343  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
5344  ;;
5345  *)
5346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349  IFS=$as_save_IFS
5350  test -z "$as_dir" && as_dir=.
5351    for ac_exec_ext in '' $ac_executable_extensions; do
5352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
5354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355    break 2
5356  fi
5357done
5358  done
5359IFS=$as_save_IFS
5360
5361  ;;
5362esac
5363fi
5364vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
5365if test -n "$vi_cv_path_luajit"; then
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
5367$as_echo "$vi_cv_path_luajit" >&6; }
5368else
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370$as_echo "no" >&6; }
5371fi
5372
5373
5374      if test "X$vi_cv_path_luajit" != "X"; then
5375		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
5376$as_echo_n "checking LuaJIT version... " >&6; }
5377if ${vi_cv_version_luajit+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
5383$as_echo "$vi_cv_version_luajit" >&6; }
5384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
5385$as_echo_n "checking Lua version of LuaJIT... " >&6; }
5386if ${vi_cv_version_lua_luajit+:} false; then :
5387  $as_echo_n "(cached) " >&6
5388else
5389   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5392$as_echo "$vi_cv_version_lua_luajit" >&6; }
5393	vi_cv_path_lua="$vi_cv_path_luajit"
5394	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5395      fi
5396    else
5397            # Extract the first word of "lua", so it can be a program name with args.
5398set dummy lua; ac_word=$2
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400$as_echo_n "checking for $ac_word... " >&6; }
5401if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5402  $as_echo_n "(cached) " >&6
5403else
5404  case $vi_cv_path_plain_lua in
5405  [\\/]* | ?:[\\/]*)
5406  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5407  ;;
5408  *)
5409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414    for ac_exec_ext in '' $ac_executable_extensions; do
5415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421  done
5422IFS=$as_save_IFS
5423
5424  ;;
5425esac
5426fi
5427vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5428if test -n "$vi_cv_path_plain_lua"; then
5429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5430$as_echo "$vi_cv_path_plain_lua" >&6; }
5431else
5432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433$as_echo "no" >&6; }
5434fi
5435
5436
5437      if test "X$vi_cv_path_plain_lua" != "X"; then
5438		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5439$as_echo_n "checking Lua version... " >&6; }
5440if ${vi_cv_version_plain_lua+:} false; then :
5441  $as_echo_n "(cached) " >&6
5442else
5443   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5446$as_echo "$vi_cv_version_plain_lua" >&6; }
5447      fi
5448      vi_cv_path_lua="$vi_cv_path_plain_lua"
5449      vi_cv_version_lua="$vi_cv_version_plain_lua"
5450    fi
5451    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5452      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit" >&5
5453$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5454      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5455	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5456$as_echo "yes" >&6; }
5457	LUA_INC=/luajit-$vi_cv_version_luajit
5458      fi
5459    fi
5460    if test "X$LUA_INC" = "X"; then
5461      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5462$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5463      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5464	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5465$as_echo "yes" >&6; }
5466      else
5467	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468$as_echo "no" >&6; }
5469	{ $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
5470$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5471	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5472	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5473$as_echo "yes" >&6; }
5474	  LUA_INC=/lua$vi_cv_version_lua
5475	else
5476	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477$as_echo "no" >&6; }
5478	  vi_cv_path_lua_pfx=
5479	fi
5480      fi
5481    fi
5482  fi
5483
5484  if test "X$vi_cv_path_lua_pfx" != "X"; then
5485    if test "x$vi_cv_with_luajit" != "xno"; then
5486      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5487      if test "X$multiarch" != "X"; then
5488	lib_multiarch="lib/${multiarch}"
5489      else
5490	lib_multiarch="lib"
5491      fi
5492      if test "X$vi_cv_version_lua" = "X"; then
5493	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5494      else
5495	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5496      fi
5497    else
5498      if test "X$LUA_INC" != "X"; then
5499		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5500      else
5501	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5502      fi
5503    fi
5504    if test "$enable_luainterp" = "dynamic"; then
5505      lua_ok="yes"
5506    else
5507      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5508$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5509      libs_save=$LIBS
5510      LIBS="$LIBS $LUA_LIBS"
5511      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h.  */
5513
5514int
5515main ()
5516{
5517
5518  ;
5519  return 0;
5520}
5521_ACEOF
5522if ac_fn_c_try_link "$LINENO"; then :
5523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5524$as_echo "yes" >&6; }; lua_ok="yes"
5525else
5526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5528fi
5529rm -f core conftest.err conftest.$ac_objext \
5530    conftest$ac_exeext conftest.$ac_ext
5531      LIBS=$libs_save
5532    fi
5533    if test "x$lua_ok" = "xyes"; then
5534      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5535      LUA_SRC="if_lua.c"
5536      LUA_OBJ="objects/if_lua.o"
5537      LUA_PRO="if_lua.pro"
5538      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5539
5540    fi
5541    if test "$enable_luainterp" = "dynamic"; then
5542      if test "x$vi_cv_with_luajit" != "xno"; then
5543	luajit="jit"
5544      fi
5545      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5546	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5547      else
5548	if test "x$MACOS_X" = "xyes"; then
5549	  ext="dylib"
5550	  indexes=""
5551	else
5552	  ext="so"
5553	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5554	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5555	  if test "X$multiarch" != "X"; then
5556	    lib_multiarch="lib/${multiarch}"
5557	  fi
5558	fi
5559			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5560$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5561	for subdir in "${lib_multiarch}" lib64 lib; do
5562	  if test -z "$subdir"; then
5563	    continue
5564	  fi
5565	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5566	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5567	    for i in $indexes ""; do
5568	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5569		sover2="$i"
5570		break 3
5571	      fi
5572	    done
5573	  done
5574	  sover=""
5575	done
5576	if test "X$sover" = "X"; then
5577	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }
5579	  lua_ok="no"
5580	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5581	else
5582	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5583$as_echo "yes" >&6; }
5584	  lua_ok="yes"
5585	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5586	fi
5587      fi
5588      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5589
5590      LUA_LIBS=""
5591      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5592    fi
5593    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5594       test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5595       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5596            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5597    fi
5598  fi
5599  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5600    as_fn_error $? "could not configure lua" "$LINENO" 5
5601  fi
5602
5603
5604
5605
5606
5607fi
5608
5609
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5611$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5612# Check whether --enable-mzschemeinterp was given.
5613if test "${enable_mzschemeinterp+set}" = set; then :
5614  enableval=$enable_mzschemeinterp;
5615else
5616  enable_mzschemeinterp="no"
5617fi
5618
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5620$as_echo "$enable_mzschemeinterp" >&6; }
5621
5622if test "$enable_mzschemeinterp" = "yes"; then
5623
5624
5625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5626$as_echo_n "checking --with-plthome argument... " >&6; }
5627
5628# Check whether --with-plthome was given.
5629if test "${with_plthome+set}" = set; then :
5630  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5631$as_echo "$with_plthome" >&6; }
5632else
5633  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5634$as_echo "\"no\"" >&6; }
5635fi
5636
5637
5638  if test "X$with_plthome" != "X"; then
5639       vi_cv_path_mzscheme_pfx="$with_plthome"
5640       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5641  else
5642    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5643$as_echo_n "checking PLTHOME environment var... " >&6; }
5644    if test "X$PLTHOME" != "X"; then
5645	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5646$as_echo "\"$PLTHOME\"" >&6; }
5647	vi_cv_path_mzscheme_pfx="$PLTHOME"
5648	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5649    else
5650	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5651$as_echo "not set" >&6; }
5652		# Extract the first word of "mzscheme", so it can be a program name with args.
5653set dummy mzscheme; ac_word=$2
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655$as_echo_n "checking for $ac_word... " >&6; }
5656if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5657  $as_echo_n "(cached) " >&6
5658else
5659  case $vi_cv_path_mzscheme in
5660  [\\/]* | ?:[\\/]*)
5661  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5662  ;;
5663  *)
5664  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665for as_dir in $PATH
5666do
5667  IFS=$as_save_IFS
5668  test -z "$as_dir" && as_dir=.
5669    for ac_exec_ext in '' $ac_executable_extensions; do
5670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673    break 2
5674  fi
5675done
5676  done
5677IFS=$as_save_IFS
5678
5679  ;;
5680esac
5681fi
5682vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5683if test -n "$vi_cv_path_mzscheme"; then
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5685$as_echo "$vi_cv_path_mzscheme" >&6; }
5686else
5687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688$as_echo "no" >&6; }
5689fi
5690
5691
5692
5693			if test "X$vi_cv_path_mzscheme" != "X"; then
5694	  lsout=`ls -l $vi_cv_path_mzscheme`
5695	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5696	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5697	  fi
5698	fi
5699
5700	if test "X$vi_cv_path_mzscheme" != "X"; then
5701	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5702$as_echo_n "checking MzScheme install prefix... " >&6; }
5703if ${vi_cv_path_mzscheme_pfx+:} false; then :
5704  $as_echo_n "(cached) " >&6
5705else
5706  	    	    echo "(display (simplify-path		\
5707	       (build-path (call-with-values	\
5708		(lambda () (split-path (find-system-path (quote exec-file)))) \
5709		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5710	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5711		sed -e 's+/$++'`
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5714$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5715	    rm -f mzdirs.scm
5716	fi
5717    fi
5718  fi
5719
5720  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5722$as_echo_n "checking for racket include directory... " >&6; }
5723    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5724    if test "X$SCHEME_INC" != "X"; then
5725      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5726$as_echo "${SCHEME_INC}" >&6; }
5727    else
5728      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5729$as_echo "not found" >&6; }
5730      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5731$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5732      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5733	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5734	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735$as_echo "yes" >&6; }
5736      else
5737	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5740$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5741	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5742	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5743$as_echo "yes" >&6; }
5744	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5745	else
5746	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747$as_echo "no" >&6; }
5748	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5749$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5750	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5751	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5752$as_echo "yes" >&6; }
5753	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5754	  else
5755	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756$as_echo "no" >&6; }
5757	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5758$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5759	    if test -f /usr/include/plt/scheme.h; then
5760	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5761$as_echo "yes" >&6; }
5762	      SCHEME_INC=/usr/include/plt
5763	    else
5764	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765$as_echo "no" >&6; }
5766	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5767$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5768	      if test -f /usr/include/racket/scheme.h; then
5769		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5770$as_echo "yes" >&6; }
5771		SCHEME_INC=/usr/include/racket
5772	      else
5773		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774$as_echo "no" >&6; }
5775		vi_cv_path_mzscheme_pfx=
5776	      fi
5777	    fi
5778	  fi
5779	fi
5780      fi
5781    fi
5782  fi
5783
5784  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5785
5786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5787$as_echo_n "checking for racket lib directory... " >&6; }
5788    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5789    if test "X$SCHEME_LIB" != "X"; then
5790      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5791$as_echo "${SCHEME_LIB}" >&6; }
5792    else
5793      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5794$as_echo "not found" >&6; }
5795    fi
5796
5797    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5798      if test "X$path" != "X"; then
5799	if test "x$MACOS_X" = "xyes"; then
5800	  MZSCHEME_LIBS="-framework Racket"
5801	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5802	elif test -f "${path}/libmzscheme3m.a"; then
5803	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5804	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5805	elif test -f "${path}/libracket3m.a"; then
5806	  MZSCHEME_LIBS="${path}/libracket3m.a"
5807	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5808	elif test -f "${path}/libracket.a"; then
5809	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5810	elif test -f "${path}/libmzscheme.a"; then
5811	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5812	else
5813	  	  if test -f "${path}/libmzscheme3m.so"; then
5814	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5815	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5816	  elif test -f "${path}/libracket3m.so"; then
5817	    MZSCHEME_LIBS="-L${path} -lracket3m"
5818	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5819	  elif test -f "${path}/libracket.so"; then
5820	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5821	  else
5822	    	    if test "$path" != "$SCHEME_LIB"; then
5823	      continue
5824	    fi
5825	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5826	  fi
5827	  if test "$GCC" = yes; then
5828	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5829	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5830				   uname -r | grep '^5' >/dev/null; then
5831	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5832	  fi
5833	fi
5834      fi
5835      if test "X$MZSCHEME_LIBS" != "X"; then
5836	break
5837      fi
5838    done
5839
5840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5841$as_echo_n "checking if racket requires -pthread... " >&6; }
5842    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5843      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5844$as_echo "yes" >&6; }
5845      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5846      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5847    else
5848      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849$as_echo "no" >&6; }
5850    fi
5851
5852    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5853$as_echo_n "checking for racket config directory... " >&6; }
5854    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5855    if test "X$SCHEME_CONFIGDIR" != "X"; then
5856      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5857      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5858$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5859    else
5860      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5861$as_echo "not found" >&6; }
5862    fi
5863
5864    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5865$as_echo_n "checking for racket collects directory... " >&6; }
5866    SCHEME_COLLECTS=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-collects-dir))) (when (path? p) (let-values (((base _1 _2) (split-path p))) (display base))))'`
5867    if test "X$SCHEME_COLLECTS" = "X"; then
5868      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5869	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5870      else
5871	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5872	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5873	else
5874	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5875	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5876	  else
5877	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5878	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5879	    fi
5880	  fi
5881	fi
5882      fi
5883    fi
5884    if test "X$SCHEME_COLLECTS" != "X" ; then
5885      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5886$as_echo "${SCHEME_COLLECTS}" >&6; }
5887    else
5888      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5889$as_echo "not found" >&6; }
5890    fi
5891
5892    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5893$as_echo_n "checking for mzscheme_base.c... " >&6; }
5894    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5895      MZSCHEME_EXTRA="mzscheme_base.c"
5896      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5897      MZSCHEME_MOD="++lib scheme/base"
5898    else
5899      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5900	MZSCHEME_EXTRA="mzscheme_base.c"
5901	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5902	MZSCHEME_MOD="++lib scheme/base"
5903      else
5904	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5905	  MZSCHEME_EXTRA="mzscheme_base.c"
5906	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5907	  MZSCHEME_MOD=""
5908	fi
5909      fi
5910    fi
5911    if test "X$MZSCHEME_EXTRA" != "X" ; then
5912            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5913      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5914$as_echo "needed" >&6; }
5915    else
5916      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5917$as_echo "not needed" >&6; }
5918    fi
5919
5920        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5921$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5922if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925  ac_check_lib_save_LIBS=$LIBS
5926LIBS="-lffi  $LIBS"
5927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928/* end confdefs.h.  */
5929
5930/* Override any GCC internal prototype to avoid an error.
5931   Use char because int might match the return type of a GCC
5932   builtin and then its argument prototype would still apply.  */
5933#ifdef __cplusplus
5934extern "C"
5935#endif
5936char ffi_type_void ();
5937int
5938main ()
5939{
5940return ffi_type_void ();
5941  ;
5942  return 0;
5943}
5944_ACEOF
5945if ac_fn_c_try_link "$LINENO"; then :
5946  ac_cv_lib_ffi_ffi_type_void=yes
5947else
5948  ac_cv_lib_ffi_ffi_type_void=no
5949fi
5950rm -f core conftest.err conftest.$ac_objext \
5951    conftest$ac_exeext conftest.$ac_ext
5952LIBS=$ac_check_lib_save_LIBS
5953fi
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5955$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5956if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5957  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5958fi
5959
5960
5961    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5962      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5963
5964        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5965$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5966    cflags_save=$CFLAGS
5967    libs_save=$LIBS
5968    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5969    LIBS="$LIBS $MZSCHEME_LIBS"
5970    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h.  */
5972
5973int
5974main ()
5975{
5976
5977  ;
5978  return 0;
5979}
5980_ACEOF
5981if ac_fn_c_try_link "$LINENO"; then :
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5983$as_echo "yes" >&6; }; mzs_ok=yes
5984else
5985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5986$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5987fi
5988rm -f core conftest.err conftest.$ac_objext \
5989    conftest$ac_exeext conftest.$ac_ext
5990    CFLAGS=$cflags_save
5991    LIBS=$libs_save
5992    if test $mzs_ok = yes; then
5993      MZSCHEME_SRC="if_mzsch.c"
5994      MZSCHEME_OBJ="objects/if_mzsch.o"
5995      MZSCHEME_PRO="if_mzsch.pro"
5996      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
5997
5998    else
5999      MZSCHEME_CFLAGS=
6000      MZSCHEME_LIBS=
6001      MZSCHEME_EXTRA=
6002      MZSCHEME_MZC=
6003    fi
6004  fi
6005
6006
6007
6008
6009
6010
6011
6012fi
6013
6014
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
6016$as_echo_n "checking --enable-perlinterp argument... " >&6; }
6017# Check whether --enable-perlinterp was given.
6018if test "${enable_perlinterp+set}" = set; then :
6019  enableval=$enable_perlinterp;
6020else
6021  enable_perlinterp="no"
6022fi
6023
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
6025$as_echo "$enable_perlinterp" >&6; }
6026if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
6027  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6028    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
6029  fi
6030
6031  # Extract the first word of "perl", so it can be a program name with args.
6032set dummy perl; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
6035if ${ac_cv_path_vi_cv_path_perl+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  case $vi_cv_path_perl in
6039  [\\/]* | ?:[\\/]*)
6040  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
6041  ;;
6042  *)
6043  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044for as_dir in $PATH
6045do
6046  IFS=$as_save_IFS
6047  test -z "$as_dir" && as_dir=.
6048    for ac_exec_ext in '' $ac_executable_extensions; do
6049  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
6051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052    break 2
6053  fi
6054done
6055  done
6056IFS=$as_save_IFS
6057
6058  ;;
6059esac
6060fi
6061vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
6062if test -n "$vi_cv_path_perl"; then
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
6064$as_echo "$vi_cv_path_perl" >&6; }
6065else
6066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067$as_echo "no" >&6; }
6068fi
6069
6070
6071  if test "X$vi_cv_path_perl" != "X"; then
6072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
6073$as_echo_n "checking Perl version... " >&6; }
6074    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
6075     eval `$vi_cv_path_perl -V:usethreads`
6076     eval `$vi_cv_path_perl -V:libperl`
6077     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
6078       badthreads=no
6079     else
6080       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
6081	 eval `$vi_cv_path_perl -V:use5005threads`
6082	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
6083	   badthreads=no
6084	 else
6085	   badthreads=yes
6086	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
6087$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
6088	 fi
6089       else
6090	 badthreads=yes
6091	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
6092$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
6093       fi
6094     fi
6095     if test $badthreads = no; then
6096      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6097$as_echo "OK" >&6; }
6098      eval `$vi_cv_path_perl -V:shrpenv`
6099      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
6100	shrpenv=""
6101      fi
6102      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
6103
6104      vi_cv_perl_extutils=unknown_perl_extutils_path
6105      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
6106	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
6107	if test -f "$xsubpp_path"; then
6108	  vi_cv_perl_xsubpp="$xsubpp_path"
6109	fi
6110      done
6111
6112                              perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
6113		-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
6114		-e 's/-fdebug-prefix-map[^ ]*//g' \
6115		-e 's/-pipe //' \
6116		-e 's/-W[^ ]*//g' \
6117		-e 's/-D_FORTIFY_SOURCE=.//g'`
6118            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
6119		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
6120			-e 's/-bE:perl.exp//' -e 's/-lc //'`
6121                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
6122		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
6123
6124                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
6125$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
6126      cflags_save=$CFLAGS
6127      libs_save=$LIBS
6128      ldflags_save=$LDFLAGS
6129      CFLAGS="$CFLAGS $perlcppflags"
6130      LIBS="$LIBS $perllibs"
6131      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
6132      LDFLAGS="$perlldflags $LDFLAGS"
6133      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134/* end confdefs.h.  */
6135
6136int
6137main ()
6138{
6139
6140  ;
6141  return 0;
6142}
6143_ACEOF
6144if ac_fn_c_try_link "$LINENO"; then :
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6146$as_echo "yes" >&6; }; perl_ok=yes
6147else
6148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
6149$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
6150fi
6151rm -f core conftest.err conftest.$ac_objext \
6152    conftest$ac_exeext conftest.$ac_ext
6153      CFLAGS=$cflags_save
6154      LIBS=$libs_save
6155      LDFLAGS=$ldflags_save
6156      if test $perl_ok = yes; then
6157	if test "X$perlcppflags" != "X"; then
6158	  PERL_CFLAGS=$perlcppflags
6159	fi
6160	if test "X$perlldflags" != "X"; then
6161	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
6162	    LDFLAGS="$perlldflags $LDFLAGS"
6163	  fi
6164	fi
6165	PERL_LIBS=$perllibs
6166	PERL_SRC="auto/if_perl.c if_perlsfio.c"
6167	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
6168	PERL_PRO="if_perl.pro if_perlsfio.pro"
6169	$as_echo "#define FEAT_PERL 1" >>confdefs.h
6170
6171      fi
6172     fi
6173    else
6174      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
6175$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
6176    fi
6177  fi
6178
6179  if test "x$MACOS_X" = "xyes"; then
6180        dir=/System/Library/Perl
6181    darwindir=$dir/darwin
6182    if test -d $darwindir; then
6183      PERL=/usr/bin/perl
6184    else
6185            dir=/System/Library/Perl/5.8.1
6186      darwindir=$dir/darwin-thread-multi-2level
6187      if test -d $darwindir; then
6188	PERL=/usr/bin/perl
6189      fi
6190    fi
6191    if test -n "$PERL"; then
6192      PERL_DIR="$dir"
6193      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
6194      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
6195      PERL_LIBS="-L$darwindir/CORE -lperl"
6196    fi
6197                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6198    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6199  fi
6200  if test "$enable_perlinterp" = "dynamic"; then
6201    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
6202      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
6203
6204      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
6205    fi
6206  fi
6207
6208  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
6209    as_fn_error $? "could not configure perl" "$LINENO" 5
6210  fi
6211fi
6212
6213
6214
6215
6216
6217
6218
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
6220$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
6221# Check whether --enable-pythoninterp was given.
6222if test "${enable_pythoninterp+set}" = set; then :
6223  enableval=$enable_pythoninterp;
6224else
6225  enable_pythoninterp="no"
6226fi
6227
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
6229$as_echo "$enable_pythoninterp" >&6; }
6230if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
6231  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6232    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6233  fi
6234
6235    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5
6236$as_echo_n "checking --with-python-command argument... " >&6; }
6237
6238
6239# Check whether --with-python-command was given.
6240if test "${with_python_command+set}" = set; then :
6241  withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6242$as_echo "$vi_cv_path_python" >&6; }
6243else
6244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245$as_echo "no" >&6; }
6246fi
6247
6248
6249  if test "X$vi_cv_path_python" = "X"; then
6250    for ac_prog in python2 python
6251do
6252  # Extract the first word of "$ac_prog", so it can be a program name with args.
6253set dummy $ac_prog; ac_word=$2
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255$as_echo_n "checking for $ac_word... " >&6; }
6256if ${ac_cv_path_vi_cv_path_python+:} false; then :
6257  $as_echo_n "(cached) " >&6
6258else
6259  case $vi_cv_path_python in
6260  [\\/]* | ?:[\\/]*)
6261  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
6262  ;;
6263  *)
6264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267  IFS=$as_save_IFS
6268  test -z "$as_dir" && as_dir=.
6269    for ac_exec_ext in '' $ac_executable_extensions; do
6270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
6272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273    break 2
6274  fi
6275done
6276  done
6277IFS=$as_save_IFS
6278
6279  ;;
6280esac
6281fi
6282vi_cv_path_python=$ac_cv_path_vi_cv_path_python
6283if test -n "$vi_cv_path_python"; then
6284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6285$as_echo "$vi_cv_path_python" >&6; }
6286else
6287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288$as_echo "no" >&6; }
6289fi
6290
6291
6292  test -n "$vi_cv_path_python" && break
6293done
6294
6295  fi
6296  if test "X$vi_cv_path_python" != "X"; then
6297
6298        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6299$as_echo_n "checking Python version... " >&6; }
6300if ${vi_cv_var_python_version+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303  vi_cv_var_python_version=`
6304	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
6305
6306fi
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
6308$as_echo "$vi_cv_var_python_version" >&6; }
6309
6310        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
6311$as_echo_n "checking Python is 2.3 or better... " >&6; }
6312    if ${vi_cv_path_python} -c \
6313	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
6314    then
6315      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6316$as_echo "yep" >&6; }
6317
6318            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6319$as_echo_n "checking Python's install prefix... " >&6; }
6320if ${vi_cv_path_python_pfx+:} false; then :
6321  $as_echo_n "(cached) " >&6
6322else
6323   vi_cv_path_python_pfx=`
6324	    ${vi_cv_path_python} -c \
6325		"import sys; print sys.prefix"`
6326fi
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
6328$as_echo "$vi_cv_path_python_pfx" >&6; }
6329
6330            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6331$as_echo_n "checking Python's execution prefix... " >&6; }
6332if ${vi_cv_path_python_epfx+:} false; then :
6333  $as_echo_n "(cached) " >&6
6334else
6335   vi_cv_path_python_epfx=`
6336	    ${vi_cv_path_python} -c \
6337		"import sys; print sys.exec_prefix"`
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
6340$as_echo "$vi_cv_path_python_epfx" >&6; }
6341
6342
6343      if ${vi_cv_path_pythonpath+:} false; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346   vi_cv_path_pythonpath=`
6347	    unset PYTHONPATH;
6348	    ${vi_cv_path_python} -c \
6349		"import sys, string; print string.join(sys.path,':')"`
6350fi
6351
6352
6353
6354
6355# Check whether --with-python-config-dir was given.
6356if test "${with_python_config_dir+set}" = set; then :
6357  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"; have_python_config_dir=1
6358fi
6359
6360
6361      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6362$as_echo_n "checking Python's configuration directory... " >&6; }
6363if ${vi_cv_path_python_conf+:} false; then :
6364  $as_echo_n "(cached) " >&6
6365else
6366
6367	vi_cv_path_python_conf=
6368	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
6369	if test -d "$d" && test -f "$d/config.c"; then
6370	  vi_cv_path_python_conf="$d"
6371	else
6372	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
6373	    for subdir in lib64 lib share; do
6374	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
6375	      if test -d "$d" && test -f "$d/config.c"; then
6376		vi_cv_path_python_conf="$d"
6377	      fi
6378	    done
6379	  done
6380	fi
6381
6382fi
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
6384$as_echo "$vi_cv_path_python_conf" >&6; }
6385
6386      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
6387
6388      if test "X$PYTHON_CONFDIR" = "X"; then
6389	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6390$as_echo "can't find it!" >&6; }
6391      else
6392
6393			if ${vi_cv_path_python_plibs+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396
6397	    pwd=`pwd`
6398	    tmp_mkf="$pwd/config-PyMake$$"
6399	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6400__:
6401	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
6402	@echo "python_LIBS='$(LIBS)'"
6403	@echo "python_SYSLIBS='$(SYSLIBS)'"
6404	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
6405	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
6406	@echo "python_INSTSONAME='$(INSTSONAME)'"
6407	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
6408	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
6409	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
6410eof
6411	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6412	    rm -f -- "${tmp_mkf}"
6413	    if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6414		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6415	      vi_cv_path_python_plibs="-framework Python"
6416	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6417		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6418	      fi
6419	    else
6420	      vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6421	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6422	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6423		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6424	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6425	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6426		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6427		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6428	            	            		  fi
6429	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6430	        fi
6431	      fi
6432	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6433	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6434	    fi
6435
6436fi
6437
6438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6439$as_echo_n "checking Python's dll name... " >&6; }
6440if ${vi_cv_dll_name_python+:} false; then :
6441  $as_echo_n "(cached) " >&6
6442else
6443
6444	  if test "X$python_DLLLIBRARY" != "X"; then
6445	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6446	  else
6447	    vi_cv_dll_name_python="$python_INSTSONAME"
6448	  fi
6449
6450fi
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6452$as_echo "$vi_cv_dll_name_python" >&6; }
6453
6454	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6455	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6456	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
6457	else
6458	  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}"
6459	fi
6460	if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then
6461	  	  PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6462
6463	fi
6464	PYTHON_SRC="if_python.c"
6465	PYTHON_OBJ="objects/if_python.o"
6466
6467								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6468$as_echo_n "checking if -pthread should be used... " >&6; }
6469	threadsafe_flag=
6470	thread_lib=
6471	        if test "`(uname) 2>/dev/null`" != Darwin; then
6472	  test "$GCC" = yes && threadsafe_flag="-pthread"
6473	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6474	    threadsafe_flag="-D_THREAD_SAFE"
6475	    thread_lib="-pthread"
6476	  fi
6477	  if test "`(uname) 2>/dev/null`" = SunOS; then
6478	    threadsafe_flag="-pthreads"
6479	  fi
6480	fi
6481	libs_save_old=$LIBS
6482	if test -n "$threadsafe_flag"; then
6483	  cflags_save=$CFLAGS
6484	  CFLAGS="$CFLAGS $threadsafe_flag"
6485	  LIBS="$LIBS $thread_lib"
6486	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487/* end confdefs.h.  */
6488
6489int
6490main ()
6491{
6492
6493  ;
6494  return 0;
6495}
6496_ACEOF
6497if ac_fn_c_try_link "$LINENO"; then :
6498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6499$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6500else
6501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502$as_echo "no" >&6; }; LIBS=$libs_save_old
6503
6504fi
6505rm -f core conftest.err conftest.$ac_objext \
6506    conftest$ac_exeext conftest.$ac_ext
6507	  CFLAGS=$cflags_save
6508	else
6509	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510$as_echo "no" >&6; }
6511	fi
6512
6513			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6514$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6515	cflags_save=$CFLAGS
6516	libs_save=$LIBS
6517	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6518	LIBS="$LIBS $PYTHON_LIBS"
6519	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520/* end confdefs.h.  */
6521
6522int
6523main ()
6524{
6525
6526  ;
6527  return 0;
6528}
6529_ACEOF
6530if ac_fn_c_try_link "$LINENO"; then :
6531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6532$as_echo "yes" >&6; }; python_ok=yes
6533else
6534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6535$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6536fi
6537rm -f core conftest.err conftest.$ac_objext \
6538    conftest$ac_exeext conftest.$ac_ext
6539	CFLAGS=$cflags_save
6540	LIBS=$libs_save
6541	if test $python_ok = yes; then
6542	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6543
6544	else
6545	  LIBS=$libs_save_old
6546	  PYTHON_SRC=
6547	  PYTHON_OBJ=
6548	  PYTHON_LIBS=
6549	  PYTHON_CFLAGS=
6550	fi
6551      fi
6552    else
6553      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6554$as_echo "too old" >&6; }
6555    fi
6556  fi
6557
6558  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6559    as_fn_error $? "could not configure python" "$LINENO" 5
6560  fi
6561fi
6562
6563
6564
6565
6566
6567
6568
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6570$as_echo_n "checking --enable-python3interp argument... " >&6; }
6571# Check whether --enable-python3interp was given.
6572if test "${enable_python3interp+set}" = set; then :
6573  enableval=$enable_python3interp;
6574else
6575  enable_python3interp="no"
6576fi
6577
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6579$as_echo "$enable_python3interp" >&6; }
6580if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6581  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6582    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6583  fi
6584
6585    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5
6586$as_echo_n "checking --with-python3-command argument... " >&6; }
6587
6588
6589# Check whether --with-python3-command was given.
6590if test "${with_python3_command+set}" = set; then :
6591  withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6592$as_echo "$vi_cv_path_python3" >&6; }
6593else
6594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595$as_echo "no" >&6; }
6596fi
6597
6598
6599  if test "X$vi_cv_path_python3" = "X"; then
6600    for ac_prog in python3 python
6601do
6602  # Extract the first word of "$ac_prog", so it can be a program name with args.
6603set dummy $ac_prog; ac_word=$2
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605$as_echo_n "checking for $ac_word... " >&6; }
6606if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  case $vi_cv_path_python3 in
6610  [\\/]* | ?:[\\/]*)
6611  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6612  ;;
6613  *)
6614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617  IFS=$as_save_IFS
6618  test -z "$as_dir" && as_dir=.
6619    for ac_exec_ext in '' $ac_executable_extensions; do
6620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623    break 2
6624  fi
6625done
6626  done
6627IFS=$as_save_IFS
6628
6629  ;;
6630esac
6631fi
6632vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6633if test -n "$vi_cv_path_python3"; then
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6635$as_echo "$vi_cv_path_python3" >&6; }
6636else
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638$as_echo "no" >&6; }
6639fi
6640
6641
6642  test -n "$vi_cv_path_python3" && break
6643done
6644
6645  fi
6646  if test "X$vi_cv_path_python3" != "X"; then
6647
6648        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6649$as_echo_n "checking Python version... " >&6; }
6650if ${vi_cv_var_python3_version+:} false; then :
6651  $as_echo_n "(cached) " >&6
6652else
6653  vi_cv_var_python3_version=`
6654          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6655
6656fi
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6658$as_echo "$vi_cv_var_python3_version" >&6; }
6659
6660        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6661$as_echo_n "checking Python is 3.0 or better... " >&6; }
6662    if ${vi_cv_path_python3} -c \
6663      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6664    then
6665      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6666$as_echo "yep" >&6; }
6667
6668            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6669$as_echo_n "checking Python's abiflags... " >&6; }
6670if ${vi_cv_var_python3_abiflags+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673
6674       vi_cv_var_python3_abiflags=
6675       if ${vi_cv_path_python3} -c \
6676           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6677       then
6678         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6679           "import sys; print(sys.abiflags)"`
6680       fi
6681fi
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6683$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6684
6685            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6686$as_echo_n "checking Python's install prefix... " >&6; }
6687if ${vi_cv_path_python3_pfx+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690   vi_cv_path_python3_pfx=`
6691       ${vi_cv_path_python3} -c \
6692       "import sys; print(sys.prefix)"`
6693fi
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6695$as_echo "$vi_cv_path_python3_pfx" >&6; }
6696
6697            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6698$as_echo_n "checking Python's execution prefix... " >&6; }
6699if ${vi_cv_path_python3_epfx+:} false; then :
6700  $as_echo_n "(cached) " >&6
6701else
6702   vi_cv_path_python3_epfx=`
6703       ${vi_cv_path_python3} -c \
6704       "import sys; print(sys.exec_prefix)"`
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6707$as_echo "$vi_cv_path_python3_epfx" >&6; }
6708
6709
6710      if ${vi_cv_path_python3path+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713   vi_cv_path_python3path=`
6714       unset PYTHONPATH;
6715       ${vi_cv_path_python3} -c \
6716       "import sys, string; print(':'.join(sys.path))"`
6717fi
6718
6719
6720
6721
6722# Check whether --with-python3-config-dir was given.
6723if test "${with_python3_config_dir+set}" = set; then :
6724  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1
6725fi
6726
6727
6728      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6729$as_echo_n "checking Python's configuration directory... " >&6; }
6730if ${vi_cv_path_python3_conf+:} false; then :
6731  $as_echo_n "(cached) " >&6
6732else
6733
6734       vi_cv_path_python3_conf=
6735       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6736       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6737       if test -d "$d" && test -f "$d/config.c"; then
6738         vi_cv_path_python3_conf="$d"
6739       else
6740         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6741	   for subdir in lib64 lib share; do
6742	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6743	     if test -d "$d" && test -f "$d/config.c"; then
6744	       vi_cv_path_python3_conf="$d"
6745	     fi
6746	   done
6747         done
6748       fi
6749
6750fi
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6752$as_echo "$vi_cv_path_python3_conf" >&6; }
6753
6754      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6755
6756      if test "X$PYTHON3_CONFDIR" = "X"; then
6757        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6758$as_echo "can't find it!" >&6; }
6759      else
6760
6761                        if ${vi_cv_path_python3_plibs+:} false; then :
6762  $as_echo_n "(cached) " >&6
6763else
6764
6765            pwd=`pwd`
6766            tmp_mkf="$pwd/config-PyMake$$"
6767            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6768__:
6769	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6770	@echo "python3_LIBS='$(LIBS)'"
6771	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6772	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6773	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6774eof
6775	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6776	    rm -f -- "${tmp_mkf}"
6777	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6778	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6779	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6780	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6781
6782fi
6783
6784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6785$as_echo_n "checking Python3's dll name... " >&6; }
6786if ${vi_cv_dll_name_python3+:} false; then :
6787  $as_echo_n "(cached) " >&6
6788else
6789
6790	  if test "X$python3_DLLLIBRARY" != "X"; then
6791	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6792	  else
6793	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6794	  fi
6795
6796fi
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6798$as_echo "$vi_cv_dll_name_python3" >&6; }
6799
6800        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6801        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6802          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6803        else
6804          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}"
6805        fi
6806	if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then
6807	  	  PYTHON3_CFLAGS="${PYTHON3_CFLAGS}  -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6808	fi
6809        PYTHON3_SRC="if_python3.c"
6810        PYTHON3_OBJ="objects/if_python3.o"
6811
6812                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6813$as_echo_n "checking if -pthread should be used... " >&6; }
6814        threadsafe_flag=
6815        thread_lib=
6816                if test "`(uname) 2>/dev/null`" != Darwin; then
6817          test "$GCC" = yes && threadsafe_flag="-pthread"
6818          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6819            threadsafe_flag="-D_THREAD_SAFE"
6820            thread_lib="-pthread"
6821          fi
6822          if test "`(uname) 2>/dev/null`" = SunOS; then
6823            threadsafe_flag="-pthreads"
6824          fi
6825        fi
6826        libs_save_old=$LIBS
6827        if test -n "$threadsafe_flag"; then
6828          cflags_save=$CFLAGS
6829          CFLAGS="$CFLAGS $threadsafe_flag"
6830          LIBS="$LIBS $thread_lib"
6831          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832/* end confdefs.h.  */
6833
6834int
6835main ()
6836{
6837
6838  ;
6839  return 0;
6840}
6841_ACEOF
6842if ac_fn_c_try_link "$LINENO"; then :
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6844$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6845else
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }; LIBS=$libs_save_old
6848
6849fi
6850rm -f core conftest.err conftest.$ac_objext \
6851    conftest$ac_exeext conftest.$ac_ext
6852          CFLAGS=$cflags_save
6853        else
6854          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856        fi
6857
6858                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6859$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6860        cflags_save=$CFLAGS
6861        libs_save=$LIBS
6862        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6863        LIBS="$LIBS $PYTHON3_LIBS"
6864        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865/* end confdefs.h.  */
6866
6867int
6868main ()
6869{
6870
6871  ;
6872  return 0;
6873}
6874_ACEOF
6875if ac_fn_c_try_link "$LINENO"; then :
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6877$as_echo "yes" >&6; }; python3_ok=yes
6878else
6879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6880$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6881fi
6882rm -f core conftest.err conftest.$ac_objext \
6883    conftest$ac_exeext conftest.$ac_ext
6884        CFLAGS=$cflags_save
6885        LIBS=$libs_save
6886        if test "$python3_ok" = yes; then
6887          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6888
6889        else
6890          LIBS=$libs_save_old
6891          PYTHON3_SRC=
6892          PYTHON3_OBJ=
6893          PYTHON3_LIBS=
6894          PYTHON3_CFLAGS=
6895        fi
6896      fi
6897    else
6898      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6899$as_echo "too old" >&6; }
6900    fi
6901  fi
6902  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6903    as_fn_error $? "could not configure python3" "$LINENO" 5
6904  fi
6905fi
6906
6907
6908
6909
6910
6911
6912if test "$python_ok" = yes && test "$python3_ok" = yes; then
6913  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6914
6915  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6916
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6918$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6919  cflags_save=$CFLAGS
6920  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6921  libs_save=$LIBS
6922    LIBS="-ldl $LIBS"
6923  if test "$cross_compiling" = yes; then :
6924  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6926as_fn_error $? "cannot run test program while cross compiling
6927See \`config.log' for more details" "$LINENO" 5; }
6928else
6929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h.  */
6931
6932    #include <dlfcn.h>
6933    /* If this program fails, then RTLD_GLOBAL is needed.
6934     * RTLD_GLOBAL will be used and then it is not possible to
6935     * have both python versions enabled in the same vim instance.
6936     * Only the first python version used will be switched on.
6937     */
6938
6939    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6940    {
6941      int needed = 0;
6942      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6943      if (pylib != 0)
6944      {
6945          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6946          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6947          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6948          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6949          (*pfx)(prefix);
6950          (*init)();
6951          needed = (*simple)("import termios") == -1;
6952          (*final)();
6953          dlclose(pylib);
6954      }
6955      return !needed;
6956    }
6957
6958    int main(int argc, char** argv)
6959    {
6960      int not_needed = 0;
6961      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6962            not_needed = 1;
6963      return !not_needed;
6964    }
6965_ACEOF
6966if ac_fn_c_try_run "$LINENO"; then :
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6968$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6969
6970else
6971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972$as_echo "no" >&6; }
6973fi
6974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6975  conftest.$ac_objext conftest.beam conftest.$ac_ext
6976fi
6977
6978
6979  CFLAGS=$cflags_save
6980  LIBS=$libs_save
6981
6982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6983$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6984  cflags_save=$CFLAGS
6985  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6986  libs_save=$LIBS
6987    LIBS="-ldl $LIBS"
6988  if test "$cross_compiling" = yes; then :
6989  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6991as_fn_error $? "cannot run test program while cross compiling
6992See \`config.log' for more details" "$LINENO" 5; }
6993else
6994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h.  */
6996
6997    #include <dlfcn.h>
6998    #include <wchar.h>
6999    /* If this program fails, then RTLD_GLOBAL is needed.
7000     * RTLD_GLOBAL will be used and then it is not possible to
7001     * have both python versions enabled in the same vim instance.
7002     * Only the first python version used will be switched on.
7003     */
7004
7005    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
7006    {
7007      int needed = 0;
7008      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
7009      if (pylib != 0)
7010      {
7011          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
7012          void (*init)(void) = dlsym(pylib, "Py_Initialize");
7013          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
7014          void (*final)(void) = dlsym(pylib, "Py_Finalize");
7015          (*pfx)(prefix);
7016          (*init)();
7017          needed = (*simple)("import termios") == -1;
7018          (*final)();
7019          dlclose(pylib);
7020      }
7021      return !needed;
7022    }
7023
7024    int main(int argc, char** argv)
7025    {
7026      int not_needed = 0;
7027      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
7028            not_needed = 1;
7029      return !not_needed;
7030    }
7031_ACEOF
7032if ac_fn_c_try_run "$LINENO"; then :
7033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7034$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
7035
7036else
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038$as_echo "no" >&6; }
7039fi
7040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7041  conftest.$ac_objext conftest.beam conftest.$ac_ext
7042fi
7043
7044
7045  CFLAGS=$cflags_save
7046  LIBS=$libs_save
7047
7048  PYTHON_SRC="if_python.c"
7049  PYTHON_OBJ="objects/if_python.o"
7050  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7051  PYTHON_LIBS=
7052  PYTHON3_SRC="if_python3.c"
7053  PYTHON3_OBJ="objects/if_python3.o"
7054  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7055  PYTHON3_LIBS=
7056elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
7057  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
7058
7059  PYTHON_SRC="if_python.c"
7060  PYTHON_OBJ="objects/if_python.o"
7061  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7062  PYTHON_LIBS=
7063elif test "$python_ok" = yes; then
7064      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
7065$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
7066  cflags_save=$CFLAGS
7067  libs_save=$LIBS
7068  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
7069  LIBS="$LIBS $PYTHON_LIBS"
7070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071/* end confdefs.h.  */
7072
7073int
7074main ()
7075{
7076
7077  ;
7078  return 0;
7079}
7080_ACEOF
7081if ac_fn_c_try_link "$LINENO"; then :
7082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7083$as_echo "yes" >&6; }; fpie_ok=yes
7084else
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }; fpie_ok=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext \
7089    conftest$ac_exeext conftest.$ac_ext
7090  CFLAGS=$cflags_save
7091  LIBS=$libs_save
7092  if test $fpie_ok = yes; then
7093    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
7094  fi
7095elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
7096  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
7097
7098  PYTHON3_SRC="if_python3.c"
7099  PYTHON3_OBJ="objects/if_python3.o"
7100  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7101  PYTHON3_LIBS=
7102elif test "$python3_ok" = yes; then
7103      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
7104$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
7105  cflags_save=$CFLAGS
7106  libs_save=$LIBS
7107  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
7108  LIBS="$LIBS $PYTHON3_LIBS"
7109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110/* end confdefs.h.  */
7111
7112int
7113main ()
7114{
7115
7116  ;
7117  return 0;
7118}
7119_ACEOF
7120if ac_fn_c_try_link "$LINENO"; then :
7121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7122$as_echo "yes" >&6; }; fpie_ok=yes
7123else
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125$as_echo "no" >&6; }; fpie_ok=no
7126fi
7127rm -f core conftest.err conftest.$ac_objext \
7128    conftest$ac_exeext conftest.$ac_ext
7129  CFLAGS=$cflags_save
7130  LIBS=$libs_save
7131  if test $fpie_ok = yes; then
7132    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
7133  fi
7134fi
7135
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
7137$as_echo_n "checking --enable-tclinterp argument... " >&6; }
7138# Check whether --enable-tclinterp was given.
7139if test "${enable_tclinterp+set}" = set; then :
7140  enableval=$enable_tclinterp;
7141else
7142  enable_tclinterp="no"
7143fi
7144
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
7146$as_echo "$enable_tclinterp" >&6; }
7147
7148if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
7149
7150    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
7151$as_echo_n "checking --with-tclsh argument... " >&6; }
7152
7153# Check whether --with-tclsh was given.
7154if test "${with_tclsh+set}" = set; then :
7155  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
7156$as_echo "$tclsh_name" >&6; }
7157else
7158  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159$as_echo "no" >&6; }
7160fi
7161
7162  # Extract the first word of "$tclsh_name", so it can be a program name with args.
7163set dummy $tclsh_name; ac_word=$2
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
7166if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7167  $as_echo_n "(cached) " >&6
7168else
7169  case $vi_cv_path_tcl in
7170  [\\/]* | ?:[\\/]*)
7171  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7172  ;;
7173  *)
7174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177  IFS=$as_save_IFS
7178  test -z "$as_dir" && as_dir=.
7179    for ac_exec_ext in '' $ac_executable_extensions; do
7180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183    break 2
7184  fi
7185done
7186  done
7187IFS=$as_save_IFS
7188
7189  ;;
7190esac
7191fi
7192vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7193if test -n "$vi_cv_path_tcl"; then
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7195$as_echo "$vi_cv_path_tcl" >&6; }
7196else
7197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198$as_echo "no" >&6; }
7199fi
7200
7201
7202
7203
7204    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
7205    tclsh_name="tclsh8.4"
7206    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7207set dummy $tclsh_name; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  case $vi_cv_path_tcl in
7214  [\\/]* | ?:[\\/]*)
7215  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7216  ;;
7217  *)
7218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221  IFS=$as_save_IFS
7222  test -z "$as_dir" && as_dir=.
7223    for ac_exec_ext in '' $ac_executable_extensions; do
7224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227    break 2
7228  fi
7229done
7230  done
7231IFS=$as_save_IFS
7232
7233  ;;
7234esac
7235fi
7236vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7237if test -n "$vi_cv_path_tcl"; then
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7239$as_echo "$vi_cv_path_tcl" >&6; }
7240else
7241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242$as_echo "no" >&6; }
7243fi
7244
7245
7246  fi
7247  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
7248    tclsh_name="tclsh8.2"
7249    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7250set dummy $tclsh_name; ac_word=$2
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252$as_echo_n "checking for $ac_word... " >&6; }
7253if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7254  $as_echo_n "(cached) " >&6
7255else
7256  case $vi_cv_path_tcl in
7257  [\\/]* | ?:[\\/]*)
7258  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7259  ;;
7260  *)
7261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264  IFS=$as_save_IFS
7265  test -z "$as_dir" && as_dir=.
7266    for ac_exec_ext in '' $ac_executable_extensions; do
7267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270    break 2
7271  fi
7272done
7273  done
7274IFS=$as_save_IFS
7275
7276  ;;
7277esac
7278fi
7279vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7280if test -n "$vi_cv_path_tcl"; then
7281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7282$as_echo "$vi_cv_path_tcl" >&6; }
7283else
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285$as_echo "no" >&6; }
7286fi
7287
7288
7289  fi
7290  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
7291    tclsh_name="tclsh8.0"
7292    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7293set dummy $tclsh_name; ac_word=$2
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295$as_echo_n "checking for $ac_word... " >&6; }
7296if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7297  $as_echo_n "(cached) " >&6
7298else
7299  case $vi_cv_path_tcl in
7300  [\\/]* | ?:[\\/]*)
7301  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7302  ;;
7303  *)
7304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307  IFS=$as_save_IFS
7308  test -z "$as_dir" && as_dir=.
7309    for ac_exec_ext in '' $ac_executable_extensions; do
7310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313    break 2
7314  fi
7315done
7316  done
7317IFS=$as_save_IFS
7318
7319  ;;
7320esac
7321fi
7322vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7323if test -n "$vi_cv_path_tcl"; then
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7325$as_echo "$vi_cv_path_tcl" >&6; }
7326else
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328$as_echo "no" >&6; }
7329fi
7330
7331
7332  fi
7333    if test "X$vi_cv_path_tcl" = "X"; then
7334    tclsh_name="tclsh"
7335    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7336set dummy $tclsh_name; ac_word=$2
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338$as_echo_n "checking for $ac_word... " >&6; }
7339if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7340  $as_echo_n "(cached) " >&6
7341else
7342  case $vi_cv_path_tcl in
7343  [\\/]* | ?:[\\/]*)
7344  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7345  ;;
7346  *)
7347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350  IFS=$as_save_IFS
7351  test -z "$as_dir" && as_dir=.
7352    for ac_exec_ext in '' $ac_executable_extensions; do
7353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356    break 2
7357  fi
7358done
7359  done
7360IFS=$as_save_IFS
7361
7362  ;;
7363esac
7364fi
7365vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7366if test -n "$vi_cv_path_tcl"; then
7367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7368$as_echo "$vi_cv_path_tcl" >&6; }
7369else
7370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371$as_echo "no" >&6; }
7372fi
7373
7374
7375  fi
7376  if test "X$vi_cv_path_tcl" != "X"; then
7377    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
7378$as_echo_n "checking Tcl version... " >&6; }
7379    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
7380      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
7381      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
7382$as_echo "$tclver - OK" >&6; };
7383      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 -`
7384      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
7385
7386      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
7387$as_echo_n "checking for location of Tcl include... " >&6; }
7388      if test "x$MACOS_X" != "xyes"; then
7389	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
7390      else
7391		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
7392      fi
7393      TCL_INC=
7394      for try in $tclinc; do
7395	if test -f "$try/tcl.h"; then
7396	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
7397$as_echo "$try/tcl.h" >&6; }
7398	  TCL_INC=$try
7399	  break
7400	fi
7401      done
7402      if test -z "$TCL_INC"; then
7403	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7404$as_echo "<not found>" >&6; }
7405	SKIP_TCL=YES
7406      fi
7407      if test -z "$SKIP_TCL"; then
7408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
7409$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
7410	if test "x$MACOS_X" != "xyes"; then
7411	  tclcnf=`echo $tclinc | sed s/include/lib/g`
7412	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
7413	else
7414	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
7415	fi
7416	for try in $tclcnf; do
7417	  if test -f "$try/tclConfig.sh"; then
7418	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
7419$as_echo "$try/tclConfig.sh" >&6; }
7420	    . "$try/tclConfig.sh"
7421	    	    if test "$enable_tclinterp" = "dynamic"; then
7422	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7423	    else
7424	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7425	    fi
7426	    	    	    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'`
7427	    break
7428	  fi
7429	done
7430	if test -z "$TCL_LIBS"; then
7431	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7432$as_echo "<not found>" >&6; }
7433	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7434$as_echo_n "checking for Tcl library by myself... " >&6; }
7435	  tcllib=`echo $tclinc | sed s/include/lib/g`
7436	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7437	  for ext in .so .a ; do
7438	    for ver in "" $tclver ; do
7439	      for try in $tcllib ; do
7440		trylib=tcl$ver$ext
7441		if test -f "$try/lib$trylib" ; then
7442		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7443$as_echo "$try/lib$trylib" >&6; }
7444		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7445		  if test "`(uname) 2>/dev/null`" = SunOS &&
7446					 uname -r | grep '^5' >/dev/null; then
7447		    TCL_LIBS="$TCL_LIBS -R $try"
7448		  fi
7449		  break 3
7450		fi
7451	      done
7452	    done
7453	  done
7454	  if test -z "$TCL_LIBS"; then
7455	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7456$as_echo "<not found>" >&6; }
7457	    SKIP_TCL=YES
7458	  fi
7459	fi
7460	if test -z "$SKIP_TCL"; then
7461	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7462
7463	  TCL_SRC=if_tcl.c
7464	  TCL_OBJ=objects/if_tcl.o
7465	  TCL_PRO=if_tcl.pro
7466	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7467	fi
7468      fi
7469    else
7470      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7471$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7472    fi
7473  fi
7474  if test "$enable_tclinterp" = "dynamic"; then
7475    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7476      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7477
7478      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7479    fi
7480  fi
7481  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7482    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7483  fi
7484fi
7485
7486
7487
7488
7489
7490
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7492$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7493# Check whether --enable-rubyinterp was given.
7494if test "${enable_rubyinterp+set}" = set; then :
7495  enableval=$enable_rubyinterp;
7496else
7497  enable_rubyinterp="no"
7498fi
7499
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7501$as_echo "$enable_rubyinterp" >&6; }
7502if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7503  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7504    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7505  fi
7506
7507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7508$as_echo_n "checking --with-ruby-command argument... " >&6; }
7509
7510
7511# Check whether --with-ruby-command was given.
7512if test "${with_ruby_command+set}" = set; then :
7513  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7514$as_echo "$RUBY_CMD" >&6; }
7515else
7516  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7517$as_echo "defaulting to $RUBY_CMD" >&6; }
7518fi
7519
7520  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7521set dummy $RUBY_CMD; ac_word=$2
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523$as_echo_n "checking for $ac_word... " >&6; }
7524if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  case $vi_cv_path_ruby in
7528  [\\/]* | ?:[\\/]*)
7529  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7530  ;;
7531  *)
7532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  test -z "$as_dir" && as_dir=.
7537    for ac_exec_ext in '' $ac_executable_extensions; do
7538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541    break 2
7542  fi
7543done
7544  done
7545IFS=$as_save_IFS
7546
7547  ;;
7548esac
7549fi
7550vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7551if test -n "$vi_cv_path_ruby"; then
7552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7553$as_echo "$vi_cv_path_ruby" >&6; }
7554else
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556$as_echo "no" >&6; }
7557fi
7558
7559
7560  if test "X$vi_cv_path_ruby" != "X"; then
7561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7562$as_echo_n "checking Ruby version... " >&6; }
7563    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7564      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7565$as_echo "OK" >&6; }
7566      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7567$as_echo_n "checking Ruby rbconfig... " >&6; }
7568      ruby_rbconfig="RbConfig"
7569      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7570	ruby_rbconfig="Config"
7571      fi
7572      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7573$as_echo "$ruby_rbconfig" >&6; }
7574      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7575$as_echo_n "checking Ruby header files... " >&6; }
7576      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7577      if test "X$rubyhdrdir" != "X"; then
7578	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7579$as_echo "$rubyhdrdir" >&6; }
7580	RUBY_CFLAGS="-I$rubyhdrdir"
7581        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7582        if test -d "$rubyarchdir"; then
7583          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7584        fi
7585        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7586	if test "X$rubyversion" = "X"; then
7587	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7588	fi
7589        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7590	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7591	if test "X$rubylibs" != "X"; then
7592	  RUBY_LIBS="$rubylibs"
7593	fi
7594	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7595	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7596	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7597	if test -f "$rubylibdir/$librubya"; then
7598	  librubyarg="$librubyarg"
7599	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7600	elif test "$librubyarg" = "libruby.a"; then
7601	  	  librubyarg="-lruby"
7602	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7603	fi
7604
7605	if test "X$librubyarg" != "X"; then
7606	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7607	fi
7608	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7609	if test "X$rubyldflags" != "X"; then
7610	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7611	  if test "X$rubyldflags" != "X"; then
7612	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7613	      LDFLAGS="$rubyldflags $LDFLAGS"
7614	    fi
7615	  fi
7616	fi
7617	RUBY_SRC="if_ruby.c"
7618	RUBY_OBJ="objects/if_ruby.o"
7619	RUBY_PRO="if_ruby.pro"
7620	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7621
7622	if test "$enable_rubyinterp" = "dynamic"; then
7623	  libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"`
7624	  if test -z "$libruby_soname"; then
7625	    libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7626	  fi
7627	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7628
7629	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
7630	  RUBY_LIBS=
7631	fi
7632      else
7633	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7634$as_echo "not found; disabling Ruby" >&6; }
7635      fi
7636    else
7637      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7638$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7639    fi
7640  fi
7641
7642  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7643    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7644  fi
7645fi
7646
7647
7648
7649
7650
7651
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7653$as_echo_n "checking --enable-cscope argument... " >&6; }
7654# Check whether --enable-cscope was given.
7655if test "${enable_cscope+set}" = set; then :
7656  enableval=$enable_cscope;
7657else
7658  enable_cscope="no"
7659fi
7660
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7662$as_echo "$enable_cscope" >&6; }
7663if test "$enable_cscope" = "yes"; then
7664  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7665
7666fi
7667
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7669$as_echo_n "checking --disable-netbeans argument... " >&6; }
7670# Check whether --enable-netbeans was given.
7671if test "${enable_netbeans+set}" = set; then :
7672  enableval=$enable_netbeans;
7673else
7674  enable_netbeans="yes"
7675fi
7676
7677if test "$enable_netbeans" = "yes"; then
7678  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7680$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7681    enable_netbeans="no"
7682  else
7683    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684$as_echo "no" >&6; }
7685  fi
7686else
7687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7688$as_echo "yes" >&6; }
7689fi
7690
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7692$as_echo_n "checking --disable-channel argument... " >&6; }
7693# Check whether --enable-channel was given.
7694if test "${enable_channel+set}" = set; then :
7695  enableval=$enable_channel;
7696else
7697  enable_channel="yes"
7698fi
7699
7700if test "$enable_channel" = "yes"; then
7701  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7703$as_echo "cannot use channels with tiny or small features" >&6; }
7704    enable_channel="no"
7705  else
7706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
7708  fi
7709else
7710  if test "$enable_netbeans" = "yes"; then
7711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7712$as_echo "yes, netbeans also disabled" >&6; }
7713    enable_netbeans="no"
7714  else
7715    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7716$as_echo "yes" >&6; }
7717  fi
7718fi
7719
7720if test "$enable_channel" = "yes"; then
7721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7722$as_echo_n "checking for socket in -lsocket... " >&6; }
7723if ${ac_cv_lib_socket_socket+:} false; then :
7724  $as_echo_n "(cached) " >&6
7725else
7726  ac_check_lib_save_LIBS=$LIBS
7727LIBS="-lsocket  $LIBS"
7728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729/* end confdefs.h.  */
7730
7731/* Override any GCC internal prototype to avoid an error.
7732   Use char because int might match the return type of a GCC
7733   builtin and then its argument prototype would still apply.  */
7734#ifdef __cplusplus
7735extern "C"
7736#endif
7737char socket ();
7738int
7739main ()
7740{
7741return socket ();
7742  ;
7743  return 0;
7744}
7745_ACEOF
7746if ac_fn_c_try_link "$LINENO"; then :
7747  ac_cv_lib_socket_socket=yes
7748else
7749  ac_cv_lib_socket_socket=no
7750fi
7751rm -f core conftest.err conftest.$ac_objext \
7752    conftest$ac_exeext conftest.$ac_ext
7753LIBS=$ac_check_lib_save_LIBS
7754fi
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7756$as_echo "$ac_cv_lib_socket_socket" >&6; }
7757if test "x$ac_cv_lib_socket_socket" = xyes; then :
7758  cat >>confdefs.h <<_ACEOF
7759#define HAVE_LIBSOCKET 1
7760_ACEOF
7761
7762  LIBS="-lsocket $LIBS"
7763
7764fi
7765
7766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7767$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7768if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7769  $as_echo_n "(cached) " >&6
7770else
7771  ac_check_lib_save_LIBS=$LIBS
7772LIBS="-lnsl  $LIBS"
7773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775
7776/* Override any GCC internal prototype to avoid an error.
7777   Use char because int might match the return type of a GCC
7778   builtin and then its argument prototype would still apply.  */
7779#ifdef __cplusplus
7780extern "C"
7781#endif
7782char gethostbyname ();
7783int
7784main ()
7785{
7786return gethostbyname ();
7787  ;
7788  return 0;
7789}
7790_ACEOF
7791if ac_fn_c_try_link "$LINENO"; then :
7792  ac_cv_lib_nsl_gethostbyname=yes
7793else
7794  ac_cv_lib_nsl_gethostbyname=no
7795fi
7796rm -f core conftest.err conftest.$ac_objext \
7797    conftest$ac_exeext conftest.$ac_ext
7798LIBS=$ac_check_lib_save_LIBS
7799fi
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7801$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7802if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7803  cat >>confdefs.h <<_ACEOF
7804#define HAVE_LIBNSL 1
7805_ACEOF
7806
7807  LIBS="-lnsl $LIBS"
7808
7809fi
7810
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5
7812$as_echo_n "checking whether compiling with process communication is possible... " >&6; }
7813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h.  */
7815
7816#include <stdio.h>
7817#include <stdlib.h>
7818#include <stdarg.h>
7819#include <fcntl.h>
7820#include <netdb.h>
7821#include <netinet/in.h>
7822#include <errno.h>
7823#include <sys/types.h>
7824#include <sys/socket.h>
7825	/* Check bitfields */
7826	struct nbbuf {
7827	unsigned int  initDone:1;
7828	unsigned short signmaplen;
7829	};
7830
7831int
7832main ()
7833{
7834
7835		/* Check creating a socket. */
7836		struct sockaddr_in server;
7837		(void)socket(AF_INET, SOCK_STREAM, 0);
7838		(void)htons(100);
7839		(void)gethostbyname("microsoft.com");
7840		if (errno == ECONNREFUSED)
7841		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7842
7843  ;
7844  return 0;
7845}
7846_ACEOF
7847if ac_fn_c_try_link "$LINENO"; then :
7848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7849$as_echo "yes" >&6; }
7850else
7851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no"
7853fi
7854rm -f core conftest.err conftest.$ac_objext \
7855    conftest$ac_exeext conftest.$ac_ext
7856fi
7857if test "$enable_netbeans" = "yes"; then
7858  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7859
7860  NETBEANS_SRC="netbeans.c"
7861
7862  NETBEANS_OBJ="objects/netbeans.o"
7863
7864fi
7865if test "$enable_channel" = "yes"; then
7866  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
7867
7868  CHANNEL_SRC="channel.c"
7869
7870  CHANNEL_OBJ="objects/channel.o"
7871
7872fi
7873
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
7875$as_echo_n "checking --enable-terminal argument... " >&6; }
7876# Check whether --enable-terminal was given.
7877if test "${enable_terminal+set}" = set; then :
7878  enableval=$enable_terminal;
7879else
7880  enable_terminal="auto"
7881fi
7882
7883if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
7884  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7885    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
7886$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
7887    enable_terminal="no"
7888  else
7889    if test "$enable_terminal" = "auto"; then
7890      enable_terminal="yes"
7891      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
7892$as_echo "defaulting to yes" >&6; }
7893    else
7894      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7895$as_echo "yes" >&6; }
7896    fi
7897  fi
7898else
7899  if test "$enable_terminal" = "auto"; then
7900    enable_terminal="no"
7901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
7902$as_echo "defaulting to no" >&6; }
7903  else
7904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905$as_echo "no" >&6; }
7906  fi
7907fi
7908if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then
7909  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
7910
7911  TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/creen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c"
7912
7913  TERM_OBJ="objects/vterm_encoding.o objects/vterm_keyboard.o objects/vterm_mouse.o objects/vterm_parser.o objects/vterm_pen.o objects/vterm_screen.o objects/vterm_state.o objects/vterm_unicode.o objects/vterm_vterm.o"
7914
7915  TERM_TEST="test_libvterm"
7916
7917fi
7918
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5
7920$as_echo_n "checking --enable-autoservername argument... " >&6; }
7921# Check whether --enable-autoservername was given.
7922if test "${enable_autoservername+set}" = set; then :
7923  enableval=$enable_autoservername;
7924else
7925  enable_autoservername="no"
7926fi
7927
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5
7929$as_echo "$enable_autoservername" >&6; }
7930if test "$enable_autoservername" = "yes"; then
7931  $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h
7932
7933fi
7934
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7936$as_echo_n "checking --enable-multibyte argument... " >&6; }
7937# Check whether --enable-multibyte was given.
7938if test "${enable_multibyte+set}" = set; then :
7939  enableval=$enable_multibyte;
7940else
7941  enable_multibyte="yes"
7942fi
7943
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
7945$as_echo "$enable_multibyte" >&6; }
7946if test "$enable_multibyte" != "yes"; then
7947  as_fn_error $? "The multi-byte feature can no longer be disabled. If you have
7948		a problem with this, discuss on the Vim mailing list." "$LINENO" 5
7949fi
7950
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5
7952$as_echo_n "checking --disable-rightleft argument... " >&6; }
7953# Check whether --enable-rightleft was given.
7954if test "${enable_rightleft+set}" = set; then :
7955  enableval=$enable_rightleft;
7956else
7957  enable_rightleft="yes"
7958fi
7959
7960if test "$enable_rightleft" = "yes"; then
7961	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962$as_echo "no" >&6; }
7963else
7964	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7965$as_echo "yes" >&6; }
7966	$as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h
7967
7968fi
7969
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5
7971$as_echo_n "checking --disable-arabic argument... " >&6; }
7972# Check whether --enable-arabic was given.
7973if test "${enable_arabic+set}" = set; then :
7974  enableval=$enable_arabic;
7975else
7976  enable_arabic="yes"
7977fi
7978
7979if test "$enable_arabic" = "yes"; then
7980	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
7982else
7983	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7984$as_echo "yes" >&6; }
7985	$as_echo "#define DISABLE_ARABIC 1" >>confdefs.h
7986
7987fi
7988
7989# Check whether --enable-farsi was given.
7990if test "${enable_farsi+set}" = set; then :
7991  enableval=$enable_farsi;
7992fi
7993
7994
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
7996$as_echo_n "checking --enable-hangulinput argument... " >&6; }
7997# Check whether --enable-hangulinput was given.
7998if test "${enable_hangulinput+set}" = set; then :
7999  enableval=$enable_hangulinput;
8000else
8001  enable_hangulinput="no"
8002fi
8003
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
8005$as_echo "$enable_hangulinput" >&6; }
8006
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
8008$as_echo_n "checking --enable-xim argument... " >&6; }
8009# Check whether --enable-xim was given.
8010if test "${enable_xim+set}" = set; then :
8011  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
8012$as_echo "$enable_xim" >&6; }
8013else
8014  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
8015$as_echo "defaulting to auto" >&6; }
8016fi
8017
8018
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
8020$as_echo_n "checking --enable-fontset argument... " >&6; }
8021# Check whether --enable-fontset was given.
8022if test "${enable_fontset+set}" = set; then :
8023  enableval=$enable_fontset;
8024else
8025  enable_fontset="no"
8026fi
8027
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
8029$as_echo "$enable_fontset" >&6; }
8030
8031test -z "$with_x" && with_x=yes
8032test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
8033if test "$with_x" = no; then
8034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
8035$as_echo "defaulting to: don't HAVE_X11" >&6; }
8036else
8037
8038  # Extract the first word of "xmkmf", so it can be a program name with args.
8039set dummy xmkmf; ac_word=$2
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041$as_echo_n "checking for $ac_word... " >&6; }
8042if ${ac_cv_path_xmkmfpath+:} false; then :
8043  $as_echo_n "(cached) " >&6
8044else
8045  case $xmkmfpath in
8046  [\\/]* | ?:[\\/]*)
8047  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
8048  ;;
8049  *)
8050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051for as_dir in $PATH
8052do
8053  IFS=$as_save_IFS
8054  test -z "$as_dir" && as_dir=.
8055    for ac_exec_ext in '' $ac_executable_extensions; do
8056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
8058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059    break 2
8060  fi
8061done
8062  done
8063IFS=$as_save_IFS
8064
8065  ;;
8066esac
8067fi
8068xmkmfpath=$ac_cv_path_xmkmfpath
8069if test -n "$xmkmfpath"; then
8070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
8071$as_echo "$xmkmfpath" >&6; }
8072else
8073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074$as_echo "no" >&6; }
8075fi
8076
8077
8078
8079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8080$as_echo_n "checking for X... " >&6; }
8081
8082
8083# Check whether --with-x was given.
8084if test "${with_x+set}" = set; then :
8085  withval=$with_x;
8086fi
8087
8088# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8089if test "x$with_x" = xno; then
8090  # The user explicitly disabled X.
8091  have_x=disabled
8092else
8093  case $x_includes,$x_libraries in #(
8094    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8095    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  # One or both of the vars are not set, and there is no cached value.
8099ac_x_includes=no ac_x_libraries=no
8100rm -f -r conftest.dir
8101if mkdir conftest.dir; then
8102  cd conftest.dir
8103  cat >Imakefile <<'_ACEOF'
8104incroot:
8105	@echo incroot='${INCROOT}'
8106usrlibdir:
8107	@echo usrlibdir='${USRLIBDIR}'
8108libdir:
8109	@echo libdir='${LIBDIR}'
8110_ACEOF
8111  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8112    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8113    for ac_var in incroot usrlibdir libdir; do
8114      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8115    done
8116    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8117    for ac_extension in a so sl dylib la dll; do
8118      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8119	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8120	ac_im_usrlibdir=$ac_im_libdir; break
8121      fi
8122    done
8123    # Screen out bogus values from the imake configuration.  They are
8124    # bogus both because they are the default anyway, and because
8125    # using them would break gcc on systems where it needs fixed includes.
8126    case $ac_im_incroot in
8127	/usr/include) ac_x_includes= ;;
8128	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8129    esac
8130    case $ac_im_usrlibdir in
8131	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8132	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8133    esac
8134  fi
8135  cd ..
8136  rm -f -r conftest.dir
8137fi
8138
8139# Standard set of common directories for X headers.
8140# Check X11 before X11Rn because it is often a symlink to the current release.
8141ac_x_header_dirs='
8142/usr/X11/include
8143/usr/X11R7/include
8144/usr/X11R6/include
8145/usr/X11R5/include
8146/usr/X11R4/include
8147
8148/usr/include/X11
8149/usr/include/X11R7
8150/usr/include/X11R6
8151/usr/include/X11R5
8152/usr/include/X11R4
8153
8154/usr/local/X11/include
8155/usr/local/X11R7/include
8156/usr/local/X11R6/include
8157/usr/local/X11R5/include
8158/usr/local/X11R4/include
8159
8160/usr/local/include/X11
8161/usr/local/include/X11R7
8162/usr/local/include/X11R6
8163/usr/local/include/X11R5
8164/usr/local/include/X11R4
8165
8166/usr/X386/include
8167/usr/x386/include
8168/usr/XFree86/include/X11
8169
8170/usr/include
8171/usr/local/include
8172/usr/unsupported/include
8173/usr/athena/include
8174/usr/local/x11r5/include
8175/usr/lpp/Xamples/include
8176
8177/usr/openwin/include
8178/usr/openwin/share/include'
8179
8180if test "$ac_x_includes" = no; then
8181  # Guess where to find include files, by looking for Xlib.h.
8182  # First, try using that file with no special directory specified.
8183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h.  */
8185#include <X11/Xlib.h>
8186_ACEOF
8187if ac_fn_c_try_cpp "$LINENO"; then :
8188  # We can compile using X headers with no special include directory.
8189ac_x_includes=
8190else
8191  for ac_dir in $ac_x_header_dirs; do
8192  if test -r "$ac_dir/X11/Xlib.h"; then
8193    ac_x_includes=$ac_dir
8194    break
8195  fi
8196done
8197fi
8198rm -f conftest.err conftest.i conftest.$ac_ext
8199fi # $ac_x_includes = no
8200
8201if test "$ac_x_libraries" = no; then
8202  # Check for the libraries.
8203  # See if we find them without any special options.
8204  # Don't add to $LIBS permanently.
8205  ac_save_LIBS=$LIBS
8206  LIBS="-lX11 $LIBS"
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209#include <X11/Xlib.h>
8210int
8211main ()
8212{
8213XrmInitialize ()
8214  ;
8215  return 0;
8216}
8217_ACEOF
8218if ac_fn_c_try_link "$LINENO"; then :
8219  LIBS=$ac_save_LIBS
8220# We can link X programs with no special library path.
8221ac_x_libraries=
8222else
8223  LIBS=$ac_save_LIBS
8224for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8225do
8226  # Don't even attempt the hair of trying to link an X program!
8227  for ac_extension in a so sl dylib la dll; do
8228    if test -r "$ac_dir/libX11.$ac_extension"; then
8229      ac_x_libraries=$ac_dir
8230      break 2
8231    fi
8232  done
8233done
8234fi
8235rm -f core conftest.err conftest.$ac_objext \
8236    conftest$ac_exeext conftest.$ac_ext
8237fi # $ac_x_libraries = no
8238
8239case $ac_x_includes,$ac_x_libraries in #(
8240  no,* | *,no | *\'*)
8241    # Didn't find X, or a directory has "'" in its name.
8242    ac_cv_have_x="have_x=no";; #(
8243  *)
8244    # Record where we found X for the cache.
8245    ac_cv_have_x="have_x=yes\
8246	ac_x_includes='$ac_x_includes'\
8247	ac_x_libraries='$ac_x_libraries'"
8248esac
8249fi
8250;; #(
8251    *) have_x=yes;;
8252  esac
8253  eval "$ac_cv_have_x"
8254fi # $with_x != no
8255
8256if test "$have_x" != yes; then
8257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8258$as_echo "$have_x" >&6; }
8259  no_x=yes
8260else
8261  # If each of the values was on the command line, it overrides each guess.
8262  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8263  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8264  # Update the cache value to reflect the command line values.
8265  ac_cv_have_x="have_x=yes\
8266	ac_x_includes='$x_includes'\
8267	ac_x_libraries='$x_libraries'"
8268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8269$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8270fi
8271
8272if test "$no_x" = yes; then
8273  # Not all programs may use this symbol, but it does not hurt to define it.
8274
8275$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8276
8277  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8278else
8279  if test -n "$x_includes"; then
8280    X_CFLAGS="$X_CFLAGS -I$x_includes"
8281  fi
8282
8283  # It would also be nice to do this for all -L options, not just this one.
8284  if test -n "$x_libraries"; then
8285    X_LIBS="$X_LIBS -L$x_libraries"
8286    # For Solaris; some versions of Sun CC require a space after -R and
8287    # others require no space.  Words are not sufficient . . . .
8288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8289$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8290    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8291    ac_xsave_c_werror_flag=$ac_c_werror_flag
8292    ac_c_werror_flag=yes
8293    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h.  */
8295
8296int
8297main ()
8298{
8299
8300  ;
8301  return 0;
8302}
8303_ACEOF
8304if ac_fn_c_try_link "$LINENO"; then :
8305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306$as_echo "no" >&6; }
8307       X_LIBS="$X_LIBS -R$x_libraries"
8308else
8309  LIBS="$ac_xsave_LIBS -R $x_libraries"
8310       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311/* end confdefs.h.  */
8312
8313int
8314main ()
8315{
8316
8317  ;
8318  return 0;
8319}
8320_ACEOF
8321if ac_fn_c_try_link "$LINENO"; then :
8322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8323$as_echo "yes" >&6; }
8324	  X_LIBS="$X_LIBS -R $x_libraries"
8325else
8326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8327$as_echo "neither works" >&6; }
8328fi
8329rm -f core conftest.err conftest.$ac_objext \
8330    conftest$ac_exeext conftest.$ac_ext
8331fi
8332rm -f core conftest.err conftest.$ac_objext \
8333    conftest$ac_exeext conftest.$ac_ext
8334    ac_c_werror_flag=$ac_xsave_c_werror_flag
8335    LIBS=$ac_xsave_LIBS
8336  fi
8337
8338  # Check for system-dependent libraries X programs must link with.
8339  # Do this before checking for the system-independent R6 libraries
8340  # (-lICE), since we may need -lsocket or whatever for X linking.
8341
8342  if test "$ISC" = yes; then
8343    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8344  else
8345    # Martyn Johnson says this is needed for Ultrix, if the X
8346    # libraries were built with DECnet support.  And Karl Berry says
8347    # the Alpha needs dnet_stub (dnet does not exist).
8348    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8349    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350/* end confdefs.h.  */
8351
8352/* Override any GCC internal prototype to avoid an error.
8353   Use char because int might match the return type of a GCC
8354   builtin and then its argument prototype would still apply.  */
8355#ifdef __cplusplus
8356extern "C"
8357#endif
8358char XOpenDisplay ();
8359int
8360main ()
8361{
8362return XOpenDisplay ();
8363  ;
8364  return 0;
8365}
8366_ACEOF
8367if ac_fn_c_try_link "$LINENO"; then :
8368
8369else
8370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8371$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8372if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8373  $as_echo_n "(cached) " >&6
8374else
8375  ac_check_lib_save_LIBS=$LIBS
8376LIBS="-ldnet  $LIBS"
8377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378/* end confdefs.h.  */
8379
8380/* Override any GCC internal prototype to avoid an error.
8381   Use char because int might match the return type of a GCC
8382   builtin and then its argument prototype would still apply.  */
8383#ifdef __cplusplus
8384extern "C"
8385#endif
8386char dnet_ntoa ();
8387int
8388main ()
8389{
8390return dnet_ntoa ();
8391  ;
8392  return 0;
8393}
8394_ACEOF
8395if ac_fn_c_try_link "$LINENO"; then :
8396  ac_cv_lib_dnet_dnet_ntoa=yes
8397else
8398  ac_cv_lib_dnet_dnet_ntoa=no
8399fi
8400rm -f core conftest.err conftest.$ac_objext \
8401    conftest$ac_exeext conftest.$ac_ext
8402LIBS=$ac_check_lib_save_LIBS
8403fi
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8405$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8406if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8407  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8408fi
8409
8410    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8411      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8412$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8413if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416  ac_check_lib_save_LIBS=$LIBS
8417LIBS="-ldnet_stub  $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 dnet_ntoa ();
8428int
8429main ()
8430{
8431return dnet_ntoa ();
8432  ;
8433  return 0;
8434}
8435_ACEOF
8436if ac_fn_c_try_link "$LINENO"; then :
8437  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8438else
8439  ac_cv_lib_dnet_stub_dnet_ntoa=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_dnet_stub_dnet_ntoa" >&5
8446$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8447if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8448  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8449fi
8450
8451    fi
8452fi
8453rm -f core conftest.err conftest.$ac_objext \
8454    conftest$ac_exeext conftest.$ac_ext
8455    LIBS="$ac_xsave_LIBS"
8456
8457    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
8458    # to get the SysV transport functions.
8459    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8460    # needs -lnsl.
8461    # The nsl library prevents programs from opening the X display
8462    # on Irix 5.2, according to T.E. Dickey.
8463    # The functions gethostbyname, getservbyname, and inet_addr are
8464    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8465    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8466if test "x$ac_cv_func_gethostbyname" = xyes; then :
8467
8468fi
8469
8470    if test $ac_cv_func_gethostbyname = no; then
8471      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8472$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8473if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8474  $as_echo_n "(cached) " >&6
8475else
8476  ac_check_lib_save_LIBS=$LIBS
8477LIBS="-lnsl  $LIBS"
8478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h.  */
8480
8481/* Override any GCC internal prototype to avoid an error.
8482   Use char because int might match the return type of a GCC
8483   builtin and then its argument prototype would still apply.  */
8484#ifdef __cplusplus
8485extern "C"
8486#endif
8487char gethostbyname ();
8488int
8489main ()
8490{
8491return gethostbyname ();
8492  ;
8493  return 0;
8494}
8495_ACEOF
8496if ac_fn_c_try_link "$LINENO"; then :
8497  ac_cv_lib_nsl_gethostbyname=yes
8498else
8499  ac_cv_lib_nsl_gethostbyname=no
8500fi
8501rm -f core conftest.err conftest.$ac_objext \
8502    conftest$ac_exeext conftest.$ac_ext
8503LIBS=$ac_check_lib_save_LIBS
8504fi
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8506$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8507if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8508  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8509fi
8510
8511      if test $ac_cv_lib_nsl_gethostbyname = no; then
8512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8513$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8514if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8515  $as_echo_n "(cached) " >&6
8516else
8517  ac_check_lib_save_LIBS=$LIBS
8518LIBS="-lbsd  $LIBS"
8519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520/* end confdefs.h.  */
8521
8522/* Override any GCC internal prototype to avoid an error.
8523   Use char because int might match the return type of a GCC
8524   builtin and then its argument prototype would still apply.  */
8525#ifdef __cplusplus
8526extern "C"
8527#endif
8528char gethostbyname ();
8529int
8530main ()
8531{
8532return gethostbyname ();
8533  ;
8534  return 0;
8535}
8536_ACEOF
8537if ac_fn_c_try_link "$LINENO"; then :
8538  ac_cv_lib_bsd_gethostbyname=yes
8539else
8540  ac_cv_lib_bsd_gethostbyname=no
8541fi
8542rm -f core conftest.err conftest.$ac_objext \
8543    conftest$ac_exeext conftest.$ac_ext
8544LIBS=$ac_check_lib_save_LIBS
8545fi
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8547$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8548if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8549  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8550fi
8551
8552      fi
8553    fi
8554
8555    # [email protected] says without -lsocket,
8556    # socket/setsockopt and other routines are undefined under SCO ODT
8557    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8558    # on later versions), says Simon Leinen: it contains gethostby*
8559    # variants that don't use the name server (or something).  -lsocket
8560    # must be given before -lnsl if both are needed.  We assume that
8561    # if connect needs -lnsl, so does gethostbyname.
8562    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8563if test "x$ac_cv_func_connect" = xyes; then :
8564
8565fi
8566
8567    if test $ac_cv_func_connect = no; then
8568      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8569$as_echo_n "checking for connect in -lsocket... " >&6; }
8570if ${ac_cv_lib_socket_connect+:} false; then :
8571  $as_echo_n "(cached) " >&6
8572else
8573  ac_check_lib_save_LIBS=$LIBS
8574LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h.  */
8577
8578/* Override any GCC internal prototype to avoid an error.
8579   Use char because int might match the return type of a GCC
8580   builtin and then its argument prototype would still apply.  */
8581#ifdef __cplusplus
8582extern "C"
8583#endif
8584char connect ();
8585int
8586main ()
8587{
8588return connect ();
8589  ;
8590  return 0;
8591}
8592_ACEOF
8593if ac_fn_c_try_link "$LINENO"; then :
8594  ac_cv_lib_socket_connect=yes
8595else
8596  ac_cv_lib_socket_connect=no
8597fi
8598rm -f core conftest.err conftest.$ac_objext \
8599    conftest$ac_exeext conftest.$ac_ext
8600LIBS=$ac_check_lib_save_LIBS
8601fi
8602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8603$as_echo "$ac_cv_lib_socket_connect" >&6; }
8604if test "x$ac_cv_lib_socket_connect" = xyes; then :
8605  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8606fi
8607
8608    fi
8609
8610    # Guillermo Gomez says -lposix is necessary on A/UX.
8611    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8612if test "x$ac_cv_func_remove" = xyes; then :
8613
8614fi
8615
8616    if test $ac_cv_func_remove = no; then
8617      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8618$as_echo_n "checking for remove in -lposix... " >&6; }
8619if ${ac_cv_lib_posix_remove+:} false; then :
8620  $as_echo_n "(cached) " >&6
8621else
8622  ac_check_lib_save_LIBS=$LIBS
8623LIBS="-lposix  $LIBS"
8624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625/* end confdefs.h.  */
8626
8627/* Override any GCC internal prototype to avoid an error.
8628   Use char because int might match the return type of a GCC
8629   builtin and then its argument prototype would still apply.  */
8630#ifdef __cplusplus
8631extern "C"
8632#endif
8633char remove ();
8634int
8635main ()
8636{
8637return remove ();
8638  ;
8639  return 0;
8640}
8641_ACEOF
8642if ac_fn_c_try_link "$LINENO"; then :
8643  ac_cv_lib_posix_remove=yes
8644else
8645  ac_cv_lib_posix_remove=no
8646fi
8647rm -f core conftest.err conftest.$ac_objext \
8648    conftest$ac_exeext conftest.$ac_ext
8649LIBS=$ac_check_lib_save_LIBS
8650fi
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8652$as_echo "$ac_cv_lib_posix_remove" >&6; }
8653if test "x$ac_cv_lib_posix_remove" = xyes; then :
8654  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8655fi
8656
8657    fi
8658
8659    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8660    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8661if test "x$ac_cv_func_shmat" = xyes; then :
8662
8663fi
8664
8665    if test $ac_cv_func_shmat = no; then
8666      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8667$as_echo_n "checking for shmat in -lipc... " >&6; }
8668if ${ac_cv_lib_ipc_shmat+:} false; then :
8669  $as_echo_n "(cached) " >&6
8670else
8671  ac_check_lib_save_LIBS=$LIBS
8672LIBS="-lipc  $LIBS"
8673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674/* end confdefs.h.  */
8675
8676/* Override any GCC internal prototype to avoid an error.
8677   Use char because int might match the return type of a GCC
8678   builtin and then its argument prototype would still apply.  */
8679#ifdef __cplusplus
8680extern "C"
8681#endif
8682char shmat ();
8683int
8684main ()
8685{
8686return shmat ();
8687  ;
8688  return 0;
8689}
8690_ACEOF
8691if ac_fn_c_try_link "$LINENO"; then :
8692  ac_cv_lib_ipc_shmat=yes
8693else
8694  ac_cv_lib_ipc_shmat=no
8695fi
8696rm -f core conftest.err conftest.$ac_objext \
8697    conftest$ac_exeext conftest.$ac_ext
8698LIBS=$ac_check_lib_save_LIBS
8699fi
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8701$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8702if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8703  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8704fi
8705
8706    fi
8707  fi
8708
8709  # Check for libraries that X11R6 Xt/Xaw programs need.
8710  ac_save_LDFLAGS=$LDFLAGS
8711  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8712  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8713  # check for ICE first), but we must link in the order -lSM -lICE or
8714  # we get undefined symbols.  So assume we have SM if we have ICE.
8715  # These have to be linked with before -lX11, unlike the other
8716  # libraries we check for below, so use a different variable.
8717  # John Interrante, Karl Berry
8718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8719$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8720if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8721  $as_echo_n "(cached) " >&6
8722else
8723  ac_check_lib_save_LIBS=$LIBS
8724LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h.  */
8727
8728/* Override any GCC internal prototype to avoid an error.
8729   Use char because int might match the return type of a GCC
8730   builtin and then its argument prototype would still apply.  */
8731#ifdef __cplusplus
8732extern "C"
8733#endif
8734char IceConnectionNumber ();
8735int
8736main ()
8737{
8738return IceConnectionNumber ();
8739  ;
8740  return 0;
8741}
8742_ACEOF
8743if ac_fn_c_try_link "$LINENO"; then :
8744  ac_cv_lib_ICE_IceConnectionNumber=yes
8745else
8746  ac_cv_lib_ICE_IceConnectionNumber=no
8747fi
8748rm -f core conftest.err conftest.$ac_objext \
8749    conftest$ac_exeext conftest.$ac_ext
8750LIBS=$ac_check_lib_save_LIBS
8751fi
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8753$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8754if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8755  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8756fi
8757
8758  LDFLAGS=$ac_save_LDFLAGS
8759
8760fi
8761
8762
8763        if test "$zOSUnix" = "yes"; then
8764    CFLAGS="$CFLAGS -W c,dll"
8765    LDFLAGS="$LDFLAGS -W l,dll"
8766    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8767  fi
8768
8769
8770  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8771    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8773$as_echo "Corrected X libraries to $x_libraries" >&6; }
8774    X_LIBS="$X_LIBS -L$x_libraries"
8775    if test "`(uname) 2>/dev/null`" = SunOS &&
8776					 uname -r | grep '^5' >/dev/null; then
8777      X_LIBS="$X_LIBS -R $x_libraries"
8778    fi
8779  fi
8780
8781  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8782    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8784$as_echo "Corrected X includes to $x_includes" >&6; }
8785    X_CFLAGS="$X_CFLAGS -I$x_includes"
8786  fi
8787
8788    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8789    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8790    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8791
8792
8793        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8794$as_echo_n "checking if X11 header files can be found... " >&6; }
8795  cflags_save=$CFLAGS
8796  CFLAGS="$CFLAGS $X_CFLAGS"
8797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798/* end confdefs.h.  */
8799#include <X11/Xlib.h>
8800#include <X11/Intrinsic.h>
8801int
8802main ()
8803{
8804
8805  ;
8806  return 0;
8807}
8808_ACEOF
8809if ac_fn_c_try_compile "$LINENO"; then :
8810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8811$as_echo "yes" >&6; }
8812else
8813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814$as_echo "no" >&6; }; no_x=yes
8815fi
8816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817  CFLAGS=$cflags_save
8818
8819  if test "${no_x-no}" = yes; then
8820    with_x=no
8821  else
8822    $as_echo "#define HAVE_X11 1" >>confdefs.h
8823
8824    X_LIB="-lXt -lX11";
8825
8826
8827    ac_save_LDFLAGS="$LDFLAGS"
8828    LDFLAGS="-L$x_libraries $LDFLAGS"
8829
8830            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8831$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8832if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8833  $as_echo_n "(cached) " >&6
8834else
8835  ac_check_lib_save_LIBS=$LIBS
8836LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838/* end confdefs.h.  */
8839
8840/* Override any GCC internal prototype to avoid an error.
8841   Use char because int might match the return type of a GCC
8842   builtin and then its argument prototype would still apply.  */
8843#ifdef __cplusplus
8844extern "C"
8845#endif
8846char _XdmcpAuthDoIt ();
8847int
8848main ()
8849{
8850return _XdmcpAuthDoIt ();
8851  ;
8852  return 0;
8853}
8854_ACEOF
8855if ac_fn_c_try_link "$LINENO"; then :
8856  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8857else
8858  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8859fi
8860rm -f core conftest.err conftest.$ac_objext \
8861    conftest$ac_exeext conftest.$ac_ext
8862LIBS=$ac_check_lib_save_LIBS
8863fi
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8865$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8866if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8867  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8868fi
8869
8870
8871                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8872$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8873if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  ac_check_lib_save_LIBS=$LIBS
8877LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879/* end confdefs.h.  */
8880
8881/* Override any GCC internal prototype to avoid an error.
8882   Use char because int might match the return type of a GCC
8883   builtin and then its argument prototype would still apply.  */
8884#ifdef __cplusplus
8885extern "C"
8886#endif
8887char IceOpenConnection ();
8888int
8889main ()
8890{
8891return IceOpenConnection ();
8892  ;
8893  return 0;
8894}
8895_ACEOF
8896if ac_fn_c_try_link "$LINENO"; then :
8897  ac_cv_lib_ICE_IceOpenConnection=yes
8898else
8899  ac_cv_lib_ICE_IceOpenConnection=no
8900fi
8901rm -f core conftest.err conftest.$ac_objext \
8902    conftest$ac_exeext conftest.$ac_ext
8903LIBS=$ac_check_lib_save_LIBS
8904fi
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8906$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8907if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8908  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8909fi
8910
8911
8912        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8914$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8915if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8916  $as_echo_n "(cached) " >&6
8917else
8918  ac_check_lib_save_LIBS=$LIBS
8919LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h.  */
8922
8923/* Override any GCC internal prototype to avoid an error.
8924   Use char because int might match the return type of a GCC
8925   builtin and then its argument prototype would still apply.  */
8926#ifdef __cplusplus
8927extern "C"
8928#endif
8929char XpmCreatePixmapFromData ();
8930int
8931main ()
8932{
8933return XpmCreatePixmapFromData ();
8934  ;
8935  return 0;
8936}
8937_ACEOF
8938if ac_fn_c_try_link "$LINENO"; then :
8939  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8940else
8941  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8942fi
8943rm -f core conftest.err conftest.$ac_objext \
8944    conftest$ac_exeext conftest.$ac_ext
8945LIBS=$ac_check_lib_save_LIBS
8946fi
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8948$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8949if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8950  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8951fi
8952
8953
8954        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8955$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8956    cflags_save=$CFLAGS
8957        if test "$GCC" = yes; then
8958      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8959    else
8960      CFLAGS="$CFLAGS $X_CFLAGS"
8961    fi
8962    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963/* end confdefs.h.  */
8964#include <X11/Xlib.h>
8965int
8966main ()
8967{
8968
8969  ;
8970  return 0;
8971}
8972_ACEOF
8973if ac_fn_c_try_compile "$LINENO"; then :
8974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975$as_echo "no" >&6; }
8976else
8977  CFLAGS="$CFLAGS -Wno-implicit-int"
8978	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979/* end confdefs.h.  */
8980#include <X11/Xlib.h>
8981int
8982main ()
8983{
8984
8985  ;
8986  return 0;
8987}
8988_ACEOF
8989if ac_fn_c_try_compile "$LINENO"; then :
8990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8991$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8992else
8993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
8994$as_echo "test failed" >&6; }
8995
8996fi
8997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998
8999fi
9000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001    CFLAGS=$cflags_save
9002
9003    LDFLAGS="$ac_save_LDFLAGS"
9004
9005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
9006$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
9007    if ${ac_cv_small_wchar_t+:} false; then :
9008  $as_echo_n "(cached) " >&6
9009else
9010  if test "$cross_compiling" = yes; then :
9011  as_fn_error $? "failed to compile test program" "$LINENO" 5
9012else
9013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014/* end confdefs.h.  */
9015
9016#include <X11/Xlib.h>
9017#if STDC_HEADERS
9018# include <stdlib.h>
9019# include <stddef.h>
9020#endif
9021		main()
9022		{
9023		  if (sizeof(wchar_t) <= 2)
9024		    exit(1);
9025		  exit(0);
9026		}
9027_ACEOF
9028if ac_fn_c_try_run "$LINENO"; then :
9029  ac_cv_small_wchar_t="no"
9030else
9031  ac_cv_small_wchar_t="yes"
9032fi
9033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9034  conftest.$ac_objext conftest.beam conftest.$ac_ext
9035fi
9036
9037fi
9038
9039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
9040$as_echo "$ac_cv_small_wchar_t" >&6; }
9041    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
9042      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
9043
9044    fi
9045
9046  fi
9047fi
9048
9049if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then
9050    as_fn_error $? "could not configure X" "$LINENO" 5
9051fi
9052
9053test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
9054
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
9056$as_echo_n "checking --enable-gui argument... " >&6; }
9057# Check whether --enable-gui was given.
9058if test "${enable_gui+set}" = set; then :
9059  enableval=$enable_gui;
9060else
9061  enable_gui="auto"
9062fi
9063
9064
9065enable_gui_canon=`echo "_$enable_gui" | \
9066	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
9067
9068SKIP_GTK2=YES
9069SKIP_GTK3=YES
9070SKIP_GNOME=YES
9071SKIP_MOTIF=YES
9072SKIP_ATHENA=YES
9073SKIP_NEXTAW=YES
9074SKIP_PHOTON=YES
9075SKIP_CARBON=YES
9076GUITYPE=NONE
9077
9078if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
9079  SKIP_PHOTON=
9080  case "$enable_gui_canon" in
9081    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9082$as_echo "no GUI support" >&6; }
9083		SKIP_PHOTON=YES ;;
9084    yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5
9085$as_echo "automatic GUI support" >&6; }
9086    		gui_auto=yes ;;
9087    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
9088$as_echo "Photon GUI support" >&6; } ;;
9089    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9090$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9091		SKIP_PHOTON=YES ;;
9092  esac
9093
9094elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
9095  SKIP_CARBON=
9096  case "$enable_gui_canon" in
9097    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9098$as_echo "no GUI support" >&6; }
9099		SKIP_CARBON=YES ;;
9100    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9101$as_echo "yes - automatic GUI support" >&6; }
9102    		gui_auto=yes ;;
9103    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
9104$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
9105		SKIP_CARBON=YES ;;
9106    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
9107$as_echo "Carbon GUI support" >&6; } ;;
9108    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9109$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9110		SKIP_CARBON=YES ;;
9111  esac
9112
9113else
9114
9115  case "$enable_gui_canon" in
9116    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9117$as_echo "no GUI support" >&6; } ;;
9118    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
9119$as_echo "yes/auto - automatic GUI support" >&6; }
9120		gui_auto=yes
9121		SKIP_GTK2=
9122		SKIP_GNOME=
9123		SKIP_MOTIF=
9124		SKIP_ATHENA=
9125		SKIP_NEXTAW=
9126		SKIP_CARBON=;;
9127    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
9128$as_echo "GTK+ 2.x GUI support" >&6; }
9129		SKIP_GTK2=;;
9130    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
9131$as_echo "GNOME 2.x GUI support" >&6; }
9132		SKIP_GNOME=
9133		SKIP_GTK2=;;
9134    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
9135$as_echo "GTK+ 3.x GUI support" >&6; }
9136		SKIP_GTK3=;;
9137    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
9138$as_echo "Motif GUI support" >&6; }
9139		SKIP_MOTIF=;;
9140    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
9141$as_echo "Athena GUI support" >&6; }
9142		SKIP_ATHENA=;;
9143    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
9144$as_echo "neXtaw GUI support" >&6; }
9145		SKIP_NEXTAW=;;
9146    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9147$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
9148  esac
9149
9150fi
9151
9152if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
9153				-a "$enable_gui_canon" != "gnome2"; then
9154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
9155$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
9156  # Check whether --enable-gtk2-check was given.
9157if test "${enable_gtk2_check+set}" = set; then :
9158  enableval=$enable_gtk2_check;
9159else
9160  enable_gtk2_check="yes"
9161fi
9162
9163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
9164$as_echo "$enable_gtk2_check" >&6; }
9165  if test "x$enable_gtk2_check" = "xno"; then
9166    SKIP_GTK2=YES
9167    SKIP_GNOME=YES
9168  fi
9169fi
9170
9171if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
9172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
9173$as_echo_n "checking whether or not to look for GNOME... " >&6; }
9174  # Check whether --enable-gnome-check was given.
9175if test "${enable_gnome_check+set}" = set; then :
9176  enableval=$enable_gnome_check;
9177else
9178  enable_gnome_check="no"
9179fi
9180
9181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
9182$as_echo "$enable_gnome_check" >&6; }
9183  if test "x$enable_gnome_check" = "xno"; then
9184    SKIP_GNOME=YES
9185  fi
9186fi
9187
9188if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
9189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
9190$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
9191  # Check whether --enable-gtk3-check was given.
9192if test "${enable_gtk3_check+set}" = set; then :
9193  enableval=$enable_gtk3_check;
9194else
9195  enable_gtk3_check="yes"
9196fi
9197
9198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
9199$as_echo "$enable_gtk3_check" >&6; }
9200  if test "x$enable_gtk3_check" = "xno"; then
9201    SKIP_GTK3=YES
9202  fi
9203fi
9204
9205if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
9206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
9207$as_echo_n "checking whether or not to look for Motif... " >&6; }
9208  # Check whether --enable-motif-check was given.
9209if test "${enable_motif_check+set}" = set; then :
9210  enableval=$enable_motif_check;
9211else
9212  enable_motif_check="yes"
9213fi
9214
9215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
9216$as_echo "$enable_motif_check" >&6; }
9217  if test "x$enable_motif_check" = "xno"; then
9218    SKIP_MOTIF=YES
9219  fi
9220fi
9221
9222if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
9223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
9224$as_echo_n "checking whether or not to look for Athena... " >&6; }
9225  # Check whether --enable-athena-check was given.
9226if test "${enable_athena_check+set}" = set; then :
9227  enableval=$enable_athena_check;
9228else
9229  enable_athena_check="yes"
9230fi
9231
9232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
9233$as_echo "$enable_athena_check" >&6; }
9234  if test "x$enable_athena_check" = "xno"; then
9235    SKIP_ATHENA=YES
9236  fi
9237fi
9238
9239if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
9240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
9241$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
9242  # Check whether --enable-nextaw-check was given.
9243if test "${enable_nextaw_check+set}" = set; then :
9244  enableval=$enable_nextaw_check;
9245else
9246  enable_nextaw_check="yes"
9247fi
9248
9249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
9250$as_echo "$enable_nextaw_check" >&6; };
9251  if test "x$enable_nextaw_check" = "xno"; then
9252    SKIP_NEXTAW=YES
9253  fi
9254fi
9255
9256if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
9257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
9258$as_echo_n "checking whether or not to look for Carbon... " >&6; }
9259  # Check whether --enable-carbon-check was given.
9260if test "${enable_carbon_check+set}" = set; then :
9261  enableval=$enable_carbon_check;
9262else
9263  enable_carbon_check="yes"
9264fi
9265
9266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
9267$as_echo "$enable_carbon_check" >&6; };
9268  if test "x$enable_carbon_check" = "xno"; then
9269    SKIP_CARBON=YES
9270  fi
9271fi
9272
9273
9274if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
9275  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
9276$as_echo_n "checking for Carbon GUI... " >&6; }
9277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9278$as_echo "yes" >&6; };
9279  GUITYPE=CARBONGUI
9280  if test "$VIMNAME" = "vim"; then
9281    VIMNAME=Vim
9282  fi
9283
9284  if test "x$MACARCH" = "xboth"; then
9285    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
9286  else
9287    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
9288  fi
9289
9290    if test x$prefix = xNONE; then
9291    prefix=/Applications
9292  fi
9293
9294    datadir='${prefix}/Vim.app/Contents/Resources'
9295
9296    SKIP_GTK2=YES;
9297  SKIP_GNOME=YES;
9298  SKIP_MOTIF=YES;
9299  SKIP_ATHENA=YES;
9300  SKIP_NEXTAW=YES;
9301  SKIP_PHOTON=YES;
9302  SKIP_CARBON=YES
9303fi
9304
9305
9306
9307
9308
9309
9310
9311if test "X$PKG_CONFIG" = "X"; then
9312  if test -n "$ac_tool_prefix"; then
9313  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9314set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316$as_echo_n "checking for $ac_word... " >&6; }
9317if ${ac_cv_path_PKG_CONFIG+:} false; then :
9318  $as_echo_n "(cached) " >&6
9319else
9320  case $PKG_CONFIG in
9321  [\\/]* | ?:[\\/]*)
9322  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9323  ;;
9324  *)
9325  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326for as_dir in $PATH
9327do
9328  IFS=$as_save_IFS
9329  test -z "$as_dir" && as_dir=.
9330    for ac_exec_ext in '' $ac_executable_extensions; do
9331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334    break 2
9335  fi
9336done
9337  done
9338IFS=$as_save_IFS
9339
9340  ;;
9341esac
9342fi
9343PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9344if test -n "$PKG_CONFIG"; then
9345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9346$as_echo "$PKG_CONFIG" >&6; }
9347else
9348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349$as_echo "no" >&6; }
9350fi
9351
9352
9353fi
9354if test -z "$ac_cv_path_PKG_CONFIG"; then
9355  ac_pt_PKG_CONFIG=$PKG_CONFIG
9356  # Extract the first word of "pkg-config", so it can be a program name with args.
9357set dummy pkg-config; ac_word=$2
9358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359$as_echo_n "checking for $ac_word... " >&6; }
9360if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9361  $as_echo_n "(cached) " >&6
9362else
9363  case $ac_pt_PKG_CONFIG in
9364  [\\/]* | ?:[\\/]*)
9365  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9366  ;;
9367  *)
9368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369for as_dir in $PATH
9370do
9371  IFS=$as_save_IFS
9372  test -z "$as_dir" && as_dir=.
9373    for ac_exec_ext in '' $ac_executable_extensions; do
9374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9375    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377    break 2
9378  fi
9379done
9380  done
9381IFS=$as_save_IFS
9382
9383  ;;
9384esac
9385fi
9386ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9387if test -n "$ac_pt_PKG_CONFIG"; then
9388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9389$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9390else
9391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392$as_echo "no" >&6; }
9393fi
9394
9395  if test "x$ac_pt_PKG_CONFIG" = x; then
9396    PKG_CONFIG="no"
9397  else
9398    case $cross_compiling:$ac_tool_warned in
9399yes:)
9400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9402ac_tool_warned=yes ;;
9403esac
9404    PKG_CONFIG=$ac_pt_PKG_CONFIG
9405  fi
9406else
9407  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9408fi
9409
9410fi
9411
9412
9413if test -z "$SKIP_GTK2"; then
9414
9415  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9416$as_echo_n "checking --disable-gtktest argument... " >&6; }
9417  # Check whether --enable-gtktest was given.
9418if test "${enable_gtktest+set}" = set; then :
9419  enableval=$enable_gtktest;
9420else
9421  enable_gtktest=yes
9422fi
9423
9424  if test "x$enable_gtktest" = "xyes" ; then
9425    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9426$as_echo "gtk test enabled" >&6; }
9427  else
9428    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9429$as_echo "gtk test disabled" >&6; }
9430  fi
9431
9432  if test "x$PKG_CONFIG" != "xno"; then
9433
9434  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9435  {
9436    no_gtk=""
9437    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9438	  && $PKG_CONFIG --exists gtk+-2.0; then
9439    {
9440      min_gtk_version=2.2.0
9441      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9442$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9443                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9444      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9445      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9446      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9447	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9448      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9449	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9450      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9451	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9452    }
9453    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9454	  && $PKG_CONFIG --exists gtk+-3.0; then
9455    {
9456      min_gtk_version=2.2.0
9457      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9458$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9459
9460      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9461      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9462      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9463      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9464	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9465      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9466	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9467      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9468	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9469    }
9470    else
9471      no_gtk=yes
9472    fi
9473
9474    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9475    {
9476      ac_save_CFLAGS="$CFLAGS"
9477      ac_save_LIBS="$LIBS"
9478      CFLAGS="$CFLAGS $GTK_CFLAGS"
9479      LIBS="$LIBS $GTK_LIBS"
9480
9481                        rm -f conf.gtktest
9482      if test "$cross_compiling" = yes; then :
9483  echo $ac_n "cross compiling; assumed OK... $ac_c"
9484else
9485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486/* end confdefs.h.  */
9487
9488#include <gtk/gtk.h>
9489#include <stdio.h>
9490#if STDC_HEADERS
9491# include <stdlib.h>
9492# include <stddef.h>
9493#endif
9494
9495int
9496main ()
9497{
9498int major, minor, micro;
9499char *tmp_version;
9500
9501system ("touch conf.gtktest");
9502
9503/* HP/UX 9 (%@#!) writes to sscanf strings */
9504tmp_version = g_strdup("$min_gtk_version");
9505if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9506   printf("%s, bad version string\n", "$min_gtk_version");
9507   exit(1);
9508 }
9509
9510if ((gtk_major_version > major) ||
9511    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9512    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9513				     (gtk_micro_version >= micro)))
9514{
9515    return 0;
9516}
9517return 1;
9518}
9519
9520_ACEOF
9521if ac_fn_c_try_run "$LINENO"; then :
9522
9523else
9524  no_gtk=yes
9525fi
9526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9527  conftest.$ac_objext conftest.beam conftest.$ac_ext
9528fi
9529
9530      CFLAGS="$ac_save_CFLAGS"
9531      LIBS="$ac_save_LIBS"
9532    }
9533    fi
9534    if test "x$no_gtk" = x ; then
9535      if test "x$enable_gtktest" = "xyes"; then
9536	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9537$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9538      else
9539	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9540$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9541      fi
9542      GUI_LIB_LOC="$GTK_LIBDIR"
9543		 GTK_LIBNAME="$GTK_LIBS"
9544		GUI_INC_LOC="$GTK_CFLAGS"
9545    else
9546    {
9547      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548$as_echo "no" >&6; }
9549      GTK_CFLAGS=""
9550      GTK_LIBS=""
9551      :
9552      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9553	as_fn_error $? "could not configure GTK" "$LINENO" 5
9554      fi
9555    }
9556    fi
9557  }
9558  else
9559    GTK_CFLAGS=""
9560    GTK_LIBS=""
9561    :
9562  fi
9563
9564
9565  rm -f conf.gtktest
9566
9567    if test "x$GTK_CFLAGS" != "x"; then
9568      SKIP_GTK3=YES
9569      SKIP_ATHENA=YES
9570      SKIP_NEXTAW=YES
9571      SKIP_MOTIF=YES
9572      GUITYPE=GTK
9573
9574    fi
9575  fi
9576  if test "x$GUITYPE" = "xGTK"; then
9577                if test -z "$SKIP_GNOME"; then
9578    {
9579
9580
9581
9582
9583
9584
9585# Check whether --with-gnome-includes was given.
9586if test "${with_gnome_includes+set}" = set; then :
9587  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9588
9589fi
9590
9591
9592
9593# Check whether --with-gnome-libs was given.
9594if test "${with_gnome_libs+set}" = set; then :
9595  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9596
9597fi
9598
9599
9600
9601# Check whether --with-gnome was given.
9602if test "${with_gnome+set}" = set; then :
9603  withval=$with_gnome; if test x$withval = xyes; then
9604      want_gnome=yes
9605      have_gnome=yes
9606    else
9607      if test "x$withval" = xno; then
9608	want_gnome=no
9609      else
9610	want_gnome=yes
9611	LDFLAGS="$LDFLAGS -L$withval/lib"
9612	CFLAGS="$CFLAGS -I$withval/include"
9613	gnome_prefix=$withval/lib
9614      fi
9615    fi
9616else
9617  want_gnome=yes
9618fi
9619
9620
9621  if test "x$want_gnome" = xyes; then
9622  {
9623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9624$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9625    if $PKG_CONFIG --exists libgnomeui-2.0; then
9626      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9627$as_echo "yes" >&6; }
9628      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9629      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9630      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9631
9632                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9633$as_echo_n "checking for FreeBSD... " >&6; }
9634      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9635	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9636$as_echo "yes" >&6; }
9637	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9638	GNOME_LIBS="$GNOME_LIBS -pthread"
9639      else
9640	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641$as_echo "no" >&6; }
9642      fi
9643      have_gnome=yes
9644    else
9645      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9646$as_echo "not found" >&6; }
9647      if test "x" = xfail; then
9648	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9649      fi
9650    fi
9651  }
9652  fi
9653
9654      if test "x$have_gnome" = xyes ; then
9655	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9656
9657	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9658	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9659      fi
9660    }
9661    fi
9662  fi
9663fi
9664
9665
9666if test -z "$SKIP_GTK3"; then
9667
9668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9669$as_echo_n "checking --disable-gtktest argument... " >&6; }
9670  # Check whether --enable-gtktest was given.
9671if test "${enable_gtktest+set}" = set; then :
9672  enableval=$enable_gtktest;
9673else
9674  enable_gtktest=yes
9675fi
9676
9677  if test "x$enable_gtktest" = "xyes" ; then
9678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9679$as_echo "gtk test enabled" >&6; }
9680  else
9681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9682$as_echo "gtk test disabled" >&6; }
9683  fi
9684
9685  if test "x$PKG_CONFIG" != "xno"; then
9686
9687  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9688  {
9689    no_gtk=""
9690    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9691	  && $PKG_CONFIG --exists gtk+-2.0; then
9692    {
9693      min_gtk_version=3.0.0
9694      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9695$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9696                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9697      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9698      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9699      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9700	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9701      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9702	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9703      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9704	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9705    }
9706    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9707	  && $PKG_CONFIG --exists gtk+-3.0; then
9708    {
9709      min_gtk_version=3.0.0
9710      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9711$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9712
9713      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9714      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9715      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9716      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9717	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9718      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9719	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9720      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9721	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9722    }
9723    else
9724      no_gtk=yes
9725    fi
9726
9727    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9728    {
9729      ac_save_CFLAGS="$CFLAGS"
9730      ac_save_LIBS="$LIBS"
9731      CFLAGS="$CFLAGS $GTK_CFLAGS"
9732      LIBS="$LIBS $GTK_LIBS"
9733
9734                        rm -f conf.gtktest
9735      if test "$cross_compiling" = yes; then :
9736  echo $ac_n "cross compiling; assumed OK... $ac_c"
9737else
9738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h.  */
9740
9741#include <gtk/gtk.h>
9742#include <stdio.h>
9743#if STDC_HEADERS
9744# include <stdlib.h>
9745# include <stddef.h>
9746#endif
9747
9748int
9749main ()
9750{
9751int major, minor, micro;
9752char *tmp_version;
9753
9754system ("touch conf.gtktest");
9755
9756/* HP/UX 9 (%@#!) writes to sscanf strings */
9757tmp_version = g_strdup("$min_gtk_version");
9758if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9759   printf("%s, bad version string\n", "$min_gtk_version");
9760   exit(1);
9761 }
9762
9763if ((gtk_major_version > major) ||
9764    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9765    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9766				     (gtk_micro_version >= micro)))
9767{
9768    return 0;
9769}
9770return 1;
9771}
9772
9773_ACEOF
9774if ac_fn_c_try_run "$LINENO"; then :
9775
9776else
9777  no_gtk=yes
9778fi
9779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9780  conftest.$ac_objext conftest.beam conftest.$ac_ext
9781fi
9782
9783      CFLAGS="$ac_save_CFLAGS"
9784      LIBS="$ac_save_LIBS"
9785    }
9786    fi
9787    if test "x$no_gtk" = x ; then
9788      if test "x$enable_gtktest" = "xyes"; then
9789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9790$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9791      else
9792	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9793$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9794      fi
9795      GUI_LIB_LOC="$GTK_LIBDIR"
9796		 GTK_LIBNAME="$GTK_LIBS"
9797		GUI_INC_LOC="$GTK_CFLAGS"
9798    else
9799    {
9800      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801$as_echo "no" >&6; }
9802      GTK_CFLAGS=""
9803      GTK_LIBS=""
9804      :
9805      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9806	as_fn_error $? "could not configure GTK" "$LINENO" 5
9807      fi
9808    }
9809    fi
9810  }
9811  else
9812    GTK_CFLAGS=""
9813    GTK_LIBS=""
9814    :
9815  fi
9816
9817
9818  rm -f conf.gtktest
9819
9820    if test "x$GTK_CFLAGS" != "x"; then
9821      SKIP_GTK2=YES
9822      SKIP_GNOME=YES
9823      SKIP_ATHENA=YES
9824      SKIP_NEXTAW=YES
9825      SKIP_MOTIF=YES
9826      GUITYPE=GTK
9827
9828      $as_echo "#define USE_GTK3 1" >>confdefs.h
9829
9830    fi
9831  fi
9832fi
9833
9834if test "x$GUITYPE" = "xGTK"; then
9835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9836$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9837  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9838  if test "x$gdk_pixbuf_version" != x ; then
9839    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9840      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9841    if test "x$gdk_pixbuf_version_minor" != x -a \
9842	$gdk_pixbuf_version_minor -ge 31 ; then
9843      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
9844$as_echo "OK." >&6; }
9845      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
9846set dummy glib-compile-resources; ac_word=$2
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848$as_echo_n "checking for $ac_word... " >&6; }
9849if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
9850  $as_echo_n "(cached) " >&6
9851else
9852  case $GLIB_COMPILE_RESOURCES in
9853  [\\/]* | ?:[\\/]*)
9854  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
9855  ;;
9856  *)
9857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858for as_dir in $PATH
9859do
9860  IFS=$as_save_IFS
9861  test -z "$as_dir" && as_dir=.
9862    for ac_exec_ext in '' $ac_executable_extensions; do
9863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9864    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
9865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9866    break 2
9867  fi
9868done
9869  done
9870IFS=$as_save_IFS
9871
9872  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
9873  ;;
9874esac
9875fi
9876GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
9877if test -n "$GLIB_COMPILE_RESOURCES"; then
9878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
9879$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
9880else
9881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882$as_echo "no" >&6; }
9883fi
9884
9885
9886      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
9887$as_echo_n "checking glib-compile-resources... " >&6; }
9888      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
9889	GLIB_COMPILE_RESOURCES=""
9890	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
9891$as_echo "cannot be found in PATH." >&6; }
9892      else
9893	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
9894$as_echo "usable." >&6; }
9895	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
9896
9897	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
9898	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
9899      fi
9900    else
9901      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
9902$as_echo "not usable." >&6; }
9903    fi
9904  else
9905    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
9906$as_echo "cannot obtain from pkg_config." >&6; }
9907  fi
9908
9909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
9910$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
9911  # Check whether --enable-icon_cache_update was given.
9912if test "${enable_icon_cache_update+set}" = set; then :
9913  enableval=$enable_icon_cache_update;
9914else
9915  enable_icon_cache_update="yes"
9916fi
9917
9918  if test "$enable_icon_cache_update" = "yes"; then
9919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9920$as_echo "not set" >&6; }
9921    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
9922set dummy gtk-update-icon-cache; ac_word=$2
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9924$as_echo_n "checking for $ac_word... " >&6; }
9925if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
9926  $as_echo_n "(cached) " >&6
9927else
9928  case $GTK_UPDATE_ICON_CACHE in
9929  [\\/]* | ?:[\\/]*)
9930  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
9931  ;;
9932  *)
9933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934for as_dir in $PATH
9935do
9936  IFS=$as_save_IFS
9937  test -z "$as_dir" && as_dir=.
9938    for ac_exec_ext in '' $ac_executable_extensions; do
9939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9940    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
9941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942    break 2
9943  fi
9944done
9945  done
9946IFS=$as_save_IFS
9947
9948  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
9949  ;;
9950esac
9951fi
9952GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
9953if test -n "$GTK_UPDATE_ICON_CACHE"; then
9954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
9955$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
9956else
9957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958$as_echo "no" >&6; }
9959fi
9960
9961
9962    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
9963      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
9964$as_echo "not found in PATH." >&6; }
9965    fi
9966  else
9967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
9968$as_echo "update disabled" >&6; }
9969  fi
9970
9971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
9972$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
9973  # Check whether --enable-desktop_database_update was given.
9974if test "${enable_desktop_database_update+set}" = set; then :
9975  enableval=$enable_desktop_database_update;
9976else
9977  enable_desktop_database_update="yes"
9978fi
9979
9980  if test "$enable_desktop_database_update" = "yes"; then
9981    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9982$as_echo "not set" >&6; }
9983    # Extract the first word of "update-desktop-database", so it can be a program name with args.
9984set dummy update-desktop-database; ac_word=$2
9985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986$as_echo_n "checking for $ac_word... " >&6; }
9987if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
9988  $as_echo_n "(cached) " >&6
9989else
9990  case $UPDATE_DESKTOP_DATABASE in
9991  [\\/]* | ?:[\\/]*)
9992  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
9993  ;;
9994  *)
9995  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996for as_dir in $PATH
9997do
9998  IFS=$as_save_IFS
9999  test -z "$as_dir" && as_dir=.
10000    for ac_exec_ext in '' $ac_executable_extensions; do
10001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10002    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
10003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004    break 2
10005  fi
10006done
10007  done
10008IFS=$as_save_IFS
10009
10010  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
10011  ;;
10012esac
10013fi
10014UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
10015if test -n "$UPDATE_DESKTOP_DATABASE"; then
10016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
10017$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
10018else
10019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10020$as_echo "no" >&6; }
10021fi
10022
10023
10024    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
10025      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10026$as_echo "not found in PATH." >&6; }
10027    fi
10028  else
10029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10030$as_echo "update disabled" >&6; }
10031  fi
10032fi
10033
10034
10035
10036
10037
10038
10039
10040if test -z "$SKIP_MOTIF"; then
10041  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"
10042    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
10043
10044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
10045$as_echo_n "checking for location of Motif GUI includes... " >&6; }
10046  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
10047  GUI_INC_LOC=
10048  for try in $gui_includes; do
10049    if test -f "$try/Xm/Xm.h"; then
10050      GUI_INC_LOC=$try
10051    fi
10052  done
10053  if test -n "$GUI_INC_LOC"; then
10054    if test "$GUI_INC_LOC" = /usr/include; then
10055      GUI_INC_LOC=
10056      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10057$as_echo "in default path" >&6; }
10058    else
10059      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
10060$as_echo "$GUI_INC_LOC" >&6; }
10061    fi
10062  else
10063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10064$as_echo "<not found>" >&6; }
10065    SKIP_MOTIF=YES
10066  fi
10067fi
10068
10069
10070if test -z "$SKIP_MOTIF"; then
10071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
10072$as_echo_n "checking --with-motif-lib argument... " >&6; }
10073
10074# Check whether --with-motif-lib was given.
10075if test "${with_motif_lib+set}" = set; then :
10076  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
10077fi
10078
10079
10080  if test -n "$MOTIF_LIBNAME"; then
10081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
10082$as_echo "$MOTIF_LIBNAME" >&6; }
10083    GUI_LIB_LOC=
10084  else
10085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086$as_echo "no" >&6; }
10087
10088        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
10089
10090            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
10091$as_echo_n "checking for location of Motif GUI libs... " >&6; }
10092    gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
10093    GUI_LIB_LOC=
10094    for try in $gui_libs; do
10095      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
10096	if test -f "$libtry"; then
10097	  GUI_LIB_LOC=$try
10098	fi
10099      done
10100    done
10101    if test -n "$GUI_LIB_LOC"; then
10102            if test "$GUI_LIB_LOC" = /usr/lib \
10103	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
10104	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
10105	GUI_LIB_LOC=
10106	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10107$as_echo "in default path" >&6; }
10108      else
10109	if test -n "$GUI_LIB_LOC"; then
10110	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
10111$as_echo "$GUI_LIB_LOC" >&6; }
10112	  if test "`(uname) 2>/dev/null`" = SunOS &&
10113					 uname -r | grep '^5' >/dev/null; then
10114	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
10115	  fi
10116	fi
10117      fi
10118      MOTIF_LIBNAME=-lXm
10119    else
10120      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10121$as_echo "<not found>" >&6; }
10122      SKIP_MOTIF=YES
10123    fi
10124  fi
10125fi
10126
10127if test -z "$SKIP_MOTIF"; then
10128  SKIP_ATHENA=YES
10129  SKIP_NEXTAW=YES
10130  GUITYPE=MOTIF
10131
10132fi
10133
10134
10135GUI_X_LIBS=
10136
10137if test -z "$SKIP_ATHENA"; then
10138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
10139$as_echo_n "checking if Athena header files can be found... " >&6; }
10140  cflags_save=$CFLAGS
10141  CFLAGS="$CFLAGS $X_CFLAGS"
10142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143/* end confdefs.h.  */
10144
10145#include <X11/Intrinsic.h>
10146#include <X11/Xaw/Paned.h>
10147int
10148main ()
10149{
10150
10151  ;
10152  return 0;
10153}
10154_ACEOF
10155if ac_fn_c_try_compile "$LINENO"; then :
10156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10157$as_echo "yes" >&6; }
10158else
10159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160$as_echo "no" >&6; }; SKIP_ATHENA=YES
10161fi
10162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163  CFLAGS=$cflags_save
10164fi
10165
10166if test -z "$SKIP_ATHENA"; then
10167  GUITYPE=ATHENA
10168fi
10169
10170if test -z "$SKIP_NEXTAW"; then
10171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
10172$as_echo_n "checking if neXtaw header files can be found... " >&6; }
10173  cflags_save=$CFLAGS
10174  CFLAGS="$CFLAGS $X_CFLAGS"
10175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176/* end confdefs.h.  */
10177
10178#include <X11/Intrinsic.h>
10179#include <X11/neXtaw/Paned.h>
10180int
10181main ()
10182{
10183
10184  ;
10185  return 0;
10186}
10187_ACEOF
10188if ac_fn_c_try_compile "$LINENO"; then :
10189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10190$as_echo "yes" >&6; }
10191else
10192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193$as_echo "no" >&6; }; SKIP_NEXTAW=YES
10194fi
10195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196  CFLAGS=$cflags_save
10197fi
10198
10199if test -z "$SKIP_NEXTAW"; then
10200  GUITYPE=NEXTAW
10201fi
10202
10203if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10204      if test -n "$GUI_INC_LOC"; then
10205    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
10206  fi
10207  if test -n "$GUI_LIB_LOC"; then
10208    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
10209  fi
10210
10211    ldflags_save=$LDFLAGS
10212  LDFLAGS="$X_LIBS $LDFLAGS"
10213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10214$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10215if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10216  $as_echo_n "(cached) " >&6
10217else
10218  ac_check_lib_save_LIBS=$LIBS
10219LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221/* end confdefs.h.  */
10222
10223/* Override any GCC internal prototype to avoid an error.
10224   Use char because int might match the return type of a GCC
10225   builtin and then its argument prototype would still apply.  */
10226#ifdef __cplusplus
10227extern "C"
10228#endif
10229char XShapeQueryExtension ();
10230int
10231main ()
10232{
10233return XShapeQueryExtension ();
10234  ;
10235  return 0;
10236}
10237_ACEOF
10238if ac_fn_c_try_link "$LINENO"; then :
10239  ac_cv_lib_Xext_XShapeQueryExtension=yes
10240else
10241  ac_cv_lib_Xext_XShapeQueryExtension=no
10242fi
10243rm -f core conftest.err conftest.$ac_objext \
10244    conftest$ac_exeext conftest.$ac_ext
10245LIBS=$ac_check_lib_save_LIBS
10246fi
10247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10248$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10249if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10250  GUI_X_LIBS="-lXext"
10251fi
10252
10253    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
10254$as_echo_n "checking for wslen in -lw... " >&6; }
10255if ${ac_cv_lib_w_wslen+:} false; then :
10256  $as_echo_n "(cached) " >&6
10257else
10258  ac_check_lib_save_LIBS=$LIBS
10259LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261/* end confdefs.h.  */
10262
10263/* Override any GCC internal prototype to avoid an error.
10264   Use char because int might match the return type of a GCC
10265   builtin and then its argument prototype would still apply.  */
10266#ifdef __cplusplus
10267extern "C"
10268#endif
10269char wslen ();
10270int
10271main ()
10272{
10273return wslen ();
10274  ;
10275  return 0;
10276}
10277_ACEOF
10278if ac_fn_c_try_link "$LINENO"; then :
10279  ac_cv_lib_w_wslen=yes
10280else
10281  ac_cv_lib_w_wslen=no
10282fi
10283rm -f core conftest.err conftest.$ac_objext \
10284    conftest$ac_exeext conftest.$ac_ext
10285LIBS=$ac_check_lib_save_LIBS
10286fi
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
10288$as_echo "$ac_cv_lib_w_wslen" >&6; }
10289if test "x$ac_cv_lib_w_wslen" = xyes; then :
10290  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
10291fi
10292
10293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10294$as_echo_n "checking for dlsym in -ldl... " >&6; }
10295if ${ac_cv_lib_dl_dlsym+:} false; then :
10296  $as_echo_n "(cached) " >&6
10297else
10298  ac_check_lib_save_LIBS=$LIBS
10299LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301/* end confdefs.h.  */
10302
10303/* Override any GCC internal prototype to avoid an error.
10304   Use char because int might match the return type of a GCC
10305   builtin and then its argument prototype would still apply.  */
10306#ifdef __cplusplus
10307extern "C"
10308#endif
10309char dlsym ();
10310int
10311main ()
10312{
10313return dlsym ();
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318if ac_fn_c_try_link "$LINENO"; then :
10319  ac_cv_lib_dl_dlsym=yes
10320else
10321  ac_cv_lib_dl_dlsym=no
10322fi
10323rm -f core conftest.err conftest.$ac_objext \
10324    conftest$ac_exeext conftest.$ac_ext
10325LIBS=$ac_check_lib_save_LIBS
10326fi
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10328$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10329if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10330  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
10331fi
10332
10333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
10334$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
10335if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
10336  $as_echo_n "(cached) " >&6
10337else
10338  ac_check_lib_save_LIBS=$LIBS
10339LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341/* end confdefs.h.  */
10342
10343/* Override any GCC internal prototype to avoid an error.
10344   Use char because int might match the return type of a GCC
10345   builtin and then its argument prototype would still apply.  */
10346#ifdef __cplusplus
10347extern "C"
10348#endif
10349char XmuCreateStippledPixmap ();
10350int
10351main ()
10352{
10353return XmuCreateStippledPixmap ();
10354  ;
10355  return 0;
10356}
10357_ACEOF
10358if ac_fn_c_try_link "$LINENO"; then :
10359  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
10360else
10361  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
10362fi
10363rm -f core conftest.err conftest.$ac_objext \
10364    conftest$ac_exeext conftest.$ac_ext
10365LIBS=$ac_check_lib_save_LIBS
10366fi
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
10368$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
10369if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
10370  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
10371fi
10372
10373  if test -z "$SKIP_MOTIF"; then
10374    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
10375$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
10376if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
10377  $as_echo_n "(cached) " >&6
10378else
10379  ac_check_lib_save_LIBS=$LIBS
10380LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382/* end confdefs.h.  */
10383
10384/* Override any GCC internal prototype to avoid an error.
10385   Use char because int might match the return type of a GCC
10386   builtin and then its argument prototype would still apply.  */
10387#ifdef __cplusplus
10388extern "C"
10389#endif
10390char XpEndJob ();
10391int
10392main ()
10393{
10394return XpEndJob ();
10395  ;
10396  return 0;
10397}
10398_ACEOF
10399if ac_fn_c_try_link "$LINENO"; then :
10400  ac_cv_lib_Xp_XpEndJob=yes
10401else
10402  ac_cv_lib_Xp_XpEndJob=no
10403fi
10404rm -f core conftest.err conftest.$ac_objext \
10405    conftest$ac_exeext conftest.$ac_ext
10406LIBS=$ac_check_lib_save_LIBS
10407fi
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
10409$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10410if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
10411  GUI_X_LIBS="-lXp $GUI_X_LIBS"
10412fi
10413
10414  fi
10415  LDFLAGS=$ldflags_save
10416
10417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
10418$as_echo_n "checking for extra X11 defines... " >&6; }
10419  NARROW_PROTO=
10420  rm -fr conftestdir
10421  if mkdir conftestdir; then
10422    cd conftestdir
10423    cat > Imakefile <<'EOF'
10424acfindx:
10425	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10426EOF
10427    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10428      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10429    fi
10430    cd ..
10431    rm -fr conftestdir
10432  fi
10433  if test -z "$NARROW_PROTO"; then
10434    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435$as_echo "no" >&6; }
10436  else
10437    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
10438$as_echo "$NARROW_PROTO" >&6; }
10439  fi
10440
10441fi
10442
10443if test "$enable_xsmp" = "yes"; then
10444  cppflags_save=$CPPFLAGS
10445  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10446  for ac_header in X11/SM/SMlib.h
10447do :
10448  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10449if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
10450  cat >>confdefs.h <<_ACEOF
10451#define HAVE_X11_SM_SMLIB_H 1
10452_ACEOF
10453
10454fi
10455
10456done
10457
10458  CPPFLAGS=$cppflags_save
10459fi
10460
10461
10462if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
10463    cppflags_save=$CPPFLAGS
10464  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10465  for ac_header in X11/xpm.h X11/Sunkeysym.h
10466do :
10467  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10468ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10469if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10470  cat >>confdefs.h <<_ACEOF
10471#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10472_ACEOF
10473
10474fi
10475
10476done
10477
10478
10479    if test ! "$enable_xim" = "no"; then
10480    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
10481$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10482    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483/* end confdefs.h.  */
10484#include <X11/Xlib.h>
10485_ACEOF
10486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10487  $EGREP "XIMText" >/dev/null 2>&1; then :
10488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10489$as_echo "yes" >&6; }
10490else
10491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10492$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10493fi
10494rm -f conftest*
10495
10496  fi
10497  CPPFLAGS=$cppflags_save
10498
10499    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10500		-a "x$GUITYPE" != "xNONE" ; then
10501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10502$as_echo "X GUI selected; xim has been enabled" >&6; }
10503    enable_xim="yes"
10504  fi
10505fi
10506
10507if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10508  cppflags_save=$CPPFLAGS
10509  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10511$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513/* end confdefs.h.  */
10514
10515#include <X11/Intrinsic.h>
10516#include <X11/Xmu/Editres.h>
10517int
10518main ()
10519{
10520int i; i = 0;
10521  ;
10522  return 0;
10523}
10524_ACEOF
10525if ac_fn_c_try_compile "$LINENO"; then :
10526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10527$as_echo "yes" >&6; }
10528		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10529
10530else
10531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532$as_echo "no" >&6; }
10533fi
10534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10535  CPPFLAGS=$cppflags_save
10536fi
10537
10538if test -z "$SKIP_MOTIF"; then
10539  cppflags_save=$CPPFLAGS
10540  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10541  if test "$zOSUnix" = "yes"; then
10542	xmheader="Xm/Xm.h"
10543  else
10544	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10545	   Xm/UnhighlightT.h Xm/Notebook.h"
10546  fi
10547  for ac_header in $xmheader
10548do :
10549  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10550ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10551if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10552  cat >>confdefs.h <<_ACEOF
10553#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10554_ACEOF
10555
10556fi
10557
10558done
10559
10560
10561  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10562        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10563$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10564    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565/* end confdefs.h.  */
10566#include <Xm/XpmP.h>
10567int
10568main ()
10569{
10570XpmAttributes_21 attr;
10571  ;
10572  return 0;
10573}
10574_ACEOF
10575if ac_fn_c_try_compile "$LINENO"; then :
10576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10578
10579else
10580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10582
10583
10584fi
10585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10586  else
10587    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10588
10589  fi
10590  CPPFLAGS=$cppflags_save
10591fi
10592
10593if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10595$as_echo "no GUI selected; xim has been disabled" >&6; }
10596  enable_xim="no"
10597fi
10598if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10600$as_echo "no GUI selected; fontset has been disabled" >&6; }
10601  enable_fontset="no"
10602fi
10603if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10605$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10606  enable_fontset="no"
10607fi
10608
10609if test -z "$SKIP_PHOTON"; then
10610  GUITYPE=PHOTONGUI
10611fi
10612
10613
10614
10615
10616
10617
10618if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10619  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10620fi
10621
10622if test "$enable_xim" = "yes"; then
10623  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10624
10625fi
10626if test "$enable_fontset" = "yes"; then
10627  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10628
10629fi
10630
10631
10632
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10634$as_echo_n "checking for /proc link to executable... " >&6; }
10635if test -L "/proc/self/exe"; then
10636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10637$as_echo "/proc/self/exe" >&6; }
10638  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10639
10640elif test -L "/proc/self/path/a.out"; then
10641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10642$as_echo "/proc/self/path/a.out" >&6; }
10643  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10644
10645elif test -L "/proc/curproc/file"; then
10646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10647$as_echo "/proc/curproc/file" >&6; }
10648  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10649
10650else
10651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652$as_echo "no" >&6; }
10653fi
10654
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10656$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10657case `uname` in
10658    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10659$as_echo "yes" >&6; }
10660                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10661$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10662                if test "x$with_x" = "xno" ; then
10663                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10664                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665$as_echo "yes" >&6; }
10666                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10667
10668                else
10669                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10670$as_echo "no - using X11" >&6; }
10671                fi ;;
10672
10673    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674$as_echo "no" >&6; };;
10675esac
10676
10677if test "$enable_hangulinput" = "yes"; then
10678  if test "x$GUITYPE" = "xNONE"; then
10679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
10680$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10681    enable_hangulinput=no
10682  else
10683    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
10684
10685    HANGULIN_SRC=hangulin.c
10686
10687    HANGULIN_OBJ=objects/hangulin.o
10688
10689  fi
10690fi
10691
10692
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10694$as_echo_n "checking whether toupper is broken... " >&6; }
10695if ${vim_cv_toupper_broken+:} false; then :
10696  $as_echo_n "(cached) " >&6
10697else
10698
10699    if test "$cross_compiling" = yes; then :
10700
10701    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10702
10703else
10704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705/* end confdefs.h.  */
10706
10707#include "confdefs.h"
10708#include <ctype.h>
10709#if STDC_HEADERS
10710# include <stdlib.h>
10711# include <stddef.h>
10712#endif
10713main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10714
10715_ACEOF
10716if ac_fn_c_try_run "$LINENO"; then :
10717
10718    vim_cv_toupper_broken=yes
10719
10720else
10721
10722    vim_cv_toupper_broken=no
10723
10724fi
10725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10726  conftest.$ac_objext conftest.beam conftest.$ac_ext
10727fi
10728
10729fi
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10731$as_echo "$vim_cv_toupper_broken" >&6; }
10732
10733if test "x$vim_cv_toupper_broken" = "xyes" ; then
10734  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10735
10736fi
10737
10738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10739$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741/* end confdefs.h.  */
10742#include <stdio.h>
10743int
10744main ()
10745{
10746printf("(" __DATE__ " " __TIME__ ")");
10747  ;
10748  return 0;
10749}
10750_ACEOF
10751if ac_fn_c_try_compile "$LINENO"; then :
10752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10753$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10754
10755else
10756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757$as_echo "no" >&6; }
10758fi
10759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10762$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764/* end confdefs.h.  */
10765#include <stdio.h>
10766int
10767main ()
10768{
10769int x __attribute__((unused));
10770  ;
10771  return 0;
10772}
10773_ACEOF
10774if ac_fn_c_try_compile "$LINENO"; then :
10775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10776$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10777
10778else
10779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10780$as_echo "no" >&6; }
10781fi
10782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10783
10784ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10785if test "x$ac_cv_header_elf_h" = xyes; then :
10786  HAS_ELF=1
10787fi
10788
10789
10790if test "$HAS_ELF" = 1; then
10791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10792$as_echo_n "checking for main in -lelf... " >&6; }
10793if ${ac_cv_lib_elf_main+:} false; then :
10794  $as_echo_n "(cached) " >&6
10795else
10796  ac_check_lib_save_LIBS=$LIBS
10797LIBS="-lelf  $LIBS"
10798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799/* end confdefs.h.  */
10800
10801
10802int
10803main ()
10804{
10805return main ();
10806  ;
10807  return 0;
10808}
10809_ACEOF
10810if ac_fn_c_try_link "$LINENO"; then :
10811  ac_cv_lib_elf_main=yes
10812else
10813  ac_cv_lib_elf_main=no
10814fi
10815rm -f core conftest.err conftest.$ac_objext \
10816    conftest$ac_exeext conftest.$ac_ext
10817LIBS=$ac_check_lib_save_LIBS
10818fi
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10820$as_echo "$ac_cv_lib_elf_main" >&6; }
10821if test "x$ac_cv_lib_elf_main" = xyes; then :
10822  cat >>confdefs.h <<_ACEOF
10823#define HAVE_LIBELF 1
10824_ACEOF
10825
10826  LIBS="-lelf $LIBS"
10827
10828fi
10829
10830fi
10831
10832ac_header_dirent=no
10833for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10834  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10836$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10837if eval \${$as_ac_Header+:} false; then :
10838  $as_echo_n "(cached) " >&6
10839else
10840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841/* end confdefs.h.  */
10842#include <sys/types.h>
10843#include <$ac_hdr>
10844
10845int
10846main ()
10847{
10848if ((DIR *) 0)
10849return 0;
10850  ;
10851  return 0;
10852}
10853_ACEOF
10854if ac_fn_c_try_compile "$LINENO"; then :
10855  eval "$as_ac_Header=yes"
10856else
10857  eval "$as_ac_Header=no"
10858fi
10859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860fi
10861eval ac_res=\$$as_ac_Header
10862	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10863$as_echo "$ac_res" >&6; }
10864if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10865  cat >>confdefs.h <<_ACEOF
10866#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10867_ACEOF
10868
10869ac_header_dirent=$ac_hdr; break
10870fi
10871
10872done
10873# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10874if test $ac_header_dirent = dirent.h; then
10875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10876$as_echo_n "checking for library containing opendir... " >&6; }
10877if ${ac_cv_search_opendir+:} false; then :
10878  $as_echo_n "(cached) " >&6
10879else
10880  ac_func_search_save_LIBS=$LIBS
10881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882/* end confdefs.h.  */
10883
10884/* Override any GCC internal prototype to avoid an error.
10885   Use char because int might match the return type of a GCC
10886   builtin and then its argument prototype would still apply.  */
10887#ifdef __cplusplus
10888extern "C"
10889#endif
10890char opendir ();
10891int
10892main ()
10893{
10894return opendir ();
10895  ;
10896  return 0;
10897}
10898_ACEOF
10899for ac_lib in '' dir; do
10900  if test -z "$ac_lib"; then
10901    ac_res="none required"
10902  else
10903    ac_res=-l$ac_lib
10904    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10905  fi
10906  if ac_fn_c_try_link "$LINENO"; then :
10907  ac_cv_search_opendir=$ac_res
10908fi
10909rm -f core conftest.err conftest.$ac_objext \
10910    conftest$ac_exeext
10911  if ${ac_cv_search_opendir+:} false; then :
10912  break
10913fi
10914done
10915if ${ac_cv_search_opendir+:} false; then :
10916
10917else
10918  ac_cv_search_opendir=no
10919fi
10920rm conftest.$ac_ext
10921LIBS=$ac_func_search_save_LIBS
10922fi
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10924$as_echo "$ac_cv_search_opendir" >&6; }
10925ac_res=$ac_cv_search_opendir
10926if test "$ac_res" != no; then :
10927  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10928
10929fi
10930
10931else
10932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10933$as_echo_n "checking for library containing opendir... " >&6; }
10934if ${ac_cv_search_opendir+:} false; then :
10935  $as_echo_n "(cached) " >&6
10936else
10937  ac_func_search_save_LIBS=$LIBS
10938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940
10941/* Override any GCC internal prototype to avoid an error.
10942   Use char because int might match the return type of a GCC
10943   builtin and then its argument prototype would still apply.  */
10944#ifdef __cplusplus
10945extern "C"
10946#endif
10947char opendir ();
10948int
10949main ()
10950{
10951return opendir ();
10952  ;
10953  return 0;
10954}
10955_ACEOF
10956for ac_lib in '' x; do
10957  if test -z "$ac_lib"; then
10958    ac_res="none required"
10959  else
10960    ac_res=-l$ac_lib
10961    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10962  fi
10963  if ac_fn_c_try_link "$LINENO"; then :
10964  ac_cv_search_opendir=$ac_res
10965fi
10966rm -f core conftest.err conftest.$ac_objext \
10967    conftest$ac_exeext
10968  if ${ac_cv_search_opendir+:} false; then :
10969  break
10970fi
10971done
10972if ${ac_cv_search_opendir+:} false; then :
10973
10974else
10975  ac_cv_search_opendir=no
10976fi
10977rm conftest.$ac_ext
10978LIBS=$ac_func_search_save_LIBS
10979fi
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10981$as_echo "$ac_cv_search_opendir" >&6; }
10982ac_res=$ac_cv_search_opendir
10983if test "$ac_res" != no; then :
10984  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10985
10986fi
10987
10988fi
10989
10990
10991if test $ac_cv_header_sys_wait_h = no; then
10992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
10993$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995/* end confdefs.h.  */
10996#include <sys/wait.h>
10997int
10998main ()
10999{
11000union wait xx, yy; xx = yy
11001  ;
11002  return 0;
11003}
11004_ACEOF
11005if ac_fn_c_try_compile "$LINENO"; then :
11006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11007$as_echo "yes" >&6; }
11008			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11009
11010			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
11011
11012else
11013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014$as_echo "no" >&6; }
11015fi
11016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017fi
11018
11019for ac_header in stdint.h stdlib.h string.h \
11020	sys/select.h sys/utsname.h termcap.h fcntl.h \
11021	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
11022	termio.h iconv.h inttypes.h langinfo.h math.h \
11023	unistd.h stropts.h errno.h sys/resource.h \
11024	sys/systeminfo.h locale.h sys/stream.h termios.h \
11025	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
11026	utime.h sys/param.h sys/ptms.h libintl.h libgen.h \
11027	util/debug.h util/msg18n.h frame.h sys/acl.h \
11028	sys/access.h sys/sysinfo.h wchar.h wctype.h
11029do :
11030  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11031ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11032if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11033  cat >>confdefs.h <<_ACEOF
11034#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11035_ACEOF
11036
11037fi
11038
11039done
11040
11041
11042for ac_header in sys/ptem.h
11043do :
11044  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
11045#  include <sys/stream.h>
11046#endif
11047"
11048if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
11049  cat >>confdefs.h <<_ACEOF
11050#define HAVE_SYS_PTEM_H 1
11051_ACEOF
11052
11053fi
11054
11055done
11056
11057
11058for ac_header in sys/sysctl.h
11059do :
11060  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
11061#  include <sys/param.h>
11062#endif
11063"
11064if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
11065  cat >>confdefs.h <<_ACEOF
11066#define HAVE_SYS_SYSCTL_H 1
11067_ACEOF
11068
11069fi
11070
11071done
11072
11073
11074
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
11076$as_echo_n "checking for pthread_np.h... " >&6; }
11077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078/* end confdefs.h.  */
11079
11080#include <pthread.h>
11081#include <pthread_np.h>
11082int
11083main ()
11084{
11085int i; i = 0;
11086  ;
11087  return 0;
11088}
11089_ACEOF
11090if ac_fn_c_try_compile "$LINENO"; then :
11091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11092$as_echo "yes" >&6; }
11093		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
11094
11095else
11096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097$as_echo "no" >&6; }
11098fi
11099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100
11101for ac_header in strings.h
11102do :
11103  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
11104if test "x$ac_cv_header_strings_h" = xyes; then :
11105  cat >>confdefs.h <<_ACEOF
11106#define HAVE_STRINGS_H 1
11107_ACEOF
11108
11109fi
11110
11111done
11112
11113if test "x$MACOS_X" = "xyes"; then
11114    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11115
11116else
11117
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
11119$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11120cppflags_save=$CPPFLAGS
11121CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123/* end confdefs.h.  */
11124
11125#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11126# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11127			/* but don't do it on AIX 5.1 (Uribarri) */
11128#endif
11129#ifdef HAVE_XM_XM_H
11130# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11131#endif
11132#ifdef HAVE_STRING_H
11133# include <string.h>
11134#endif
11135#if defined(HAVE_STRINGS_H)
11136# include <strings.h>
11137#endif
11138
11139int
11140main ()
11141{
11142int i; i = 0;
11143  ;
11144  return 0;
11145}
11146_ACEOF
11147if ac_fn_c_try_compile "$LINENO"; then :
11148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11149$as_echo "yes" >&6; }
11150else
11151  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11152
11153		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154$as_echo "no" >&6; }
11155fi
11156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11157CPPFLAGS=$cppflags_save
11158fi
11159
11160if test $ac_cv_c_compiler_gnu = yes; then
11161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11162$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11163if ${ac_cv_prog_gcc_traditional+:} false; then :
11164  $as_echo_n "(cached) " >&6
11165else
11166    ac_pattern="Autoconf.*'x'"
11167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168/* end confdefs.h.  */
11169#include <sgtty.h>
11170Autoconf TIOCGETP
11171_ACEOF
11172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11173  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11174  ac_cv_prog_gcc_traditional=yes
11175else
11176  ac_cv_prog_gcc_traditional=no
11177fi
11178rm -f conftest*
11179
11180
11181  if test $ac_cv_prog_gcc_traditional = no; then
11182    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183/* end confdefs.h.  */
11184#include <termio.h>
11185Autoconf TCGETA
11186_ACEOF
11187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11188  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11189  ac_cv_prog_gcc_traditional=yes
11190fi
11191rm -f conftest*
11192
11193  fi
11194fi
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11196$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11197  if test $ac_cv_prog_gcc_traditional = yes; then
11198    CC="$CC -traditional"
11199  fi
11200fi
11201
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11203$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11204if ${ac_cv_c_const+:} false; then :
11205  $as_echo_n "(cached) " >&6
11206else
11207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208/* end confdefs.h.  */
11209
11210int
11211main ()
11212{
11213
11214#ifndef __cplusplus
11215  /* Ultrix mips cc rejects this sort of thing.  */
11216  typedef int charset[2];
11217  const charset cs = { 0, 0 };
11218  /* SunOS 4.1.1 cc rejects this.  */
11219  char const *const *pcpcc;
11220  char **ppc;
11221  /* NEC SVR4.0.2 mips cc rejects this.  */
11222  struct point {int x, y;};
11223  static struct point const zero = {0,0};
11224  /* AIX XL C 1.02.0.0 rejects this.
11225     It does not let you subtract one const X* pointer from another in
11226     an arm of an if-expression whose if-part is not a constant
11227     expression */
11228  const char *g = "string";
11229  pcpcc = &g + (g ? g-g : 0);
11230  /* HPUX 7.0 cc rejects these. */
11231  ++pcpcc;
11232  ppc = (char**) pcpcc;
11233  pcpcc = (char const *const *) ppc;
11234  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11235    char tx;
11236    char *t = &tx;
11237    char const *s = 0 ? (char *) 0 : (char const *) 0;
11238
11239    *t++ = 0;
11240    if (s) return 0;
11241  }
11242  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11243    int x[] = {25, 17};
11244    const int *foo = &x[0];
11245    ++foo;
11246  }
11247  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11248    typedef const int *iptr;
11249    iptr p = 0;
11250    ++p;
11251  }
11252  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11253       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11254    struct s { int j; const int *ap[3]; } bx;
11255    struct s *b = &bx; b->j = 5;
11256  }
11257  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11258    const int foo = 10;
11259    if (!foo) return 0;
11260  }
11261  return !cs[0] && !zero.x;
11262#endif
11263
11264  ;
11265  return 0;
11266}
11267_ACEOF
11268if ac_fn_c_try_compile "$LINENO"; then :
11269  ac_cv_c_const=yes
11270else
11271  ac_cv_c_const=no
11272fi
11273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11274fi
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11276$as_echo "$ac_cv_c_const" >&6; }
11277if test $ac_cv_c_const = no; then
11278
11279$as_echo "#define const /**/" >>confdefs.h
11280
11281fi
11282
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11284$as_echo_n "checking for working volatile... " >&6; }
11285if ${ac_cv_c_volatile+:} false; then :
11286  $as_echo_n "(cached) " >&6
11287else
11288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289/* end confdefs.h.  */
11290
11291int
11292main ()
11293{
11294
11295volatile int x;
11296int * volatile y = (int *) 0;
11297return !x && !y;
11298  ;
11299  return 0;
11300}
11301_ACEOF
11302if ac_fn_c_try_compile "$LINENO"; then :
11303  ac_cv_c_volatile=yes
11304else
11305  ac_cv_c_volatile=no
11306fi
11307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11308fi
11309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11310$as_echo "$ac_cv_c_volatile" >&6; }
11311if test $ac_cv_c_volatile = no; then
11312
11313$as_echo "#define volatile /**/" >>confdefs.h
11314
11315fi
11316
11317ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11318if test "x$ac_cv_type_mode_t" = xyes; then :
11319
11320else
11321
11322cat >>confdefs.h <<_ACEOF
11323#define mode_t int
11324_ACEOF
11325
11326fi
11327
11328ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11329if test "x$ac_cv_type_off_t" = xyes; then :
11330
11331else
11332
11333cat >>confdefs.h <<_ACEOF
11334#define off_t long int
11335_ACEOF
11336
11337fi
11338
11339ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11340if test "x$ac_cv_type_pid_t" = xyes; then :
11341
11342else
11343
11344cat >>confdefs.h <<_ACEOF
11345#define pid_t int
11346_ACEOF
11347
11348fi
11349
11350ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11351if test "x$ac_cv_type_size_t" = xyes; then :
11352
11353else
11354
11355cat >>confdefs.h <<_ACEOF
11356#define size_t unsigned int
11357_ACEOF
11358
11359fi
11360
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11362$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11363if ${ac_cv_type_uid_t+:} false; then :
11364  $as_echo_n "(cached) " >&6
11365else
11366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367/* end confdefs.h.  */
11368#include <sys/types.h>
11369
11370_ACEOF
11371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11372  $EGREP "uid_t" >/dev/null 2>&1; then :
11373  ac_cv_type_uid_t=yes
11374else
11375  ac_cv_type_uid_t=no
11376fi
11377rm -f conftest*
11378
11379fi
11380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11381$as_echo "$ac_cv_type_uid_t" >&6; }
11382if test $ac_cv_type_uid_t = no; then
11383
11384$as_echo "#define uid_t int" >>confdefs.h
11385
11386
11387$as_echo "#define gid_t int" >>confdefs.h
11388
11389fi
11390
11391ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11392case $ac_cv_c_uint32_t in #(
11393  no|yes) ;; #(
11394  *)
11395
11396$as_echo "#define _UINT32_T 1" >>confdefs.h
11397
11398
11399cat >>confdefs.h <<_ACEOF
11400#define uint32_t $ac_cv_c_uint32_t
11401_ACEOF
11402;;
11403  esac
11404
11405
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11407$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11408if ${ac_cv_header_time+:} false; then :
11409  $as_echo_n "(cached) " >&6
11410else
11411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412/* end confdefs.h.  */
11413#include <sys/types.h>
11414#include <sys/time.h>
11415#include <time.h>
11416
11417int
11418main ()
11419{
11420if ((struct tm *) 0)
11421return 0;
11422  ;
11423  return 0;
11424}
11425_ACEOF
11426if ac_fn_c_try_compile "$LINENO"; then :
11427  ac_cv_header_time=yes
11428else
11429  ac_cv_header_time=no
11430fi
11431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11432fi
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11434$as_echo "$ac_cv_header_time" >&6; }
11435if test $ac_cv_header_time = yes; then
11436
11437$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11438
11439fi
11440
11441ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
11442if test "x$ac_cv_type_ino_t" = xyes; then :
11443
11444else
11445
11446cat >>confdefs.h <<_ACEOF
11447#define ino_t long
11448_ACEOF
11449
11450fi
11451
11452ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
11453if test "x$ac_cv_type_dev_t" = xyes; then :
11454
11455else
11456
11457cat >>confdefs.h <<_ACEOF
11458#define dev_t unsigned
11459_ACEOF
11460
11461fi
11462
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11464$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11465if ${ac_cv_c_bigendian+:} false; then :
11466  $as_echo_n "(cached) " >&6
11467else
11468  ac_cv_c_bigendian=unknown
11469    # See if we're dealing with a universal compiler.
11470    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471/* end confdefs.h.  */
11472#ifndef __APPLE_CC__
11473	       not a universal capable compiler
11474	     #endif
11475	     typedef int dummy;
11476
11477_ACEOF
11478if ac_fn_c_try_compile "$LINENO"; then :
11479
11480	# Check for potential -arch flags.  It is not universal unless
11481	# there are at least two -arch flags with different values.
11482	ac_arch=
11483	ac_prev=
11484	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11485	 if test -n "$ac_prev"; then
11486	   case $ac_word in
11487	     i?86 | x86_64 | ppc | ppc64)
11488	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11489		 ac_arch=$ac_word
11490	       else
11491		 ac_cv_c_bigendian=universal
11492		 break
11493	       fi
11494	       ;;
11495	   esac
11496	   ac_prev=
11497	 elif test "x$ac_word" = "x-arch"; then
11498	   ac_prev=arch
11499	 fi
11500       done
11501fi
11502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503    if test $ac_cv_c_bigendian = unknown; then
11504      # See if sys/param.h defines the BYTE_ORDER macro.
11505      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506/* end confdefs.h.  */
11507#include <sys/types.h>
11508	     #include <sys/param.h>
11509
11510int
11511main ()
11512{
11513#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11514		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11515		     && LITTLE_ENDIAN)
11516	      bogus endian macros
11517	     #endif
11518
11519  ;
11520  return 0;
11521}
11522_ACEOF
11523if ac_fn_c_try_compile "$LINENO"; then :
11524  # It does; now see whether it defined to BIG_ENDIAN or not.
11525	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526/* end confdefs.h.  */
11527#include <sys/types.h>
11528		#include <sys/param.h>
11529
11530int
11531main ()
11532{
11533#if BYTE_ORDER != BIG_ENDIAN
11534		 not big endian
11535		#endif
11536
11537  ;
11538  return 0;
11539}
11540_ACEOF
11541if ac_fn_c_try_compile "$LINENO"; then :
11542  ac_cv_c_bigendian=yes
11543else
11544  ac_cv_c_bigendian=no
11545fi
11546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547fi
11548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549    fi
11550    if test $ac_cv_c_bigendian = unknown; then
11551      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11552      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553/* end confdefs.h.  */
11554#include <limits.h>
11555
11556int
11557main ()
11558{
11559#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11560	      bogus endian macros
11561	     #endif
11562
11563  ;
11564  return 0;
11565}
11566_ACEOF
11567if ac_fn_c_try_compile "$LINENO"; then :
11568  # It does; now see whether it defined to _BIG_ENDIAN or not.
11569	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570/* end confdefs.h.  */
11571#include <limits.h>
11572
11573int
11574main ()
11575{
11576#ifndef _BIG_ENDIAN
11577		 not big endian
11578		#endif
11579
11580  ;
11581  return 0;
11582}
11583_ACEOF
11584if ac_fn_c_try_compile "$LINENO"; then :
11585  ac_cv_c_bigendian=yes
11586else
11587  ac_cv_c_bigendian=no
11588fi
11589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590fi
11591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11592    fi
11593    if test $ac_cv_c_bigendian = unknown; then
11594      # Compile a test program.
11595      if test "$cross_compiling" = yes; then :
11596  # Try to guess by grepping values from an object file.
11597	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598/* end confdefs.h.  */
11599short int ascii_mm[] =
11600		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11601		short int ascii_ii[] =
11602		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11603		int use_ascii (int i) {
11604		  return ascii_mm[i] + ascii_ii[i];
11605		}
11606		short int ebcdic_ii[] =
11607		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11608		short int ebcdic_mm[] =
11609		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11610		int use_ebcdic (int i) {
11611		  return ebcdic_mm[i] + ebcdic_ii[i];
11612		}
11613		extern int foo;
11614
11615int
11616main ()
11617{
11618return use_ascii (foo) == use_ebcdic (foo);
11619  ;
11620  return 0;
11621}
11622_ACEOF
11623if ac_fn_c_try_compile "$LINENO"; then :
11624  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11625	      ac_cv_c_bigendian=yes
11626	    fi
11627	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11628	      if test "$ac_cv_c_bigendian" = unknown; then
11629		ac_cv_c_bigendian=no
11630	      else
11631		# finding both strings is unlikely to happen, but who knows?
11632		ac_cv_c_bigendian=unknown
11633	      fi
11634	    fi
11635fi
11636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637else
11638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639/* end confdefs.h.  */
11640$ac_includes_default
11641int
11642main ()
11643{
11644
11645	     /* Are we little or big endian?  From Harbison&Steele.  */
11646	     union
11647	     {
11648	       long int l;
11649	       char c[sizeof (long int)];
11650	     } u;
11651	     u.l = 1;
11652	     return u.c[sizeof (long int) - 1] == 1;
11653
11654  ;
11655  return 0;
11656}
11657_ACEOF
11658if ac_fn_c_try_run "$LINENO"; then :
11659  ac_cv_c_bigendian=no
11660else
11661  ac_cv_c_bigendian=yes
11662fi
11663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11664  conftest.$ac_objext conftest.beam conftest.$ac_ext
11665fi
11666
11667    fi
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11670$as_echo "$ac_cv_c_bigendian" >&6; }
11671 case $ac_cv_c_bigendian in #(
11672   yes)
11673     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11674;; #(
11675   no)
11676      ;; #(
11677   universal)
11678
11679$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11680
11681     ;; #(
11682   *)
11683     as_fn_error $? "unknown endianness
11684 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11685 esac
11686
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11688$as_echo_n "checking for inline... " >&6; }
11689if ${ac_cv_c_inline+:} false; then :
11690  $as_echo_n "(cached) " >&6
11691else
11692  ac_cv_c_inline=no
11693for ac_kw in inline __inline__ __inline; do
11694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695/* end confdefs.h.  */
11696#ifndef __cplusplus
11697typedef int foo_t;
11698static $ac_kw foo_t static_foo () {return 0; }
11699$ac_kw foo_t foo () {return 0; }
11700#endif
11701
11702_ACEOF
11703if ac_fn_c_try_compile "$LINENO"; then :
11704  ac_cv_c_inline=$ac_kw
11705fi
11706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707  test "$ac_cv_c_inline" != no && break
11708done
11709
11710fi
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11712$as_echo "$ac_cv_c_inline" >&6; }
11713
11714case $ac_cv_c_inline in
11715  inline | yes) ;;
11716  *)
11717    case $ac_cv_c_inline in
11718      no) ac_val=;;
11719      *) ac_val=$ac_cv_c_inline;;
11720    esac
11721    cat >>confdefs.h <<_ACEOF
11722#ifndef __cplusplus
11723#define inline $ac_val
11724#endif
11725_ACEOF
11726    ;;
11727esac
11728
11729
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11731$as_echo_n "checking for rlim_t... " >&6; }
11732if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11734$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11735else
11736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737/* end confdefs.h.  */
11738
11739#include <sys/types.h>
11740#if STDC_HEADERS
11741# include <stdlib.h>
11742# include <stddef.h>
11743#endif
11744#ifdef HAVE_SYS_RESOURCE_H
11745# include <sys/resource.h>
11746#endif
11747
11748_ACEOF
11749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11750  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11751  ac_cv_type_rlim_t=yes
11752else
11753  ac_cv_type_rlim_t=no
11754fi
11755rm -f conftest*
11756
11757	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11758$as_echo "$ac_cv_type_rlim_t" >&6; }
11759fi
11760if test $ac_cv_type_rlim_t = no; then
11761  cat >> confdefs.h <<\EOF
11762#define rlim_t unsigned long
11763EOF
11764fi
11765
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11767$as_echo_n "checking for stack_t... " >&6; }
11768if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11770$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11771else
11772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773/* end confdefs.h.  */
11774
11775#include <sys/types.h>
11776#if STDC_HEADERS
11777# include <stdlib.h>
11778# include <stddef.h>
11779#endif
11780#include <signal.h>
11781
11782_ACEOF
11783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11784  $EGREP "stack_t" >/dev/null 2>&1; then :
11785  ac_cv_type_stack_t=yes
11786else
11787  ac_cv_type_stack_t=no
11788fi
11789rm -f conftest*
11790
11791	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11792$as_echo "$ac_cv_type_stack_t" >&6; }
11793fi
11794if test $ac_cv_type_stack_t = no; then
11795  cat >> confdefs.h <<\EOF
11796#define stack_t struct sigaltstack
11797EOF
11798fi
11799
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11801$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803/* end confdefs.h.  */
11804
11805#include <sys/types.h>
11806#if STDC_HEADERS
11807# include <stdlib.h>
11808# include <stddef.h>
11809#endif
11810#include <signal.h>
11811#include "confdefs.h"
11812
11813int
11814main ()
11815{
11816stack_t sigstk; sigstk.ss_base = 0;
11817  ;
11818  return 0;
11819}
11820_ACEOF
11821if ac_fn_c_try_compile "$LINENO"; then :
11822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11824
11825else
11826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827$as_echo "no" >&6; }
11828fi
11829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830
11831olibs="$LIBS"
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11833$as_echo_n "checking --with-tlib argument... " >&6; }
11834
11835# Check whether --with-tlib was given.
11836if test "${with_tlib+set}" = set; then :
11837  withval=$with_tlib;
11838fi
11839
11840if test -n "$with_tlib"; then
11841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11842$as_echo "$with_tlib" >&6; }
11843  LIBS="$LIBS -l$with_tlib"
11844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11845$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847/* end confdefs.h.  */
11848
11849int
11850main ()
11851{
11852
11853  ;
11854  return 0;
11855}
11856_ACEOF
11857if ac_fn_c_try_link "$LINENO"; then :
11858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
11859$as_echo "OK" >&6; }
11860else
11861  as_fn_error $? "FAILED" "$LINENO" 5
11862fi
11863rm -f core conftest.err conftest.$ac_objext \
11864    conftest$ac_exeext conftest.$ac_ext
11865    olibs="$LIBS"
11866else
11867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
11868$as_echo "empty: automatic terminal library selection" >&6; }
11869                case "`uname -s 2>/dev/null`" in
11870	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
11871	*)	tlibs="tinfo ncurses termlib termcap curses";;
11872  esac
11873  for libname in $tlibs; do
11874    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
11876$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
11877if eval \${$as_ac_Lib+:} false; then :
11878  $as_echo_n "(cached) " >&6
11879else
11880  ac_check_lib_save_LIBS=$LIBS
11881LIBS="-l${libname}  $LIBS"
11882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883/* end confdefs.h.  */
11884
11885/* Override any GCC internal prototype to avoid an error.
11886   Use char because int might match the return type of a GCC
11887   builtin and then its argument prototype would still apply.  */
11888#ifdef __cplusplus
11889extern "C"
11890#endif
11891char tgetent ();
11892int
11893main ()
11894{
11895return tgetent ();
11896  ;
11897  return 0;
11898}
11899_ACEOF
11900if ac_fn_c_try_link "$LINENO"; then :
11901  eval "$as_ac_Lib=yes"
11902else
11903  eval "$as_ac_Lib=no"
11904fi
11905rm -f core conftest.err conftest.$ac_objext \
11906    conftest$ac_exeext conftest.$ac_ext
11907LIBS=$ac_check_lib_save_LIBS
11908fi
11909eval ac_res=\$$as_ac_Lib
11910	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11911$as_echo "$ac_res" >&6; }
11912if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11913  cat >>confdefs.h <<_ACEOF
11914#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11915_ACEOF
11916
11917  LIBS="-l${libname} $LIBS"
11918
11919fi
11920
11921    if test "x$olibs" != "x$LIBS"; then
11922                        if test "$cross_compiling" = yes; then :
11923  res="FAIL"
11924else
11925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926/* end confdefs.h.  */
11927
11928#ifdef HAVE_TERMCAP_H
11929# include <termcap.h>
11930#endif
11931#if STDC_HEADERS
11932# include <stdlib.h>
11933# include <stddef.h>
11934#endif
11935main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11936_ACEOF
11937if ac_fn_c_try_run "$LINENO"; then :
11938  res="OK"
11939else
11940  res="FAIL"
11941fi
11942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11943  conftest.$ac_objext conftest.beam conftest.$ac_ext
11944fi
11945
11946      if test "$res" = "OK"; then
11947	break
11948      fi
11949      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
11950$as_echo "$libname library is not usable" >&6; }
11951      LIBS="$olibs"
11952    fi
11953  done
11954  if test "x$olibs" = "x$LIBS"; then
11955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
11956$as_echo "no terminal library found" >&6; }
11957  fi
11958fi
11959
11960if test "x$olibs" = "x$LIBS"; then
11961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
11962$as_echo_n "checking for tgetent()... " >&6; }
11963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964/* end confdefs.h.  */
11965
11966int
11967main ()
11968{
11969char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11970  ;
11971  return 0;
11972}
11973_ACEOF
11974if ac_fn_c_try_link "$LINENO"; then :
11975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976$as_echo "yes" >&6; }
11977else
11978  as_fn_error $? "NOT FOUND!
11979      You need to install a terminal library; for example ncurses.
11980      Or specify the name of the library with --with-tlib." "$LINENO" 5
11981fi
11982rm -f core conftest.err conftest.$ac_objext \
11983    conftest$ac_exeext conftest.$ac_ext
11984fi
11985
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
11987$as_echo_n "checking whether we talk terminfo... " >&6; }
11988if ${vim_cv_terminfo+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991
11992    if test "$cross_compiling" = yes; then :
11993
11994      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
11995
11996else
11997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998/* end confdefs.h.  */
11999
12000#include "confdefs.h"
12001#ifdef HAVE_TERMCAP_H
12002# include <termcap.h>
12003#endif
12004#ifdef HAVE_STRING_H
12005# include <string.h>
12006#endif
12007#if STDC_HEADERS
12008# include <stdlib.h>
12009# include <stddef.h>
12010#endif
12011main()
12012{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12013
12014_ACEOF
12015if ac_fn_c_try_run "$LINENO"; then :
12016
12017      vim_cv_terminfo=no
12018
12019else
12020
12021      vim_cv_terminfo=yes
12022
12023fi
12024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12025  conftest.$ac_objext conftest.beam conftest.$ac_ext
12026fi
12027
12028
12029fi
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
12031$as_echo "$vim_cv_terminfo" >&6; }
12032
12033if test "x$vim_cv_terminfo" = "xyes" ; then
12034  $as_echo "#define TERMINFO 1" >>confdefs.h
12035
12036fi
12037
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
12039$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12040if ${vim_cv_tgetent+:} false; then :
12041  $as_echo_n "(cached) " >&6
12042else
12043
12044    if test "$cross_compiling" = yes; then :
12045
12046      as_fn_error $? "failed to compile test program." "$LINENO" 5
12047
12048else
12049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050/* end confdefs.h.  */
12051
12052#include "confdefs.h"
12053#ifdef HAVE_TERMCAP_H
12054# include <termcap.h>
12055#endif
12056#if STDC_HEADERS
12057# include <stdlib.h>
12058# include <stddef.h>
12059#endif
12060main()
12061{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12062
12063_ACEOF
12064if ac_fn_c_try_run "$LINENO"; then :
12065
12066      vim_cv_tgetent=zero
12067
12068else
12069
12070      vim_cv_tgetent=non-zero
12071
12072fi
12073rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12074  conftest.$ac_objext conftest.beam conftest.$ac_ext
12075fi
12076
12077
12078fi
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5
12080$as_echo "$vim_cv_tgetent" >&6; }
12081
12082if test "x$vim_cv_tgetent" = "xzero" ; then
12083  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
12084
12085fi
12086
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
12088$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090/* end confdefs.h.  */
12091
12092#ifdef HAVE_TERMCAP_H
12093# include <termcap.h>
12094#endif
12095
12096int
12097main ()
12098{
12099ospeed = 20000
12100  ;
12101  return 0;
12102}
12103_ACEOF
12104if ac_fn_c_try_link "$LINENO"; then :
12105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12106$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
12107
12108else
12109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110$as_echo "no" >&6; }
12111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
12112$as_echo_n "checking whether ospeed can be extern... " >&6; }
12113	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h.  */
12115
12116#ifdef HAVE_TERMCAP_H
12117# include <termcap.h>
12118#endif
12119extern short ospeed;
12120
12121int
12122main ()
12123{
12124ospeed = 20000
12125  ;
12126  return 0;
12127}
12128_ACEOF
12129if ac_fn_c_try_link "$LINENO"; then :
12130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12131$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
12132
12133else
12134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135$as_echo "no" >&6; }
12136fi
12137rm -f core conftest.err conftest.$ac_objext \
12138    conftest$ac_exeext conftest.$ac_ext
12139
12140fi
12141rm -f core conftest.err conftest.$ac_objext \
12142    conftest$ac_exeext conftest.$ac_ext
12143
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
12145$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h.  */
12148
12149#ifdef HAVE_TERMCAP_H
12150# include <termcap.h>
12151#endif
12152
12153int
12154main ()
12155{
12156if (UP == 0 && BC == 0) PC = 1
12157  ;
12158  return 0;
12159}
12160_ACEOF
12161if ac_fn_c_try_link "$LINENO"; then :
12162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12163$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
12164
12165else
12166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167$as_echo "no" >&6; }
12168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
12169$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
12170	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171/* end confdefs.h.  */
12172
12173#ifdef HAVE_TERMCAP_H
12174# include <termcap.h>
12175#endif
12176extern char *UP, *BC, PC;
12177
12178int
12179main ()
12180{
12181if (UP == 0 && BC == 0) PC = 1
12182  ;
12183  return 0;
12184}
12185_ACEOF
12186if ac_fn_c_try_link "$LINENO"; then :
12187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12188$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
12189
12190else
12191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192$as_echo "no" >&6; }
12193fi
12194rm -f core conftest.err conftest.$ac_objext \
12195    conftest$ac_exeext conftest.$ac_ext
12196
12197fi
12198rm -f core conftest.err conftest.$ac_objext \
12199    conftest$ac_exeext conftest.$ac_ext
12200
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
12202$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
12203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204/* end confdefs.h.  */
12205
12206#ifdef HAVE_TERMCAP_H
12207# include <termcap.h>
12208#endif
12209
12210int
12211main ()
12212{
12213extern int xx(); tputs("test", 1, (outfuntype)xx)
12214  ;
12215  return 0;
12216}
12217_ACEOF
12218if ac_fn_c_try_compile "$LINENO"; then :
12219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12220$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
12221
12222else
12223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224$as_echo "no" >&6; }
12225fi
12226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12229$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231/* end confdefs.h.  */
12232
12233#include <sys/types.h>
12234#include <sys/time.h>
12235#include <sys/select.h>
12236int
12237main ()
12238{
12239
12240  ;
12241  return 0;
12242}
12243_ACEOF
12244if ac_fn_c_try_compile "$LINENO"; then :
12245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12246$as_echo "yes" >&6; }
12247			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12248
12249else
12250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251$as_echo "no" >&6; }
12252fi
12253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254
12255
12256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12257$as_echo_n "checking for /dev/ptc... " >&6; }
12258if test -r /dev/ptc; then
12259  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
12260
12261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12262$as_echo "yes" >&6; }
12263else
12264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265$as_echo "no" >&6; }
12266fi
12267
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
12269$as_echo_n "checking for SVR4 ptys... " >&6; }
12270if test -c /dev/ptmx ; then
12271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272/* end confdefs.h.  */
12273
12274int
12275main ()
12276{
12277ptsname(0);grantpt(0);unlockpt(0);
12278  ;
12279  return 0;
12280}
12281_ACEOF
12282if ac_fn_c_try_link "$LINENO"; then :
12283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12284$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
12285
12286else
12287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288$as_echo "no" >&6; }
12289fi
12290rm -f core conftest.err conftest.$ac_objext \
12291    conftest$ac_exeext conftest.$ac_ext
12292else
12293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294$as_echo "no" >&6; }
12295fi
12296
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
12298$as_echo_n "checking for ptyranges... " >&6; }
12299if test -d /dev/ptym ; then
12300  pdir='/dev/ptym'
12301else
12302  pdir='/dev'
12303fi
12304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h.  */
12306#ifdef M_UNIX
12307   yes;
12308#endif
12309
12310_ACEOF
12311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12312  $EGREP "yes" >/dev/null 2>&1; then :
12313  ptys=`echo /dev/ptyp??`
12314else
12315  ptys=`echo $pdir/pty??`
12316fi
12317rm -f conftest*
12318
12319if test "$ptys" != "$pdir/pty??" ; then
12320  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12321  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12322  cat >>confdefs.h <<_ACEOF
12323#define PTYRANGE0 "$p0"
12324_ACEOF
12325
12326  cat >>confdefs.h <<_ACEOF
12327#define PTYRANGE1 "$p1"
12328_ACEOF
12329
12330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
12331$as_echo "$p0 / $p1" >&6; }
12332else
12333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
12334$as_echo "don't know" >&6; }
12335fi
12336
12337rm -f conftest_grp
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
12339$as_echo_n "checking default tty permissions/group... " >&6; }
12340if ${vim_cv_tty_group+:} false; then :
12341  $as_echo_n "(cached) " >&6
12342else
12343
12344    if test "$cross_compiling" = yes; then :
12345
12346      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
12347
12348else
12349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350/* end confdefs.h.  */
12351
12352#include "confdefs.h"
12353#include <sys/types.h>
12354#if STDC_HEADERS
12355# include <stdlib.h>
12356# include <stddef.h>
12357#endif
12358#ifdef HAVE_UNISTD_H
12359#include <unistd.h>
12360#endif
12361#include <sys/stat.h>
12362#include <stdio.h>
12363main()
12364{
12365  struct stat sb;
12366  char *x,*ttyname();
12367  int om, m;
12368  FILE *fp;
12369
12370  if (!(x = ttyname(0))) exit(1);
12371  if (stat(x, &sb)) exit(1);
12372  om = sb.st_mode;
12373  if (om & 002) exit(0);
12374  m = system("mesg y");
12375  if (m == -1 || m == 127) exit(1);
12376  if (stat(x, &sb)) exit(1);
12377  m = sb.st_mode;
12378  if (chmod(x, om)) exit(1);
12379  if (m & 002) exit(0);
12380  if (sb.st_gid == getgid()) exit(1);
12381  if (!(fp=fopen("conftest_grp", "w")))
12382    exit(1);
12383  fprintf(fp, "%d\n", sb.st_gid);
12384  fclose(fp);
12385  exit(0);
12386}
12387
12388_ACEOF
12389if ac_fn_c_try_run "$LINENO"; then :
12390
12391      if test -f conftest_grp; then
12392	vim_cv_tty_group=`cat conftest_grp`
12393	if test "x$vim_cv_tty_mode" = "x" ; then
12394	  vim_cv_tty_mode=0620
12395	fi
12396	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
12397$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
12398      else
12399	vim_cv_tty_group=world
12400	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
12401$as_echo "ptys are world accessible" >&6; }
12402      fi
12403
12404else
12405
12406      vim_cv_tty_group=world
12407      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
12408$as_echo "can't determine - assume ptys are world accessible" >&6; }
12409
12410fi
12411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12412  conftest.$ac_objext conftest.beam conftest.$ac_ext
12413fi
12414
12415
12416fi
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
12418$as_echo "$vim_cv_tty_group" >&6; }
12419rm -f conftest_grp
12420
12421if test "x$vim_cv_tty_group" != "xworld" ; then
12422  cat >>confdefs.h <<_ACEOF
12423#define PTYGROUP $vim_cv_tty_group
12424_ACEOF
12425
12426  if test "x$vim_cv_tty_mode" = "x" ; then
12427    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 (probably 0620)" "$LINENO" 5
12428  else
12429    $as_echo "#define PTYMODE 0620" >>confdefs.h
12430
12431  fi
12432fi
12433
12434
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12436$as_echo_n "checking return type of signal handlers... " >&6; }
12437if ${ac_cv_type_signal+:} false; then :
12438  $as_echo_n "(cached) " >&6
12439else
12440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441/* end confdefs.h.  */
12442#include <sys/types.h>
12443#include <signal.h>
12444
12445int
12446main ()
12447{
12448return *(signal (0, 0)) (0) == 1;
12449  ;
12450  return 0;
12451}
12452_ACEOF
12453if ac_fn_c_try_compile "$LINENO"; then :
12454  ac_cv_type_signal=int
12455else
12456  ac_cv_type_signal=void
12457fi
12458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459fi
12460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12461$as_echo "$ac_cv_type_signal" >&6; }
12462
12463cat >>confdefs.h <<_ACEOF
12464#define RETSIGTYPE $ac_cv_type_signal
12465_ACEOF
12466
12467
12468
12469if test $ac_cv_type_signal = void; then
12470  $as_echo "#define SIGRETURN return" >>confdefs.h
12471
12472else
12473  $as_echo "#define SIGRETURN return 0" >>confdefs.h
12474
12475fi
12476
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
12478$as_echo_n "checking for struct sigcontext... " >&6; }
12479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480/* end confdefs.h.  */
12481
12482#include <signal.h>
12483test_sig()
12484{
12485    struct sigcontext *scont;
12486    scont = (struct sigcontext *)0;
12487    return 1;
12488}
12489int
12490main ()
12491{
12492
12493  ;
12494  return 0;
12495}
12496_ACEOF
12497if ac_fn_c_try_compile "$LINENO"; then :
12498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12499$as_echo "yes" >&6; }
12500		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12501
12502else
12503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504$as_echo "no" >&6; }
12505fi
12506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507
12508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12509$as_echo_n "checking getcwd implementation is broken... " >&6; }
12510if ${vim_cv_getcwd_broken+:} false; then :
12511  $as_echo_n "(cached) " >&6
12512else
12513
12514    if test "$cross_compiling" = yes; then :
12515
12516      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12517
12518else
12519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520/* end confdefs.h.  */
12521
12522#include "confdefs.h"
12523#ifdef HAVE_UNISTD_H
12524#include <unistd.h>
12525#endif
12526char *dagger[] = { "IFS=pwd", 0 };
12527main()
12528{
12529  char buffer[500];
12530  extern char **environ;
12531  environ = dagger;
12532  return getcwd(buffer, 500) ? 0 : 1;
12533}
12534
12535_ACEOF
12536if ac_fn_c_try_run "$LINENO"; then :
12537
12538      vim_cv_getcwd_broken=no
12539
12540else
12541
12542      vim_cv_getcwd_broken=yes
12543
12544fi
12545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12546  conftest.$ac_objext conftest.beam conftest.$ac_ext
12547fi
12548
12549
12550fi
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12552$as_echo "$vim_cv_getcwd_broken" >&6; }
12553
12554if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12555  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12556
12557  for ac_func in getwd
12558do :
12559  ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
12560if test "x$ac_cv_func_getwd" = xyes; then :
12561  cat >>confdefs.h <<_ACEOF
12562#define HAVE_GETWD 1
12563_ACEOF
12564
12565fi
12566done
12567
12568fi
12569
12570for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \
12571	getpwent getpwnam getpwuid getrlimit gettimeofday localtime_r lstat \
12572	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12573	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12574	sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
12575	strnicmp strpbrk strtol tgetent towlower towupper iswupper tzset \
12576	usleep utime utimes mblen ftruncate unsetenv posix_openpt
12577do :
12578  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12579ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12580if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12581  cat >>confdefs.h <<_ACEOF
12582#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12583_ACEOF
12584
12585fi
12586done
12587
12588for ac_header in sys/select.h sys/socket.h
12589do :
12590  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12591ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12592if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12593  cat >>confdefs.h <<_ACEOF
12594#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12595_ACEOF
12596
12597fi
12598
12599done
12600
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12602$as_echo_n "checking types of arguments for select... " >&6; }
12603if ${ac_cv_func_select_args+:} false; then :
12604  $as_echo_n "(cached) " >&6
12605else
12606  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12607 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12608  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610/* end confdefs.h.  */
12611$ac_includes_default
12612#ifdef HAVE_SYS_SELECT_H
12613# include <sys/select.h>
12614#endif
12615#ifdef HAVE_SYS_SOCKET_H
12616# include <sys/socket.h>
12617#endif
12618
12619int
12620main ()
12621{
12622extern int select ($ac_arg1,
12623					    $ac_arg234, $ac_arg234, $ac_arg234,
12624					    $ac_arg5);
12625  ;
12626  return 0;
12627}
12628_ACEOF
12629if ac_fn_c_try_compile "$LINENO"; then :
12630  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12631fi
12632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633  done
12634 done
12635done
12636# Provide a safe default value.
12637: "${ac_cv_func_select_args=int,int *,struct timeval *}"
12638
12639fi
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12641$as_echo "$ac_cv_func_select_args" >&6; }
12642ac_save_IFS=$IFS; IFS=','
12643set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12644IFS=$ac_save_IFS
12645shift
12646
12647cat >>confdefs.h <<_ACEOF
12648#define SELECT_TYPE_ARG1 $1
12649_ACEOF
12650
12651
12652cat >>confdefs.h <<_ACEOF
12653#define SELECT_TYPE_ARG234 ($2)
12654_ACEOF
12655
12656
12657cat >>confdefs.h <<_ACEOF
12658#define SELECT_TYPE_ARG5 ($3)
12659_ACEOF
12660
12661rm -f conftest*
12662
12663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12664$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12665if ${ac_cv_sys_largefile_source+:} false; then :
12666  $as_echo_n "(cached) " >&6
12667else
12668  while :; do
12669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670/* end confdefs.h.  */
12671#include <sys/types.h> /* for off_t */
12672     #include <stdio.h>
12673int
12674main ()
12675{
12676int (*fp) (FILE *, off_t, int) = fseeko;
12677     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12678  ;
12679  return 0;
12680}
12681_ACEOF
12682if ac_fn_c_try_link "$LINENO"; then :
12683  ac_cv_sys_largefile_source=no; break
12684fi
12685rm -f core conftest.err conftest.$ac_objext \
12686    conftest$ac_exeext conftest.$ac_ext
12687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688/* end confdefs.h.  */
12689#define _LARGEFILE_SOURCE 1
12690#include <sys/types.h> /* for off_t */
12691     #include <stdio.h>
12692int
12693main ()
12694{
12695int (*fp) (FILE *, off_t, int) = fseeko;
12696     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12697  ;
12698  return 0;
12699}
12700_ACEOF
12701if ac_fn_c_try_link "$LINENO"; then :
12702  ac_cv_sys_largefile_source=1; break
12703fi
12704rm -f core conftest.err conftest.$ac_objext \
12705    conftest$ac_exeext conftest.$ac_ext
12706  ac_cv_sys_largefile_source=unknown
12707  break
12708done
12709fi
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12711$as_echo "$ac_cv_sys_largefile_source" >&6; }
12712case $ac_cv_sys_largefile_source in #(
12713  no | unknown) ;;
12714  *)
12715cat >>confdefs.h <<_ACEOF
12716#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12717_ACEOF
12718;;
12719esac
12720rm -rf conftest*
12721
12722# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12723# in glibc 2.1.3, but that breaks too many other things.
12724# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12725if test $ac_cv_sys_largefile_source != unknown; then
12726
12727$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12728
12729fi
12730
12731
12732# Check whether --enable-largefile was given.
12733if test "${enable_largefile+set}" = set; then :
12734  enableval=$enable_largefile;
12735fi
12736
12737if test "$enable_largefile" != no; then
12738
12739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12740$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12741if ${ac_cv_sys_largefile_CC+:} false; then :
12742  $as_echo_n "(cached) " >&6
12743else
12744  ac_cv_sys_largefile_CC=no
12745     if test "$GCC" != yes; then
12746       ac_save_CC=$CC
12747       while :; do
12748	 # IRIX 6.2 and later do not support large files by default,
12749	 # so use the C compiler's -n32 option if that helps.
12750	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751/* end confdefs.h.  */
12752#include <sys/types.h>
12753 /* Check that off_t can represent 2**63 - 1 correctly.
12754    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12755    since some C++ compilers masquerading as C compilers
12756    incorrectly reject 9223372036854775807.  */
12757#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12758  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12759		       && LARGE_OFF_T % 2147483647 == 1)
12760		      ? 1 : -1];
12761int
12762main ()
12763{
12764
12765  ;
12766  return 0;
12767}
12768_ACEOF
12769	 if ac_fn_c_try_compile "$LINENO"; then :
12770  break
12771fi
12772rm -f core conftest.err conftest.$ac_objext
12773	 CC="$CC -n32"
12774	 if ac_fn_c_try_compile "$LINENO"; then :
12775  ac_cv_sys_largefile_CC=' -n32'; break
12776fi
12777rm -f core conftest.err conftest.$ac_objext
12778	 break
12779       done
12780       CC=$ac_save_CC
12781       rm -f conftest.$ac_ext
12782    fi
12783fi
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12785$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12786  if test "$ac_cv_sys_largefile_CC" != no; then
12787    CC=$CC$ac_cv_sys_largefile_CC
12788  fi
12789
12790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12791$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12792if ${ac_cv_sys_file_offset_bits+:} false; then :
12793  $as_echo_n "(cached) " >&6
12794else
12795  while :; do
12796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797/* end confdefs.h.  */
12798#include <sys/types.h>
12799 /* Check that off_t can represent 2**63 - 1 correctly.
12800    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12801    since some C++ compilers masquerading as C compilers
12802    incorrectly reject 9223372036854775807.  */
12803#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12804  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12805		       && LARGE_OFF_T % 2147483647 == 1)
12806		      ? 1 : -1];
12807int
12808main ()
12809{
12810
12811  ;
12812  return 0;
12813}
12814_ACEOF
12815if ac_fn_c_try_compile "$LINENO"; then :
12816  ac_cv_sys_file_offset_bits=no; break
12817fi
12818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820/* end confdefs.h.  */
12821#define _FILE_OFFSET_BITS 64
12822#include <sys/types.h>
12823 /* Check that off_t can represent 2**63 - 1 correctly.
12824    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12825    since some C++ compilers masquerading as C compilers
12826    incorrectly reject 9223372036854775807.  */
12827#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12828  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12829		       && LARGE_OFF_T % 2147483647 == 1)
12830		      ? 1 : -1];
12831int
12832main ()
12833{
12834
12835  ;
12836  return 0;
12837}
12838_ACEOF
12839if ac_fn_c_try_compile "$LINENO"; then :
12840  ac_cv_sys_file_offset_bits=64; break
12841fi
12842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843  ac_cv_sys_file_offset_bits=unknown
12844  break
12845done
12846fi
12847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12848$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12849case $ac_cv_sys_file_offset_bits in #(
12850  no | unknown) ;;
12851  *)
12852cat >>confdefs.h <<_ACEOF
12853#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12854_ACEOF
12855;;
12856esac
12857rm -rf conftest*
12858  if test $ac_cv_sys_file_offset_bits = unknown; then
12859    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12860$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12861if ${ac_cv_sys_large_files+:} false; then :
12862  $as_echo_n "(cached) " >&6
12863else
12864  while :; do
12865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h.  */
12867#include <sys/types.h>
12868 /* Check that off_t can represent 2**63 - 1 correctly.
12869    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12870    since some C++ compilers masquerading as C compilers
12871    incorrectly reject 9223372036854775807.  */
12872#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12873  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12874		       && LARGE_OFF_T % 2147483647 == 1)
12875		      ? 1 : -1];
12876int
12877main ()
12878{
12879
12880  ;
12881  return 0;
12882}
12883_ACEOF
12884if ac_fn_c_try_compile "$LINENO"; then :
12885  ac_cv_sys_large_files=no; break
12886fi
12887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889/* end confdefs.h.  */
12890#define _LARGE_FILES 1
12891#include <sys/types.h>
12892 /* Check that off_t can represent 2**63 - 1 correctly.
12893    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12894    since some C++ compilers masquerading as C compilers
12895    incorrectly reject 9223372036854775807.  */
12896#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12897  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12898		       && LARGE_OFF_T % 2147483647 == 1)
12899		      ? 1 : -1];
12900int
12901main ()
12902{
12903
12904  ;
12905  return 0;
12906}
12907_ACEOF
12908if ac_fn_c_try_compile "$LINENO"; then :
12909  ac_cv_sys_large_files=1; break
12910fi
12911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12912  ac_cv_sys_large_files=unknown
12913  break
12914done
12915fi
12916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12917$as_echo "$ac_cv_sys_large_files" >&6; }
12918case $ac_cv_sys_large_files in #(
12919  no | unknown) ;;
12920  *)
12921cat >>confdefs.h <<_ACEOF
12922#define _LARGE_FILES $ac_cv_sys_large_files
12923_ACEOF
12924;;
12925esac
12926rm -rf conftest*
12927  fi
12928
12929
12930fi
12931
12932
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-canberra argument" >&5
12934$as_echo_n "checking --enable-canberra argument... " >&6; }
12935# Check whether --enable-canberra was given.
12936if test "${enable_canberra+set}" = set; then :
12937  enableval=$enable_canberra;
12938else
12939  enable_canberra="maybe"
12940fi
12941
12942
12943if test "$enable_canberra" = "maybe"; then
12944  if test "$features" = "big" -o "$features" = "huge"; then
12945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to yes" >&5
12946$as_echo "Defaulting to yes" >&6; }
12947    enable_canberra="yes"
12948  else
12949    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to no" >&5
12950$as_echo "Defaulting to no" >&6; }
12951    enable_canberra="no"
12952  fi
12953else
12954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5
12955$as_echo "$enable_canberra" >&6; }
12956fi
12957if test "$enable_canberra" = "yes"; then
12958  if test "x$PKG_CONFIG" != "xno"; then
12959    canberra_lib=`$PKG_CONFIG --libs libcanberra 2>/dev/null`
12960    canberra_cflags=`$PKG_CONFIG --cflags libcanberra 2>/dev/null`
12961  fi
12962  if test "x$canberra_lib" = "x"; then
12963    canberra_lib=-lcanberra
12964    canberra_cflags=-D_REENTRANT
12965  fi
12966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcanberra" >&5
12967$as_echo_n "checking for libcanberra... " >&6; }
12968  ac_save_CFLAGS="$CFLAGS"
12969  ac_save_LIBS="$LIBS"
12970  CFLAGS="$CFLAGS $canberra_cflags"
12971  LIBS="$LIBS $canberra_lib"
12972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973/* end confdefs.h.  */
12974
12975  # include <canberra.h>
12976
12977int
12978main ()
12979{
12980
12981     ca_context *hello;
12982     ca_context_create(&hello);
12983  ;
12984  return 0;
12985}
12986_ACEOF
12987if ac_fn_c_try_link "$LINENO"; then :
12988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12989$as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h
12990
12991else
12992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993$as_echo "no" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS"
12994fi
12995rm -f core conftest.err conftest.$ac_objext \
12996    conftest$ac_exeext conftest.$ac_ext
12997fi
12998
12999
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
13001$as_echo_n "checking for st_blksize... " >&6; }
13002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003/* end confdefs.h.  */
13004#include <sys/types.h>
13005#include <sys/stat.h>
13006int
13007main ()
13008{
13009	struct stat st;
13010	int n;
13011
13012	stat("/", &st);
13013	n = (int)st.st_blksize;
13014  ;
13015  return 0;
13016}
13017_ACEOF
13018if ac_fn_c_try_compile "$LINENO"; then :
13019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13020$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
13021
13022else
13023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024$as_echo "no" >&6; }
13025fi
13026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
13029$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13030if ${vim_cv_stat_ignores_slash+:} false; then :
13031  $as_echo_n "(cached) " >&6
13032else
13033
13034    if test "$cross_compiling" = yes; then :
13035
13036      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
13037
13038else
13039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040/* end confdefs.h.  */
13041
13042#include "confdefs.h"
13043#if STDC_HEADERS
13044# include <stdlib.h>
13045# include <stddef.h>
13046#endif
13047#include <sys/types.h>
13048#include <sys/stat.h>
13049main() {struct stat st;  exit(stat("configure/", &st) != 0); }
13050
13051_ACEOF
13052if ac_fn_c_try_run "$LINENO"; then :
13053
13054      vim_cv_stat_ignores_slash=yes
13055
13056else
13057
13058      vim_cv_stat_ignores_slash=no
13059
13060fi
13061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13062  conftest.$ac_objext conftest.beam conftest.$ac_ext
13063fi
13064
13065
13066fi
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
13068$as_echo "$vim_cv_stat_ignores_slash" >&6; }
13069
13070if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13071  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
13072
13073fi
13074
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
13076$as_echo_n "checking for iconv_open()... " >&6; }
13077save_LIBS="$LIBS"
13078LIBS="$LIBS -liconv"
13079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080/* end confdefs.h.  */
13081
13082#ifdef HAVE_ICONV_H
13083# include <iconv.h>
13084#endif
13085
13086int
13087main ()
13088{
13089iconv_open("fr", "to");
13090  ;
13091  return 0;
13092}
13093_ACEOF
13094if ac_fn_c_try_link "$LINENO"; then :
13095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
13096$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13097
13098else
13099  LIBS="$save_LIBS"
13100    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101/* end confdefs.h.  */
13102
13103#ifdef HAVE_ICONV_H
13104# include <iconv.h>
13105#endif
13106
13107int
13108main ()
13109{
13110iconv_open("fr", "to");
13111  ;
13112  return 0;
13113}
13114_ACEOF
13115if ac_fn_c_try_link "$LINENO"; then :
13116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13117$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13118
13119else
13120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121$as_echo "no" >&6; }
13122fi
13123rm -f core conftest.err conftest.$ac_objext \
13124    conftest$ac_exeext conftest.$ac_ext
13125fi
13126rm -f core conftest.err conftest.$ac_objext \
13127    conftest$ac_exeext conftest.$ac_ext
13128
13129
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
13131$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
13132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133/* end confdefs.h.  */
13134
13135#ifdef HAVE_LANGINFO_H
13136# include <langinfo.h>
13137#endif
13138
13139int
13140main ()
13141{
13142char *cs = nl_langinfo(CODESET);
13143  ;
13144  return 0;
13145}
13146_ACEOF
13147if ac_fn_c_try_link "$LINENO"; then :
13148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13149$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
13150
13151else
13152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153$as_echo "no" >&6; }
13154fi
13155rm -f core conftest.err conftest.$ac_objext \
13156    conftest$ac_exeext conftest.$ac_ext
13157
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
13159$as_echo_n "checking for strtod in -lm... " >&6; }
13160if ${ac_cv_lib_m_strtod+:} false; then :
13161  $as_echo_n "(cached) " >&6
13162else
13163  ac_check_lib_save_LIBS=$LIBS
13164LIBS="-lm  $LIBS"
13165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166/* end confdefs.h.  */
13167
13168/* Override any GCC internal prototype to avoid an error.
13169   Use char because int might match the return type of a GCC
13170   builtin and then its argument prototype would still apply.  */
13171#ifdef __cplusplus
13172extern "C"
13173#endif
13174char strtod ();
13175int
13176main ()
13177{
13178return strtod ();
13179  ;
13180  return 0;
13181}
13182_ACEOF
13183if ac_fn_c_try_link "$LINENO"; then :
13184  ac_cv_lib_m_strtod=yes
13185else
13186  ac_cv_lib_m_strtod=no
13187fi
13188rm -f core conftest.err conftest.$ac_objext \
13189    conftest$ac_exeext conftest.$ac_ext
13190LIBS=$ac_check_lib_save_LIBS
13191fi
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
13193$as_echo "$ac_cv_lib_m_strtod" >&6; }
13194if test "x$ac_cv_lib_m_strtod" = xyes; then :
13195  cat >>confdefs.h <<_ACEOF
13196#define HAVE_LIBM 1
13197_ACEOF
13198
13199  LIBS="-lm $LIBS"
13200
13201fi
13202
13203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
13204$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
13205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206/* end confdefs.h.  */
13207
13208#ifdef HAVE_MATH_H
13209# include <math.h>
13210#endif
13211#if STDC_HEADERS
13212# include <stdlib.h>
13213# include <stddef.h>
13214#endif
13215
13216int
13217main ()
13218{
13219char *s; double d;
13220    d = strtod("1.1", &s);
13221    d = fabs(1.11);
13222    d = ceil(1.11);
13223    d = floor(1.11);
13224    d = log10(1.11);
13225    d = pow(1.11, 2.22);
13226    d = sqrt(1.11);
13227    d = sin(1.11);
13228    d = cos(1.11);
13229    d = atan(1.11);
13230
13231  ;
13232  return 0;
13233}
13234_ACEOF
13235if ac_fn_c_try_link "$LINENO"; then :
13236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13237$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
13238
13239else
13240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241$as_echo "no" >&6; }
13242fi
13243rm -f core conftest.err conftest.$ac_objext \
13244    conftest$ac_exeext conftest.$ac_ext
13245
13246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
13247$as_echo_n "checking for isinf()... " >&6; }
13248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249/* end confdefs.h.  */
13250
13251#ifdef HAVE_MATH_H
13252# include <math.h>
13253#endif
13254#if STDC_HEADERS
13255# include <stdlib.h>
13256# include <stddef.h>
13257#endif
13258
13259int
13260main ()
13261{
13262int r = isinf(1.11);
13263  ;
13264  return 0;
13265}
13266_ACEOF
13267if ac_fn_c_try_link "$LINENO"; then :
13268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13269$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13270
13271else
13272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273$as_echo "no" >&6; }
13274fi
13275rm -f core conftest.err conftest.$ac_objext \
13276    conftest$ac_exeext conftest.$ac_ext
13277
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
13279$as_echo_n "checking for isnan()... " >&6; }
13280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281/* end confdefs.h.  */
13282
13283#ifdef HAVE_MATH_H
13284# include <math.h>
13285#endif
13286#if STDC_HEADERS
13287# include <stdlib.h>
13288# include <stddef.h>
13289#endif
13290
13291int
13292main ()
13293{
13294int r = isnan(1.11);
13295  ;
13296  return 0;
13297}
13298_ACEOF
13299if ac_fn_c_try_link "$LINENO"; then :
13300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13301$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13302
13303else
13304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305$as_echo "no" >&6; }
13306fi
13307rm -f core conftest.err conftest.$ac_objext \
13308    conftest$ac_exeext conftest.$ac_ext
13309
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
13311$as_echo_n "checking --disable-acl argument... " >&6; }
13312# Check whether --enable-acl was given.
13313if test "${enable_acl+set}" = set; then :
13314  enableval=$enable_acl;
13315else
13316  enable_acl="yes"
13317fi
13318
13319if test "$enable_acl" = "yes"; then
13320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321$as_echo "no" >&6; }
13322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
13323$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
13324if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
13325  $as_echo_n "(cached) " >&6
13326else
13327  ac_check_lib_save_LIBS=$LIBS
13328LIBS="-lposix1e  $LIBS"
13329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330/* end confdefs.h.  */
13331
13332/* Override any GCC internal prototype to avoid an error.
13333   Use char because int might match the return type of a GCC
13334   builtin and then its argument prototype would still apply.  */
13335#ifdef __cplusplus
13336extern "C"
13337#endif
13338char acl_get_file ();
13339int
13340main ()
13341{
13342return acl_get_file ();
13343  ;
13344  return 0;
13345}
13346_ACEOF
13347if ac_fn_c_try_link "$LINENO"; then :
13348  ac_cv_lib_posix1e_acl_get_file=yes
13349else
13350  ac_cv_lib_posix1e_acl_get_file=no
13351fi
13352rm -f core conftest.err conftest.$ac_objext \
13353    conftest$ac_exeext conftest.$ac_ext
13354LIBS=$ac_check_lib_save_LIBS
13355fi
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13357$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
13358if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
13359  LIBS="$LIBS -lposix1e"
13360else
13361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
13362$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
13363if ${ac_cv_lib_acl_acl_get_file+:} false; then :
13364  $as_echo_n "(cached) " >&6
13365else
13366  ac_check_lib_save_LIBS=$LIBS
13367LIBS="-lacl  $LIBS"
13368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369/* end confdefs.h.  */
13370
13371/* Override any GCC internal prototype to avoid an error.
13372   Use char because int might match the return type of a GCC
13373   builtin and then its argument prototype would still apply.  */
13374#ifdef __cplusplus
13375extern "C"
13376#endif
13377char acl_get_file ();
13378int
13379main ()
13380{
13381return acl_get_file ();
13382  ;
13383  return 0;
13384}
13385_ACEOF
13386if ac_fn_c_try_link "$LINENO"; then :
13387  ac_cv_lib_acl_acl_get_file=yes
13388else
13389  ac_cv_lib_acl_acl_get_file=no
13390fi
13391rm -f core conftest.err conftest.$ac_objext \
13392    conftest$ac_exeext conftest.$ac_ext
13393LIBS=$ac_check_lib_save_LIBS
13394fi
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
13396$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
13397if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
13398  LIBS="$LIBS -lacl"
13399		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
13400$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
13401if ${ac_cv_lib_attr_fgetxattr+:} false; then :
13402  $as_echo_n "(cached) " >&6
13403else
13404  ac_check_lib_save_LIBS=$LIBS
13405LIBS="-lattr  $LIBS"
13406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407/* end confdefs.h.  */
13408
13409/* Override any GCC internal prototype to avoid an error.
13410   Use char because int might match the return type of a GCC
13411   builtin and then its argument prototype would still apply.  */
13412#ifdef __cplusplus
13413extern "C"
13414#endif
13415char fgetxattr ();
13416int
13417main ()
13418{
13419return fgetxattr ();
13420  ;
13421  return 0;
13422}
13423_ACEOF
13424if ac_fn_c_try_link "$LINENO"; then :
13425  ac_cv_lib_attr_fgetxattr=yes
13426else
13427  ac_cv_lib_attr_fgetxattr=no
13428fi
13429rm -f core conftest.err conftest.$ac_objext \
13430    conftest$ac_exeext conftest.$ac_ext
13431LIBS=$ac_check_lib_save_LIBS
13432fi
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
13434$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
13435if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
13436  LIBS="$LIBS -lattr"
13437fi
13438
13439fi
13440
13441fi
13442
13443
13444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
13445$as_echo_n "checking for POSIX ACL support... " >&6; }
13446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448
13449#include <sys/types.h>
13450#ifdef HAVE_SYS_ACL_H
13451# include <sys/acl.h>
13452#endif
13453acl_t acl;
13454int
13455main ()
13456{
13457acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13458	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13459	acl_free(acl);
13460  ;
13461  return 0;
13462}
13463_ACEOF
13464if ac_fn_c_try_link "$LINENO"; then :
13465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13466$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
13467
13468else
13469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13470$as_echo "no" >&6; }
13471fi
13472rm -f core conftest.err conftest.$ac_objext \
13473    conftest$ac_exeext conftest.$ac_ext
13474
13475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
13476$as_echo_n "checking for acl_get in -lsec... " >&6; }
13477if ${ac_cv_lib_sec_acl_get+:} false; then :
13478  $as_echo_n "(cached) " >&6
13479else
13480  ac_check_lib_save_LIBS=$LIBS
13481LIBS="-lsec  $LIBS"
13482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483/* end confdefs.h.  */
13484
13485/* Override any GCC internal prototype to avoid an error.
13486   Use char because int might match the return type of a GCC
13487   builtin and then its argument prototype would still apply.  */
13488#ifdef __cplusplus
13489extern "C"
13490#endif
13491char acl_get ();
13492int
13493main ()
13494{
13495return acl_get ();
13496  ;
13497  return 0;
13498}
13499_ACEOF
13500if ac_fn_c_try_link "$LINENO"; then :
13501  ac_cv_lib_sec_acl_get=yes
13502else
13503  ac_cv_lib_sec_acl_get=no
13504fi
13505rm -f core conftest.err conftest.$ac_objext \
13506    conftest$ac_exeext conftest.$ac_ext
13507LIBS=$ac_check_lib_save_LIBS
13508fi
13509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
13510$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
13511if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
13512  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
13513
13514else
13515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
13516$as_echo_n "checking for Solaris ACL support... " >&6; }
13517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518/* end confdefs.h.  */
13519
13520#ifdef HAVE_SYS_ACL_H
13521# include <sys/acl.h>
13522#endif
13523int
13524main ()
13525{
13526acl("foo", GETACLCNT, 0, NULL);
13527
13528  ;
13529  return 0;
13530}
13531_ACEOF
13532if ac_fn_c_try_link "$LINENO"; then :
13533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13534$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
13535
13536else
13537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538$as_echo "no" >&6; }
13539fi
13540rm -f core conftest.err conftest.$ac_objext \
13541    conftest$ac_exeext conftest.$ac_ext
13542fi
13543
13544
13545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
13546$as_echo_n "checking for AIX ACL support... " >&6; }
13547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548/* end confdefs.h.  */
13549
13550#if STDC_HEADERS
13551# include <stdlib.h>
13552# include <stddef.h>
13553#endif
13554#ifdef HAVE_SYS_ACL_H
13555# include <sys/acl.h>
13556#endif
13557#ifdef HAVE_SYS_ACCESS_H
13558# include <sys/access.h>
13559#endif
13560#define _ALL_SOURCE
13561
13562#include <sys/stat.h>
13563
13564int aclsize;
13565struct acl *aclent;
13566int
13567main ()
13568{
13569aclsize = sizeof(struct acl);
13570	aclent = (void *)malloc(aclsize);
13571	statacl("foo", STX_NORMAL, aclent, aclsize);
13572
13573  ;
13574  return 0;
13575}
13576_ACEOF
13577if ac_fn_c_try_link "$LINENO"; then :
13578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13579$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
13580
13581else
13582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583$as_echo "no" >&6; }
13584fi
13585rm -f core conftest.err conftest.$ac_objext \
13586    conftest$ac_exeext conftest.$ac_ext
13587else
13588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13589$as_echo "yes" >&6; }
13590fi
13591
13592if test "x$GTK_CFLAGS" != "x"; then
13593    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
13594$as_echo_n "checking for pango_shape_full... " >&6; }
13595  ac_save_CFLAGS="$CFLAGS"
13596  ac_save_LIBS="$LIBS"
13597  CFLAGS="$CFLAGS $GTK_CFLAGS"
13598  LIBS="$LIBS $GTK_LIBS"
13599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600/* end confdefs.h.  */
13601#include <gtk/gtk.h>
13602int
13603main ()
13604{
13605 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
13606  ;
13607  return 0;
13608}
13609_ACEOF
13610if ac_fn_c_try_link "$LINENO"; then :
13611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13612$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
13613
13614else
13615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616$as_echo "no" >&6; }
13617fi
13618rm -f core conftest.err conftest.$ac_objext \
13619    conftest$ac_exeext conftest.$ac_ext
13620  CFLAGS="$ac_save_CFLAGS"
13621  LIBS="$ac_save_LIBS"
13622fi
13623
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
13625$as_echo_n "checking --disable-gpm argument... " >&6; }
13626# Check whether --enable-gpm was given.
13627if test "${enable_gpm+set}" = set; then :
13628  enableval=$enable_gpm;
13629else
13630  enable_gpm="yes"
13631fi
13632
13633
13634if test "$enable_gpm" = "yes"; then
13635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636$as_echo "no" >&6; }
13637    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
13638$as_echo_n "checking for gpm... " >&6; }
13639if ${vi_cv_have_gpm+:} false; then :
13640  $as_echo_n "(cached) " >&6
13641else
13642  olibs="$LIBS" ; LIBS="-lgpm"
13643	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644/* end confdefs.h.  */
13645#include <gpm.h>
13646	    #include <linux/keyboard.h>
13647int
13648main ()
13649{
13650Gpm_GetLibVersion(NULL);
13651  ;
13652  return 0;
13653}
13654_ACEOF
13655if ac_fn_c_try_link "$LINENO"; then :
13656  	    	    vi_cv_have_gpm=yes
13657else
13658  vi_cv_have_gpm=no
13659fi
13660rm -f core conftest.err conftest.$ac_objext \
13661    conftest$ac_exeext conftest.$ac_ext
13662	LIBS="$olibs"
13663
13664fi
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13666$as_echo "$vi_cv_have_gpm" >&6; }
13667  if test $vi_cv_have_gpm = yes; then
13668    LIBS="$LIBS -lgpm"
13669    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13670
13671  fi
13672else
13673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13674$as_echo "yes" >&6; }
13675fi
13676
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13678$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13679# Check whether --enable-sysmouse was given.
13680if test "${enable_sysmouse+set}" = set; then :
13681  enableval=$enable_sysmouse;
13682else
13683  enable_sysmouse="yes"
13684fi
13685
13686
13687if test "$enable_sysmouse" = "yes"; then
13688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689$as_echo "no" >&6; }
13690        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13691$as_echo_n "checking for sysmouse... " >&6; }
13692if ${vi_cv_have_sysmouse+:} false; then :
13693  $as_echo_n "(cached) " >&6
13694else
13695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696/* end confdefs.h.  */
13697#include <sys/consio.h>
13698	     #include <signal.h>
13699	     #include <sys/fbio.h>
13700int
13701main ()
13702{
13703struct mouse_info   mouse;
13704	     mouse.operation = MOUSE_MODE;
13705	     mouse.operation = MOUSE_SHOW;
13706	     mouse.u.mode.mode = 0;
13707	     mouse.u.mode.signal = SIGUSR2;
13708  ;
13709  return 0;
13710}
13711_ACEOF
13712if ac_fn_c_try_link "$LINENO"; then :
13713  vi_cv_have_sysmouse=yes
13714else
13715  vi_cv_have_sysmouse=no
13716fi
13717rm -f core conftest.err conftest.$ac_objext \
13718    conftest$ac_exeext conftest.$ac_ext
13719
13720fi
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13722$as_echo "$vi_cv_have_sysmouse" >&6; }
13723  if test $vi_cv_have_sysmouse = yes; then
13724    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13725
13726  fi
13727else
13728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13729$as_echo "yes" >&6; }
13730fi
13731
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13733$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735/* end confdefs.h.  */
13736#if HAVE_FCNTL_H
13737# include <fcntl.h>
13738#endif
13739int
13740main ()
13741{
13742	int flag = FD_CLOEXEC;
13743  ;
13744  return 0;
13745}
13746_ACEOF
13747if ac_fn_c_try_compile "$LINENO"; then :
13748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13749$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13750
13751else
13752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13753$as_echo "not usable" >&6; }
13754fi
13755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13758$as_echo_n "checking for rename... " >&6; }
13759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760/* end confdefs.h.  */
13761#include <stdio.h>
13762int
13763main ()
13764{
13765rename("this", "that")
13766  ;
13767  return 0;
13768}
13769_ACEOF
13770if ac_fn_c_try_link "$LINENO"; then :
13771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13772$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13773
13774else
13775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776$as_echo "no" >&6; }
13777fi
13778rm -f core conftest.err conftest.$ac_objext \
13779    conftest$ac_exeext conftest.$ac_ext
13780
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13782$as_echo_n "checking for sysctl... " >&6; }
13783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784/* end confdefs.h.  */
13785#include <sys/types.h>
13786#include <sys/sysctl.h>
13787int
13788main ()
13789{
13790	int mib[2], r;
13791	size_t len;
13792
13793	mib[0] = CTL_HW;
13794	mib[1] = HW_USERMEM;
13795	len = sizeof(r);
13796	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13797
13798  ;
13799  return 0;
13800}
13801_ACEOF
13802if ac_fn_c_try_compile "$LINENO"; then :
13803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13804$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13805
13806else
13807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13808$as_echo "not usable" >&6; }
13809fi
13810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13813$as_echo_n "checking for sysinfo... " >&6; }
13814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815/* end confdefs.h.  */
13816#include <sys/types.h>
13817#include <sys/sysinfo.h>
13818int
13819main ()
13820{
13821	struct sysinfo sinfo;
13822	int t;
13823
13824	(void)sysinfo(&sinfo);
13825	t = sinfo.totalram;
13826
13827  ;
13828  return 0;
13829}
13830_ACEOF
13831if ac_fn_c_try_compile "$LINENO"; then :
13832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13833$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13834
13835else
13836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13837$as_echo "not usable" >&6; }
13838fi
13839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13840
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13842$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844/* end confdefs.h.  */
13845#include <sys/types.h>
13846#include <sys/sysinfo.h>
13847int
13848main ()
13849{
13850	struct sysinfo sinfo;
13851	sinfo.mem_unit = 1;
13852
13853  ;
13854  return 0;
13855}
13856_ACEOF
13857if ac_fn_c_try_compile "$LINENO"; then :
13858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13859$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13860
13861else
13862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863$as_echo "no" >&6; }
13864fi
13865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866
13867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13868$as_echo_n "checking for sysconf... " >&6; }
13869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870/* end confdefs.h.  */
13871#include <unistd.h>
13872int
13873main ()
13874{
13875	(void)sysconf(_SC_PAGESIZE);
13876	(void)sysconf(_SC_PHYS_PAGES);
13877
13878  ;
13879  return 0;
13880}
13881_ACEOF
13882if ac_fn_c_try_compile "$LINENO"; then :
13883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13884$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13885
13886else
13887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13888$as_echo "not usable" >&6; }
13889fi
13890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891
13892# The cast to long int works around a bug in the HP C Compiler
13893# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13894# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13895# This bug is HP SR number 8606223364.
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13897$as_echo_n "checking size of int... " >&6; }
13898if ${ac_cv_sizeof_int+:} false; then :
13899  $as_echo_n "(cached) " >&6
13900else
13901  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13902
13903else
13904  if test "$ac_cv_type_int" = yes; then
13905     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13907as_fn_error 77 "cannot compute sizeof (int)
13908See \`config.log' for more details" "$LINENO" 5; }
13909   else
13910     ac_cv_sizeof_int=0
13911   fi
13912fi
13913
13914fi
13915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13916$as_echo "$ac_cv_sizeof_int" >&6; }
13917
13918
13919
13920cat >>confdefs.h <<_ACEOF
13921#define SIZEOF_INT $ac_cv_sizeof_int
13922_ACEOF
13923
13924
13925# The cast to long int works around a bug in the HP C Compiler
13926# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13927# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13928# This bug is HP SR number 8606223364.
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13930$as_echo_n "checking size of long... " >&6; }
13931if ${ac_cv_sizeof_long+:} false; then :
13932  $as_echo_n "(cached) " >&6
13933else
13934  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13935
13936else
13937  if test "$ac_cv_type_long" = yes; then
13938     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13940as_fn_error 77 "cannot compute sizeof (long)
13941See \`config.log' for more details" "$LINENO" 5; }
13942   else
13943     ac_cv_sizeof_long=0
13944   fi
13945fi
13946
13947fi
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13949$as_echo "$ac_cv_sizeof_long" >&6; }
13950
13951
13952
13953cat >>confdefs.h <<_ACEOF
13954#define SIZEOF_LONG $ac_cv_sizeof_long
13955_ACEOF
13956
13957
13958# The cast to long int works around a bug in the HP C Compiler
13959# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13960# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13961# This bug is HP SR number 8606223364.
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
13963$as_echo_n "checking size of time_t... " >&6; }
13964if ${ac_cv_sizeof_time_t+:} false; then :
13965  $as_echo_n "(cached) " >&6
13966else
13967  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
13968
13969else
13970  if test "$ac_cv_type_time_t" = yes; then
13971     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13973as_fn_error 77 "cannot compute sizeof (time_t)
13974See \`config.log' for more details" "$LINENO" 5; }
13975   else
13976     ac_cv_sizeof_time_t=0
13977   fi
13978fi
13979
13980fi
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
13982$as_echo "$ac_cv_sizeof_time_t" >&6; }
13983
13984
13985
13986cat >>confdefs.h <<_ACEOF
13987#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13988_ACEOF
13989
13990
13991# The cast to long int works around a bug in the HP C Compiler
13992# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13993# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13994# This bug is HP SR number 8606223364.
13995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
13996$as_echo_n "checking size of off_t... " >&6; }
13997if ${ac_cv_sizeof_off_t+:} false; then :
13998  $as_echo_n "(cached) " >&6
13999else
14000  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14001
14002else
14003  if test "$ac_cv_type_off_t" = yes; then
14004     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14006as_fn_error 77 "cannot compute sizeof (off_t)
14007See \`config.log' for more details" "$LINENO" 5; }
14008   else
14009     ac_cv_sizeof_off_t=0
14010   fi
14011fi
14012
14013fi
14014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14015$as_echo "$ac_cv_sizeof_off_t" >&6; }
14016
14017
14018
14019cat >>confdefs.h <<_ACEOF
14020#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14021_ACEOF
14022
14023
14024
14025cat >>confdefs.h <<_ACEOF
14026#define VIM_SIZEOF_INT $ac_cv_sizeof_int
14027_ACEOF
14028
14029cat >>confdefs.h <<_ACEOF
14030#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
14031_ACEOF
14032
14033
14034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
14035$as_echo_n "checking uint32_t is 32 bits... " >&6; }
14036if test "$cross_compiling" = yes; then :
14037  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
14038$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
14039else
14040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041/* end confdefs.h.  */
14042
14043#ifdef HAVE_STDINT_H
14044# include <stdint.h>
14045#endif
14046#ifdef HAVE_INTTYPES_H
14047# include <inttypes.h>
14048#endif
14049main() {
14050  uint32_t nr1 = (uint32_t)-1;
14051  uint32_t nr2 = (uint32_t)0xffffffffUL;
14052  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
14053  exit(0);
14054}
14055_ACEOF
14056if ac_fn_c_try_run "$LINENO"; then :
14057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14058$as_echo "ok" >&6; }
14059else
14060  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
14061fi
14062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14063  conftest.$ac_objext conftest.beam conftest.$ac_ext
14064fi
14065
14066
14067
14068bcopy_test_prog='
14069#include "confdefs.h"
14070#ifdef HAVE_STRING_H
14071# include <string.h>
14072#endif
14073#if STDC_HEADERS
14074# include <stdlib.h>
14075# include <stddef.h>
14076#endif
14077main() {
14078  char buf[10];
14079  strcpy(buf, "abcdefghi");
14080  mch_memmove(buf, buf + 2, 3);
14081  if (strncmp(buf, "ababcf", 6))
14082    exit(1);
14083  strcpy(buf, "abcdefghi");
14084  mch_memmove(buf + 2, buf, 3);
14085  if (strncmp(buf, "cdedef", 6))
14086    exit(1);
14087  exit(0); /* libc version works properly.  */
14088}'
14089
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
14091$as_echo_n "checking whether memmove handles overlaps... " >&6; }
14092if ${vim_cv_memmove_handles_overlap+:} false; then :
14093  $as_echo_n "(cached) " >&6
14094else
14095
14096    if test "$cross_compiling" = yes; then :
14097
14098	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
14099
14100else
14101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102/* end confdefs.h.  */
14103#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14104_ACEOF
14105if ac_fn_c_try_run "$LINENO"; then :
14106
14107	vim_cv_memmove_handles_overlap=yes
14108
14109else
14110
14111	vim_cv_memmove_handles_overlap=no
14112
14113fi
14114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14115  conftest.$ac_objext conftest.beam conftest.$ac_ext
14116fi
14117
14118
14119fi
14120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
14121$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
14122
14123if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
14124  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
14125
14126else
14127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
14128$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
14129if ${vim_cv_bcopy_handles_overlap+:} false; then :
14130  $as_echo_n "(cached) " >&6
14131else
14132
14133      if test "$cross_compiling" = yes; then :
14134
14135	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
14136
14137else
14138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139/* end confdefs.h.  */
14140#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14141_ACEOF
14142if ac_fn_c_try_run "$LINENO"; then :
14143
14144	vim_cv_bcopy_handles_overlap=yes
14145
14146else
14147
14148	vim_cv_bcopy_handles_overlap=no
14149
14150fi
14151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14152  conftest.$ac_objext conftest.beam conftest.$ac_ext
14153fi
14154
14155
14156fi
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
14158$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
14159
14160  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
14161    $as_echo "#define USEBCOPY 1" >>confdefs.h
14162
14163  else
14164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
14165$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
14166if ${vim_cv_memcpy_handles_overlap+:} false; then :
14167  $as_echo_n "(cached) " >&6
14168else
14169
14170	if test "$cross_compiling" = yes; then :
14171
14172	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
14173
14174else
14175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176/* end confdefs.h.  */
14177#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14178_ACEOF
14179if ac_fn_c_try_run "$LINENO"; then :
14180
14181	    vim_cv_memcpy_handles_overlap=yes
14182
14183else
14184
14185	    vim_cv_memcpy_handles_overlap=no
14186
14187fi
14188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14189  conftest.$ac_objext conftest.beam conftest.$ac_ext
14190fi
14191
14192
14193fi
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
14195$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
14196
14197    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
14198      $as_echo "#define USEMEMCPY 1" >>confdefs.h
14199
14200    fi
14201  fi
14202fi
14203
14204
14205if test "x$with_x" = "xyes"; then
14206  cflags_save=$CFLAGS
14207  libs_save=$LIBS
14208  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
14209  CFLAGS="$CFLAGS $X_CFLAGS"
14210
14211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
14212$as_echo_n "checking whether X_LOCALE needed... " >&6; }
14213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214/* end confdefs.h.  */
14215#include <X11/Xlocale.h>
14216int
14217main ()
14218{
14219
14220  ;
14221  return 0;
14222}
14223_ACEOF
14224if ac_fn_c_try_compile "$LINENO"; then :
14225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226/* end confdefs.h.  */
14227
14228/* Override any GCC internal prototype to avoid an error.
14229   Use char because int might match the return type of a GCC
14230   builtin and then its argument prototype would still apply.  */
14231#ifdef __cplusplus
14232extern "C"
14233#endif
14234char _Xsetlocale ();
14235int
14236main ()
14237{
14238return _Xsetlocale ();
14239  ;
14240  return 0;
14241}
14242_ACEOF
14243if ac_fn_c_try_link "$LINENO"; then :
14244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14245$as_echo "yes" >&6; }
14246	      $as_echo "#define X_LOCALE 1" >>confdefs.h
14247
14248else
14249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250$as_echo "no" >&6; }
14251fi
14252rm -f core conftest.err conftest.$ac_objext \
14253    conftest$ac_exeext conftest.$ac_ext
14254else
14255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256$as_echo "no" >&6; }
14257fi
14258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259
14260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
14261$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
14262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263/* end confdefs.h.  */
14264
14265/* Override any GCC internal prototype to avoid an error.
14266   Use char because int might match the return type of a GCC
14267   builtin and then its argument prototype would still apply.  */
14268#ifdef __cplusplus
14269extern "C"
14270#endif
14271char Xutf8SetWMProperties ();
14272int
14273main ()
14274{
14275return Xutf8SetWMProperties ();
14276  ;
14277  return 0;
14278}
14279_ACEOF
14280if ac_fn_c_try_link "$LINENO"; then :
14281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14282$as_echo "yes" >&6; }
14283	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
14284
14285else
14286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14287$as_echo "no" >&6; }
14288fi
14289rm -f core conftest.err conftest.$ac_objext \
14290    conftest$ac_exeext conftest.$ac_ext
14291
14292  CFLAGS=$cflags_save
14293  LIBS=$libs_save
14294fi
14295
14296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
14297$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
14298if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
14299  $as_echo_n "(cached) " >&6
14300else
14301  ac_check_lib_save_LIBS=$LIBS
14302LIBS="-lxpg4  $LIBS"
14303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304/* end confdefs.h.  */
14305
14306/* Override any GCC internal prototype to avoid an error.
14307   Use char because int might match the return type of a GCC
14308   builtin and then its argument prototype would still apply.  */
14309#ifdef __cplusplus
14310extern "C"
14311#endif
14312char _xpg4_setrunelocale ();
14313int
14314main ()
14315{
14316return _xpg4_setrunelocale ();
14317  ;
14318  return 0;
14319}
14320_ACEOF
14321if ac_fn_c_try_link "$LINENO"; then :
14322  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14323else
14324  ac_cv_lib_xpg4__xpg4_setrunelocale=no
14325fi
14326rm -f core conftest.err conftest.$ac_objext \
14327    conftest$ac_exeext conftest.$ac_ext
14328LIBS=$ac_check_lib_save_LIBS
14329fi
14330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14331$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
14332if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
14333  LIBS="$LIBS -lxpg4"
14334fi
14335
14336
14337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
14338$as_echo_n "checking how to create tags... " >&6; }
14339test -f tags && mv tags tags.save
14340if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14341  TAGPRG="ctags -I INIT+ --fields=+S"
14342elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14343  TAGPRG="exctags -I INIT+ --fields=+S"
14344elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14345  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
14346else
14347  TAGPRG="ctags"
14348  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14349  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14350  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14351  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14352  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14353  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14354  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14355fi
14356test -f tags.save && mv tags.save tags
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
14358$as_echo "$TAGPRG" >&6; }
14359
14360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
14361$as_echo_n "checking how to run man with a section nr... " >&6; }
14362MANDEF="man"
14363(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
14365$as_echo "$MANDEF" >&6; }
14366if test "$MANDEF" = "man -s"; then
14367  $as_echo "#define USEMAN_S 1" >>confdefs.h
14368
14369fi
14370
14371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
14372$as_echo_n "checking --disable-nls argument... " >&6; }
14373# Check whether --enable-nls was given.
14374if test "${enable_nls+set}" = set; then :
14375  enableval=$enable_nls;
14376else
14377  enable_nls="yes"
14378fi
14379
14380
14381if test "$enable_nls" = "yes"; then
14382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14383$as_echo "no" >&6; }
14384
14385  INSTALL_LANGS=install-languages
14386
14387  INSTALL_TOOL_LANGS=install-tool-languages
14388
14389
14390  # Extract the first word of "msgfmt", so it can be a program name with args.
14391set dummy msgfmt; ac_word=$2
14392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14393$as_echo_n "checking for $ac_word... " >&6; }
14394if ${ac_cv_prog_MSGFMT+:} false; then :
14395  $as_echo_n "(cached) " >&6
14396else
14397  if test -n "$MSGFMT"; then
14398  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14399else
14400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14401for as_dir in $PATH
14402do
14403  IFS=$as_save_IFS
14404  test -z "$as_dir" && as_dir=.
14405    for ac_exec_ext in '' $ac_executable_extensions; do
14406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14407    ac_cv_prog_MSGFMT="msgfmt"
14408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14409    break 2
14410  fi
14411done
14412  done
14413IFS=$as_save_IFS
14414
14415fi
14416fi
14417MSGFMT=$ac_cv_prog_MSGFMT
14418if test -n "$MSGFMT"; then
14419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14420$as_echo "$MSGFMT" >&6; }
14421else
14422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423$as_echo "no" >&6; }
14424fi
14425
14426
14427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
14428$as_echo_n "checking for NLS... " >&6; }
14429  if test -f po/Makefile; then
14430    have_gettext="no"
14431    if test -n "$MSGFMT"; then
14432      olibs=$LIBS
14433      LIBS=""
14434      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435/* end confdefs.h.  */
14436#include <libintl.h>
14437int
14438main ()
14439{
14440gettext("Test");
14441  ;
14442  return 0;
14443}
14444_ACEOF
14445if ac_fn_c_try_link "$LINENO"; then :
14446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
14447$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
14448else
14449  LIBS="-lintl"
14450	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451/* end confdefs.h.  */
14452#include <libintl.h>
14453int
14454main ()
14455{
14456gettext("Test");
14457  ;
14458  return 0;
14459}
14460_ACEOF
14461if ac_fn_c_try_link "$LINENO"; then :
14462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
14463$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
14464	      LIBS="$olibs -lintl"
14465else
14466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
14467$as_echo "gettext() doesn't work" >&6; };
14468	      LIBS=$olibs
14469fi
14470rm -f core conftest.err conftest.$ac_objext \
14471    conftest$ac_exeext conftest.$ac_ext
14472fi
14473rm -f core conftest.err conftest.$ac_objext \
14474    conftest$ac_exeext conftest.$ac_ext
14475    else
14476      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
14477$as_echo "msgfmt not found - disabled" >&6; };
14478    fi
14479    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
14480      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14481
14482      MAKEMO=yes
14483
14484            for ac_func in bind_textdomain_codeset
14485do :
14486  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14487if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14488  cat >>confdefs.h <<_ACEOF
14489#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14490_ACEOF
14491
14492fi
14493done
14494
14495            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
14496$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
14497      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498/* end confdefs.h.  */
14499#include <libintl.h>
14500		extern int _nl_msg_cat_cntr;
14501int
14502main ()
14503{
14504++_nl_msg_cat_cntr;
14505  ;
14506  return 0;
14507}
14508_ACEOF
14509if ac_fn_c_try_link "$LINENO"; then :
14510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14511$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
14512
14513else
14514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14515$as_echo "no" >&6; }
14516fi
14517rm -f core conftest.err conftest.$ac_objext \
14518    conftest$ac_exeext conftest.$ac_ext
14519      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5
14520$as_echo_n "checking if msgfmt supports --desktop... " >&6; }
14521      MSGFMT_DESKTOP=
14522      if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then
14523	if "$MSGFMT" --version | grep '0.19.[3-7]$' >/dev/null; then
14524	  	  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
14525$as_echo "broken" >&6; }
14526	else
14527	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14528$as_echo "yes" >&6; }
14529	  MSGFMT_DESKTOP="gvim.desktop vim.desktop"
14530	fi
14531      else
14532	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533$as_echo "no" >&6; }
14534      fi
14535
14536    fi
14537  else
14538    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
14539$as_echo "no \"po/Makefile\" - disabled" >&6; };
14540  fi
14541else
14542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14543$as_echo "yes" >&6; }
14544fi
14545
14546ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14547if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14548  DLL=dlfcn.h
14549else
14550  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14551if test "x$ac_cv_header_dl_h" = xyes; then :
14552  DLL=dl.h
14553fi
14554
14555
14556fi
14557
14558
14559if test x${DLL} = xdlfcn.h; then
14560
14561$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14562
14563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
14564$as_echo_n "checking for dlopen()... " >&6; }
14565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566/* end confdefs.h.  */
14567
14568int
14569main ()
14570{
14571
14572		extern void* dlopen();
14573		dlopen();
14574
14575  ;
14576  return 0;
14577}
14578_ACEOF
14579if ac_fn_c_try_link "$LINENO"; then :
14580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14581$as_echo "yes" >&6; };
14582
14583$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14584
14585else
14586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14587$as_echo "no" >&6; };
14588	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
14589$as_echo_n "checking for dlopen() in -ldl... " >&6; }
14590	      olibs=$LIBS
14591	      LIBS="$LIBS -ldl"
14592	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593/* end confdefs.h.  */
14594
14595int
14596main ()
14597{
14598
14599				extern void* dlopen();
14600				dlopen();
14601
14602  ;
14603  return 0;
14604}
14605_ACEOF
14606if ac_fn_c_try_link "$LINENO"; then :
14607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14608$as_echo "yes" >&6; };
14609
14610$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14611
14612else
14613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14614$as_echo "no" >&6; };
14615			  LIBS=$olibs
14616fi
14617rm -f core conftest.err conftest.$ac_objext \
14618    conftest$ac_exeext conftest.$ac_ext
14619fi
14620rm -f core conftest.err conftest.$ac_objext \
14621    conftest$ac_exeext conftest.$ac_ext
14622      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
14623$as_echo_n "checking for dlsym()... " >&6; }
14624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625/* end confdefs.h.  */
14626
14627int
14628main ()
14629{
14630
14631		extern void* dlsym();
14632		dlsym();
14633
14634  ;
14635  return 0;
14636}
14637_ACEOF
14638if ac_fn_c_try_link "$LINENO"; then :
14639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14640$as_echo "yes" >&6; };
14641
14642$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14643
14644else
14645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646$as_echo "no" >&6; };
14647	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
14648$as_echo_n "checking for dlsym() in -ldl... " >&6; }
14649	      olibs=$LIBS
14650	      LIBS="$LIBS -ldl"
14651	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652/* end confdefs.h.  */
14653
14654int
14655main ()
14656{
14657
14658				extern void* dlsym();
14659				dlsym();
14660
14661  ;
14662  return 0;
14663}
14664_ACEOF
14665if ac_fn_c_try_link "$LINENO"; then :
14666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14667$as_echo "yes" >&6; };
14668
14669$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14670
14671else
14672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14673$as_echo "no" >&6; };
14674			  LIBS=$olibs
14675fi
14676rm -f core conftest.err conftest.$ac_objext \
14677    conftest$ac_exeext conftest.$ac_ext
14678fi
14679rm -f core conftest.err conftest.$ac_objext \
14680    conftest$ac_exeext conftest.$ac_ext
14681elif test x${DLL} = xdl.h; then
14682
14683$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14684
14685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14686$as_echo_n "checking for shl_load()... " >&6; }
14687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688/* end confdefs.h.  */
14689
14690int
14691main ()
14692{
14693
14694		extern void* shl_load();
14695		shl_load();
14696
14697  ;
14698  return 0;
14699}
14700_ACEOF
14701if ac_fn_c_try_link "$LINENO"; then :
14702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14703$as_echo "yes" >&6; };
14704
14705$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14706
14707else
14708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14709$as_echo "no" >&6; };
14710	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14711$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14712	  olibs=$LIBS
14713	  LIBS="$LIBS -ldld"
14714	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715/* end confdefs.h.  */
14716
14717int
14718main ()
14719{
14720
14721			extern void* shl_load();
14722			shl_load();
14723
14724  ;
14725  return 0;
14726}
14727_ACEOF
14728if ac_fn_c_try_link "$LINENO"; then :
14729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14730$as_echo "yes" >&6; };
14731
14732$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14733
14734else
14735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736$as_echo "no" >&6; };
14737		  LIBS=$olibs
14738fi
14739rm -f core conftest.err conftest.$ac_objext \
14740    conftest$ac_exeext conftest.$ac_ext
14741fi
14742rm -f core conftest.err conftest.$ac_objext \
14743    conftest$ac_exeext conftest.$ac_ext
14744fi
14745for ac_header in setjmp.h
14746do :
14747  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14748if test "x$ac_cv_header_setjmp_h" = xyes; then :
14749  cat >>confdefs.h <<_ACEOF
14750#define HAVE_SETJMP_H 1
14751_ACEOF
14752
14753fi
14754
14755done
14756
14757
14758if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then
14759    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14760    LIBS=`echo $LIBS | sed s/-ldl//`
14761    PERL_LIBS="$PERL_LIBS -ldl"
14762  fi
14763fi
14764
14765if test "$MACOS_X" = "yes"; then
14766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5
14767$as_echo_n "checking whether we need macOS frameworks... " >&6; }
14768  if test "$GUITYPE" = "CARBONGUI"; then
14769    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5
14770$as_echo "yes, we need Carbon" >&6; }
14771    LIBS="$LIBS -framework Carbon"
14772  elif test "$MACOS_X_DARWIN" = "yes"; then
14773    if test "$features" = "tiny"; then
14774            OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14775      OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14776      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
14777$as_echo "yes, we need CoreServices" >&6; }
14778      LIBS="$LIBS -framework CoreServices"
14779    else
14780      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
14781$as_echo "yes, we need AppKit" >&6; }
14782      LIBS="$LIBS -framework AppKit"
14783    fi
14784  else
14785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786$as_echo "no" >&6; }
14787  fi
14788fi
14789if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14790  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14791fi
14792
14793DEPEND_CFLAGS_FILTER=
14794if test "$GCC" = yes; then
14795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14796$as_echo_n "checking for GCC 3 or later... " >&6; }
14797  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
14798  if test "$gccmajor" -gt "2"; then
14799    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14801$as_echo "yes" >&6; }
14802  else
14803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14804$as_echo "no" >&6; }
14805  fi
14806          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14807$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14808  if test "$gccmajor" -gt "3"; then
14809    CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
14810    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14811$as_echo "yes" >&6; }
14812  else
14813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14814$as_echo "no" >&6; }
14815  fi
14816fi
14817
14818
14819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5
14820$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; }
14821if echo "$CFLAGS $LUA_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $PYTHON3_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $GTK_CFLAGS" | grep -q D_FILE_OFFSET_BITS 2>/dev/null; then
14822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14823$as_echo "yes" >&6; }
14824  $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14825
14826else
14827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14828$as_echo "no" >&6; }
14829fi
14830
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14832$as_echo_n "checking linker --as-needed support... " >&6; }
14833LINK_AS_NEEDED=
14834# Check if linker supports --as-needed and --no-as-needed options
14835if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14836  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14837  LINK_AS_NEEDED=yes
14838fi
14839if test "$LINK_AS_NEEDED" = yes; then
14840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14841$as_echo "yes" >&6; }
14842else
14843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844$as_echo "no" >&6; }
14845fi
14846
14847
14848# IBM z/OS reset CFLAGS for config.mk
14849if test "$zOSUnix" = "yes"; then
14850	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14851fi
14852
14853ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14854
14855cat >confcache <<\_ACEOF
14856# This file is a shell script that caches the results of configure
14857# tests run on this system so they can be shared between configure
14858# scripts and configure runs, see configure's option --config-cache.
14859# It is not useful on other systems.  If it contains results you don't
14860# want to keep, you may remove or edit it.
14861#
14862# config.status only pays attention to the cache file if you give it
14863# the --recheck option to rerun configure.
14864#
14865# `ac_cv_env_foo' variables (set or unset) will be overridden when
14866# loading this file, other *unset* `ac_cv_foo' will be assigned the
14867# following values.
14868
14869_ACEOF
14870
14871# The following way of writing the cache mishandles newlines in values,
14872# but we know of no workaround that is simple, portable, and efficient.
14873# So, we kill variables containing newlines.
14874# Ultrix sh set writes to stderr and can't be redirected directly,
14875# and sets the high bit in the cache file unless we assign to the vars.
14876(
14877  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14878    eval ac_val=\$$ac_var
14879    case $ac_val in #(
14880    *${as_nl}*)
14881      case $ac_var in #(
14882      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14883$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14884      esac
14885      case $ac_var in #(
14886      _ | IFS | as_nl) ;; #(
14887      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14888      *) { eval $ac_var=; unset $ac_var;} ;;
14889      esac ;;
14890    esac
14891  done
14892
14893  (set) 2>&1 |
14894    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14895    *${as_nl}ac_space=\ *)
14896      # `set' does not quote correctly, so add quotes: double-quote
14897      # substitution turns \\\\ into \\, and sed turns \\ into \.
14898      sed -n \
14899	"s/'/'\\\\''/g;
14900	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14901      ;; #(
14902    *)
14903      # `set' quotes correctly as required by POSIX, so do not add quotes.
14904      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14905      ;;
14906    esac |
14907    sort
14908) |
14909  sed '
14910     /^ac_cv_env_/b end
14911     t clear
14912     :clear
14913     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14914     t end
14915     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14916     :end' >>confcache
14917if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14918  if test -w "$cache_file"; then
14919    if test "x$cache_file" != "x/dev/null"; then
14920      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14921$as_echo "$as_me: updating cache $cache_file" >&6;}
14922      if test ! -f "$cache_file" || test -h "$cache_file"; then
14923	cat confcache >"$cache_file"
14924      else
14925        case $cache_file in #(
14926        */* | ?:*)
14927	  mv -f confcache "$cache_file"$$ &&
14928	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14929        *)
14930	  mv -f confcache "$cache_file" ;;
14931	esac
14932      fi
14933    fi
14934  else
14935    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14936$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14937  fi
14938fi
14939rm -f confcache
14940
14941test "x$prefix" = xNONE && prefix=$ac_default_prefix
14942# Let make expand exec_prefix.
14943test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14944
14945DEFS=-DHAVE_CONFIG_H
14946
14947ac_libobjs=
14948ac_ltlibobjs=
14949U=
14950for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14951  # 1. Remove the extension, and $U if already installed.
14952  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14953  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14954  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14955  #    will be set to the directory where LIBOBJS objects are built.
14956  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14957  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14958done
14959LIBOBJS=$ac_libobjs
14960
14961LTLIBOBJS=$ac_ltlibobjs
14962
14963
14964
14965
14966: "${CONFIG_STATUS=./config.status}"
14967ac_write_fail=0
14968ac_clean_files_save=$ac_clean_files
14969ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14970{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14971$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14972as_write_fail=0
14973cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14974#! $SHELL
14975# Generated by $as_me.
14976# Run this file to recreate the current configuration.
14977# Compiler output produced by configure, useful for debugging
14978# configure, is in config.log if it exists.
14979
14980debug=false
14981ac_cs_recheck=false
14982ac_cs_silent=false
14983
14984SHELL=\${CONFIG_SHELL-$SHELL}
14985export SHELL
14986_ASEOF
14987cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14988## -------------------- ##
14989## M4sh Initialization. ##
14990## -------------------- ##
14991
14992# Be more Bourne compatible
14993DUALCASE=1; export DUALCASE # for MKS sh
14994if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14995  emulate sh
14996  NULLCMD=:
14997  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14998  # is contrary to our usage.  Disable this feature.
14999  alias -g '${1+"$@"}'='"$@"'
15000  setopt NO_GLOB_SUBST
15001else
15002  case `(set -o) 2>/dev/null` in #(
15003  *posix*) :
15004    set -o posix ;; #(
15005  *) :
15006     ;;
15007esac
15008fi
15009
15010
15011as_nl='
15012'
15013export as_nl
15014# Printing a long string crashes Solaris 7 /usr/bin/printf.
15015as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15016as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15017as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15018# Prefer a ksh shell builtin over an external printf program on Solaris,
15019# but without wasting forks for bash or zsh.
15020if test -z "$BASH_VERSION$ZSH_VERSION" \
15021    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15022  as_echo='print -r --'
15023  as_echo_n='print -rn --'
15024elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15025  as_echo='printf %s\n'
15026  as_echo_n='printf %s'
15027else
15028  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15029    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15030    as_echo_n='/usr/ucb/echo -n'
15031  else
15032    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15033    as_echo_n_body='eval
15034      arg=$1;
15035      case $arg in #(
15036      *"$as_nl"*)
15037	expr "X$arg" : "X\\(.*\\)$as_nl";
15038	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15039      esac;
15040      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15041    '
15042    export as_echo_n_body
15043    as_echo_n='sh -c $as_echo_n_body as_echo'
15044  fi
15045  export as_echo_body
15046  as_echo='sh -c $as_echo_body as_echo'
15047fi
15048
15049# The user is always right.
15050if test "${PATH_SEPARATOR+set}" != set; then
15051  PATH_SEPARATOR=:
15052  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15053    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15054      PATH_SEPARATOR=';'
15055  }
15056fi
15057
15058
15059# IFS
15060# We need space, tab and new line, in precisely that order.  Quoting is
15061# there to prevent editors from complaining about space-tab.
15062# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15063# splitting by setting IFS to empty value.)
15064IFS=" ""	$as_nl"
15065
15066# Find who we are.  Look in the path if we contain no directory separator.
15067as_myself=
15068case $0 in #((
15069  *[\\/]* ) as_myself=$0 ;;
15070  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15071for as_dir in $PATH
15072do
15073  IFS=$as_save_IFS
15074  test -z "$as_dir" && as_dir=.
15075    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15076  done
15077IFS=$as_save_IFS
15078
15079     ;;
15080esac
15081# We did not find ourselves, most probably we were run as `sh COMMAND'
15082# in which case we are not to be found in the path.
15083if test "x$as_myself" = x; then
15084  as_myself=$0
15085fi
15086if test ! -f "$as_myself"; then
15087  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15088  exit 1
15089fi
15090
15091# Unset variables that we do not need and which cause bugs (e.g. in
15092# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15093# suppresses any "Segmentation fault" message there.  '((' could
15094# trigger a bug in pdksh 5.2.14.
15095for as_var in BASH_ENV ENV MAIL MAILPATH
15096do eval test x\${$as_var+set} = xset \
15097  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15098done
15099PS1='$ '
15100PS2='> '
15101PS4='+ '
15102
15103# NLS nuisances.
15104LC_ALL=C
15105export LC_ALL
15106LANGUAGE=C
15107export LANGUAGE
15108
15109# CDPATH.
15110(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15111
15112
15113# as_fn_error STATUS ERROR [LINENO LOG_FD]
15114# ----------------------------------------
15115# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15116# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15117# script with STATUS, using 1 if that was 0.
15118as_fn_error ()
15119{
15120  as_status=$1; test $as_status -eq 0 && as_status=1
15121  if test "$4"; then
15122    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15123    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15124  fi
15125  $as_echo "$as_me: error: $2" >&2
15126  as_fn_exit $as_status
15127} # as_fn_error
15128
15129
15130# as_fn_set_status STATUS
15131# -----------------------
15132# Set $? to STATUS, without forking.
15133as_fn_set_status ()
15134{
15135  return $1
15136} # as_fn_set_status
15137
15138# as_fn_exit STATUS
15139# -----------------
15140# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15141as_fn_exit ()
15142{
15143  set +e
15144  as_fn_set_status $1
15145  exit $1
15146} # as_fn_exit
15147
15148# as_fn_unset VAR
15149# ---------------
15150# Portably unset VAR.
15151as_fn_unset ()
15152{
15153  { eval $1=; unset $1;}
15154}
15155as_unset=as_fn_unset
15156# as_fn_append VAR VALUE
15157# ----------------------
15158# Append the text in VALUE to the end of the definition contained in VAR. Take
15159# advantage of any shell optimizations that allow amortized linear growth over
15160# repeated appends, instead of the typical quadratic growth present in naive
15161# implementations.
15162if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15163  eval 'as_fn_append ()
15164  {
15165    eval $1+=\$2
15166  }'
15167else
15168  as_fn_append ()
15169  {
15170    eval $1=\$$1\$2
15171  }
15172fi # as_fn_append
15173
15174# as_fn_arith ARG...
15175# ------------------
15176# Perform arithmetic evaluation on the ARGs, and store the result in the
15177# global $as_val. Take advantage of shells that can avoid forks. The arguments
15178# must be portable across $(()) and expr.
15179if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15180  eval 'as_fn_arith ()
15181  {
15182    as_val=$(( $* ))
15183  }'
15184else
15185  as_fn_arith ()
15186  {
15187    as_val=`expr "$@" || test $? -eq 1`
15188  }
15189fi # as_fn_arith
15190
15191
15192if expr a : '\(a\)' >/dev/null 2>&1 &&
15193   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15194  as_expr=expr
15195else
15196  as_expr=false
15197fi
15198
15199if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15200  as_basename=basename
15201else
15202  as_basename=false
15203fi
15204
15205if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15206  as_dirname=dirname
15207else
15208  as_dirname=false
15209fi
15210
15211as_me=`$as_basename -- "$0" ||
15212$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15213	 X"$0" : 'X\(//\)$' \| \
15214	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15215$as_echo X/"$0" |
15216    sed '/^.*\/\([^/][^/]*\)\/*$/{
15217	    s//\1/
15218	    q
15219	  }
15220	  /^X\/\(\/\/\)$/{
15221	    s//\1/
15222	    q
15223	  }
15224	  /^X\/\(\/\).*/{
15225	    s//\1/
15226	    q
15227	  }
15228	  s/.*/./; q'`
15229
15230# Avoid depending upon Character Ranges.
15231as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15232as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15233as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15234as_cr_digits='0123456789'
15235as_cr_alnum=$as_cr_Letters$as_cr_digits
15236
15237ECHO_C= ECHO_N= ECHO_T=
15238case `echo -n x` in #(((((
15239-n*)
15240  case `echo 'xy\c'` in
15241  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15242  xy)  ECHO_C='\c';;
15243  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15244       ECHO_T='	';;
15245  esac;;
15246*)
15247  ECHO_N='-n';;
15248esac
15249
15250rm -f conf$$ conf$$.exe conf$$.file
15251if test -d conf$$.dir; then
15252  rm -f conf$$.dir/conf$$.file
15253else
15254  rm -f conf$$.dir
15255  mkdir conf$$.dir 2>/dev/null
15256fi
15257if (echo >conf$$.file) 2>/dev/null; then
15258  if ln -s conf$$.file conf$$ 2>/dev/null; then
15259    as_ln_s='ln -s'
15260    # ... but there are two gotchas:
15261    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15262    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15263    # In both cases, we have to default to `cp -pR'.
15264    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15265      as_ln_s='cp -pR'
15266  elif ln conf$$.file conf$$ 2>/dev/null; then
15267    as_ln_s=ln
15268  else
15269    as_ln_s='cp -pR'
15270  fi
15271else
15272  as_ln_s='cp -pR'
15273fi
15274rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15275rmdir conf$$.dir 2>/dev/null
15276
15277
15278# as_fn_mkdir_p
15279# -------------
15280# Create "$as_dir" as a directory, including parents if necessary.
15281as_fn_mkdir_p ()
15282{
15283
15284  case $as_dir in #(
15285  -*) as_dir=./$as_dir;;
15286  esac
15287  test -d "$as_dir" || eval $as_mkdir_p || {
15288    as_dirs=
15289    while :; do
15290      case $as_dir in #(
15291      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15292      *) as_qdir=$as_dir;;
15293      esac
15294      as_dirs="'$as_qdir' $as_dirs"
15295      as_dir=`$as_dirname -- "$as_dir" ||
15296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15297	 X"$as_dir" : 'X\(//\)[^/]' \| \
15298	 X"$as_dir" : 'X\(//\)$' \| \
15299	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15300$as_echo X"$as_dir" |
15301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15302	    s//\1/
15303	    q
15304	  }
15305	  /^X\(\/\/\)[^/].*/{
15306	    s//\1/
15307	    q
15308	  }
15309	  /^X\(\/\/\)$/{
15310	    s//\1/
15311	    q
15312	  }
15313	  /^X\(\/\).*/{
15314	    s//\1/
15315	    q
15316	  }
15317	  s/.*/./; q'`
15318      test -d "$as_dir" && break
15319    done
15320    test -z "$as_dirs" || eval "mkdir $as_dirs"
15321  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15322
15323
15324} # as_fn_mkdir_p
15325if mkdir -p . 2>/dev/null; then
15326  as_mkdir_p='mkdir -p "$as_dir"'
15327else
15328  test -d ./-p && rmdir ./-p
15329  as_mkdir_p=false
15330fi
15331
15332
15333# as_fn_executable_p FILE
15334# -----------------------
15335# Test if FILE is an executable regular file.
15336as_fn_executable_p ()
15337{
15338  test -f "$1" && test -x "$1"
15339} # as_fn_executable_p
15340as_test_x='test -x'
15341as_executable_p=as_fn_executable_p
15342
15343# Sed expression to map a string onto a valid CPP name.
15344as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15345
15346# Sed expression to map a string onto a valid variable name.
15347as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15348
15349
15350exec 6>&1
15351## ----------------------------------- ##
15352## Main body of $CONFIG_STATUS script. ##
15353## ----------------------------------- ##
15354_ASEOF
15355test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15356
15357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15358# Save the log message, to keep $0 and so on meaningful, and to
15359# report actual input values of CONFIG_FILES etc. instead of their
15360# values after options handling.
15361ac_log="
15362This file was extended by $as_me, which was
15363generated by GNU Autoconf 2.69.  Invocation command line was
15364
15365  CONFIG_FILES    = $CONFIG_FILES
15366  CONFIG_HEADERS  = $CONFIG_HEADERS
15367  CONFIG_LINKS    = $CONFIG_LINKS
15368  CONFIG_COMMANDS = $CONFIG_COMMANDS
15369  $ $0 $@
15370
15371on `(hostname || uname -n) 2>/dev/null | sed 1q`
15372"
15373
15374_ACEOF
15375
15376case $ac_config_files in *"
15377"*) set x $ac_config_files; shift; ac_config_files=$*;;
15378esac
15379
15380case $ac_config_headers in *"
15381"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15382esac
15383
15384
15385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15386# Files that config.status was made for.
15387config_files="$ac_config_files"
15388config_headers="$ac_config_headers"
15389
15390_ACEOF
15391
15392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15393ac_cs_usage="\
15394\`$as_me' instantiates files and other configuration actions
15395from templates according to the current configuration.  Unless the files
15396and actions are specified as TAGs, all are instantiated by default.
15397
15398Usage: $0 [OPTION]... [TAG]...
15399
15400  -h, --help       print this help, then exit
15401  -V, --version    print version number and configuration settings, then exit
15402      --config     print configuration, then exit
15403  -q, --quiet, --silent
15404                   do not print progress messages
15405  -d, --debug      don't remove temporary files
15406      --recheck    update $as_me by reconfiguring in the same conditions
15407      --file=FILE[:TEMPLATE]
15408                   instantiate the configuration file FILE
15409      --header=FILE[:TEMPLATE]
15410                   instantiate the configuration header FILE
15411
15412Configuration files:
15413$config_files
15414
15415Configuration headers:
15416$config_headers
15417
15418Report bugs to the package provider."
15419
15420_ACEOF
15421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15422ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15423ac_cs_version="\\
15424config.status
15425configured by $0, generated by GNU Autoconf 2.69,
15426  with options \\"\$ac_cs_config\\"
15427
15428Copyright (C) 2012 Free Software Foundation, Inc.
15429This config.status script is free software; the Free Software Foundation
15430gives unlimited permission to copy, distribute and modify it."
15431
15432ac_pwd='$ac_pwd'
15433srcdir='$srcdir'
15434AWK='$AWK'
15435test -n "\$AWK" || AWK=awk
15436_ACEOF
15437
15438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15439# The default lists apply if the user does not specify any file.
15440ac_need_defaults=:
15441while test $# != 0
15442do
15443  case $1 in
15444  --*=?*)
15445    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15446    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15447    ac_shift=:
15448    ;;
15449  --*=)
15450    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15451    ac_optarg=
15452    ac_shift=:
15453    ;;
15454  *)
15455    ac_option=$1
15456    ac_optarg=$2
15457    ac_shift=shift
15458    ;;
15459  esac
15460
15461  case $ac_option in
15462  # Handling of the options.
15463  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15464    ac_cs_recheck=: ;;
15465  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15466    $as_echo "$ac_cs_version"; exit ;;
15467  --config | --confi | --conf | --con | --co | --c )
15468    $as_echo "$ac_cs_config"; exit ;;
15469  --debug | --debu | --deb | --de | --d | -d )
15470    debug=: ;;
15471  --file | --fil | --fi | --f )
15472    $ac_shift
15473    case $ac_optarg in
15474    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15475    '') as_fn_error $? "missing file argument" ;;
15476    esac
15477    as_fn_append CONFIG_FILES " '$ac_optarg'"
15478    ac_need_defaults=false;;
15479  --header | --heade | --head | --hea )
15480    $ac_shift
15481    case $ac_optarg in
15482    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15483    esac
15484    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15485    ac_need_defaults=false;;
15486  --he | --h)
15487    # Conflict between --help and --header
15488    as_fn_error $? "ambiguous option: \`$1'
15489Try \`$0 --help' for more information.";;
15490  --help | --hel | -h )
15491    $as_echo "$ac_cs_usage"; exit ;;
15492  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15493  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15494    ac_cs_silent=: ;;
15495
15496  # This is an error.
15497  -*) as_fn_error $? "unrecognized option: \`$1'
15498Try \`$0 --help' for more information." ;;
15499
15500  *) as_fn_append ac_config_targets " $1"
15501     ac_need_defaults=false ;;
15502
15503  esac
15504  shift
15505done
15506
15507ac_configure_extra_args=
15508
15509if $ac_cs_silent; then
15510  exec 6>/dev/null
15511  ac_configure_extra_args="$ac_configure_extra_args --silent"
15512fi
15513
15514_ACEOF
15515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15516if \$ac_cs_recheck; then
15517  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15518  shift
15519  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15520  CONFIG_SHELL='$SHELL'
15521  export CONFIG_SHELL
15522  exec "\$@"
15523fi
15524
15525_ACEOF
15526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15527exec 5>>auto/config.log
15528{
15529  echo
15530  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15531## Running $as_me. ##
15532_ASBOX
15533  $as_echo "$ac_log"
15534} >&5
15535
15536_ACEOF
15537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15538_ACEOF
15539
15540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15541
15542# Handling of arguments.
15543for ac_config_target in $ac_config_targets
15544do
15545  case $ac_config_target in
15546    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15547    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15548
15549  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15550  esac
15551done
15552
15553
15554# If the user did not use the arguments to specify the items to instantiate,
15555# then the envvar interface is used.  Set only those that are not.
15556# We use the long form for the default assignment because of an extremely
15557# bizarre bug on SunOS 4.1.3.
15558if $ac_need_defaults; then
15559  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15560  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15561fi
15562
15563# Have a temporary directory for convenience.  Make it in the build tree
15564# simply because there is no reason against having it here, and in addition,
15565# creating and moving files from /tmp can sometimes cause problems.
15566# Hook for its removal unless debugging.
15567# Note that there is a small window in which the directory will not be cleaned:
15568# after its creation but before its name has been assigned to `$tmp'.
15569$debug ||
15570{
15571  tmp= ac_tmp=
15572  trap 'exit_status=$?
15573  : "${ac_tmp:=$tmp}"
15574  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15575' 0
15576  trap 'as_fn_exit 1' 1 2 13 15
15577}
15578# Create a (secure) tmp directory for tmp files.
15579
15580{
15581  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15582  test -d "$tmp"
15583}  ||
15584{
15585  tmp=./conf$$-$RANDOM
15586  (umask 077 && mkdir "$tmp")
15587} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15588ac_tmp=$tmp
15589
15590# Set up the scripts for CONFIG_FILES section.
15591# No need to generate them if there are no CONFIG_FILES.
15592# This happens for instance with `./config.status config.h'.
15593if test -n "$CONFIG_FILES"; then
15594
15595
15596ac_cr=`echo X | tr X '\015'`
15597# On cygwin, bash can eat \r inside `` if the user requested igncr.
15598# But we know of no other shell where ac_cr would be empty at this
15599# point, so we can use a bashism as a fallback.
15600if test "x$ac_cr" = x; then
15601  eval ac_cr=\$\'\\r\'
15602fi
15603ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15604if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15605  ac_cs_awk_cr='\\r'
15606else
15607  ac_cs_awk_cr=$ac_cr
15608fi
15609
15610echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15611_ACEOF
15612
15613
15614{
15615  echo "cat >conf$$subs.awk <<_ACEOF" &&
15616  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15617  echo "_ACEOF"
15618} >conf$$subs.sh ||
15619  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15620ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15621ac_delim='%!_!# '
15622for ac_last_try in false false false false false :; do
15623  . ./conf$$subs.sh ||
15624    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15625
15626  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15627  if test $ac_delim_n = $ac_delim_num; then
15628    break
15629  elif $ac_last_try; then
15630    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15631  else
15632    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15633  fi
15634done
15635rm -f conf$$subs.sh
15636
15637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15638cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15639_ACEOF
15640sed -n '
15641h
15642s/^/S["/; s/!.*/"]=/
15643p
15644g
15645s/^[^!]*!//
15646:repl
15647t repl
15648s/'"$ac_delim"'$//
15649t delim
15650:nl
15651h
15652s/\(.\{148\}\)..*/\1/
15653t more1
15654s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15655p
15656n
15657b repl
15658:more1
15659s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15660p
15661g
15662s/.\{148\}//
15663t nl
15664:delim
15665h
15666s/\(.\{148\}\)..*/\1/
15667t more2
15668s/["\\]/\\&/g; s/^/"/; s/$/"/
15669p
15670b
15671:more2
15672s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15673p
15674g
15675s/.\{148\}//
15676t delim
15677' <conf$$subs.awk | sed '
15678/^[^""]/{
15679  N
15680  s/\n//
15681}
15682' >>$CONFIG_STATUS || ac_write_fail=1
15683rm -f conf$$subs.awk
15684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15685_ACAWK
15686cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15687  for (key in S) S_is_set[key] = 1
15688  FS = ""
15689
15690}
15691{
15692  line = $ 0
15693  nfields = split(line, field, "@")
15694  substed = 0
15695  len = length(field[1])
15696  for (i = 2; i < nfields; i++) {
15697    key = field[i]
15698    keylen = length(key)
15699    if (S_is_set[key]) {
15700      value = S[key]
15701      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15702      len += length(value) + length(field[++i])
15703      substed = 1
15704    } else
15705      len += 1 + keylen
15706  }
15707
15708  print line
15709}
15710
15711_ACAWK
15712_ACEOF
15713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15714if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15715  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15716else
15717  cat
15718fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15719  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15720_ACEOF
15721
15722# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15723# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15724# trailing colons and then remove the whole line if VPATH becomes empty
15725# (actually we leave an empty line to preserve line numbers).
15726if test "x$srcdir" = x.; then
15727  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15728h
15729s///
15730s/^/:/
15731s/[	 ]*$/:/
15732s/:\$(srcdir):/:/g
15733s/:\${srcdir}:/:/g
15734s/:@srcdir@:/:/g
15735s/^:*//
15736s/:*$//
15737x
15738s/\(=[	 ]*\).*/\1/
15739G
15740s/\n//
15741s/^[^=]*=[	 ]*$//
15742}'
15743fi
15744
15745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15746fi # test -n "$CONFIG_FILES"
15747
15748# Set up the scripts for CONFIG_HEADERS section.
15749# No need to generate them if there are no CONFIG_HEADERS.
15750# This happens for instance with `./config.status Makefile'.
15751if test -n "$CONFIG_HEADERS"; then
15752cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15753BEGIN {
15754_ACEOF
15755
15756# Transform confdefs.h into an awk script `defines.awk', embedded as
15757# here-document in config.status, that substitutes the proper values into
15758# config.h.in to produce config.h.
15759
15760# Create a delimiter string that does not exist in confdefs.h, to ease
15761# handling of long lines.
15762ac_delim='%!_!# '
15763for ac_last_try in false false :; do
15764  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15765  if test -z "$ac_tt"; then
15766    break
15767  elif $ac_last_try; then
15768    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15769  else
15770    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15771  fi
15772done
15773
15774# For the awk script, D is an array of macro values keyed by name,
15775# likewise P contains macro parameters if any.  Preserve backslash
15776# newline sequences.
15777
15778ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15779sed -n '
15780s/.\{148\}/&'"$ac_delim"'/g
15781t rset
15782:rset
15783s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15784t def
15785d
15786:def
15787s/\\$//
15788t bsnl
15789s/["\\]/\\&/g
15790s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15791D["\1"]=" \3"/p
15792s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15793d
15794:bsnl
15795s/["\\]/\\&/g
15796s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15797D["\1"]=" \3\\\\\\n"\\/p
15798t cont
15799s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15800t cont
15801d
15802:cont
15803n
15804s/.\{148\}/&'"$ac_delim"'/g
15805t clear
15806:clear
15807s/\\$//
15808t bsnlc
15809s/["\\]/\\&/g; s/^/"/; s/$/"/p
15810d
15811:bsnlc
15812s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15813b cont
15814' <confdefs.h | sed '
15815s/'"$ac_delim"'/"\\\
15816"/g' >>$CONFIG_STATUS || ac_write_fail=1
15817
15818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15819  for (key in D) D_is_set[key] = 1
15820  FS = ""
15821}
15822/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15823  line = \$ 0
15824  split(line, arg, " ")
15825  if (arg[1] == "#") {
15826    defundef = arg[2]
15827    mac1 = arg[3]
15828  } else {
15829    defundef = substr(arg[1], 2)
15830    mac1 = arg[2]
15831  }
15832  split(mac1, mac2, "(") #)
15833  macro = mac2[1]
15834  prefix = substr(line, 1, index(line, defundef) - 1)
15835  if (D_is_set[macro]) {
15836    # Preserve the white space surrounding the "#".
15837    print prefix "define", macro P[macro] D[macro]
15838    next
15839  } else {
15840    # Replace #undef with comments.  This is necessary, for example,
15841    # in the case of _POSIX_SOURCE, which is predefined and required
15842    # on some systems where configure will not decide to define it.
15843    if (defundef == "undef") {
15844      print "/*", prefix defundef, macro, "*/"
15845      next
15846    }
15847  }
15848}
15849{ print }
15850_ACAWK
15851_ACEOF
15852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15853  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15854fi # test -n "$CONFIG_HEADERS"
15855
15856
15857eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15858shift
15859for ac_tag
15860do
15861  case $ac_tag in
15862  :[FHLC]) ac_mode=$ac_tag; continue;;
15863  esac
15864  case $ac_mode$ac_tag in
15865  :[FHL]*:*);;
15866  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15867  :[FH]-) ac_tag=-:-;;
15868  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15869  esac
15870  ac_save_IFS=$IFS
15871  IFS=:
15872  set x $ac_tag
15873  IFS=$ac_save_IFS
15874  shift
15875  ac_file=$1
15876  shift
15877
15878  case $ac_mode in
15879  :L) ac_source=$1;;
15880  :[FH])
15881    ac_file_inputs=
15882    for ac_f
15883    do
15884      case $ac_f in
15885      -) ac_f="$ac_tmp/stdin";;
15886      *) # Look for the file first in the build tree, then in the source tree
15887	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15888	 # because $ac_f cannot contain `:'.
15889	 test -f "$ac_f" ||
15890	   case $ac_f in
15891	   [\\/$]*) false;;
15892	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15893	   esac ||
15894	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15895      esac
15896      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15897      as_fn_append ac_file_inputs " '$ac_f'"
15898    done
15899
15900    # Let's still pretend it is `configure' which instantiates (i.e., don't
15901    # use $as_me), people would be surprised to read:
15902    #    /* config.h.  Generated by config.status.  */
15903    configure_input='Generated from '`
15904	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15905	`' by configure.'
15906    if test x"$ac_file" != x-; then
15907      configure_input="$ac_file.  $configure_input"
15908      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15909$as_echo "$as_me: creating $ac_file" >&6;}
15910    fi
15911    # Neutralize special characters interpreted by sed in replacement strings.
15912    case $configure_input in #(
15913    *\&* | *\|* | *\\* )
15914       ac_sed_conf_input=`$as_echo "$configure_input" |
15915       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15916    *) ac_sed_conf_input=$configure_input;;
15917    esac
15918
15919    case $ac_tag in
15920    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15921      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15922    esac
15923    ;;
15924  esac
15925
15926  ac_dir=`$as_dirname -- "$ac_file" ||
15927$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15928	 X"$ac_file" : 'X\(//\)[^/]' \| \
15929	 X"$ac_file" : 'X\(//\)$' \| \
15930	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15931$as_echo X"$ac_file" |
15932    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15933	    s//\1/
15934	    q
15935	  }
15936	  /^X\(\/\/\)[^/].*/{
15937	    s//\1/
15938	    q
15939	  }
15940	  /^X\(\/\/\)$/{
15941	    s//\1/
15942	    q
15943	  }
15944	  /^X\(\/\).*/{
15945	    s//\1/
15946	    q
15947	  }
15948	  s/.*/./; q'`
15949  as_dir="$ac_dir"; as_fn_mkdir_p
15950  ac_builddir=.
15951
15952case "$ac_dir" in
15953.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15954*)
15955  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15956  # A ".." for each directory in $ac_dir_suffix.
15957  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15958  case $ac_top_builddir_sub in
15959  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15960  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15961  esac ;;
15962esac
15963ac_abs_top_builddir=$ac_pwd
15964ac_abs_builddir=$ac_pwd$ac_dir_suffix
15965# for backward compatibility:
15966ac_top_builddir=$ac_top_build_prefix
15967
15968case $srcdir in
15969  .)  # We are building in place.
15970    ac_srcdir=.
15971    ac_top_srcdir=$ac_top_builddir_sub
15972    ac_abs_top_srcdir=$ac_pwd ;;
15973  [\\/]* | ?:[\\/]* )  # Absolute name.
15974    ac_srcdir=$srcdir$ac_dir_suffix;
15975    ac_top_srcdir=$srcdir
15976    ac_abs_top_srcdir=$srcdir ;;
15977  *) # Relative name.
15978    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15979    ac_top_srcdir=$ac_top_build_prefix$srcdir
15980    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15981esac
15982ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15983
15984
15985  case $ac_mode in
15986  :F)
15987  #
15988  # CONFIG_FILE
15989  #
15990
15991_ACEOF
15992
15993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15994# If the template does not know about datarootdir, expand it.
15995# FIXME: This hack should be removed a few years after 2.60.
15996ac_datarootdir_hack=; ac_datarootdir_seen=
15997ac_sed_dataroot='
15998/datarootdir/ {
15999  p
16000  q
16001}
16002/@datadir@/p
16003/@docdir@/p
16004/@infodir@/p
16005/@localedir@/p
16006/@mandir@/p'
16007case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16008*datarootdir*) ac_datarootdir_seen=yes;;
16009*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16010  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16011$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16012_ACEOF
16013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16014  ac_datarootdir_hack='
16015  s&@datadir@&$datadir&g
16016  s&@docdir@&$docdir&g
16017  s&@infodir@&$infodir&g
16018  s&@localedir@&$localedir&g
16019  s&@mandir@&$mandir&g
16020  s&\\\${datarootdir}&$datarootdir&g' ;;
16021esac
16022_ACEOF
16023
16024# Neutralize VPATH when `$srcdir' = `.'.
16025# Shell code in configure.ac might set extrasub.
16026# FIXME: do we really want to maintain this feature?
16027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16028ac_sed_extra="$ac_vpsub
16029$extrasub
16030_ACEOF
16031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16032:t
16033/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16034s|@configure_input@|$ac_sed_conf_input|;t t
16035s&@top_builddir@&$ac_top_builddir_sub&;t t
16036s&@top_build_prefix@&$ac_top_build_prefix&;t t
16037s&@srcdir@&$ac_srcdir&;t t
16038s&@abs_srcdir@&$ac_abs_srcdir&;t t
16039s&@top_srcdir@&$ac_top_srcdir&;t t
16040s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16041s&@builddir@&$ac_builddir&;t t
16042s&@abs_builddir@&$ac_abs_builddir&;t t
16043s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16044$ac_datarootdir_hack
16045"
16046eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16047  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16048
16049test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16050  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16051  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16052      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16053  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16054which seems to be undefined.  Please make sure it is defined" >&5
16055$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16056which seems to be undefined.  Please make sure it is defined" >&2;}
16057
16058  rm -f "$ac_tmp/stdin"
16059  case $ac_file in
16060  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16061  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16062  esac \
16063  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16064 ;;
16065  :H)
16066  #
16067  # CONFIG_HEADER
16068  #
16069  if test x"$ac_file" != x-; then
16070    {
16071      $as_echo "/* $configure_input  */" \
16072      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16073    } >"$ac_tmp/config.h" \
16074      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16075    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16076      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16077$as_echo "$as_me: $ac_file is unchanged" >&6;}
16078    else
16079      rm -f "$ac_file"
16080      mv "$ac_tmp/config.h" "$ac_file" \
16081	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16082    fi
16083  else
16084    $as_echo "/* $configure_input  */" \
16085      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16086      || as_fn_error $? "could not create -" "$LINENO" 5
16087  fi
16088 ;;
16089
16090
16091  esac
16092
16093done # for ac_tag
16094
16095
16096as_fn_exit 0
16097_ACEOF
16098ac_clean_files=$ac_clean_files_save
16099
16100test $ac_write_fail = 0 ||
16101  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16102
16103
16104# configure is writing to config.log, and then calls config.status.
16105# config.status does its own redirection, appending to config.log.
16106# Unfortunately, on DOS this fails, as config.log is still kept open
16107# by configure, so config.status won't be able to write to it; its
16108# output is simply discarded.  So we exec the FD to /dev/null,
16109# effectively closing config.log, so it can be properly (re)opened and
16110# appended to by config.status.  When coming back to configure, we
16111# need to make the FD available again.
16112if test "$no_create" != yes; then
16113  ac_cs_success=:
16114  ac_config_status_args=
16115  test "$silent" = yes &&
16116    ac_config_status_args="$ac_config_status_args --quiet"
16117  exec 5>/dev/null
16118  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16119  exec 5>>auto/config.log
16120  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16121  # would make configure fail if this is the last instruction.
16122  $ac_cs_success || as_fn_exit 1
16123fi
16124if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16125  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16126$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16127fi
16128
16129
16130