xref: /vim-8.2.3635/src/auto/configure (revision 12ee7ff0)
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_OBJ
660TERM_SRC
661CHANNEL_OBJ
662CHANNEL_SRC
663NETBEANS_OBJ
664NETBEANS_SRC
665RUBY_LIBS
666RUBY_CFLAGS
667RUBY_PRO
668RUBY_OBJ
669RUBY_SRC
670vi_cv_path_ruby
671TCL_LIBS
672TCL_CFLAGS
673TCL_PRO
674TCL_OBJ
675TCL_SRC
676vi_cv_path_tcl
677PYTHON3_OBJ
678PYTHON3_SRC
679PYTHON3_CFLAGS
680PYTHON3_LIBS
681vi_cv_path_python3
682PYTHON_OBJ
683PYTHON_SRC
684PYTHON_CFLAGS
685PYTHON_LIBS
686vi_cv_path_python
687PERL_LIBS
688PERL_CFLAGS
689PERL_PRO
690PERL_OBJ
691PERL_SRC
692shrpenv
693vi_cv_perl_xsubpp
694vi_cv_perllib
695vi_cv_path_perl
696MZSCHEME_MZC
697MZSCHEME_EXTRA
698MZSCHEME_CFLAGS
699MZSCHEME_LIBS
700MZSCHEME_PRO
701MZSCHEME_OBJ
702MZSCHEME_SRC
703vi_cv_path_mzscheme
704LUA_CFLAGS
705LUA_LIBS
706LUA_PRO
707LUA_OBJ
708LUA_SRC
709vi_cv_path_plain_lua
710vi_cv_path_luajit
711vi_cv_path_lua
712compiledby
713dogvimdiff
714dovimdiff
715QUOTESED
716line_break
717VIEWNAME
718EXNAME
719VIMNAME
720OS_EXTRA_OBJ
721OS_EXTRA_SRC
722XCODE_SELECT
723CPP_MM
724CROSS_COMPILING
725STRIP
726AWK
727FGREP
728EGREP
729GREP
730CPP
731OBJEXT
732EXEEXT
733ac_ct_CC
734CPPFLAGS
735LDFLAGS
736CFLAGS
737CC
738SET_MAKE
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758runstatedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
778ac_subst_files=''
779ac_user_opts='
780enable_option_checking
781enable_fail_if_missing
782enable_darwin
783with_mac_arch
784with_developer_dir
785with_local_dir
786with_vim_name
787with_ex_name
788with_view_name
789with_global_runtime
790with_modified_by
791enable_smack
792enable_selinux
793with_features
794with_compiledby
795enable_xsmp
796enable_xsmp_interact
797enable_luainterp
798with_lua_prefix
799with_luajit
800enable_mzschemeinterp
801with_plthome
802enable_perlinterp
803enable_pythoninterp
804with_python_command
805with_python_config_dir
806enable_python3interp
807with_python3_command
808with_python3_config_dir
809enable_tclinterp
810with_tclsh
811enable_rubyinterp
812with_ruby_command
813enable_cscope
814enable_netbeans
815enable_channel
816enable_terminal
817enable_autoservername
818enable_multibyte
819enable_rightleft
820enable_arabic
821enable_farsi
822enable_hangulinput
823enable_xim
824enable_fontset
825with_x
826enable_gui
827enable_gtk2_check
828enable_gnome_check
829enable_gtk3_check
830enable_motif_check
831enable_athena_check
832enable_nextaw_check
833enable_carbon_check
834enable_gtktest
835with_gnome_includes
836with_gnome_libs
837with_gnome
838enable_icon_cache_update
839enable_desktop_database_update
840with_motif_lib
841with_tlib
842enable_largefile
843enable_acl
844enable_gpm
845enable_sysmouse
846enable_nls
847'
848      ac_precious_vars='build_alias
849host_alias
850target_alias
851CC
852CFLAGS
853LDFLAGS
854LIBS
855CPPFLAGS
856CPP
857XMKMF'
858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896runstatedir='${localstatedir}/run'
897includedir='${prefix}/include'
898oldincludedir='/usr/include'
899docdir='${datarootdir}/doc/${PACKAGE}'
900infodir='${datarootdir}/info'
901htmldir='${docdir}'
902dvidir='${docdir}'
903pdfdir='${docdir}'
904psdir='${docdir}'
905libdir='${exec_prefix}/lib'
906localedir='${datarootdir}/locale'
907mandir='${datarootdir}/man'
908
909ac_prev=
910ac_dashdash=
911for ac_option
912do
913  # If the previous option needs an argument, assign it.
914  if test -n "$ac_prev"; then
915    eval $ac_prev=\$ac_option
916    ac_prev=
917    continue
918  fi
919
920  case $ac_option in
921  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922  *=)   ac_optarg= ;;
923  *)    ac_optarg=yes ;;
924  esac
925
926  # Accept the important Cygnus configure options, so we can diagnose typos.
927
928  case $ac_dashdash$ac_option in
929  --)
930    ac_dashdash=yes ;;
931
932  -bindir | --bindir | --bindi | --bind | --bin | --bi)
933    ac_prev=bindir ;;
934  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935    bindir=$ac_optarg ;;
936
937  -build | --build | --buil | --bui | --bu)
938    ac_prev=build_alias ;;
939  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940    build_alias=$ac_optarg ;;
941
942  -cache-file | --cache-file | --cache-fil | --cache-fi \
943  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944    ac_prev=cache_file ;;
945  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947    cache_file=$ac_optarg ;;
948
949  --config-cache | -C)
950    cache_file=config.cache ;;
951
952  -datadir | --datadir | --datadi | --datad)
953    ac_prev=datadir ;;
954  -datadir=* | --datadir=* | --datadi=* | --datad=*)
955    datadir=$ac_optarg ;;
956
957  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958  | --dataroo | --dataro | --datar)
959    ac_prev=datarootdir ;;
960  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962    datarootdir=$ac_optarg ;;
963
964  -disable-* | --disable-*)
965    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966    # Reject names that are not valid shell variable names.
967    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968      as_fn_error $? "invalid feature name: $ac_useropt"
969    ac_useropt_orig=$ac_useropt
970    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971    case $ac_user_opts in
972      *"
973"enable_$ac_useropt"
974"*) ;;
975      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976	 ac_unrecognized_sep=', ';;
977    esac
978    eval enable_$ac_useropt=no ;;
979
980  -docdir | --docdir | --docdi | --doc | --do)
981    ac_prev=docdir ;;
982  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983    docdir=$ac_optarg ;;
984
985  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986    ac_prev=dvidir ;;
987  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988    dvidir=$ac_optarg ;;
989
990  -enable-* | --enable-*)
991    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992    # Reject names that are not valid shell variable names.
993    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994      as_fn_error $? "invalid feature name: $ac_useropt"
995    ac_useropt_orig=$ac_useropt
996    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997    case $ac_user_opts in
998      *"
999"enable_$ac_useropt"
1000"*) ;;
1001      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002	 ac_unrecognized_sep=', ';;
1003    esac
1004    eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008  | --exec | --exe | --ex)
1009    ac_prev=exec_prefix ;;
1010  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012  | --exec=* | --exe=* | --ex=*)
1013    exec_prefix=$ac_optarg ;;
1014
1015  -gas | --gas | --ga | --g)
1016    # Obsolete; use --with-gas.
1017    with_gas=yes ;;
1018
1019  -help | --help | --hel | --he | -h)
1020    ac_init_help=long ;;
1021  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022    ac_init_help=recursive ;;
1023  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024    ac_init_help=short ;;
1025
1026  -host | --host | --hos | --ho)
1027    ac_prev=host_alias ;;
1028  -host=* | --host=* | --hos=* | --ho=*)
1029    host_alias=$ac_optarg ;;
1030
1031  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032    ac_prev=htmldir ;;
1033  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034  | --ht=*)
1035    htmldir=$ac_optarg ;;
1036
1037  -includedir | --includedir | --includedi | --included | --include \
1038  | --includ | --inclu | --incl | --inc)
1039    ac_prev=includedir ;;
1040  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041  | --includ=* | --inclu=* | --incl=* | --inc=*)
1042    includedir=$ac_optarg ;;
1043
1044  -infodir | --infodir | --infodi | --infod | --info | --inf)
1045    ac_prev=infodir ;;
1046  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047    infodir=$ac_optarg ;;
1048
1049  -libdir | --libdir | --libdi | --libd)
1050    ac_prev=libdir ;;
1051  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052    libdir=$ac_optarg ;;
1053
1054  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055  | --libexe | --libex | --libe)
1056    ac_prev=libexecdir ;;
1057  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058  | --libexe=* | --libex=* | --libe=*)
1059    libexecdir=$ac_optarg ;;
1060
1061  -localedir | --localedir | --localedi | --localed | --locale)
1062    ac_prev=localedir ;;
1063  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064    localedir=$ac_optarg ;;
1065
1066  -localstatedir | --localstatedir | --localstatedi | --localstated \
1067  | --localstate | --localstat | --localsta | --localst | --locals)
1068    ac_prev=localstatedir ;;
1069  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071    localstatedir=$ac_optarg ;;
1072
1073  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074    ac_prev=mandir ;;
1075  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076    mandir=$ac_optarg ;;
1077
1078  -nfp | --nfp | --nf)
1079    # Obsolete; use --without-fp.
1080    with_fp=no ;;
1081
1082  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083  | --no-cr | --no-c | -n)
1084    no_create=yes ;;
1085
1086  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088    no_recursion=yes ;;
1089
1090  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092  | --oldin | --oldi | --old | --ol | --o)
1093    ac_prev=oldincludedir ;;
1094  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097    oldincludedir=$ac_optarg ;;
1098
1099  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100    ac_prev=prefix ;;
1101  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102    prefix=$ac_optarg ;;
1103
1104  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105  | --program-pre | --program-pr | --program-p)
1106    ac_prev=program_prefix ;;
1107  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109    program_prefix=$ac_optarg ;;
1110
1111  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112  | --program-suf | --program-su | --program-s)
1113    ac_prev=program_suffix ;;
1114  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116    program_suffix=$ac_optarg ;;
1117
1118  -program-transform-name | --program-transform-name \
1119  | --program-transform-nam | --program-transform-na \
1120  | --program-transform-n | --program-transform- \
1121  | --program-transform | --program-transfor \
1122  | --program-transfo | --program-transf \
1123  | --program-trans | --program-tran \
1124  | --progr-tra | --program-tr | --program-t)
1125    ac_prev=program_transform_name ;;
1126  -program-transform-name=* | --program-transform-name=* \
1127  | --program-transform-nam=* | --program-transform-na=* \
1128  | --program-transform-n=* | --program-transform-=* \
1129  | --program-transform=* | --program-transfor=* \
1130  | --program-transfo=* | --program-transf=* \
1131  | --program-trans=* | --program-tran=* \
1132  | --progr-tra=* | --program-tr=* | --program-t=*)
1133    program_transform_name=$ac_optarg ;;
1134
1135  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136    ac_prev=pdfdir ;;
1137  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138    pdfdir=$ac_optarg ;;
1139
1140  -psdir | --psdir | --psdi | --psd | --ps)
1141    ac_prev=psdir ;;
1142  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143    psdir=$ac_optarg ;;
1144
1145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146  | -silent | --silent | --silen | --sile | --sil)
1147    silent=yes ;;
1148
1149  -runstatedir | --runstatedir | --runstatedi | --runstated \
1150  | --runstate | --runstat | --runsta | --runst | --runs \
1151  | --run | --ru | --r)
1152    ac_prev=runstatedir ;;
1153  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1154  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1155  | --run=* | --ru=* | --r=*)
1156    runstatedir=$ac_optarg ;;
1157
1158  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159    ac_prev=sbindir ;;
1160  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161  | --sbi=* | --sb=*)
1162    sbindir=$ac_optarg ;;
1163
1164  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166  | --sharedst | --shareds | --shared | --share | --shar \
1167  | --sha | --sh)
1168    ac_prev=sharedstatedir ;;
1169  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172  | --sha=* | --sh=*)
1173    sharedstatedir=$ac_optarg ;;
1174
1175  -site | --site | --sit)
1176    ac_prev=site ;;
1177  -site=* | --site=* | --sit=*)
1178    site=$ac_optarg ;;
1179
1180  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181    ac_prev=srcdir ;;
1182  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183    srcdir=$ac_optarg ;;
1184
1185  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186  | --syscon | --sysco | --sysc | --sys | --sy)
1187    ac_prev=sysconfdir ;;
1188  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190    sysconfdir=$ac_optarg ;;
1191
1192  -target | --target | --targe | --targ | --tar | --ta | --t)
1193    ac_prev=target_alias ;;
1194  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195    target_alias=$ac_optarg ;;
1196
1197  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198    verbose=yes ;;
1199
1200  -version | --version | --versio | --versi | --vers | -V)
1201    ac_init_version=: ;;
1202
1203  -with-* | --with-*)
1204    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207      as_fn_error $? "invalid package name: $ac_useropt"
1208    ac_useropt_orig=$ac_useropt
1209    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210    case $ac_user_opts in
1211      *"
1212"with_$ac_useropt"
1213"*) ;;
1214      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215	 ac_unrecognized_sep=', ';;
1216    esac
1217    eval with_$ac_useropt=\$ac_optarg ;;
1218
1219  -without-* | --without-*)
1220    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221    # Reject names that are not valid shell variable names.
1222    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223      as_fn_error $? "invalid package name: $ac_useropt"
1224    ac_useropt_orig=$ac_useropt
1225    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226    case $ac_user_opts in
1227      *"
1228"with_$ac_useropt"
1229"*) ;;
1230      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231	 ac_unrecognized_sep=', ';;
1232    esac
1233    eval with_$ac_useropt=no ;;
1234
1235  --x)
1236    # Obsolete; use --with-x.
1237    with_x=yes ;;
1238
1239  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240  | --x-incl | --x-inc | --x-in | --x-i)
1241    ac_prev=x_includes ;;
1242  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244    x_includes=$ac_optarg ;;
1245
1246  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248    ac_prev=x_libraries ;;
1249  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251    x_libraries=$ac_optarg ;;
1252
1253  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254Try \`$0 --help' for more information"
1255    ;;
1256
1257  *=*)
1258    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259    # Reject names that are not valid shell variable names.
1260    case $ac_envvar in #(
1261      '' | [0-9]* | *[!_$as_cr_alnum]* )
1262      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263    esac
1264    eval $ac_envvar=\$ac_optarg
1265    export $ac_envvar ;;
1266
1267  *)
1268    # FIXME: should be removed in autoconf 3.0.
1269    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273    ;;
1274
1275  esac
1276done
1277
1278if test -n "$ac_prev"; then
1279  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280  as_fn_error $? "missing argument to $ac_option"
1281fi
1282
1283if test -n "$ac_unrecognized_opts"; then
1284  case $enable_option_checking in
1285    no) ;;
1286    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288  esac
1289fi
1290
1291# Check all directory arguments for consistency.
1292for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293		datadir sysconfdir sharedstatedir localstatedir includedir \
1294		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295		libdir localedir mandir runstatedir
1296do
1297  eval ac_val=\$$ac_var
1298  # Remove trailing slashes.
1299  case $ac_val in
1300    */ )
1301      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302      eval $ac_var=\$ac_val;;
1303  esac
1304  # Be sure to have absolute directory names.
1305  case $ac_val in
1306    [\\/$]* | ?:[\\/]* )  continue;;
1307    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308  esac
1309  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310done
1311
1312# There might be people who depend on the old broken behavior: `$host'
1313# used to hold the argument of --host etc.
1314# FIXME: To remove some day.
1315build=$build_alias
1316host=$host_alias
1317target=$target_alias
1318
1319# FIXME: To remove some day.
1320if test "x$host_alias" != x; then
1321  if test "x$build_alias" = x; then
1322    cross_compiling=maybe
1323  elif test "x$build_alias" != "x$host_alias"; then
1324    cross_compiling=yes
1325  fi
1326fi
1327
1328ac_tool_prefix=
1329test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331test "$silent" = yes && exec 6>/dev/null
1332
1333
1334ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335ac_ls_di=`ls -di .` &&
1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337  as_fn_error $? "working directory cannot be determined"
1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339  as_fn_error $? "pwd does not report name of working directory"
1340
1341
1342# Find the source files, if location was not specified.
1343if test -z "$srcdir"; then
1344  ac_srcdir_defaulted=yes
1345  # Try the directory containing this script, then the parent directory.
1346  ac_confdir=`$as_dirname -- "$as_myself" ||
1347$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348	 X"$as_myself" : 'X\(//\)[^/]' \| \
1349	 X"$as_myself" : 'X\(//\)$' \| \
1350	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351$as_echo X"$as_myself" |
1352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\/\)[^/].*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\/\)$/{
1361	    s//\1/
1362	    q
1363	  }
1364	  /^X\(\/\).*/{
1365	    s//\1/
1366	    q
1367	  }
1368	  s/.*/./; q'`
1369  srcdir=$ac_confdir
1370  if test ! -r "$srcdir/$ac_unique_file"; then
1371    srcdir=..
1372  fi
1373else
1374  ac_srcdir_defaulted=no
1375fi
1376if test ! -r "$srcdir/$ac_unique_file"; then
1377  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379fi
1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381ac_abs_confdir=`(
1382	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383	pwd)`
1384# When building in place, set srcdir=.
1385if test "$ac_abs_confdir" = "$ac_pwd"; then
1386  srcdir=.
1387fi
1388# Remove unnecessary trailing slashes from srcdir.
1389# Double slashes in file names in object file debugging info
1390# mess up M-x gdb in Emacs.
1391case $srcdir in
1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393esac
1394for ac_var in $ac_precious_vars; do
1395  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_env_${ac_var}_value=\$${ac_var}
1397  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399done
1400
1401#
1402# Report the --help message.
1403#
1404if test "$ac_init_help" = "long"; then
1405  # Omit some internal or obsolete options to make the list less imposing.
1406  # This message is too long to be a string in the A/UX 3.1 sh.
1407  cat <<_ACEOF
1408\`configure' configures this package to adapt to many kinds of systems.
1409
1410Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415Defaults for the options are specified in brackets.
1416
1417Configuration:
1418  -h, --help              display this help and exit
1419      --help=short        display options specific to this package
1420      --help=recursive    display the short help of all the included packages
1421  -V, --version           display version information and exit
1422  -q, --quiet, --silent   do not print \`checking ...' messages
1423      --cache-file=FILE   cache test results in FILE [disabled]
1424  -C, --config-cache      alias for \`--cache-file=config.cache'
1425  -n, --no-create         do not create output files
1426      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428Installation directories:
1429  --prefix=PREFIX         install architecture-independent files in PREFIX
1430                          [$ac_default_prefix]
1431  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                          [PREFIX]
1433
1434By default, \`make install' will install all the files in
1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437for instance \`--prefix=\$HOME'.
1438
1439For better control, use the options below.
1440
1441Fine tuning of the installation directories:
1442  --bindir=DIR            user executables [EPREFIX/bin]
1443  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1444  --libexecdir=DIR        program executables [EPREFIX/libexec]
1445  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1446  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1447  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1448  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1449  --libdir=DIR            object code libraries [EPREFIX/lib]
1450  --includedir=DIR        C header files [PREFIX/include]
1451  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1452  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1453  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1454  --infodir=DIR           info documentation [DATAROOTDIR/info]
1455  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1456  --mandir=DIR            man documentation [DATAROOTDIR/man]
1457  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1458  --htmldir=DIR           html documentation [DOCDIR]
1459  --dvidir=DIR            dvi documentation [DOCDIR]
1460  --pdfdir=DIR            pdf documentation [DOCDIR]
1461  --psdir=DIR             ps documentation [DOCDIR]
1462_ACEOF
1463
1464  cat <<\_ACEOF
1465
1466X features:
1467  --x-includes=DIR    X include files are in DIR
1468  --x-libraries=DIR   X library files are in DIR
1469_ACEOF
1470fi
1471
1472if test -n "$ac_init_help"; then
1473
1474  cat <<\_ACEOF
1475
1476Optional Features:
1477  --disable-option-checking  ignore unrecognized --enable/--with options
1478  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480  --enable-fail-if-missing    Fail if dependencies on additional features
1481     specified on the command line are missing.
1482  --disable-darwin        Disable Darwin (Mac OS X) support.
1483  --disable-smack	  Do not check for Smack support.
1484  --disable-selinux	  Do not check for SELinux support.
1485  --disable-xsmp          Disable XSMP session management
1486  --disable-xsmp-interact Disable XSMP interaction
1487  --enable-luainterp=OPTS      Include Lua interpreter.  default=no OPTS=no/yes/dynamic
1488  --enable-mzschemeinterp      Include MzScheme interpreter.
1489  --enable-perlinterp=OPTS     Include Perl interpreter.  default=no OPTS=no/yes/dynamic
1490  --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
1491  --enable-python3interp=OPTS  Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1492  --enable-tclinterp=OPTS      Include Tcl interpreter. default=no OPTS=no/yes/dynamic
1493  --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
1494  --enable-cscope         Include cscope interface.
1495  --disable-netbeans      Disable NetBeans integration support.
1496  --disable-channel       Disable process communication support.
1497  --enable-terminal       Enable terminal emulation support.
1498  --enable-autoservername Automatically define servername at vim startup.
1499  --enable-multibyte      Include multibyte editing support.
1500  --disable-rightleft     Do not include Right-to-Left language support.
1501  --disable-arabic        Do not include Arabic language support.
1502  --disable-farsi         Deprecated.
1503  --enable-hangulinput    Include Hangul input support.
1504  --enable-xim            Include XIM input support.
1505  --enable-fontset        Include X fontset output support.
1506  --enable-gui=OPTS       X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon
1507  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1508  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1509  --enable-gtk3-check     If auto-select GUI, check for GTK+ 3 default=yes
1510  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1511  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1512  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1513  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1514  --disable-gtktest       Do not try to compile and run a test GTK program
1515  --disable-icon-cache-update        update disabled
1516  --disable-desktop-database-update  update disabled
1517  --disable-largefile     omit support for large files
1518  --disable-acl           No check for ACL support.
1519  --disable-gpm           Don't use gpm (Linux mouse daemon).
1520  --disable-sysmouse      Don't use sysmouse (mouse in *BSD console).
1521  --disable-nls           Don't support NLS (gettext()).
1522
1523Optional Packages:
1524  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1525  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1526  --with-mac-arch=ARCH    current, intel, ppc or both
1527  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1528  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1529  --without-local-dir     do not search /usr/local for local libraries.
1530  --with-vim-name=NAME    what to call the Vim executable
1531  --with-ex-name=NAME     what to call the Ex executable
1532  --with-view-name=NAME   what to call the View executable
1533  --with-global-runtime=DIR    global runtime directory in 'runtimepath', comma-separated for multiple directories
1534  --with-modified-by=NAME       name of who modified a release version
1535  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)
1536  --with-compiledby=NAME  name to show in :version message
1537  --with-lua-prefix=PFX   Prefix where Lua is installed.
1538  --with-luajit           Link with LuaJIT instead of Lua.
1539  --with-plthome=PLTHOME   Use PLTHOME.
1540  --with-python-command=NAME  name of the Python 2 command (default: python2 or python)
1541  --with-python-config-dir=PATH  Python's config directory (deprecated)
1542  --with-python3-command=NAME  name of the Python 3 command (default: python3 or python)
1543  --with-python3-config-dir=PATH  Python's config directory (deprecated)
1544  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1545  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1546  --with-x                use the X Window System
1547  --with-gnome-includes=DIR Specify location of GNOME headers
1548  --with-gnome-libs=DIR   Specify location of GNOME libs
1549  --with-gnome            Specify prefix for GNOME files
1550  --with-motif-lib=STRING Library for Motif
1551  --with-tlib=library     terminal library to be used
1552
1553Some influential environment variables:
1554  CC          C compiler command
1555  CFLAGS      C compiler flags
1556  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1557              nonstandard directory <lib dir>
1558  LIBS        libraries to pass to the linker, e.g. -l<library>
1559  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560              you have headers in a nonstandard directory <include dir>
1561  CPP         C preprocessor
1562  XMKMF       Path to xmkmf, Makefile generator for X Window System
1563
1564Use these variables to override the choices made by `configure' or to help
1565it to find libraries and programs with nonstandard names/locations.
1566
1567Report bugs to the package provider.
1568_ACEOF
1569ac_status=$?
1570fi
1571
1572if test "$ac_init_help" = "recursive"; then
1573  # If there are subdirs, report their specific --help.
1574  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575    test -d "$ac_dir" ||
1576      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577      continue
1578    ac_builddir=.
1579
1580case "$ac_dir" in
1581.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582*)
1583  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584  # A ".." for each directory in $ac_dir_suffix.
1585  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586  case $ac_top_builddir_sub in
1587  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589  esac ;;
1590esac
1591ac_abs_top_builddir=$ac_pwd
1592ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593# for backward compatibility:
1594ac_top_builddir=$ac_top_build_prefix
1595
1596case $srcdir in
1597  .)  # We are building in place.
1598    ac_srcdir=.
1599    ac_top_srcdir=$ac_top_builddir_sub
1600    ac_abs_top_srcdir=$ac_pwd ;;
1601  [\\/]* | ?:[\\/]* )  # Absolute name.
1602    ac_srcdir=$srcdir$ac_dir_suffix;
1603    ac_top_srcdir=$srcdir
1604    ac_abs_top_srcdir=$srcdir ;;
1605  *) # Relative name.
1606    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607    ac_top_srcdir=$ac_top_build_prefix$srcdir
1608    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609esac
1610ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612    cd "$ac_dir" || { ac_status=$?; continue; }
1613    # Check for guested configure.
1614    if test -f "$ac_srcdir/configure.gnu"; then
1615      echo &&
1616      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617    elif test -f "$ac_srcdir/configure"; then
1618      echo &&
1619      $SHELL "$ac_srcdir/configure" --help=recursive
1620    else
1621      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622    fi || ac_status=$?
1623    cd "$ac_pwd" || { ac_status=$?; break; }
1624  done
1625fi
1626
1627test -n "$ac_init_help" && exit $ac_status
1628if $ac_init_version; then
1629  cat <<\_ACEOF
1630configure
1631generated by GNU Autoconf 2.69
1632
1633Copyright (C) 2012 Free Software Foundation, Inc.
1634This configure script is free software; the Free Software Foundation
1635gives unlimited permission to copy, distribute and modify it.
1636_ACEOF
1637  exit
1638fi
1639
1640## ------------------------ ##
1641## Autoconf initialization. ##
1642## ------------------------ ##
1643
1644# ac_fn_c_try_compile LINENO
1645# --------------------------
1646# Try to compile conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_compile ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  rm -f conftest.$ac_objext
1651  if { { ac_try="$ac_compile"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_compile") 2>conftest.err
1659  ac_status=$?
1660  if test -s conftest.err; then
1661    grep -v '^ *+' conftest.err >conftest.er1
1662    cat conftest.er1 >&5
1663    mv -f conftest.er1 conftest.err
1664  fi
1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } && {
1667	 test -z "$ac_c_werror_flag" ||
1668	 test ! -s conftest.err
1669       } && test -s conftest.$ac_objext; then :
1670  ac_retval=0
1671else
1672  $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675	ac_retval=1
1676fi
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678  as_fn_set_status $ac_retval
1679
1680} # ac_fn_c_try_compile
1681
1682# ac_fn_c_try_cpp LINENO
1683# ----------------------
1684# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_cpp ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if { { ac_try="$ac_cpp conftest.$ac_ext"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696  ac_status=$?
1697  if test -s conftest.err; then
1698    grep -v '^ *+' conftest.err >conftest.er1
1699    cat conftest.er1 >&5
1700    mv -f conftest.er1 conftest.err
1701  fi
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } > conftest.i && {
1704	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705	 test ! -s conftest.err
1706       }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712    ac_retval=1
1713fi
1714  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715  as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_cpp
1718
1719# ac_fn_c_try_link LINENO
1720# -----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_c_try_link ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  rm -f conftest.$ac_objext conftest$ac_exeext
1726  if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_link") 2>conftest.err
1734  ac_status=$?
1735  if test -s conftest.err; then
1736    grep -v '^ *+' conftest.err >conftest.er1
1737    cat conftest.er1 >&5
1738    mv -f conftest.er1 conftest.err
1739  fi
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; } && {
1742	 test -z "$ac_c_werror_flag" ||
1743	 test ! -s conftest.err
1744       } && test -s conftest$ac_exeext && {
1745	 test "$cross_compiling" = yes ||
1746	 test -x conftest$ac_exeext
1747       }; then :
1748  ac_retval=0
1749else
1750  $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753	ac_retval=1
1754fi
1755  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757  # interfere with the next link command; also delete a directory that is
1758  # left behind by Apple's compiler.  We do this before executing the actions.
1759  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761  as_fn_set_status $ac_retval
1762
1763} # ac_fn_c_try_link
1764
1765# ac_fn_c_try_run LINENO
1766# ----------------------
1767# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768# that executables *can* be run.
1769ac_fn_c_try_run ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  if { { ac_try="$ac_link"
1773case "(($ac_try" in
1774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775  *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779  (eval "$ac_link") 2>&5
1780  ac_status=$?
1781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783  { { case "(($ac_try" in
1784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785  *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789  (eval "$ac_try") 2>&5
1790  ac_status=$?
1791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792  test $ac_status = 0; }; }; then :
1793  ac_retval=0
1794else
1795  $as_echo "$as_me: program exited with status $ac_status" >&5
1796       $as_echo "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799       ac_retval=$ac_status
1800fi
1801  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803  as_fn_set_status $ac_retval
1804
1805} # ac_fn_c_try_run
1806
1807# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1808# -------------------------------------------------------
1809# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1810# the include files in INCLUDES and setting the cache variable VAR
1811# accordingly.
1812ac_fn_c_check_header_mongrel ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  if eval \${$3+:} false; then :
1816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817$as_echo_n "checking for $2... " >&6; }
1818if eval \${$3+:} false; then :
1819  $as_echo_n "(cached) " >&6
1820fi
1821eval ac_res=\$$3
1822	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823$as_echo "$ac_res" >&6; }
1824else
1825  # Is the header compilable?
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1827$as_echo_n "checking $2 usability... " >&6; }
1828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h.  */
1830$4
1831#include <$2>
1832_ACEOF
1833if ac_fn_c_try_compile "$LINENO"; then :
1834  ac_header_compiler=yes
1835else
1836  ac_header_compiler=no
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1840$as_echo "$ac_header_compiler" >&6; }
1841
1842# Is the header present?
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1844$as_echo_n "checking $2 presence... " >&6; }
1845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h.  */
1847#include <$2>
1848_ACEOF
1849if ac_fn_c_try_cpp "$LINENO"; then :
1850  ac_header_preproc=yes
1851else
1852  ac_header_preproc=no
1853fi
1854rm -f conftest.err conftest.i conftest.$ac_ext
1855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1856$as_echo "$ac_header_preproc" >&6; }
1857
1858# So?  What about this header?
1859case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1860  yes:no: )
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1862$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865    ;;
1866  no:yes:* )
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1868$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1870$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1872$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1873    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1874$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1875    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877    ;;
1878esac
1879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
1881if eval \${$3+:} false; then :
1882  $as_echo_n "(cached) " >&6
1883else
1884  eval "$3=\$ac_header_compiler"
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889fi
1890  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892} # ac_fn_c_check_header_mongrel
1893
1894# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1895# -------------------------------------------------------
1896# Tests whether HEADER exists and can be compiled using the include files in
1897# INCLUDES, setting the cache variable VAR accordingly.
1898ac_fn_c_check_header_compile ()
1899{
1900  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902$as_echo_n "checking for $2... " >&6; }
1903if eval \${$3+:} false; then :
1904  $as_echo_n "(cached) " >&6
1905else
1906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h.  */
1908$4
1909#include <$2>
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912  eval "$3=yes"
1913else
1914  eval "$3=no"
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917fi
1918eval ac_res=\$$3
1919	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920$as_echo "$ac_res" >&6; }
1921  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923} # ac_fn_c_check_header_compile
1924
1925# ac_fn_c_check_func LINENO FUNC VAR
1926# ----------------------------------
1927# Tests whether FUNC exists, setting the cache variable VAR accordingly
1928ac_fn_c_check_func ()
1929{
1930  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932$as_echo_n "checking for $2... " >&6; }
1933if eval \${$3+:} false; then :
1934  $as_echo_n "(cached) " >&6
1935else
1936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h.  */
1938/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1939   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1940#define $2 innocuous_$2
1941
1942/* System header to define __stub macros and hopefully few prototypes,
1943    which can conflict with char $2 (); below.
1944    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1945    <limits.h> exists even on freestanding compilers.  */
1946
1947#ifdef __STDC__
1948# include <limits.h>
1949#else
1950# include <assert.h>
1951#endif
1952
1953#undef $2
1954
1955/* Override any GCC internal prototype to avoid an error.
1956   Use char because int might match the return type of a GCC
1957   builtin and then its argument prototype would still apply.  */
1958#ifdef __cplusplus
1959extern "C"
1960#endif
1961char $2 ();
1962/* The GNU C library defines this for functions which it implements
1963    to always fail with ENOSYS.  Some functions are actually named
1964    something starting with __ and the normal name is an alias.  */
1965#if defined __stub_$2 || defined __stub___$2
1966choke me
1967#endif
1968
1969int
1970main ()
1971{
1972return $2 ();
1973  ;
1974  return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_link "$LINENO"; then :
1978  eval "$3=yes"
1979else
1980  eval "$3=no"
1981fi
1982rm -f core conftest.err conftest.$ac_objext \
1983    conftest$ac_exeext conftest.$ac_ext
1984fi
1985eval ac_res=\$$3
1986	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
1988  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990} # ac_fn_c_check_func
1991
1992# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1993# -------------------------------------------
1994# Tests whether TYPE exists after having included INCLUDES, setting cache
1995# variable VAR accordingly.
1996ac_fn_c_check_type ()
1997{
1998  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000$as_echo_n "checking for $2... " >&6; }
2001if eval \${$3+:} false; then :
2002  $as_echo_n "(cached) " >&6
2003else
2004  eval "$3=no"
2005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h.  */
2007$4
2008int
2009main ()
2010{
2011if (sizeof ($2))
2012	 return 0;
2013  ;
2014  return 0;
2015}
2016_ACEOF
2017if ac_fn_c_try_compile "$LINENO"; then :
2018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h.  */
2020$4
2021int
2022main ()
2023{
2024if (sizeof (($2)))
2025	    return 0;
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031
2032else
2033  eval "$3=yes"
2034fi
2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036fi
2037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038fi
2039eval ac_res=\$$3
2040	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041$as_echo "$ac_res" >&6; }
2042  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043
2044} # ac_fn_c_check_type
2045
2046# ac_fn_c_find_uintX_t LINENO BITS VAR
2047# ------------------------------------
2048# Finds an unsigned integer type with width BITS, setting cache variable VAR
2049# accordingly.
2050ac_fn_c_find_uintX_t ()
2051{
2052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2054$as_echo_n "checking for uint$2_t... " >&6; }
2055if eval \${$3+:} false; then :
2056  $as_echo_n "(cached) " >&6
2057else
2058  eval "$3=no"
2059     # Order is important - never check a type that is potentially smaller
2060     # than half of the expected target width.
2061     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2062	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2063       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h.  */
2065$ac_includes_default
2066int
2067main ()
2068{
2069static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2070test_array [0] = 0;
2071return test_array [0];
2072
2073  ;
2074  return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078  case $ac_type in #(
2079  uint$2_t) :
2080    eval "$3=yes" ;; #(
2081  *) :
2082    eval "$3=\$ac_type" ;;
2083esac
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086       if eval test \"x\$"$3"\" = x"no"; then :
2087
2088else
2089  break
2090fi
2091     done
2092fi
2093eval ac_res=\$$3
2094	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095$as_echo "$ac_res" >&6; }
2096  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098} # ac_fn_c_find_uintX_t
2099
2100# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2101# --------------------------------------------
2102# Tries to find the compile-time value of EXPR in a program that includes
2103# INCLUDES, setting VAR accordingly. Returns whether the value could be
2104# computed
2105ac_fn_c_compute_int ()
2106{
2107  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108  if test "$cross_compiling" = yes; then
2109    # Depending upon the size, compute the lo and hi bounds.
2110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h.  */
2112$4
2113int
2114main ()
2115{
2116static int test_array [1 - 2 * !(($2) >= 0)];
2117test_array [0] = 0;
2118return test_array [0];
2119
2120  ;
2121  return 0;
2122}
2123_ACEOF
2124if ac_fn_c_try_compile "$LINENO"; then :
2125  ac_lo=0 ac_mid=0
2126  while :; do
2127    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h.  */
2129$4
2130int
2131main ()
2132{
2133static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2134test_array [0] = 0;
2135return test_array [0];
2136
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142  ac_hi=$ac_mid; break
2143else
2144  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2145			if test $ac_lo -le $ac_mid; then
2146			  ac_lo= ac_hi=
2147			  break
2148			fi
2149			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152  done
2153else
2154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h.  */
2156$4
2157int
2158main ()
2159{
2160static int test_array [1 - 2 * !(($2) < 0)];
2161test_array [0] = 0;
2162return test_array [0];
2163
2164  ;
2165  return 0;
2166}
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169  ac_hi=-1 ac_mid=-1
2170  while :; do
2171    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h.  */
2173$4
2174int
2175main ()
2176{
2177static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2178test_array [0] = 0;
2179return test_array [0];
2180
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186  ac_lo=$ac_mid; break
2187else
2188  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2189			if test $ac_mid -le $ac_hi; then
2190			  ac_lo= ac_hi=
2191			  break
2192			fi
2193			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2194fi
2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196  done
2197else
2198  ac_lo= ac_hi=
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203# Binary search between lo and hi bounds.
2204while test "x$ac_lo" != "x$ac_hi"; do
2205  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207/* end confdefs.h.  */
2208$4
2209int
2210main ()
2211{
2212static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2213test_array [0] = 0;
2214return test_array [0];
2215
2216  ;
2217  return 0;
2218}
2219_ACEOF
2220if ac_fn_c_try_compile "$LINENO"; then :
2221  ac_hi=$ac_mid
2222else
2223  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2224fi
2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226done
2227case $ac_lo in #((
2228?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2229'') ac_retval=1 ;;
2230esac
2231  else
2232    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h.  */
2234$4
2235static long int longval () { return $2; }
2236static unsigned long int ulongval () { return $2; }
2237#include <stdio.h>
2238#include <stdlib.h>
2239int
2240main ()
2241{
2242
2243  FILE *f = fopen ("conftest.val", "w");
2244  if (! f)
2245    return 1;
2246  if (($2) < 0)
2247    {
2248      long int i = longval ();
2249      if (i != ($2))
2250	return 1;
2251      fprintf (f, "%ld", i);
2252    }
2253  else
2254    {
2255      unsigned long int i = ulongval ();
2256      if (i != ($2))
2257	return 1;
2258      fprintf (f, "%lu", i);
2259    }
2260  /* Do not output a trailing newline, as this causes \r\n confusion
2261     on some platforms.  */
2262  return ferror (f) || fclose (f) != 0;
2263
2264  ;
2265  return 0;
2266}
2267_ACEOF
2268if ac_fn_c_try_run "$LINENO"; then :
2269  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2270else
2271  ac_retval=1
2272fi
2273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2274  conftest.$ac_objext conftest.beam conftest.$ac_ext
2275rm -f conftest.val
2276
2277  fi
2278  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279  as_fn_set_status $ac_retval
2280
2281} # ac_fn_c_compute_int
2282cat >auto/config.log <<_ACEOF
2283This file contains any messages produced by compilers while
2284running configure, to aid debugging if configure makes a mistake.
2285
2286It was created by $as_me, which was
2287generated by GNU Autoconf 2.69.  Invocation command line was
2288
2289  $ $0 $@
2290
2291_ACEOF
2292exec 5>>auto/config.log
2293{
2294cat <<_ASUNAME
2295## --------- ##
2296## Platform. ##
2297## --------- ##
2298
2299hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2300uname -m = `(uname -m) 2>/dev/null || echo unknown`
2301uname -r = `(uname -r) 2>/dev/null || echo unknown`
2302uname -s = `(uname -s) 2>/dev/null || echo unknown`
2303uname -v = `(uname -v) 2>/dev/null || echo unknown`
2304
2305/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2306/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2307
2308/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2309/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2310/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2311/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2312/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2313/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2314/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2315
2316_ASUNAME
2317
2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319for as_dir in $PATH
2320do
2321  IFS=$as_save_IFS
2322  test -z "$as_dir" && as_dir=.
2323    $as_echo "PATH: $as_dir"
2324  done
2325IFS=$as_save_IFS
2326
2327} >&5
2328
2329cat >&5 <<_ACEOF
2330
2331
2332## ----------- ##
2333## Core tests. ##
2334## ----------- ##
2335
2336_ACEOF
2337
2338
2339# Keep a trace of the command line.
2340# Strip out --no-create and --no-recursion so they do not pile up.
2341# Strip out --silent because we don't want to record it for future runs.
2342# Also quote any args containing shell meta-characters.
2343# Make two passes to allow for proper duplicate-argument suppression.
2344ac_configure_args=
2345ac_configure_args0=
2346ac_configure_args1=
2347ac_must_keep_next=false
2348for ac_pass in 1 2
2349do
2350  for ac_arg
2351  do
2352    case $ac_arg in
2353    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2354    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2355    | -silent | --silent | --silen | --sile | --sil)
2356      continue ;;
2357    *\'*)
2358      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2359    esac
2360    case $ac_pass in
2361    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2362    2)
2363      as_fn_append ac_configure_args1 " '$ac_arg'"
2364      if test $ac_must_keep_next = true; then
2365	ac_must_keep_next=false # Got value, back to normal.
2366      else
2367	case $ac_arg in
2368	  *=* | --config-cache | -C | -disable-* | --disable-* \
2369	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2370	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2371	  | -with-* | --with-* | -without-* | --without-* | --x)
2372	    case "$ac_configure_args0 " in
2373	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2374	    esac
2375	    ;;
2376	  -* ) ac_must_keep_next=true ;;
2377	esac
2378      fi
2379      as_fn_append ac_configure_args " '$ac_arg'"
2380      ;;
2381    esac
2382  done
2383done
2384{ ac_configure_args0=; unset ac_configure_args0;}
2385{ ac_configure_args1=; unset ac_configure_args1;}
2386
2387# When interrupted or exit'd, cleanup temporary files, and complete
2388# config.log.  We remove comments because anyway the quotes in there
2389# would cause problems or look ugly.
2390# WARNING: Use '\'' to represent an apostrophe within the trap.
2391# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2392trap 'exit_status=$?
2393  # Save into config.log some information that might help in debugging.
2394  {
2395    echo
2396
2397    $as_echo "## ---------------- ##
2398## Cache variables. ##
2399## ---------------- ##"
2400    echo
2401    # The following way of writing the cache mishandles newlines in values,
2402(
2403  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404    eval ac_val=\$$ac_var
2405    case $ac_val in #(
2406    *${as_nl}*)
2407      case $ac_var in #(
2408      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410      esac
2411      case $ac_var in #(
2412      _ | IFS | as_nl) ;; #(
2413      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414      *) { eval $ac_var=; unset $ac_var;} ;;
2415      esac ;;
2416    esac
2417  done
2418  (set) 2>&1 |
2419    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420    *${as_nl}ac_space=\ *)
2421      sed -n \
2422	"s/'\''/'\''\\\\'\'''\''/g;
2423	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424      ;; #(
2425    *)
2426      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2427      ;;
2428    esac |
2429    sort
2430)
2431    echo
2432
2433    $as_echo "## ----------------- ##
2434## Output variables. ##
2435## ----------------- ##"
2436    echo
2437    for ac_var in $ac_subst_vars
2438    do
2439      eval ac_val=\$$ac_var
2440      case $ac_val in
2441      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442      esac
2443      $as_echo "$ac_var='\''$ac_val'\''"
2444    done | sort
2445    echo
2446
2447    if test -n "$ac_subst_files"; then
2448      $as_echo "## ------------------- ##
2449## File substitutions. ##
2450## ------------------- ##"
2451      echo
2452      for ac_var in $ac_subst_files
2453      do
2454	eval ac_val=\$$ac_var
2455	case $ac_val in
2456	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457	esac
2458	$as_echo "$ac_var='\''$ac_val'\''"
2459      done | sort
2460      echo
2461    fi
2462
2463    if test -s confdefs.h; then
2464      $as_echo "## ----------- ##
2465## confdefs.h. ##
2466## ----------- ##"
2467      echo
2468      cat confdefs.h
2469      echo
2470    fi
2471    test "$ac_signal" != 0 &&
2472      $as_echo "$as_me: caught signal $ac_signal"
2473    $as_echo "$as_me: exit $exit_status"
2474  } >&5
2475  rm -f core *.core core.conftest.* &&
2476    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2477    exit $exit_status
2478' 0
2479for ac_signal in 1 2 13 15; do
2480  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2481done
2482ac_signal=0
2483
2484# confdefs.h avoids OS command line length limits that DEFS can exceed.
2485rm -f -r conftest* confdefs.h
2486
2487$as_echo "/* confdefs.h */" > confdefs.h
2488
2489# Predefined preprocessor variables.
2490
2491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_NAME "$PACKAGE_NAME"
2493_ACEOF
2494
2495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2497_ACEOF
2498
2499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_VERSION "$PACKAGE_VERSION"
2501_ACEOF
2502
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_STRING "$PACKAGE_STRING"
2505_ACEOF
2506
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2509_ACEOF
2510
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_URL "$PACKAGE_URL"
2513_ACEOF
2514
2515
2516# Let the site file select an alternate cache file if it wants to.
2517# Prefer an explicitly selected file to automatically selected ones.
2518ac_site_file1=NONE
2519ac_site_file2=NONE
2520if test -n "$CONFIG_SITE"; then
2521  # We do not want a PATH search for config.site.
2522  case $CONFIG_SITE in #((
2523    -*)  ac_site_file1=./$CONFIG_SITE;;
2524    */*) ac_site_file1=$CONFIG_SITE;;
2525    *)   ac_site_file1=./$CONFIG_SITE;;
2526  esac
2527elif test "x$prefix" != xNONE; then
2528  ac_site_file1=$prefix/share/config.site
2529  ac_site_file2=$prefix/etc/config.site
2530else
2531  ac_site_file1=$ac_default_prefix/share/config.site
2532  ac_site_file2=$ac_default_prefix/etc/config.site
2533fi
2534for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2535do
2536  test "x$ac_site_file" = xNONE && continue
2537  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2538    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2540    sed 's/^/| /' "$ac_site_file" >&5
2541    . "$ac_site_file" \
2542      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544as_fn_error $? "failed to load site script $ac_site_file
2545See \`config.log' for more details" "$LINENO" 5; }
2546  fi
2547done
2548
2549if test -r "$cache_file"; then
2550  # Some versions of bash will fail to source /dev/null (special files
2551  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2552  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554$as_echo "$as_me: loading cache $cache_file" >&6;}
2555    case $cache_file in
2556      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557      *)                      . "./$cache_file";;
2558    esac
2559  fi
2560else
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562$as_echo "$as_me: creating cache $cache_file" >&6;}
2563  >$cache_file
2564fi
2565
2566# Check that the precious variables saved in the cache have kept the same
2567# value.
2568ac_cache_corrupted=false
2569for ac_var in $ac_precious_vars; do
2570  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571  eval ac_new_set=\$ac_env_${ac_var}_set
2572  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573  eval ac_new_val=\$ac_env_${ac_var}_value
2574  case $ac_old_set,$ac_new_set in
2575    set,)
2576      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578      ac_cache_corrupted=: ;;
2579    ,set)
2580      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582      ac_cache_corrupted=: ;;
2583    ,);;
2584    *)
2585      if test "x$ac_old_val" != "x$ac_new_val"; then
2586	# differences in whitespace do not lead to failure.
2587	ac_old_val_w=`echo x $ac_old_val`
2588	ac_new_val_w=`echo x $ac_new_val`
2589	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592	  ac_cache_corrupted=:
2593	else
2594	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596	  eval $ac_var=\$ac_old_val
2597	fi
2598	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2599$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2600	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2601$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2602      fi;;
2603  esac
2604  # Pass precious variables to config.status.
2605  if test "$ac_new_set" = set; then
2606    case $ac_new_val in
2607    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608    *) ac_arg=$ac_var=$ac_new_val ;;
2609    esac
2610    case " $ac_configure_args " in
2611      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2612      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613    esac
2614  fi
2615done
2616if $ac_cache_corrupted; then
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2621  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2622fi
2623## -------------------- ##
2624## Main body of script. ##
2625## -------------------- ##
2626
2627ac_ext=c
2628ac_cpp='$CPP $CPPFLAGS'
2629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632
2633
2634ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2635
2636
2637$as_echo "#define UNIX 1" >>confdefs.h
2638
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2640$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2641set x ${MAKE-make}
2642ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2643if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2644  $as_echo_n "(cached) " >&6
2645else
2646  cat >conftest.make <<\_ACEOF
2647SHELL = /bin/sh
2648all:
2649	@echo '@@@%%%=$(MAKE)=@@@%%%'
2650_ACEOF
2651# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2652case `${MAKE-make} -f conftest.make 2>/dev/null` in
2653  *@@@%%%=?*=@@@%%%*)
2654    eval ac_cv_prog_make_${ac_make}_set=yes;;
2655  *)
2656    eval ac_cv_prog_make_${ac_make}_set=no;;
2657esac
2658rm -f conftest.make
2659fi
2660if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2662$as_echo "yes" >&6; }
2663  SET_MAKE=
2664else
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666$as_echo "no" >&6; }
2667  SET_MAKE="MAKE=${MAKE-make}"
2668fi
2669
2670
2671ac_ext=c
2672ac_cpp='$CPP $CPPFLAGS'
2673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676if test -n "$ac_tool_prefix"; then
2677  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2678set dummy ${ac_tool_prefix}gcc; ac_word=$2
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680$as_echo_n "checking for $ac_word... " >&6; }
2681if ${ac_cv_prog_CC+:} false; then :
2682  $as_echo_n "(cached) " >&6
2683else
2684  if test -n "$CC"; then
2685  ac_cv_prog_CC="$CC" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690  IFS=$as_save_IFS
2691  test -z "$as_dir" && as_dir=.
2692    for ac_exec_ext in '' $ac_executable_extensions; do
2693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696    break 2
2697  fi
2698done
2699  done
2700IFS=$as_save_IFS
2701
2702fi
2703fi
2704CC=$ac_cv_prog_CC
2705if test -n "$CC"; then
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707$as_echo "$CC" >&6; }
2708else
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710$as_echo "no" >&6; }
2711fi
2712
2713
2714fi
2715if test -z "$ac_cv_prog_CC"; then
2716  ac_ct_CC=$CC
2717  # Extract the first word of "gcc", so it can be a program name with args.
2718set dummy gcc; ac_word=$2
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
2721if ${ac_cv_prog_ac_ct_CC+:} false; then :
2722  $as_echo_n "(cached) " >&6
2723else
2724  if test -n "$ac_ct_CC"; then
2725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732    for ac_exec_ext in '' $ac_executable_extensions; do
2733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_ac_ct_CC="gcc"
2735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739  done
2740IFS=$as_save_IFS
2741
2742fi
2743fi
2744ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745if test -n "$ac_ct_CC"; then
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2747$as_echo "$ac_ct_CC" >&6; }
2748else
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
2751fi
2752
2753  if test "x$ac_ct_CC" = x; then
2754    CC=""
2755  else
2756    case $cross_compiling:$ac_tool_warned in
2757yes:)
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760ac_tool_warned=yes ;;
2761esac
2762    CC=$ac_ct_CC
2763  fi
2764else
2765  CC="$ac_cv_prog_CC"
2766fi
2767
2768if test -z "$CC"; then
2769          if test -n "$ac_tool_prefix"; then
2770    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2771set dummy ${ac_tool_prefix}cc; ac_word=$2
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773$as_echo_n "checking for $ac_word... " >&6; }
2774if ${ac_cv_prog_CC+:} false; then :
2775  $as_echo_n "(cached) " >&6
2776else
2777  if test -n "$CC"; then
2778  ac_cv_prog_CC="$CC" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785    for ac_exec_ext in '' $ac_executable_extensions; do
2786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787    ac_cv_prog_CC="${ac_tool_prefix}cc"
2788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789    break 2
2790  fi
2791done
2792  done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797CC=$ac_cv_prog_CC
2798if test -n "$CC"; then
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800$as_echo "$CC" >&6; }
2801else
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803$as_echo "no" >&6; }
2804fi
2805
2806
2807  fi
2808fi
2809if test -z "$CC"; then
2810  # Extract the first word of "cc", so it can be a program name with args.
2811set dummy cc; ac_word=$2
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if ${ac_cv_prog_CC+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  if test -n "$CC"; then
2818  ac_cv_prog_CC="$CC" # Let the user override the test.
2819else
2820  ac_prog_rejected=no
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824  IFS=$as_save_IFS
2825  test -z "$as_dir" && as_dir=.
2826    for ac_exec_ext in '' $ac_executable_extensions; do
2827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2829       ac_prog_rejected=yes
2830       continue
2831     fi
2832    ac_cv_prog_CC="cc"
2833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834    break 2
2835  fi
2836done
2837  done
2838IFS=$as_save_IFS
2839
2840if test $ac_prog_rejected = yes; then
2841  # We found a bogon in the path, so make sure we never use it.
2842  set dummy $ac_cv_prog_CC
2843  shift
2844  if test $# != 0; then
2845    # We chose a different compiler from the bogus one.
2846    # However, it has the same basename, so the bogon will be chosen
2847    # first if we set CC to just the basename; use the full file name.
2848    shift
2849    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2850  fi
2851fi
2852fi
2853fi
2854CC=$ac_cv_prog_CC
2855if test -n "$CC"; then
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857$as_echo "$CC" >&6; }
2858else
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860$as_echo "no" >&6; }
2861fi
2862
2863
2864fi
2865if test -z "$CC"; then
2866  if test -n "$ac_tool_prefix"; then
2867  for ac_prog in cl.exe
2868  do
2869    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_CC+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  if test -n "$CC"; then
2877  ac_cv_prog_CC="$CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899$as_echo "$CC" >&6; }
2900else
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906    test -n "$CC" && break
2907  done
2908fi
2909if test -z "$CC"; then
2910  ac_ct_CC=$CC
2911  for ac_prog in cl.exe
2912do
2913  # Extract the first word of "$ac_prog", so it can be a program name with args.
2914set dummy $ac_prog; ac_word=$2
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916$as_echo_n "checking for $ac_word... " >&6; }
2917if ${ac_cv_prog_ac_ct_CC+:} false; then :
2918  $as_echo_n "(cached) " >&6
2919else
2920  if test -n "$ac_ct_CC"; then
2921  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926  IFS=$as_save_IFS
2927  test -z "$as_dir" && as_dir=.
2928    for ac_exec_ext in '' $ac_executable_extensions; do
2929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930    ac_cv_prog_ac_ct_CC="$ac_prog"
2931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932    break 2
2933  fi
2934done
2935  done
2936IFS=$as_save_IFS
2937
2938fi
2939fi
2940ac_ct_CC=$ac_cv_prog_ac_ct_CC
2941if test -n "$ac_ct_CC"; then
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2943$as_echo "$ac_ct_CC" >&6; }
2944else
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946$as_echo "no" >&6; }
2947fi
2948
2949
2950  test -n "$ac_ct_CC" && break
2951done
2952
2953  if test "x$ac_ct_CC" = x; then
2954    CC=""
2955  else
2956    case $cross_compiling:$ac_tool_warned in
2957yes:)
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960ac_tool_warned=yes ;;
2961esac
2962    CC=$ac_ct_CC
2963  fi
2964fi
2965
2966fi
2967
2968
2969test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971as_fn_error $? "no acceptable C compiler found in \$PATH
2972See \`config.log' for more details" "$LINENO" 5; }
2973
2974# Provide some information about the compiler.
2975$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2976set X $ac_compile
2977ac_compiler=$2
2978for ac_option in --version -v -V -qversion; do
2979  { { ac_try="$ac_compiler $ac_option >&5"
2980case "(($ac_try" in
2981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982  *) ac_try_echo=$ac_try;;
2983esac
2984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985$as_echo "$ac_try_echo"; } >&5
2986  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987  ac_status=$?
2988  if test -s conftest.err; then
2989    sed '10a\
2990... rest of stderr output deleted ...
2991         10q' conftest.err >conftest.er1
2992    cat conftest.er1 >&5
2993  fi
2994  rm -f conftest.er1 conftest.err
2995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996  test $ac_status = 0; }
2997done
2998
2999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000/* end confdefs.h.  */
3001
3002int
3003main ()
3004{
3005
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010ac_clean_files_save=$ac_clean_files
3011ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3012# Try to create an executable without -o first, disregard a.out.
3013# It will help us diagnose broken compilers, and finding out an intuition
3014# of exeext.
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3016$as_echo_n "checking whether the C compiler works... " >&6; }
3017ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3018
3019# The possible output files:
3020ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3021
3022ac_rmfiles=
3023for ac_file in $ac_files
3024do
3025  case $ac_file in
3026    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3027    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3028  esac
3029done
3030rm -f $ac_rmfiles
3031
3032if { { ac_try="$ac_link_default"
3033case "(($ac_try" in
3034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035  *) ac_try_echo=$ac_try;;
3036esac
3037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038$as_echo "$ac_try_echo"; } >&5
3039  (eval "$ac_link_default") 2>&5
3040  ac_status=$?
3041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042  test $ac_status = 0; }; then :
3043  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3044# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3045# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3046# so that the user can short-circuit this test for compilers unknown to
3047# Autoconf.
3048for ac_file in $ac_files ''
3049do
3050  test -f "$ac_file" || continue
3051  case $ac_file in
3052    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3053	;;
3054    [ab].out )
3055	# We found the default executable, but exeext='' is most
3056	# certainly right.
3057	break;;
3058    *.* )
3059	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3060	then :; else
3061	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3062	fi
3063	# We set ac_cv_exeext here because the later test for it is not
3064	# safe: cross compilers may not add the suffix if given an `-o'
3065	# argument, so we may need to know it at that point already.
3066	# Even if this section looks crufty: it has the advantage of
3067	# actually working.
3068	break;;
3069    * )
3070	break;;
3071  esac
3072done
3073test "$ac_cv_exeext" = no && ac_cv_exeext=
3074
3075else
3076  ac_file=''
3077fi
3078if test -z "$ac_file"; then :
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080$as_echo "no" >&6; }
3081$as_echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086as_fn_error 77 "C compiler cannot create executables
3087See \`config.log' for more details" "$LINENO" 5; }
3088else
3089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090$as_echo "yes" >&6; }
3091fi
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3093$as_echo_n "checking for C compiler default output file name... " >&6; }
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3095$as_echo "$ac_file" >&6; }
3096ac_exeext=$ac_cv_exeext
3097
3098rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3099ac_clean_files=$ac_clean_files_save
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3101$as_echo_n "checking for suffix of executables... " >&6; }
3102if { { ac_try="$ac_link"
3103case "(($ac_try" in
3104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105  *) ac_try_echo=$ac_try;;
3106esac
3107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3108$as_echo "$ac_try_echo"; } >&5
3109  (eval "$ac_link") 2>&5
3110  ac_status=$?
3111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112  test $ac_status = 0; }; then :
3113  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3115# work properly (i.e., refer to `conftest.exe'), while it won't with
3116# `rm'.
3117for ac_file in conftest.exe conftest conftest.*; do
3118  test -f "$ac_file" || continue
3119  case $ac_file in
3120    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3121    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122	  break;;
3123    * ) break;;
3124  esac
3125done
3126else
3127  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3130See \`config.log' for more details" "$LINENO" 5; }
3131fi
3132rm -f conftest conftest$ac_cv_exeext
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3134$as_echo "$ac_cv_exeext" >&6; }
3135
3136rm -f conftest.$ac_ext
3137EXEEXT=$ac_cv_exeext
3138ac_exeext=$EXEEXT
3139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140/* end confdefs.h.  */
3141#include <stdio.h>
3142int
3143main ()
3144{
3145FILE *f = fopen ("conftest.out", "w");
3146 return ferror (f) || fclose (f) != 0;
3147
3148  ;
3149  return 0;
3150}
3151_ACEOF
3152ac_clean_files="$ac_clean_files conftest.out"
3153# Check that the compiler produces executables we can run.  If not, either
3154# the compiler is broken, or we cross compile.
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3156$as_echo_n "checking whether we are cross compiling... " >&6; }
3157if test "$cross_compiling" != yes; then
3158  { { ac_try="$ac_link"
3159case "(($ac_try" in
3160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161  *) ac_try_echo=$ac_try;;
3162esac
3163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164$as_echo "$ac_try_echo"; } >&5
3165  (eval "$ac_link") 2>&5
3166  ac_status=$?
3167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168  test $ac_status = 0; }
3169  if { ac_try='./conftest$ac_cv_exeext'
3170  { { case "(($ac_try" in
3171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172  *) ac_try_echo=$ac_try;;
3173esac
3174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175$as_echo "$ac_try_echo"; } >&5
3176  (eval "$ac_try") 2>&5
3177  ac_status=$?
3178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179  test $ac_status = 0; }; }; then
3180    cross_compiling=no
3181  else
3182    if test "$cross_compiling" = maybe; then
3183	cross_compiling=yes
3184    else
3185	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187as_fn_error $? "cannot run C compiled programs.
3188If you meant to cross compile, use \`--host'.
3189See \`config.log' for more details" "$LINENO" 5; }
3190    fi
3191  fi
3192fi
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3194$as_echo "$cross_compiling" >&6; }
3195
3196rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3197ac_clean_files=$ac_clean_files_save
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3199$as_echo_n "checking for suffix of object files... " >&6; }
3200if ${ac_cv_objext+:} false; then :
3201  $as_echo_n "(cached) " >&6
3202else
3203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204/* end confdefs.h.  */
3205
3206int
3207main ()
3208{
3209
3210  ;
3211  return 0;
3212}
3213_ACEOF
3214rm -f conftest.o conftest.obj
3215if { { ac_try="$ac_compile"
3216case "(($ac_try" in
3217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218  *) ac_try_echo=$ac_try;;
3219esac
3220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221$as_echo "$ac_try_echo"; } >&5
3222  (eval "$ac_compile") 2>&5
3223  ac_status=$?
3224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225  test $ac_status = 0; }; then :
3226  for ac_file in conftest.o conftest.obj conftest.*; do
3227  test -f "$ac_file" || continue;
3228  case $ac_file in
3229    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3230    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3231       break;;
3232  esac
3233done
3234else
3235  $as_echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240as_fn_error $? "cannot compute suffix of object files: cannot compile
3241See \`config.log' for more details" "$LINENO" 5; }
3242fi
3243rm -f conftest.$ac_cv_objext conftest.$ac_ext
3244fi
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3246$as_echo "$ac_cv_objext" >&6; }
3247OBJEXT=$ac_cv_objext
3248ac_objext=$OBJEXT
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3250$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3251if ${ac_cv_c_compiler_gnu+:} false; then :
3252  $as_echo_n "(cached) " >&6
3253else
3254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255/* end confdefs.h.  */
3256
3257int
3258main ()
3259{
3260#ifndef __GNUC__
3261       choke me
3262#endif
3263
3264  ;
3265  return 0;
3266}
3267_ACEOF
3268if ac_fn_c_try_compile "$LINENO"; then :
3269  ac_compiler_gnu=yes
3270else
3271  ac_compiler_gnu=no
3272fi
3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274ac_cv_c_compiler_gnu=$ac_compiler_gnu
3275
3276fi
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3278$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3279if test $ac_compiler_gnu = yes; then
3280  GCC=yes
3281else
3282  GCC=
3283fi
3284ac_test_CFLAGS=${CFLAGS+set}
3285ac_save_CFLAGS=$CFLAGS
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3287$as_echo_n "checking whether $CC accepts -g... " >&6; }
3288if ${ac_cv_prog_cc_g+:} false; then :
3289  $as_echo_n "(cached) " >&6
3290else
3291  ac_save_c_werror_flag=$ac_c_werror_flag
3292   ac_c_werror_flag=yes
3293   ac_cv_prog_cc_g=no
3294   CFLAGS="-g"
3295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296/* end confdefs.h.  */
3297
3298int
3299main ()
3300{
3301
3302  ;
3303  return 0;
3304}
3305_ACEOF
3306if ac_fn_c_try_compile "$LINENO"; then :
3307  ac_cv_prog_cc_g=yes
3308else
3309  CFLAGS=""
3310      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311/* end confdefs.h.  */
3312
3313int
3314main ()
3315{
3316
3317  ;
3318  return 0;
3319}
3320_ACEOF
3321if ac_fn_c_try_compile "$LINENO"; then :
3322
3323else
3324  ac_c_werror_flag=$ac_save_c_werror_flag
3325	 CFLAGS="-g"
3326	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327/* end confdefs.h.  */
3328
3329int
3330main ()
3331{
3332
3333  ;
3334  return 0;
3335}
3336_ACEOF
3337if ac_fn_c_try_compile "$LINENO"; then :
3338  ac_cv_prog_cc_g=yes
3339fi
3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341fi
3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343fi
3344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345   ac_c_werror_flag=$ac_save_c_werror_flag
3346fi
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3348$as_echo "$ac_cv_prog_cc_g" >&6; }
3349if test "$ac_test_CFLAGS" = set; then
3350  CFLAGS=$ac_save_CFLAGS
3351elif test $ac_cv_prog_cc_g = yes; then
3352  if test "$GCC" = yes; then
3353    CFLAGS="-g -O2"
3354  else
3355    CFLAGS="-g"
3356  fi
3357else
3358  if test "$GCC" = yes; then
3359    CFLAGS="-O2"
3360  else
3361    CFLAGS=
3362  fi
3363fi
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3365$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3366if ${ac_cv_prog_cc_c89+:} false; then :
3367  $as_echo_n "(cached) " >&6
3368else
3369  ac_cv_prog_cc_c89=no
3370ac_save_CC=$CC
3371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h.  */
3373#include <stdarg.h>
3374#include <stdio.h>
3375struct stat;
3376/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3377struct buf { int x; };
3378FILE * (*rcsopen) (struct buf *, struct stat *, int);
3379static char *e (p, i)
3380     char **p;
3381     int i;
3382{
3383  return p[i];
3384}
3385static char *f (char * (*g) (char **, int), char **p, ...)
3386{
3387  char *s;
3388  va_list v;
3389  va_start (v,p);
3390  s = g (p, va_arg (v,int));
3391  va_end (v);
3392  return s;
3393}
3394
3395/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3396   function prototypes and stuff, but not '\xHH' hex character constants.
3397   These don't provoke an error unfortunately, instead are silently treated
3398   as 'x'.  The following induces an error, until -std is added to get
3399   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3400   array size at least.  It's necessary to write '\x00'==0 to get something
3401   that's true only with -std.  */
3402int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3403
3404/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3405   inside strings and character constants.  */
3406#define FOO(x) 'x'
3407int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3408
3409int test (int i, double x);
3410struct s1 {int (*f) (int a);};
3411struct s2 {int (*f) (double a);};
3412int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3413int argc;
3414char **argv;
3415int
3416main ()
3417{
3418return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3419  ;
3420  return 0;
3421}
3422_ACEOF
3423for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3424	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3425do
3426  CC="$ac_save_CC $ac_arg"
3427  if ac_fn_c_try_compile "$LINENO"; then :
3428  ac_cv_prog_cc_c89=$ac_arg
3429fi
3430rm -f core conftest.err conftest.$ac_objext
3431  test "x$ac_cv_prog_cc_c89" != "xno" && break
3432done
3433rm -f conftest.$ac_ext
3434CC=$ac_save_CC
3435
3436fi
3437# AC_CACHE_VAL
3438case "x$ac_cv_prog_cc_c89" in
3439  x)
3440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3441$as_echo "none needed" >&6; } ;;
3442  xno)
3443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3444$as_echo "unsupported" >&6; } ;;
3445  *)
3446    CC="$CC $ac_cv_prog_cc_c89"
3447    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3448$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3449esac
3450if test "x$ac_cv_prog_cc_c89" != xno; then :
3451
3452fi
3453
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3461$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3462if ${ac_cv_prog_cc_c99+:} false; then :
3463  $as_echo_n "(cached) " >&6
3464else
3465  ac_cv_prog_cc_c99=no
3466ac_save_CC=$CC
3467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469#include <stdarg.h>
3470#include <stdbool.h>
3471#include <stdlib.h>
3472#include <wchar.h>
3473#include <stdio.h>
3474
3475// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3476#define debug(...) fprintf (stderr, __VA_ARGS__)
3477#define showlist(...) puts (#__VA_ARGS__)
3478#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3479static void
3480test_varargs_macros (void)
3481{
3482  int x = 1234;
3483  int y = 5678;
3484  debug ("Flag");
3485  debug ("X = %d\n", x);
3486  showlist (The first, second, and third items.);
3487  report (x>y, "x is %d but y is %d", x, y);
3488}
3489
3490// Check long long types.
3491#define BIG64 18446744073709551615ull
3492#define BIG32 4294967295ul
3493#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3494#if !BIG_OK
3495  your preprocessor is broken;
3496#endif
3497#if BIG_OK
3498#else
3499  your preprocessor is broken;
3500#endif
3501static long long int bignum = -9223372036854775807LL;
3502static unsigned long long int ubignum = BIG64;
3503
3504struct incomplete_array
3505{
3506  int datasize;
3507  double data[];
3508};
3509
3510struct named_init {
3511  int number;
3512  const wchar_t *name;
3513  double average;
3514};
3515
3516typedef const char *ccp;
3517
3518static inline int
3519test_restrict (ccp restrict text)
3520{
3521  // See if C++-style comments work.
3522  // Iterate through items via the restricted pointer.
3523  // Also check for declarations in for loops.
3524  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3525    continue;
3526  return 0;
3527}
3528
3529// Check varargs and va_copy.
3530static void
3531test_varargs (const char *format, ...)
3532{
3533  va_list args;
3534  va_start (args, format);
3535  va_list args_copy;
3536  va_copy (args_copy, args);
3537
3538  const char *str;
3539  int number;
3540  float fnumber;
3541
3542  while (*format)
3543    {
3544      switch (*format++)
3545	{
3546	case 's': // string
3547	  str = va_arg (args_copy, const char *);
3548	  break;
3549	case 'd': // int
3550	  number = va_arg (args_copy, int);
3551	  break;
3552	case 'f': // float
3553	  fnumber = va_arg (args_copy, double);
3554	  break;
3555	default:
3556	  break;
3557	}
3558    }
3559  va_end (args_copy);
3560  va_end (args);
3561}
3562
3563int
3564main ()
3565{
3566
3567  // Check bool.
3568  _Bool success = false;
3569
3570  // Check restrict.
3571  if (test_restrict ("String literal") == 0)
3572    success = true;
3573  char *restrict newvar = "Another string";
3574
3575  // Check varargs.
3576  test_varargs ("s, d' f .", "string", 65, 34.234);
3577  test_varargs_macros ();
3578
3579  // Check flexible array members.
3580  struct incomplete_array *ia =
3581    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3582  ia->datasize = 10;
3583  for (int i = 0; i < ia->datasize; ++i)
3584    ia->data[i] = i * 1.234;
3585
3586  // Check named initializers.
3587  struct named_init ni = {
3588    .number = 34,
3589    .name = L"Test wide string",
3590    .average = 543.34343,
3591  };
3592
3593  ni.number = 58;
3594
3595  int dynamic_array[ni.number];
3596  dynamic_array[ni.number - 1] = 543;
3597
3598  // work around unused variable warnings
3599  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3600	  || dynamic_array[ni.number - 1] != 543);
3601
3602  ;
3603  return 0;
3604}
3605_ACEOF
3606for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3607do
3608  CC="$ac_save_CC $ac_arg"
3609  if ac_fn_c_try_compile "$LINENO"; then :
3610  ac_cv_prog_cc_c99=$ac_arg
3611fi
3612rm -f core conftest.err conftest.$ac_objext
3613  test "x$ac_cv_prog_cc_c99" != "xno" && break
3614done
3615rm -f conftest.$ac_ext
3616CC=$ac_save_CC
3617
3618fi
3619# AC_CACHE_VAL
3620case "x$ac_cv_prog_cc_c99" in
3621  x)
3622    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3623$as_echo "none needed" >&6; } ;;
3624  xno)
3625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3626$as_echo "unsupported" >&6; } ;;
3627  *)
3628    CC="$CC $ac_cv_prog_cc_c99"
3629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3630$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3631esac
3632if test "x$ac_cv_prog_cc_c99" != xno; then :
3633
3634fi
3635
3636		ac_ext=c
3637ac_cpp='$CPP $CPPFLAGS'
3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3642$as_echo_n "checking how to run the C preprocessor... " >&6; }
3643# On Suns, sometimes $CPP names a directory.
3644if test -n "$CPP" && test -d "$CPP"; then
3645  CPP=
3646fi
3647if test -z "$CPP"; then
3648  if ${ac_cv_prog_CPP+:} false; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651      # Double quotes because CPP needs to be expanded
3652    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3653    do
3654      ac_preproc_ok=false
3655for ac_c_preproc_warn_flag in '' yes
3656do
3657  # Use a header file that comes with gcc, so configuring glibc
3658  # with a fresh cross-compiler works.
3659  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3660  # <limits.h> exists even on freestanding compilers.
3661  # On the NeXT, cc -E runs the code through the compiler's parser,
3662  # not just through cpp. "Syntax error" is here to catch this case.
3663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h.  */
3665#ifdef __STDC__
3666# include <limits.h>
3667#else
3668# include <assert.h>
3669#endif
3670		     Syntax error
3671_ACEOF
3672if ac_fn_c_try_cpp "$LINENO"; then :
3673
3674else
3675  # Broken: fails on valid input.
3676continue
3677fi
3678rm -f conftest.err conftest.i conftest.$ac_ext
3679
3680  # OK, works on sane cases.  Now check whether nonexistent headers
3681  # can be detected and how.
3682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684#include <ac_nonexistent.h>
3685_ACEOF
3686if ac_fn_c_try_cpp "$LINENO"; then :
3687  # Broken: success on invalid input.
3688continue
3689else
3690  # Passes both tests.
3691ac_preproc_ok=:
3692break
3693fi
3694rm -f conftest.err conftest.i conftest.$ac_ext
3695
3696done
3697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3698rm -f conftest.i conftest.err conftest.$ac_ext
3699if $ac_preproc_ok; then :
3700  break
3701fi
3702
3703    done
3704    ac_cv_prog_CPP=$CPP
3705
3706fi
3707  CPP=$ac_cv_prog_CPP
3708else
3709  ac_cv_prog_CPP=$CPP
3710fi
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3712$as_echo "$CPP" >&6; }
3713ac_preproc_ok=false
3714for ac_c_preproc_warn_flag in '' yes
3715do
3716  # Use a header file that comes with gcc, so configuring glibc
3717  # with a fresh cross-compiler works.
3718  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3719  # <limits.h> exists even on freestanding compilers.
3720  # On the NeXT, cc -E runs the code through the compiler's parser,
3721  # not just through cpp. "Syntax error" is here to catch this case.
3722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723/* end confdefs.h.  */
3724#ifdef __STDC__
3725# include <limits.h>
3726#else
3727# include <assert.h>
3728#endif
3729		     Syntax error
3730_ACEOF
3731if ac_fn_c_try_cpp "$LINENO"; then :
3732
3733else
3734  # Broken: fails on valid input.
3735continue
3736fi
3737rm -f conftest.err conftest.i conftest.$ac_ext
3738
3739  # OK, works on sane cases.  Now check whether nonexistent headers
3740  # can be detected and how.
3741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742/* end confdefs.h.  */
3743#include <ac_nonexistent.h>
3744_ACEOF
3745if ac_fn_c_try_cpp "$LINENO"; then :
3746  # Broken: success on invalid input.
3747continue
3748else
3749  # Passes both tests.
3750ac_preproc_ok=:
3751break
3752fi
3753rm -f conftest.err conftest.i conftest.$ac_ext
3754
3755done
3756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3757rm -f conftest.i conftest.err conftest.$ac_ext
3758if $ac_preproc_ok; then :
3759
3760else
3761  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3764See \`config.log' for more details" "$LINENO" 5; }
3765fi
3766
3767ac_ext=c
3768ac_cpp='$CPP $CPPFLAGS'
3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772
3773
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3775$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3776if ${ac_cv_path_GREP+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  if test -z "$GREP"; then
3780  ac_path_GREP_found=false
3781  # Loop through the user's path and test for each of PROGNAME-LIST
3782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3784do
3785  IFS=$as_save_IFS
3786  test -z "$as_dir" && as_dir=.
3787    for ac_prog in grep ggrep; do
3788    for ac_exec_ext in '' $ac_executable_extensions; do
3789      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3790      as_fn_executable_p "$ac_path_GREP" || continue
3791# Check for GNU ac_path_GREP and select it if it is found.
3792  # Check for GNU $ac_path_GREP
3793case `"$ac_path_GREP" --version 2>&1` in
3794*GNU*)
3795  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3796*)
3797  ac_count=0
3798  $as_echo_n 0123456789 >"conftest.in"
3799  while :
3800  do
3801    cat "conftest.in" "conftest.in" >"conftest.tmp"
3802    mv "conftest.tmp" "conftest.in"
3803    cp "conftest.in" "conftest.nl"
3804    $as_echo 'GREP' >> "conftest.nl"
3805    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3806    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3807    as_fn_arith $ac_count + 1 && ac_count=$as_val
3808    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3809      # Best one so far, save it but keep looking for a better one
3810      ac_cv_path_GREP="$ac_path_GREP"
3811      ac_path_GREP_max=$ac_count
3812    fi
3813    # 10*(2^10) chars as input seems more than enough
3814    test $ac_count -gt 10 && break
3815  done
3816  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3817esac
3818
3819      $ac_path_GREP_found && break 3
3820    done
3821  done
3822  done
3823IFS=$as_save_IFS
3824  if test -z "$ac_cv_path_GREP"; then
3825    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3826  fi
3827else
3828  ac_cv_path_GREP=$GREP
3829fi
3830
3831fi
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3833$as_echo "$ac_cv_path_GREP" >&6; }
3834 GREP="$ac_cv_path_GREP"
3835
3836
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3838$as_echo_n "checking for egrep... " >&6; }
3839if ${ac_cv_path_EGREP+:} false; then :
3840  $as_echo_n "(cached) " >&6
3841else
3842  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3843   then ac_cv_path_EGREP="$GREP -E"
3844   else
3845     if test -z "$EGREP"; then
3846  ac_path_EGREP_found=false
3847  # Loop through the user's path and test for each of PROGNAME-LIST
3848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3850do
3851  IFS=$as_save_IFS
3852  test -z "$as_dir" && as_dir=.
3853    for ac_prog in egrep; do
3854    for ac_exec_ext in '' $ac_executable_extensions; do
3855      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3856      as_fn_executable_p "$ac_path_EGREP" || continue
3857# Check for GNU ac_path_EGREP and select it if it is found.
3858  # Check for GNU $ac_path_EGREP
3859case `"$ac_path_EGREP" --version 2>&1` in
3860*GNU*)
3861  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3862*)
3863  ac_count=0
3864  $as_echo_n 0123456789 >"conftest.in"
3865  while :
3866  do
3867    cat "conftest.in" "conftest.in" >"conftest.tmp"
3868    mv "conftest.tmp" "conftest.in"
3869    cp "conftest.in" "conftest.nl"
3870    $as_echo 'EGREP' >> "conftest.nl"
3871    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873    as_fn_arith $ac_count + 1 && ac_count=$as_val
3874    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3875      # Best one so far, save it but keep looking for a better one
3876      ac_cv_path_EGREP="$ac_path_EGREP"
3877      ac_path_EGREP_max=$ac_count
3878    fi
3879    # 10*(2^10) chars as input seems more than enough
3880    test $ac_count -gt 10 && break
3881  done
3882  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883esac
3884
3885      $ac_path_EGREP_found && break 3
3886    done
3887  done
3888  done
3889IFS=$as_save_IFS
3890  if test -z "$ac_cv_path_EGREP"; then
3891    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3892  fi
3893else
3894  ac_cv_path_EGREP=$EGREP
3895fi
3896
3897   fi
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3900$as_echo "$ac_cv_path_EGREP" >&6; }
3901 EGREP="$ac_cv_path_EGREP"
3902
3903
3904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h.  */
3906
3907_ACEOF
3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909  $EGREP "" >/dev/null 2>&1; then :
3910
3911fi
3912rm -f conftest*
3913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3914$as_echo_n "checking for fgrep... " >&6; }
3915if ${ac_cv_path_FGREP+:} false; then :
3916  $as_echo_n "(cached) " >&6
3917else
3918  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3919   then ac_cv_path_FGREP="$GREP -F"
3920   else
3921     if test -z "$FGREP"; then
3922  ac_path_FGREP_found=false
3923  # Loop through the user's path and test for each of PROGNAME-LIST
3924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3926do
3927  IFS=$as_save_IFS
3928  test -z "$as_dir" && as_dir=.
3929    for ac_prog in fgrep; do
3930    for ac_exec_ext in '' $ac_executable_extensions; do
3931      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3932      as_fn_executable_p "$ac_path_FGREP" || continue
3933# Check for GNU ac_path_FGREP and select it if it is found.
3934  # Check for GNU $ac_path_FGREP
3935case `"$ac_path_FGREP" --version 2>&1` in
3936*GNU*)
3937  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3938*)
3939  ac_count=0
3940  $as_echo_n 0123456789 >"conftest.in"
3941  while :
3942  do
3943    cat "conftest.in" "conftest.in" >"conftest.tmp"
3944    mv "conftest.tmp" "conftest.in"
3945    cp "conftest.in" "conftest.nl"
3946    $as_echo 'FGREP' >> "conftest.nl"
3947    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949    as_fn_arith $ac_count + 1 && ac_count=$as_val
3950    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3951      # Best one so far, save it but keep looking for a better one
3952      ac_cv_path_FGREP="$ac_path_FGREP"
3953      ac_path_FGREP_max=$ac_count
3954    fi
3955    # 10*(2^10) chars as input seems more than enough
3956    test $ac_count -gt 10 && break
3957  done
3958  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959esac
3960
3961      $ac_path_FGREP_found && break 3
3962    done
3963  done
3964  done
3965IFS=$as_save_IFS
3966  if test -z "$ac_cv_path_FGREP"; then
3967    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3968  fi
3969else
3970  ac_cv_path_FGREP=$FGREP
3971fi
3972
3973   fi
3974fi
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3976$as_echo "$ac_cv_path_FGREP" >&6; }
3977 FGREP="$ac_cv_path_FGREP"
3978
3979		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3980$as_echo_n "checking for library containing strerror... " >&6; }
3981if ${ac_cv_search_strerror+:} false; then :
3982  $as_echo_n "(cached) " >&6
3983else
3984  ac_func_search_save_LIBS=$LIBS
3985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h.  */
3987
3988/* Override any GCC internal prototype to avoid an error.
3989   Use char because int might match the return type of a GCC
3990   builtin and then its argument prototype would still apply.  */
3991#ifdef __cplusplus
3992extern "C"
3993#endif
3994char strerror ();
3995int
3996main ()
3997{
3998return strerror ();
3999  ;
4000  return 0;
4001}
4002_ACEOF
4003for ac_lib in '' cposix; do
4004  if test -z "$ac_lib"; then
4005    ac_res="none required"
4006  else
4007    ac_res=-l$ac_lib
4008    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4009  fi
4010  if ac_fn_c_try_link "$LINENO"; then :
4011  ac_cv_search_strerror=$ac_res
4012fi
4013rm -f core conftest.err conftest.$ac_objext \
4014    conftest$ac_exeext
4015  if ${ac_cv_search_strerror+:} false; then :
4016  break
4017fi
4018done
4019if ${ac_cv_search_strerror+:} false; then :
4020
4021else
4022  ac_cv_search_strerror=no
4023fi
4024rm conftest.$ac_ext
4025LIBS=$ac_func_search_save_LIBS
4026fi
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4028$as_echo "$ac_cv_search_strerror" >&6; }
4029ac_res=$ac_cv_search_strerror
4030if test "$ac_res" != no; then :
4031  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4032
4033fi
4034		for ac_prog in gawk mawk nawk awk
4035do
4036  # Extract the first word of "$ac_prog", so it can be a program name with args.
4037set dummy $ac_prog; ac_word=$2
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039$as_echo_n "checking for $ac_word... " >&6; }
4040if ${ac_cv_prog_AWK+:} false; then :
4041  $as_echo_n "(cached) " >&6
4042else
4043  if test -n "$AWK"; then
4044  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4045else
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049  IFS=$as_save_IFS
4050  test -z "$as_dir" && as_dir=.
4051    for ac_exec_ext in '' $ac_executable_extensions; do
4052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053    ac_cv_prog_AWK="$ac_prog"
4054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055    break 2
4056  fi
4057done
4058  done
4059IFS=$as_save_IFS
4060
4061fi
4062fi
4063AWK=$ac_cv_prog_AWK
4064if test -n "$AWK"; then
4065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4066$as_echo "$AWK" >&6; }
4067else
4068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069$as_echo "no" >&6; }
4070fi
4071
4072
4073  test -n "$AWK" && break
4074done
4075
4076# Extract the first word of "strip", so it can be a program name with args.
4077set dummy strip; ac_word=$2
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079$as_echo_n "checking for $ac_word... " >&6; }
4080if ${ac_cv_prog_STRIP+:} false; then :
4081  $as_echo_n "(cached) " >&6
4082else
4083  if test -n "$STRIP"; then
4084  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4085else
4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089  IFS=$as_save_IFS
4090  test -z "$as_dir" && as_dir=.
4091    for ac_exec_ext in '' $ac_executable_extensions; do
4092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093    ac_cv_prog_STRIP="strip"
4094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095    break 2
4096  fi
4097done
4098  done
4099IFS=$as_save_IFS
4100
4101  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4102fi
4103fi
4104STRIP=$ac_cv_prog_STRIP
4105if test -n "$STRIP"; then
4106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4107$as_echo "$STRIP" >&6; }
4108else
4109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110$as_echo "no" >&6; }
4111fi
4112
4113
4114
4115
4116
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4118$as_echo_n "checking for ANSI C header files... " >&6; }
4119if ${ac_cv_header_stdc+:} false; then :
4120  $as_echo_n "(cached) " >&6
4121else
4122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124#include <stdlib.h>
4125#include <stdarg.h>
4126#include <string.h>
4127#include <float.h>
4128
4129int
4130main ()
4131{
4132
4133  ;
4134  return 0;
4135}
4136_ACEOF
4137if ac_fn_c_try_compile "$LINENO"; then :
4138  ac_cv_header_stdc=yes
4139else
4140  ac_cv_header_stdc=no
4141fi
4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143
4144if test $ac_cv_header_stdc = yes; then
4145  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h.  */
4148#include <string.h>
4149
4150_ACEOF
4151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152  $EGREP "memchr" >/dev/null 2>&1; then :
4153
4154else
4155  ac_cv_header_stdc=no
4156fi
4157rm -f conftest*
4158
4159fi
4160
4161if test $ac_cv_header_stdc = yes; then
4162  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h.  */
4165#include <stdlib.h>
4166
4167_ACEOF
4168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169  $EGREP "free" >/dev/null 2>&1; then :
4170
4171else
4172  ac_cv_header_stdc=no
4173fi
4174rm -f conftest*
4175
4176fi
4177
4178if test $ac_cv_header_stdc = yes; then
4179  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4180  if test "$cross_compiling" = yes; then :
4181  :
4182else
4183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h.  */
4185#include <ctype.h>
4186#include <stdlib.h>
4187#if ((' ' & 0x0FF) == 0x020)
4188# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4189# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4190#else
4191# define ISLOWER(c) \
4192		   (('a' <= (c) && (c) <= 'i') \
4193		     || ('j' <= (c) && (c) <= 'r') \
4194		     || ('s' <= (c) && (c) <= 'z'))
4195# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4196#endif
4197
4198#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4199int
4200main ()
4201{
4202  int i;
4203  for (i = 0; i < 256; i++)
4204    if (XOR (islower (i), ISLOWER (i))
4205	|| toupper (i) != TOUPPER (i))
4206      return 2;
4207  return 0;
4208}
4209_ACEOF
4210if ac_fn_c_try_run "$LINENO"; then :
4211
4212else
4213  ac_cv_header_stdc=no
4214fi
4215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4216  conftest.$ac_objext conftest.beam conftest.$ac_ext
4217fi
4218
4219fi
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4222$as_echo "$ac_cv_header_stdc" >&6; }
4223if test $ac_cv_header_stdc = yes; then
4224
4225$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4226
4227fi
4228
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4230$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4231if ${ac_cv_header_sys_wait_h+:} false; then :
4232  $as_echo_n "(cached) " >&6
4233else
4234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h.  */
4236#include <sys/types.h>
4237#include <sys/wait.h>
4238#ifndef WEXITSTATUS
4239# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4240#endif
4241#ifndef WIFEXITED
4242# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4243#endif
4244
4245int
4246main ()
4247{
4248  int s;
4249  wait (&s);
4250  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4251  ;
4252  return 0;
4253}
4254_ACEOF
4255if ac_fn_c_try_compile "$LINENO"; then :
4256  ac_cv_header_sys_wait_h=yes
4257else
4258  ac_cv_header_sys_wait_h=no
4259fi
4260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4263$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4264if test $ac_cv_header_sys_wait_h = yes; then
4265
4266$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4267
4268fi
4269
4270
4271if test x"$ac_cv_prog_cc_c99" != xno; then
4272
4273
4274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4275$as_echo_n "checking for unsigned long long int... " >&6; }
4276if ${ac_cv_type_unsigned_long_long_int+:} false; then :
4277  $as_echo_n "(cached) " >&6
4278else
4279  ac_cv_type_unsigned_long_long_int=yes
4280     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4281       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h.  */
4283
4284  /* For now, do not test the preprocessor; as of 2007 there are too many
4285	 implementations with broken preprocessors.  Perhaps this can
4286	 be revisited in 2012.  In the meantime, code should not expect
4287	 #if to work with literals wider than 32 bits.  */
4288      /* Test literals.  */
4289      long long int ll = 9223372036854775807ll;
4290      long long int nll = -9223372036854775807LL;
4291      unsigned long long int ull = 18446744073709551615ULL;
4292      /* Test constant expressions.   */
4293      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4294		     ? 1 : -1)];
4295      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4296		     ? 1 : -1)];
4297      int i = 63;
4298int
4299main ()
4300{
4301/* Test availability of runtime routines for shift and division.  */
4302      long long int llmax = 9223372036854775807ll;
4303      unsigned long long int ullmax = 18446744073709551615ull;
4304      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4305	      | (llmax / ll) | (llmax % ll)
4306	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4307	      | (ullmax / ull) | (ullmax % ull));
4308  ;
4309  return 0;
4310}
4311
4312_ACEOF
4313if ac_fn_c_try_link "$LINENO"; then :
4314
4315else
4316  ac_cv_type_unsigned_long_long_int=no
4317fi
4318rm -f core conftest.err conftest.$ac_objext \
4319    conftest$ac_exeext conftest.$ac_ext
4320     fi
4321fi
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4323$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4324  if test $ac_cv_type_unsigned_long_long_int = yes; then
4325
4326$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4327
4328  fi
4329
4330
4331
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4333$as_echo_n "checking for long long int... " >&6; }
4334if ${ac_cv_type_long_long_int+:} false; then :
4335  $as_echo_n "(cached) " >&6
4336else
4337  ac_cv_type_long_long_int=yes
4338      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4339	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
4340	if test $ac_cv_type_long_long_int = yes; then
4341	  	  	  	  if test "$cross_compiling" = yes; then :
4342  :
4343else
4344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h.  */
4346#include <limits.h>
4347		 #ifndef LLONG_MAX
4348		 # define HALF \
4349			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4350		 # define LLONG_MAX (HALF - 1 + HALF)
4351		 #endif
4352int
4353main ()
4354{
4355long long int n = 1;
4356		 int i;
4357		 for (i = 0; ; i++)
4358		   {
4359		     long long int m = n << i;
4360		     if (m >> i != n)
4361		       return 1;
4362		     if (LLONG_MAX / 2 < m)
4363		       break;
4364		   }
4365		 return 0;
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370if ac_fn_c_try_run "$LINENO"; then :
4371
4372else
4373  ac_cv_type_long_long_int=no
4374fi
4375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4376  conftest.$ac_objext conftest.beam conftest.$ac_ext
4377fi
4378
4379	fi
4380      fi
4381fi
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4383$as_echo "$ac_cv_type_long_long_int" >&6; }
4384  if test $ac_cv_type_long_long_int = yes; then
4385
4386$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4387
4388  fi
4389
4390  if test "$ac_cv_type_long_long_int" = no; then
4391    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4393as_fn_error $? "Compiler does not support long long int
4394See \`config.log' for more details" "$LINENO" 5; }
4395  fi
4396
4397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5
4398$as_echo_n "checking if the compiler supports trailing commas... " >&6; }
4399  trailing_commas=no
4400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402
4403int
4404main ()
4405{
4406
4407    enum {
4408      one,
4409    };
4410  ;
4411  return 0;
4412}
4413_ACEOF
4414if ac_fn_c_try_compile "$LINENO"; then :
4415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4416$as_echo "yes" >&6; }; trailing_commas=yes
4417else
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419$as_echo "no" >&6; }
4420fi
4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422  if test "$trailing_commas" = no; then
4423    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4425as_fn_error $? "Compiler does not support trailing comma in enum
4426See \`config.log' for more details" "$LINENO" 5; }
4427  fi
4428
4429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5
4430$as_echo_n "checking if the compiler supports C++ comments... " >&6; }
4431  slash_comments=no
4432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433/* end confdefs.h.  */
4434
4435int
4436main ()
4437{
4438// C++ comments?
4439  ;
4440  return 0;
4441}
4442_ACEOF
4443if ac_fn_c_try_compile "$LINENO"; then :
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4445$as_echo "yes" >&6; }; slash_comments=yes
4446else
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448$as_echo "no" >&6; }
4449fi
4450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451  if test "$slash_comments" = no; then
4452    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454as_fn_error $? "Compiler does not support C++ comments
4455See \`config.log' for more details" "$LINENO" 5; }
4456  fi
4457fi
4458
4459
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4461$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4462# Check whether --enable-fail_if_missing was given.
4463if test "${enable_fail_if_missing+set}" = set; then :
4464  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4465else
4466  fail_if_missing="no"
4467fi
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4470$as_echo "$fail_if_missing" >&6; }
4471
4472with_x_arg="$with_x"
4473
4474if test -z "$CFLAGS"; then
4475  CFLAGS="-O"
4476  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4477fi
4478if test "$GCC" = yes; then
4479    gccversion=`$CC -dumpversion`
4480  if test "x$gccversion" = "x"; then
4481        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4482  fi
4483    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4484    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4485    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4486  else
4487    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4488      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4489      CFLAGS="$CFLAGS -fno-strength-reduce"
4490    fi
4491  fi
4492fi
4493
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4495$as_echo_n "checking for clang version... " >&6; }
4496CLANG_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'`
4497if test x"$CLANG_VERSION_STRING" != x"" ; then
4498  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4499  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4500  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4501  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4503$as_echo "$CLANG_VERSION" >&6; }
4504          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4505$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4506  if test "$CLANG_VERSION" -ge 500002075 ; then
4507    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508$as_echo "no" >&6; }
4509    CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4510  else
4511    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4512$as_echo "yes" >&6; }
4513  fi
4514else
4515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4516$as_echo "N/A" >&6; }
4517fi
4518
4519CROSS_COMPILING=
4520if test "$cross_compiling" = yes; then
4521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4522$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4523  CROSS_COMPILING=1
4524fi
4525
4526
4527test "$GCC" = yes && CPP_MM=M;
4528
4529if test -f ./toolcheck; then
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4531$as_echo "$as_me: checking for buggy tools..." >&6;}
4532  sh ./toolcheck 1>&6
4533fi
4534
4535OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4536
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4538$as_echo_n "checking for BeOS... " >&6; }
4539case `uname` in
4540    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4541		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542$as_echo "yes" >&6; };;
4543    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544$as_echo "no" >&6; };;
4545esac
4546
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4548$as_echo_n "checking for QNX... " >&6; }
4549case `uname` in
4550    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4551		test -z "$with_x" && with_x=no
4552		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553$as_echo "yes" >&6; };;
4554    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555$as_echo "no" >&6; };;
4556esac
4557
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4559$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4560if test "`(uname) 2>/dev/null`" = Darwin; then
4561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562$as_echo "yes" >&6; }
4563  MACOS_X=yes
4564  CPPFLAGS="$CPPFLAGS -DMACOS_X"
4565
4566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4567$as_echo_n "checking --disable-darwin argument... " >&6; }
4568  # Check whether --enable-darwin was given.
4569if test "${enable_darwin+set}" = set; then :
4570  enableval=$enable_darwin;
4571else
4572  enable_darwin="yes"
4573fi
4574
4575  if test "$enable_darwin" = "yes"; then
4576    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4579$as_echo_n "checking if Darwin files are there... " >&6; }
4580    if test -f os_macosx.m; then
4581      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4582$as_echo "yes" >&6; }
4583    else
4584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4585$as_echo "no, Darwin support disabled" >&6; }
4586      enable_darwin=no
4587    fi
4588  else
4589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4590$as_echo "yes, Darwin support excluded" >&6; }
4591  fi
4592
4593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4594$as_echo_n "checking --with-mac-arch argument... " >&6; }
4595
4596# Check whether --with-mac-arch was given.
4597if test "${with_mac_arch+set}" = set; then :
4598  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4599$as_echo "$MACARCH" >&6; }
4600else
4601  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4602$as_echo "defaulting to $MACARCH" >&6; }
4603fi
4604
4605
4606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4607$as_echo_n "checking --with-developer-dir argument... " >&6; }
4608
4609# Check whether --with-developer-dir was given.
4610if test "${with_developer_dir+set}" = set; then :
4611  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4612$as_echo "$DEVELOPER_DIR" >&6; }
4613else
4614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4615$as_echo "not present" >&6; }
4616fi
4617
4618
4619  if test "x$DEVELOPER_DIR" = "x"; then
4620    # Extract the first word of "xcode-select", so it can be a program name with args.
4621set dummy xcode-select; ac_word=$2
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623$as_echo_n "checking for $ac_word... " >&6; }
4624if ${ac_cv_path_XCODE_SELECT+:} false; then :
4625  $as_echo_n "(cached) " >&6
4626else
4627  case $XCODE_SELECT in
4628  [\\/]* | ?:[\\/]*)
4629  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4630  ;;
4631  *)
4632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635  IFS=$as_save_IFS
4636  test -z "$as_dir" && as_dir=.
4637    for ac_exec_ext in '' $ac_executable_extensions; do
4638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641    break 2
4642  fi
4643done
4644  done
4645IFS=$as_save_IFS
4646
4647  ;;
4648esac
4649fi
4650XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4651if test -n "$XCODE_SELECT"; then
4652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4653$as_echo "$XCODE_SELECT" >&6; }
4654else
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656$as_echo "no" >&6; }
4657fi
4658
4659
4660    if test "x$XCODE_SELECT" != "x"; then
4661      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4662$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4663      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4664      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4665$as_echo "$DEVELOPER_DIR" >&6; }
4666    else
4667      DEVELOPER_DIR=/Developer
4668    fi
4669  fi
4670
4671  if test "x$MACARCH" = "xboth"; then
4672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4673$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4674                            save_cppflags="$CPPFLAGS"
4675    save_cflags="$CFLAGS"
4676    save_ldflags="$LDFLAGS"
4677    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4678    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679/* end confdefs.h.  */
4680
4681int
4682main ()
4683{
4684
4685  ;
4686  return 0;
4687}
4688_ACEOF
4689if ac_fn_c_try_link "$LINENO"; then :
4690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4691$as_echo "found" >&6; }
4692else
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4694$as_echo "not found" >&6; }
4695	CFLAGS="$save_cflags"
4696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4697$as_echo_n "checking if Intel architecture is supported... " >&6; }
4698	CPPFLAGS="$CPPFLAGS -arch i386"
4699	LDFLAGS="$save_ldflags -arch i386"
4700	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h.  */
4702
4703int
4704main ()
4705{
4706
4707  ;
4708  return 0;
4709}
4710_ACEOF
4711if ac_fn_c_try_link "$LINENO"; then :
4712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713$as_echo "yes" >&6; }; MACARCH="intel"
4714else
4715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716$as_echo "no" >&6; }
4717		MACARCH="ppc"
4718		CPPFLAGS="$save_cppflags -arch ppc"
4719		LDFLAGS="$save_ldflags -arch ppc"
4720fi
4721rm -f core conftest.err conftest.$ac_objext \
4722    conftest$ac_exeext conftest.$ac_ext
4723fi
4724rm -f core conftest.err conftest.$ac_objext \
4725    conftest$ac_exeext conftest.$ac_ext
4726  elif test "x$MACARCH" = "xintel"; then
4727    CPPFLAGS="$CPPFLAGS -arch intel"
4728    LDFLAGS="$LDFLAGS -arch intel"
4729  elif test "x$MACARCH" = "xppc"; then
4730    CPPFLAGS="$CPPFLAGS -arch ppc"
4731    LDFLAGS="$LDFLAGS -arch ppc"
4732  fi
4733
4734  if test "$enable_darwin" = "yes"; then
4735    MACOS_X_DARWIN=yes
4736    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4737    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4738            CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
4739
4740                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4741for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4742		  inttypes.h stdint.h unistd.h
4743do :
4744  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4745ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4746"
4747if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4748  cat >>confdefs.h <<_ACEOF
4749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4750_ACEOF
4751
4752fi
4753
4754done
4755
4756
4757ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4758if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4759  CARBON=yes
4760fi
4761
4762
4763    if test "x$CARBON" = "xyes"; then
4764      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
4765	with_x=no
4766      fi
4767    fi
4768  fi
4769
4770        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4771    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4772  fi
4773
4774else
4775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776$as_echo "no" >&6; }
4777fi
4778
4779for ac_header in AvailabilityMacros.h
4780do :
4781  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4782if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4783  cat >>confdefs.h <<_ACEOF
4784#define HAVE_AVAILABILITYMACROS_H 1
4785_ACEOF
4786
4787fi
4788
4789done
4790
4791
4792
4793
4794
4795if test "$cross_compiling" = no; then
4796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4797$as_echo_n "checking --with-local-dir argument... " >&6; }
4798  have_local_include=''
4799  have_local_lib=''
4800
4801# Check whether --with-local-dir was given.
4802if test "${with_local_dir+set}" = set; then :
4803  withval=$with_local_dir;
4804    local_dir="$withval"
4805    case "$withval" in
4806    */*) ;;
4807    no)
4808      # avoid adding local dir to LDFLAGS and CPPFLAGS
4809      have_local_include=yes
4810      have_local_lib=yes
4811      ;;
4812    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4813    esac
4814	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4815$as_echo "$local_dir" >&6; }
4816
4817else
4818
4819    local_dir=/usr/local
4820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4821$as_echo "Defaulting to $local_dir" >&6; }
4822
4823fi
4824
4825  if test "$GCC" = yes -a "$local_dir" != no; then
4826    echo 'void f(){}' > conftest.c
4827        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4828    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4829    rm -f conftest.c conftest.o
4830  fi
4831  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4832    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4833    if test "$tt" = "$LDFLAGS"; then
4834      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4835    fi
4836  fi
4837  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4838    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4839    if test "$tt" = "$CPPFLAGS"; then
4840      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4841    fi
4842  fi
4843fi
4844
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4846$as_echo_n "checking --with-vim-name argument... " >&6; }
4847
4848# Check whether --with-vim-name was given.
4849if test "${with_vim_name+set}" = set; then :
4850  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4851$as_echo "$VIMNAME" >&6; }
4852else
4853  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4854$as_echo "Defaulting to $VIMNAME" >&6; }
4855fi
4856
4857
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4859$as_echo_n "checking --with-ex-name argument... " >&6; }
4860
4861# Check whether --with-ex-name was given.
4862if test "${with_ex_name+set}" = set; then :
4863  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4864$as_echo "$EXNAME" >&6; }
4865else
4866  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4867$as_echo "Defaulting to ex" >&6; }
4868fi
4869
4870
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4872$as_echo_n "checking --with-view-name argument... " >&6; }
4873
4874# Check whether --with-view-name was given.
4875if test "${with_view_name+set}" = set; then :
4876  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4877$as_echo "$VIEWNAME" >&6; }
4878else
4879  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4880$as_echo "Defaulting to view" >&6; }
4881fi
4882
4883
4884
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4886$as_echo_n "checking --with-global-runtime argument... " >&6; }
4887
4888# Check whether --with-global-runtime was given.
4889if test "${with_global_runtime+set}" = set; then :
4890  withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4891$as_echo "$withval" >&6; }
4892else
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895fi
4896
4897
4898if test "X$RUNTIME_GLOBAL" != "X"; then
4899  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" }')
4900  cat >>confdefs.h <<_ACEOF
4901#define RUNTIME_GLOBAL "$RUNTIME_GLOBAL"
4902_ACEOF
4903
4904  cat >>confdefs.h <<_ACEOF
4905#define RUNTIME_GLOBAL_AFTER "$RUNTIME_GLOBAL_AFTER"
4906_ACEOF
4907
4908fi
4909
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4911$as_echo_n "checking --with-modified-by argument... " >&6; }
4912
4913# Check whether --with-modified-by was given.
4914if test "${with_modified_by+set}" = set; then :
4915  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4916$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4917#define MODIFIED_BY "$withval"
4918_ACEOF
4919
4920else
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
4923fi
4924
4925
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4927$as_echo_n "checking if character set is EBCDIC... " >&6; }
4928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h.  */
4930
4931int
4932main ()
4933{
4934 /* TryCompile function for CharSet.
4935   Treat any failure as ASCII for compatibility with existing art.
4936   Use compile-time rather than run-time tests for cross-compiler
4937   tolerance.  */
4938#if '0'!=240
4939make an error "Character set is not EBCDIC"
4940#endif
4941  ;
4942  return 0;
4943}
4944_ACEOF
4945if ac_fn_c_try_compile "$LINENO"; then :
4946   # TryCompile action if true
4947cf_cv_ebcdic=yes
4948else
4949   # TryCompile action if false
4950cf_cv_ebcdic=no
4951fi
4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953# end of TryCompile ])
4954# end of CacheVal CvEbcdic
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4956$as_echo "$cf_cv_ebcdic" >&6; }
4957case "$cf_cv_ebcdic" in  #(vi
4958    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4959
4960		line_break='"\\n"'
4961		;;
4962    *)		line_break='"\\012"';;
4963esac
4964
4965
4966if test "$cf_cv_ebcdic" = "yes"; then
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4968$as_echo_n "checking for z/OS Unix... " >&6; }
4969case `uname` in
4970    OS/390)	zOSUnix="yes";
4971										if test "$CC" = "cc"; then
4972		  ccm="$_CC_CCMODE"
4973		  ccn="CC"
4974		else
4975		  if test "$CC" = "c89"; then
4976		    ccm="$_CC_C89MODE"
4977		    ccn="C89"
4978		  else
4979		    ccm=1
4980		  fi
4981		fi
4982		if test "$ccm" != "1"; then
4983		  echo ""
4984		  echo "------------------------------------------"
4985		  echo " On z/OS Unix, the environment variable"
4986		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4987		  echo " Do:"
4988		  echo "    export _CC_${ccn}MODE=1"
4989		  echo " and then call configure again."
4990		  echo "------------------------------------------"
4991		  exit 1
4992		fi
4993		# Set CFLAGS for configure process.
4994		# This will be reset later for config.mk.
4995		# Use haltonmsg to force error for missing H files.
4996		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
4997		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999$as_echo "yes" >&6; }
5000		;;
5001    *)		zOSUnix="no";
5002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003$as_echo "no" >&6; }
5004		;;
5005esac
5006fi
5007
5008if test "$zOSUnix" = "yes"; then
5009    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
5010else
5011    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
5012fi
5013
5014
5015
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
5017$as_echo_n "checking --disable-smack argument... " >&6; }
5018# Check whether --enable-smack was given.
5019if test "${enable_smack+set}" = set; then :
5020  enableval=$enable_smack;
5021else
5022  enable_smack="yes"
5023fi
5024
5025if test "$enable_smack" = "yes"; then
5026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027$as_echo "no" >&6; }
5028  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
5029if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
5030  true
5031else
5032  enable_smack="no"
5033fi
5034
5035
5036else
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5038$as_echo "yes" >&6; }
5039fi
5040if test "$enable_smack" = "yes"; then
5041  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
5042if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
5043  true
5044else
5045  enable_smack="no"
5046fi
5047
5048
5049fi
5050if test "$enable_smack" = "yes"; then
5051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
5052$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
5053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054/* end confdefs.h.  */
5055#include <linux/xattr.h>
5056_ACEOF
5057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5058  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5060$as_echo "yes" >&6; }
5061else
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }; enable_smack="no"
5064fi
5065rm -f conftest*
5066
5067fi
5068if test "$enable_smack" = "yes"; then
5069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
5070$as_echo_n "checking for setxattr in -lattr... " >&6; }
5071if ${ac_cv_lib_attr_setxattr+:} false; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074  ac_check_lib_save_LIBS=$LIBS
5075LIBS="-lattr  $LIBS"
5076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078
5079/* Override any GCC internal prototype to avoid an error.
5080   Use char because int might match the return type of a GCC
5081   builtin and then its argument prototype would still apply.  */
5082#ifdef __cplusplus
5083extern "C"
5084#endif
5085char setxattr ();
5086int
5087main ()
5088{
5089return setxattr ();
5090  ;
5091  return 0;
5092}
5093_ACEOF
5094if ac_fn_c_try_link "$LINENO"; then :
5095  ac_cv_lib_attr_setxattr=yes
5096else
5097  ac_cv_lib_attr_setxattr=no
5098fi
5099rm -f core conftest.err conftest.$ac_objext \
5100    conftest$ac_exeext conftest.$ac_ext
5101LIBS=$ac_check_lib_save_LIBS
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
5104$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
5105if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
5106  LIBS="$LIBS -lattr"
5107	   found_smack="yes"
5108	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
5109
5110fi
5111
5112fi
5113
5114if test "x$found_smack" = "x"; then
5115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
5116$as_echo_n "checking --disable-selinux argument... " >&6; }
5117  # Check whether --enable-selinux was given.
5118if test "${enable_selinux+set}" = set; then :
5119  enableval=$enable_selinux;
5120else
5121  enable_selinux="yes"
5122fi
5123
5124  if test "$enable_selinux" = "yes"; then
5125    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126$as_echo "no" >&6; }
5127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
5128$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
5129if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
5130  $as_echo_n "(cached) " >&6
5131else
5132  ac_check_lib_save_LIBS=$LIBS
5133LIBS="-lselinux  $LIBS"
5134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h.  */
5136
5137/* Override any GCC internal prototype to avoid an error.
5138   Use char because int might match the return type of a GCC
5139   builtin and then its argument prototype would still apply.  */
5140#ifdef __cplusplus
5141extern "C"
5142#endif
5143char is_selinux_enabled ();
5144int
5145main ()
5146{
5147return is_selinux_enabled ();
5148  ;
5149  return 0;
5150}
5151_ACEOF
5152if ac_fn_c_try_link "$LINENO"; then :
5153  ac_cv_lib_selinux_is_selinux_enabled=yes
5154else
5155  ac_cv_lib_selinux_is_selinux_enabled=no
5156fi
5157rm -f core conftest.err conftest.$ac_objext \
5158    conftest$ac_exeext conftest.$ac_ext
5159LIBS=$ac_check_lib_save_LIBS
5160fi
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
5162$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
5163if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
5164  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
5165if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
5166  LIBS="$LIBS -lselinux"
5167	    $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5168
5169fi
5170
5171
5172fi
5173
5174  else
5175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5176$as_echo "yes" >&6; }
5177  fi
5178fi
5179
5180
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
5182$as_echo_n "checking --with-features argument... " >&6; }
5183
5184# Check whether --with-features was given.
5185if test "${with_features+set}" = set; then :
5186  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
5187$as_echo "$features" >&6; }
5188else
5189  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
5190$as_echo "Defaulting to huge" >&6; }
5191fi
5192
5193
5194dovimdiff=""
5195dogvimdiff=""
5196case "$features" in
5197  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
5198 ;;
5199  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
5200 ;;
5201  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
5202 dovimdiff="installvimdiff";
5203			dogvimdiff="installgvimdiff" ;;
5204  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
5205 dovimdiff="installvimdiff";
5206			dogvimdiff="installgvimdiff" ;;
5207  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
5208 dovimdiff="installvimdiff";
5209			dogvimdiff="installgvimdiff" ;;
5210  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
5211$as_echo "Sorry, $features is not supported" >&6; } ;;
5212esac
5213
5214
5215
5216
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
5218$as_echo_n "checking --with-compiledby argument... " >&6; }
5219
5220# Check whether --with-compiledby was given.
5221if test "${with_compiledby+set}" = set; then :
5222  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5223$as_echo "$withval" >&6; }
5224else
5225  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228
5229
5230
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
5232$as_echo_n "checking --disable-xsmp argument... " >&6; }
5233# Check whether --enable-xsmp was given.
5234if test "${enable_xsmp+set}" = set; then :
5235  enableval=$enable_xsmp;
5236else
5237  enable_xsmp="yes"
5238fi
5239
5240
5241if test "$enable_xsmp" = "yes"; then
5242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
5245$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
5246  # Check whether --enable-xsmp-interact was given.
5247if test "${enable_xsmp_interact+set}" = set; then :
5248  enableval=$enable_xsmp_interact;
5249else
5250  enable_xsmp_interact="yes"
5251fi
5252
5253  if test "$enable_xsmp_interact" = "yes"; then
5254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
5257
5258  else
5259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5260$as_echo "yes" >&6; }
5261  fi
5262else
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5264$as_echo "yes" >&6; }
5265fi
5266
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
5268$as_echo_n "checking --enable-luainterp argument... " >&6; }
5269# Check whether --enable-luainterp was given.
5270if test "${enable_luainterp+set}" = set; then :
5271  enableval=$enable_luainterp;
5272else
5273  enable_luainterp="no"
5274fi
5275
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
5277$as_echo "$enable_luainterp" >&6; }
5278
5279if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
5280  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5281    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
5282  fi
5283
5284
5285
5286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
5287$as_echo_n "checking --with-lua-prefix argument... " >&6; }
5288
5289# Check whether --with-lua_prefix was given.
5290if test "${with_lua_prefix+set}" = set; then :
5291  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
5292$as_echo "$with_lua_prefix" >&6; }
5293else
5294  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
5296fi
5297
5298
5299  if test "X$with_lua_prefix" != "X"; then
5300       vi_cv_path_lua_pfx="$with_lua_prefix"
5301  else
5302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
5303$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
5304    if test "X$LUA_PREFIX" != "X"; then
5305	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
5306$as_echo "\"$LUA_PREFIX\"" >&6; }
5307	vi_cv_path_lua_pfx="$LUA_PREFIX"
5308    else
5309	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
5310$as_echo "not set, default to /usr" >&6; }
5311	vi_cv_path_lua_pfx="/usr"
5312    fi
5313  fi
5314
5315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
5316$as_echo_n "checking --with-luajit... " >&6; }
5317
5318# Check whether --with-luajit was given.
5319if test "${with_luajit+set}" = set; then :
5320  withval=$with_luajit; vi_cv_with_luajit="$withval"
5321else
5322  vi_cv_with_luajit="no"
5323fi
5324
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
5326$as_echo "$vi_cv_with_luajit" >&6; }
5327
5328  LUA_INC=
5329  if test "X$vi_cv_path_lua_pfx" != "X"; then
5330    if test "x$vi_cv_with_luajit" != "xno"; then
5331            # Extract the first word of "luajit", so it can be a program name with args.
5332set dummy luajit; ac_word=$2
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334$as_echo_n "checking for $ac_word... " >&6; }
5335if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
5336  $as_echo_n "(cached) " >&6
5337else
5338  case $vi_cv_path_luajit in
5339  [\\/]* | ?:[\\/]*)
5340  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
5341  ;;
5342  *)
5343  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346  IFS=$as_save_IFS
5347  test -z "$as_dir" && as_dir=.
5348    for ac_exec_ext in '' $ac_executable_extensions; do
5349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
5351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352    break 2
5353  fi
5354done
5355  done
5356IFS=$as_save_IFS
5357
5358  ;;
5359esac
5360fi
5361vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
5362if test -n "$vi_cv_path_luajit"; then
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
5364$as_echo "$vi_cv_path_luajit" >&6; }
5365else
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367$as_echo "no" >&6; }
5368fi
5369
5370
5371      if test "X$vi_cv_path_luajit" != "X"; then
5372		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
5373$as_echo_n "checking LuaJIT version... " >&6; }
5374if ${vi_cv_version_luajit+:} false; then :
5375  $as_echo_n "(cached) " >&6
5376else
5377   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
5378fi
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
5380$as_echo "$vi_cv_version_luajit" >&6; }
5381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
5382$as_echo_n "checking Lua version of LuaJIT... " >&6; }
5383if ${vi_cv_version_lua_luajit+:} false; then :
5384  $as_echo_n "(cached) " >&6
5385else
5386   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5389$as_echo "$vi_cv_version_lua_luajit" >&6; }
5390	vi_cv_path_lua="$vi_cv_path_luajit"
5391	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5392      fi
5393    else
5394            # Extract the first word of "lua", so it can be a program name with args.
5395set dummy lua; ac_word=$2
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
5398if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5399  $as_echo_n "(cached) " >&6
5400else
5401  case $vi_cv_path_plain_lua in
5402  [\\/]* | ?:[\\/]*)
5403  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5404  ;;
5405  *)
5406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411    for ac_exec_ext in '' $ac_executable_extensions; do
5412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415    break 2
5416  fi
5417done
5418  done
5419IFS=$as_save_IFS
5420
5421  ;;
5422esac
5423fi
5424vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5425if test -n "$vi_cv_path_plain_lua"; then
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5427$as_echo "$vi_cv_path_plain_lua" >&6; }
5428else
5429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430$as_echo "no" >&6; }
5431fi
5432
5433
5434      if test "X$vi_cv_path_plain_lua" != "X"; then
5435		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5436$as_echo_n "checking Lua version... " >&6; }
5437if ${vi_cv_version_plain_lua+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5443$as_echo "$vi_cv_version_plain_lua" >&6; }
5444      fi
5445      vi_cv_path_lua="$vi_cv_path_plain_lua"
5446      vi_cv_version_lua="$vi_cv_version_plain_lua"
5447    fi
5448    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5449      { $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
5450$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5451      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5452	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5453$as_echo "yes" >&6; }
5454	LUA_INC=/luajit-$vi_cv_version_luajit
5455      fi
5456    fi
5457    if test "X$LUA_INC" = "X"; then
5458      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5459$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5460      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5461	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462$as_echo "yes" >&6; }
5463      else
5464	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465$as_echo "no" >&6; }
5466	{ $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
5467$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5468	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5469	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470$as_echo "yes" >&6; }
5471	  LUA_INC=/lua$vi_cv_version_lua
5472	else
5473	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475	  vi_cv_path_lua_pfx=
5476	fi
5477      fi
5478    fi
5479  fi
5480
5481  if test "X$vi_cv_path_lua_pfx" != "X"; then
5482    if test "x$vi_cv_with_luajit" != "xno"; then
5483      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5484      if test "X$multiarch" != "X"; then
5485	lib_multiarch="lib/${multiarch}"
5486      else
5487	lib_multiarch="lib"
5488      fi
5489      if test "X$vi_cv_version_lua" = "X"; then
5490	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5491      else
5492	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5493      fi
5494    else
5495      if test "X$LUA_INC" != "X"; then
5496		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5497      else
5498	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5499      fi
5500    fi
5501    if test "$enable_luainterp" = "dynamic"; then
5502      lua_ok="yes"
5503    else
5504      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5505$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5506      libs_save=$LIBS
5507      LIBS="$LIBS $LUA_LIBS"
5508      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h.  */
5510
5511int
5512main ()
5513{
5514
5515  ;
5516  return 0;
5517}
5518_ACEOF
5519if ac_fn_c_try_link "$LINENO"; then :
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521$as_echo "yes" >&6; }; lua_ok="yes"
5522else
5523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5525fi
5526rm -f core conftest.err conftest.$ac_objext \
5527    conftest$ac_exeext conftest.$ac_ext
5528      LIBS=$libs_save
5529    fi
5530    if test "x$lua_ok" = "xyes"; then
5531      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5532      LUA_SRC="if_lua.c"
5533      LUA_OBJ="objects/if_lua.o"
5534      LUA_PRO="if_lua.pro"
5535      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5536
5537    fi
5538    if test "$enable_luainterp" = "dynamic"; then
5539      if test "x$vi_cv_with_luajit" != "xno"; then
5540	luajit="jit"
5541      fi
5542      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5543	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5544      else
5545	if test "x$MACOS_X" = "xyes"; then
5546	  ext="dylib"
5547	  indexes=""
5548	else
5549	  ext="so"
5550	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5551	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5552	  if test "X$multiarch" != "X"; then
5553	    lib_multiarch="lib/${multiarch}"
5554	  fi
5555	fi
5556			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5557$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5558	for subdir in "${lib_multiarch}" lib64 lib; do
5559	  if test -z "$subdir"; then
5560	    continue
5561	  fi
5562	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5563	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5564	    for i in $indexes ""; do
5565	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5566		sover2="$i"
5567		break 3
5568	      fi
5569	    done
5570	  done
5571	  sover=""
5572	done
5573	if test "X$sover" = "X"; then
5574	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
5576	  lua_ok="no"
5577	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5578	else
5579	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580$as_echo "yes" >&6; }
5581	  lua_ok="yes"
5582	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5583	fi
5584      fi
5585      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5586
5587      LUA_LIBS=""
5588      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5589    fi
5590    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5591       test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5592       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5593            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5594    fi
5595  fi
5596  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5597    as_fn_error $? "could not configure lua" "$LINENO" 5
5598  fi
5599
5600
5601
5602
5603
5604fi
5605
5606
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5608$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5609# Check whether --enable-mzschemeinterp was given.
5610if test "${enable_mzschemeinterp+set}" = set; then :
5611  enableval=$enable_mzschemeinterp;
5612else
5613  enable_mzschemeinterp="no"
5614fi
5615
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5617$as_echo "$enable_mzschemeinterp" >&6; }
5618
5619if test "$enable_mzschemeinterp" = "yes"; then
5620
5621
5622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5623$as_echo_n "checking --with-plthome argument... " >&6; }
5624
5625# Check whether --with-plthome was given.
5626if test "${with_plthome+set}" = set; then :
5627  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5628$as_echo "$with_plthome" >&6; }
5629else
5630  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5631$as_echo "\"no\"" >&6; }
5632fi
5633
5634
5635  if test "X$with_plthome" != "X"; then
5636       vi_cv_path_mzscheme_pfx="$with_plthome"
5637       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5638  else
5639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5640$as_echo_n "checking PLTHOME environment var... " >&6; }
5641    if test "X$PLTHOME" != "X"; then
5642	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5643$as_echo "\"$PLTHOME\"" >&6; }
5644	vi_cv_path_mzscheme_pfx="$PLTHOME"
5645	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5646    else
5647	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5648$as_echo "not set" >&6; }
5649		# Extract the first word of "mzscheme", so it can be a program name with args.
5650set dummy mzscheme; ac_word=$2
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652$as_echo_n "checking for $ac_word... " >&6; }
5653if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656  case $vi_cv_path_mzscheme in
5657  [\\/]* | ?:[\\/]*)
5658  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5659  ;;
5660  *)
5661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664  IFS=$as_save_IFS
5665  test -z "$as_dir" && as_dir=.
5666    for ac_exec_ext in '' $ac_executable_extensions; do
5667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670    break 2
5671  fi
5672done
5673  done
5674IFS=$as_save_IFS
5675
5676  ;;
5677esac
5678fi
5679vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5680if test -n "$vi_cv_path_mzscheme"; then
5681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5682$as_echo "$vi_cv_path_mzscheme" >&6; }
5683else
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685$as_echo "no" >&6; }
5686fi
5687
5688
5689
5690			if test "X$vi_cv_path_mzscheme" != "X"; then
5691	  lsout=`ls -l $vi_cv_path_mzscheme`
5692	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5693	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5694	  fi
5695	fi
5696
5697	if test "X$vi_cv_path_mzscheme" != "X"; then
5698	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5699$as_echo_n "checking MzScheme install prefix... " >&6; }
5700if ${vi_cv_path_mzscheme_pfx+:} false; then :
5701  $as_echo_n "(cached) " >&6
5702else
5703  	    	    echo "(display (simplify-path		\
5704	       (build-path (call-with-values	\
5705		(lambda () (split-path (find-system-path (quote exec-file)))) \
5706		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5707	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5708		sed -e 's+/$++'`
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5711$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5712	    rm -f mzdirs.scm
5713	fi
5714    fi
5715  fi
5716
5717  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5719$as_echo_n "checking for racket include directory... " >&6; }
5720    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5721    if test "X$SCHEME_INC" != "X"; then
5722      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5723$as_echo "${SCHEME_INC}" >&6; }
5724    else
5725      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5726$as_echo "not found" >&6; }
5727      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5728$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5729      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5730	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5731	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5732$as_echo "yes" >&6; }
5733      else
5734	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735$as_echo "no" >&6; }
5736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5737$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5738	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5739	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5740$as_echo "yes" >&6; }
5741	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5742	else
5743	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5746$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5747	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5748	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5749$as_echo "yes" >&6; }
5750	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5751	  else
5752	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753$as_echo "no" >&6; }
5754	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5755$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5756	    if test -f /usr/include/plt/scheme.h; then
5757	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758$as_echo "yes" >&6; }
5759	      SCHEME_INC=/usr/include/plt
5760	    else
5761	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762$as_echo "no" >&6; }
5763	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5764$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5765	      if test -f /usr/include/racket/scheme.h; then
5766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5767$as_echo "yes" >&6; }
5768		SCHEME_INC=/usr/include/racket
5769	      else
5770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772		vi_cv_path_mzscheme_pfx=
5773	      fi
5774	    fi
5775	  fi
5776	fi
5777      fi
5778    fi
5779  fi
5780
5781  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5782
5783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5784$as_echo_n "checking for racket lib directory... " >&6; }
5785    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5786    if test "X$SCHEME_LIB" != "X"; then
5787      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5788$as_echo "${SCHEME_LIB}" >&6; }
5789    else
5790      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5791$as_echo "not found" >&6; }
5792    fi
5793
5794    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5795      if test "X$path" != "X"; then
5796	if test "x$MACOS_X" = "xyes"; then
5797	  MZSCHEME_LIBS="-framework Racket"
5798	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5799	elif test -f "${path}/libmzscheme3m.a"; then
5800	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5801	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5802	elif test -f "${path}/libracket3m.a"; then
5803	  MZSCHEME_LIBS="${path}/libracket3m.a"
5804	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5805	elif test -f "${path}/libracket.a"; then
5806	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5807	elif test -f "${path}/libmzscheme.a"; then
5808	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5809	else
5810	  	  if test -f "${path}/libmzscheme3m.so"; then
5811	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5812	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5813	  elif test -f "${path}/libracket3m.so"; then
5814	    MZSCHEME_LIBS="-L${path} -lracket3m"
5815	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5816	  elif test -f "${path}/libracket.so"; then
5817	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5818	  else
5819	    	    if test "$path" != "$SCHEME_LIB"; then
5820	      continue
5821	    fi
5822	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5823	  fi
5824	  if test "$GCC" = yes; then
5825	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5826	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5827				   uname -r | grep '^5' >/dev/null; then
5828	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5829	  fi
5830	fi
5831      fi
5832      if test "X$MZSCHEME_LIBS" != "X"; then
5833	break
5834      fi
5835    done
5836
5837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5838$as_echo_n "checking if racket requires -pthread... " >&6; }
5839    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5840      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5841$as_echo "yes" >&6; }
5842      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5843      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5844    else
5845      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846$as_echo "no" >&6; }
5847    fi
5848
5849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5850$as_echo_n "checking for racket config directory... " >&6; }
5851    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5852    if test "X$SCHEME_CONFIGDIR" != "X"; then
5853      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5855$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5856    else
5857      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5858$as_echo "not found" >&6; }
5859    fi
5860
5861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5862$as_echo_n "checking for racket collects directory... " >&6; }
5863    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))))'`
5864    if test "X$SCHEME_COLLECTS" = "X"; then
5865      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5866	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5867      else
5868	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5869	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5870	else
5871	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5872	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5873	  else
5874	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5875	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5876	    fi
5877	  fi
5878	fi
5879      fi
5880    fi
5881    if test "X$SCHEME_COLLECTS" != "X" ; then
5882      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5883$as_echo "${SCHEME_COLLECTS}" >&6; }
5884    else
5885      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5886$as_echo "not found" >&6; }
5887    fi
5888
5889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5890$as_echo_n "checking for mzscheme_base.c... " >&6; }
5891    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5892      MZSCHEME_EXTRA="mzscheme_base.c"
5893      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5894      MZSCHEME_MOD="++lib scheme/base"
5895    else
5896      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5897	MZSCHEME_EXTRA="mzscheme_base.c"
5898	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5899	MZSCHEME_MOD="++lib scheme/base"
5900      else
5901	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5902	  MZSCHEME_EXTRA="mzscheme_base.c"
5903	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5904	  MZSCHEME_MOD=""
5905	fi
5906      fi
5907    fi
5908    if test "X$MZSCHEME_EXTRA" != "X" ; then
5909            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5910      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5911$as_echo "needed" >&6; }
5912    else
5913      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5914$as_echo "not needed" >&6; }
5915    fi
5916
5917        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5918$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5919if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922  ac_check_lib_save_LIBS=$LIBS
5923LIBS="-lffi  $LIBS"
5924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h.  */
5926
5927/* Override any GCC internal prototype to avoid an error.
5928   Use char because int might match the return type of a GCC
5929   builtin and then its argument prototype would still apply.  */
5930#ifdef __cplusplus
5931extern "C"
5932#endif
5933char ffi_type_void ();
5934int
5935main ()
5936{
5937return ffi_type_void ();
5938  ;
5939  return 0;
5940}
5941_ACEOF
5942if ac_fn_c_try_link "$LINENO"; then :
5943  ac_cv_lib_ffi_ffi_type_void=yes
5944else
5945  ac_cv_lib_ffi_ffi_type_void=no
5946fi
5947rm -f core conftest.err conftest.$ac_objext \
5948    conftest$ac_exeext conftest.$ac_ext
5949LIBS=$ac_check_lib_save_LIBS
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5952$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5953if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5954  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5955fi
5956
5957
5958    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5959      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5960
5961        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5962$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5963    cflags_save=$CFLAGS
5964    libs_save=$LIBS
5965    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5966    LIBS="$LIBS $MZSCHEME_LIBS"
5967    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h.  */
5969
5970int
5971main ()
5972{
5973
5974  ;
5975  return 0;
5976}
5977_ACEOF
5978if ac_fn_c_try_link "$LINENO"; then :
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5980$as_echo "yes" >&6; }; mzs_ok=yes
5981else
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5983$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5984fi
5985rm -f core conftest.err conftest.$ac_objext \
5986    conftest$ac_exeext conftest.$ac_ext
5987    CFLAGS=$cflags_save
5988    LIBS=$libs_save
5989    if test $mzs_ok = yes; then
5990      MZSCHEME_SRC="if_mzsch.c"
5991      MZSCHEME_OBJ="objects/if_mzsch.o"
5992      MZSCHEME_PRO="if_mzsch.pro"
5993      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
5994
5995    else
5996      MZSCHEME_CFLAGS=
5997      MZSCHEME_LIBS=
5998      MZSCHEME_EXTRA=
5999      MZSCHEME_MZC=
6000    fi
6001  fi
6002
6003
6004
6005
6006
6007
6008
6009fi
6010
6011
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
6013$as_echo_n "checking --enable-perlinterp argument... " >&6; }
6014# Check whether --enable-perlinterp was given.
6015if test "${enable_perlinterp+set}" = set; then :
6016  enableval=$enable_perlinterp;
6017else
6018  enable_perlinterp="no"
6019fi
6020
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
6022$as_echo "$enable_perlinterp" >&6; }
6023if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
6024  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6025    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
6026  fi
6027
6028  # Extract the first word of "perl", so it can be a program name with args.
6029set dummy perl; ac_word=$2
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031$as_echo_n "checking for $ac_word... " >&6; }
6032if ${ac_cv_path_vi_cv_path_perl+:} false; then :
6033  $as_echo_n "(cached) " >&6
6034else
6035  case $vi_cv_path_perl in
6036  [\\/]* | ?:[\\/]*)
6037  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
6038  ;;
6039  *)
6040  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043  IFS=$as_save_IFS
6044  test -z "$as_dir" && as_dir=.
6045    for ac_exec_ext in '' $ac_executable_extensions; do
6046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6047    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
6048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049    break 2
6050  fi
6051done
6052  done
6053IFS=$as_save_IFS
6054
6055  ;;
6056esac
6057fi
6058vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
6059if test -n "$vi_cv_path_perl"; then
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
6061$as_echo "$vi_cv_path_perl" >&6; }
6062else
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067
6068  if test "X$vi_cv_path_perl" != "X"; then
6069    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
6070$as_echo_n "checking Perl version... " >&6; }
6071    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
6072     eval `$vi_cv_path_perl -V:usethreads`
6073     eval `$vi_cv_path_perl -V:libperl`
6074     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
6075       badthreads=no
6076     else
6077       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
6078	 eval `$vi_cv_path_perl -V:use5005threads`
6079	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
6080	   badthreads=no
6081	 else
6082	   badthreads=yes
6083	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
6084$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
6085	 fi
6086       else
6087	 badthreads=yes
6088	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
6089$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
6090       fi
6091     fi
6092     if test $badthreads = no; then
6093      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6094$as_echo "OK" >&6; }
6095      eval `$vi_cv_path_perl -V:shrpenv`
6096      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
6097	shrpenv=""
6098      fi
6099      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
6100
6101      vi_cv_perl_extutils=unknown_perl_extutils_path
6102      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
6103	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
6104	if test -f "$xsubpp_path"; then
6105	  vi_cv_perl_xsubpp="$xsubpp_path"
6106	fi
6107      done
6108
6109                              perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
6110		-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
6111		-e 's/-fdebug-prefix-map[^ ]*//g' \
6112		-e 's/-pipe //' \
6113		-e 's/-W[^ ]*//g' \
6114		-e 's/-D_FORTIFY_SOURCE=.//g'`
6115            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
6116		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
6117			-e 's/-bE:perl.exp//' -e 's/-lc //'`
6118                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
6119		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
6120
6121                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
6122$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
6123      cflags_save=$CFLAGS
6124      libs_save=$LIBS
6125      ldflags_save=$LDFLAGS
6126      CFLAGS="$CFLAGS $perlcppflags"
6127      LIBS="$LIBS $perllibs"
6128      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
6129      LDFLAGS="$perlldflags $LDFLAGS"
6130      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h.  */
6132
6133int
6134main ()
6135{
6136
6137  ;
6138  return 0;
6139}
6140_ACEOF
6141if ac_fn_c_try_link "$LINENO"; then :
6142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6143$as_echo "yes" >&6; }; perl_ok=yes
6144else
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
6146$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
6147fi
6148rm -f core conftest.err conftest.$ac_objext \
6149    conftest$ac_exeext conftest.$ac_ext
6150      CFLAGS=$cflags_save
6151      LIBS=$libs_save
6152      LDFLAGS=$ldflags_save
6153      if test $perl_ok = yes; then
6154	if test "X$perlcppflags" != "X"; then
6155	  PERL_CFLAGS=$perlcppflags
6156	fi
6157	if test "X$perlldflags" != "X"; then
6158	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
6159	    LDFLAGS="$perlldflags $LDFLAGS"
6160	  fi
6161	fi
6162	PERL_LIBS=$perllibs
6163	PERL_SRC="auto/if_perl.c if_perlsfio.c"
6164	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
6165	PERL_PRO="if_perl.pro if_perlsfio.pro"
6166	$as_echo "#define FEAT_PERL 1" >>confdefs.h
6167
6168      fi
6169     fi
6170    else
6171      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
6172$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
6173    fi
6174  fi
6175
6176  if test "x$MACOS_X" = "xyes"; then
6177        dir=/System/Library/Perl
6178    darwindir=$dir/darwin
6179    if test -d $darwindir; then
6180      PERL=/usr/bin/perl
6181    else
6182            dir=/System/Library/Perl/5.8.1
6183      darwindir=$dir/darwin-thread-multi-2level
6184      if test -d $darwindir; then
6185	PERL=/usr/bin/perl
6186      fi
6187    fi
6188    if test -n "$PERL"; then
6189      PERL_DIR="$dir"
6190      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
6191      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
6192      PERL_LIBS="-L$darwindir/CORE -lperl"
6193    fi
6194                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6195    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6196  fi
6197  if test "$enable_perlinterp" = "dynamic"; then
6198    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
6199      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
6200
6201      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
6202    fi
6203  fi
6204
6205  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
6206    as_fn_error $? "could not configure perl" "$LINENO" 5
6207  fi
6208fi
6209
6210
6211
6212
6213
6214
6215
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
6217$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
6218# Check whether --enable-pythoninterp was given.
6219if test "${enable_pythoninterp+set}" = set; then :
6220  enableval=$enable_pythoninterp;
6221else
6222  enable_pythoninterp="no"
6223fi
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
6226$as_echo "$enable_pythoninterp" >&6; }
6227if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
6228  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6229    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6230  fi
6231
6232    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5
6233$as_echo_n "checking --with-python-command argument... " >&6; }
6234
6235
6236# Check whether --with-python-command was given.
6237if test "${with_python_command+set}" = set; then :
6238  withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6239$as_echo "$vi_cv_path_python" >&6; }
6240else
6241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242$as_echo "no" >&6; }
6243fi
6244
6245
6246  if test "X$vi_cv_path_python" = "X"; then
6247    for ac_prog in python2 python
6248do
6249  # Extract the first word of "$ac_prog", so it can be a program name with args.
6250set dummy $ac_prog; ac_word=$2
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252$as_echo_n "checking for $ac_word... " >&6; }
6253if ${ac_cv_path_vi_cv_path_python+:} false; then :
6254  $as_echo_n "(cached) " >&6
6255else
6256  case $vi_cv_path_python in
6257  [\\/]* | ?:[\\/]*)
6258  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
6259  ;;
6260  *)
6261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264  IFS=$as_save_IFS
6265  test -z "$as_dir" && as_dir=.
6266    for ac_exec_ext in '' $ac_executable_extensions; do
6267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
6269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270    break 2
6271  fi
6272done
6273  done
6274IFS=$as_save_IFS
6275
6276  ;;
6277esac
6278fi
6279vi_cv_path_python=$ac_cv_path_vi_cv_path_python
6280if test -n "$vi_cv_path_python"; then
6281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6282$as_echo "$vi_cv_path_python" >&6; }
6283else
6284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285$as_echo "no" >&6; }
6286fi
6287
6288
6289  test -n "$vi_cv_path_python" && break
6290done
6291
6292  fi
6293  if test "X$vi_cv_path_python" != "X"; then
6294
6295        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6296$as_echo_n "checking Python version... " >&6; }
6297if ${vi_cv_var_python_version+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  vi_cv_var_python_version=`
6301	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
6302
6303fi
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
6305$as_echo "$vi_cv_var_python_version" >&6; }
6306
6307        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
6308$as_echo_n "checking Python is 2.3 or better... " >&6; }
6309    if ${vi_cv_path_python} -c \
6310	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
6311    then
6312      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6313$as_echo "yep" >&6; }
6314
6315            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6316$as_echo_n "checking Python's install prefix... " >&6; }
6317if ${vi_cv_path_python_pfx+:} false; then :
6318  $as_echo_n "(cached) " >&6
6319else
6320   vi_cv_path_python_pfx=`
6321	    ${vi_cv_path_python} -c \
6322		"import sys; print sys.prefix"`
6323fi
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
6325$as_echo "$vi_cv_path_python_pfx" >&6; }
6326
6327            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6328$as_echo_n "checking Python's execution prefix... " >&6; }
6329if ${vi_cv_path_python_epfx+:} false; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332   vi_cv_path_python_epfx=`
6333	    ${vi_cv_path_python} -c \
6334		"import sys; print sys.exec_prefix"`
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
6337$as_echo "$vi_cv_path_python_epfx" >&6; }
6338
6339
6340      if ${vi_cv_path_pythonpath+:} false; then :
6341  $as_echo_n "(cached) " >&6
6342else
6343   vi_cv_path_pythonpath=`
6344	    unset PYTHONPATH;
6345	    ${vi_cv_path_python} -c \
6346		"import sys, string; print string.join(sys.path,':')"`
6347fi
6348
6349
6350
6351
6352# Check whether --with-python-config-dir was given.
6353if test "${with_python_config_dir+set}" = set; then :
6354  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"; have_python_config_dir=1
6355fi
6356
6357
6358      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6359$as_echo_n "checking Python's configuration directory... " >&6; }
6360if ${vi_cv_path_python_conf+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363
6364	vi_cv_path_python_conf=
6365	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
6366	if test -d "$d" && test -f "$d/config.c"; then
6367	  vi_cv_path_python_conf="$d"
6368	else
6369	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
6370	    for subdir in lib64 lib share; do
6371	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
6372	      if test -d "$d" && test -f "$d/config.c"; then
6373		vi_cv_path_python_conf="$d"
6374	      fi
6375	    done
6376	  done
6377	fi
6378
6379fi
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
6381$as_echo "$vi_cv_path_python_conf" >&6; }
6382
6383      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
6384
6385      if test "X$PYTHON_CONFDIR" = "X"; then
6386	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6387$as_echo "can't find it!" >&6; }
6388      else
6389
6390			if ${vi_cv_path_python_plibs+:} false; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393
6394	    pwd=`pwd`
6395	    tmp_mkf="$pwd/config-PyMake$$"
6396	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6397__:
6398	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
6399	@echo "python_LIBS='$(LIBS)'"
6400	@echo "python_SYSLIBS='$(SYSLIBS)'"
6401	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
6402	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
6403	@echo "python_INSTSONAME='$(INSTSONAME)'"
6404	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
6405	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
6406	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
6407eof
6408	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6409	    rm -f -- "${tmp_mkf}"
6410	    if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6411		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6412	      vi_cv_path_python_plibs="-framework Python"
6413	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6414		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6415	      fi
6416	    else
6417	      vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6418	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6419	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6420		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6421	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6422	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6423		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6424		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6425	            	            		  fi
6426	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6427	        fi
6428	      fi
6429	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6430	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6431	    fi
6432
6433fi
6434
6435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6436$as_echo_n "checking Python's dll name... " >&6; }
6437if ${vi_cv_dll_name_python+:} false; then :
6438  $as_echo_n "(cached) " >&6
6439else
6440
6441	  if test "X$python_DLLLIBRARY" != "X"; then
6442	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6443	  else
6444	    vi_cv_dll_name_python="$python_INSTSONAME"
6445	  fi
6446
6447fi
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6449$as_echo "$vi_cv_dll_name_python" >&6; }
6450
6451	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6452	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6453	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
6454	else
6455	  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}"
6456	fi
6457	if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then
6458	  	  PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6459
6460	fi
6461	PYTHON_SRC="if_python.c"
6462	PYTHON_OBJ="objects/if_python.o"
6463
6464								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6465$as_echo_n "checking if -pthread should be used... " >&6; }
6466	threadsafe_flag=
6467	thread_lib=
6468	        if test "`(uname) 2>/dev/null`" != Darwin; then
6469	  test "$GCC" = yes && threadsafe_flag="-pthread"
6470	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6471	    threadsafe_flag="-D_THREAD_SAFE"
6472	    thread_lib="-pthread"
6473	  fi
6474	  if test "`(uname) 2>/dev/null`" = SunOS; then
6475	    threadsafe_flag="-pthreads"
6476	  fi
6477	fi
6478	libs_save_old=$LIBS
6479	if test -n "$threadsafe_flag"; then
6480	  cflags_save=$CFLAGS
6481	  CFLAGS="$CFLAGS $threadsafe_flag"
6482	  LIBS="$LIBS $thread_lib"
6483	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h.  */
6485
6486int
6487main ()
6488{
6489
6490  ;
6491  return 0;
6492}
6493_ACEOF
6494if ac_fn_c_try_link "$LINENO"; then :
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6496$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6497else
6498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499$as_echo "no" >&6; }; LIBS=$libs_save_old
6500
6501fi
6502rm -f core conftest.err conftest.$ac_objext \
6503    conftest$ac_exeext conftest.$ac_ext
6504	  CFLAGS=$cflags_save
6505	else
6506	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507$as_echo "no" >&6; }
6508	fi
6509
6510			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6511$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6512	cflags_save=$CFLAGS
6513	libs_save=$LIBS
6514	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6515	LIBS="$LIBS $PYTHON_LIBS"
6516	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517/* end confdefs.h.  */
6518
6519int
6520main ()
6521{
6522
6523  ;
6524  return 0;
6525}
6526_ACEOF
6527if ac_fn_c_try_link "$LINENO"; then :
6528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6529$as_echo "yes" >&6; }; python_ok=yes
6530else
6531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6532$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6533fi
6534rm -f core conftest.err conftest.$ac_objext \
6535    conftest$ac_exeext conftest.$ac_ext
6536	CFLAGS=$cflags_save
6537	LIBS=$libs_save
6538	if test $python_ok = yes; then
6539	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6540
6541	else
6542	  LIBS=$libs_save_old
6543	  PYTHON_SRC=
6544	  PYTHON_OBJ=
6545	  PYTHON_LIBS=
6546	  PYTHON_CFLAGS=
6547	fi
6548      fi
6549    else
6550      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6551$as_echo "too old" >&6; }
6552    fi
6553  fi
6554
6555  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6556    as_fn_error $? "could not configure python" "$LINENO" 5
6557  fi
6558fi
6559
6560
6561
6562
6563
6564
6565
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6567$as_echo_n "checking --enable-python3interp argument... " >&6; }
6568# Check whether --enable-python3interp was given.
6569if test "${enable_python3interp+set}" = set; then :
6570  enableval=$enable_python3interp;
6571else
6572  enable_python3interp="no"
6573fi
6574
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6576$as_echo "$enable_python3interp" >&6; }
6577if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6578  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6579    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6580  fi
6581
6582    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5
6583$as_echo_n "checking --with-python3-command argument... " >&6; }
6584
6585
6586# Check whether --with-python3-command was given.
6587if test "${with_python3_command+set}" = set; then :
6588  withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6589$as_echo "$vi_cv_path_python3" >&6; }
6590else
6591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592$as_echo "no" >&6; }
6593fi
6594
6595
6596  if test "X$vi_cv_path_python3" = "X"; then
6597    for ac_prog in python3 python
6598do
6599  # Extract the first word of "$ac_prog", so it can be a program name with args.
6600set dummy $ac_prog; ac_word=$2
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602$as_echo_n "checking for $ac_word... " >&6; }
6603if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6604  $as_echo_n "(cached) " >&6
6605else
6606  case $vi_cv_path_python3 in
6607  [\\/]* | ?:[\\/]*)
6608  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6609  ;;
6610  *)
6611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614  IFS=$as_save_IFS
6615  test -z "$as_dir" && as_dir=.
6616    for ac_exec_ext in '' $ac_executable_extensions; do
6617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620    break 2
6621  fi
6622done
6623  done
6624IFS=$as_save_IFS
6625
6626  ;;
6627esac
6628fi
6629vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6630if test -n "$vi_cv_path_python3"; then
6631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6632$as_echo "$vi_cv_path_python3" >&6; }
6633else
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635$as_echo "no" >&6; }
6636fi
6637
6638
6639  test -n "$vi_cv_path_python3" && break
6640done
6641
6642  fi
6643  if test "X$vi_cv_path_python3" != "X"; then
6644
6645        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6646$as_echo_n "checking Python version... " >&6; }
6647if ${vi_cv_var_python3_version+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650  vi_cv_var_python3_version=`
6651          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6652
6653fi
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6655$as_echo "$vi_cv_var_python3_version" >&6; }
6656
6657        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6658$as_echo_n "checking Python is 3.0 or better... " >&6; }
6659    if ${vi_cv_path_python3} -c \
6660      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6661    then
6662      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6663$as_echo "yep" >&6; }
6664
6665            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6666$as_echo_n "checking Python's abiflags... " >&6; }
6667if ${vi_cv_var_python3_abiflags+:} false; then :
6668  $as_echo_n "(cached) " >&6
6669else
6670
6671       vi_cv_var_python3_abiflags=
6672       if ${vi_cv_path_python3} -c \
6673           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6674       then
6675         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6676           "import sys; print(sys.abiflags)"`
6677       fi
6678fi
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6680$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6681
6682            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6683$as_echo_n "checking Python's install prefix... " >&6; }
6684if ${vi_cv_path_python3_pfx+:} false; then :
6685  $as_echo_n "(cached) " >&6
6686else
6687   vi_cv_path_python3_pfx=`
6688       ${vi_cv_path_python3} -c \
6689       "import sys; print(sys.prefix)"`
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6692$as_echo "$vi_cv_path_python3_pfx" >&6; }
6693
6694            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6695$as_echo_n "checking Python's execution prefix... " >&6; }
6696if ${vi_cv_path_python3_epfx+:} false; then :
6697  $as_echo_n "(cached) " >&6
6698else
6699   vi_cv_path_python3_epfx=`
6700       ${vi_cv_path_python3} -c \
6701       "import sys; print(sys.exec_prefix)"`
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6704$as_echo "$vi_cv_path_python3_epfx" >&6; }
6705
6706
6707      if ${vi_cv_path_python3path+:} false; then :
6708  $as_echo_n "(cached) " >&6
6709else
6710   vi_cv_path_python3path=`
6711       unset PYTHONPATH;
6712       ${vi_cv_path_python3} -c \
6713       "import sys, string; print(':'.join(sys.path))"`
6714fi
6715
6716
6717
6718
6719# Check whether --with-python3-config-dir was given.
6720if test "${with_python3_config_dir+set}" = set; then :
6721  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1
6722fi
6723
6724
6725      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6726$as_echo_n "checking Python's configuration directory... " >&6; }
6727if ${vi_cv_path_python3_conf+:} false; then :
6728  $as_echo_n "(cached) " >&6
6729else
6730
6731       vi_cv_path_python3_conf=
6732       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6733       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6734       if test -d "$d" && test -f "$d/config.c"; then
6735         vi_cv_path_python3_conf="$d"
6736       else
6737         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6738	   for subdir in lib64 lib share; do
6739	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6740	     if test -d "$d" && test -f "$d/config.c"; then
6741	       vi_cv_path_python3_conf="$d"
6742	     fi
6743	   done
6744         done
6745       fi
6746
6747fi
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6749$as_echo "$vi_cv_path_python3_conf" >&6; }
6750
6751      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6752
6753      if test "X$PYTHON3_CONFDIR" = "X"; then
6754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6755$as_echo "can't find it!" >&6; }
6756      else
6757
6758                        if ${vi_cv_path_python3_plibs+:} false; then :
6759  $as_echo_n "(cached) " >&6
6760else
6761
6762            pwd=`pwd`
6763            tmp_mkf="$pwd/config-PyMake$$"
6764            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6765__:
6766	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6767	@echo "python3_LIBS='$(LIBS)'"
6768	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6769	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6770	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6771eof
6772	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6773	    rm -f -- "${tmp_mkf}"
6774	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6775	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6776	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6777	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6778
6779fi
6780
6781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6782$as_echo_n "checking Python3's dll name... " >&6; }
6783if ${vi_cv_dll_name_python3+:} false; then :
6784  $as_echo_n "(cached) " >&6
6785else
6786
6787	  if test "X$python3_DLLLIBRARY" != "X"; then
6788	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6789	  else
6790	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6791	  fi
6792
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6795$as_echo "$vi_cv_dll_name_python3" >&6; }
6796
6797        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6798        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6799          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6800        else
6801          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}"
6802        fi
6803	if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then
6804	  	  PYTHON3_CFLAGS="${PYTHON3_CFLAGS}  -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6805	fi
6806        PYTHON3_SRC="if_python3.c"
6807        PYTHON3_OBJ="objects/if_python3.o"
6808
6809                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6810$as_echo_n "checking if -pthread should be used... " >&6; }
6811        threadsafe_flag=
6812        thread_lib=
6813                if test "`(uname) 2>/dev/null`" != Darwin; then
6814          test "$GCC" = yes && threadsafe_flag="-pthread"
6815          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6816            threadsafe_flag="-D_THREAD_SAFE"
6817            thread_lib="-pthread"
6818          fi
6819          if test "`(uname) 2>/dev/null`" = SunOS; then
6820            threadsafe_flag="-pthreads"
6821          fi
6822        fi
6823        libs_save_old=$LIBS
6824        if test -n "$threadsafe_flag"; then
6825          cflags_save=$CFLAGS
6826          CFLAGS="$CFLAGS $threadsafe_flag"
6827          LIBS="$LIBS $thread_lib"
6828          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830
6831int
6832main ()
6833{
6834
6835  ;
6836  return 0;
6837}
6838_ACEOF
6839if ac_fn_c_try_link "$LINENO"; then :
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6841$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6842else
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844$as_echo "no" >&6; }; LIBS=$libs_save_old
6845
6846fi
6847rm -f core conftest.err conftest.$ac_objext \
6848    conftest$ac_exeext conftest.$ac_ext
6849          CFLAGS=$cflags_save
6850        else
6851          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853        fi
6854
6855                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6856$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6857        cflags_save=$CFLAGS
6858        libs_save=$LIBS
6859        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6860        LIBS="$LIBS $PYTHON3_LIBS"
6861        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862/* end confdefs.h.  */
6863
6864int
6865main ()
6866{
6867
6868  ;
6869  return 0;
6870}
6871_ACEOF
6872if ac_fn_c_try_link "$LINENO"; then :
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6874$as_echo "yes" >&6; }; python3_ok=yes
6875else
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6877$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6878fi
6879rm -f core conftest.err conftest.$ac_objext \
6880    conftest$ac_exeext conftest.$ac_ext
6881        CFLAGS=$cflags_save
6882        LIBS=$libs_save
6883        if test "$python3_ok" = yes; then
6884          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6885
6886        else
6887          LIBS=$libs_save_old
6888          PYTHON3_SRC=
6889          PYTHON3_OBJ=
6890          PYTHON3_LIBS=
6891          PYTHON3_CFLAGS=
6892        fi
6893      fi
6894    else
6895      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6896$as_echo "too old" >&6; }
6897    fi
6898  fi
6899  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6900    as_fn_error $? "could not configure python3" "$LINENO" 5
6901  fi
6902fi
6903
6904
6905
6906
6907
6908
6909if test "$python_ok" = yes && test "$python3_ok" = yes; then
6910  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6911
6912  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6913
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6915$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6916  cflags_save=$CFLAGS
6917  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6918  libs_save=$LIBS
6919    LIBS="-ldl $LIBS"
6920  if test "$cross_compiling" = yes; then :
6921  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6923as_fn_error $? "cannot run test program while cross compiling
6924See \`config.log' for more details" "$LINENO" 5; }
6925else
6926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h.  */
6928
6929    #include <dlfcn.h>
6930    /* If this program fails, then RTLD_GLOBAL is needed.
6931     * RTLD_GLOBAL will be used and then it is not possible to
6932     * have both python versions enabled in the same vim instance.
6933     * Only the first python version used will be switched on.
6934     */
6935
6936    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6937    {
6938      int needed = 0;
6939      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6940      if (pylib != 0)
6941      {
6942          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6943          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6944          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6945          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6946          (*pfx)(prefix);
6947          (*init)();
6948          needed = (*simple)("import termios") == -1;
6949          (*final)();
6950          dlclose(pylib);
6951      }
6952      return !needed;
6953    }
6954
6955    int main(int argc, char** argv)
6956    {
6957      int not_needed = 0;
6958      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6959            not_needed = 1;
6960      return !not_needed;
6961    }
6962_ACEOF
6963if ac_fn_c_try_run "$LINENO"; then :
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6965$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6966
6967else
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
6970fi
6971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6972  conftest.$ac_objext conftest.beam conftest.$ac_ext
6973fi
6974
6975
6976  CFLAGS=$cflags_save
6977  LIBS=$libs_save
6978
6979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6980$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6981  cflags_save=$CFLAGS
6982  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6983  libs_save=$LIBS
6984    LIBS="-ldl $LIBS"
6985  if test "$cross_compiling" = yes; then :
6986  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6988as_fn_error $? "cannot run test program while cross compiling
6989See \`config.log' for more details" "$LINENO" 5; }
6990else
6991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h.  */
6993
6994    #include <dlfcn.h>
6995    #include <wchar.h>
6996    /* If this program fails, then RTLD_GLOBAL is needed.
6997     * RTLD_GLOBAL will be used and then it is not possible to
6998     * have both python versions enabled in the same vim instance.
6999     * Only the first python version used will be switched on.
7000     */
7001
7002    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
7003    {
7004      int needed = 0;
7005      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
7006      if (pylib != 0)
7007      {
7008          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
7009          void (*init)(void) = dlsym(pylib, "Py_Initialize");
7010          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
7011          void (*final)(void) = dlsym(pylib, "Py_Finalize");
7012          (*pfx)(prefix);
7013          (*init)();
7014          needed = (*simple)("import termios") == -1;
7015          (*final)();
7016          dlclose(pylib);
7017      }
7018      return !needed;
7019    }
7020
7021    int main(int argc, char** argv)
7022    {
7023      int not_needed = 0;
7024      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
7025            not_needed = 1;
7026      return !not_needed;
7027    }
7028_ACEOF
7029if ac_fn_c_try_run "$LINENO"; then :
7030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7031$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
7032
7033else
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035$as_echo "no" >&6; }
7036fi
7037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7038  conftest.$ac_objext conftest.beam conftest.$ac_ext
7039fi
7040
7041
7042  CFLAGS=$cflags_save
7043  LIBS=$libs_save
7044
7045  PYTHON_SRC="if_python.c"
7046  PYTHON_OBJ="objects/if_python.o"
7047  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7048  PYTHON_LIBS=
7049  PYTHON3_SRC="if_python3.c"
7050  PYTHON3_OBJ="objects/if_python3.o"
7051  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7052  PYTHON3_LIBS=
7053elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
7054  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
7055
7056  PYTHON_SRC="if_python.c"
7057  PYTHON_OBJ="objects/if_python.o"
7058  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7059  PYTHON_LIBS=
7060elif test "$python_ok" = yes; then
7061      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
7062$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
7063  cflags_save=$CFLAGS
7064  libs_save=$LIBS
7065  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
7066  LIBS="$LIBS $PYTHON_LIBS"
7067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069
7070int
7071main ()
7072{
7073
7074  ;
7075  return 0;
7076}
7077_ACEOF
7078if ac_fn_c_try_link "$LINENO"; then :
7079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7080$as_echo "yes" >&6; }; fpie_ok=yes
7081else
7082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083$as_echo "no" >&6; }; fpie_ok=no
7084fi
7085rm -f core conftest.err conftest.$ac_objext \
7086    conftest$ac_exeext conftest.$ac_ext
7087  CFLAGS=$cflags_save
7088  LIBS=$libs_save
7089  if test $fpie_ok = yes; then
7090    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
7091  fi
7092elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
7093  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
7094
7095  PYTHON3_SRC="if_python3.c"
7096  PYTHON3_OBJ="objects/if_python3.o"
7097  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7098  PYTHON3_LIBS=
7099elif test "$python3_ok" = yes; then
7100      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
7101$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
7102  cflags_save=$CFLAGS
7103  libs_save=$LIBS
7104  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
7105  LIBS="$LIBS $PYTHON3_LIBS"
7106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107/* end confdefs.h.  */
7108
7109int
7110main ()
7111{
7112
7113  ;
7114  return 0;
7115}
7116_ACEOF
7117if ac_fn_c_try_link "$LINENO"; then :
7118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7119$as_echo "yes" >&6; }; fpie_ok=yes
7120else
7121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122$as_echo "no" >&6; }; fpie_ok=no
7123fi
7124rm -f core conftest.err conftest.$ac_objext \
7125    conftest$ac_exeext conftest.$ac_ext
7126  CFLAGS=$cflags_save
7127  LIBS=$libs_save
7128  if test $fpie_ok = yes; then
7129    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
7130  fi
7131fi
7132
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
7134$as_echo_n "checking --enable-tclinterp argument... " >&6; }
7135# Check whether --enable-tclinterp was given.
7136if test "${enable_tclinterp+set}" = set; then :
7137  enableval=$enable_tclinterp;
7138else
7139  enable_tclinterp="no"
7140fi
7141
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
7143$as_echo "$enable_tclinterp" >&6; }
7144
7145if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
7146
7147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
7148$as_echo_n "checking --with-tclsh argument... " >&6; }
7149
7150# Check whether --with-tclsh was given.
7151if test "${with_tclsh+set}" = set; then :
7152  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
7153$as_echo "$tclsh_name" >&6; }
7154else
7155  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156$as_echo "no" >&6; }
7157fi
7158
7159  # Extract the first word of "$tclsh_name", so it can be a program name with args.
7160set dummy $tclsh_name; ac_word=$2
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162$as_echo_n "checking for $ac_word... " >&6; }
7163if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7164  $as_echo_n "(cached) " >&6
7165else
7166  case $vi_cv_path_tcl in
7167  [\\/]* | ?:[\\/]*)
7168  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7169  ;;
7170  *)
7171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176    for ac_exec_ext in '' $ac_executable_extensions; do
7177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183  done
7184IFS=$as_save_IFS
7185
7186  ;;
7187esac
7188fi
7189vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7190if test -n "$vi_cv_path_tcl"; then
7191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7192$as_echo "$vi_cv_path_tcl" >&6; }
7193else
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
7196fi
7197
7198
7199
7200
7201    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
7202    tclsh_name="tclsh8.4"
7203    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7204set dummy $tclsh_name; ac_word=$2
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206$as_echo_n "checking for $ac_word... " >&6; }
7207if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7208  $as_echo_n "(cached) " >&6
7209else
7210  case $vi_cv_path_tcl in
7211  [\\/]* | ?:[\\/]*)
7212  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7213  ;;
7214  *)
7215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218  IFS=$as_save_IFS
7219  test -z "$as_dir" && as_dir=.
7220    for ac_exec_ext in '' $ac_executable_extensions; do
7221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224    break 2
7225  fi
7226done
7227  done
7228IFS=$as_save_IFS
7229
7230  ;;
7231esac
7232fi
7233vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7234if test -n "$vi_cv_path_tcl"; then
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7236$as_echo "$vi_cv_path_tcl" >&6; }
7237else
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242
7243  fi
7244  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
7245    tclsh_name="tclsh8.2"
7246    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7247set dummy $tclsh_name; ac_word=$2
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249$as_echo_n "checking for $ac_word... " >&6; }
7250if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  case $vi_cv_path_tcl in
7254  [\\/]* | ?:[\\/]*)
7255  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7256  ;;
7257  *)
7258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261  IFS=$as_save_IFS
7262  test -z "$as_dir" && as_dir=.
7263    for ac_exec_ext in '' $ac_executable_extensions; do
7264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267    break 2
7268  fi
7269done
7270  done
7271IFS=$as_save_IFS
7272
7273  ;;
7274esac
7275fi
7276vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7277if test -n "$vi_cv_path_tcl"; then
7278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7279$as_echo "$vi_cv_path_tcl" >&6; }
7280else
7281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282$as_echo "no" >&6; }
7283fi
7284
7285
7286  fi
7287  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
7288    tclsh_name="tclsh8.0"
7289    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7290set dummy $tclsh_name; ac_word=$2
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292$as_echo_n "checking for $ac_word... " >&6; }
7293if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7294  $as_echo_n "(cached) " >&6
7295else
7296  case $vi_cv_path_tcl in
7297  [\\/]* | ?:[\\/]*)
7298  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7299  ;;
7300  *)
7301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304  IFS=$as_save_IFS
7305  test -z "$as_dir" && as_dir=.
7306    for ac_exec_ext in '' $ac_executable_extensions; do
7307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310    break 2
7311  fi
7312done
7313  done
7314IFS=$as_save_IFS
7315
7316  ;;
7317esac
7318fi
7319vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7320if test -n "$vi_cv_path_tcl"; then
7321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7322$as_echo "$vi_cv_path_tcl" >&6; }
7323else
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325$as_echo "no" >&6; }
7326fi
7327
7328
7329  fi
7330    if test "X$vi_cv_path_tcl" = "X"; then
7331    tclsh_name="tclsh"
7332    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7333set dummy $tclsh_name; ac_word=$2
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  case $vi_cv_path_tcl in
7340  [\\/]* | ?:[\\/]*)
7341  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7342  ;;
7343  *)
7344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347  IFS=$as_save_IFS
7348  test -z "$as_dir" && as_dir=.
7349    for ac_exec_ext in '' $ac_executable_extensions; do
7350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353    break 2
7354  fi
7355done
7356  done
7357IFS=$as_save_IFS
7358
7359  ;;
7360esac
7361fi
7362vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7363if test -n "$vi_cv_path_tcl"; then
7364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7365$as_echo "$vi_cv_path_tcl" >&6; }
7366else
7367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368$as_echo "no" >&6; }
7369fi
7370
7371
7372  fi
7373  if test "X$vi_cv_path_tcl" != "X"; then
7374    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
7375$as_echo_n "checking Tcl version... " >&6; }
7376    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
7377      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
7378      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
7379$as_echo "$tclver - OK" >&6; };
7380      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 -`
7381      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
7382
7383      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
7384$as_echo_n "checking for location of Tcl include... " >&6; }
7385      if test "x$MACOS_X" != "xyes"; then
7386	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
7387      else
7388		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
7389      fi
7390      TCL_INC=
7391      for try in $tclinc; do
7392	if test -f "$try/tcl.h"; then
7393	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
7394$as_echo "$try/tcl.h" >&6; }
7395	  TCL_INC=$try
7396	  break
7397	fi
7398      done
7399      if test -z "$TCL_INC"; then
7400	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7401$as_echo "<not found>" >&6; }
7402	SKIP_TCL=YES
7403      fi
7404      if test -z "$SKIP_TCL"; then
7405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
7406$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
7407	if test "x$MACOS_X" != "xyes"; then
7408	  tclcnf=`echo $tclinc | sed s/include/lib/g`
7409	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
7410	else
7411	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
7412	fi
7413	for try in $tclcnf; do
7414	  if test -f "$try/tclConfig.sh"; then
7415	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
7416$as_echo "$try/tclConfig.sh" >&6; }
7417	    . "$try/tclConfig.sh"
7418	    	    if test "$enable_tclinterp" = "dynamic"; then
7419	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7420	    else
7421	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7422	    fi
7423	    	    	    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'`
7424	    break
7425	  fi
7426	done
7427	if test -z "$TCL_LIBS"; then
7428	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7429$as_echo "<not found>" >&6; }
7430	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7431$as_echo_n "checking for Tcl library by myself... " >&6; }
7432	  tcllib=`echo $tclinc | sed s/include/lib/g`
7433	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7434	  for ext in .so .a ; do
7435	    for ver in "" $tclver ; do
7436	      for try in $tcllib ; do
7437		trylib=tcl$ver$ext
7438		if test -f "$try/lib$trylib" ; then
7439		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7440$as_echo "$try/lib$trylib" >&6; }
7441		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7442		  if test "`(uname) 2>/dev/null`" = SunOS &&
7443					 uname -r | grep '^5' >/dev/null; then
7444		    TCL_LIBS="$TCL_LIBS -R $try"
7445		  fi
7446		  break 3
7447		fi
7448	      done
7449	    done
7450	  done
7451	  if test -z "$TCL_LIBS"; then
7452	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7453$as_echo "<not found>" >&6; }
7454	    SKIP_TCL=YES
7455	  fi
7456	fi
7457	if test -z "$SKIP_TCL"; then
7458	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7459
7460	  TCL_SRC=if_tcl.c
7461	  TCL_OBJ=objects/if_tcl.o
7462	  TCL_PRO=if_tcl.pro
7463	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7464	fi
7465      fi
7466    else
7467      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7468$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7469    fi
7470  fi
7471  if test "$enable_tclinterp" = "dynamic"; then
7472    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7473      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7474
7475      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7476    fi
7477  fi
7478  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7479    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7480  fi
7481fi
7482
7483
7484
7485
7486
7487
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7489$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7490# Check whether --enable-rubyinterp was given.
7491if test "${enable_rubyinterp+set}" = set; then :
7492  enableval=$enable_rubyinterp;
7493else
7494  enable_rubyinterp="no"
7495fi
7496
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7498$as_echo "$enable_rubyinterp" >&6; }
7499if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7500  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7501    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7502  fi
7503
7504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7505$as_echo_n "checking --with-ruby-command argument... " >&6; }
7506
7507
7508# Check whether --with-ruby-command was given.
7509if test "${with_ruby_command+set}" = set; then :
7510  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7511$as_echo "$RUBY_CMD" >&6; }
7512else
7513  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7514$as_echo "defaulting to $RUBY_CMD" >&6; }
7515fi
7516
7517  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7518set dummy $RUBY_CMD; ac_word=$2
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520$as_echo_n "checking for $ac_word... " >&6; }
7521if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7522  $as_echo_n "(cached) " >&6
7523else
7524  case $vi_cv_path_ruby in
7525  [\\/]* | ?:[\\/]*)
7526  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7527  ;;
7528  *)
7529  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532  IFS=$as_save_IFS
7533  test -z "$as_dir" && as_dir=.
7534    for ac_exec_ext in '' $ac_executable_extensions; do
7535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7536    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538    break 2
7539  fi
7540done
7541  done
7542IFS=$as_save_IFS
7543
7544  ;;
7545esac
7546fi
7547vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7548if test -n "$vi_cv_path_ruby"; then
7549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7550$as_echo "$vi_cv_path_ruby" >&6; }
7551else
7552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553$as_echo "no" >&6; }
7554fi
7555
7556
7557  if test "X$vi_cv_path_ruby" != "X"; then
7558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7559$as_echo_n "checking Ruby version... " >&6; }
7560    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7561      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7562$as_echo "OK" >&6; }
7563      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7564$as_echo_n "checking Ruby rbconfig... " >&6; }
7565      ruby_rbconfig="RbConfig"
7566      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7567	ruby_rbconfig="Config"
7568      fi
7569      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7570$as_echo "$ruby_rbconfig" >&6; }
7571      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7572$as_echo_n "checking Ruby header files... " >&6; }
7573      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7574      if test "X$rubyhdrdir" != "X"; then
7575	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7576$as_echo "$rubyhdrdir" >&6; }
7577	RUBY_CFLAGS="-I$rubyhdrdir"
7578        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7579        if test -d "$rubyarchdir"; then
7580          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7581        fi
7582        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7583	if test "X$rubyversion" = "X"; then
7584	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7585	fi
7586        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7587	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7588	if test "X$rubylibs" != "X"; then
7589	  RUBY_LIBS="$rubylibs"
7590	fi
7591	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7592	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7593	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7594	if test -f "$rubylibdir/$librubya"; then
7595	  librubyarg="$librubyarg"
7596	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7597	elif test "$librubyarg" = "libruby.a"; then
7598	  	  librubyarg="-lruby"
7599	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7600	fi
7601
7602	if test "X$librubyarg" != "X"; then
7603	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7604	fi
7605	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7606	if test "X$rubyldflags" != "X"; then
7607	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7608	  if test "X$rubyldflags" != "X"; then
7609	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7610	      LDFLAGS="$rubyldflags $LDFLAGS"
7611	    fi
7612	  fi
7613	fi
7614	RUBY_SRC="if_ruby.c"
7615	RUBY_OBJ="objects/if_ruby.o"
7616	RUBY_PRO="if_ruby.pro"
7617	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7618
7619	if test "$enable_rubyinterp" = "dynamic"; then
7620	  libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"`
7621	  if test -z "$libruby_soname"; then
7622	    libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7623	  fi
7624	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7625
7626	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
7627	  RUBY_LIBS=
7628	fi
7629      else
7630	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7631$as_echo "not found; disabling Ruby" >&6; }
7632      fi
7633    else
7634      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7635$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7636    fi
7637  fi
7638
7639  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7640    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7641  fi
7642fi
7643
7644
7645
7646
7647
7648
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7650$as_echo_n "checking --enable-cscope argument... " >&6; }
7651# Check whether --enable-cscope was given.
7652if test "${enable_cscope+set}" = set; then :
7653  enableval=$enable_cscope;
7654else
7655  enable_cscope="no"
7656fi
7657
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7659$as_echo "$enable_cscope" >&6; }
7660if test "$enable_cscope" = "yes"; then
7661  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7662
7663fi
7664
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7666$as_echo_n "checking --disable-netbeans argument... " >&6; }
7667# Check whether --enable-netbeans was given.
7668if test "${enable_netbeans+set}" = set; then :
7669  enableval=$enable_netbeans;
7670else
7671  enable_netbeans="yes"
7672fi
7673
7674if test "$enable_netbeans" = "yes"; then
7675  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7677$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7678    enable_netbeans="no"
7679  else
7680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681$as_echo "no" >&6; }
7682  fi
7683else
7684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7685$as_echo "yes" >&6; }
7686fi
7687
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7689$as_echo_n "checking --disable-channel argument... " >&6; }
7690# Check whether --enable-channel was given.
7691if test "${enable_channel+set}" = set; then :
7692  enableval=$enable_channel;
7693else
7694  enable_channel="yes"
7695fi
7696
7697if test "$enable_channel" = "yes"; then
7698  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7699    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7700$as_echo "cannot use channels with tiny or small features" >&6; }
7701    enable_channel="no"
7702  else
7703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
7705  fi
7706else
7707  if test "$enable_netbeans" = "yes"; then
7708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7709$as_echo "yes, netbeans also disabled" >&6; }
7710    enable_netbeans="no"
7711  else
7712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7713$as_echo "yes" >&6; }
7714  fi
7715fi
7716
7717if test "$enable_channel" = "yes"; then
7718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7719$as_echo_n "checking for socket in -lsocket... " >&6; }
7720if ${ac_cv_lib_socket_socket+:} false; then :
7721  $as_echo_n "(cached) " >&6
7722else
7723  ac_check_lib_save_LIBS=$LIBS
7724LIBS="-lsocket  $LIBS"
7725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h.  */
7727
7728/* Override any GCC internal prototype to avoid an error.
7729   Use char because int might match the return type of a GCC
7730   builtin and then its argument prototype would still apply.  */
7731#ifdef __cplusplus
7732extern "C"
7733#endif
7734char socket ();
7735int
7736main ()
7737{
7738return socket ();
7739  ;
7740  return 0;
7741}
7742_ACEOF
7743if ac_fn_c_try_link "$LINENO"; then :
7744  ac_cv_lib_socket_socket=yes
7745else
7746  ac_cv_lib_socket_socket=no
7747fi
7748rm -f core conftest.err conftest.$ac_objext \
7749    conftest$ac_exeext conftest.$ac_ext
7750LIBS=$ac_check_lib_save_LIBS
7751fi
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7753$as_echo "$ac_cv_lib_socket_socket" >&6; }
7754if test "x$ac_cv_lib_socket_socket" = xyes; then :
7755  cat >>confdefs.h <<_ACEOF
7756#define HAVE_LIBSOCKET 1
7757_ACEOF
7758
7759  LIBS="-lsocket $LIBS"
7760
7761fi
7762
7763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7764$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7765if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  ac_check_lib_save_LIBS=$LIBS
7769LIBS="-lnsl  $LIBS"
7770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771/* end confdefs.h.  */
7772
7773/* Override any GCC internal prototype to avoid an error.
7774   Use char because int might match the return type of a GCC
7775   builtin and then its argument prototype would still apply.  */
7776#ifdef __cplusplus
7777extern "C"
7778#endif
7779char gethostbyname ();
7780int
7781main ()
7782{
7783return gethostbyname ();
7784  ;
7785  return 0;
7786}
7787_ACEOF
7788if ac_fn_c_try_link "$LINENO"; then :
7789  ac_cv_lib_nsl_gethostbyname=yes
7790else
7791  ac_cv_lib_nsl_gethostbyname=no
7792fi
7793rm -f core conftest.err conftest.$ac_objext \
7794    conftest$ac_exeext conftest.$ac_ext
7795LIBS=$ac_check_lib_save_LIBS
7796fi
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7798$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7799if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7800  cat >>confdefs.h <<_ACEOF
7801#define HAVE_LIBNSL 1
7802_ACEOF
7803
7804  LIBS="-lnsl $LIBS"
7805
7806fi
7807
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5
7809$as_echo_n "checking whether compiling with process communication is possible... " >&6; }
7810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812
7813#include <stdio.h>
7814#include <stdlib.h>
7815#include <stdarg.h>
7816#include <fcntl.h>
7817#include <netdb.h>
7818#include <netinet/in.h>
7819#include <errno.h>
7820#include <sys/types.h>
7821#include <sys/socket.h>
7822	/* Check bitfields */
7823	struct nbbuf {
7824	unsigned int  initDone:1;
7825	unsigned short signmaplen;
7826	};
7827
7828int
7829main ()
7830{
7831
7832		/* Check creating a socket. */
7833		struct sockaddr_in server;
7834		(void)socket(AF_INET, SOCK_STREAM, 0);
7835		(void)htons(100);
7836		(void)gethostbyname("microsoft.com");
7837		if (errno == ECONNREFUSED)
7838		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7839
7840  ;
7841  return 0;
7842}
7843_ACEOF
7844if ac_fn_c_try_link "$LINENO"; then :
7845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7846$as_echo "yes" >&6; }
7847else
7848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no"
7850fi
7851rm -f core conftest.err conftest.$ac_objext \
7852    conftest$ac_exeext conftest.$ac_ext
7853fi
7854if test "$enable_netbeans" = "yes"; then
7855  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7856
7857  NETBEANS_SRC="netbeans.c"
7858
7859  NETBEANS_OBJ="objects/netbeans.o"
7860
7861fi
7862if test "$enable_channel" = "yes"; then
7863  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
7864
7865  CHANNEL_SRC="channel.c"
7866
7867  CHANNEL_OBJ="objects/channel.o"
7868
7869fi
7870
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
7872$as_echo_n "checking --enable-terminal argument... " >&6; }
7873# Check whether --enable-terminal was given.
7874if test "${enable_terminal+set}" = set; then :
7875  enableval=$enable_terminal;
7876else
7877  enable_terminal="auto"
7878fi
7879
7880if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
7881  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
7883$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
7884    enable_terminal="no"
7885  else
7886    if test "$enable_terminal" = "auto"; then
7887      enable_terminal="yes"
7888      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
7889$as_echo "defaulting to yes" >&6; }
7890    else
7891      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7892$as_echo "yes" >&6; }
7893    fi
7894  fi
7895else
7896  if test "$enable_terminal" = "auto"; then
7897    enable_terminal="no"
7898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
7899$as_echo "defaulting to no" >&6; }
7900  else
7901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902$as_echo "no" >&6; }
7903  fi
7904fi
7905if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then
7906  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
7907
7908  TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/termscreen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c"
7909
7910  TERM_OBJ="objects/encoding.o objects/keyboard.o objects/mouse.o objects/parser.o objects/pen.o objects/termscreen.o objects/state.o objects/unicode.o objects/vterm.o"
7911
7912fi
7913
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5
7915$as_echo_n "checking --enable-autoservername argument... " >&6; }
7916# Check whether --enable-autoservername was given.
7917if test "${enable_autoservername+set}" = set; then :
7918  enableval=$enable_autoservername;
7919else
7920  enable_autoservername="no"
7921fi
7922
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5
7924$as_echo "$enable_autoservername" >&6; }
7925if test "$enable_autoservername" = "yes"; then
7926  $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h
7927
7928fi
7929
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7931$as_echo_n "checking --enable-multibyte argument... " >&6; }
7932# Check whether --enable-multibyte was given.
7933if test "${enable_multibyte+set}" = set; then :
7934  enableval=$enable_multibyte;
7935else
7936  enable_multibyte="yes"
7937fi
7938
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
7940$as_echo "$enable_multibyte" >&6; }
7941if test "$enable_multibyte" != "yes"; then
7942  as_fn_error $? "The multi-byte feature can no longer be disabled. If you have
7943		a problem with this, discuss on the Vim mailing list." "$LINENO" 5
7944fi
7945
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5
7947$as_echo_n "checking --disable-rightleft argument... " >&6; }
7948# Check whether --enable-rightleft was given.
7949if test "${enable_rightleft+set}" = set; then :
7950  enableval=$enable_rightleft;
7951else
7952  enable_rightleft="yes"
7953fi
7954
7955if test "$enable_rightleft" = "yes"; then
7956	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
7958else
7959	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7960$as_echo "yes" >&6; }
7961	$as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h
7962
7963fi
7964
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5
7966$as_echo_n "checking --disable-arabic argument... " >&6; }
7967# Check whether --enable-arabic was given.
7968if test "${enable_arabic+set}" = set; then :
7969  enableval=$enable_arabic;
7970else
7971  enable_arabic="yes"
7972fi
7973
7974if test "$enable_arabic" = "yes"; then
7975	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976$as_echo "no" >&6; }
7977else
7978	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7979$as_echo "yes" >&6; }
7980	$as_echo "#define DISABLE_ARABIC 1" >>confdefs.h
7981
7982fi
7983
7984# Check whether --enable-farsi was given.
7985if test "${enable_farsi+set}" = set; then :
7986  enableval=$enable_farsi;
7987fi
7988
7989
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
7991$as_echo_n "checking --enable-hangulinput argument... " >&6; }
7992# Check whether --enable-hangulinput was given.
7993if test "${enable_hangulinput+set}" = set; then :
7994  enableval=$enable_hangulinput;
7995else
7996  enable_hangulinput="no"
7997fi
7998
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
8000$as_echo "$enable_hangulinput" >&6; }
8001
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
8003$as_echo_n "checking --enable-xim argument... " >&6; }
8004# Check whether --enable-xim was given.
8005if test "${enable_xim+set}" = set; then :
8006  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
8007$as_echo "$enable_xim" >&6; }
8008else
8009  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
8010$as_echo "defaulting to auto" >&6; }
8011fi
8012
8013
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
8015$as_echo_n "checking --enable-fontset argument... " >&6; }
8016# Check whether --enable-fontset was given.
8017if test "${enable_fontset+set}" = set; then :
8018  enableval=$enable_fontset;
8019else
8020  enable_fontset="no"
8021fi
8022
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
8024$as_echo "$enable_fontset" >&6; }
8025
8026test -z "$with_x" && with_x=yes
8027test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
8028if test "$with_x" = no; then
8029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
8030$as_echo "defaulting to: don't HAVE_X11" >&6; }
8031else
8032
8033  # Extract the first word of "xmkmf", so it can be a program name with args.
8034set dummy xmkmf; ac_word=$2
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036$as_echo_n "checking for $ac_word... " >&6; }
8037if ${ac_cv_path_xmkmfpath+:} false; then :
8038  $as_echo_n "(cached) " >&6
8039else
8040  case $xmkmfpath in
8041  [\\/]* | ?:[\\/]*)
8042  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
8043  ;;
8044  *)
8045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046for as_dir in $PATH
8047do
8048  IFS=$as_save_IFS
8049  test -z "$as_dir" && as_dir=.
8050    for ac_exec_ext in '' $ac_executable_extensions; do
8051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
8053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054    break 2
8055  fi
8056done
8057  done
8058IFS=$as_save_IFS
8059
8060  ;;
8061esac
8062fi
8063xmkmfpath=$ac_cv_path_xmkmfpath
8064if test -n "$xmkmfpath"; then
8065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
8066$as_echo "$xmkmfpath" >&6; }
8067else
8068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069$as_echo "no" >&6; }
8070fi
8071
8072
8073
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8075$as_echo_n "checking for X... " >&6; }
8076
8077
8078# Check whether --with-x was given.
8079if test "${with_x+set}" = set; then :
8080  withval=$with_x;
8081fi
8082
8083# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8084if test "x$with_x" = xno; then
8085  # The user explicitly disabled X.
8086  have_x=disabled
8087else
8088  case $x_includes,$x_libraries in #(
8089    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8090    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8091  $as_echo_n "(cached) " >&6
8092else
8093  # One or both of the vars are not set, and there is no cached value.
8094ac_x_includes=no ac_x_libraries=no
8095rm -f -r conftest.dir
8096if mkdir conftest.dir; then
8097  cd conftest.dir
8098  cat >Imakefile <<'_ACEOF'
8099incroot:
8100	@echo incroot='${INCROOT}'
8101usrlibdir:
8102	@echo usrlibdir='${USRLIBDIR}'
8103libdir:
8104	@echo libdir='${LIBDIR}'
8105_ACEOF
8106  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8107    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8108    for ac_var in incroot usrlibdir libdir; do
8109      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8110    done
8111    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8112    for ac_extension in a so sl dylib la dll; do
8113      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8114	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8115	ac_im_usrlibdir=$ac_im_libdir; break
8116      fi
8117    done
8118    # Screen out bogus values from the imake configuration.  They are
8119    # bogus both because they are the default anyway, and because
8120    # using them would break gcc on systems where it needs fixed includes.
8121    case $ac_im_incroot in
8122	/usr/include) ac_x_includes= ;;
8123	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8124    esac
8125    case $ac_im_usrlibdir in
8126	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8127	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8128    esac
8129  fi
8130  cd ..
8131  rm -f -r conftest.dir
8132fi
8133
8134# Standard set of common directories for X headers.
8135# Check X11 before X11Rn because it is often a symlink to the current release.
8136ac_x_header_dirs='
8137/usr/X11/include
8138/usr/X11R7/include
8139/usr/X11R6/include
8140/usr/X11R5/include
8141/usr/X11R4/include
8142
8143/usr/include/X11
8144/usr/include/X11R7
8145/usr/include/X11R6
8146/usr/include/X11R5
8147/usr/include/X11R4
8148
8149/usr/local/X11/include
8150/usr/local/X11R7/include
8151/usr/local/X11R6/include
8152/usr/local/X11R5/include
8153/usr/local/X11R4/include
8154
8155/usr/local/include/X11
8156/usr/local/include/X11R7
8157/usr/local/include/X11R6
8158/usr/local/include/X11R5
8159/usr/local/include/X11R4
8160
8161/usr/X386/include
8162/usr/x386/include
8163/usr/XFree86/include/X11
8164
8165/usr/include
8166/usr/local/include
8167/usr/unsupported/include
8168/usr/athena/include
8169/usr/local/x11r5/include
8170/usr/lpp/Xamples/include
8171
8172/usr/openwin/include
8173/usr/openwin/share/include'
8174
8175if test "$ac_x_includes" = no; then
8176  # Guess where to find include files, by looking for Xlib.h.
8177  # First, try using that file with no special directory specified.
8178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h.  */
8180#include <X11/Xlib.h>
8181_ACEOF
8182if ac_fn_c_try_cpp "$LINENO"; then :
8183  # We can compile using X headers with no special include directory.
8184ac_x_includes=
8185else
8186  for ac_dir in $ac_x_header_dirs; do
8187  if test -r "$ac_dir/X11/Xlib.h"; then
8188    ac_x_includes=$ac_dir
8189    break
8190  fi
8191done
8192fi
8193rm -f conftest.err conftest.i conftest.$ac_ext
8194fi # $ac_x_includes = no
8195
8196if test "$ac_x_libraries" = no; then
8197  # Check for the libraries.
8198  # See if we find them without any special options.
8199  # Don't add to $LIBS permanently.
8200  ac_save_LIBS=$LIBS
8201  LIBS="-lX11 $LIBS"
8202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h.  */
8204#include <X11/Xlib.h>
8205int
8206main ()
8207{
8208XrmInitialize ()
8209  ;
8210  return 0;
8211}
8212_ACEOF
8213if ac_fn_c_try_link "$LINENO"; then :
8214  LIBS=$ac_save_LIBS
8215# We can link X programs with no special library path.
8216ac_x_libraries=
8217else
8218  LIBS=$ac_save_LIBS
8219for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8220do
8221  # Don't even attempt the hair of trying to link an X program!
8222  for ac_extension in a so sl dylib la dll; do
8223    if test -r "$ac_dir/libX11.$ac_extension"; then
8224      ac_x_libraries=$ac_dir
8225      break 2
8226    fi
8227  done
8228done
8229fi
8230rm -f core conftest.err conftest.$ac_objext \
8231    conftest$ac_exeext conftest.$ac_ext
8232fi # $ac_x_libraries = no
8233
8234case $ac_x_includes,$ac_x_libraries in #(
8235  no,* | *,no | *\'*)
8236    # Didn't find X, or a directory has "'" in its name.
8237    ac_cv_have_x="have_x=no";; #(
8238  *)
8239    # Record where we found X for the cache.
8240    ac_cv_have_x="have_x=yes\
8241	ac_x_includes='$ac_x_includes'\
8242	ac_x_libraries='$ac_x_libraries'"
8243esac
8244fi
8245;; #(
8246    *) have_x=yes;;
8247  esac
8248  eval "$ac_cv_have_x"
8249fi # $with_x != no
8250
8251if test "$have_x" != yes; then
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8253$as_echo "$have_x" >&6; }
8254  no_x=yes
8255else
8256  # If each of the values was on the command line, it overrides each guess.
8257  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8258  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8259  # Update the cache value to reflect the command line values.
8260  ac_cv_have_x="have_x=yes\
8261	ac_x_includes='$x_includes'\
8262	ac_x_libraries='$x_libraries'"
8263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8264$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8265fi
8266
8267if test "$no_x" = yes; then
8268  # Not all programs may use this symbol, but it does not hurt to define it.
8269
8270$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8271
8272  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8273else
8274  if test -n "$x_includes"; then
8275    X_CFLAGS="$X_CFLAGS -I$x_includes"
8276  fi
8277
8278  # It would also be nice to do this for all -L options, not just this one.
8279  if test -n "$x_libraries"; then
8280    X_LIBS="$X_LIBS -L$x_libraries"
8281    # For Solaris; some versions of Sun CC require a space after -R and
8282    # others require no space.  Words are not sufficient . . . .
8283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8284$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8285    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8286    ac_xsave_c_werror_flag=$ac_c_werror_flag
8287    ac_c_werror_flag=yes
8288    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290
8291int
8292main ()
8293{
8294
8295  ;
8296  return 0;
8297}
8298_ACEOF
8299if ac_fn_c_try_link "$LINENO"; then :
8300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
8302       X_LIBS="$X_LIBS -R$x_libraries"
8303else
8304  LIBS="$ac_xsave_LIBS -R $x_libraries"
8305       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306/* end confdefs.h.  */
8307
8308int
8309main ()
8310{
8311
8312  ;
8313  return 0;
8314}
8315_ACEOF
8316if ac_fn_c_try_link "$LINENO"; then :
8317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8318$as_echo "yes" >&6; }
8319	  X_LIBS="$X_LIBS -R $x_libraries"
8320else
8321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8322$as_echo "neither works" >&6; }
8323fi
8324rm -f core conftest.err conftest.$ac_objext \
8325    conftest$ac_exeext conftest.$ac_ext
8326fi
8327rm -f core conftest.err conftest.$ac_objext \
8328    conftest$ac_exeext conftest.$ac_ext
8329    ac_c_werror_flag=$ac_xsave_c_werror_flag
8330    LIBS=$ac_xsave_LIBS
8331  fi
8332
8333  # Check for system-dependent libraries X programs must link with.
8334  # Do this before checking for the system-independent R6 libraries
8335  # (-lICE), since we may need -lsocket or whatever for X linking.
8336
8337  if test "$ISC" = yes; then
8338    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8339  else
8340    # Martyn Johnson says this is needed for Ultrix, if the X
8341    # libraries were built with DECnet support.  And Karl Berry says
8342    # the Alpha needs dnet_stub (dnet does not exist).
8343    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345/* end confdefs.h.  */
8346
8347/* Override any GCC internal prototype to avoid an error.
8348   Use char because int might match the return type of a GCC
8349   builtin and then its argument prototype would still apply.  */
8350#ifdef __cplusplus
8351extern "C"
8352#endif
8353char XOpenDisplay ();
8354int
8355main ()
8356{
8357return XOpenDisplay ();
8358  ;
8359  return 0;
8360}
8361_ACEOF
8362if ac_fn_c_try_link "$LINENO"; then :
8363
8364else
8365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8366$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8367if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370  ac_check_lib_save_LIBS=$LIBS
8371LIBS="-ldnet  $LIBS"
8372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373/* end confdefs.h.  */
8374
8375/* Override any GCC internal prototype to avoid an error.
8376   Use char because int might match the return type of a GCC
8377   builtin and then its argument prototype would still apply.  */
8378#ifdef __cplusplus
8379extern "C"
8380#endif
8381char dnet_ntoa ();
8382int
8383main ()
8384{
8385return dnet_ntoa ();
8386  ;
8387  return 0;
8388}
8389_ACEOF
8390if ac_fn_c_try_link "$LINENO"; then :
8391  ac_cv_lib_dnet_dnet_ntoa=yes
8392else
8393  ac_cv_lib_dnet_dnet_ntoa=no
8394fi
8395rm -f core conftest.err conftest.$ac_objext \
8396    conftest$ac_exeext conftest.$ac_ext
8397LIBS=$ac_check_lib_save_LIBS
8398fi
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8400$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8401if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8402  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8403fi
8404
8405    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8406      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8407$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8408if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8409  $as_echo_n "(cached) " >&6
8410else
8411  ac_check_lib_save_LIBS=$LIBS
8412LIBS="-ldnet_stub  $LIBS"
8413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415
8416/* Override any GCC internal prototype to avoid an error.
8417   Use char because int might match the return type of a GCC
8418   builtin and then its argument prototype would still apply.  */
8419#ifdef __cplusplus
8420extern "C"
8421#endif
8422char dnet_ntoa ();
8423int
8424main ()
8425{
8426return dnet_ntoa ();
8427  ;
8428  return 0;
8429}
8430_ACEOF
8431if ac_fn_c_try_link "$LINENO"; then :
8432  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8433else
8434  ac_cv_lib_dnet_stub_dnet_ntoa=no
8435fi
8436rm -f core conftest.err conftest.$ac_objext \
8437    conftest$ac_exeext conftest.$ac_ext
8438LIBS=$ac_check_lib_save_LIBS
8439fi
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8441$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8442if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8443  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8444fi
8445
8446    fi
8447fi
8448rm -f core conftest.err conftest.$ac_objext \
8449    conftest$ac_exeext conftest.$ac_ext
8450    LIBS="$ac_xsave_LIBS"
8451
8452    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
8453    # to get the SysV transport functions.
8454    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8455    # needs -lnsl.
8456    # The nsl library prevents programs from opening the X display
8457    # on Irix 5.2, according to T.E. Dickey.
8458    # The functions gethostbyname, getservbyname, and inet_addr are
8459    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8460    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8461if test "x$ac_cv_func_gethostbyname" = xyes; then :
8462
8463fi
8464
8465    if test $ac_cv_func_gethostbyname = no; then
8466      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8467$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8468if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  ac_check_lib_save_LIBS=$LIBS
8472LIBS="-lnsl  $LIBS"
8473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474/* end confdefs.h.  */
8475
8476/* Override any GCC internal prototype to avoid an error.
8477   Use char because int might match the return type of a GCC
8478   builtin and then its argument prototype would still apply.  */
8479#ifdef __cplusplus
8480extern "C"
8481#endif
8482char gethostbyname ();
8483int
8484main ()
8485{
8486return gethostbyname ();
8487  ;
8488  return 0;
8489}
8490_ACEOF
8491if ac_fn_c_try_link "$LINENO"; then :
8492  ac_cv_lib_nsl_gethostbyname=yes
8493else
8494  ac_cv_lib_nsl_gethostbyname=no
8495fi
8496rm -f core conftest.err conftest.$ac_objext \
8497    conftest$ac_exeext conftest.$ac_ext
8498LIBS=$ac_check_lib_save_LIBS
8499fi
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8501$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8502if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8503  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8504fi
8505
8506      if test $ac_cv_lib_nsl_gethostbyname = no; then
8507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8508$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8509if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  ac_check_lib_save_LIBS=$LIBS
8513LIBS="-lbsd  $LIBS"
8514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516
8517/* Override any GCC internal prototype to avoid an error.
8518   Use char because int might match the return type of a GCC
8519   builtin and then its argument prototype would still apply.  */
8520#ifdef __cplusplus
8521extern "C"
8522#endif
8523char gethostbyname ();
8524int
8525main ()
8526{
8527return gethostbyname ();
8528  ;
8529  return 0;
8530}
8531_ACEOF
8532if ac_fn_c_try_link "$LINENO"; then :
8533  ac_cv_lib_bsd_gethostbyname=yes
8534else
8535  ac_cv_lib_bsd_gethostbyname=no
8536fi
8537rm -f core conftest.err conftest.$ac_objext \
8538    conftest$ac_exeext conftest.$ac_ext
8539LIBS=$ac_check_lib_save_LIBS
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8542$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8543if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8544  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8545fi
8546
8547      fi
8548    fi
8549
8550    # [email protected] says without -lsocket,
8551    # socket/setsockopt and other routines are undefined under SCO ODT
8552    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8553    # on later versions), says Simon Leinen: it contains gethostby*
8554    # variants that don't use the name server (or something).  -lsocket
8555    # must be given before -lnsl if both are needed.  We assume that
8556    # if connect needs -lnsl, so does gethostbyname.
8557    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8558if test "x$ac_cv_func_connect" = xyes; then :
8559
8560fi
8561
8562    if test $ac_cv_func_connect = no; then
8563      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8564$as_echo_n "checking for connect in -lsocket... " >&6; }
8565if ${ac_cv_lib_socket_connect+:} false; then :
8566  $as_echo_n "(cached) " >&6
8567else
8568  ac_check_lib_save_LIBS=$LIBS
8569LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571/* end confdefs.h.  */
8572
8573/* Override any GCC internal prototype to avoid an error.
8574   Use char because int might match the return type of a GCC
8575   builtin and then its argument prototype would still apply.  */
8576#ifdef __cplusplus
8577extern "C"
8578#endif
8579char connect ();
8580int
8581main ()
8582{
8583return connect ();
8584  ;
8585  return 0;
8586}
8587_ACEOF
8588if ac_fn_c_try_link "$LINENO"; then :
8589  ac_cv_lib_socket_connect=yes
8590else
8591  ac_cv_lib_socket_connect=no
8592fi
8593rm -f core conftest.err conftest.$ac_objext \
8594    conftest$ac_exeext conftest.$ac_ext
8595LIBS=$ac_check_lib_save_LIBS
8596fi
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8598$as_echo "$ac_cv_lib_socket_connect" >&6; }
8599if test "x$ac_cv_lib_socket_connect" = xyes; then :
8600  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8601fi
8602
8603    fi
8604
8605    # Guillermo Gomez says -lposix is necessary on A/UX.
8606    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8607if test "x$ac_cv_func_remove" = xyes; then :
8608
8609fi
8610
8611    if test $ac_cv_func_remove = no; then
8612      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8613$as_echo_n "checking for remove in -lposix... " >&6; }
8614if ${ac_cv_lib_posix_remove+:} false; then :
8615  $as_echo_n "(cached) " >&6
8616else
8617  ac_check_lib_save_LIBS=$LIBS
8618LIBS="-lposix  $LIBS"
8619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620/* end confdefs.h.  */
8621
8622/* Override any GCC internal prototype to avoid an error.
8623   Use char because int might match the return type of a GCC
8624   builtin and then its argument prototype would still apply.  */
8625#ifdef __cplusplus
8626extern "C"
8627#endif
8628char remove ();
8629int
8630main ()
8631{
8632return remove ();
8633  ;
8634  return 0;
8635}
8636_ACEOF
8637if ac_fn_c_try_link "$LINENO"; then :
8638  ac_cv_lib_posix_remove=yes
8639else
8640  ac_cv_lib_posix_remove=no
8641fi
8642rm -f core conftest.err conftest.$ac_objext \
8643    conftest$ac_exeext conftest.$ac_ext
8644LIBS=$ac_check_lib_save_LIBS
8645fi
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8647$as_echo "$ac_cv_lib_posix_remove" >&6; }
8648if test "x$ac_cv_lib_posix_remove" = xyes; then :
8649  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8650fi
8651
8652    fi
8653
8654    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8655    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8656if test "x$ac_cv_func_shmat" = xyes; then :
8657
8658fi
8659
8660    if test $ac_cv_func_shmat = no; then
8661      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8662$as_echo_n "checking for shmat in -lipc... " >&6; }
8663if ${ac_cv_lib_ipc_shmat+:} false; then :
8664  $as_echo_n "(cached) " >&6
8665else
8666  ac_check_lib_save_LIBS=$LIBS
8667LIBS="-lipc  $LIBS"
8668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669/* end confdefs.h.  */
8670
8671/* Override any GCC internal prototype to avoid an error.
8672   Use char because int might match the return type of a GCC
8673   builtin and then its argument prototype would still apply.  */
8674#ifdef __cplusplus
8675extern "C"
8676#endif
8677char shmat ();
8678int
8679main ()
8680{
8681return shmat ();
8682  ;
8683  return 0;
8684}
8685_ACEOF
8686if ac_fn_c_try_link "$LINENO"; then :
8687  ac_cv_lib_ipc_shmat=yes
8688else
8689  ac_cv_lib_ipc_shmat=no
8690fi
8691rm -f core conftest.err conftest.$ac_objext \
8692    conftest$ac_exeext conftest.$ac_ext
8693LIBS=$ac_check_lib_save_LIBS
8694fi
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8696$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8697if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8698  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8699fi
8700
8701    fi
8702  fi
8703
8704  # Check for libraries that X11R6 Xt/Xaw programs need.
8705  ac_save_LDFLAGS=$LDFLAGS
8706  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8707  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8708  # check for ICE first), but we must link in the order -lSM -lICE or
8709  # we get undefined symbols.  So assume we have SM if we have ICE.
8710  # These have to be linked with before -lX11, unlike the other
8711  # libraries we check for below, so use a different variable.
8712  # John Interrante, Karl Berry
8713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8714$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8715if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8716  $as_echo_n "(cached) " >&6
8717else
8718  ac_check_lib_save_LIBS=$LIBS
8719LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721/* end confdefs.h.  */
8722
8723/* Override any GCC internal prototype to avoid an error.
8724   Use char because int might match the return type of a GCC
8725   builtin and then its argument prototype would still apply.  */
8726#ifdef __cplusplus
8727extern "C"
8728#endif
8729char IceConnectionNumber ();
8730int
8731main ()
8732{
8733return IceConnectionNumber ();
8734  ;
8735  return 0;
8736}
8737_ACEOF
8738if ac_fn_c_try_link "$LINENO"; then :
8739  ac_cv_lib_ICE_IceConnectionNumber=yes
8740else
8741  ac_cv_lib_ICE_IceConnectionNumber=no
8742fi
8743rm -f core conftest.err conftest.$ac_objext \
8744    conftest$ac_exeext conftest.$ac_ext
8745LIBS=$ac_check_lib_save_LIBS
8746fi
8747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8748$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8749if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8750  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8751fi
8752
8753  LDFLAGS=$ac_save_LDFLAGS
8754
8755fi
8756
8757
8758        if test "$zOSUnix" = "yes"; then
8759    CFLAGS="$CFLAGS -W c,dll"
8760    LDFLAGS="$LDFLAGS -W l,dll"
8761    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8762  fi
8763
8764
8765  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8766    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8768$as_echo "Corrected X libraries to $x_libraries" >&6; }
8769    X_LIBS="$X_LIBS -L$x_libraries"
8770    if test "`(uname) 2>/dev/null`" = SunOS &&
8771					 uname -r | grep '^5' >/dev/null; then
8772      X_LIBS="$X_LIBS -R $x_libraries"
8773    fi
8774  fi
8775
8776  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8777    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8779$as_echo "Corrected X includes to $x_includes" >&6; }
8780    X_CFLAGS="$X_CFLAGS -I$x_includes"
8781  fi
8782
8783    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8784    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8785    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8786
8787
8788        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8789$as_echo_n "checking if X11 header files can be found... " >&6; }
8790  cflags_save=$CFLAGS
8791  CFLAGS="$CFLAGS $X_CFLAGS"
8792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h.  */
8794#include <X11/Xlib.h>
8795#include <X11/Intrinsic.h>
8796int
8797main ()
8798{
8799
8800  ;
8801  return 0;
8802}
8803_ACEOF
8804if ac_fn_c_try_compile "$LINENO"; then :
8805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8806$as_echo "yes" >&6; }
8807else
8808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809$as_echo "no" >&6; }; no_x=yes
8810fi
8811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8812  CFLAGS=$cflags_save
8813
8814  if test "${no_x-no}" = yes; then
8815    with_x=no
8816  else
8817    $as_echo "#define HAVE_X11 1" >>confdefs.h
8818
8819    X_LIB="-lXt -lX11";
8820
8821
8822    ac_save_LDFLAGS="$LDFLAGS"
8823    LDFLAGS="-L$x_libraries $LDFLAGS"
8824
8825            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8826$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8827if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8828  $as_echo_n "(cached) " >&6
8829else
8830  ac_check_lib_save_LIBS=$LIBS
8831LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833/* end confdefs.h.  */
8834
8835/* Override any GCC internal prototype to avoid an error.
8836   Use char because int might match the return type of a GCC
8837   builtin and then its argument prototype would still apply.  */
8838#ifdef __cplusplus
8839extern "C"
8840#endif
8841char _XdmcpAuthDoIt ();
8842int
8843main ()
8844{
8845return _XdmcpAuthDoIt ();
8846  ;
8847  return 0;
8848}
8849_ACEOF
8850if ac_fn_c_try_link "$LINENO"; then :
8851  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8852else
8853  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8854fi
8855rm -f core conftest.err conftest.$ac_objext \
8856    conftest$ac_exeext conftest.$ac_ext
8857LIBS=$ac_check_lib_save_LIBS
8858fi
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8860$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8861if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8862  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8863fi
8864
8865
8866                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8867$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8868if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871  ac_check_lib_save_LIBS=$LIBS
8872LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874/* end confdefs.h.  */
8875
8876/* Override any GCC internal prototype to avoid an error.
8877   Use char because int might match the return type of a GCC
8878   builtin and then its argument prototype would still apply.  */
8879#ifdef __cplusplus
8880extern "C"
8881#endif
8882char IceOpenConnection ();
8883int
8884main ()
8885{
8886return IceOpenConnection ();
8887  ;
8888  return 0;
8889}
8890_ACEOF
8891if ac_fn_c_try_link "$LINENO"; then :
8892  ac_cv_lib_ICE_IceOpenConnection=yes
8893else
8894  ac_cv_lib_ICE_IceOpenConnection=no
8895fi
8896rm -f core conftest.err conftest.$ac_objext \
8897    conftest$ac_exeext conftest.$ac_ext
8898LIBS=$ac_check_lib_save_LIBS
8899fi
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8901$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8902if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8903  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8904fi
8905
8906
8907        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8908    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8909$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8910if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8911  $as_echo_n "(cached) " >&6
8912else
8913  ac_check_lib_save_LIBS=$LIBS
8914LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917
8918/* Override any GCC internal prototype to avoid an error.
8919   Use char because int might match the return type of a GCC
8920   builtin and then its argument prototype would still apply.  */
8921#ifdef __cplusplus
8922extern "C"
8923#endif
8924char XpmCreatePixmapFromData ();
8925int
8926main ()
8927{
8928return XpmCreatePixmapFromData ();
8929  ;
8930  return 0;
8931}
8932_ACEOF
8933if ac_fn_c_try_link "$LINENO"; then :
8934  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8935else
8936  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8937fi
8938rm -f core conftest.err conftest.$ac_objext \
8939    conftest$ac_exeext conftest.$ac_ext
8940LIBS=$ac_check_lib_save_LIBS
8941fi
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8943$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8944if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8945  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8946fi
8947
8948
8949        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8950$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8951    cflags_save=$CFLAGS
8952        if test "$GCC" = yes; then
8953      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8954    else
8955      CFLAGS="$CFLAGS $X_CFLAGS"
8956    fi
8957    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958/* end confdefs.h.  */
8959#include <X11/Xlib.h>
8960int
8961main ()
8962{
8963
8964  ;
8965  return 0;
8966}
8967_ACEOF
8968if ac_fn_c_try_compile "$LINENO"; then :
8969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970$as_echo "no" >&6; }
8971else
8972  CFLAGS="$CFLAGS -Wno-implicit-int"
8973	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974/* end confdefs.h.  */
8975#include <X11/Xlib.h>
8976int
8977main ()
8978{
8979
8980  ;
8981  return 0;
8982}
8983_ACEOF
8984if ac_fn_c_try_compile "$LINENO"; then :
8985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8986$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8987else
8988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
8989$as_echo "test failed" >&6; }
8990
8991fi
8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993
8994fi
8995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996    CFLAGS=$cflags_save
8997
8998    LDFLAGS="$ac_save_LDFLAGS"
8999
9000    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
9001$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
9002    if ${ac_cv_small_wchar_t+:} false; then :
9003  $as_echo_n "(cached) " >&6
9004else
9005  if test "$cross_compiling" = yes; then :
9006  as_fn_error $? "failed to compile test program" "$LINENO" 5
9007else
9008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009/* end confdefs.h.  */
9010
9011#include <X11/Xlib.h>
9012#if STDC_HEADERS
9013# include <stdlib.h>
9014# include <stddef.h>
9015#endif
9016		main()
9017		{
9018		  if (sizeof(wchar_t) <= 2)
9019		    exit(1);
9020		  exit(0);
9021		}
9022_ACEOF
9023if ac_fn_c_try_run "$LINENO"; then :
9024  ac_cv_small_wchar_t="no"
9025else
9026  ac_cv_small_wchar_t="yes"
9027fi
9028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9029  conftest.$ac_objext conftest.beam conftest.$ac_ext
9030fi
9031
9032fi
9033
9034    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
9035$as_echo "$ac_cv_small_wchar_t" >&6; }
9036    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
9037      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
9038
9039    fi
9040
9041  fi
9042fi
9043
9044if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then
9045    as_fn_error $? "could not configure X" "$LINENO" 5
9046fi
9047
9048test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
9049
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
9051$as_echo_n "checking --enable-gui argument... " >&6; }
9052# Check whether --enable-gui was given.
9053if test "${enable_gui+set}" = set; then :
9054  enableval=$enable_gui;
9055else
9056  enable_gui="auto"
9057fi
9058
9059
9060enable_gui_canon=`echo "_$enable_gui" | \
9061	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
9062
9063SKIP_GTK2=YES
9064SKIP_GTK3=YES
9065SKIP_GNOME=YES
9066SKIP_MOTIF=YES
9067SKIP_ATHENA=YES
9068SKIP_NEXTAW=YES
9069SKIP_PHOTON=YES
9070SKIP_CARBON=YES
9071GUITYPE=NONE
9072
9073if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
9074  SKIP_PHOTON=
9075  case "$enable_gui_canon" in
9076    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9077$as_echo "no GUI support" >&6; }
9078		SKIP_PHOTON=YES ;;
9079    yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5
9080$as_echo "automatic GUI support" >&6; }
9081    		gui_auto=yes ;;
9082    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
9083$as_echo "Photon GUI support" >&6; } ;;
9084    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9085$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9086		SKIP_PHOTON=YES ;;
9087  esac
9088
9089elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
9090  SKIP_CARBON=
9091  case "$enable_gui_canon" in
9092    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9093$as_echo "no GUI support" >&6; }
9094		SKIP_CARBON=YES ;;
9095    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9096$as_echo "yes - automatic GUI support" >&6; }
9097    		gui_auto=yes ;;
9098    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
9099$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
9100		SKIP_CARBON=YES ;;
9101    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
9102$as_echo "Carbon GUI support" >&6; } ;;
9103    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9104$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9105		SKIP_CARBON=YES ;;
9106  esac
9107
9108else
9109
9110  case "$enable_gui_canon" in
9111    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9112$as_echo "no GUI support" >&6; } ;;
9113    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
9114$as_echo "yes/auto - automatic GUI support" >&6; }
9115		gui_auto=yes
9116		SKIP_GTK2=
9117		SKIP_GNOME=
9118		SKIP_MOTIF=
9119		SKIP_ATHENA=
9120		SKIP_NEXTAW=
9121		SKIP_CARBON=;;
9122    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
9123$as_echo "GTK+ 2.x GUI support" >&6; }
9124		SKIP_GTK2=;;
9125    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
9126$as_echo "GNOME 2.x GUI support" >&6; }
9127		SKIP_GNOME=
9128		SKIP_GTK2=;;
9129    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
9130$as_echo "GTK+ 3.x GUI support" >&6; }
9131		SKIP_GTK3=;;
9132    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
9133$as_echo "Motif GUI support" >&6; }
9134		SKIP_MOTIF=;;
9135    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
9136$as_echo "Athena GUI support" >&6; }
9137		SKIP_ATHENA=;;
9138    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
9139$as_echo "neXtaw GUI support" >&6; }
9140		SKIP_NEXTAW=;;
9141    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9142$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
9143  esac
9144
9145fi
9146
9147if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
9148				-a "$enable_gui_canon" != "gnome2"; then
9149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
9150$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
9151  # Check whether --enable-gtk2-check was given.
9152if test "${enable_gtk2_check+set}" = set; then :
9153  enableval=$enable_gtk2_check;
9154else
9155  enable_gtk2_check="yes"
9156fi
9157
9158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
9159$as_echo "$enable_gtk2_check" >&6; }
9160  if test "x$enable_gtk2_check" = "xno"; then
9161    SKIP_GTK2=YES
9162    SKIP_GNOME=YES
9163  fi
9164fi
9165
9166if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
9167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
9168$as_echo_n "checking whether or not to look for GNOME... " >&6; }
9169  # Check whether --enable-gnome-check was given.
9170if test "${enable_gnome_check+set}" = set; then :
9171  enableval=$enable_gnome_check;
9172else
9173  enable_gnome_check="no"
9174fi
9175
9176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
9177$as_echo "$enable_gnome_check" >&6; }
9178  if test "x$enable_gnome_check" = "xno"; then
9179    SKIP_GNOME=YES
9180  fi
9181fi
9182
9183if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
9184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
9185$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
9186  # Check whether --enable-gtk3-check was given.
9187if test "${enable_gtk3_check+set}" = set; then :
9188  enableval=$enable_gtk3_check;
9189else
9190  enable_gtk3_check="yes"
9191fi
9192
9193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
9194$as_echo "$enable_gtk3_check" >&6; }
9195  if test "x$enable_gtk3_check" = "xno"; then
9196    SKIP_GTK3=YES
9197  fi
9198fi
9199
9200if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
9201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
9202$as_echo_n "checking whether or not to look for Motif... " >&6; }
9203  # Check whether --enable-motif-check was given.
9204if test "${enable_motif_check+set}" = set; then :
9205  enableval=$enable_motif_check;
9206else
9207  enable_motif_check="yes"
9208fi
9209
9210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
9211$as_echo "$enable_motif_check" >&6; }
9212  if test "x$enable_motif_check" = "xno"; then
9213    SKIP_MOTIF=YES
9214  fi
9215fi
9216
9217if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
9218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
9219$as_echo_n "checking whether or not to look for Athena... " >&6; }
9220  # Check whether --enable-athena-check was given.
9221if test "${enable_athena_check+set}" = set; then :
9222  enableval=$enable_athena_check;
9223else
9224  enable_athena_check="yes"
9225fi
9226
9227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
9228$as_echo "$enable_athena_check" >&6; }
9229  if test "x$enable_athena_check" = "xno"; then
9230    SKIP_ATHENA=YES
9231  fi
9232fi
9233
9234if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
9235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
9236$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
9237  # Check whether --enable-nextaw-check was given.
9238if test "${enable_nextaw_check+set}" = set; then :
9239  enableval=$enable_nextaw_check;
9240else
9241  enable_nextaw_check="yes"
9242fi
9243
9244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
9245$as_echo "$enable_nextaw_check" >&6; };
9246  if test "x$enable_nextaw_check" = "xno"; then
9247    SKIP_NEXTAW=YES
9248  fi
9249fi
9250
9251if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
9252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
9253$as_echo_n "checking whether or not to look for Carbon... " >&6; }
9254  # Check whether --enable-carbon-check was given.
9255if test "${enable_carbon_check+set}" = set; then :
9256  enableval=$enable_carbon_check;
9257else
9258  enable_carbon_check="yes"
9259fi
9260
9261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
9262$as_echo "$enable_carbon_check" >&6; };
9263  if test "x$enable_carbon_check" = "xno"; then
9264    SKIP_CARBON=YES
9265  fi
9266fi
9267
9268
9269if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
9270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
9271$as_echo_n "checking for Carbon GUI... " >&6; }
9272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9273$as_echo "yes" >&6; };
9274  GUITYPE=CARBONGUI
9275  if test "$VIMNAME" = "vim"; then
9276    VIMNAME=Vim
9277  fi
9278
9279  if test "x$MACARCH" = "xboth"; then
9280    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
9281  else
9282    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
9283  fi
9284
9285    if test x$prefix = xNONE; then
9286    prefix=/Applications
9287  fi
9288
9289    datadir='${prefix}/Vim.app/Contents/Resources'
9290
9291    SKIP_GTK2=YES;
9292  SKIP_GNOME=YES;
9293  SKIP_MOTIF=YES;
9294  SKIP_ATHENA=YES;
9295  SKIP_NEXTAW=YES;
9296  SKIP_PHOTON=YES;
9297  SKIP_CARBON=YES
9298fi
9299
9300
9301
9302
9303
9304
9305
9306if test "X$PKG_CONFIG" = "X"; then
9307  if test -n "$ac_tool_prefix"; then
9308  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9309set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311$as_echo_n "checking for $ac_word... " >&6; }
9312if ${ac_cv_path_PKG_CONFIG+:} false; then :
9313  $as_echo_n "(cached) " >&6
9314else
9315  case $PKG_CONFIG in
9316  [\\/]* | ?:[\\/]*)
9317  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9318  ;;
9319  *)
9320  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321for as_dir in $PATH
9322do
9323  IFS=$as_save_IFS
9324  test -z "$as_dir" && as_dir=.
9325    for ac_exec_ext in '' $ac_executable_extensions; do
9326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9327    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9329    break 2
9330  fi
9331done
9332  done
9333IFS=$as_save_IFS
9334
9335  ;;
9336esac
9337fi
9338PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9339if test -n "$PKG_CONFIG"; then
9340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9341$as_echo "$PKG_CONFIG" >&6; }
9342else
9343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9344$as_echo "no" >&6; }
9345fi
9346
9347
9348fi
9349if test -z "$ac_cv_path_PKG_CONFIG"; then
9350  ac_pt_PKG_CONFIG=$PKG_CONFIG
9351  # Extract the first word of "pkg-config", so it can be a program name with args.
9352set dummy pkg-config; ac_word=$2
9353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9354$as_echo_n "checking for $ac_word... " >&6; }
9355if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9356  $as_echo_n "(cached) " >&6
9357else
9358  case $ac_pt_PKG_CONFIG in
9359  [\\/]* | ?:[\\/]*)
9360  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9361  ;;
9362  *)
9363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9364for as_dir in $PATH
9365do
9366  IFS=$as_save_IFS
9367  test -z "$as_dir" && as_dir=.
9368    for ac_exec_ext in '' $ac_executable_extensions; do
9369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9370    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9372    break 2
9373  fi
9374done
9375  done
9376IFS=$as_save_IFS
9377
9378  ;;
9379esac
9380fi
9381ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9382if test -n "$ac_pt_PKG_CONFIG"; then
9383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9384$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9385else
9386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387$as_echo "no" >&6; }
9388fi
9389
9390  if test "x$ac_pt_PKG_CONFIG" = x; then
9391    PKG_CONFIG="no"
9392  else
9393    case $cross_compiling:$ac_tool_warned in
9394yes:)
9395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9397ac_tool_warned=yes ;;
9398esac
9399    PKG_CONFIG=$ac_pt_PKG_CONFIG
9400  fi
9401else
9402  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9403fi
9404
9405fi
9406
9407
9408if test -z "$SKIP_GTK2"; then
9409
9410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9411$as_echo_n "checking --disable-gtktest argument... " >&6; }
9412  # Check whether --enable-gtktest was given.
9413if test "${enable_gtktest+set}" = set; then :
9414  enableval=$enable_gtktest;
9415else
9416  enable_gtktest=yes
9417fi
9418
9419  if test "x$enable_gtktest" = "xyes" ; then
9420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9421$as_echo "gtk test enabled" >&6; }
9422  else
9423    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9424$as_echo "gtk test disabled" >&6; }
9425  fi
9426
9427  if test "x$PKG_CONFIG" != "xno"; then
9428
9429  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9430  {
9431    no_gtk=""
9432    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9433	  && $PKG_CONFIG --exists gtk+-2.0; then
9434    {
9435      min_gtk_version=2.2.0
9436      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9437$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9438                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9439      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9440      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9441      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9442	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9443      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9444	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9445      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9446	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9447    }
9448    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9449	  && $PKG_CONFIG --exists gtk+-3.0; then
9450    {
9451      min_gtk_version=2.2.0
9452      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9453$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9454
9455      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9456      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9457      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9458      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9459	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9460      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9461	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9462      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9463	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9464    }
9465    else
9466      no_gtk=yes
9467    fi
9468
9469    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9470    {
9471      ac_save_CFLAGS="$CFLAGS"
9472      ac_save_LIBS="$LIBS"
9473      CFLAGS="$CFLAGS $GTK_CFLAGS"
9474      LIBS="$LIBS $GTK_LIBS"
9475
9476                        rm -f conf.gtktest
9477      if test "$cross_compiling" = yes; then :
9478  echo $ac_n "cross compiling; assumed OK... $ac_c"
9479else
9480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h.  */
9482
9483#include <gtk/gtk.h>
9484#include <stdio.h>
9485#if STDC_HEADERS
9486# include <stdlib.h>
9487# include <stddef.h>
9488#endif
9489
9490int
9491main ()
9492{
9493int major, minor, micro;
9494char *tmp_version;
9495
9496system ("touch conf.gtktest");
9497
9498/* HP/UX 9 (%@#!) writes to sscanf strings */
9499tmp_version = g_strdup("$min_gtk_version");
9500if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9501   printf("%s, bad version string\n", "$min_gtk_version");
9502   exit(1);
9503 }
9504
9505if ((gtk_major_version > major) ||
9506    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9507    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9508				     (gtk_micro_version >= micro)))
9509{
9510    return 0;
9511}
9512return 1;
9513}
9514
9515_ACEOF
9516if ac_fn_c_try_run "$LINENO"; then :
9517
9518else
9519  no_gtk=yes
9520fi
9521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9522  conftest.$ac_objext conftest.beam conftest.$ac_ext
9523fi
9524
9525      CFLAGS="$ac_save_CFLAGS"
9526      LIBS="$ac_save_LIBS"
9527    }
9528    fi
9529    if test "x$no_gtk" = x ; then
9530      if test "x$enable_gtktest" = "xyes"; then
9531	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9532$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9533      else
9534	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9535$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9536      fi
9537      GUI_LIB_LOC="$GTK_LIBDIR"
9538		 GTK_LIBNAME="$GTK_LIBS"
9539		GUI_INC_LOC="$GTK_CFLAGS"
9540    else
9541    {
9542      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543$as_echo "no" >&6; }
9544      GTK_CFLAGS=""
9545      GTK_LIBS=""
9546      :
9547      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9548	as_fn_error $? "could not configure GTK" "$LINENO" 5
9549      fi
9550    }
9551    fi
9552  }
9553  else
9554    GTK_CFLAGS=""
9555    GTK_LIBS=""
9556    :
9557  fi
9558
9559
9560  rm -f conf.gtktest
9561
9562    if test "x$GTK_CFLAGS" != "x"; then
9563      SKIP_GTK3=YES
9564      SKIP_ATHENA=YES
9565      SKIP_NEXTAW=YES
9566      SKIP_MOTIF=YES
9567      GUITYPE=GTK
9568
9569    fi
9570  fi
9571  if test "x$GUITYPE" = "xGTK"; then
9572                if test -z "$SKIP_GNOME"; then
9573    {
9574
9575
9576
9577
9578
9579
9580# Check whether --with-gnome-includes was given.
9581if test "${with_gnome_includes+set}" = set; then :
9582  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9583
9584fi
9585
9586
9587
9588# Check whether --with-gnome-libs was given.
9589if test "${with_gnome_libs+set}" = set; then :
9590  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9591
9592fi
9593
9594
9595
9596# Check whether --with-gnome was given.
9597if test "${with_gnome+set}" = set; then :
9598  withval=$with_gnome; if test x$withval = xyes; then
9599      want_gnome=yes
9600      have_gnome=yes
9601    else
9602      if test "x$withval" = xno; then
9603	want_gnome=no
9604      else
9605	want_gnome=yes
9606	LDFLAGS="$LDFLAGS -L$withval/lib"
9607	CFLAGS="$CFLAGS -I$withval/include"
9608	gnome_prefix=$withval/lib
9609      fi
9610    fi
9611else
9612  want_gnome=yes
9613fi
9614
9615
9616  if test "x$want_gnome" = xyes; then
9617  {
9618    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9619$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9620    if $PKG_CONFIG --exists libgnomeui-2.0; then
9621      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9622$as_echo "yes" >&6; }
9623      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9624      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9625      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9626
9627                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9628$as_echo_n "checking for FreeBSD... " >&6; }
9629      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9630	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9631$as_echo "yes" >&6; }
9632	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9633	GNOME_LIBS="$GNOME_LIBS -pthread"
9634      else
9635	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636$as_echo "no" >&6; }
9637      fi
9638      have_gnome=yes
9639    else
9640      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9641$as_echo "not found" >&6; }
9642      if test "x" = xfail; then
9643	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9644      fi
9645    fi
9646  }
9647  fi
9648
9649      if test "x$have_gnome" = xyes ; then
9650	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9651
9652	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9653	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9654      fi
9655    }
9656    fi
9657  fi
9658fi
9659
9660
9661if test -z "$SKIP_GTK3"; then
9662
9663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9664$as_echo_n "checking --disable-gtktest argument... " >&6; }
9665  # Check whether --enable-gtktest was given.
9666if test "${enable_gtktest+set}" = set; then :
9667  enableval=$enable_gtktest;
9668else
9669  enable_gtktest=yes
9670fi
9671
9672  if test "x$enable_gtktest" = "xyes" ; then
9673    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9674$as_echo "gtk test enabled" >&6; }
9675  else
9676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9677$as_echo "gtk test disabled" >&6; }
9678  fi
9679
9680  if test "x$PKG_CONFIG" != "xno"; then
9681
9682  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9683  {
9684    no_gtk=""
9685    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9686	  && $PKG_CONFIG --exists gtk+-2.0; then
9687    {
9688      min_gtk_version=3.0.0
9689      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9690$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9691                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9692      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9693      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9694      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9695	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9696      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9697	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9698      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9699	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9700    }
9701    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9702	  && $PKG_CONFIG --exists gtk+-3.0; then
9703    {
9704      min_gtk_version=3.0.0
9705      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9706$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9707
9708      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9709      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9710      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9711      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9712	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9713      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9714	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9715      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9716	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9717    }
9718    else
9719      no_gtk=yes
9720    fi
9721
9722    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9723    {
9724      ac_save_CFLAGS="$CFLAGS"
9725      ac_save_LIBS="$LIBS"
9726      CFLAGS="$CFLAGS $GTK_CFLAGS"
9727      LIBS="$LIBS $GTK_LIBS"
9728
9729                        rm -f conf.gtktest
9730      if test "$cross_compiling" = yes; then :
9731  echo $ac_n "cross compiling; assumed OK... $ac_c"
9732else
9733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734/* end confdefs.h.  */
9735
9736#include <gtk/gtk.h>
9737#include <stdio.h>
9738#if STDC_HEADERS
9739# include <stdlib.h>
9740# include <stddef.h>
9741#endif
9742
9743int
9744main ()
9745{
9746int major, minor, micro;
9747char *tmp_version;
9748
9749system ("touch conf.gtktest");
9750
9751/* HP/UX 9 (%@#!) writes to sscanf strings */
9752tmp_version = g_strdup("$min_gtk_version");
9753if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9754   printf("%s, bad version string\n", "$min_gtk_version");
9755   exit(1);
9756 }
9757
9758if ((gtk_major_version > major) ||
9759    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9760    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9761				     (gtk_micro_version >= micro)))
9762{
9763    return 0;
9764}
9765return 1;
9766}
9767
9768_ACEOF
9769if ac_fn_c_try_run "$LINENO"; then :
9770
9771else
9772  no_gtk=yes
9773fi
9774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9775  conftest.$ac_objext conftest.beam conftest.$ac_ext
9776fi
9777
9778      CFLAGS="$ac_save_CFLAGS"
9779      LIBS="$ac_save_LIBS"
9780    }
9781    fi
9782    if test "x$no_gtk" = x ; then
9783      if test "x$enable_gtktest" = "xyes"; then
9784	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9785$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9786      else
9787	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9788$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9789      fi
9790      GUI_LIB_LOC="$GTK_LIBDIR"
9791		 GTK_LIBNAME="$GTK_LIBS"
9792		GUI_INC_LOC="$GTK_CFLAGS"
9793    else
9794    {
9795      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796$as_echo "no" >&6; }
9797      GTK_CFLAGS=""
9798      GTK_LIBS=""
9799      :
9800      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9801	as_fn_error $? "could not configure GTK" "$LINENO" 5
9802      fi
9803    }
9804    fi
9805  }
9806  else
9807    GTK_CFLAGS=""
9808    GTK_LIBS=""
9809    :
9810  fi
9811
9812
9813  rm -f conf.gtktest
9814
9815    if test "x$GTK_CFLAGS" != "x"; then
9816      SKIP_GTK2=YES
9817      SKIP_GNOME=YES
9818      SKIP_ATHENA=YES
9819      SKIP_NEXTAW=YES
9820      SKIP_MOTIF=YES
9821      GUITYPE=GTK
9822
9823      $as_echo "#define USE_GTK3 1" >>confdefs.h
9824
9825    fi
9826  fi
9827fi
9828
9829if test "x$GUITYPE" = "xGTK"; then
9830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9831$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9832  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9833  if test "x$gdk_pixbuf_version" != x ; then
9834    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9835      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9836    if test "x$gdk_pixbuf_version_minor" != x -a \
9837	$gdk_pixbuf_version_minor -ge 31 ; then
9838      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
9839$as_echo "OK." >&6; }
9840      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
9841set dummy glib-compile-resources; ac_word=$2
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843$as_echo_n "checking for $ac_word... " >&6; }
9844if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
9845  $as_echo_n "(cached) " >&6
9846else
9847  case $GLIB_COMPILE_RESOURCES in
9848  [\\/]* | ?:[\\/]*)
9849  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
9850  ;;
9851  *)
9852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853for as_dir in $PATH
9854do
9855  IFS=$as_save_IFS
9856  test -z "$as_dir" && as_dir=.
9857    for ac_exec_ext in '' $ac_executable_extensions; do
9858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9859    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
9860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9861    break 2
9862  fi
9863done
9864  done
9865IFS=$as_save_IFS
9866
9867  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
9868  ;;
9869esac
9870fi
9871GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
9872if test -n "$GLIB_COMPILE_RESOURCES"; then
9873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
9874$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
9875else
9876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877$as_echo "no" >&6; }
9878fi
9879
9880
9881      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
9882$as_echo_n "checking glib-compile-resources... " >&6; }
9883      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
9884	GLIB_COMPILE_RESOURCES=""
9885	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
9886$as_echo "cannot be found in PATH." >&6; }
9887      else
9888	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
9889$as_echo "usable." >&6; }
9890	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
9891
9892	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
9893	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
9894      fi
9895    else
9896      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
9897$as_echo "not usable." >&6; }
9898    fi
9899  else
9900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
9901$as_echo "cannot obtain from pkg_config." >&6; }
9902  fi
9903
9904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
9905$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
9906  # Check whether --enable-icon_cache_update was given.
9907if test "${enable_icon_cache_update+set}" = set; then :
9908  enableval=$enable_icon_cache_update;
9909else
9910  enable_icon_cache_update="yes"
9911fi
9912
9913  if test "$enable_icon_cache_update" = "yes"; then
9914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9915$as_echo "not set" >&6; }
9916    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
9917set dummy gtk-update-icon-cache; ac_word=$2
9918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919$as_echo_n "checking for $ac_word... " >&6; }
9920if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
9921  $as_echo_n "(cached) " >&6
9922else
9923  case $GTK_UPDATE_ICON_CACHE in
9924  [\\/]* | ?:[\\/]*)
9925  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
9926  ;;
9927  *)
9928  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929for as_dir in $PATH
9930do
9931  IFS=$as_save_IFS
9932  test -z "$as_dir" && as_dir=.
9933    for ac_exec_ext in '' $ac_executable_extensions; do
9934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9935    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
9936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937    break 2
9938  fi
9939done
9940  done
9941IFS=$as_save_IFS
9942
9943  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
9944  ;;
9945esac
9946fi
9947GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
9948if test -n "$GTK_UPDATE_ICON_CACHE"; then
9949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
9950$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
9951else
9952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953$as_echo "no" >&6; }
9954fi
9955
9956
9957    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
9958      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
9959$as_echo "not found in PATH." >&6; }
9960    fi
9961  else
9962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
9963$as_echo "update disabled" >&6; }
9964  fi
9965
9966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
9967$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
9968  # Check whether --enable-desktop_database_update was given.
9969if test "${enable_desktop_database_update+set}" = set; then :
9970  enableval=$enable_desktop_database_update;
9971else
9972  enable_desktop_database_update="yes"
9973fi
9974
9975  if test "$enable_desktop_database_update" = "yes"; then
9976    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9977$as_echo "not set" >&6; }
9978    # Extract the first word of "update-desktop-database", so it can be a program name with args.
9979set dummy update-desktop-database; ac_word=$2
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981$as_echo_n "checking for $ac_word... " >&6; }
9982if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
9983  $as_echo_n "(cached) " >&6
9984else
9985  case $UPDATE_DESKTOP_DATABASE in
9986  [\\/]* | ?:[\\/]*)
9987  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
9988  ;;
9989  *)
9990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991for as_dir in $PATH
9992do
9993  IFS=$as_save_IFS
9994  test -z "$as_dir" && as_dir=.
9995    for ac_exec_ext in '' $ac_executable_extensions; do
9996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9997    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
9998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9999    break 2
10000  fi
10001done
10002  done
10003IFS=$as_save_IFS
10004
10005  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
10006  ;;
10007esac
10008fi
10009UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
10010if test -n "$UPDATE_DESKTOP_DATABASE"; then
10011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
10012$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
10013else
10014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10015$as_echo "no" >&6; }
10016fi
10017
10018
10019    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
10020      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10021$as_echo "not found in PATH." >&6; }
10022    fi
10023  else
10024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10025$as_echo "update disabled" >&6; }
10026  fi
10027fi
10028
10029
10030
10031
10032
10033
10034
10035if test -z "$SKIP_MOTIF"; then
10036  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"
10037    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
10038
10039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
10040$as_echo_n "checking for location of Motif GUI includes... " >&6; }
10041  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
10042  GUI_INC_LOC=
10043  for try in $gui_includes; do
10044    if test -f "$try/Xm/Xm.h"; then
10045      GUI_INC_LOC=$try
10046    fi
10047  done
10048  if test -n "$GUI_INC_LOC"; then
10049    if test "$GUI_INC_LOC" = /usr/include; then
10050      GUI_INC_LOC=
10051      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10052$as_echo "in default path" >&6; }
10053    else
10054      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
10055$as_echo "$GUI_INC_LOC" >&6; }
10056    fi
10057  else
10058    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10059$as_echo "<not found>" >&6; }
10060    SKIP_MOTIF=YES
10061  fi
10062fi
10063
10064
10065if test -z "$SKIP_MOTIF"; then
10066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
10067$as_echo_n "checking --with-motif-lib argument... " >&6; }
10068
10069# Check whether --with-motif-lib was given.
10070if test "${with_motif_lib+set}" = set; then :
10071  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
10072fi
10073
10074
10075  if test -n "$MOTIF_LIBNAME"; then
10076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
10077$as_echo "$MOTIF_LIBNAME" >&6; }
10078    GUI_LIB_LOC=
10079  else
10080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
10082
10083        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
10084
10085            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
10086$as_echo_n "checking for location of Motif GUI libs... " >&6; }
10087    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"
10088    GUI_LIB_LOC=
10089    for try in $gui_libs; do
10090      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
10091	if test -f "$libtry"; then
10092	  GUI_LIB_LOC=$try
10093	fi
10094      done
10095    done
10096    if test -n "$GUI_LIB_LOC"; then
10097            if test "$GUI_LIB_LOC" = /usr/lib \
10098	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
10099	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
10100	GUI_LIB_LOC=
10101	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10102$as_echo "in default path" >&6; }
10103      else
10104	if test -n "$GUI_LIB_LOC"; then
10105	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
10106$as_echo "$GUI_LIB_LOC" >&6; }
10107	  if test "`(uname) 2>/dev/null`" = SunOS &&
10108					 uname -r | grep '^5' >/dev/null; then
10109	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
10110	  fi
10111	fi
10112      fi
10113      MOTIF_LIBNAME=-lXm
10114    else
10115      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10116$as_echo "<not found>" >&6; }
10117      SKIP_MOTIF=YES
10118    fi
10119  fi
10120fi
10121
10122if test -z "$SKIP_MOTIF"; then
10123  SKIP_ATHENA=YES
10124  SKIP_NEXTAW=YES
10125  GUITYPE=MOTIF
10126
10127fi
10128
10129
10130GUI_X_LIBS=
10131
10132if test -z "$SKIP_ATHENA"; then
10133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
10134$as_echo_n "checking if Athena header files can be found... " >&6; }
10135  cflags_save=$CFLAGS
10136  CFLAGS="$CFLAGS $X_CFLAGS"
10137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138/* end confdefs.h.  */
10139
10140#include <X11/Intrinsic.h>
10141#include <X11/Xaw/Paned.h>
10142int
10143main ()
10144{
10145
10146  ;
10147  return 0;
10148}
10149_ACEOF
10150if ac_fn_c_try_compile "$LINENO"; then :
10151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10152$as_echo "yes" >&6; }
10153else
10154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155$as_echo "no" >&6; }; SKIP_ATHENA=YES
10156fi
10157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158  CFLAGS=$cflags_save
10159fi
10160
10161if test -z "$SKIP_ATHENA"; then
10162  GUITYPE=ATHENA
10163fi
10164
10165if test -z "$SKIP_NEXTAW"; then
10166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
10167$as_echo_n "checking if neXtaw header files can be found... " >&6; }
10168  cflags_save=$CFLAGS
10169  CFLAGS="$CFLAGS $X_CFLAGS"
10170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171/* end confdefs.h.  */
10172
10173#include <X11/Intrinsic.h>
10174#include <X11/neXtaw/Paned.h>
10175int
10176main ()
10177{
10178
10179  ;
10180  return 0;
10181}
10182_ACEOF
10183if ac_fn_c_try_compile "$LINENO"; then :
10184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10185$as_echo "yes" >&6; }
10186else
10187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188$as_echo "no" >&6; }; SKIP_NEXTAW=YES
10189fi
10190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191  CFLAGS=$cflags_save
10192fi
10193
10194if test -z "$SKIP_NEXTAW"; then
10195  GUITYPE=NEXTAW
10196fi
10197
10198if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10199      if test -n "$GUI_INC_LOC"; then
10200    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
10201  fi
10202  if test -n "$GUI_LIB_LOC"; then
10203    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
10204  fi
10205
10206    ldflags_save=$LDFLAGS
10207  LDFLAGS="$X_LIBS $LDFLAGS"
10208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10209$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10210if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10211  $as_echo_n "(cached) " >&6
10212else
10213  ac_check_lib_save_LIBS=$LIBS
10214LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216/* end confdefs.h.  */
10217
10218/* Override any GCC internal prototype to avoid an error.
10219   Use char because int might match the return type of a GCC
10220   builtin and then its argument prototype would still apply.  */
10221#ifdef __cplusplus
10222extern "C"
10223#endif
10224char XShapeQueryExtension ();
10225int
10226main ()
10227{
10228return XShapeQueryExtension ();
10229  ;
10230  return 0;
10231}
10232_ACEOF
10233if ac_fn_c_try_link "$LINENO"; then :
10234  ac_cv_lib_Xext_XShapeQueryExtension=yes
10235else
10236  ac_cv_lib_Xext_XShapeQueryExtension=no
10237fi
10238rm -f core conftest.err conftest.$ac_objext \
10239    conftest$ac_exeext conftest.$ac_ext
10240LIBS=$ac_check_lib_save_LIBS
10241fi
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10243$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10244if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10245  GUI_X_LIBS="-lXext"
10246fi
10247
10248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
10249$as_echo_n "checking for wslen in -lw... " >&6; }
10250if ${ac_cv_lib_w_wslen+:} false; then :
10251  $as_echo_n "(cached) " >&6
10252else
10253  ac_check_lib_save_LIBS=$LIBS
10254LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h.  */
10257
10258/* Override any GCC internal prototype to avoid an error.
10259   Use char because int might match the return type of a GCC
10260   builtin and then its argument prototype would still apply.  */
10261#ifdef __cplusplus
10262extern "C"
10263#endif
10264char wslen ();
10265int
10266main ()
10267{
10268return wslen ();
10269  ;
10270  return 0;
10271}
10272_ACEOF
10273if ac_fn_c_try_link "$LINENO"; then :
10274  ac_cv_lib_w_wslen=yes
10275else
10276  ac_cv_lib_w_wslen=no
10277fi
10278rm -f core conftest.err conftest.$ac_objext \
10279    conftest$ac_exeext conftest.$ac_ext
10280LIBS=$ac_check_lib_save_LIBS
10281fi
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
10283$as_echo "$ac_cv_lib_w_wslen" >&6; }
10284if test "x$ac_cv_lib_w_wslen" = xyes; then :
10285  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
10286fi
10287
10288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10289$as_echo_n "checking for dlsym in -ldl... " >&6; }
10290if ${ac_cv_lib_dl_dlsym+:} false; then :
10291  $as_echo_n "(cached) " >&6
10292else
10293  ac_check_lib_save_LIBS=$LIBS
10294LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296/* end confdefs.h.  */
10297
10298/* Override any GCC internal prototype to avoid an error.
10299   Use char because int might match the return type of a GCC
10300   builtin and then its argument prototype would still apply.  */
10301#ifdef __cplusplus
10302extern "C"
10303#endif
10304char dlsym ();
10305int
10306main ()
10307{
10308return dlsym ();
10309  ;
10310  return 0;
10311}
10312_ACEOF
10313if ac_fn_c_try_link "$LINENO"; then :
10314  ac_cv_lib_dl_dlsym=yes
10315else
10316  ac_cv_lib_dl_dlsym=no
10317fi
10318rm -f core conftest.err conftest.$ac_objext \
10319    conftest$ac_exeext conftest.$ac_ext
10320LIBS=$ac_check_lib_save_LIBS
10321fi
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10323$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10324if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10325  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
10326fi
10327
10328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
10329$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
10330if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
10331  $as_echo_n "(cached) " >&6
10332else
10333  ac_check_lib_save_LIBS=$LIBS
10334LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336/* end confdefs.h.  */
10337
10338/* Override any GCC internal prototype to avoid an error.
10339   Use char because int might match the return type of a GCC
10340   builtin and then its argument prototype would still apply.  */
10341#ifdef __cplusplus
10342extern "C"
10343#endif
10344char XmuCreateStippledPixmap ();
10345int
10346main ()
10347{
10348return XmuCreateStippledPixmap ();
10349  ;
10350  return 0;
10351}
10352_ACEOF
10353if ac_fn_c_try_link "$LINENO"; then :
10354  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
10355else
10356  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
10357fi
10358rm -f core conftest.err conftest.$ac_objext \
10359    conftest$ac_exeext conftest.$ac_ext
10360LIBS=$ac_check_lib_save_LIBS
10361fi
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
10363$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
10364if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
10365  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
10366fi
10367
10368  if test -z "$SKIP_MOTIF"; then
10369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
10370$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
10371if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
10372  $as_echo_n "(cached) " >&6
10373else
10374  ac_check_lib_save_LIBS=$LIBS
10375LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377/* end confdefs.h.  */
10378
10379/* Override any GCC internal prototype to avoid an error.
10380   Use char because int might match the return type of a GCC
10381   builtin and then its argument prototype would still apply.  */
10382#ifdef __cplusplus
10383extern "C"
10384#endif
10385char XpEndJob ();
10386int
10387main ()
10388{
10389return XpEndJob ();
10390  ;
10391  return 0;
10392}
10393_ACEOF
10394if ac_fn_c_try_link "$LINENO"; then :
10395  ac_cv_lib_Xp_XpEndJob=yes
10396else
10397  ac_cv_lib_Xp_XpEndJob=no
10398fi
10399rm -f core conftest.err conftest.$ac_objext \
10400    conftest$ac_exeext conftest.$ac_ext
10401LIBS=$ac_check_lib_save_LIBS
10402fi
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
10404$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10405if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
10406  GUI_X_LIBS="-lXp $GUI_X_LIBS"
10407fi
10408
10409  fi
10410  LDFLAGS=$ldflags_save
10411
10412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
10413$as_echo_n "checking for extra X11 defines... " >&6; }
10414  NARROW_PROTO=
10415  rm -fr conftestdir
10416  if mkdir conftestdir; then
10417    cd conftestdir
10418    cat > Imakefile <<'EOF'
10419acfindx:
10420	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10421EOF
10422    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10423      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10424    fi
10425    cd ..
10426    rm -fr conftestdir
10427  fi
10428  if test -z "$NARROW_PROTO"; then
10429    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430$as_echo "no" >&6; }
10431  else
10432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
10433$as_echo "$NARROW_PROTO" >&6; }
10434  fi
10435
10436fi
10437
10438if test "$enable_xsmp" = "yes"; then
10439  cppflags_save=$CPPFLAGS
10440  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10441  for ac_header in X11/SM/SMlib.h
10442do :
10443  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10444if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
10445  cat >>confdefs.h <<_ACEOF
10446#define HAVE_X11_SM_SMLIB_H 1
10447_ACEOF
10448
10449fi
10450
10451done
10452
10453  CPPFLAGS=$cppflags_save
10454fi
10455
10456
10457if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
10458    cppflags_save=$CPPFLAGS
10459  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10460  for ac_header in X11/xpm.h X11/Sunkeysym.h
10461do :
10462  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10463ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10464if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10465  cat >>confdefs.h <<_ACEOF
10466#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10467_ACEOF
10468
10469fi
10470
10471done
10472
10473
10474    if test ! "$enable_xim" = "no"; then
10475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
10476$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478/* end confdefs.h.  */
10479#include <X11/Xlib.h>
10480_ACEOF
10481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10482  $EGREP "XIMText" >/dev/null 2>&1; then :
10483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10484$as_echo "yes" >&6; }
10485else
10486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10487$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10488fi
10489rm -f conftest*
10490
10491  fi
10492  CPPFLAGS=$cppflags_save
10493
10494    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10495		-a "x$GUITYPE" != "xNONE" ; then
10496    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10497$as_echo "X GUI selected; xim has been enabled" >&6; }
10498    enable_xim="yes"
10499  fi
10500fi
10501
10502if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10503  cppflags_save=$CPPFLAGS
10504  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10506$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508/* end confdefs.h.  */
10509
10510#include <X11/Intrinsic.h>
10511#include <X11/Xmu/Editres.h>
10512int
10513main ()
10514{
10515int i; i = 0;
10516  ;
10517  return 0;
10518}
10519_ACEOF
10520if ac_fn_c_try_compile "$LINENO"; then :
10521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10522$as_echo "yes" >&6; }
10523		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10524
10525else
10526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527$as_echo "no" >&6; }
10528fi
10529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530  CPPFLAGS=$cppflags_save
10531fi
10532
10533if test -z "$SKIP_MOTIF"; then
10534  cppflags_save=$CPPFLAGS
10535  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10536  if test "$zOSUnix" = "yes"; then
10537	xmheader="Xm/Xm.h"
10538  else
10539	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10540	   Xm/UnhighlightT.h Xm/Notebook.h"
10541  fi
10542  for ac_header in $xmheader
10543do :
10544  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10546if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10547  cat >>confdefs.h <<_ACEOF
10548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10549_ACEOF
10550
10551fi
10552
10553done
10554
10555
10556  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10557        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10558$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10559    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560/* end confdefs.h.  */
10561#include <Xm/XpmP.h>
10562int
10563main ()
10564{
10565XpmAttributes_21 attr;
10566  ;
10567  return 0;
10568}
10569_ACEOF
10570if ac_fn_c_try_compile "$LINENO"; then :
10571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10573
10574else
10575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10577
10578
10579fi
10580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581  else
10582    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10583
10584  fi
10585  CPPFLAGS=$cppflags_save
10586fi
10587
10588if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10590$as_echo "no GUI selected; xim has been disabled" >&6; }
10591  enable_xim="no"
10592fi
10593if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10595$as_echo "no GUI selected; fontset has been disabled" >&6; }
10596  enable_fontset="no"
10597fi
10598if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10600$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10601  enable_fontset="no"
10602fi
10603
10604if test -z "$SKIP_PHOTON"; then
10605  GUITYPE=PHOTONGUI
10606fi
10607
10608
10609
10610
10611
10612
10613if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10614  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10615fi
10616
10617if test "$enable_xim" = "yes"; then
10618  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10619
10620fi
10621if test "$enable_fontset" = "yes"; then
10622  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10623
10624fi
10625
10626
10627
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10629$as_echo_n "checking for /proc link to executable... " >&6; }
10630if test -L "/proc/self/exe"; then
10631    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10632$as_echo "/proc/self/exe" >&6; }
10633  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10634
10635elif test -L "/proc/self/path/a.out"; then
10636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10637$as_echo "/proc/self/path/a.out" >&6; }
10638  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10639
10640elif test -L "/proc/curproc/file"; then
10641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10642$as_echo "/proc/curproc/file" >&6; }
10643  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10644
10645else
10646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647$as_echo "no" >&6; }
10648fi
10649
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10651$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10652case `uname` in
10653    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10654$as_echo "yes" >&6; }
10655                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10656$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10657                if test "x$with_x" = "xno" ; then
10658                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10659                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10660$as_echo "yes" >&6; }
10661                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10662
10663                else
10664                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10665$as_echo "no - using X11" >&6; }
10666                fi ;;
10667
10668    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669$as_echo "no" >&6; };;
10670esac
10671
10672if test "$enable_hangulinput" = "yes"; then
10673  if test "x$GUITYPE" = "xNONE"; then
10674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
10675$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10676    enable_hangulinput=no
10677  else
10678    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
10679
10680    HANGULIN_SRC=hangulin.c
10681
10682    HANGULIN_OBJ=objects/hangulin.o
10683
10684  fi
10685fi
10686
10687
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10689$as_echo_n "checking whether toupper is broken... " >&6; }
10690if ${vim_cv_toupper_broken+:} false; then :
10691  $as_echo_n "(cached) " >&6
10692else
10693
10694    if test "$cross_compiling" = yes; then :
10695
10696    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10697
10698else
10699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700/* end confdefs.h.  */
10701
10702#include "confdefs.h"
10703#include <ctype.h>
10704#if STDC_HEADERS
10705# include <stdlib.h>
10706# include <stddef.h>
10707#endif
10708main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10709
10710_ACEOF
10711if ac_fn_c_try_run "$LINENO"; then :
10712
10713    vim_cv_toupper_broken=yes
10714
10715else
10716
10717    vim_cv_toupper_broken=no
10718
10719fi
10720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10721  conftest.$ac_objext conftest.beam conftest.$ac_ext
10722fi
10723
10724fi
10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10726$as_echo "$vim_cv_toupper_broken" >&6; }
10727
10728if test "x$vim_cv_toupper_broken" = "xyes" ; then
10729  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10730
10731fi
10732
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10734$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736/* end confdefs.h.  */
10737#include <stdio.h>
10738int
10739main ()
10740{
10741printf("(" __DATE__ " " __TIME__ ")");
10742  ;
10743  return 0;
10744}
10745_ACEOF
10746if ac_fn_c_try_compile "$LINENO"; then :
10747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10748$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10749
10750else
10751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752$as_echo "no" >&6; }
10753fi
10754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10757$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759/* end confdefs.h.  */
10760#include <stdio.h>
10761int
10762main ()
10763{
10764int x __attribute__((unused));
10765  ;
10766  return 0;
10767}
10768_ACEOF
10769if ac_fn_c_try_compile "$LINENO"; then :
10770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10771$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10772
10773else
10774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775$as_echo "no" >&6; }
10776fi
10777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778
10779ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10780if test "x$ac_cv_header_elf_h" = xyes; then :
10781  HAS_ELF=1
10782fi
10783
10784
10785if test "$HAS_ELF" = 1; then
10786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10787$as_echo_n "checking for main in -lelf... " >&6; }
10788if ${ac_cv_lib_elf_main+:} false; then :
10789  $as_echo_n "(cached) " >&6
10790else
10791  ac_check_lib_save_LIBS=$LIBS
10792LIBS="-lelf  $LIBS"
10793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794/* end confdefs.h.  */
10795
10796
10797int
10798main ()
10799{
10800return main ();
10801  ;
10802  return 0;
10803}
10804_ACEOF
10805if ac_fn_c_try_link "$LINENO"; then :
10806  ac_cv_lib_elf_main=yes
10807else
10808  ac_cv_lib_elf_main=no
10809fi
10810rm -f core conftest.err conftest.$ac_objext \
10811    conftest$ac_exeext conftest.$ac_ext
10812LIBS=$ac_check_lib_save_LIBS
10813fi
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10815$as_echo "$ac_cv_lib_elf_main" >&6; }
10816if test "x$ac_cv_lib_elf_main" = xyes; then :
10817  cat >>confdefs.h <<_ACEOF
10818#define HAVE_LIBELF 1
10819_ACEOF
10820
10821  LIBS="-lelf $LIBS"
10822
10823fi
10824
10825fi
10826
10827ac_header_dirent=no
10828for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10829  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10831$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10832if eval \${$as_ac_Header+:} false; then :
10833  $as_echo_n "(cached) " >&6
10834else
10835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836/* end confdefs.h.  */
10837#include <sys/types.h>
10838#include <$ac_hdr>
10839
10840int
10841main ()
10842{
10843if ((DIR *) 0)
10844return 0;
10845  ;
10846  return 0;
10847}
10848_ACEOF
10849if ac_fn_c_try_compile "$LINENO"; then :
10850  eval "$as_ac_Header=yes"
10851else
10852  eval "$as_ac_Header=no"
10853fi
10854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10855fi
10856eval ac_res=\$$as_ac_Header
10857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10858$as_echo "$ac_res" >&6; }
10859if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10860  cat >>confdefs.h <<_ACEOF
10861#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10862_ACEOF
10863
10864ac_header_dirent=$ac_hdr; break
10865fi
10866
10867done
10868# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10869if test $ac_header_dirent = dirent.h; then
10870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10871$as_echo_n "checking for library containing opendir... " >&6; }
10872if ${ac_cv_search_opendir+:} false; then :
10873  $as_echo_n "(cached) " >&6
10874else
10875  ac_func_search_save_LIBS=$LIBS
10876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877/* end confdefs.h.  */
10878
10879/* Override any GCC internal prototype to avoid an error.
10880   Use char because int might match the return type of a GCC
10881   builtin and then its argument prototype would still apply.  */
10882#ifdef __cplusplus
10883extern "C"
10884#endif
10885char opendir ();
10886int
10887main ()
10888{
10889return opendir ();
10890  ;
10891  return 0;
10892}
10893_ACEOF
10894for ac_lib in '' dir; do
10895  if test -z "$ac_lib"; then
10896    ac_res="none required"
10897  else
10898    ac_res=-l$ac_lib
10899    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10900  fi
10901  if ac_fn_c_try_link "$LINENO"; then :
10902  ac_cv_search_opendir=$ac_res
10903fi
10904rm -f core conftest.err conftest.$ac_objext \
10905    conftest$ac_exeext
10906  if ${ac_cv_search_opendir+:} false; then :
10907  break
10908fi
10909done
10910if ${ac_cv_search_opendir+:} false; then :
10911
10912else
10913  ac_cv_search_opendir=no
10914fi
10915rm conftest.$ac_ext
10916LIBS=$ac_func_search_save_LIBS
10917fi
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10919$as_echo "$ac_cv_search_opendir" >&6; }
10920ac_res=$ac_cv_search_opendir
10921if test "$ac_res" != no; then :
10922  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10923
10924fi
10925
10926else
10927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10928$as_echo_n "checking for library containing opendir... " >&6; }
10929if ${ac_cv_search_opendir+:} false; then :
10930  $as_echo_n "(cached) " >&6
10931else
10932  ac_func_search_save_LIBS=$LIBS
10933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934/* end confdefs.h.  */
10935
10936/* Override any GCC internal prototype to avoid an error.
10937   Use char because int might match the return type of a GCC
10938   builtin and then its argument prototype would still apply.  */
10939#ifdef __cplusplus
10940extern "C"
10941#endif
10942char opendir ();
10943int
10944main ()
10945{
10946return opendir ();
10947  ;
10948  return 0;
10949}
10950_ACEOF
10951for ac_lib in '' x; do
10952  if test -z "$ac_lib"; then
10953    ac_res="none required"
10954  else
10955    ac_res=-l$ac_lib
10956    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10957  fi
10958  if ac_fn_c_try_link "$LINENO"; then :
10959  ac_cv_search_opendir=$ac_res
10960fi
10961rm -f core conftest.err conftest.$ac_objext \
10962    conftest$ac_exeext
10963  if ${ac_cv_search_opendir+:} false; then :
10964  break
10965fi
10966done
10967if ${ac_cv_search_opendir+:} false; then :
10968
10969else
10970  ac_cv_search_opendir=no
10971fi
10972rm conftest.$ac_ext
10973LIBS=$ac_func_search_save_LIBS
10974fi
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10976$as_echo "$ac_cv_search_opendir" >&6; }
10977ac_res=$ac_cv_search_opendir
10978if test "$ac_res" != no; then :
10979  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10980
10981fi
10982
10983fi
10984
10985
10986if test $ac_cv_header_sys_wait_h = no; then
10987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
10988$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990/* end confdefs.h.  */
10991#include <sys/wait.h>
10992int
10993main ()
10994{
10995union wait xx, yy; xx = yy
10996  ;
10997  return 0;
10998}
10999_ACEOF
11000if ac_fn_c_try_compile "$LINENO"; then :
11001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11002$as_echo "yes" >&6; }
11003			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11004
11005			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
11006
11007else
11008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009$as_echo "no" >&6; }
11010fi
11011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012fi
11013
11014for ac_header in stdint.h stdlib.h string.h \
11015	sys/select.h sys/utsname.h termcap.h fcntl.h \
11016	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
11017	termio.h iconv.h inttypes.h langinfo.h math.h \
11018	unistd.h stropts.h errno.h sys/resource.h \
11019	sys/systeminfo.h locale.h sys/stream.h termios.h \
11020	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
11021	utime.h sys/param.h sys/ptms.h libintl.h libgen.h \
11022	util/debug.h util/msg18n.h frame.h sys/acl.h \
11023	sys/access.h sys/sysinfo.h wchar.h wctype.h
11024do :
11025  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11026ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11027if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11028  cat >>confdefs.h <<_ACEOF
11029#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11030_ACEOF
11031
11032fi
11033
11034done
11035
11036
11037for ac_header in sys/ptem.h
11038do :
11039  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
11040#  include <sys/stream.h>
11041#endif
11042"
11043if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
11044  cat >>confdefs.h <<_ACEOF
11045#define HAVE_SYS_PTEM_H 1
11046_ACEOF
11047
11048fi
11049
11050done
11051
11052
11053for ac_header in sys/sysctl.h
11054do :
11055  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
11056#  include <sys/param.h>
11057#endif
11058"
11059if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
11060  cat >>confdefs.h <<_ACEOF
11061#define HAVE_SYS_SYSCTL_H 1
11062_ACEOF
11063
11064fi
11065
11066done
11067
11068
11069
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
11071$as_echo_n "checking for pthread_np.h... " >&6; }
11072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073/* end confdefs.h.  */
11074
11075#include <pthread.h>
11076#include <pthread_np.h>
11077int
11078main ()
11079{
11080int i; i = 0;
11081  ;
11082  return 0;
11083}
11084_ACEOF
11085if ac_fn_c_try_compile "$LINENO"; then :
11086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11087$as_echo "yes" >&6; }
11088		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
11089
11090else
11091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092$as_echo "no" >&6; }
11093fi
11094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095
11096for ac_header in strings.h
11097do :
11098  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
11099if test "x$ac_cv_header_strings_h" = xyes; then :
11100  cat >>confdefs.h <<_ACEOF
11101#define HAVE_STRINGS_H 1
11102_ACEOF
11103
11104fi
11105
11106done
11107
11108if test "x$MACOS_X" = "xyes"; then
11109    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11110
11111else
11112
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
11114$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11115cppflags_save=$CPPFLAGS
11116CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118/* end confdefs.h.  */
11119
11120#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11121# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11122			/* but don't do it on AIX 5.1 (Uribarri) */
11123#endif
11124#ifdef HAVE_XM_XM_H
11125# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11126#endif
11127#ifdef HAVE_STRING_H
11128# include <string.h>
11129#endif
11130#if defined(HAVE_STRINGS_H)
11131# include <strings.h>
11132#endif
11133
11134int
11135main ()
11136{
11137int i; i = 0;
11138  ;
11139  return 0;
11140}
11141_ACEOF
11142if ac_fn_c_try_compile "$LINENO"; then :
11143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144$as_echo "yes" >&6; }
11145else
11146  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11147
11148		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149$as_echo "no" >&6; }
11150fi
11151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152CPPFLAGS=$cppflags_save
11153fi
11154
11155if test $ac_cv_c_compiler_gnu = yes; then
11156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11157$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11158if ${ac_cv_prog_gcc_traditional+:} false; then :
11159  $as_echo_n "(cached) " >&6
11160else
11161    ac_pattern="Autoconf.*'x'"
11162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163/* end confdefs.h.  */
11164#include <sgtty.h>
11165Autoconf TIOCGETP
11166_ACEOF
11167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11168  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11169  ac_cv_prog_gcc_traditional=yes
11170else
11171  ac_cv_prog_gcc_traditional=no
11172fi
11173rm -f conftest*
11174
11175
11176  if test $ac_cv_prog_gcc_traditional = no; then
11177    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178/* end confdefs.h.  */
11179#include <termio.h>
11180Autoconf TCGETA
11181_ACEOF
11182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11183  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11184  ac_cv_prog_gcc_traditional=yes
11185fi
11186rm -f conftest*
11187
11188  fi
11189fi
11190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11191$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11192  if test $ac_cv_prog_gcc_traditional = yes; then
11193    CC="$CC -traditional"
11194  fi
11195fi
11196
11197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11198$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11199if ${ac_cv_c_const+:} false; then :
11200  $as_echo_n "(cached) " >&6
11201else
11202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203/* end confdefs.h.  */
11204
11205int
11206main ()
11207{
11208
11209#ifndef __cplusplus
11210  /* Ultrix mips cc rejects this sort of thing.  */
11211  typedef int charset[2];
11212  const charset cs = { 0, 0 };
11213  /* SunOS 4.1.1 cc rejects this.  */
11214  char const *const *pcpcc;
11215  char **ppc;
11216  /* NEC SVR4.0.2 mips cc rejects this.  */
11217  struct point {int x, y;};
11218  static struct point const zero = {0,0};
11219  /* AIX XL C 1.02.0.0 rejects this.
11220     It does not let you subtract one const X* pointer from another in
11221     an arm of an if-expression whose if-part is not a constant
11222     expression */
11223  const char *g = "string";
11224  pcpcc = &g + (g ? g-g : 0);
11225  /* HPUX 7.0 cc rejects these. */
11226  ++pcpcc;
11227  ppc = (char**) pcpcc;
11228  pcpcc = (char const *const *) ppc;
11229  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11230    char tx;
11231    char *t = &tx;
11232    char const *s = 0 ? (char *) 0 : (char const *) 0;
11233
11234    *t++ = 0;
11235    if (s) return 0;
11236  }
11237  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11238    int x[] = {25, 17};
11239    const int *foo = &x[0];
11240    ++foo;
11241  }
11242  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11243    typedef const int *iptr;
11244    iptr p = 0;
11245    ++p;
11246  }
11247  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11248       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11249    struct s { int j; const int *ap[3]; } bx;
11250    struct s *b = &bx; b->j = 5;
11251  }
11252  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11253    const int foo = 10;
11254    if (!foo) return 0;
11255  }
11256  return !cs[0] && !zero.x;
11257#endif
11258
11259  ;
11260  return 0;
11261}
11262_ACEOF
11263if ac_fn_c_try_compile "$LINENO"; then :
11264  ac_cv_c_const=yes
11265else
11266  ac_cv_c_const=no
11267fi
11268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11269fi
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11271$as_echo "$ac_cv_c_const" >&6; }
11272if test $ac_cv_c_const = no; then
11273
11274$as_echo "#define const /**/" >>confdefs.h
11275
11276fi
11277
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11279$as_echo_n "checking for working volatile... " >&6; }
11280if ${ac_cv_c_volatile+:} false; then :
11281  $as_echo_n "(cached) " >&6
11282else
11283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284/* end confdefs.h.  */
11285
11286int
11287main ()
11288{
11289
11290volatile int x;
11291int * volatile y = (int *) 0;
11292return !x && !y;
11293  ;
11294  return 0;
11295}
11296_ACEOF
11297if ac_fn_c_try_compile "$LINENO"; then :
11298  ac_cv_c_volatile=yes
11299else
11300  ac_cv_c_volatile=no
11301fi
11302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303fi
11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11305$as_echo "$ac_cv_c_volatile" >&6; }
11306if test $ac_cv_c_volatile = no; then
11307
11308$as_echo "#define volatile /**/" >>confdefs.h
11309
11310fi
11311
11312ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11313if test "x$ac_cv_type_mode_t" = xyes; then :
11314
11315else
11316
11317cat >>confdefs.h <<_ACEOF
11318#define mode_t int
11319_ACEOF
11320
11321fi
11322
11323ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11324if test "x$ac_cv_type_off_t" = xyes; then :
11325
11326else
11327
11328cat >>confdefs.h <<_ACEOF
11329#define off_t long int
11330_ACEOF
11331
11332fi
11333
11334ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11335if test "x$ac_cv_type_pid_t" = xyes; then :
11336
11337else
11338
11339cat >>confdefs.h <<_ACEOF
11340#define pid_t int
11341_ACEOF
11342
11343fi
11344
11345ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11346if test "x$ac_cv_type_size_t" = xyes; then :
11347
11348else
11349
11350cat >>confdefs.h <<_ACEOF
11351#define size_t unsigned int
11352_ACEOF
11353
11354fi
11355
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11357$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11358if ${ac_cv_type_uid_t+:} false; then :
11359  $as_echo_n "(cached) " >&6
11360else
11361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h.  */
11363#include <sys/types.h>
11364
11365_ACEOF
11366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11367  $EGREP "uid_t" >/dev/null 2>&1; then :
11368  ac_cv_type_uid_t=yes
11369else
11370  ac_cv_type_uid_t=no
11371fi
11372rm -f conftest*
11373
11374fi
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11376$as_echo "$ac_cv_type_uid_t" >&6; }
11377if test $ac_cv_type_uid_t = no; then
11378
11379$as_echo "#define uid_t int" >>confdefs.h
11380
11381
11382$as_echo "#define gid_t int" >>confdefs.h
11383
11384fi
11385
11386ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11387case $ac_cv_c_uint32_t in #(
11388  no|yes) ;; #(
11389  *)
11390
11391$as_echo "#define _UINT32_T 1" >>confdefs.h
11392
11393
11394cat >>confdefs.h <<_ACEOF
11395#define uint32_t $ac_cv_c_uint32_t
11396_ACEOF
11397;;
11398  esac
11399
11400
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11402$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11403if ${ac_cv_header_time+:} false; then :
11404  $as_echo_n "(cached) " >&6
11405else
11406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407/* end confdefs.h.  */
11408#include <sys/types.h>
11409#include <sys/time.h>
11410#include <time.h>
11411
11412int
11413main ()
11414{
11415if ((struct tm *) 0)
11416return 0;
11417  ;
11418  return 0;
11419}
11420_ACEOF
11421if ac_fn_c_try_compile "$LINENO"; then :
11422  ac_cv_header_time=yes
11423else
11424  ac_cv_header_time=no
11425fi
11426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11427fi
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11429$as_echo "$ac_cv_header_time" >&6; }
11430if test $ac_cv_header_time = yes; then
11431
11432$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11433
11434fi
11435
11436ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
11437if test "x$ac_cv_type_ino_t" = xyes; then :
11438
11439else
11440
11441cat >>confdefs.h <<_ACEOF
11442#define ino_t long
11443_ACEOF
11444
11445fi
11446
11447ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
11448if test "x$ac_cv_type_dev_t" = xyes; then :
11449
11450else
11451
11452cat >>confdefs.h <<_ACEOF
11453#define dev_t unsigned
11454_ACEOF
11455
11456fi
11457
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11459$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11460if ${ac_cv_c_bigendian+:} false; then :
11461  $as_echo_n "(cached) " >&6
11462else
11463  ac_cv_c_bigendian=unknown
11464    # See if we're dealing with a universal compiler.
11465    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466/* end confdefs.h.  */
11467#ifndef __APPLE_CC__
11468	       not a universal capable compiler
11469	     #endif
11470	     typedef int dummy;
11471
11472_ACEOF
11473if ac_fn_c_try_compile "$LINENO"; then :
11474
11475	# Check for potential -arch flags.  It is not universal unless
11476	# there are at least two -arch flags with different values.
11477	ac_arch=
11478	ac_prev=
11479	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11480	 if test -n "$ac_prev"; then
11481	   case $ac_word in
11482	     i?86 | x86_64 | ppc | ppc64)
11483	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11484		 ac_arch=$ac_word
11485	       else
11486		 ac_cv_c_bigendian=universal
11487		 break
11488	       fi
11489	       ;;
11490	   esac
11491	   ac_prev=
11492	 elif test "x$ac_word" = "x-arch"; then
11493	   ac_prev=arch
11494	 fi
11495       done
11496fi
11497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498    if test $ac_cv_c_bigendian = unknown; then
11499      # See if sys/param.h defines the BYTE_ORDER macro.
11500      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501/* end confdefs.h.  */
11502#include <sys/types.h>
11503	     #include <sys/param.h>
11504
11505int
11506main ()
11507{
11508#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11509		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11510		     && LITTLE_ENDIAN)
11511	      bogus endian macros
11512	     #endif
11513
11514  ;
11515  return 0;
11516}
11517_ACEOF
11518if ac_fn_c_try_compile "$LINENO"; then :
11519  # It does; now see whether it defined to BIG_ENDIAN or not.
11520	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521/* end confdefs.h.  */
11522#include <sys/types.h>
11523		#include <sys/param.h>
11524
11525int
11526main ()
11527{
11528#if BYTE_ORDER != BIG_ENDIAN
11529		 not big endian
11530		#endif
11531
11532  ;
11533  return 0;
11534}
11535_ACEOF
11536if ac_fn_c_try_compile "$LINENO"; then :
11537  ac_cv_c_bigendian=yes
11538else
11539  ac_cv_c_bigendian=no
11540fi
11541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542fi
11543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544    fi
11545    if test $ac_cv_c_bigendian = unknown; then
11546      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11547      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548/* end confdefs.h.  */
11549#include <limits.h>
11550
11551int
11552main ()
11553{
11554#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11555	      bogus endian macros
11556	     #endif
11557
11558  ;
11559  return 0;
11560}
11561_ACEOF
11562if ac_fn_c_try_compile "$LINENO"; then :
11563  # It does; now see whether it defined to _BIG_ENDIAN or not.
11564	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565/* end confdefs.h.  */
11566#include <limits.h>
11567
11568int
11569main ()
11570{
11571#ifndef _BIG_ENDIAN
11572		 not big endian
11573		#endif
11574
11575  ;
11576  return 0;
11577}
11578_ACEOF
11579if ac_fn_c_try_compile "$LINENO"; then :
11580  ac_cv_c_bigendian=yes
11581else
11582  ac_cv_c_bigendian=no
11583fi
11584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11585fi
11586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11587    fi
11588    if test $ac_cv_c_bigendian = unknown; then
11589      # Compile a test program.
11590      if test "$cross_compiling" = yes; then :
11591  # Try to guess by grepping values from an object file.
11592	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593/* end confdefs.h.  */
11594short int ascii_mm[] =
11595		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11596		short int ascii_ii[] =
11597		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11598		int use_ascii (int i) {
11599		  return ascii_mm[i] + ascii_ii[i];
11600		}
11601		short int ebcdic_ii[] =
11602		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11603		short int ebcdic_mm[] =
11604		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11605		int use_ebcdic (int i) {
11606		  return ebcdic_mm[i] + ebcdic_ii[i];
11607		}
11608		extern int foo;
11609
11610int
11611main ()
11612{
11613return use_ascii (foo) == use_ebcdic (foo);
11614  ;
11615  return 0;
11616}
11617_ACEOF
11618if ac_fn_c_try_compile "$LINENO"; then :
11619  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11620	      ac_cv_c_bigendian=yes
11621	    fi
11622	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11623	      if test "$ac_cv_c_bigendian" = unknown; then
11624		ac_cv_c_bigendian=no
11625	      else
11626		# finding both strings is unlikely to happen, but who knows?
11627		ac_cv_c_bigendian=unknown
11628	      fi
11629	    fi
11630fi
11631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632else
11633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634/* end confdefs.h.  */
11635$ac_includes_default
11636int
11637main ()
11638{
11639
11640	     /* Are we little or big endian?  From Harbison&Steele.  */
11641	     union
11642	     {
11643	       long int l;
11644	       char c[sizeof (long int)];
11645	     } u;
11646	     u.l = 1;
11647	     return u.c[sizeof (long int) - 1] == 1;
11648
11649  ;
11650  return 0;
11651}
11652_ACEOF
11653if ac_fn_c_try_run "$LINENO"; then :
11654  ac_cv_c_bigendian=no
11655else
11656  ac_cv_c_bigendian=yes
11657fi
11658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11659  conftest.$ac_objext conftest.beam conftest.$ac_ext
11660fi
11661
11662    fi
11663fi
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11665$as_echo "$ac_cv_c_bigendian" >&6; }
11666 case $ac_cv_c_bigendian in #(
11667   yes)
11668     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11669;; #(
11670   no)
11671      ;; #(
11672   universal)
11673
11674$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11675
11676     ;; #(
11677   *)
11678     as_fn_error $? "unknown endianness
11679 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11680 esac
11681
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11683$as_echo_n "checking for inline... " >&6; }
11684if ${ac_cv_c_inline+:} false; then :
11685  $as_echo_n "(cached) " >&6
11686else
11687  ac_cv_c_inline=no
11688for ac_kw in inline __inline__ __inline; do
11689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690/* end confdefs.h.  */
11691#ifndef __cplusplus
11692typedef int foo_t;
11693static $ac_kw foo_t static_foo () {return 0; }
11694$ac_kw foo_t foo () {return 0; }
11695#endif
11696
11697_ACEOF
11698if ac_fn_c_try_compile "$LINENO"; then :
11699  ac_cv_c_inline=$ac_kw
11700fi
11701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11702  test "$ac_cv_c_inline" != no && break
11703done
11704
11705fi
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11707$as_echo "$ac_cv_c_inline" >&6; }
11708
11709case $ac_cv_c_inline in
11710  inline | yes) ;;
11711  *)
11712    case $ac_cv_c_inline in
11713      no) ac_val=;;
11714      *) ac_val=$ac_cv_c_inline;;
11715    esac
11716    cat >>confdefs.h <<_ACEOF
11717#ifndef __cplusplus
11718#define inline $ac_val
11719#endif
11720_ACEOF
11721    ;;
11722esac
11723
11724
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11726$as_echo_n "checking for rlim_t... " >&6; }
11727if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11729$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11730else
11731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732/* end confdefs.h.  */
11733
11734#include <sys/types.h>
11735#if STDC_HEADERS
11736# include <stdlib.h>
11737# include <stddef.h>
11738#endif
11739#ifdef HAVE_SYS_RESOURCE_H
11740# include <sys/resource.h>
11741#endif
11742
11743_ACEOF
11744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11745  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11746  ac_cv_type_rlim_t=yes
11747else
11748  ac_cv_type_rlim_t=no
11749fi
11750rm -f conftest*
11751
11752	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11753$as_echo "$ac_cv_type_rlim_t" >&6; }
11754fi
11755if test $ac_cv_type_rlim_t = no; then
11756  cat >> confdefs.h <<\EOF
11757#define rlim_t unsigned long
11758EOF
11759fi
11760
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11762$as_echo_n "checking for stack_t... " >&6; }
11763if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11765$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11766else
11767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768/* end confdefs.h.  */
11769
11770#include <sys/types.h>
11771#if STDC_HEADERS
11772# include <stdlib.h>
11773# include <stddef.h>
11774#endif
11775#include <signal.h>
11776
11777_ACEOF
11778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11779  $EGREP "stack_t" >/dev/null 2>&1; then :
11780  ac_cv_type_stack_t=yes
11781else
11782  ac_cv_type_stack_t=no
11783fi
11784rm -f conftest*
11785
11786	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11787$as_echo "$ac_cv_type_stack_t" >&6; }
11788fi
11789if test $ac_cv_type_stack_t = no; then
11790  cat >> confdefs.h <<\EOF
11791#define stack_t struct sigaltstack
11792EOF
11793fi
11794
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11796$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798/* end confdefs.h.  */
11799
11800#include <sys/types.h>
11801#if STDC_HEADERS
11802# include <stdlib.h>
11803# include <stddef.h>
11804#endif
11805#include <signal.h>
11806#include "confdefs.h"
11807
11808int
11809main ()
11810{
11811stack_t sigstk; sigstk.ss_base = 0;
11812  ;
11813  return 0;
11814}
11815_ACEOF
11816if ac_fn_c_try_compile "$LINENO"; then :
11817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11818$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11819
11820else
11821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822$as_echo "no" >&6; }
11823fi
11824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825
11826olibs="$LIBS"
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11828$as_echo_n "checking --with-tlib argument... " >&6; }
11829
11830# Check whether --with-tlib was given.
11831if test "${with_tlib+set}" = set; then :
11832  withval=$with_tlib;
11833fi
11834
11835if test -n "$with_tlib"; then
11836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11837$as_echo "$with_tlib" >&6; }
11838  LIBS="$LIBS -l$with_tlib"
11839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11840$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842/* end confdefs.h.  */
11843
11844int
11845main ()
11846{
11847
11848  ;
11849  return 0;
11850}
11851_ACEOF
11852if ac_fn_c_try_link "$LINENO"; then :
11853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
11854$as_echo "OK" >&6; }
11855else
11856  as_fn_error $? "FAILED" "$LINENO" 5
11857fi
11858rm -f core conftest.err conftest.$ac_objext \
11859    conftest$ac_exeext conftest.$ac_ext
11860    olibs="$LIBS"
11861else
11862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
11863$as_echo "empty: automatic terminal library selection" >&6; }
11864                case "`uname -s 2>/dev/null`" in
11865	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
11866	*)	tlibs="tinfo ncurses termlib termcap curses";;
11867  esac
11868  for libname in $tlibs; do
11869    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
11871$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
11872if eval \${$as_ac_Lib+:} false; then :
11873  $as_echo_n "(cached) " >&6
11874else
11875  ac_check_lib_save_LIBS=$LIBS
11876LIBS="-l${libname}  $LIBS"
11877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878/* end confdefs.h.  */
11879
11880/* Override any GCC internal prototype to avoid an error.
11881   Use char because int might match the return type of a GCC
11882   builtin and then its argument prototype would still apply.  */
11883#ifdef __cplusplus
11884extern "C"
11885#endif
11886char tgetent ();
11887int
11888main ()
11889{
11890return tgetent ();
11891  ;
11892  return 0;
11893}
11894_ACEOF
11895if ac_fn_c_try_link "$LINENO"; then :
11896  eval "$as_ac_Lib=yes"
11897else
11898  eval "$as_ac_Lib=no"
11899fi
11900rm -f core conftest.err conftest.$ac_objext \
11901    conftest$ac_exeext conftest.$ac_ext
11902LIBS=$ac_check_lib_save_LIBS
11903fi
11904eval ac_res=\$$as_ac_Lib
11905	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11906$as_echo "$ac_res" >&6; }
11907if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11908  cat >>confdefs.h <<_ACEOF
11909#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11910_ACEOF
11911
11912  LIBS="-l${libname} $LIBS"
11913
11914fi
11915
11916    if test "x$olibs" != "x$LIBS"; then
11917                        if test "$cross_compiling" = yes; then :
11918  res="FAIL"
11919else
11920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921/* end confdefs.h.  */
11922
11923#ifdef HAVE_TERMCAP_H
11924# include <termcap.h>
11925#endif
11926#if STDC_HEADERS
11927# include <stdlib.h>
11928# include <stddef.h>
11929#endif
11930main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11931_ACEOF
11932if ac_fn_c_try_run "$LINENO"; then :
11933  res="OK"
11934else
11935  res="FAIL"
11936fi
11937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11938  conftest.$ac_objext conftest.beam conftest.$ac_ext
11939fi
11940
11941      if test "$res" = "OK"; then
11942	break
11943      fi
11944      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
11945$as_echo "$libname library is not usable" >&6; }
11946      LIBS="$olibs"
11947    fi
11948  done
11949  if test "x$olibs" = "x$LIBS"; then
11950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
11951$as_echo "no terminal library found" >&6; }
11952  fi
11953fi
11954
11955if test "x$olibs" = "x$LIBS"; then
11956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
11957$as_echo_n "checking for tgetent()... " >&6; }
11958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959/* end confdefs.h.  */
11960
11961int
11962main ()
11963{
11964char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11965  ;
11966  return 0;
11967}
11968_ACEOF
11969if ac_fn_c_try_link "$LINENO"; then :
11970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11971$as_echo "yes" >&6; }
11972else
11973  as_fn_error $? "NOT FOUND!
11974      You need to install a terminal library; for example ncurses.
11975      Or specify the name of the library with --with-tlib." "$LINENO" 5
11976fi
11977rm -f core conftest.err conftest.$ac_objext \
11978    conftest$ac_exeext conftest.$ac_ext
11979fi
11980
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
11982$as_echo_n "checking whether we talk terminfo... " >&6; }
11983if ${vim_cv_terminfo+:} false; then :
11984  $as_echo_n "(cached) " >&6
11985else
11986
11987    if test "$cross_compiling" = yes; then :
11988
11989      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
11990
11991else
11992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993/* end confdefs.h.  */
11994
11995#include "confdefs.h"
11996#ifdef HAVE_TERMCAP_H
11997# include <termcap.h>
11998#endif
11999#ifdef HAVE_STRING_H
12000# include <string.h>
12001#endif
12002#if STDC_HEADERS
12003# include <stdlib.h>
12004# include <stddef.h>
12005#endif
12006main()
12007{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12008
12009_ACEOF
12010if ac_fn_c_try_run "$LINENO"; then :
12011
12012      vim_cv_terminfo=no
12013
12014else
12015
12016      vim_cv_terminfo=yes
12017
12018fi
12019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12020  conftest.$ac_objext conftest.beam conftest.$ac_ext
12021fi
12022
12023
12024fi
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
12026$as_echo "$vim_cv_terminfo" >&6; }
12027
12028if test "x$vim_cv_terminfo" = "xyes" ; then
12029  $as_echo "#define TERMINFO 1" >>confdefs.h
12030
12031fi
12032
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
12034$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12035if ${vim_cv_tgetent+:} false; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038
12039    if test "$cross_compiling" = yes; then :
12040
12041      as_fn_error $? "failed to compile test program." "$LINENO" 5
12042
12043else
12044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045/* end confdefs.h.  */
12046
12047#include "confdefs.h"
12048#ifdef HAVE_TERMCAP_H
12049# include <termcap.h>
12050#endif
12051#if STDC_HEADERS
12052# include <stdlib.h>
12053# include <stddef.h>
12054#endif
12055main()
12056{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12057
12058_ACEOF
12059if ac_fn_c_try_run "$LINENO"; then :
12060
12061      vim_cv_tgetent=zero
12062
12063else
12064
12065      vim_cv_tgetent=non-zero
12066
12067fi
12068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12069  conftest.$ac_objext conftest.beam conftest.$ac_ext
12070fi
12071
12072
12073fi
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5
12075$as_echo "$vim_cv_tgetent" >&6; }
12076
12077if test "x$vim_cv_tgetent" = "xzero" ; then
12078  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
12079
12080fi
12081
12082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
12083$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085/* end confdefs.h.  */
12086
12087#ifdef HAVE_TERMCAP_H
12088# include <termcap.h>
12089#endif
12090
12091int
12092main ()
12093{
12094ospeed = 20000
12095  ;
12096  return 0;
12097}
12098_ACEOF
12099if ac_fn_c_try_link "$LINENO"; then :
12100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12101$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
12102
12103else
12104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105$as_echo "no" >&6; }
12106	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
12107$as_echo_n "checking whether ospeed can be extern... " >&6; }
12108	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109/* end confdefs.h.  */
12110
12111#ifdef HAVE_TERMCAP_H
12112# include <termcap.h>
12113#endif
12114extern short ospeed;
12115
12116int
12117main ()
12118{
12119ospeed = 20000
12120  ;
12121  return 0;
12122}
12123_ACEOF
12124if ac_fn_c_try_link "$LINENO"; then :
12125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12126$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
12127
12128else
12129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130$as_echo "no" >&6; }
12131fi
12132rm -f core conftest.err conftest.$ac_objext \
12133    conftest$ac_exeext conftest.$ac_ext
12134
12135fi
12136rm -f core conftest.err conftest.$ac_objext \
12137    conftest$ac_exeext conftest.$ac_ext
12138
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
12140$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142/* end confdefs.h.  */
12143
12144#ifdef HAVE_TERMCAP_H
12145# include <termcap.h>
12146#endif
12147
12148int
12149main ()
12150{
12151if (UP == 0 && BC == 0) PC = 1
12152  ;
12153  return 0;
12154}
12155_ACEOF
12156if ac_fn_c_try_link "$LINENO"; then :
12157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12158$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
12159
12160else
12161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162$as_echo "no" >&6; }
12163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
12164$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
12165	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166/* end confdefs.h.  */
12167
12168#ifdef HAVE_TERMCAP_H
12169# include <termcap.h>
12170#endif
12171extern char *UP, *BC, PC;
12172
12173int
12174main ()
12175{
12176if (UP == 0 && BC == 0) PC = 1
12177  ;
12178  return 0;
12179}
12180_ACEOF
12181if ac_fn_c_try_link "$LINENO"; then :
12182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12183$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
12184
12185else
12186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187$as_echo "no" >&6; }
12188fi
12189rm -f core conftest.err conftest.$ac_objext \
12190    conftest$ac_exeext conftest.$ac_ext
12191
12192fi
12193rm -f core conftest.err conftest.$ac_objext \
12194    conftest$ac_exeext conftest.$ac_ext
12195
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
12197$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
12198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199/* end confdefs.h.  */
12200
12201#ifdef HAVE_TERMCAP_H
12202# include <termcap.h>
12203#endif
12204
12205int
12206main ()
12207{
12208extern int xx(); tputs("test", 1, (outfuntype)xx)
12209  ;
12210  return 0;
12211}
12212_ACEOF
12213if ac_fn_c_try_compile "$LINENO"; then :
12214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12215$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
12216
12217else
12218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219$as_echo "no" >&6; }
12220fi
12221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12222
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12224$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226/* end confdefs.h.  */
12227
12228#include <sys/types.h>
12229#include <sys/time.h>
12230#include <sys/select.h>
12231int
12232main ()
12233{
12234
12235  ;
12236  return 0;
12237}
12238_ACEOF
12239if ac_fn_c_try_compile "$LINENO"; then :
12240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12241$as_echo "yes" >&6; }
12242			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12243
12244else
12245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246$as_echo "no" >&6; }
12247fi
12248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12249
12250
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12252$as_echo_n "checking for /dev/ptc... " >&6; }
12253if test -r /dev/ptc; then
12254  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
12255
12256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257$as_echo "yes" >&6; }
12258else
12259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260$as_echo "no" >&6; }
12261fi
12262
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
12264$as_echo_n "checking for SVR4 ptys... " >&6; }
12265if test -c /dev/ptmx ; then
12266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267/* end confdefs.h.  */
12268
12269int
12270main ()
12271{
12272ptsname(0);grantpt(0);unlockpt(0);
12273  ;
12274  return 0;
12275}
12276_ACEOF
12277if ac_fn_c_try_link "$LINENO"; then :
12278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12279$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
12280
12281else
12282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283$as_echo "no" >&6; }
12284fi
12285rm -f core conftest.err conftest.$ac_objext \
12286    conftest$ac_exeext conftest.$ac_ext
12287else
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
12290fi
12291
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
12293$as_echo_n "checking for ptyranges... " >&6; }
12294if test -d /dev/ptym ; then
12295  pdir='/dev/ptym'
12296else
12297  pdir='/dev'
12298fi
12299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300/* end confdefs.h.  */
12301#ifdef M_UNIX
12302   yes;
12303#endif
12304
12305_ACEOF
12306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12307  $EGREP "yes" >/dev/null 2>&1; then :
12308  ptys=`echo /dev/ptyp??`
12309else
12310  ptys=`echo $pdir/pty??`
12311fi
12312rm -f conftest*
12313
12314if test "$ptys" != "$pdir/pty??" ; then
12315  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12316  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12317  cat >>confdefs.h <<_ACEOF
12318#define PTYRANGE0 "$p0"
12319_ACEOF
12320
12321  cat >>confdefs.h <<_ACEOF
12322#define PTYRANGE1 "$p1"
12323_ACEOF
12324
12325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
12326$as_echo "$p0 / $p1" >&6; }
12327else
12328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
12329$as_echo "don't know" >&6; }
12330fi
12331
12332rm -f conftest_grp
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
12334$as_echo_n "checking default tty permissions/group... " >&6; }
12335if ${vim_cv_tty_group+:} false; then :
12336  $as_echo_n "(cached) " >&6
12337else
12338
12339    if test "$cross_compiling" = yes; then :
12340
12341      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
12342
12343else
12344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345/* end confdefs.h.  */
12346
12347#include "confdefs.h"
12348#include <sys/types.h>
12349#if STDC_HEADERS
12350# include <stdlib.h>
12351# include <stddef.h>
12352#endif
12353#ifdef HAVE_UNISTD_H
12354#include <unistd.h>
12355#endif
12356#include <sys/stat.h>
12357#include <stdio.h>
12358main()
12359{
12360  struct stat sb;
12361  char *x,*ttyname();
12362  int om, m;
12363  FILE *fp;
12364
12365  if (!(x = ttyname(0))) exit(1);
12366  if (stat(x, &sb)) exit(1);
12367  om = sb.st_mode;
12368  if (om & 002) exit(0);
12369  m = system("mesg y");
12370  if (m == -1 || m == 127) exit(1);
12371  if (stat(x, &sb)) exit(1);
12372  m = sb.st_mode;
12373  if (chmod(x, om)) exit(1);
12374  if (m & 002) exit(0);
12375  if (sb.st_gid == getgid()) exit(1);
12376  if (!(fp=fopen("conftest_grp", "w")))
12377    exit(1);
12378  fprintf(fp, "%d\n", sb.st_gid);
12379  fclose(fp);
12380  exit(0);
12381}
12382
12383_ACEOF
12384if ac_fn_c_try_run "$LINENO"; then :
12385
12386      if test -f conftest_grp; then
12387	vim_cv_tty_group=`cat conftest_grp`
12388	if test "x$vim_cv_tty_mode" = "x" ; then
12389	  vim_cv_tty_mode=0620
12390	fi
12391	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
12392$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
12393      else
12394	vim_cv_tty_group=world
12395	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
12396$as_echo "ptys are world accessible" >&6; }
12397      fi
12398
12399else
12400
12401      vim_cv_tty_group=world
12402      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
12403$as_echo "can't determine - assume ptys are world accessible" >&6; }
12404
12405fi
12406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12407  conftest.$ac_objext conftest.beam conftest.$ac_ext
12408fi
12409
12410
12411fi
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
12413$as_echo "$vim_cv_tty_group" >&6; }
12414rm -f conftest_grp
12415
12416if test "x$vim_cv_tty_group" != "xworld" ; then
12417  cat >>confdefs.h <<_ACEOF
12418#define PTYGROUP $vim_cv_tty_group
12419_ACEOF
12420
12421  if test "x$vim_cv_tty_mode" = "x" ; then
12422    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
12423  else
12424    $as_echo "#define PTYMODE 0620" >>confdefs.h
12425
12426  fi
12427fi
12428
12429
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12431$as_echo_n "checking return type of signal handlers... " >&6; }
12432if ${ac_cv_type_signal+:} false; then :
12433  $as_echo_n "(cached) " >&6
12434else
12435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436/* end confdefs.h.  */
12437#include <sys/types.h>
12438#include <signal.h>
12439
12440int
12441main ()
12442{
12443return *(signal (0, 0)) (0) == 1;
12444  ;
12445  return 0;
12446}
12447_ACEOF
12448if ac_fn_c_try_compile "$LINENO"; then :
12449  ac_cv_type_signal=int
12450else
12451  ac_cv_type_signal=void
12452fi
12453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454fi
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12456$as_echo "$ac_cv_type_signal" >&6; }
12457
12458cat >>confdefs.h <<_ACEOF
12459#define RETSIGTYPE $ac_cv_type_signal
12460_ACEOF
12461
12462
12463
12464if test $ac_cv_type_signal = void; then
12465  $as_echo "#define SIGRETURN return" >>confdefs.h
12466
12467else
12468  $as_echo "#define SIGRETURN return 0" >>confdefs.h
12469
12470fi
12471
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
12473$as_echo_n "checking for struct sigcontext... " >&6; }
12474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475/* end confdefs.h.  */
12476
12477#include <signal.h>
12478test_sig()
12479{
12480    struct sigcontext *scont;
12481    scont = (struct sigcontext *)0;
12482    return 1;
12483}
12484int
12485main ()
12486{
12487
12488  ;
12489  return 0;
12490}
12491_ACEOF
12492if ac_fn_c_try_compile "$LINENO"; then :
12493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12494$as_echo "yes" >&6; }
12495		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12496
12497else
12498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499$as_echo "no" >&6; }
12500fi
12501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12504$as_echo_n "checking getcwd implementation is broken... " >&6; }
12505if ${vim_cv_getcwd_broken+:} false; then :
12506  $as_echo_n "(cached) " >&6
12507else
12508
12509    if test "$cross_compiling" = yes; then :
12510
12511      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12512
12513else
12514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515/* end confdefs.h.  */
12516
12517#include "confdefs.h"
12518#ifdef HAVE_UNISTD_H
12519#include <unistd.h>
12520#endif
12521char *dagger[] = { "IFS=pwd", 0 };
12522main()
12523{
12524  char buffer[500];
12525  extern char **environ;
12526  environ = dagger;
12527  return getcwd(buffer, 500) ? 0 : 1;
12528}
12529
12530_ACEOF
12531if ac_fn_c_try_run "$LINENO"; then :
12532
12533      vim_cv_getcwd_broken=no
12534
12535else
12536
12537      vim_cv_getcwd_broken=yes
12538
12539fi
12540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12541  conftest.$ac_objext conftest.beam conftest.$ac_ext
12542fi
12543
12544
12545fi
12546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12547$as_echo "$vim_cv_getcwd_broken" >&6; }
12548
12549if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12550  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12551
12552  for ac_func in getwd
12553do :
12554  ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
12555if test "x$ac_cv_func_getwd" = xyes; then :
12556  cat >>confdefs.h <<_ACEOF
12557#define HAVE_GETWD 1
12558_ACEOF
12559
12560fi
12561done
12562
12563fi
12564
12565for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \
12566	getpwent getpwnam getpwuid getrlimit gettimeofday localtime_r lstat \
12567	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12568	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12569	sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
12570	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12571	usleep utime utimes mblen ftruncate unsetenv posix_openpt
12572do :
12573  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12574ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12575if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12576  cat >>confdefs.h <<_ACEOF
12577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12578_ACEOF
12579
12580fi
12581done
12582
12583for ac_header in sys/select.h sys/socket.h
12584do :
12585  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12586ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12587if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12588  cat >>confdefs.h <<_ACEOF
12589#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12590_ACEOF
12591
12592fi
12593
12594done
12595
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12597$as_echo_n "checking types of arguments for select... " >&6; }
12598if ${ac_cv_func_select_args+:} false; then :
12599  $as_echo_n "(cached) " >&6
12600else
12601  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12602 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12603  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605/* end confdefs.h.  */
12606$ac_includes_default
12607#ifdef HAVE_SYS_SELECT_H
12608# include <sys/select.h>
12609#endif
12610#ifdef HAVE_SYS_SOCKET_H
12611# include <sys/socket.h>
12612#endif
12613
12614int
12615main ()
12616{
12617extern int select ($ac_arg1,
12618					    $ac_arg234, $ac_arg234, $ac_arg234,
12619					    $ac_arg5);
12620  ;
12621  return 0;
12622}
12623_ACEOF
12624if ac_fn_c_try_compile "$LINENO"; then :
12625  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12626fi
12627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628  done
12629 done
12630done
12631# Provide a safe default value.
12632: "${ac_cv_func_select_args=int,int *,struct timeval *}"
12633
12634fi
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12636$as_echo "$ac_cv_func_select_args" >&6; }
12637ac_save_IFS=$IFS; IFS=','
12638set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12639IFS=$ac_save_IFS
12640shift
12641
12642cat >>confdefs.h <<_ACEOF
12643#define SELECT_TYPE_ARG1 $1
12644_ACEOF
12645
12646
12647cat >>confdefs.h <<_ACEOF
12648#define SELECT_TYPE_ARG234 ($2)
12649_ACEOF
12650
12651
12652cat >>confdefs.h <<_ACEOF
12653#define SELECT_TYPE_ARG5 ($3)
12654_ACEOF
12655
12656rm -f conftest*
12657
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12659$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12660if ${ac_cv_sys_largefile_source+:} false; then :
12661  $as_echo_n "(cached) " >&6
12662else
12663  while :; do
12664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665/* end confdefs.h.  */
12666#include <sys/types.h> /* for off_t */
12667     #include <stdio.h>
12668int
12669main ()
12670{
12671int (*fp) (FILE *, off_t, int) = fseeko;
12672     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12673  ;
12674  return 0;
12675}
12676_ACEOF
12677if ac_fn_c_try_link "$LINENO"; then :
12678  ac_cv_sys_largefile_source=no; break
12679fi
12680rm -f core conftest.err conftest.$ac_objext \
12681    conftest$ac_exeext conftest.$ac_ext
12682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683/* end confdefs.h.  */
12684#define _LARGEFILE_SOURCE 1
12685#include <sys/types.h> /* for off_t */
12686     #include <stdio.h>
12687int
12688main ()
12689{
12690int (*fp) (FILE *, off_t, int) = fseeko;
12691     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12692  ;
12693  return 0;
12694}
12695_ACEOF
12696if ac_fn_c_try_link "$LINENO"; then :
12697  ac_cv_sys_largefile_source=1; break
12698fi
12699rm -f core conftest.err conftest.$ac_objext \
12700    conftest$ac_exeext conftest.$ac_ext
12701  ac_cv_sys_largefile_source=unknown
12702  break
12703done
12704fi
12705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12706$as_echo "$ac_cv_sys_largefile_source" >&6; }
12707case $ac_cv_sys_largefile_source in #(
12708  no | unknown) ;;
12709  *)
12710cat >>confdefs.h <<_ACEOF
12711#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12712_ACEOF
12713;;
12714esac
12715rm -rf conftest*
12716
12717# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12718# in glibc 2.1.3, but that breaks too many other things.
12719# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12720if test $ac_cv_sys_largefile_source != unknown; then
12721
12722$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12723
12724fi
12725
12726
12727# Check whether --enable-largefile was given.
12728if test "${enable_largefile+set}" = set; then :
12729  enableval=$enable_largefile;
12730fi
12731
12732if test "$enable_largefile" != no; then
12733
12734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12735$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12736if ${ac_cv_sys_largefile_CC+:} false; then :
12737  $as_echo_n "(cached) " >&6
12738else
12739  ac_cv_sys_largefile_CC=no
12740     if test "$GCC" != yes; then
12741       ac_save_CC=$CC
12742       while :; do
12743	 # IRIX 6.2 and later do not support large files by default,
12744	 # so use the C compiler's -n32 option if that helps.
12745	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746/* end confdefs.h.  */
12747#include <sys/types.h>
12748 /* Check that off_t can represent 2**63 - 1 correctly.
12749    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12750    since some C++ compilers masquerading as C compilers
12751    incorrectly reject 9223372036854775807.  */
12752#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12753  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12754		       && LARGE_OFF_T % 2147483647 == 1)
12755		      ? 1 : -1];
12756int
12757main ()
12758{
12759
12760  ;
12761  return 0;
12762}
12763_ACEOF
12764	 if ac_fn_c_try_compile "$LINENO"; then :
12765  break
12766fi
12767rm -f core conftest.err conftest.$ac_objext
12768	 CC="$CC -n32"
12769	 if ac_fn_c_try_compile "$LINENO"; then :
12770  ac_cv_sys_largefile_CC=' -n32'; break
12771fi
12772rm -f core conftest.err conftest.$ac_objext
12773	 break
12774       done
12775       CC=$ac_save_CC
12776       rm -f conftest.$ac_ext
12777    fi
12778fi
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12780$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12781  if test "$ac_cv_sys_largefile_CC" != no; then
12782    CC=$CC$ac_cv_sys_largefile_CC
12783  fi
12784
12785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12786$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12787if ${ac_cv_sys_file_offset_bits+:} false; then :
12788  $as_echo_n "(cached) " >&6
12789else
12790  while :; do
12791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792/* end confdefs.h.  */
12793#include <sys/types.h>
12794 /* Check that off_t can represent 2**63 - 1 correctly.
12795    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12796    since some C++ compilers masquerading as C compilers
12797    incorrectly reject 9223372036854775807.  */
12798#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12799  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12800		       && LARGE_OFF_T % 2147483647 == 1)
12801		      ? 1 : -1];
12802int
12803main ()
12804{
12805
12806  ;
12807  return 0;
12808}
12809_ACEOF
12810if ac_fn_c_try_compile "$LINENO"; then :
12811  ac_cv_sys_file_offset_bits=no; break
12812fi
12813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815/* end confdefs.h.  */
12816#define _FILE_OFFSET_BITS 64
12817#include <sys/types.h>
12818 /* Check that off_t can represent 2**63 - 1 correctly.
12819    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12820    since some C++ compilers masquerading as C compilers
12821    incorrectly reject 9223372036854775807.  */
12822#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12823  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12824		       && LARGE_OFF_T % 2147483647 == 1)
12825		      ? 1 : -1];
12826int
12827main ()
12828{
12829
12830  ;
12831  return 0;
12832}
12833_ACEOF
12834if ac_fn_c_try_compile "$LINENO"; then :
12835  ac_cv_sys_file_offset_bits=64; break
12836fi
12837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838  ac_cv_sys_file_offset_bits=unknown
12839  break
12840done
12841fi
12842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12843$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12844case $ac_cv_sys_file_offset_bits in #(
12845  no | unknown) ;;
12846  *)
12847cat >>confdefs.h <<_ACEOF
12848#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12849_ACEOF
12850;;
12851esac
12852rm -rf conftest*
12853  if test $ac_cv_sys_file_offset_bits = unknown; then
12854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12855$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12856if ${ac_cv_sys_large_files+:} false; then :
12857  $as_echo_n "(cached) " >&6
12858else
12859  while :; do
12860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861/* end confdefs.h.  */
12862#include <sys/types.h>
12863 /* Check that off_t can represent 2**63 - 1 correctly.
12864    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12865    since some C++ compilers masquerading as C compilers
12866    incorrectly reject 9223372036854775807.  */
12867#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12868  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12869		       && LARGE_OFF_T % 2147483647 == 1)
12870		      ? 1 : -1];
12871int
12872main ()
12873{
12874
12875  ;
12876  return 0;
12877}
12878_ACEOF
12879if ac_fn_c_try_compile "$LINENO"; then :
12880  ac_cv_sys_large_files=no; break
12881fi
12882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884/* end confdefs.h.  */
12885#define _LARGE_FILES 1
12886#include <sys/types.h>
12887 /* Check that off_t can represent 2**63 - 1 correctly.
12888    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12889    since some C++ compilers masquerading as C compilers
12890    incorrectly reject 9223372036854775807.  */
12891#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12892  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12893		       && LARGE_OFF_T % 2147483647 == 1)
12894		      ? 1 : -1];
12895int
12896main ()
12897{
12898
12899  ;
12900  return 0;
12901}
12902_ACEOF
12903if ac_fn_c_try_compile "$LINENO"; then :
12904  ac_cv_sys_large_files=1; break
12905fi
12906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907  ac_cv_sys_large_files=unknown
12908  break
12909done
12910fi
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12912$as_echo "$ac_cv_sys_large_files" >&6; }
12913case $ac_cv_sys_large_files in #(
12914  no | unknown) ;;
12915  *)
12916cat >>confdefs.h <<_ACEOF
12917#define _LARGE_FILES $ac_cv_sys_large_files
12918_ACEOF
12919;;
12920esac
12921rm -rf conftest*
12922  fi
12923
12924
12925fi
12926
12927
12928
12929if test "x$PKG_CONFIG" != "xno"; then
12930  canberra_lib=`$PKG_CONFIG --libs libcanberrax 2>/dev/null`
12931  canberra_cflags=`$PKG_CONFIG --cflags libcanberrax 2>/dev/null`
12932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: canberra_lib: $canberra_lib" >&5
12933$as_echo "canberra_lib: $canberra_lib" >&6; }
12934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: canberra_cflags: $canberra_cflags" >&5
12935$as_echo "canberra_cflags: $canberra_cflags" >&6; }
12936fi
12937if test "x$canberra_lib" = "x"; then
12938  canberra_lib=-lcanberra
12939  canberra_cflags=-D_REENTRANT
12940fi
12941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: canberra_lib: $canberra_lib" >&5
12942$as_echo "canberra_lib: $canberra_lib" >&6; }
12943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: canberra_cflags: $canberra_cflags" >&5
12944$as_echo "canberra_cflags: $canberra_cflags" >&6; }
12945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcanberra" >&5
12946$as_echo_n "checking for libcanberra... " >&6; }
12947ac_save_CFLAGS="$CFLAGS"
12948ac_save_LIBS="$LIBS"
12949CFLAGS="$CFLAGS $canberra_cflags"
12950LIBS="$LIBS $canberra_lib"
12951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952/* end confdefs.h.  */
12953
12954# include <canberra.h>
12955
12956int
12957main ()
12958{
12959
12960   ca_context *hello;
12961   ca_context_create(&hello);
12962  ;
12963  return 0;
12964}
12965_ACEOF
12966if ac_fn_c_try_link "$LINENO"; then :
12967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12968$as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h
12969
12970else
12971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972$as_echo "no" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS"
12973fi
12974rm -f core conftest.err conftest.$ac_objext \
12975    conftest$ac_exeext conftest.$ac_ext
12976
12977
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
12979$as_echo_n "checking for st_blksize... " >&6; }
12980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981/* end confdefs.h.  */
12982#include <sys/types.h>
12983#include <sys/stat.h>
12984int
12985main ()
12986{
12987	struct stat st;
12988	int n;
12989
12990	stat("/", &st);
12991	n = (int)st.st_blksize;
12992  ;
12993  return 0;
12994}
12995_ACEOF
12996if ac_fn_c_try_compile "$LINENO"; then :
12997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12998$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
12999
13000else
13001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002$as_echo "no" >&6; }
13003fi
13004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
13007$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13008if ${vim_cv_stat_ignores_slash+:} false; then :
13009  $as_echo_n "(cached) " >&6
13010else
13011
13012    if test "$cross_compiling" = yes; then :
13013
13014      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
13015
13016else
13017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018/* end confdefs.h.  */
13019
13020#include "confdefs.h"
13021#if STDC_HEADERS
13022# include <stdlib.h>
13023# include <stddef.h>
13024#endif
13025#include <sys/types.h>
13026#include <sys/stat.h>
13027main() {struct stat st;  exit(stat("configure/", &st) != 0); }
13028
13029_ACEOF
13030if ac_fn_c_try_run "$LINENO"; then :
13031
13032      vim_cv_stat_ignores_slash=yes
13033
13034else
13035
13036      vim_cv_stat_ignores_slash=no
13037
13038fi
13039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13040  conftest.$ac_objext conftest.beam conftest.$ac_ext
13041fi
13042
13043
13044fi
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
13046$as_echo "$vim_cv_stat_ignores_slash" >&6; }
13047
13048if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13049  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
13050
13051fi
13052
13053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
13054$as_echo_n "checking for iconv_open()... " >&6; }
13055save_LIBS="$LIBS"
13056LIBS="$LIBS -liconv"
13057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058/* end confdefs.h.  */
13059
13060#ifdef HAVE_ICONV_H
13061# include <iconv.h>
13062#endif
13063
13064int
13065main ()
13066{
13067iconv_open("fr", "to");
13068  ;
13069  return 0;
13070}
13071_ACEOF
13072if ac_fn_c_try_link "$LINENO"; then :
13073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
13074$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13075
13076else
13077  LIBS="$save_LIBS"
13078    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079/* end confdefs.h.  */
13080
13081#ifdef HAVE_ICONV_H
13082# include <iconv.h>
13083#endif
13084
13085int
13086main ()
13087{
13088iconv_open("fr", "to");
13089  ;
13090  return 0;
13091}
13092_ACEOF
13093if ac_fn_c_try_link "$LINENO"; then :
13094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13095$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13096
13097else
13098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099$as_echo "no" >&6; }
13100fi
13101rm -f core conftest.err conftest.$ac_objext \
13102    conftest$ac_exeext conftest.$ac_ext
13103fi
13104rm -f core conftest.err conftest.$ac_objext \
13105    conftest$ac_exeext conftest.$ac_ext
13106
13107
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
13109$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
13110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111/* end confdefs.h.  */
13112
13113#ifdef HAVE_LANGINFO_H
13114# include <langinfo.h>
13115#endif
13116
13117int
13118main ()
13119{
13120char *cs = nl_langinfo(CODESET);
13121  ;
13122  return 0;
13123}
13124_ACEOF
13125if ac_fn_c_try_link "$LINENO"; then :
13126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13127$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
13128
13129else
13130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131$as_echo "no" >&6; }
13132fi
13133rm -f core conftest.err conftest.$ac_objext \
13134    conftest$ac_exeext conftest.$ac_ext
13135
13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
13137$as_echo_n "checking for strtod in -lm... " >&6; }
13138if ${ac_cv_lib_m_strtod+:} false; then :
13139  $as_echo_n "(cached) " >&6
13140else
13141  ac_check_lib_save_LIBS=$LIBS
13142LIBS="-lm  $LIBS"
13143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144/* end confdefs.h.  */
13145
13146/* Override any GCC internal prototype to avoid an error.
13147   Use char because int might match the return type of a GCC
13148   builtin and then its argument prototype would still apply.  */
13149#ifdef __cplusplus
13150extern "C"
13151#endif
13152char strtod ();
13153int
13154main ()
13155{
13156return strtod ();
13157  ;
13158  return 0;
13159}
13160_ACEOF
13161if ac_fn_c_try_link "$LINENO"; then :
13162  ac_cv_lib_m_strtod=yes
13163else
13164  ac_cv_lib_m_strtod=no
13165fi
13166rm -f core conftest.err conftest.$ac_objext \
13167    conftest$ac_exeext conftest.$ac_ext
13168LIBS=$ac_check_lib_save_LIBS
13169fi
13170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
13171$as_echo "$ac_cv_lib_m_strtod" >&6; }
13172if test "x$ac_cv_lib_m_strtod" = xyes; then :
13173  cat >>confdefs.h <<_ACEOF
13174#define HAVE_LIBM 1
13175_ACEOF
13176
13177  LIBS="-lm $LIBS"
13178
13179fi
13180
13181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
13182$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
13183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184/* end confdefs.h.  */
13185
13186#ifdef HAVE_MATH_H
13187# include <math.h>
13188#endif
13189#if STDC_HEADERS
13190# include <stdlib.h>
13191# include <stddef.h>
13192#endif
13193
13194int
13195main ()
13196{
13197char *s; double d;
13198    d = strtod("1.1", &s);
13199    d = fabs(1.11);
13200    d = ceil(1.11);
13201    d = floor(1.11);
13202    d = log10(1.11);
13203    d = pow(1.11, 2.22);
13204    d = sqrt(1.11);
13205    d = sin(1.11);
13206    d = cos(1.11);
13207    d = atan(1.11);
13208
13209  ;
13210  return 0;
13211}
13212_ACEOF
13213if ac_fn_c_try_link "$LINENO"; then :
13214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13215$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
13216
13217else
13218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219$as_echo "no" >&6; }
13220fi
13221rm -f core conftest.err conftest.$ac_objext \
13222    conftest$ac_exeext conftest.$ac_ext
13223
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
13225$as_echo_n "checking for isinf()... " >&6; }
13226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227/* end confdefs.h.  */
13228
13229#ifdef HAVE_MATH_H
13230# include <math.h>
13231#endif
13232#if STDC_HEADERS
13233# include <stdlib.h>
13234# include <stddef.h>
13235#endif
13236
13237int
13238main ()
13239{
13240int r = isinf(1.11);
13241  ;
13242  return 0;
13243}
13244_ACEOF
13245if ac_fn_c_try_link "$LINENO"; then :
13246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13247$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13248
13249else
13250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251$as_echo "no" >&6; }
13252fi
13253rm -f core conftest.err conftest.$ac_objext \
13254    conftest$ac_exeext conftest.$ac_ext
13255
13256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
13257$as_echo_n "checking for isnan()... " >&6; }
13258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259/* end confdefs.h.  */
13260
13261#ifdef HAVE_MATH_H
13262# include <math.h>
13263#endif
13264#if STDC_HEADERS
13265# include <stdlib.h>
13266# include <stddef.h>
13267#endif
13268
13269int
13270main ()
13271{
13272int r = isnan(1.11);
13273  ;
13274  return 0;
13275}
13276_ACEOF
13277if ac_fn_c_try_link "$LINENO"; then :
13278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13279$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13280
13281else
13282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283$as_echo "no" >&6; }
13284fi
13285rm -f core conftest.err conftest.$ac_objext \
13286    conftest$ac_exeext conftest.$ac_ext
13287
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
13289$as_echo_n "checking --disable-acl argument... " >&6; }
13290# Check whether --enable-acl was given.
13291if test "${enable_acl+set}" = set; then :
13292  enableval=$enable_acl;
13293else
13294  enable_acl="yes"
13295fi
13296
13297if test "$enable_acl" = "yes"; then
13298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299$as_echo "no" >&6; }
13300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
13301$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
13302if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
13303  $as_echo_n "(cached) " >&6
13304else
13305  ac_check_lib_save_LIBS=$LIBS
13306LIBS="-lposix1e  $LIBS"
13307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308/* end confdefs.h.  */
13309
13310/* Override any GCC internal prototype to avoid an error.
13311   Use char because int might match the return type of a GCC
13312   builtin and then its argument prototype would still apply.  */
13313#ifdef __cplusplus
13314extern "C"
13315#endif
13316char acl_get_file ();
13317int
13318main ()
13319{
13320return acl_get_file ();
13321  ;
13322  return 0;
13323}
13324_ACEOF
13325if ac_fn_c_try_link "$LINENO"; then :
13326  ac_cv_lib_posix1e_acl_get_file=yes
13327else
13328  ac_cv_lib_posix1e_acl_get_file=no
13329fi
13330rm -f core conftest.err conftest.$ac_objext \
13331    conftest$ac_exeext conftest.$ac_ext
13332LIBS=$ac_check_lib_save_LIBS
13333fi
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13335$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
13336if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
13337  LIBS="$LIBS -lposix1e"
13338else
13339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
13340$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
13341if ${ac_cv_lib_acl_acl_get_file+:} false; then :
13342  $as_echo_n "(cached) " >&6
13343else
13344  ac_check_lib_save_LIBS=$LIBS
13345LIBS="-lacl  $LIBS"
13346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347/* end confdefs.h.  */
13348
13349/* Override any GCC internal prototype to avoid an error.
13350   Use char because int might match the return type of a GCC
13351   builtin and then its argument prototype would still apply.  */
13352#ifdef __cplusplus
13353extern "C"
13354#endif
13355char acl_get_file ();
13356int
13357main ()
13358{
13359return acl_get_file ();
13360  ;
13361  return 0;
13362}
13363_ACEOF
13364if ac_fn_c_try_link "$LINENO"; then :
13365  ac_cv_lib_acl_acl_get_file=yes
13366else
13367  ac_cv_lib_acl_acl_get_file=no
13368fi
13369rm -f core conftest.err conftest.$ac_objext \
13370    conftest$ac_exeext conftest.$ac_ext
13371LIBS=$ac_check_lib_save_LIBS
13372fi
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
13374$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
13375if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
13376  LIBS="$LIBS -lacl"
13377		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
13378$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
13379if ${ac_cv_lib_attr_fgetxattr+:} false; then :
13380  $as_echo_n "(cached) " >&6
13381else
13382  ac_check_lib_save_LIBS=$LIBS
13383LIBS="-lattr  $LIBS"
13384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385/* end confdefs.h.  */
13386
13387/* Override any GCC internal prototype to avoid an error.
13388   Use char because int might match the return type of a GCC
13389   builtin and then its argument prototype would still apply.  */
13390#ifdef __cplusplus
13391extern "C"
13392#endif
13393char fgetxattr ();
13394int
13395main ()
13396{
13397return fgetxattr ();
13398  ;
13399  return 0;
13400}
13401_ACEOF
13402if ac_fn_c_try_link "$LINENO"; then :
13403  ac_cv_lib_attr_fgetxattr=yes
13404else
13405  ac_cv_lib_attr_fgetxattr=no
13406fi
13407rm -f core conftest.err conftest.$ac_objext \
13408    conftest$ac_exeext conftest.$ac_ext
13409LIBS=$ac_check_lib_save_LIBS
13410fi
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
13412$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
13413if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
13414  LIBS="$LIBS -lattr"
13415fi
13416
13417fi
13418
13419fi
13420
13421
13422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
13423$as_echo_n "checking for POSIX ACL support... " >&6; }
13424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425/* end confdefs.h.  */
13426
13427#include <sys/types.h>
13428#ifdef HAVE_SYS_ACL_H
13429# include <sys/acl.h>
13430#endif
13431acl_t acl;
13432int
13433main ()
13434{
13435acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13436	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13437	acl_free(acl);
13438  ;
13439  return 0;
13440}
13441_ACEOF
13442if ac_fn_c_try_link "$LINENO"; then :
13443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13444$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
13445
13446else
13447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448$as_echo "no" >&6; }
13449fi
13450rm -f core conftest.err conftest.$ac_objext \
13451    conftest$ac_exeext conftest.$ac_ext
13452
13453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
13454$as_echo_n "checking for acl_get in -lsec... " >&6; }
13455if ${ac_cv_lib_sec_acl_get+:} false; then :
13456  $as_echo_n "(cached) " >&6
13457else
13458  ac_check_lib_save_LIBS=$LIBS
13459LIBS="-lsec  $LIBS"
13460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461/* end confdefs.h.  */
13462
13463/* Override any GCC internal prototype to avoid an error.
13464   Use char because int might match the return type of a GCC
13465   builtin and then its argument prototype would still apply.  */
13466#ifdef __cplusplus
13467extern "C"
13468#endif
13469char acl_get ();
13470int
13471main ()
13472{
13473return acl_get ();
13474  ;
13475  return 0;
13476}
13477_ACEOF
13478if ac_fn_c_try_link "$LINENO"; then :
13479  ac_cv_lib_sec_acl_get=yes
13480else
13481  ac_cv_lib_sec_acl_get=no
13482fi
13483rm -f core conftest.err conftest.$ac_objext \
13484    conftest$ac_exeext conftest.$ac_ext
13485LIBS=$ac_check_lib_save_LIBS
13486fi
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
13488$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
13489if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
13490  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
13491
13492else
13493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
13494$as_echo_n "checking for Solaris ACL support... " >&6; }
13495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496/* end confdefs.h.  */
13497
13498#ifdef HAVE_SYS_ACL_H
13499# include <sys/acl.h>
13500#endif
13501int
13502main ()
13503{
13504acl("foo", GETACLCNT, 0, NULL);
13505
13506  ;
13507  return 0;
13508}
13509_ACEOF
13510if ac_fn_c_try_link "$LINENO"; then :
13511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13512$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
13513
13514else
13515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516$as_echo "no" >&6; }
13517fi
13518rm -f core conftest.err conftest.$ac_objext \
13519    conftest$ac_exeext conftest.$ac_ext
13520fi
13521
13522
13523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
13524$as_echo_n "checking for AIX ACL support... " >&6; }
13525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526/* end confdefs.h.  */
13527
13528#if STDC_HEADERS
13529# include <stdlib.h>
13530# include <stddef.h>
13531#endif
13532#ifdef HAVE_SYS_ACL_H
13533# include <sys/acl.h>
13534#endif
13535#ifdef HAVE_SYS_ACCESS_H
13536# include <sys/access.h>
13537#endif
13538#define _ALL_SOURCE
13539
13540#include <sys/stat.h>
13541
13542int aclsize;
13543struct acl *aclent;
13544int
13545main ()
13546{
13547aclsize = sizeof(struct acl);
13548	aclent = (void *)malloc(aclsize);
13549	statacl("foo", STX_NORMAL, aclent, aclsize);
13550
13551  ;
13552  return 0;
13553}
13554_ACEOF
13555if ac_fn_c_try_link "$LINENO"; then :
13556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13557$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
13558
13559else
13560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561$as_echo "no" >&6; }
13562fi
13563rm -f core conftest.err conftest.$ac_objext \
13564    conftest$ac_exeext conftest.$ac_ext
13565else
13566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13567$as_echo "yes" >&6; }
13568fi
13569
13570if test "x$GTK_CFLAGS" != "x"; then
13571    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
13572$as_echo_n "checking for pango_shape_full... " >&6; }
13573  ac_save_CFLAGS="$CFLAGS"
13574  ac_save_LIBS="$LIBS"
13575  CFLAGS="$CFLAGS $GTK_CFLAGS"
13576  LIBS="$LIBS $GTK_LIBS"
13577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578/* end confdefs.h.  */
13579#include <gtk/gtk.h>
13580int
13581main ()
13582{
13583 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
13584  ;
13585  return 0;
13586}
13587_ACEOF
13588if ac_fn_c_try_link "$LINENO"; then :
13589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13590$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
13591
13592else
13593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594$as_echo "no" >&6; }
13595fi
13596rm -f core conftest.err conftest.$ac_objext \
13597    conftest$ac_exeext conftest.$ac_ext
13598  CFLAGS="$ac_save_CFLAGS"
13599  LIBS="$ac_save_LIBS"
13600fi
13601
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
13603$as_echo_n "checking --disable-gpm argument... " >&6; }
13604# Check whether --enable-gpm was given.
13605if test "${enable_gpm+set}" = set; then :
13606  enableval=$enable_gpm;
13607else
13608  enable_gpm="yes"
13609fi
13610
13611
13612if test "$enable_gpm" = "yes"; then
13613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614$as_echo "no" >&6; }
13615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
13616$as_echo_n "checking for gpm... " >&6; }
13617if ${vi_cv_have_gpm+:} false; then :
13618  $as_echo_n "(cached) " >&6
13619else
13620  olibs="$LIBS" ; LIBS="-lgpm"
13621	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622/* end confdefs.h.  */
13623#include <gpm.h>
13624	    #include <linux/keyboard.h>
13625int
13626main ()
13627{
13628Gpm_GetLibVersion(NULL);
13629  ;
13630  return 0;
13631}
13632_ACEOF
13633if ac_fn_c_try_link "$LINENO"; then :
13634  	    	    vi_cv_have_gpm=yes
13635else
13636  vi_cv_have_gpm=no
13637fi
13638rm -f core conftest.err conftest.$ac_objext \
13639    conftest$ac_exeext conftest.$ac_ext
13640	LIBS="$olibs"
13641
13642fi
13643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13644$as_echo "$vi_cv_have_gpm" >&6; }
13645  if test $vi_cv_have_gpm = yes; then
13646    LIBS="$LIBS -lgpm"
13647    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13648
13649  fi
13650else
13651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13652$as_echo "yes" >&6; }
13653fi
13654
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13656$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13657# Check whether --enable-sysmouse was given.
13658if test "${enable_sysmouse+set}" = set; then :
13659  enableval=$enable_sysmouse;
13660else
13661  enable_sysmouse="yes"
13662fi
13663
13664
13665if test "$enable_sysmouse" = "yes"; then
13666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667$as_echo "no" >&6; }
13668        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13669$as_echo_n "checking for sysmouse... " >&6; }
13670if ${vi_cv_have_sysmouse+:} false; then :
13671  $as_echo_n "(cached) " >&6
13672else
13673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674/* end confdefs.h.  */
13675#include <sys/consio.h>
13676	     #include <signal.h>
13677	     #include <sys/fbio.h>
13678int
13679main ()
13680{
13681struct mouse_info   mouse;
13682	     mouse.operation = MOUSE_MODE;
13683	     mouse.operation = MOUSE_SHOW;
13684	     mouse.u.mode.mode = 0;
13685	     mouse.u.mode.signal = SIGUSR2;
13686  ;
13687  return 0;
13688}
13689_ACEOF
13690if ac_fn_c_try_link "$LINENO"; then :
13691  vi_cv_have_sysmouse=yes
13692else
13693  vi_cv_have_sysmouse=no
13694fi
13695rm -f core conftest.err conftest.$ac_objext \
13696    conftest$ac_exeext conftest.$ac_ext
13697
13698fi
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13700$as_echo "$vi_cv_have_sysmouse" >&6; }
13701  if test $vi_cv_have_sysmouse = yes; then
13702    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13703
13704  fi
13705else
13706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13707$as_echo "yes" >&6; }
13708fi
13709
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13711$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713/* end confdefs.h.  */
13714#if HAVE_FCNTL_H
13715# include <fcntl.h>
13716#endif
13717int
13718main ()
13719{
13720	int flag = FD_CLOEXEC;
13721  ;
13722  return 0;
13723}
13724_ACEOF
13725if ac_fn_c_try_compile "$LINENO"; then :
13726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13727$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13728
13729else
13730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13731$as_echo "not usable" >&6; }
13732fi
13733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13736$as_echo_n "checking for rename... " >&6; }
13737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738/* end confdefs.h.  */
13739#include <stdio.h>
13740int
13741main ()
13742{
13743rename("this", "that")
13744  ;
13745  return 0;
13746}
13747_ACEOF
13748if ac_fn_c_try_link "$LINENO"; then :
13749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13750$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13751
13752else
13753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13754$as_echo "no" >&6; }
13755fi
13756rm -f core conftest.err conftest.$ac_objext \
13757    conftest$ac_exeext conftest.$ac_ext
13758
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13760$as_echo_n "checking for sysctl... " >&6; }
13761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762/* end confdefs.h.  */
13763#include <sys/types.h>
13764#include <sys/sysctl.h>
13765int
13766main ()
13767{
13768	int mib[2], r;
13769	size_t len;
13770
13771	mib[0] = CTL_HW;
13772	mib[1] = HW_USERMEM;
13773	len = sizeof(r);
13774	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13775
13776  ;
13777  return 0;
13778}
13779_ACEOF
13780if ac_fn_c_try_compile "$LINENO"; then :
13781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13782$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13783
13784else
13785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13786$as_echo "not usable" >&6; }
13787fi
13788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789
13790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13791$as_echo_n "checking for sysinfo... " >&6; }
13792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793/* end confdefs.h.  */
13794#include <sys/types.h>
13795#include <sys/sysinfo.h>
13796int
13797main ()
13798{
13799	struct sysinfo sinfo;
13800	int t;
13801
13802	(void)sysinfo(&sinfo);
13803	t = sinfo.totalram;
13804
13805  ;
13806  return 0;
13807}
13808_ACEOF
13809if ac_fn_c_try_compile "$LINENO"; then :
13810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13811$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13812
13813else
13814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13815$as_echo "not usable" >&6; }
13816fi
13817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818
13819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13820$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822/* end confdefs.h.  */
13823#include <sys/types.h>
13824#include <sys/sysinfo.h>
13825int
13826main ()
13827{
13828	struct sysinfo sinfo;
13829	sinfo.mem_unit = 1;
13830
13831  ;
13832  return 0;
13833}
13834_ACEOF
13835if ac_fn_c_try_compile "$LINENO"; then :
13836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13837$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13838
13839else
13840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841$as_echo "no" >&6; }
13842fi
13843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13846$as_echo_n "checking for sysconf... " >&6; }
13847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848/* end confdefs.h.  */
13849#include <unistd.h>
13850int
13851main ()
13852{
13853	(void)sysconf(_SC_PAGESIZE);
13854	(void)sysconf(_SC_PHYS_PAGES);
13855
13856  ;
13857  return 0;
13858}
13859_ACEOF
13860if ac_fn_c_try_compile "$LINENO"; then :
13861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13862$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13863
13864else
13865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13866$as_echo "not usable" >&6; }
13867fi
13868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13869
13870# The cast to long int works around a bug in the HP C Compiler
13871# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13872# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13873# This bug is HP SR number 8606223364.
13874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13875$as_echo_n "checking size of int... " >&6; }
13876if ${ac_cv_sizeof_int+:} false; then :
13877  $as_echo_n "(cached) " >&6
13878else
13879  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13880
13881else
13882  if test "$ac_cv_type_int" = yes; then
13883     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13885as_fn_error 77 "cannot compute sizeof (int)
13886See \`config.log' for more details" "$LINENO" 5; }
13887   else
13888     ac_cv_sizeof_int=0
13889   fi
13890fi
13891
13892fi
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13894$as_echo "$ac_cv_sizeof_int" >&6; }
13895
13896
13897
13898cat >>confdefs.h <<_ACEOF
13899#define SIZEOF_INT $ac_cv_sizeof_int
13900_ACEOF
13901
13902
13903# The cast to long int works around a bug in the HP C Compiler
13904# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13905# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13906# This bug is HP SR number 8606223364.
13907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13908$as_echo_n "checking size of long... " >&6; }
13909if ${ac_cv_sizeof_long+:} false; then :
13910  $as_echo_n "(cached) " >&6
13911else
13912  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13913
13914else
13915  if test "$ac_cv_type_long" = yes; then
13916     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13918as_fn_error 77 "cannot compute sizeof (long)
13919See \`config.log' for more details" "$LINENO" 5; }
13920   else
13921     ac_cv_sizeof_long=0
13922   fi
13923fi
13924
13925fi
13926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13927$as_echo "$ac_cv_sizeof_long" >&6; }
13928
13929
13930
13931cat >>confdefs.h <<_ACEOF
13932#define SIZEOF_LONG $ac_cv_sizeof_long
13933_ACEOF
13934
13935
13936# The cast to long int works around a bug in the HP C Compiler
13937# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13938# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13939# This bug is HP SR number 8606223364.
13940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
13941$as_echo_n "checking size of time_t... " >&6; }
13942if ${ac_cv_sizeof_time_t+:} false; then :
13943  $as_echo_n "(cached) " >&6
13944else
13945  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
13946
13947else
13948  if test "$ac_cv_type_time_t" = yes; then
13949     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13951as_fn_error 77 "cannot compute sizeof (time_t)
13952See \`config.log' for more details" "$LINENO" 5; }
13953   else
13954     ac_cv_sizeof_time_t=0
13955   fi
13956fi
13957
13958fi
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
13960$as_echo "$ac_cv_sizeof_time_t" >&6; }
13961
13962
13963
13964cat >>confdefs.h <<_ACEOF
13965#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13966_ACEOF
13967
13968
13969# The cast to long int works around a bug in the HP C Compiler
13970# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13971# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13972# This bug is HP SR number 8606223364.
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
13974$as_echo_n "checking size of off_t... " >&6; }
13975if ${ac_cv_sizeof_off_t+:} false; then :
13976  $as_echo_n "(cached) " >&6
13977else
13978  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
13979
13980else
13981  if test "$ac_cv_type_off_t" = yes; then
13982     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13984as_fn_error 77 "cannot compute sizeof (off_t)
13985See \`config.log' for more details" "$LINENO" 5; }
13986   else
13987     ac_cv_sizeof_off_t=0
13988   fi
13989fi
13990
13991fi
13992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
13993$as_echo "$ac_cv_sizeof_off_t" >&6; }
13994
13995
13996
13997cat >>confdefs.h <<_ACEOF
13998#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13999_ACEOF
14000
14001
14002
14003cat >>confdefs.h <<_ACEOF
14004#define VIM_SIZEOF_INT $ac_cv_sizeof_int
14005_ACEOF
14006
14007cat >>confdefs.h <<_ACEOF
14008#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
14009_ACEOF
14010
14011
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
14013$as_echo_n "checking uint32_t is 32 bits... " >&6; }
14014if test "$cross_compiling" = yes; then :
14015  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
14016$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
14017else
14018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019/* end confdefs.h.  */
14020
14021#ifdef HAVE_STDINT_H
14022# include <stdint.h>
14023#endif
14024#ifdef HAVE_INTTYPES_H
14025# include <inttypes.h>
14026#endif
14027main() {
14028  uint32_t nr1 = (uint32_t)-1;
14029  uint32_t nr2 = (uint32_t)0xffffffffUL;
14030  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
14031  exit(0);
14032}
14033_ACEOF
14034if ac_fn_c_try_run "$LINENO"; then :
14035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14036$as_echo "ok" >&6; }
14037else
14038  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
14039fi
14040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14041  conftest.$ac_objext conftest.beam conftest.$ac_ext
14042fi
14043
14044
14045
14046bcopy_test_prog='
14047#include "confdefs.h"
14048#ifdef HAVE_STRING_H
14049# include <string.h>
14050#endif
14051#if STDC_HEADERS
14052# include <stdlib.h>
14053# include <stddef.h>
14054#endif
14055main() {
14056  char buf[10];
14057  strcpy(buf, "abcdefghi");
14058  mch_memmove(buf, buf + 2, 3);
14059  if (strncmp(buf, "ababcf", 6))
14060    exit(1);
14061  strcpy(buf, "abcdefghi");
14062  mch_memmove(buf + 2, buf, 3);
14063  if (strncmp(buf, "cdedef", 6))
14064    exit(1);
14065  exit(0); /* libc version works properly.  */
14066}'
14067
14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
14069$as_echo_n "checking whether memmove handles overlaps... " >&6; }
14070if ${vim_cv_memmove_handles_overlap+:} false; then :
14071  $as_echo_n "(cached) " >&6
14072else
14073
14074    if test "$cross_compiling" = yes; then :
14075
14076	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
14077
14078else
14079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080/* end confdefs.h.  */
14081#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14082_ACEOF
14083if ac_fn_c_try_run "$LINENO"; then :
14084
14085	vim_cv_memmove_handles_overlap=yes
14086
14087else
14088
14089	vim_cv_memmove_handles_overlap=no
14090
14091fi
14092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14093  conftest.$ac_objext conftest.beam conftest.$ac_ext
14094fi
14095
14096
14097fi
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
14099$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
14100
14101if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
14102  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
14103
14104else
14105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
14106$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
14107if ${vim_cv_bcopy_handles_overlap+:} false; then :
14108  $as_echo_n "(cached) " >&6
14109else
14110
14111      if test "$cross_compiling" = yes; then :
14112
14113	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
14114
14115else
14116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117/* end confdefs.h.  */
14118#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14119_ACEOF
14120if ac_fn_c_try_run "$LINENO"; then :
14121
14122	vim_cv_bcopy_handles_overlap=yes
14123
14124else
14125
14126	vim_cv_bcopy_handles_overlap=no
14127
14128fi
14129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14130  conftest.$ac_objext conftest.beam conftest.$ac_ext
14131fi
14132
14133
14134fi
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
14136$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
14137
14138  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
14139    $as_echo "#define USEBCOPY 1" >>confdefs.h
14140
14141  else
14142    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
14143$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
14144if ${vim_cv_memcpy_handles_overlap+:} false; then :
14145  $as_echo_n "(cached) " >&6
14146else
14147
14148	if test "$cross_compiling" = yes; then :
14149
14150	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
14151
14152else
14153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154/* end confdefs.h.  */
14155#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14156_ACEOF
14157if ac_fn_c_try_run "$LINENO"; then :
14158
14159	    vim_cv_memcpy_handles_overlap=yes
14160
14161else
14162
14163	    vim_cv_memcpy_handles_overlap=no
14164
14165fi
14166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14167  conftest.$ac_objext conftest.beam conftest.$ac_ext
14168fi
14169
14170
14171fi
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
14173$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
14174
14175    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
14176      $as_echo "#define USEMEMCPY 1" >>confdefs.h
14177
14178    fi
14179  fi
14180fi
14181
14182
14183if test "x$with_x" = "xyes"; then
14184  cflags_save=$CFLAGS
14185  libs_save=$LIBS
14186  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
14187  CFLAGS="$CFLAGS $X_CFLAGS"
14188
14189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
14190$as_echo_n "checking whether X_LOCALE needed... " >&6; }
14191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192/* end confdefs.h.  */
14193#include <X11/Xlocale.h>
14194int
14195main ()
14196{
14197
14198  ;
14199  return 0;
14200}
14201_ACEOF
14202if ac_fn_c_try_compile "$LINENO"; then :
14203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204/* end confdefs.h.  */
14205
14206/* Override any GCC internal prototype to avoid an error.
14207   Use char because int might match the return type of a GCC
14208   builtin and then its argument prototype would still apply.  */
14209#ifdef __cplusplus
14210extern "C"
14211#endif
14212char _Xsetlocale ();
14213int
14214main ()
14215{
14216return _Xsetlocale ();
14217  ;
14218  return 0;
14219}
14220_ACEOF
14221if ac_fn_c_try_link "$LINENO"; then :
14222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14223$as_echo "yes" >&6; }
14224	      $as_echo "#define X_LOCALE 1" >>confdefs.h
14225
14226else
14227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14228$as_echo "no" >&6; }
14229fi
14230rm -f core conftest.err conftest.$ac_objext \
14231    conftest$ac_exeext conftest.$ac_ext
14232else
14233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14234$as_echo "no" >&6; }
14235fi
14236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237
14238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
14239$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
14240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241/* end confdefs.h.  */
14242
14243/* Override any GCC internal prototype to avoid an error.
14244   Use char because int might match the return type of a GCC
14245   builtin and then its argument prototype would still apply.  */
14246#ifdef __cplusplus
14247extern "C"
14248#endif
14249char Xutf8SetWMProperties ();
14250int
14251main ()
14252{
14253return Xutf8SetWMProperties ();
14254  ;
14255  return 0;
14256}
14257_ACEOF
14258if ac_fn_c_try_link "$LINENO"; then :
14259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14260$as_echo "yes" >&6; }
14261	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
14262
14263else
14264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265$as_echo "no" >&6; }
14266fi
14267rm -f core conftest.err conftest.$ac_objext \
14268    conftest$ac_exeext conftest.$ac_ext
14269
14270  CFLAGS=$cflags_save
14271  LIBS=$libs_save
14272fi
14273
14274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
14275$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
14276if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
14277  $as_echo_n "(cached) " >&6
14278else
14279  ac_check_lib_save_LIBS=$LIBS
14280LIBS="-lxpg4  $LIBS"
14281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282/* end confdefs.h.  */
14283
14284/* Override any GCC internal prototype to avoid an error.
14285   Use char because int might match the return type of a GCC
14286   builtin and then its argument prototype would still apply.  */
14287#ifdef __cplusplus
14288extern "C"
14289#endif
14290char _xpg4_setrunelocale ();
14291int
14292main ()
14293{
14294return _xpg4_setrunelocale ();
14295  ;
14296  return 0;
14297}
14298_ACEOF
14299if ac_fn_c_try_link "$LINENO"; then :
14300  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14301else
14302  ac_cv_lib_xpg4__xpg4_setrunelocale=no
14303fi
14304rm -f core conftest.err conftest.$ac_objext \
14305    conftest$ac_exeext conftest.$ac_ext
14306LIBS=$ac_check_lib_save_LIBS
14307fi
14308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14309$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
14310if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
14311  LIBS="$LIBS -lxpg4"
14312fi
14313
14314
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
14316$as_echo_n "checking how to create tags... " >&6; }
14317test -f tags && mv tags tags.save
14318if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14319  TAGPRG="ctags -I INIT+ --fields=+S"
14320elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14321  TAGPRG="exctags -I INIT+ --fields=+S"
14322elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14323  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
14324else
14325  TAGPRG="ctags"
14326  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14327  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14328  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14329  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14330  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14331  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14332  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14333fi
14334test -f tags.save && mv tags.save tags
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
14336$as_echo "$TAGPRG" >&6; }
14337
14338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
14339$as_echo_n "checking how to run man with a section nr... " >&6; }
14340MANDEF="man"
14341(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
14343$as_echo "$MANDEF" >&6; }
14344if test "$MANDEF" = "man -s"; then
14345  $as_echo "#define USEMAN_S 1" >>confdefs.h
14346
14347fi
14348
14349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
14350$as_echo_n "checking --disable-nls argument... " >&6; }
14351# Check whether --enable-nls was given.
14352if test "${enable_nls+set}" = set; then :
14353  enableval=$enable_nls;
14354else
14355  enable_nls="yes"
14356fi
14357
14358
14359if test "$enable_nls" = "yes"; then
14360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14361$as_echo "no" >&6; }
14362
14363  INSTALL_LANGS=install-languages
14364
14365  INSTALL_TOOL_LANGS=install-tool-languages
14366
14367
14368  # Extract the first word of "msgfmt", so it can be a program name with args.
14369set dummy msgfmt; ac_word=$2
14370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14371$as_echo_n "checking for $ac_word... " >&6; }
14372if ${ac_cv_prog_MSGFMT+:} false; then :
14373  $as_echo_n "(cached) " >&6
14374else
14375  if test -n "$MSGFMT"; then
14376  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14377else
14378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379for as_dir in $PATH
14380do
14381  IFS=$as_save_IFS
14382  test -z "$as_dir" && as_dir=.
14383    for ac_exec_ext in '' $ac_executable_extensions; do
14384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14385    ac_cv_prog_MSGFMT="msgfmt"
14386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14387    break 2
14388  fi
14389done
14390  done
14391IFS=$as_save_IFS
14392
14393fi
14394fi
14395MSGFMT=$ac_cv_prog_MSGFMT
14396if test -n "$MSGFMT"; then
14397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14398$as_echo "$MSGFMT" >&6; }
14399else
14400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401$as_echo "no" >&6; }
14402fi
14403
14404
14405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
14406$as_echo_n "checking for NLS... " >&6; }
14407  if test -f po/Makefile; then
14408    have_gettext="no"
14409    if test -n "$MSGFMT"; then
14410      olibs=$LIBS
14411      LIBS=""
14412      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413/* end confdefs.h.  */
14414#include <libintl.h>
14415int
14416main ()
14417{
14418gettext("Test");
14419  ;
14420  return 0;
14421}
14422_ACEOF
14423if ac_fn_c_try_link "$LINENO"; then :
14424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
14425$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
14426else
14427  LIBS="-lintl"
14428	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429/* end confdefs.h.  */
14430#include <libintl.h>
14431int
14432main ()
14433{
14434gettext("Test");
14435  ;
14436  return 0;
14437}
14438_ACEOF
14439if ac_fn_c_try_link "$LINENO"; then :
14440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
14441$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
14442	      LIBS="$olibs -lintl"
14443else
14444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
14445$as_echo "gettext() doesn't work" >&6; };
14446	      LIBS=$olibs
14447fi
14448rm -f core conftest.err conftest.$ac_objext \
14449    conftest$ac_exeext conftest.$ac_ext
14450fi
14451rm -f core conftest.err conftest.$ac_objext \
14452    conftest$ac_exeext conftest.$ac_ext
14453    else
14454      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
14455$as_echo "msgfmt not found - disabled" >&6; };
14456    fi
14457    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
14458      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14459
14460      MAKEMO=yes
14461
14462            for ac_func in bind_textdomain_codeset
14463do :
14464  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14465if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14466  cat >>confdefs.h <<_ACEOF
14467#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14468_ACEOF
14469
14470fi
14471done
14472
14473            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
14474$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
14475      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476/* end confdefs.h.  */
14477#include <libintl.h>
14478		extern int _nl_msg_cat_cntr;
14479int
14480main ()
14481{
14482++_nl_msg_cat_cntr;
14483  ;
14484  return 0;
14485}
14486_ACEOF
14487if ac_fn_c_try_link "$LINENO"; then :
14488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14489$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
14490
14491else
14492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14493$as_echo "no" >&6; }
14494fi
14495rm -f core conftest.err conftest.$ac_objext \
14496    conftest$ac_exeext conftest.$ac_ext
14497      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5
14498$as_echo_n "checking if msgfmt supports --desktop... " >&6; }
14499      MSGFMT_DESKTOP=
14500      if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then
14501	if "$MSGFMT" --version | grep '0.19.[3-7]$' >/dev/null; then
14502	  	  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
14503$as_echo "broken" >&6; }
14504	else
14505	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14506$as_echo "yes" >&6; }
14507	  MSGFMT_DESKTOP="gvim.desktop vim.desktop"
14508	fi
14509      else
14510	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14511$as_echo "no" >&6; }
14512      fi
14513
14514    fi
14515  else
14516    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
14517$as_echo "no \"po/Makefile\" - disabled" >&6; };
14518  fi
14519else
14520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14521$as_echo "yes" >&6; }
14522fi
14523
14524ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14525if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14526  DLL=dlfcn.h
14527else
14528  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14529if test "x$ac_cv_header_dl_h" = xyes; then :
14530  DLL=dl.h
14531fi
14532
14533
14534fi
14535
14536
14537if test x${DLL} = xdlfcn.h; then
14538
14539$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14540
14541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
14542$as_echo_n "checking for dlopen()... " >&6; }
14543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544/* end confdefs.h.  */
14545
14546int
14547main ()
14548{
14549
14550		extern void* dlopen();
14551		dlopen();
14552
14553  ;
14554  return 0;
14555}
14556_ACEOF
14557if ac_fn_c_try_link "$LINENO"; then :
14558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14559$as_echo "yes" >&6; };
14560
14561$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14562
14563else
14564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14565$as_echo "no" >&6; };
14566	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
14567$as_echo_n "checking for dlopen() in -ldl... " >&6; }
14568	      olibs=$LIBS
14569	      LIBS="$LIBS -ldl"
14570	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571/* end confdefs.h.  */
14572
14573int
14574main ()
14575{
14576
14577				extern void* dlopen();
14578				dlopen();
14579
14580  ;
14581  return 0;
14582}
14583_ACEOF
14584if ac_fn_c_try_link "$LINENO"; then :
14585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14586$as_echo "yes" >&6; };
14587
14588$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14589
14590else
14591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14592$as_echo "no" >&6; };
14593			  LIBS=$olibs
14594fi
14595rm -f core conftest.err conftest.$ac_objext \
14596    conftest$ac_exeext conftest.$ac_ext
14597fi
14598rm -f core conftest.err conftest.$ac_objext \
14599    conftest$ac_exeext conftest.$ac_ext
14600      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
14601$as_echo_n "checking for dlsym()... " >&6; }
14602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603/* end confdefs.h.  */
14604
14605int
14606main ()
14607{
14608
14609		extern void* dlsym();
14610		dlsym();
14611
14612  ;
14613  return 0;
14614}
14615_ACEOF
14616if ac_fn_c_try_link "$LINENO"; then :
14617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14618$as_echo "yes" >&6; };
14619
14620$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14621
14622else
14623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624$as_echo "no" >&6; };
14625	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
14626$as_echo_n "checking for dlsym() in -ldl... " >&6; }
14627	      olibs=$LIBS
14628	      LIBS="$LIBS -ldl"
14629	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630/* end confdefs.h.  */
14631
14632int
14633main ()
14634{
14635
14636				extern void* dlsym();
14637				dlsym();
14638
14639  ;
14640  return 0;
14641}
14642_ACEOF
14643if ac_fn_c_try_link "$LINENO"; then :
14644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14645$as_echo "yes" >&6; };
14646
14647$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14648
14649else
14650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651$as_echo "no" >&6; };
14652			  LIBS=$olibs
14653fi
14654rm -f core conftest.err conftest.$ac_objext \
14655    conftest$ac_exeext conftest.$ac_ext
14656fi
14657rm -f core conftest.err conftest.$ac_objext \
14658    conftest$ac_exeext conftest.$ac_ext
14659elif test x${DLL} = xdl.h; then
14660
14661$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14662
14663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14664$as_echo_n "checking for shl_load()... " >&6; }
14665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666/* end confdefs.h.  */
14667
14668int
14669main ()
14670{
14671
14672		extern void* shl_load();
14673		shl_load();
14674
14675  ;
14676  return 0;
14677}
14678_ACEOF
14679if ac_fn_c_try_link "$LINENO"; then :
14680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14681$as_echo "yes" >&6; };
14682
14683$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14684
14685else
14686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14687$as_echo "no" >&6; };
14688	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14689$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14690	  olibs=$LIBS
14691	  LIBS="$LIBS -ldld"
14692	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693/* end confdefs.h.  */
14694
14695int
14696main ()
14697{
14698
14699			extern void* shl_load();
14700			shl_load();
14701
14702  ;
14703  return 0;
14704}
14705_ACEOF
14706if ac_fn_c_try_link "$LINENO"; then :
14707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14708$as_echo "yes" >&6; };
14709
14710$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14711
14712else
14713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714$as_echo "no" >&6; };
14715		  LIBS=$olibs
14716fi
14717rm -f core conftest.err conftest.$ac_objext \
14718    conftest$ac_exeext conftest.$ac_ext
14719fi
14720rm -f core conftest.err conftest.$ac_objext \
14721    conftest$ac_exeext conftest.$ac_ext
14722fi
14723for ac_header in setjmp.h
14724do :
14725  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14726if test "x$ac_cv_header_setjmp_h" = xyes; then :
14727  cat >>confdefs.h <<_ACEOF
14728#define HAVE_SETJMP_H 1
14729_ACEOF
14730
14731fi
14732
14733done
14734
14735
14736if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then
14737    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14738    LIBS=`echo $LIBS | sed s/-ldl//`
14739    PERL_LIBS="$PERL_LIBS -ldl"
14740  fi
14741fi
14742
14743if test "$MACOS_X" = "yes"; then
14744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5
14745$as_echo_n "checking whether we need macOS frameworks... " >&6; }
14746  if test "$GUITYPE" = "CARBONGUI"; then
14747    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5
14748$as_echo "yes, we need Carbon" >&6; }
14749    LIBS="$LIBS -framework Carbon"
14750  elif test "$MACOS_X_DARWIN" = "yes"; then
14751    if test "$features" = "tiny"; then
14752            OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14753      OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14754      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
14755$as_echo "yes, we need CoreServices" >&6; }
14756      LIBS="$LIBS -framework CoreServices"
14757    else
14758      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
14759$as_echo "yes, we need AppKit" >&6; }
14760      LIBS="$LIBS -framework AppKit"
14761    fi
14762  else
14763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764$as_echo "no" >&6; }
14765  fi
14766fi
14767if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14768  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14769fi
14770
14771DEPEND_CFLAGS_FILTER=
14772if test "$GCC" = yes; then
14773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14774$as_echo_n "checking for GCC 3 or later... " >&6; }
14775  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
14776  if test "$gccmajor" -gt "2"; then
14777    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14779$as_echo "yes" >&6; }
14780  else
14781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14782$as_echo "no" >&6; }
14783  fi
14784          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14785$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14786  if test "$gccmajor" -gt "3"; then
14787    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/'`
14788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14789$as_echo "yes" >&6; }
14790  else
14791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14792$as_echo "no" >&6; }
14793  fi
14794fi
14795
14796
14797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5
14798$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; }
14799if 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
14800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14801$as_echo "yes" >&6; }
14802  $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14803
14804else
14805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14806$as_echo "no" >&6; }
14807fi
14808
14809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14810$as_echo_n "checking linker --as-needed support... " >&6; }
14811LINK_AS_NEEDED=
14812# Check if linker supports --as-needed and --no-as-needed options
14813if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14814  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14815  LINK_AS_NEEDED=yes
14816fi
14817if test "$LINK_AS_NEEDED" = yes; then
14818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14819$as_echo "yes" >&6; }
14820else
14821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14822$as_echo "no" >&6; }
14823fi
14824
14825
14826# IBM z/OS reset CFLAGS for config.mk
14827if test "$zOSUnix" = "yes"; then
14828	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14829fi
14830
14831ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14832
14833cat >confcache <<\_ACEOF
14834# This file is a shell script that caches the results of configure
14835# tests run on this system so they can be shared between configure
14836# scripts and configure runs, see configure's option --config-cache.
14837# It is not useful on other systems.  If it contains results you don't
14838# want to keep, you may remove or edit it.
14839#
14840# config.status only pays attention to the cache file if you give it
14841# the --recheck option to rerun configure.
14842#
14843# `ac_cv_env_foo' variables (set or unset) will be overridden when
14844# loading this file, other *unset* `ac_cv_foo' will be assigned the
14845# following values.
14846
14847_ACEOF
14848
14849# The following way of writing the cache mishandles newlines in values,
14850# but we know of no workaround that is simple, portable, and efficient.
14851# So, we kill variables containing newlines.
14852# Ultrix sh set writes to stderr and can't be redirected directly,
14853# and sets the high bit in the cache file unless we assign to the vars.
14854(
14855  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14856    eval ac_val=\$$ac_var
14857    case $ac_val in #(
14858    *${as_nl}*)
14859      case $ac_var in #(
14860      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14861$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14862      esac
14863      case $ac_var in #(
14864      _ | IFS | as_nl) ;; #(
14865      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14866      *) { eval $ac_var=; unset $ac_var;} ;;
14867      esac ;;
14868    esac
14869  done
14870
14871  (set) 2>&1 |
14872    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14873    *${as_nl}ac_space=\ *)
14874      # `set' does not quote correctly, so add quotes: double-quote
14875      # substitution turns \\\\ into \\, and sed turns \\ into \.
14876      sed -n \
14877	"s/'/'\\\\''/g;
14878	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14879      ;; #(
14880    *)
14881      # `set' quotes correctly as required by POSIX, so do not add quotes.
14882      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14883      ;;
14884    esac |
14885    sort
14886) |
14887  sed '
14888     /^ac_cv_env_/b end
14889     t clear
14890     :clear
14891     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14892     t end
14893     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14894     :end' >>confcache
14895if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14896  if test -w "$cache_file"; then
14897    if test "x$cache_file" != "x/dev/null"; then
14898      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14899$as_echo "$as_me: updating cache $cache_file" >&6;}
14900      if test ! -f "$cache_file" || test -h "$cache_file"; then
14901	cat confcache >"$cache_file"
14902      else
14903        case $cache_file in #(
14904        */* | ?:*)
14905	  mv -f confcache "$cache_file"$$ &&
14906	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14907        *)
14908	  mv -f confcache "$cache_file" ;;
14909	esac
14910      fi
14911    fi
14912  else
14913    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14914$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14915  fi
14916fi
14917rm -f confcache
14918
14919test "x$prefix" = xNONE && prefix=$ac_default_prefix
14920# Let make expand exec_prefix.
14921test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14922
14923DEFS=-DHAVE_CONFIG_H
14924
14925ac_libobjs=
14926ac_ltlibobjs=
14927U=
14928for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14929  # 1. Remove the extension, and $U if already installed.
14930  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14931  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14932  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14933  #    will be set to the directory where LIBOBJS objects are built.
14934  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14935  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14936done
14937LIBOBJS=$ac_libobjs
14938
14939LTLIBOBJS=$ac_ltlibobjs
14940
14941
14942
14943
14944: "${CONFIG_STATUS=./config.status}"
14945ac_write_fail=0
14946ac_clean_files_save=$ac_clean_files
14947ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14948{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14949$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14950as_write_fail=0
14951cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14952#! $SHELL
14953# Generated by $as_me.
14954# Run this file to recreate the current configuration.
14955# Compiler output produced by configure, useful for debugging
14956# configure, is in config.log if it exists.
14957
14958debug=false
14959ac_cs_recheck=false
14960ac_cs_silent=false
14961
14962SHELL=\${CONFIG_SHELL-$SHELL}
14963export SHELL
14964_ASEOF
14965cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14966## -------------------- ##
14967## M4sh Initialization. ##
14968## -------------------- ##
14969
14970# Be more Bourne compatible
14971DUALCASE=1; export DUALCASE # for MKS sh
14972if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14973  emulate sh
14974  NULLCMD=:
14975  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14976  # is contrary to our usage.  Disable this feature.
14977  alias -g '${1+"$@"}'='"$@"'
14978  setopt NO_GLOB_SUBST
14979else
14980  case `(set -o) 2>/dev/null` in #(
14981  *posix*) :
14982    set -o posix ;; #(
14983  *) :
14984     ;;
14985esac
14986fi
14987
14988
14989as_nl='
14990'
14991export as_nl
14992# Printing a long string crashes Solaris 7 /usr/bin/printf.
14993as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14994as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14995as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14996# Prefer a ksh shell builtin over an external printf program on Solaris,
14997# but without wasting forks for bash or zsh.
14998if test -z "$BASH_VERSION$ZSH_VERSION" \
14999    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15000  as_echo='print -r --'
15001  as_echo_n='print -rn --'
15002elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15003  as_echo='printf %s\n'
15004  as_echo_n='printf %s'
15005else
15006  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15007    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15008    as_echo_n='/usr/ucb/echo -n'
15009  else
15010    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15011    as_echo_n_body='eval
15012      arg=$1;
15013      case $arg in #(
15014      *"$as_nl"*)
15015	expr "X$arg" : "X\\(.*\\)$as_nl";
15016	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15017      esac;
15018      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15019    '
15020    export as_echo_n_body
15021    as_echo_n='sh -c $as_echo_n_body as_echo'
15022  fi
15023  export as_echo_body
15024  as_echo='sh -c $as_echo_body as_echo'
15025fi
15026
15027# The user is always right.
15028if test "${PATH_SEPARATOR+set}" != set; then
15029  PATH_SEPARATOR=:
15030  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15031    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15032      PATH_SEPARATOR=';'
15033  }
15034fi
15035
15036
15037# IFS
15038# We need space, tab and new line, in precisely that order.  Quoting is
15039# there to prevent editors from complaining about space-tab.
15040# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15041# splitting by setting IFS to empty value.)
15042IFS=" ""	$as_nl"
15043
15044# Find who we are.  Look in the path if we contain no directory separator.
15045as_myself=
15046case $0 in #((
15047  *[\\/]* ) as_myself=$0 ;;
15048  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15049for as_dir in $PATH
15050do
15051  IFS=$as_save_IFS
15052  test -z "$as_dir" && as_dir=.
15053    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15054  done
15055IFS=$as_save_IFS
15056
15057     ;;
15058esac
15059# We did not find ourselves, most probably we were run as `sh COMMAND'
15060# in which case we are not to be found in the path.
15061if test "x$as_myself" = x; then
15062  as_myself=$0
15063fi
15064if test ! -f "$as_myself"; then
15065  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15066  exit 1
15067fi
15068
15069# Unset variables that we do not need and which cause bugs (e.g. in
15070# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15071# suppresses any "Segmentation fault" message there.  '((' could
15072# trigger a bug in pdksh 5.2.14.
15073for as_var in BASH_ENV ENV MAIL MAILPATH
15074do eval test x\${$as_var+set} = xset \
15075  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15076done
15077PS1='$ '
15078PS2='> '
15079PS4='+ '
15080
15081# NLS nuisances.
15082LC_ALL=C
15083export LC_ALL
15084LANGUAGE=C
15085export LANGUAGE
15086
15087# CDPATH.
15088(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15089
15090
15091# as_fn_error STATUS ERROR [LINENO LOG_FD]
15092# ----------------------------------------
15093# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15094# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15095# script with STATUS, using 1 if that was 0.
15096as_fn_error ()
15097{
15098  as_status=$1; test $as_status -eq 0 && as_status=1
15099  if test "$4"; then
15100    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15101    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15102  fi
15103  $as_echo "$as_me: error: $2" >&2
15104  as_fn_exit $as_status
15105} # as_fn_error
15106
15107
15108# as_fn_set_status STATUS
15109# -----------------------
15110# Set $? to STATUS, without forking.
15111as_fn_set_status ()
15112{
15113  return $1
15114} # as_fn_set_status
15115
15116# as_fn_exit STATUS
15117# -----------------
15118# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15119as_fn_exit ()
15120{
15121  set +e
15122  as_fn_set_status $1
15123  exit $1
15124} # as_fn_exit
15125
15126# as_fn_unset VAR
15127# ---------------
15128# Portably unset VAR.
15129as_fn_unset ()
15130{
15131  { eval $1=; unset $1;}
15132}
15133as_unset=as_fn_unset
15134# as_fn_append VAR VALUE
15135# ----------------------
15136# Append the text in VALUE to the end of the definition contained in VAR. Take
15137# advantage of any shell optimizations that allow amortized linear growth over
15138# repeated appends, instead of the typical quadratic growth present in naive
15139# implementations.
15140if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15141  eval 'as_fn_append ()
15142  {
15143    eval $1+=\$2
15144  }'
15145else
15146  as_fn_append ()
15147  {
15148    eval $1=\$$1\$2
15149  }
15150fi # as_fn_append
15151
15152# as_fn_arith ARG...
15153# ------------------
15154# Perform arithmetic evaluation on the ARGs, and store the result in the
15155# global $as_val. Take advantage of shells that can avoid forks. The arguments
15156# must be portable across $(()) and expr.
15157if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15158  eval 'as_fn_arith ()
15159  {
15160    as_val=$(( $* ))
15161  }'
15162else
15163  as_fn_arith ()
15164  {
15165    as_val=`expr "$@" || test $? -eq 1`
15166  }
15167fi # as_fn_arith
15168
15169
15170if expr a : '\(a\)' >/dev/null 2>&1 &&
15171   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15172  as_expr=expr
15173else
15174  as_expr=false
15175fi
15176
15177if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15178  as_basename=basename
15179else
15180  as_basename=false
15181fi
15182
15183if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15184  as_dirname=dirname
15185else
15186  as_dirname=false
15187fi
15188
15189as_me=`$as_basename -- "$0" ||
15190$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15191	 X"$0" : 'X\(//\)$' \| \
15192	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15193$as_echo X/"$0" |
15194    sed '/^.*\/\([^/][^/]*\)\/*$/{
15195	    s//\1/
15196	    q
15197	  }
15198	  /^X\/\(\/\/\)$/{
15199	    s//\1/
15200	    q
15201	  }
15202	  /^X\/\(\/\).*/{
15203	    s//\1/
15204	    q
15205	  }
15206	  s/.*/./; q'`
15207
15208# Avoid depending upon Character Ranges.
15209as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15210as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15211as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15212as_cr_digits='0123456789'
15213as_cr_alnum=$as_cr_Letters$as_cr_digits
15214
15215ECHO_C= ECHO_N= ECHO_T=
15216case `echo -n x` in #(((((
15217-n*)
15218  case `echo 'xy\c'` in
15219  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15220  xy)  ECHO_C='\c';;
15221  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15222       ECHO_T='	';;
15223  esac;;
15224*)
15225  ECHO_N='-n';;
15226esac
15227
15228rm -f conf$$ conf$$.exe conf$$.file
15229if test -d conf$$.dir; then
15230  rm -f conf$$.dir/conf$$.file
15231else
15232  rm -f conf$$.dir
15233  mkdir conf$$.dir 2>/dev/null
15234fi
15235if (echo >conf$$.file) 2>/dev/null; then
15236  if ln -s conf$$.file conf$$ 2>/dev/null; then
15237    as_ln_s='ln -s'
15238    # ... but there are two gotchas:
15239    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15240    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15241    # In both cases, we have to default to `cp -pR'.
15242    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15243      as_ln_s='cp -pR'
15244  elif ln conf$$.file conf$$ 2>/dev/null; then
15245    as_ln_s=ln
15246  else
15247    as_ln_s='cp -pR'
15248  fi
15249else
15250  as_ln_s='cp -pR'
15251fi
15252rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15253rmdir conf$$.dir 2>/dev/null
15254
15255
15256# as_fn_mkdir_p
15257# -------------
15258# Create "$as_dir" as a directory, including parents if necessary.
15259as_fn_mkdir_p ()
15260{
15261
15262  case $as_dir in #(
15263  -*) as_dir=./$as_dir;;
15264  esac
15265  test -d "$as_dir" || eval $as_mkdir_p || {
15266    as_dirs=
15267    while :; do
15268      case $as_dir in #(
15269      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15270      *) as_qdir=$as_dir;;
15271      esac
15272      as_dirs="'$as_qdir' $as_dirs"
15273      as_dir=`$as_dirname -- "$as_dir" ||
15274$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15275	 X"$as_dir" : 'X\(//\)[^/]' \| \
15276	 X"$as_dir" : 'X\(//\)$' \| \
15277	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15278$as_echo X"$as_dir" |
15279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15280	    s//\1/
15281	    q
15282	  }
15283	  /^X\(\/\/\)[^/].*/{
15284	    s//\1/
15285	    q
15286	  }
15287	  /^X\(\/\/\)$/{
15288	    s//\1/
15289	    q
15290	  }
15291	  /^X\(\/\).*/{
15292	    s//\1/
15293	    q
15294	  }
15295	  s/.*/./; q'`
15296      test -d "$as_dir" && break
15297    done
15298    test -z "$as_dirs" || eval "mkdir $as_dirs"
15299  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15300
15301
15302} # as_fn_mkdir_p
15303if mkdir -p . 2>/dev/null; then
15304  as_mkdir_p='mkdir -p "$as_dir"'
15305else
15306  test -d ./-p && rmdir ./-p
15307  as_mkdir_p=false
15308fi
15309
15310
15311# as_fn_executable_p FILE
15312# -----------------------
15313# Test if FILE is an executable regular file.
15314as_fn_executable_p ()
15315{
15316  test -f "$1" && test -x "$1"
15317} # as_fn_executable_p
15318as_test_x='test -x'
15319as_executable_p=as_fn_executable_p
15320
15321# Sed expression to map a string onto a valid CPP name.
15322as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15323
15324# Sed expression to map a string onto a valid variable name.
15325as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15326
15327
15328exec 6>&1
15329## ----------------------------------- ##
15330## Main body of $CONFIG_STATUS script. ##
15331## ----------------------------------- ##
15332_ASEOF
15333test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15334
15335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15336# Save the log message, to keep $0 and so on meaningful, and to
15337# report actual input values of CONFIG_FILES etc. instead of their
15338# values after options handling.
15339ac_log="
15340This file was extended by $as_me, which was
15341generated by GNU Autoconf 2.69.  Invocation command line was
15342
15343  CONFIG_FILES    = $CONFIG_FILES
15344  CONFIG_HEADERS  = $CONFIG_HEADERS
15345  CONFIG_LINKS    = $CONFIG_LINKS
15346  CONFIG_COMMANDS = $CONFIG_COMMANDS
15347  $ $0 $@
15348
15349on `(hostname || uname -n) 2>/dev/null | sed 1q`
15350"
15351
15352_ACEOF
15353
15354case $ac_config_files in *"
15355"*) set x $ac_config_files; shift; ac_config_files=$*;;
15356esac
15357
15358case $ac_config_headers in *"
15359"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15360esac
15361
15362
15363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15364# Files that config.status was made for.
15365config_files="$ac_config_files"
15366config_headers="$ac_config_headers"
15367
15368_ACEOF
15369
15370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15371ac_cs_usage="\
15372\`$as_me' instantiates files and other configuration actions
15373from templates according to the current configuration.  Unless the files
15374and actions are specified as TAGs, all are instantiated by default.
15375
15376Usage: $0 [OPTION]... [TAG]...
15377
15378  -h, --help       print this help, then exit
15379  -V, --version    print version number and configuration settings, then exit
15380      --config     print configuration, then exit
15381  -q, --quiet, --silent
15382                   do not print progress messages
15383  -d, --debug      don't remove temporary files
15384      --recheck    update $as_me by reconfiguring in the same conditions
15385      --file=FILE[:TEMPLATE]
15386                   instantiate the configuration file FILE
15387      --header=FILE[:TEMPLATE]
15388                   instantiate the configuration header FILE
15389
15390Configuration files:
15391$config_files
15392
15393Configuration headers:
15394$config_headers
15395
15396Report bugs to the package provider."
15397
15398_ACEOF
15399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15400ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15401ac_cs_version="\\
15402config.status
15403configured by $0, generated by GNU Autoconf 2.69,
15404  with options \\"\$ac_cs_config\\"
15405
15406Copyright (C) 2012 Free Software Foundation, Inc.
15407This config.status script is free software; the Free Software Foundation
15408gives unlimited permission to copy, distribute and modify it."
15409
15410ac_pwd='$ac_pwd'
15411srcdir='$srcdir'
15412AWK='$AWK'
15413test -n "\$AWK" || AWK=awk
15414_ACEOF
15415
15416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15417# The default lists apply if the user does not specify any file.
15418ac_need_defaults=:
15419while test $# != 0
15420do
15421  case $1 in
15422  --*=?*)
15423    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15424    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15425    ac_shift=:
15426    ;;
15427  --*=)
15428    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15429    ac_optarg=
15430    ac_shift=:
15431    ;;
15432  *)
15433    ac_option=$1
15434    ac_optarg=$2
15435    ac_shift=shift
15436    ;;
15437  esac
15438
15439  case $ac_option in
15440  # Handling of the options.
15441  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15442    ac_cs_recheck=: ;;
15443  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15444    $as_echo "$ac_cs_version"; exit ;;
15445  --config | --confi | --conf | --con | --co | --c )
15446    $as_echo "$ac_cs_config"; exit ;;
15447  --debug | --debu | --deb | --de | --d | -d )
15448    debug=: ;;
15449  --file | --fil | --fi | --f )
15450    $ac_shift
15451    case $ac_optarg in
15452    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15453    '') as_fn_error $? "missing file argument" ;;
15454    esac
15455    as_fn_append CONFIG_FILES " '$ac_optarg'"
15456    ac_need_defaults=false;;
15457  --header | --heade | --head | --hea )
15458    $ac_shift
15459    case $ac_optarg in
15460    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15461    esac
15462    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15463    ac_need_defaults=false;;
15464  --he | --h)
15465    # Conflict between --help and --header
15466    as_fn_error $? "ambiguous option: \`$1'
15467Try \`$0 --help' for more information.";;
15468  --help | --hel | -h )
15469    $as_echo "$ac_cs_usage"; exit ;;
15470  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15471  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15472    ac_cs_silent=: ;;
15473
15474  # This is an error.
15475  -*) as_fn_error $? "unrecognized option: \`$1'
15476Try \`$0 --help' for more information." ;;
15477
15478  *) as_fn_append ac_config_targets " $1"
15479     ac_need_defaults=false ;;
15480
15481  esac
15482  shift
15483done
15484
15485ac_configure_extra_args=
15486
15487if $ac_cs_silent; then
15488  exec 6>/dev/null
15489  ac_configure_extra_args="$ac_configure_extra_args --silent"
15490fi
15491
15492_ACEOF
15493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15494if \$ac_cs_recheck; then
15495  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15496  shift
15497  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15498  CONFIG_SHELL='$SHELL'
15499  export CONFIG_SHELL
15500  exec "\$@"
15501fi
15502
15503_ACEOF
15504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15505exec 5>>auto/config.log
15506{
15507  echo
15508  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15509## Running $as_me. ##
15510_ASBOX
15511  $as_echo "$ac_log"
15512} >&5
15513
15514_ACEOF
15515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15516_ACEOF
15517
15518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15519
15520# Handling of arguments.
15521for ac_config_target in $ac_config_targets
15522do
15523  case $ac_config_target in
15524    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15525    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15526
15527  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15528  esac
15529done
15530
15531
15532# If the user did not use the arguments to specify the items to instantiate,
15533# then the envvar interface is used.  Set only those that are not.
15534# We use the long form for the default assignment because of an extremely
15535# bizarre bug on SunOS 4.1.3.
15536if $ac_need_defaults; then
15537  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15538  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15539fi
15540
15541# Have a temporary directory for convenience.  Make it in the build tree
15542# simply because there is no reason against having it here, and in addition,
15543# creating and moving files from /tmp can sometimes cause problems.
15544# Hook for its removal unless debugging.
15545# Note that there is a small window in which the directory will not be cleaned:
15546# after its creation but before its name has been assigned to `$tmp'.
15547$debug ||
15548{
15549  tmp= ac_tmp=
15550  trap 'exit_status=$?
15551  : "${ac_tmp:=$tmp}"
15552  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15553' 0
15554  trap 'as_fn_exit 1' 1 2 13 15
15555}
15556# Create a (secure) tmp directory for tmp files.
15557
15558{
15559  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15560  test -d "$tmp"
15561}  ||
15562{
15563  tmp=./conf$$-$RANDOM
15564  (umask 077 && mkdir "$tmp")
15565} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15566ac_tmp=$tmp
15567
15568# Set up the scripts for CONFIG_FILES section.
15569# No need to generate them if there are no CONFIG_FILES.
15570# This happens for instance with `./config.status config.h'.
15571if test -n "$CONFIG_FILES"; then
15572
15573
15574ac_cr=`echo X | tr X '\015'`
15575# On cygwin, bash can eat \r inside `` if the user requested igncr.
15576# But we know of no other shell where ac_cr would be empty at this
15577# point, so we can use a bashism as a fallback.
15578if test "x$ac_cr" = x; then
15579  eval ac_cr=\$\'\\r\'
15580fi
15581ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15582if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15583  ac_cs_awk_cr='\\r'
15584else
15585  ac_cs_awk_cr=$ac_cr
15586fi
15587
15588echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15589_ACEOF
15590
15591
15592{
15593  echo "cat >conf$$subs.awk <<_ACEOF" &&
15594  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15595  echo "_ACEOF"
15596} >conf$$subs.sh ||
15597  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15598ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15599ac_delim='%!_!# '
15600for ac_last_try in false false false false false :; do
15601  . ./conf$$subs.sh ||
15602    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15603
15604  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15605  if test $ac_delim_n = $ac_delim_num; then
15606    break
15607  elif $ac_last_try; then
15608    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15609  else
15610    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15611  fi
15612done
15613rm -f conf$$subs.sh
15614
15615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15616cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15617_ACEOF
15618sed -n '
15619h
15620s/^/S["/; s/!.*/"]=/
15621p
15622g
15623s/^[^!]*!//
15624:repl
15625t repl
15626s/'"$ac_delim"'$//
15627t delim
15628:nl
15629h
15630s/\(.\{148\}\)..*/\1/
15631t more1
15632s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15633p
15634n
15635b repl
15636:more1
15637s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15638p
15639g
15640s/.\{148\}//
15641t nl
15642:delim
15643h
15644s/\(.\{148\}\)..*/\1/
15645t more2
15646s/["\\]/\\&/g; s/^/"/; s/$/"/
15647p
15648b
15649:more2
15650s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15651p
15652g
15653s/.\{148\}//
15654t delim
15655' <conf$$subs.awk | sed '
15656/^[^""]/{
15657  N
15658  s/\n//
15659}
15660' >>$CONFIG_STATUS || ac_write_fail=1
15661rm -f conf$$subs.awk
15662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15663_ACAWK
15664cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15665  for (key in S) S_is_set[key] = 1
15666  FS = ""
15667
15668}
15669{
15670  line = $ 0
15671  nfields = split(line, field, "@")
15672  substed = 0
15673  len = length(field[1])
15674  for (i = 2; i < nfields; i++) {
15675    key = field[i]
15676    keylen = length(key)
15677    if (S_is_set[key]) {
15678      value = S[key]
15679      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15680      len += length(value) + length(field[++i])
15681      substed = 1
15682    } else
15683      len += 1 + keylen
15684  }
15685
15686  print line
15687}
15688
15689_ACAWK
15690_ACEOF
15691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15692if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15693  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15694else
15695  cat
15696fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15697  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15698_ACEOF
15699
15700# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15701# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15702# trailing colons and then remove the whole line if VPATH becomes empty
15703# (actually we leave an empty line to preserve line numbers).
15704if test "x$srcdir" = x.; then
15705  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15706h
15707s///
15708s/^/:/
15709s/[	 ]*$/:/
15710s/:\$(srcdir):/:/g
15711s/:\${srcdir}:/:/g
15712s/:@srcdir@:/:/g
15713s/^:*//
15714s/:*$//
15715x
15716s/\(=[	 ]*\).*/\1/
15717G
15718s/\n//
15719s/^[^=]*=[	 ]*$//
15720}'
15721fi
15722
15723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15724fi # test -n "$CONFIG_FILES"
15725
15726# Set up the scripts for CONFIG_HEADERS section.
15727# No need to generate them if there are no CONFIG_HEADERS.
15728# This happens for instance with `./config.status Makefile'.
15729if test -n "$CONFIG_HEADERS"; then
15730cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15731BEGIN {
15732_ACEOF
15733
15734# Transform confdefs.h into an awk script `defines.awk', embedded as
15735# here-document in config.status, that substitutes the proper values into
15736# config.h.in to produce config.h.
15737
15738# Create a delimiter string that does not exist in confdefs.h, to ease
15739# handling of long lines.
15740ac_delim='%!_!# '
15741for ac_last_try in false false :; do
15742  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15743  if test -z "$ac_tt"; then
15744    break
15745  elif $ac_last_try; then
15746    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15747  else
15748    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15749  fi
15750done
15751
15752# For the awk script, D is an array of macro values keyed by name,
15753# likewise P contains macro parameters if any.  Preserve backslash
15754# newline sequences.
15755
15756ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15757sed -n '
15758s/.\{148\}/&'"$ac_delim"'/g
15759t rset
15760:rset
15761s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15762t def
15763d
15764:def
15765s/\\$//
15766t bsnl
15767s/["\\]/\\&/g
15768s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15769D["\1"]=" \3"/p
15770s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15771d
15772:bsnl
15773s/["\\]/\\&/g
15774s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15775D["\1"]=" \3\\\\\\n"\\/p
15776t cont
15777s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15778t cont
15779d
15780:cont
15781n
15782s/.\{148\}/&'"$ac_delim"'/g
15783t clear
15784:clear
15785s/\\$//
15786t bsnlc
15787s/["\\]/\\&/g; s/^/"/; s/$/"/p
15788d
15789:bsnlc
15790s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15791b cont
15792' <confdefs.h | sed '
15793s/'"$ac_delim"'/"\\\
15794"/g' >>$CONFIG_STATUS || ac_write_fail=1
15795
15796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15797  for (key in D) D_is_set[key] = 1
15798  FS = ""
15799}
15800/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15801  line = \$ 0
15802  split(line, arg, " ")
15803  if (arg[1] == "#") {
15804    defundef = arg[2]
15805    mac1 = arg[3]
15806  } else {
15807    defundef = substr(arg[1], 2)
15808    mac1 = arg[2]
15809  }
15810  split(mac1, mac2, "(") #)
15811  macro = mac2[1]
15812  prefix = substr(line, 1, index(line, defundef) - 1)
15813  if (D_is_set[macro]) {
15814    # Preserve the white space surrounding the "#".
15815    print prefix "define", macro P[macro] D[macro]
15816    next
15817  } else {
15818    # Replace #undef with comments.  This is necessary, for example,
15819    # in the case of _POSIX_SOURCE, which is predefined and required
15820    # on some systems where configure will not decide to define it.
15821    if (defundef == "undef") {
15822      print "/*", prefix defundef, macro, "*/"
15823      next
15824    }
15825  }
15826}
15827{ print }
15828_ACAWK
15829_ACEOF
15830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15831  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15832fi # test -n "$CONFIG_HEADERS"
15833
15834
15835eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15836shift
15837for ac_tag
15838do
15839  case $ac_tag in
15840  :[FHLC]) ac_mode=$ac_tag; continue;;
15841  esac
15842  case $ac_mode$ac_tag in
15843  :[FHL]*:*);;
15844  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15845  :[FH]-) ac_tag=-:-;;
15846  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15847  esac
15848  ac_save_IFS=$IFS
15849  IFS=:
15850  set x $ac_tag
15851  IFS=$ac_save_IFS
15852  shift
15853  ac_file=$1
15854  shift
15855
15856  case $ac_mode in
15857  :L) ac_source=$1;;
15858  :[FH])
15859    ac_file_inputs=
15860    for ac_f
15861    do
15862      case $ac_f in
15863      -) ac_f="$ac_tmp/stdin";;
15864      *) # Look for the file first in the build tree, then in the source tree
15865	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15866	 # because $ac_f cannot contain `:'.
15867	 test -f "$ac_f" ||
15868	   case $ac_f in
15869	   [\\/$]*) false;;
15870	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15871	   esac ||
15872	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15873      esac
15874      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15875      as_fn_append ac_file_inputs " '$ac_f'"
15876    done
15877
15878    # Let's still pretend it is `configure' which instantiates (i.e., don't
15879    # use $as_me), people would be surprised to read:
15880    #    /* config.h.  Generated by config.status.  */
15881    configure_input='Generated from '`
15882	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15883	`' by configure.'
15884    if test x"$ac_file" != x-; then
15885      configure_input="$ac_file.  $configure_input"
15886      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15887$as_echo "$as_me: creating $ac_file" >&6;}
15888    fi
15889    # Neutralize special characters interpreted by sed in replacement strings.
15890    case $configure_input in #(
15891    *\&* | *\|* | *\\* )
15892       ac_sed_conf_input=`$as_echo "$configure_input" |
15893       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15894    *) ac_sed_conf_input=$configure_input;;
15895    esac
15896
15897    case $ac_tag in
15898    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15899      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15900    esac
15901    ;;
15902  esac
15903
15904  ac_dir=`$as_dirname -- "$ac_file" ||
15905$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15906	 X"$ac_file" : 'X\(//\)[^/]' \| \
15907	 X"$ac_file" : 'X\(//\)$' \| \
15908	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15909$as_echo X"$ac_file" |
15910    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15911	    s//\1/
15912	    q
15913	  }
15914	  /^X\(\/\/\)[^/].*/{
15915	    s//\1/
15916	    q
15917	  }
15918	  /^X\(\/\/\)$/{
15919	    s//\1/
15920	    q
15921	  }
15922	  /^X\(\/\).*/{
15923	    s//\1/
15924	    q
15925	  }
15926	  s/.*/./; q'`
15927  as_dir="$ac_dir"; as_fn_mkdir_p
15928  ac_builddir=.
15929
15930case "$ac_dir" in
15931.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15932*)
15933  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15934  # A ".." for each directory in $ac_dir_suffix.
15935  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15936  case $ac_top_builddir_sub in
15937  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15938  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15939  esac ;;
15940esac
15941ac_abs_top_builddir=$ac_pwd
15942ac_abs_builddir=$ac_pwd$ac_dir_suffix
15943# for backward compatibility:
15944ac_top_builddir=$ac_top_build_prefix
15945
15946case $srcdir in
15947  .)  # We are building in place.
15948    ac_srcdir=.
15949    ac_top_srcdir=$ac_top_builddir_sub
15950    ac_abs_top_srcdir=$ac_pwd ;;
15951  [\\/]* | ?:[\\/]* )  # Absolute name.
15952    ac_srcdir=$srcdir$ac_dir_suffix;
15953    ac_top_srcdir=$srcdir
15954    ac_abs_top_srcdir=$srcdir ;;
15955  *) # Relative name.
15956    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15957    ac_top_srcdir=$ac_top_build_prefix$srcdir
15958    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15959esac
15960ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15961
15962
15963  case $ac_mode in
15964  :F)
15965  #
15966  # CONFIG_FILE
15967  #
15968
15969_ACEOF
15970
15971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15972# If the template does not know about datarootdir, expand it.
15973# FIXME: This hack should be removed a few years after 2.60.
15974ac_datarootdir_hack=; ac_datarootdir_seen=
15975ac_sed_dataroot='
15976/datarootdir/ {
15977  p
15978  q
15979}
15980/@datadir@/p
15981/@docdir@/p
15982/@infodir@/p
15983/@localedir@/p
15984/@mandir@/p'
15985case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15986*datarootdir*) ac_datarootdir_seen=yes;;
15987*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15988  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15989$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15990_ACEOF
15991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15992  ac_datarootdir_hack='
15993  s&@datadir@&$datadir&g
15994  s&@docdir@&$docdir&g
15995  s&@infodir@&$infodir&g
15996  s&@localedir@&$localedir&g
15997  s&@mandir@&$mandir&g
15998  s&\\\${datarootdir}&$datarootdir&g' ;;
15999esac
16000_ACEOF
16001
16002# Neutralize VPATH when `$srcdir' = `.'.
16003# Shell code in configure.ac might set extrasub.
16004# FIXME: do we really want to maintain this feature?
16005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16006ac_sed_extra="$ac_vpsub
16007$extrasub
16008_ACEOF
16009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16010:t
16011/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16012s|@configure_input@|$ac_sed_conf_input|;t t
16013s&@top_builddir@&$ac_top_builddir_sub&;t t
16014s&@top_build_prefix@&$ac_top_build_prefix&;t t
16015s&@srcdir@&$ac_srcdir&;t t
16016s&@abs_srcdir@&$ac_abs_srcdir&;t t
16017s&@top_srcdir@&$ac_top_srcdir&;t t
16018s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16019s&@builddir@&$ac_builddir&;t t
16020s&@abs_builddir@&$ac_abs_builddir&;t t
16021s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16022$ac_datarootdir_hack
16023"
16024eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16025  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16026
16027test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16028  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16029  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16030      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16031  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16032which seems to be undefined.  Please make sure it is defined" >&5
16033$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16034which seems to be undefined.  Please make sure it is defined" >&2;}
16035
16036  rm -f "$ac_tmp/stdin"
16037  case $ac_file in
16038  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16039  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16040  esac \
16041  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16042 ;;
16043  :H)
16044  #
16045  # CONFIG_HEADER
16046  #
16047  if test x"$ac_file" != x-; then
16048    {
16049      $as_echo "/* $configure_input  */" \
16050      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16051    } >"$ac_tmp/config.h" \
16052      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16053    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16054      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16055$as_echo "$as_me: $ac_file is unchanged" >&6;}
16056    else
16057      rm -f "$ac_file"
16058      mv "$ac_tmp/config.h" "$ac_file" \
16059	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16060    fi
16061  else
16062    $as_echo "/* $configure_input  */" \
16063      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16064      || as_fn_error $? "could not create -" "$LINENO" 5
16065  fi
16066 ;;
16067
16068
16069  esac
16070
16071done # for ac_tag
16072
16073
16074as_fn_exit 0
16075_ACEOF
16076ac_clean_files=$ac_clean_files_save
16077
16078test $ac_write_fail = 0 ||
16079  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16080
16081
16082# configure is writing to config.log, and then calls config.status.
16083# config.status does its own redirection, appending to config.log.
16084# Unfortunately, on DOS this fails, as config.log is still kept open
16085# by configure, so config.status won't be able to write to it; its
16086# output is simply discarded.  So we exec the FD to /dev/null,
16087# effectively closing config.log, so it can be properly (re)opened and
16088# appended to by config.status.  When coming back to configure, we
16089# need to make the FD available again.
16090if test "$no_create" != yes; then
16091  ac_cs_success=:
16092  ac_config_status_args=
16093  test "$silent" = yes &&
16094    ac_config_status_args="$ac_config_status_args --quiet"
16095  exec 5>/dev/null
16096  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16097  exec 5>>auto/config.log
16098  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16099  # would make configure fail if this is the last instruction.
16100  $ac_cs_success || as_fn_exit 1
16101fi
16102if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16103  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16104$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16105fi
16106
16107
16108