xref: /vim-8.2.3635/src/auto/configure (revision 81ea1dfb)
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
632GUI_X_LIBS
633GUITYPE
634GUI_LIB_LOC
635GUI_INC_LOC
636NARROW_PROTO
637MOTIF_LIBNAME
638GRESOURCE_OBJ
639GRESOURCE_SRC
640UPDATE_DESKTOP_DATABASE
641GTK_UPDATE_ICON_CACHE
642GLIB_COMPILE_RESOURCES
643GNOME_INCLUDEDIR
644GNOME_LIBDIR
645GNOME_LIBS
646GTK_LIBNAME
647GTK_LIBS
648GTK_CFLAGS
649PKG_CONFIG
650X_LIB
651X_EXTRA_LIBS
652X_LIBS
653X_PRE_LIBS
654X_CFLAGS
655XMKMF
656xmkmfpath
657TERM_TEST
658TERM_OBJ
659TERM_SRC
660CHANNEL_OBJ
661CHANNEL_SRC
662NETBEANS_OBJ
663NETBEANS_SRC
664RUBY_LIBS
665RUBY_CFLAGS
666RUBY_PRO
667RUBY_OBJ
668RUBY_SRC
669vi_cv_path_ruby
670TCL_LIBS
671TCL_CFLAGS
672TCL_PRO
673TCL_OBJ
674TCL_SRC
675vi_cv_path_tcl
676PYTHON3_OBJ
677PYTHON3_SRC
678PYTHON3_CFLAGS
679PYTHON3_LIBS
680vi_cv_path_python3
681PYTHON_OBJ
682PYTHON_SRC
683PYTHON_CFLAGS
684PYTHON_LIBS
685vi_cv_path_python
686PERL_LIBS
687PERL_CFLAGS
688PERL_PRO
689PERL_OBJ
690PERL_SRC
691shrpenv
692vi_cv_perl_xsubpp
693vi_cv_perllib
694vi_cv_path_perl
695MZSCHEME_MZC
696MZSCHEME_EXTRA
697MZSCHEME_CFLAGS
698MZSCHEME_LIBS
699MZSCHEME_PRO
700MZSCHEME_OBJ
701MZSCHEME_SRC
702vi_cv_path_mzscheme
703LUA_CFLAGS
704LUA_LIBS
705LUA_PRO
706LUA_OBJ
707LUA_SRC
708vi_cv_path_plain_lua
709vi_cv_path_luajit
710vi_cv_path_lua
711compiledby
712dogvimdiff
713dovimdiff
714QUOTESED
715line_break
716VIEWNAME
717EXNAME
718VIMNAME
719OS_EXTRA_OBJ
720OS_EXTRA_SRC
721XCODE_SELECT
722CPP_MM
723CROSS_COMPILING
724STRIP
725AWK
726FGREP
727EGREP
728GREP
729CPP
730OBJEXT
731EXEEXT
732ac_ct_CC
733CPPFLAGS
734LDFLAGS
735CFLAGS
736CC
737SET_MAKE
738target_alias
739host_alias
740build_alias
741LIBS
742ECHO_T
743ECHO_N
744ECHO_C
745DEFS
746mandir
747localedir
748libdir
749psdir
750pdfdir
751dvidir
752htmldir
753infodir
754docdir
755oldincludedir
756includedir
757runstatedir
758localstatedir
759sharedstatedir
760sysconfdir
761datadir
762datarootdir
763libexecdir
764sbindir
765bindir
766program_transform_name
767prefix
768exec_prefix
769PACKAGE_URL
770PACKAGE_BUGREPORT
771PACKAGE_STRING
772PACKAGE_VERSION
773PACKAGE_TARNAME
774PACKAGE_NAME
775PATH_SEPARATOR
776SHELL'
777ac_subst_files=''
778ac_user_opts='
779enable_option_checking
780enable_fail_if_missing
781enable_darwin
782with_mac_arch
783with_developer_dir
784with_local_dir
785with_vim_name
786with_ex_name
787with_view_name
788with_global_runtime
789with_modified_by
790enable_smack
791enable_selinux
792with_features
793with_compiledby
794enable_xsmp
795enable_xsmp_interact
796enable_luainterp
797with_lua_prefix
798with_luajit
799enable_mzschemeinterp
800with_plthome
801enable_perlinterp
802enable_pythoninterp
803with_python_command
804with_python_config_dir
805enable_python3interp
806with_python3_command
807with_python3_config_dir
808enable_tclinterp
809with_tclsh
810enable_rubyinterp
811with_ruby_command
812enable_cscope
813enable_netbeans
814enable_channel
815enable_terminal
816enable_autoservername
817enable_multibyte
818enable_rightleft
819enable_arabic
820enable_farsi
821enable_xim
822enable_fontset
823with_x
824enable_gui
825enable_gtk2_check
826enable_gnome_check
827enable_gtk3_check
828enable_motif_check
829enable_athena_check
830enable_nextaw_check
831enable_carbon_check
832enable_gtktest
833with_gnome_includes
834with_gnome_libs
835with_gnome
836enable_icon_cache_update
837enable_desktop_database_update
838with_motif_lib
839with_tlib
840enable_largefile
841enable_canberra
842enable_acl
843enable_gpm
844enable_sysmouse
845enable_nls
846'
847      ac_precious_vars='build_alias
848host_alias
849target_alias
850CC
851CFLAGS
852LDFLAGS
853LIBS
854CPPFLAGS
855CPP
856XMKMF'
857
858
859# Initialize some variables set by options.
860ac_init_help=
861ac_init_version=false
862ac_unrecognized_opts=
863ac_unrecognized_sep=
864# The variables have the same names as the options, with
865# dashes changed to underlines.
866cache_file=/dev/null
867exec_prefix=NONE
868no_create=
869no_recursion=
870prefix=NONE
871program_prefix=NONE
872program_suffix=NONE
873program_transform_name=s,x,x,
874silent=
875site=
876srcdir=
877verbose=
878x_includes=NONE
879x_libraries=NONE
880
881# Installation directory options.
882# These are left unexpanded so users can "make install exec_prefix=/foo"
883# and all the variables that are supposed to be based on exec_prefix
884# by default will actually change.
885# Use braces instead of parens because sh, perl, etc. also accept them.
886# (The list follows the same order as the GNU Coding Standards.)
887bindir='${exec_prefix}/bin'
888sbindir='${exec_prefix}/sbin'
889libexecdir='${exec_prefix}/libexec'
890datarootdir='${prefix}/share'
891datadir='${datarootdir}'
892sysconfdir='${prefix}/etc'
893sharedstatedir='${prefix}/com'
894localstatedir='${prefix}/var'
895runstatedir='${localstatedir}/run'
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
898docdir='${datarootdir}/doc/${PACKAGE}'
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
907
908ac_prev=
909ac_dashdash=
910for ac_option
911do
912  # If the previous option needs an argument, assign it.
913  if test -n "$ac_prev"; then
914    eval $ac_prev=\$ac_option
915    ac_prev=
916    continue
917  fi
918
919  case $ac_option in
920  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921  *=)   ac_optarg= ;;
922  *)    ac_optarg=yes ;;
923  esac
924
925  # Accept the important Cygnus configure options, so we can diagnose typos.
926
927  case $ac_dashdash$ac_option in
928  --)
929    ac_dashdash=yes ;;
930
931  -bindir | --bindir | --bindi | --bind | --bin | --bi)
932    ac_prev=bindir ;;
933  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934    bindir=$ac_optarg ;;
935
936  -build | --build | --buil | --bui | --bu)
937    ac_prev=build_alias ;;
938  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939    build_alias=$ac_optarg ;;
940
941  -cache-file | --cache-file | --cache-fil | --cache-fi \
942  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943    ac_prev=cache_file ;;
944  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946    cache_file=$ac_optarg ;;
947
948  --config-cache | -C)
949    cache_file=config.cache ;;
950
951  -datadir | --datadir | --datadi | --datad)
952    ac_prev=datadir ;;
953  -datadir=* | --datadir=* | --datadi=* | --datad=*)
954    datadir=$ac_optarg ;;
955
956  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957  | --dataroo | --dataro | --datar)
958    ac_prev=datarootdir ;;
959  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961    datarootdir=$ac_optarg ;;
962
963  -disable-* | --disable-*)
964    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965    # Reject names that are not valid shell variable names.
966    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967      as_fn_error $? "invalid feature name: $ac_useropt"
968    ac_useropt_orig=$ac_useropt
969    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970    case $ac_user_opts in
971      *"
972"enable_$ac_useropt"
973"*) ;;
974      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975	 ac_unrecognized_sep=', ';;
976    esac
977    eval enable_$ac_useropt=no ;;
978
979  -docdir | --docdir | --docdi | --doc | --do)
980    ac_prev=docdir ;;
981  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982    docdir=$ac_optarg ;;
983
984  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985    ac_prev=dvidir ;;
986  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987    dvidir=$ac_optarg ;;
988
989  -enable-* | --enable-*)
990    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991    # Reject names that are not valid shell variable names.
992    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993      as_fn_error $? "invalid feature name: $ac_useropt"
994    ac_useropt_orig=$ac_useropt
995    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996    case $ac_user_opts in
997      *"
998"enable_$ac_useropt"
999"*) ;;
1000      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001	 ac_unrecognized_sep=', ';;
1002    esac
1003    eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007  | --exec | --exe | --ex)
1008    ac_prev=exec_prefix ;;
1009  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011  | --exec=* | --exe=* | --ex=*)
1012    exec_prefix=$ac_optarg ;;
1013
1014  -gas | --gas | --ga | --g)
1015    # Obsolete; use --with-gas.
1016    with_gas=yes ;;
1017
1018  -help | --help | --hel | --he | -h)
1019    ac_init_help=long ;;
1020  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021    ac_init_help=recursive ;;
1022  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023    ac_init_help=short ;;
1024
1025  -host | --host | --hos | --ho)
1026    ac_prev=host_alias ;;
1027  -host=* | --host=* | --hos=* | --ho=*)
1028    host_alias=$ac_optarg ;;
1029
1030  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031    ac_prev=htmldir ;;
1032  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033  | --ht=*)
1034    htmldir=$ac_optarg ;;
1035
1036  -includedir | --includedir | --includedi | --included | --include \
1037  | --includ | --inclu | --incl | --inc)
1038    ac_prev=includedir ;;
1039  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040  | --includ=* | --inclu=* | --incl=* | --inc=*)
1041    includedir=$ac_optarg ;;
1042
1043  -infodir | --infodir | --infodi | --infod | --info | --inf)
1044    ac_prev=infodir ;;
1045  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046    infodir=$ac_optarg ;;
1047
1048  -libdir | --libdir | --libdi | --libd)
1049    ac_prev=libdir ;;
1050  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051    libdir=$ac_optarg ;;
1052
1053  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054  | --libexe | --libex | --libe)
1055    ac_prev=libexecdir ;;
1056  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057  | --libexe=* | --libex=* | --libe=*)
1058    libexecdir=$ac_optarg ;;
1059
1060  -localedir | --localedir | --localedi | --localed | --locale)
1061    ac_prev=localedir ;;
1062  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063    localedir=$ac_optarg ;;
1064
1065  -localstatedir | --localstatedir | --localstatedi | --localstated \
1066  | --localstate | --localstat | --localsta | --localst | --locals)
1067    ac_prev=localstatedir ;;
1068  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070    localstatedir=$ac_optarg ;;
1071
1072  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073    ac_prev=mandir ;;
1074  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075    mandir=$ac_optarg ;;
1076
1077  -nfp | --nfp | --nf)
1078    # Obsolete; use --without-fp.
1079    with_fp=no ;;
1080
1081  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082  | --no-cr | --no-c | -n)
1083    no_create=yes ;;
1084
1085  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087    no_recursion=yes ;;
1088
1089  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091  | --oldin | --oldi | --old | --ol | --o)
1092    ac_prev=oldincludedir ;;
1093  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096    oldincludedir=$ac_optarg ;;
1097
1098  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099    ac_prev=prefix ;;
1100  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101    prefix=$ac_optarg ;;
1102
1103  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104  | --program-pre | --program-pr | --program-p)
1105    ac_prev=program_prefix ;;
1106  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108    program_prefix=$ac_optarg ;;
1109
1110  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111  | --program-suf | --program-su | --program-s)
1112    ac_prev=program_suffix ;;
1113  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115    program_suffix=$ac_optarg ;;
1116
1117  -program-transform-name | --program-transform-name \
1118  | --program-transform-nam | --program-transform-na \
1119  | --program-transform-n | --program-transform- \
1120  | --program-transform | --program-transfor \
1121  | --program-transfo | --program-transf \
1122  | --program-trans | --program-tran \
1123  | --progr-tra | --program-tr | --program-t)
1124    ac_prev=program_transform_name ;;
1125  -program-transform-name=* | --program-transform-name=* \
1126  | --program-transform-nam=* | --program-transform-na=* \
1127  | --program-transform-n=* | --program-transform-=* \
1128  | --program-transform=* | --program-transfor=* \
1129  | --program-transfo=* | --program-transf=* \
1130  | --program-trans=* | --program-tran=* \
1131  | --progr-tra=* | --program-tr=* | --program-t=*)
1132    program_transform_name=$ac_optarg ;;
1133
1134  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135    ac_prev=pdfdir ;;
1136  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137    pdfdir=$ac_optarg ;;
1138
1139  -psdir | --psdir | --psdi | --psd | --ps)
1140    ac_prev=psdir ;;
1141  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142    psdir=$ac_optarg ;;
1143
1144  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145  | -silent | --silent | --silen | --sile | --sil)
1146    silent=yes ;;
1147
1148  -runstatedir | --runstatedir | --runstatedi | --runstated \
1149  | --runstate | --runstat | --runsta | --runst | --runs \
1150  | --run | --ru | --r)
1151    ac_prev=runstatedir ;;
1152  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1153  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1154  | --run=* | --ru=* | --r=*)
1155    runstatedir=$ac_optarg ;;
1156
1157  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158    ac_prev=sbindir ;;
1159  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160  | --sbi=* | --sb=*)
1161    sbindir=$ac_optarg ;;
1162
1163  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165  | --sharedst | --shareds | --shared | --share | --shar \
1166  | --sha | --sh)
1167    ac_prev=sharedstatedir ;;
1168  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171  | --sha=* | --sh=*)
1172    sharedstatedir=$ac_optarg ;;
1173
1174  -site | --site | --sit)
1175    ac_prev=site ;;
1176  -site=* | --site=* | --sit=*)
1177    site=$ac_optarg ;;
1178
1179  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180    ac_prev=srcdir ;;
1181  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182    srcdir=$ac_optarg ;;
1183
1184  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185  | --syscon | --sysco | --sysc | --sys | --sy)
1186    ac_prev=sysconfdir ;;
1187  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189    sysconfdir=$ac_optarg ;;
1190
1191  -target | --target | --targe | --targ | --tar | --ta | --t)
1192    ac_prev=target_alias ;;
1193  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194    target_alias=$ac_optarg ;;
1195
1196  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197    verbose=yes ;;
1198
1199  -version | --version | --versio | --versi | --vers | -V)
1200    ac_init_version=: ;;
1201
1202  -with-* | --with-*)
1203    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204    # Reject names that are not valid shell variable names.
1205    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206      as_fn_error $? "invalid package name: $ac_useropt"
1207    ac_useropt_orig=$ac_useropt
1208    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209    case $ac_user_opts in
1210      *"
1211"with_$ac_useropt"
1212"*) ;;
1213      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214	 ac_unrecognized_sep=', ';;
1215    esac
1216    eval with_$ac_useropt=\$ac_optarg ;;
1217
1218  -without-* | --without-*)
1219    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220    # Reject names that are not valid shell variable names.
1221    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222      as_fn_error $? "invalid package name: $ac_useropt"
1223    ac_useropt_orig=$ac_useropt
1224    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225    case $ac_user_opts in
1226      *"
1227"with_$ac_useropt"
1228"*) ;;
1229      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230	 ac_unrecognized_sep=', ';;
1231    esac
1232    eval with_$ac_useropt=no ;;
1233
1234  --x)
1235    # Obsolete; use --with-x.
1236    with_x=yes ;;
1237
1238  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239  | --x-incl | --x-inc | --x-in | --x-i)
1240    ac_prev=x_includes ;;
1241  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243    x_includes=$ac_optarg ;;
1244
1245  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247    ac_prev=x_libraries ;;
1248  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250    x_libraries=$ac_optarg ;;
1251
1252  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253Try \`$0 --help' for more information"
1254    ;;
1255
1256  *=*)
1257    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258    # Reject names that are not valid shell variable names.
1259    case $ac_envvar in #(
1260      '' | [0-9]* | *[!_$as_cr_alnum]* )
1261      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1262    esac
1263    eval $ac_envvar=\$ac_optarg
1264    export $ac_envvar ;;
1265
1266  *)
1267    # FIXME: should be removed in autoconf 3.0.
1268    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272    ;;
1273
1274  esac
1275done
1276
1277if test -n "$ac_prev"; then
1278  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279  as_fn_error $? "missing argument to $ac_option"
1280fi
1281
1282if test -n "$ac_unrecognized_opts"; then
1283  case $enable_option_checking in
1284    no) ;;
1285    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287  esac
1288fi
1289
1290# Check all directory arguments for consistency.
1291for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292		datadir sysconfdir sharedstatedir localstatedir includedir \
1293		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294		libdir localedir mandir runstatedir
1295do
1296  eval ac_val=\$$ac_var
1297  # Remove trailing slashes.
1298  case $ac_val in
1299    */ )
1300      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301      eval $ac_var=\$ac_val;;
1302  esac
1303  # Be sure to have absolute directory names.
1304  case $ac_val in
1305    [\\/$]* | ?:[\\/]* )  continue;;
1306    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307  esac
1308  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1309done
1310
1311# There might be people who depend on the old broken behavior: `$host'
1312# used to hold the argument of --host etc.
1313# FIXME: To remove some day.
1314build=$build_alias
1315host=$host_alias
1316target=$target_alias
1317
1318# FIXME: To remove some day.
1319if test "x$host_alias" != x; then
1320  if test "x$build_alias" = x; then
1321    cross_compiling=maybe
1322  elif test "x$build_alias" != "x$host_alias"; then
1323    cross_compiling=yes
1324  fi
1325fi
1326
1327ac_tool_prefix=
1328test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330test "$silent" = yes && exec 6>/dev/null
1331
1332
1333ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334ac_ls_di=`ls -di .` &&
1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336  as_fn_error $? "working directory cannot be determined"
1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338  as_fn_error $? "pwd does not report name of working directory"
1339
1340
1341# Find the source files, if location was not specified.
1342if test -z "$srcdir"; then
1343  ac_srcdir_defaulted=yes
1344  # Try the directory containing this script, then the parent directory.
1345  ac_confdir=`$as_dirname -- "$as_myself" ||
1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347	 X"$as_myself" : 'X\(//\)[^/]' \| \
1348	 X"$as_myself" : 'X\(//\)$' \| \
1349	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350$as_echo X"$as_myself" |
1351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352	    s//\1/
1353	    q
1354	  }
1355	  /^X\(\/\/\)[^/].*/{
1356	    s//\1/
1357	    q
1358	  }
1359	  /^X\(\/\/\)$/{
1360	    s//\1/
1361	    q
1362	  }
1363	  /^X\(\/\).*/{
1364	    s//\1/
1365	    q
1366	  }
1367	  s/.*/./; q'`
1368  srcdir=$ac_confdir
1369  if test ! -r "$srcdir/$ac_unique_file"; then
1370    srcdir=..
1371  fi
1372else
1373  ac_srcdir_defaulted=no
1374fi
1375if test ! -r "$srcdir/$ac_unique_file"; then
1376  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1378fi
1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380ac_abs_confdir=`(
1381	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382	pwd)`
1383# When building in place, set srcdir=.
1384if test "$ac_abs_confdir" = "$ac_pwd"; then
1385  srcdir=.
1386fi
1387# Remove unnecessary trailing slashes from srcdir.
1388# Double slashes in file names in object file debugging info
1389# mess up M-x gdb in Emacs.
1390case $srcdir in
1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392esac
1393for ac_var in $ac_precious_vars; do
1394  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395  eval ac_env_${ac_var}_value=\$${ac_var}
1396  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398done
1399
1400#
1401# Report the --help message.
1402#
1403if test "$ac_init_help" = "long"; then
1404  # Omit some internal or obsolete options to make the list less imposing.
1405  # This message is too long to be a string in the A/UX 3.1 sh.
1406  cat <<_ACEOF
1407\`configure' configures this package to adapt to many kinds of systems.
1408
1409Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412VAR=VALUE.  See below for descriptions of some of the useful variables.
1413
1414Defaults for the options are specified in brackets.
1415
1416Configuration:
1417  -h, --help              display this help and exit
1418      --help=short        display options specific to this package
1419      --help=recursive    display the short help of all the included packages
1420  -V, --version           display version information and exit
1421  -q, --quiet, --silent   do not print \`checking ...' messages
1422      --cache-file=FILE   cache test results in FILE [disabled]
1423  -C, --config-cache      alias for \`--cache-file=config.cache'
1424  -n, --no-create         do not create output files
1425      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1426
1427Installation directories:
1428  --prefix=PREFIX         install architecture-independent files in PREFIX
1429                          [$ac_default_prefix]
1430  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1431                          [PREFIX]
1432
1433By default, \`make install' will install all the files in
1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1435an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436for instance \`--prefix=\$HOME'.
1437
1438For better control, use the options below.
1439
1440Fine tuning of the installation directories:
1441  --bindir=DIR            user executables [EPREFIX/bin]
1442  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1443  --libexecdir=DIR        program executables [EPREFIX/libexec]
1444  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1445  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1446  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1447  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1448  --libdir=DIR            object code libraries [EPREFIX/lib]
1449  --includedir=DIR        C header files [PREFIX/include]
1450  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1451  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1452  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1453  --infodir=DIR           info documentation [DATAROOTDIR/info]
1454  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1455  --mandir=DIR            man documentation [DATAROOTDIR/man]
1456  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1457  --htmldir=DIR           html documentation [DOCDIR]
1458  --dvidir=DIR            dvi documentation [DOCDIR]
1459  --pdfdir=DIR            pdf documentation [DOCDIR]
1460  --psdir=DIR             ps documentation [DOCDIR]
1461_ACEOF
1462
1463  cat <<\_ACEOF
1464
1465X features:
1466  --x-includes=DIR    X include files are in DIR
1467  --x-libraries=DIR   X library files are in DIR
1468_ACEOF
1469fi
1470
1471if test -n "$ac_init_help"; then
1472
1473  cat <<\_ACEOF
1474
1475Optional Features:
1476  --disable-option-checking  ignore unrecognized --enable/--with options
1477  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479  --enable-fail-if-missing    Fail if dependencies on additional features
1480     specified on the command line are missing.
1481  --disable-darwin        Disable Darwin (Mac OS X) support.
1482  --disable-smack	  Do not check for Smack support.
1483  --disable-selinux	  Do not check for SELinux support.
1484  --disable-xsmp          Disable XSMP session management
1485  --disable-xsmp-interact Disable XSMP interaction
1486  --enable-luainterp=OPTS      Include Lua interpreter.  default=no OPTS=no/yes/dynamic
1487  --enable-mzschemeinterp      Include MzScheme interpreter.
1488  --enable-perlinterp=OPTS     Include Perl interpreter.  default=no OPTS=no/yes/dynamic
1489  --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
1490  --enable-python3interp=OPTS  Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1491  --enable-tclinterp=OPTS      Include Tcl interpreter. default=no OPTS=no/yes/dynamic
1492  --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
1493  --enable-cscope         Include cscope interface.
1494  --disable-netbeans      Disable NetBeans integration support.
1495  --disable-channel       Disable process communication support.
1496  --enable-terminal       Enable terminal emulation support.
1497  --enable-autoservername Automatically define servername at vim startup.
1498  --enable-multibyte      Include multibyte editing support.
1499  --disable-rightleft     Do not include Right-to-Left language support.
1500  --disable-arabic        Do not include Arabic language support.
1501  --disable-farsi         Deprecated.
1502  --enable-xim            Include XIM input support.
1503  --enable-fontset        Include X fontset output support.
1504  --enable-gui=OPTS       X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/haiku/photon/carbon
1505  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1506  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1507  --enable-gtk3-check     If auto-select GUI, check for GTK+ 3 default=yes
1508  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1509  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1510  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1511  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1512  --disable-gtktest       Do not try to compile and run a test GTK program
1513  --disable-icon-cache-update        update disabled
1514  --disable-desktop-database-update  update disabled
1515  --disable-largefile     omit support for large files
1516  --disable-canberra      Do not use libcanberra.
1517  --disable-acl           No check for ACL support.
1518  --disable-gpm           Don't use gpm (Linux mouse daemon).
1519  --disable-sysmouse      Don't use sysmouse (mouse in *BSD console).
1520  --disable-nls           Don't support NLS (gettext()).
1521
1522Optional Packages:
1523  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1524  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1525  --with-mac-arch=ARCH    current, intel, ppc or both
1526  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1527  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1528  --without-local-dir     do not search /usr/local for local libraries.
1529  --with-vim-name=NAME    what to call the Vim executable
1530  --with-ex-name=NAME     what to call the Ex executable
1531  --with-view-name=NAME   what to call the View executable
1532  --with-global-runtime=DIR    global runtime directory in 'runtimepath', comma-separated for multiple directories
1533  --with-modified-by=NAME       name of who modified a release version
1534  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)
1535  --with-compiledby=NAME  name to show in :version message
1536  --with-lua-prefix=PFX   Prefix where Lua is installed.
1537  --with-luajit           Link with LuaJIT instead of Lua.
1538  --with-plthome=PLTHOME   Use PLTHOME.
1539  --with-python-command=NAME  name of the Python 2 command (default: python2 or python)
1540  --with-python-config-dir=PATH  Python's config directory (deprecated)
1541  --with-python3-command=NAME  name of the Python 3 command (default: python3 or python)
1542  --with-python3-config-dir=PATH  Python's config directory (deprecated)
1543  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1544  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1545  --with-x                use the X Window System
1546  --with-gnome-includes=DIR Specify location of GNOME headers
1547  --with-gnome-libs=DIR   Specify location of GNOME libs
1548  --with-gnome            Specify prefix for GNOME files
1549  --with-motif-lib=STRING Library for Motif
1550  --with-tlib=library     terminal library to be used
1551
1552Some influential environment variables:
1553  CC          C compiler command
1554  CFLAGS      C compiler flags
1555  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1556              nonstandard directory <lib dir>
1557  LIBS        libraries to pass to the linker, e.g. -l<library>
1558  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559              you have headers in a nonstandard directory <include dir>
1560  CPP         C preprocessor
1561  XMKMF       Path to xmkmf, Makefile generator for X Window System
1562
1563Use these variables to override the choices made by `configure' or to help
1564it to find libraries and programs with nonstandard names/locations.
1565
1566Report bugs to the package provider.
1567_ACEOF
1568ac_status=$?
1569fi
1570
1571if test "$ac_init_help" = "recursive"; then
1572  # If there are subdirs, report their specific --help.
1573  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574    test -d "$ac_dir" ||
1575      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576      continue
1577    ac_builddir=.
1578
1579case "$ac_dir" in
1580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581*)
1582  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583  # A ".." for each directory in $ac_dir_suffix.
1584  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585  case $ac_top_builddir_sub in
1586  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588  esac ;;
1589esac
1590ac_abs_top_builddir=$ac_pwd
1591ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592# for backward compatibility:
1593ac_top_builddir=$ac_top_build_prefix
1594
1595case $srcdir in
1596  .)  # We are building in place.
1597    ac_srcdir=.
1598    ac_top_srcdir=$ac_top_builddir_sub
1599    ac_abs_top_srcdir=$ac_pwd ;;
1600  [\\/]* | ?:[\\/]* )  # Absolute name.
1601    ac_srcdir=$srcdir$ac_dir_suffix;
1602    ac_top_srcdir=$srcdir
1603    ac_abs_top_srcdir=$srcdir ;;
1604  *) # Relative name.
1605    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606    ac_top_srcdir=$ac_top_build_prefix$srcdir
1607    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608esac
1609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611    cd "$ac_dir" || { ac_status=$?; continue; }
1612    # Check for guested configure.
1613    if test -f "$ac_srcdir/configure.gnu"; then
1614      echo &&
1615      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616    elif test -f "$ac_srcdir/configure"; then
1617      echo &&
1618      $SHELL "$ac_srcdir/configure" --help=recursive
1619    else
1620      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621    fi || ac_status=$?
1622    cd "$ac_pwd" || { ac_status=$?; break; }
1623  done
1624fi
1625
1626test -n "$ac_init_help" && exit $ac_status
1627if $ac_init_version; then
1628  cat <<\_ACEOF
1629configure
1630generated by GNU Autoconf 2.69
1631
1632Copyright (C) 2012 Free Software Foundation, Inc.
1633This configure script is free software; the Free Software Foundation
1634gives unlimited permission to copy, distribute and modify it.
1635_ACEOF
1636  exit
1637fi
1638
1639## ------------------------ ##
1640## Autoconf initialization. ##
1641## ------------------------ ##
1642
1643# ac_fn_c_try_compile LINENO
1644# --------------------------
1645# Try to compile conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_c_try_compile ()
1647{
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  rm -f conftest.$ac_objext
1650  if { { ac_try="$ac_compile"
1651case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_compile") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } && {
1666	 test -z "$ac_c_werror_flag" ||
1667	 test ! -s conftest.err
1668       } && test -s conftest.$ac_objext; then :
1669  ac_retval=0
1670else
1671  $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674	ac_retval=1
1675fi
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677  as_fn_set_status $ac_retval
1678
1679} # ac_fn_c_try_compile
1680
1681# ac_fn_c_try_cpp LINENO
1682# ----------------------
1683# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_cpp ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  if { { ac_try="$ac_cpp conftest.$ac_ext"
1688case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695  ac_status=$?
1696  if test -s conftest.err; then
1697    grep -v '^ *+' conftest.err >conftest.er1
1698    cat conftest.er1 >&5
1699    mv -f conftest.er1 conftest.err
1700  fi
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } > conftest.i && {
1703	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704	 test ! -s conftest.err
1705       }; then :
1706  ac_retval=0
1707else
1708  $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711    ac_retval=1
1712fi
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_cpp
1717
1718# ac_fn_c_try_link LINENO
1719# -----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_link ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  rm -f conftest.$ac_objext conftest$ac_exeext
1725  if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728  *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732  (eval "$ac_link") 2>conftest.err
1733  ac_status=$?
1734  if test -s conftest.err; then
1735    grep -v '^ *+' conftest.err >conftest.er1
1736    cat conftest.er1 >&5
1737    mv -f conftest.er1 conftest.err
1738  fi
1739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740  test $ac_status = 0; } && {
1741	 test -z "$ac_c_werror_flag" ||
1742	 test ! -s conftest.err
1743       } && test -s conftest$ac_exeext && {
1744	 test "$cross_compiling" = yes ||
1745	 test -x conftest$ac_exeext
1746       }; then :
1747  ac_retval=0
1748else
1749  $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752	ac_retval=1
1753fi
1754  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756  # interfere with the next link command; also delete a directory that is
1757  # left behind by Apple's compiler.  We do this before executing the actions.
1758  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760  as_fn_set_status $ac_retval
1761
1762} # ac_fn_c_try_link
1763
1764# ac_fn_c_try_run LINENO
1765# ----------------------
1766# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767# that executables *can* be run.
1768ac_fn_c_try_run ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  if { { ac_try="$ac_link"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_link") 2>&5
1779  ac_status=$?
1780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782  { { case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_try") 2>&5
1789  ac_status=$?
1790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; }; }; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: program exited with status $ac_status" >&5
1795       $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798       ac_retval=$ac_status
1799fi
1800  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802  as_fn_set_status $ac_retval
1803
1804} # ac_fn_c_try_run
1805
1806# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1807# -------------------------------------------------------
1808# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1809# the include files in INCLUDES and setting the cache variable VAR
1810# accordingly.
1811ac_fn_c_check_header_mongrel ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  if eval \${$3+:} false; then :
1815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if eval \${$3+:} false; then :
1818  $as_echo_n "(cached) " >&6
1819fi
1820eval ac_res=\$$3
1821	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
1823else
1824  # Is the header compilable?
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1826$as_echo_n "checking $2 usability... " >&6; }
1827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h.  */
1829$4
1830#include <$2>
1831_ACEOF
1832if ac_fn_c_try_compile "$LINENO"; then :
1833  ac_header_compiler=yes
1834else
1835  ac_header_compiler=no
1836fi
1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1839$as_echo "$ac_header_compiler" >&6; }
1840
1841# Is the header present?
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1843$as_echo_n "checking $2 presence... " >&6; }
1844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h.  */
1846#include <$2>
1847_ACEOF
1848if ac_fn_c_try_cpp "$LINENO"; then :
1849  ac_header_preproc=yes
1850else
1851  ac_header_preproc=no
1852fi
1853rm -f conftest.err conftest.i conftest.$ac_ext
1854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1855$as_echo "$ac_header_preproc" >&6; }
1856
1857# So?  What about this header?
1858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1859  yes:no: )
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1861$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864    ;;
1865  no:yes:* )
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1867$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1869$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1870    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1871$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1873$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876    ;;
1877esac
1878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879$as_echo_n "checking for $2... " >&6; }
1880if eval \${$3+:} false; then :
1881  $as_echo_n "(cached) " >&6
1882else
1883  eval "$3=\$ac_header_compiler"
1884fi
1885eval ac_res=\$$3
1886	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
1888fi
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_header_mongrel
1892
1893# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894# -------------------------------------------------------
1895# Tests whether HEADER exists and can be compiled using the include files in
1896# INCLUDES, setting the cache variable VAR accordingly.
1897ac_fn_c_check_header_compile ()
1898{
1899  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901$as_echo_n "checking for $2... " >&6; }
1902if eval \${$3+:} false; then :
1903  $as_echo_n "(cached) " >&6
1904else
1905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h.  */
1907$4
1908#include <$2>
1909_ACEOF
1910if ac_fn_c_try_compile "$LINENO"; then :
1911  eval "$3=yes"
1912else
1913  eval "$3=no"
1914fi
1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_header_compile
1923
1924# ac_fn_c_check_func LINENO FUNC VAR
1925# ----------------------------------
1926# Tests whether FUNC exists, setting the cache variable VAR accordingly
1927ac_fn_c_check_func ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if eval \${$3+:} false; then :
1933  $as_echo_n "(cached) " >&6
1934else
1935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h.  */
1937/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1938   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1939#define $2 innocuous_$2
1940
1941/* System header to define __stub macros and hopefully few prototypes,
1942    which can conflict with char $2 (); below.
1943    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1944    <limits.h> exists even on freestanding compilers.  */
1945
1946#ifdef __STDC__
1947# include <limits.h>
1948#else
1949# include <assert.h>
1950#endif
1951
1952#undef $2
1953
1954/* Override any GCC internal prototype to avoid an error.
1955   Use char because int might match the return type of a GCC
1956   builtin and then its argument prototype would still apply.  */
1957#ifdef __cplusplus
1958extern "C"
1959#endif
1960char $2 ();
1961/* The GNU C library defines this for functions which it implements
1962    to always fail with ENOSYS.  Some functions are actually named
1963    something starting with __ and the normal name is an alias.  */
1964#if defined __stub_$2 || defined __stub___$2
1965choke me
1966#endif
1967
1968int
1969main ()
1970{
1971return $2 ();
1972  ;
1973  return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_link "$LINENO"; then :
1977  eval "$3=yes"
1978else
1979  eval "$3=no"
1980fi
1981rm -f core conftest.err conftest.$ac_objext \
1982    conftest$ac_exeext conftest.$ac_ext
1983fi
1984eval ac_res=\$$3
1985	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988
1989} # ac_fn_c_check_func
1990
1991# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1992# -------------------------------------------
1993# Tests whether TYPE exists after having included INCLUDES, setting cache
1994# variable VAR accordingly.
1995ac_fn_c_check_type ()
1996{
1997  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if eval \${$3+:} false; then :
2001  $as_echo_n "(cached) " >&6
2002else
2003  eval "$3=no"
2004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h.  */
2006$4
2007int
2008main ()
2009{
2010if (sizeof ($2))
2011	 return 0;
2012  ;
2013  return 0;
2014}
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"; then :
2017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h.  */
2019$4
2020int
2021main ()
2022{
2023if (sizeof (($2)))
2024	    return 0;
2025  ;
2026  return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030
2031else
2032  eval "$3=yes"
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038eval ac_res=\$$3
2039	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043} # ac_fn_c_check_type
2044
2045# ac_fn_c_find_uintX_t LINENO BITS VAR
2046# ------------------------------------
2047# Finds an unsigned integer type with width BITS, setting cache variable VAR
2048# accordingly.
2049ac_fn_c_find_uintX_t ()
2050{
2051  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2053$as_echo_n "checking for uint$2_t... " >&6; }
2054if eval \${$3+:} false; then :
2055  $as_echo_n "(cached) " >&6
2056else
2057  eval "$3=no"
2058     # Order is important - never check a type that is potentially smaller
2059     # than half of the expected target width.
2060     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2061	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2062       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063/* end confdefs.h.  */
2064$ac_includes_default
2065int
2066main ()
2067{
2068static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2069test_array [0] = 0;
2070return test_array [0];
2071
2072  ;
2073  return 0;
2074}
2075_ACEOF
2076if ac_fn_c_try_compile "$LINENO"; then :
2077  case $ac_type in #(
2078  uint$2_t) :
2079    eval "$3=yes" ;; #(
2080  *) :
2081    eval "$3=\$ac_type" ;;
2082esac
2083fi
2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085       if eval test \"x\$"$3"\" = x"no"; then :
2086
2087else
2088  break
2089fi
2090     done
2091fi
2092eval ac_res=\$$3
2093	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094$as_echo "$ac_res" >&6; }
2095  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096
2097} # ac_fn_c_find_uintX_t
2098
2099# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2100# --------------------------------------------
2101# Tries to find the compile-time value of EXPR in a program that includes
2102# INCLUDES, setting VAR accordingly. Returns whether the value could be
2103# computed
2104ac_fn_c_compute_int ()
2105{
2106  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107  if test "$cross_compiling" = yes; then
2108    # Depending upon the size, compute the lo and hi bounds.
2109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110/* end confdefs.h.  */
2111$4
2112int
2113main ()
2114{
2115static int test_array [1 - 2 * !(($2) >= 0)];
2116test_array [0] = 0;
2117return test_array [0];
2118
2119  ;
2120  return 0;
2121}
2122_ACEOF
2123if ac_fn_c_try_compile "$LINENO"; then :
2124  ac_lo=0 ac_mid=0
2125  while :; do
2126    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h.  */
2128$4
2129int
2130main ()
2131{
2132static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2133test_array [0] = 0;
2134return test_array [0];
2135
2136  ;
2137  return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141  ac_hi=$ac_mid; break
2142else
2143  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2144			if test $ac_lo -le $ac_mid; then
2145			  ac_lo= ac_hi=
2146			  break
2147			fi
2148			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151  done
2152else
2153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h.  */
2155$4
2156int
2157main ()
2158{
2159static int test_array [1 - 2 * !(($2) < 0)];
2160test_array [0] = 0;
2161return test_array [0];
2162
2163  ;
2164  return 0;
2165}
2166_ACEOF
2167if ac_fn_c_try_compile "$LINENO"; then :
2168  ac_hi=-1 ac_mid=-1
2169  while :; do
2170    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h.  */
2172$4
2173int
2174main ()
2175{
2176static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2177test_array [0] = 0;
2178return test_array [0];
2179
2180  ;
2181  return 0;
2182}
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185  ac_lo=$ac_mid; break
2186else
2187  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2188			if test $ac_mid -le $ac_hi; then
2189			  ac_lo= ac_hi=
2190			  break
2191			fi
2192			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2193fi
2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195  done
2196else
2197  ac_lo= ac_hi=
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200fi
2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202# Binary search between lo and hi bounds.
2203while test "x$ac_lo" != "x$ac_hi"; do
2204  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206/* end confdefs.h.  */
2207$4
2208int
2209main ()
2210{
2211static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2212test_array [0] = 0;
2213return test_array [0];
2214
2215  ;
2216  return 0;
2217}
2218_ACEOF
2219if ac_fn_c_try_compile "$LINENO"; then :
2220  ac_hi=$ac_mid
2221else
2222  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2223fi
2224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225done
2226case $ac_lo in #((
2227?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2228'') ac_retval=1 ;;
2229esac
2230  else
2231    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232/* end confdefs.h.  */
2233$4
2234static long int longval () { return $2; }
2235static unsigned long int ulongval () { return $2; }
2236#include <stdio.h>
2237#include <stdlib.h>
2238int
2239main ()
2240{
2241
2242  FILE *f = fopen ("conftest.val", "w");
2243  if (! f)
2244    return 1;
2245  if (($2) < 0)
2246    {
2247      long int i = longval ();
2248      if (i != ($2))
2249	return 1;
2250      fprintf (f, "%ld", i);
2251    }
2252  else
2253    {
2254      unsigned long int i = ulongval ();
2255      if (i != ($2))
2256	return 1;
2257      fprintf (f, "%lu", i);
2258    }
2259  /* Do not output a trailing newline, as this causes \r\n confusion
2260     on some platforms.  */
2261  return ferror (f) || fclose (f) != 0;
2262
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267if ac_fn_c_try_run "$LINENO"; then :
2268  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2269else
2270  ac_retval=1
2271fi
2272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2273  conftest.$ac_objext conftest.beam conftest.$ac_ext
2274rm -f conftest.val
2275
2276  fi
2277  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278  as_fn_set_status $ac_retval
2279
2280} # ac_fn_c_compute_int
2281cat >auto/config.log <<_ACEOF
2282This file contains any messages produced by compilers while
2283running configure, to aid debugging if configure makes a mistake.
2284
2285It was created by $as_me, which was
2286generated by GNU Autoconf 2.69.  Invocation command line was
2287
2288  $ $0 $@
2289
2290_ACEOF
2291exec 5>>auto/config.log
2292{
2293cat <<_ASUNAME
2294## --------- ##
2295## Platform. ##
2296## --------- ##
2297
2298hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2299uname -m = `(uname -m) 2>/dev/null || echo unknown`
2300uname -r = `(uname -r) 2>/dev/null || echo unknown`
2301uname -s = `(uname -s) 2>/dev/null || echo unknown`
2302uname -v = `(uname -v) 2>/dev/null || echo unknown`
2303
2304/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2305/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2306
2307/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2308/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2309/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2310/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2311/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2312/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2313/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2314
2315_ASUNAME
2316
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320  IFS=$as_save_IFS
2321  test -z "$as_dir" && as_dir=.
2322    $as_echo "PATH: $as_dir"
2323  done
2324IFS=$as_save_IFS
2325
2326} >&5
2327
2328cat >&5 <<_ACEOF
2329
2330
2331## ----------- ##
2332## Core tests. ##
2333## ----------- ##
2334
2335_ACEOF
2336
2337
2338# Keep a trace of the command line.
2339# Strip out --no-create and --no-recursion so they do not pile up.
2340# Strip out --silent because we don't want to record it for future runs.
2341# Also quote any args containing shell meta-characters.
2342# Make two passes to allow for proper duplicate-argument suppression.
2343ac_configure_args=
2344ac_configure_args0=
2345ac_configure_args1=
2346ac_must_keep_next=false
2347for ac_pass in 1 2
2348do
2349  for ac_arg
2350  do
2351    case $ac_arg in
2352    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2353    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2354    | -silent | --silent | --silen | --sile | --sil)
2355      continue ;;
2356    *\'*)
2357      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2358    esac
2359    case $ac_pass in
2360    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2361    2)
2362      as_fn_append ac_configure_args1 " '$ac_arg'"
2363      if test $ac_must_keep_next = true; then
2364	ac_must_keep_next=false # Got value, back to normal.
2365      else
2366	case $ac_arg in
2367	  *=* | --config-cache | -C | -disable-* | --disable-* \
2368	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2369	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2370	  | -with-* | --with-* | -without-* | --without-* | --x)
2371	    case "$ac_configure_args0 " in
2372	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2373	    esac
2374	    ;;
2375	  -* ) ac_must_keep_next=true ;;
2376	esac
2377      fi
2378      as_fn_append ac_configure_args " '$ac_arg'"
2379      ;;
2380    esac
2381  done
2382done
2383{ ac_configure_args0=; unset ac_configure_args0;}
2384{ ac_configure_args1=; unset ac_configure_args1;}
2385
2386# When interrupted or exit'd, cleanup temporary files, and complete
2387# config.log.  We remove comments because anyway the quotes in there
2388# would cause problems or look ugly.
2389# WARNING: Use '\'' to represent an apostrophe within the trap.
2390# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2391trap 'exit_status=$?
2392  # Save into config.log some information that might help in debugging.
2393  {
2394    echo
2395
2396    $as_echo "## ---------------- ##
2397## Cache variables. ##
2398## ---------------- ##"
2399    echo
2400    # The following way of writing the cache mishandles newlines in values,
2401(
2402  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2403    eval ac_val=\$$ac_var
2404    case $ac_val in #(
2405    *${as_nl}*)
2406      case $ac_var in #(
2407      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2408$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2409      esac
2410      case $ac_var in #(
2411      _ | IFS | as_nl) ;; #(
2412      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2413      *) { eval $ac_var=; unset $ac_var;} ;;
2414      esac ;;
2415    esac
2416  done
2417  (set) 2>&1 |
2418    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2419    *${as_nl}ac_space=\ *)
2420      sed -n \
2421	"s/'\''/'\''\\\\'\'''\''/g;
2422	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2423      ;; #(
2424    *)
2425      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2426      ;;
2427    esac |
2428    sort
2429)
2430    echo
2431
2432    $as_echo "## ----------------- ##
2433## Output variables. ##
2434## ----------------- ##"
2435    echo
2436    for ac_var in $ac_subst_vars
2437    do
2438      eval ac_val=\$$ac_var
2439      case $ac_val in
2440      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441      esac
2442      $as_echo "$ac_var='\''$ac_val'\''"
2443    done | sort
2444    echo
2445
2446    if test -n "$ac_subst_files"; then
2447      $as_echo "## ------------------- ##
2448## File substitutions. ##
2449## ------------------- ##"
2450      echo
2451      for ac_var in $ac_subst_files
2452      do
2453	eval ac_val=\$$ac_var
2454	case $ac_val in
2455	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456	esac
2457	$as_echo "$ac_var='\''$ac_val'\''"
2458      done | sort
2459      echo
2460    fi
2461
2462    if test -s confdefs.h; then
2463      $as_echo "## ----------- ##
2464## confdefs.h. ##
2465## ----------- ##"
2466      echo
2467      cat confdefs.h
2468      echo
2469    fi
2470    test "$ac_signal" != 0 &&
2471      $as_echo "$as_me: caught signal $ac_signal"
2472    $as_echo "$as_me: exit $exit_status"
2473  } >&5
2474  rm -f core *.core core.conftest.* &&
2475    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2476    exit $exit_status
2477' 0
2478for ac_signal in 1 2 13 15; do
2479  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2480done
2481ac_signal=0
2482
2483# confdefs.h avoids OS command line length limits that DEFS can exceed.
2484rm -f -r conftest* confdefs.h
2485
2486$as_echo "/* confdefs.h */" > confdefs.h
2487
2488# Predefined preprocessor variables.
2489
2490cat >>confdefs.h <<_ACEOF
2491#define PACKAGE_NAME "$PACKAGE_NAME"
2492_ACEOF
2493
2494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2496_ACEOF
2497
2498cat >>confdefs.h <<_ACEOF
2499#define PACKAGE_VERSION "$PACKAGE_VERSION"
2500_ACEOF
2501
2502cat >>confdefs.h <<_ACEOF
2503#define PACKAGE_STRING "$PACKAGE_STRING"
2504_ACEOF
2505
2506cat >>confdefs.h <<_ACEOF
2507#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2508_ACEOF
2509
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_URL "$PACKAGE_URL"
2512_ACEOF
2513
2514
2515# Let the site file select an alternate cache file if it wants to.
2516# Prefer an explicitly selected file to automatically selected ones.
2517ac_site_file1=NONE
2518ac_site_file2=NONE
2519if test -n "$CONFIG_SITE"; then
2520  # We do not want a PATH search for config.site.
2521  case $CONFIG_SITE in #((
2522    -*)  ac_site_file1=./$CONFIG_SITE;;
2523    */*) ac_site_file1=$CONFIG_SITE;;
2524    *)   ac_site_file1=./$CONFIG_SITE;;
2525  esac
2526elif test "x$prefix" != xNONE; then
2527  ac_site_file1=$prefix/share/config.site
2528  ac_site_file2=$prefix/etc/config.site
2529else
2530  ac_site_file1=$ac_default_prefix/share/config.site
2531  ac_site_file2=$ac_default_prefix/etc/config.site
2532fi
2533for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2534do
2535  test "x$ac_site_file" = xNONE && continue
2536  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2537    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2538$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2539    sed 's/^/| /' "$ac_site_file" >&5
2540    . "$ac_site_file" \
2541      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543as_fn_error $? "failed to load site script $ac_site_file
2544See \`config.log' for more details" "$LINENO" 5; }
2545  fi
2546done
2547
2548if test -r "$cache_file"; then
2549  # Some versions of bash will fail to source /dev/null (special files
2550  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2551  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2552    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2553$as_echo "$as_me: loading cache $cache_file" >&6;}
2554    case $cache_file in
2555      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2556      *)                      . "./$cache_file";;
2557    esac
2558  fi
2559else
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2561$as_echo "$as_me: creating cache $cache_file" >&6;}
2562  >$cache_file
2563fi
2564
2565# Check that the precious variables saved in the cache have kept the same
2566# value.
2567ac_cache_corrupted=false
2568for ac_var in $ac_precious_vars; do
2569  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2570  eval ac_new_set=\$ac_env_${ac_var}_set
2571  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2572  eval ac_new_val=\$ac_env_${ac_var}_value
2573  case $ac_old_set,$ac_new_set in
2574    set,)
2575      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2576$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2577      ac_cache_corrupted=: ;;
2578    ,set)
2579      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2580$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2581      ac_cache_corrupted=: ;;
2582    ,);;
2583    *)
2584      if test "x$ac_old_val" != "x$ac_new_val"; then
2585	# differences in whitespace do not lead to failure.
2586	ac_old_val_w=`echo x $ac_old_val`
2587	ac_new_val_w=`echo x $ac_new_val`
2588	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2589	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2590$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2591	  ac_cache_corrupted=:
2592	else
2593	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2594$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2595	  eval $ac_var=\$ac_old_val
2596	fi
2597	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2598$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2599	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2600$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2601      fi;;
2602  esac
2603  # Pass precious variables to config.status.
2604  if test "$ac_new_set" = set; then
2605    case $ac_new_val in
2606    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2607    *) ac_arg=$ac_var=$ac_new_val ;;
2608    esac
2609    case " $ac_configure_args " in
2610      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2611      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2612    esac
2613  fi
2614done
2615if $ac_cache_corrupted; then
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2619$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2620  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2621fi
2622## -------------------- ##
2623## Main body of script. ##
2624## -------------------- ##
2625
2626ac_ext=c
2627ac_cpp='$CPP $CPPFLAGS'
2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631
2632
2633ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2634
2635
2636$as_echo "#define UNIX 1" >>confdefs.h
2637
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2639$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2640set x ${MAKE-make}
2641ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2642if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2643  $as_echo_n "(cached) " >&6
2644else
2645  cat >conftest.make <<\_ACEOF
2646SHELL = /bin/sh
2647all:
2648	@echo '@@@%%%=$(MAKE)=@@@%%%'
2649_ACEOF
2650# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2651case `${MAKE-make} -f conftest.make 2>/dev/null` in
2652  *@@@%%%=?*=@@@%%%*)
2653    eval ac_cv_prog_make_${ac_make}_set=yes;;
2654  *)
2655    eval ac_cv_prog_make_${ac_make}_set=no;;
2656esac
2657rm -f conftest.make
2658fi
2659if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2661$as_echo "yes" >&6; }
2662  SET_MAKE=
2663else
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665$as_echo "no" >&6; }
2666  SET_MAKE="MAKE=${MAKE-make}"
2667fi
2668
2669
2670ac_ext=c
2671ac_cpp='$CPP $CPPFLAGS'
2672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675if test -n "$ac_tool_prefix"; then
2676  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2677set dummy ${ac_tool_prefix}gcc; ac_word=$2
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
2680if ${ac_cv_prog_CC+:} false; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  if test -n "$CC"; then
2684  ac_cv_prog_CC="$CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691    for ac_exec_ext in '' $ac_executable_extensions; do
2692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695    break 2
2696  fi
2697done
2698  done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703CC=$ac_cv_prog_CC
2704if test -n "$CC"; then
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2706$as_echo "$CC" >&6; }
2707else
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709$as_echo "no" >&6; }
2710fi
2711
2712
2713fi
2714if test -z "$ac_cv_prog_CC"; then
2715  ac_ct_CC=$CC
2716  # Extract the first word of "gcc", so it can be a program name with args.
2717set dummy gcc; ac_word=$2
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
2720if ${ac_cv_prog_ac_ct_CC+:} false; then :
2721  $as_echo_n "(cached) " >&6
2722else
2723  if test -n "$ac_ct_CC"; then
2724  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729  IFS=$as_save_IFS
2730  test -z "$as_dir" && as_dir=.
2731    for ac_exec_ext in '' $ac_executable_extensions; do
2732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733    ac_cv_prog_ac_ct_CC="gcc"
2734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735    break 2
2736  fi
2737done
2738  done
2739IFS=$as_save_IFS
2740
2741fi
2742fi
2743ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744if test -n "$ac_ct_CC"; then
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2746$as_echo "$ac_ct_CC" >&6; }
2747else
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
2751
2752  if test "x$ac_ct_CC" = x; then
2753    CC=""
2754  else
2755    case $cross_compiling:$ac_tool_warned in
2756yes:)
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759ac_tool_warned=yes ;;
2760esac
2761    CC=$ac_ct_CC
2762  fi
2763else
2764  CC="$ac_cv_prog_CC"
2765fi
2766
2767if test -z "$CC"; then
2768          if test -n "$ac_tool_prefix"; then
2769    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2770set dummy ${ac_tool_prefix}cc; ac_word=$2
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
2773if ${ac_cv_prog_CC+:} false; then :
2774  $as_echo_n "(cached) " >&6
2775else
2776  if test -n "$CC"; then
2777  ac_cv_prog_CC="$CC" # Let the user override the test.
2778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782  IFS=$as_save_IFS
2783  test -z "$as_dir" && as_dir=.
2784    for ac_exec_ext in '' $ac_executable_extensions; do
2785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786    ac_cv_prog_CC="${ac_tool_prefix}cc"
2787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788    break 2
2789  fi
2790done
2791  done
2792IFS=$as_save_IFS
2793
2794fi
2795fi
2796CC=$ac_cv_prog_CC
2797if test -n "$CC"; then
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799$as_echo "$CC" >&6; }
2800else
2801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802$as_echo "no" >&6; }
2803fi
2804
2805
2806  fi
2807fi
2808if test -z "$CC"; then
2809  # Extract the first word of "cc", so it can be a program name with args.
2810set dummy cc; ac_word=$2
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812$as_echo_n "checking for $ac_word... " >&6; }
2813if ${ac_cv_prog_CC+:} false; then :
2814  $as_echo_n "(cached) " >&6
2815else
2816  if test -n "$CC"; then
2817  ac_cv_prog_CC="$CC" # Let the user override the test.
2818else
2819  ac_prog_rejected=no
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  test -z "$as_dir" && as_dir=.
2825    for ac_exec_ext in '' $ac_executable_extensions; do
2826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2828       ac_prog_rejected=yes
2829       continue
2830     fi
2831    ac_cv_prog_CC="cc"
2832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833    break 2
2834  fi
2835done
2836  done
2837IFS=$as_save_IFS
2838
2839if test $ac_prog_rejected = yes; then
2840  # We found a bogon in the path, so make sure we never use it.
2841  set dummy $ac_cv_prog_CC
2842  shift
2843  if test $# != 0; then
2844    # We chose a different compiler from the bogus one.
2845    # However, it has the same basename, so the bogon will be chosen
2846    # first if we set CC to just the basename; use the full file name.
2847    shift
2848    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2849  fi
2850fi
2851fi
2852fi
2853CC=$ac_cv_prog_CC
2854if test -n "$CC"; then
2855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2856$as_echo "$CC" >&6; }
2857else
2858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859$as_echo "no" >&6; }
2860fi
2861
2862
2863fi
2864if test -z "$CC"; then
2865  if test -n "$ac_tool_prefix"; then
2866  for ac_prog in cl.exe
2867  do
2868    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871$as_echo_n "checking for $ac_word... " >&6; }
2872if ${ac_cv_prog_CC+:} false; then :
2873  $as_echo_n "(cached) " >&6
2874else
2875  if test -n "$CC"; then
2876  ac_cv_prog_CC="$CC" # Let the user override the test.
2877else
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881  IFS=$as_save_IFS
2882  test -z "$as_dir" && as_dir=.
2883    for ac_exec_ext in '' $ac_executable_extensions; do
2884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887    break 2
2888  fi
2889done
2890  done
2891IFS=$as_save_IFS
2892
2893fi
2894fi
2895CC=$ac_cv_prog_CC
2896if test -n "$CC"; then
2897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898$as_echo "$CC" >&6; }
2899else
2900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901$as_echo "no" >&6; }
2902fi
2903
2904
2905    test -n "$CC" && break
2906  done
2907fi
2908if test -z "$CC"; then
2909  ac_ct_CC=$CC
2910  for ac_prog in cl.exe
2911do
2912  # Extract the first word of "$ac_prog", so it can be a program name with args.
2913set dummy $ac_prog; ac_word=$2
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915$as_echo_n "checking for $ac_word... " >&6; }
2916if ${ac_cv_prog_ac_ct_CC+:} false; then :
2917  $as_echo_n "(cached) " >&6
2918else
2919  if test -n "$ac_ct_CC"; then
2920  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925  IFS=$as_save_IFS
2926  test -z "$as_dir" && as_dir=.
2927    for ac_exec_ext in '' $ac_executable_extensions; do
2928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929    ac_cv_prog_ac_ct_CC="$ac_prog"
2930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931    break 2
2932  fi
2933done
2934  done
2935IFS=$as_save_IFS
2936
2937fi
2938fi
2939ac_ct_CC=$ac_cv_prog_ac_ct_CC
2940if test -n "$ac_ct_CC"; then
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2942$as_echo "$ac_ct_CC" >&6; }
2943else
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
2946fi
2947
2948
2949  test -n "$ac_ct_CC" && break
2950done
2951
2952  if test "x$ac_ct_CC" = x; then
2953    CC=""
2954  else
2955    case $cross_compiling:$ac_tool_warned in
2956yes:)
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2959ac_tool_warned=yes ;;
2960esac
2961    CC=$ac_ct_CC
2962  fi
2963fi
2964
2965fi
2966
2967
2968test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970as_fn_error $? "no acceptable C compiler found in \$PATH
2971See \`config.log' for more details" "$LINENO" 5; }
2972
2973# Provide some information about the compiler.
2974$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2975set X $ac_compile
2976ac_compiler=$2
2977for ac_option in --version -v -V -qversion; do
2978  { { ac_try="$ac_compiler $ac_option >&5"
2979case "(($ac_try" in
2980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981  *) ac_try_echo=$ac_try;;
2982esac
2983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984$as_echo "$ac_try_echo"; } >&5
2985  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2986  ac_status=$?
2987  if test -s conftest.err; then
2988    sed '10a\
2989... rest of stderr output deleted ...
2990         10q' conftest.err >conftest.er1
2991    cat conftest.er1 >&5
2992  fi
2993  rm -f conftest.er1 conftest.err
2994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995  test $ac_status = 0; }
2996done
2997
2998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2999/* end confdefs.h.  */
3000
3001int
3002main ()
3003{
3004
3005  ;
3006  return 0;
3007}
3008_ACEOF
3009ac_clean_files_save=$ac_clean_files
3010ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3011# Try to create an executable without -o first, disregard a.out.
3012# It will help us diagnose broken compilers, and finding out an intuition
3013# of exeext.
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3015$as_echo_n "checking whether the C compiler works... " >&6; }
3016ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3017
3018# The possible output files:
3019ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3020
3021ac_rmfiles=
3022for ac_file in $ac_files
3023do
3024  case $ac_file in
3025    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3026    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3027  esac
3028done
3029rm -f $ac_rmfiles
3030
3031if { { ac_try="$ac_link_default"
3032case "(($ac_try" in
3033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034  *) ac_try_echo=$ac_try;;
3035esac
3036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037$as_echo "$ac_try_echo"; } >&5
3038  (eval "$ac_link_default") 2>&5
3039  ac_status=$?
3040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041  test $ac_status = 0; }; then :
3042  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3043# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3044# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3045# so that the user can short-circuit this test for compilers unknown to
3046# Autoconf.
3047for ac_file in $ac_files ''
3048do
3049  test -f "$ac_file" || continue
3050  case $ac_file in
3051    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3052	;;
3053    [ab].out )
3054	# We found the default executable, but exeext='' is most
3055	# certainly right.
3056	break;;
3057    *.* )
3058	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3059	then :; else
3060	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3061	fi
3062	# We set ac_cv_exeext here because the later test for it is not
3063	# safe: cross compilers may not add the suffix if given an `-o'
3064	# argument, so we may need to know it at that point already.
3065	# Even if this section looks crufty: it has the advantage of
3066	# actually working.
3067	break;;
3068    * )
3069	break;;
3070  esac
3071done
3072test "$ac_cv_exeext" = no && ac_cv_exeext=
3073
3074else
3075  ac_file=''
3076fi
3077if test -z "$ac_file"; then :
3078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079$as_echo "no" >&6; }
3080$as_echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085as_fn_error 77 "C compiler cannot create executables
3086See \`config.log' for more details" "$LINENO" 5; }
3087else
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3089$as_echo "yes" >&6; }
3090fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092$as_echo_n "checking for C compiler default output file name... " >&6; }
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3094$as_echo "$ac_file" >&6; }
3095ac_exeext=$ac_cv_exeext
3096
3097rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3098ac_clean_files=$ac_clean_files_save
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3100$as_echo_n "checking for suffix of executables... " >&6; }
3101if { { ac_try="$ac_link"
3102case "(($ac_try" in
3103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104  *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107$as_echo "$ac_try_echo"; } >&5
3108  (eval "$ac_link") 2>&5
3109  ac_status=$?
3110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111  test $ac_status = 0; }; then :
3112  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3113# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3114# work properly (i.e., refer to `conftest.exe'), while it won't with
3115# `rm'.
3116for ac_file in conftest.exe conftest conftest.*; do
3117  test -f "$ac_file" || continue
3118  case $ac_file in
3119    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3120    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121	  break;;
3122    * ) break;;
3123  esac
3124done
3125else
3126  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3129See \`config.log' for more details" "$LINENO" 5; }
3130fi
3131rm -f conftest conftest$ac_cv_exeext
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3133$as_echo "$ac_cv_exeext" >&6; }
3134
3135rm -f conftest.$ac_ext
3136EXEEXT=$ac_cv_exeext
3137ac_exeext=$EXEEXT
3138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139/* end confdefs.h.  */
3140#include <stdio.h>
3141int
3142main ()
3143{
3144FILE *f = fopen ("conftest.out", "w");
3145 return ferror (f) || fclose (f) != 0;
3146
3147  ;
3148  return 0;
3149}
3150_ACEOF
3151ac_clean_files="$ac_clean_files conftest.out"
3152# Check that the compiler produces executables we can run.  If not, either
3153# the compiler is broken, or we cross compile.
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3155$as_echo_n "checking whether we are cross compiling... " >&6; }
3156if test "$cross_compiling" != yes; then
3157  { { ac_try="$ac_link"
3158case "(($ac_try" in
3159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160  *) ac_try_echo=$ac_try;;
3161esac
3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163$as_echo "$ac_try_echo"; } >&5
3164  (eval "$ac_link") 2>&5
3165  ac_status=$?
3166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167  test $ac_status = 0; }
3168  if { ac_try='./conftest$ac_cv_exeext'
3169  { { case "(($ac_try" in
3170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171  *) ac_try_echo=$ac_try;;
3172esac
3173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174$as_echo "$ac_try_echo"; } >&5
3175  (eval "$ac_try") 2>&5
3176  ac_status=$?
3177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178  test $ac_status = 0; }; }; then
3179    cross_compiling=no
3180  else
3181    if test "$cross_compiling" = maybe; then
3182	cross_compiling=yes
3183    else
3184	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186as_fn_error $? "cannot run C compiled programs.
3187If you meant to cross compile, use \`--host'.
3188See \`config.log' for more details" "$LINENO" 5; }
3189    fi
3190  fi
3191fi
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3193$as_echo "$cross_compiling" >&6; }
3194
3195rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3196ac_clean_files=$ac_clean_files_save
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3198$as_echo_n "checking for suffix of object files... " >&6; }
3199if ${ac_cv_objext+:} false; then :
3200  $as_echo_n "(cached) " >&6
3201else
3202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203/* end confdefs.h.  */
3204
3205int
3206main ()
3207{
3208
3209  ;
3210  return 0;
3211}
3212_ACEOF
3213rm -f conftest.o conftest.obj
3214if { { ac_try="$ac_compile"
3215case "(($ac_try" in
3216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217  *) ac_try_echo=$ac_try;;
3218esac
3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220$as_echo "$ac_try_echo"; } >&5
3221  (eval "$ac_compile") 2>&5
3222  ac_status=$?
3223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224  test $ac_status = 0; }; then :
3225  for ac_file in conftest.o conftest.obj conftest.*; do
3226  test -f "$ac_file" || continue;
3227  case $ac_file in
3228    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3229    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230       break;;
3231  esac
3232done
3233else
3234  $as_echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239as_fn_error $? "cannot compute suffix of object files: cannot compile
3240See \`config.log' for more details" "$LINENO" 5; }
3241fi
3242rm -f conftest.$ac_cv_objext conftest.$ac_ext
3243fi
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3245$as_echo "$ac_cv_objext" >&6; }
3246OBJEXT=$ac_cv_objext
3247ac_objext=$OBJEXT
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3249$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3250if ${ac_cv_c_compiler_gnu+:} false; then :
3251  $as_echo_n "(cached) " >&6
3252else
3253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h.  */
3255
3256int
3257main ()
3258{
3259#ifndef __GNUC__
3260       choke me
3261#endif
3262
3263  ;
3264  return 0;
3265}
3266_ACEOF
3267if ac_fn_c_try_compile "$LINENO"; then :
3268  ac_compiler_gnu=yes
3269else
3270  ac_compiler_gnu=no
3271fi
3272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273ac_cv_c_compiler_gnu=$ac_compiler_gnu
3274
3275fi
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3277$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3278if test $ac_compiler_gnu = yes; then
3279  GCC=yes
3280else
3281  GCC=
3282fi
3283ac_test_CFLAGS=${CFLAGS+set}
3284ac_save_CFLAGS=$CFLAGS
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3286$as_echo_n "checking whether $CC accepts -g... " >&6; }
3287if ${ac_cv_prog_cc_g+:} false; then :
3288  $as_echo_n "(cached) " >&6
3289else
3290  ac_save_c_werror_flag=$ac_c_werror_flag
3291   ac_c_werror_flag=yes
3292   ac_cv_prog_cc_g=no
3293   CFLAGS="-g"
3294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295/* end confdefs.h.  */
3296
3297int
3298main ()
3299{
3300
3301  ;
3302  return 0;
3303}
3304_ACEOF
3305if ac_fn_c_try_compile "$LINENO"; then :
3306  ac_cv_prog_cc_g=yes
3307else
3308  CFLAGS=""
3309      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310/* end confdefs.h.  */
3311
3312int
3313main ()
3314{
3315
3316  ;
3317  return 0;
3318}
3319_ACEOF
3320if ac_fn_c_try_compile "$LINENO"; then :
3321
3322else
3323  ac_c_werror_flag=$ac_save_c_werror_flag
3324	 CFLAGS="-g"
3325	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326/* end confdefs.h.  */
3327
3328int
3329main ()
3330{
3331
3332  ;
3333  return 0;
3334}
3335_ACEOF
3336if ac_fn_c_try_compile "$LINENO"; then :
3337  ac_cv_prog_cc_g=yes
3338fi
3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340fi
3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342fi
3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344   ac_c_werror_flag=$ac_save_c_werror_flag
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3347$as_echo "$ac_cv_prog_cc_g" >&6; }
3348if test "$ac_test_CFLAGS" = set; then
3349  CFLAGS=$ac_save_CFLAGS
3350elif test $ac_cv_prog_cc_g = yes; then
3351  if test "$GCC" = yes; then
3352    CFLAGS="-g -O2"
3353  else
3354    CFLAGS="-g"
3355  fi
3356else
3357  if test "$GCC" = yes; then
3358    CFLAGS="-O2"
3359  else
3360    CFLAGS=
3361  fi
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3364$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3365if ${ac_cv_prog_cc_c89+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  ac_cv_prog_cc_c89=no
3369ac_save_CC=$CC
3370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h.  */
3372#include <stdarg.h>
3373#include <stdio.h>
3374struct stat;
3375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3376struct buf { int x; };
3377FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378static char *e (p, i)
3379     char **p;
3380     int i;
3381{
3382  return p[i];
3383}
3384static char *f (char * (*g) (char **, int), char **p, ...)
3385{
3386  char *s;
3387  va_list v;
3388  va_start (v,p);
3389  s = g (p, va_arg (v,int));
3390  va_end (v);
3391  return s;
3392}
3393
3394/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3395   function prototypes and stuff, but not '\xHH' hex character constants.
3396   These don't provoke an error unfortunately, instead are silently treated
3397   as 'x'.  The following induces an error, until -std is added to get
3398   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3399   array size at least.  It's necessary to write '\x00'==0 to get something
3400   that's true only with -std.  */
3401int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3402
3403/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404   inside strings and character constants.  */
3405#define FOO(x) 'x'
3406int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3407
3408int test (int i, double x);
3409struct s1 {int (*f) (int a);};
3410struct s2 {int (*f) (double a);};
3411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3412int argc;
3413char **argv;
3414int
3415main ()
3416{
3417return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3424do
3425  CC="$ac_save_CC $ac_arg"
3426  if ac_fn_c_try_compile "$LINENO"; then :
3427  ac_cv_prog_cc_c89=$ac_arg
3428fi
3429rm -f core conftest.err conftest.$ac_objext
3430  test "x$ac_cv_prog_cc_c89" != "xno" && break
3431done
3432rm -f conftest.$ac_ext
3433CC=$ac_save_CC
3434
3435fi
3436# AC_CACHE_VAL
3437case "x$ac_cv_prog_cc_c89" in
3438  x)
3439    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3440$as_echo "none needed" >&6; } ;;
3441  xno)
3442    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3443$as_echo "unsupported" >&6; } ;;
3444  *)
3445    CC="$CC $ac_cv_prog_cc_c89"
3446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3447$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3448esac
3449if test "x$ac_cv_prog_cc_c89" != xno; then :
3450
3451fi
3452
3453ac_ext=c
3454ac_cpp='$CPP $CPPFLAGS'
3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3460$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3461if ${ac_cv_prog_cc_c99+:} false; then :
3462  $as_echo_n "(cached) " >&6
3463else
3464  ac_cv_prog_cc_c99=no
3465ac_save_CC=$CC
3466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h.  */
3468#include <stdarg.h>
3469#include <stdbool.h>
3470#include <stdlib.h>
3471#include <wchar.h>
3472#include <stdio.h>
3473
3474// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3475#define debug(...) fprintf (stderr, __VA_ARGS__)
3476#define showlist(...) puts (#__VA_ARGS__)
3477#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3478static void
3479test_varargs_macros (void)
3480{
3481  int x = 1234;
3482  int y = 5678;
3483  debug ("Flag");
3484  debug ("X = %d\n", x);
3485  showlist (The first, second, and third items.);
3486  report (x>y, "x is %d but y is %d", x, y);
3487}
3488
3489// Check long long types.
3490#define BIG64 18446744073709551615ull
3491#define BIG32 4294967295ul
3492#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3493#if !BIG_OK
3494  your preprocessor is broken;
3495#endif
3496#if BIG_OK
3497#else
3498  your preprocessor is broken;
3499#endif
3500static long long int bignum = -9223372036854775807LL;
3501static unsigned long long int ubignum = BIG64;
3502
3503struct incomplete_array
3504{
3505  int datasize;
3506  double data[];
3507};
3508
3509struct named_init {
3510  int number;
3511  const wchar_t *name;
3512  double average;
3513};
3514
3515typedef const char *ccp;
3516
3517static inline int
3518test_restrict (ccp restrict text)
3519{
3520  // See if C++-style comments work.
3521  // Iterate through items via the restricted pointer.
3522  // Also check for declarations in for loops.
3523  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3524    continue;
3525  return 0;
3526}
3527
3528// Check varargs and va_copy.
3529static void
3530test_varargs (const char *format, ...)
3531{
3532  va_list args;
3533  va_start (args, format);
3534  va_list args_copy;
3535  va_copy (args_copy, args);
3536
3537  const char *str;
3538  int number;
3539  float fnumber;
3540
3541  while (*format)
3542    {
3543      switch (*format++)
3544	{
3545	case 's': // string
3546	  str = va_arg (args_copy, const char *);
3547	  break;
3548	case 'd': // int
3549	  number = va_arg (args_copy, int);
3550	  break;
3551	case 'f': // float
3552	  fnumber = va_arg (args_copy, double);
3553	  break;
3554	default:
3555	  break;
3556	}
3557    }
3558  va_end (args_copy);
3559  va_end (args);
3560}
3561
3562int
3563main ()
3564{
3565
3566  // Check bool.
3567  _Bool success = false;
3568
3569  // Check restrict.
3570  if (test_restrict ("String literal") == 0)
3571    success = true;
3572  char *restrict newvar = "Another string";
3573
3574  // Check varargs.
3575  test_varargs ("s, d' f .", "string", 65, 34.234);
3576  test_varargs_macros ();
3577
3578  // Check flexible array members.
3579  struct incomplete_array *ia =
3580    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3581  ia->datasize = 10;
3582  for (int i = 0; i < ia->datasize; ++i)
3583    ia->data[i] = i * 1.234;
3584
3585  // Check named initializers.
3586  struct named_init ni = {
3587    .number = 34,
3588    .name = L"Test wide string",
3589    .average = 543.34343,
3590  };
3591
3592  ni.number = 58;
3593
3594  int dynamic_array[ni.number];
3595  dynamic_array[ni.number - 1] = 543;
3596
3597  // work around unused variable warnings
3598  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3599	  || dynamic_array[ni.number - 1] != 543);
3600
3601  ;
3602  return 0;
3603}
3604_ACEOF
3605for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3606do
3607  CC="$ac_save_CC $ac_arg"
3608  if ac_fn_c_try_compile "$LINENO"; then :
3609  ac_cv_prog_cc_c99=$ac_arg
3610fi
3611rm -f core conftest.err conftest.$ac_objext
3612  test "x$ac_cv_prog_cc_c99" != "xno" && break
3613done
3614rm -f conftest.$ac_ext
3615CC=$ac_save_CC
3616
3617fi
3618# AC_CACHE_VAL
3619case "x$ac_cv_prog_cc_c99" in
3620  x)
3621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3622$as_echo "none needed" >&6; } ;;
3623  xno)
3624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3625$as_echo "unsupported" >&6; } ;;
3626  *)
3627    CC="$CC $ac_cv_prog_cc_c99"
3628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3629$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3630esac
3631if test "x$ac_cv_prog_cc_c99" != xno; then :
3632
3633fi
3634
3635		ac_ext=c
3636ac_cpp='$CPP $CPPFLAGS'
3637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3641$as_echo_n "checking how to run the C preprocessor... " >&6; }
3642# On Suns, sometimes $CPP names a directory.
3643if test -n "$CPP" && test -d "$CPP"; then
3644  CPP=
3645fi
3646if test -z "$CPP"; then
3647  if ${ac_cv_prog_CPP+:} false; then :
3648  $as_echo_n "(cached) " >&6
3649else
3650      # Double quotes because CPP needs to be expanded
3651    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3652    do
3653      ac_preproc_ok=false
3654for ac_c_preproc_warn_flag in '' yes
3655do
3656  # Use a header file that comes with gcc, so configuring glibc
3657  # with a fresh cross-compiler works.
3658  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659  # <limits.h> exists even on freestanding compilers.
3660  # On the NeXT, cc -E runs the code through the compiler's parser,
3661  # not just through cpp. "Syntax error" is here to catch this case.
3662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664#ifdef __STDC__
3665# include <limits.h>
3666#else
3667# include <assert.h>
3668#endif
3669		     Syntax error
3670_ACEOF
3671if ac_fn_c_try_cpp "$LINENO"; then :
3672
3673else
3674  # Broken: fails on valid input.
3675continue
3676fi
3677rm -f conftest.err conftest.i conftest.$ac_ext
3678
3679  # OK, works on sane cases.  Now check whether nonexistent headers
3680  # can be detected and how.
3681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h.  */
3683#include <ac_nonexistent.h>
3684_ACEOF
3685if ac_fn_c_try_cpp "$LINENO"; then :
3686  # Broken: success on invalid input.
3687continue
3688else
3689  # Passes both tests.
3690ac_preproc_ok=:
3691break
3692fi
3693rm -f conftest.err conftest.i conftest.$ac_ext
3694
3695done
3696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3697rm -f conftest.i conftest.err conftest.$ac_ext
3698if $ac_preproc_ok; then :
3699  break
3700fi
3701
3702    done
3703    ac_cv_prog_CPP=$CPP
3704
3705fi
3706  CPP=$ac_cv_prog_CPP
3707else
3708  ac_cv_prog_CPP=$CPP
3709fi
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3711$as_echo "$CPP" >&6; }
3712ac_preproc_ok=false
3713for ac_c_preproc_warn_flag in '' yes
3714do
3715  # Use a header file that comes with gcc, so configuring glibc
3716  # with a fresh cross-compiler works.
3717  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3718  # <limits.h> exists even on freestanding compilers.
3719  # On the NeXT, cc -E runs the code through the compiler's parser,
3720  # not just through cpp. "Syntax error" is here to catch this case.
3721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723#ifdef __STDC__
3724# include <limits.h>
3725#else
3726# include <assert.h>
3727#endif
3728		     Syntax error
3729_ACEOF
3730if ac_fn_c_try_cpp "$LINENO"; then :
3731
3732else
3733  # Broken: fails on valid input.
3734continue
3735fi
3736rm -f conftest.err conftest.i conftest.$ac_ext
3737
3738  # OK, works on sane cases.  Now check whether nonexistent headers
3739  # can be detected and how.
3740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741/* end confdefs.h.  */
3742#include <ac_nonexistent.h>
3743_ACEOF
3744if ac_fn_c_try_cpp "$LINENO"; then :
3745  # Broken: success on invalid input.
3746continue
3747else
3748  # Passes both tests.
3749ac_preproc_ok=:
3750break
3751fi
3752rm -f conftest.err conftest.i conftest.$ac_ext
3753
3754done
3755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3756rm -f conftest.i conftest.err conftest.$ac_ext
3757if $ac_preproc_ok; then :
3758
3759else
3760  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3762as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3763See \`config.log' for more details" "$LINENO" 5; }
3764fi
3765
3766ac_ext=c
3767ac_cpp='$CPP $CPPFLAGS'
3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771
3772
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3774$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3775if ${ac_cv_path_GREP+:} false; then :
3776  $as_echo_n "(cached) " >&6
3777else
3778  if test -z "$GREP"; then
3779  ac_path_GREP_found=false
3780  # Loop through the user's path and test for each of PROGNAME-LIST
3781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3783do
3784  IFS=$as_save_IFS
3785  test -z "$as_dir" && as_dir=.
3786    for ac_prog in grep ggrep; do
3787    for ac_exec_ext in '' $ac_executable_extensions; do
3788      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3789      as_fn_executable_p "$ac_path_GREP" || continue
3790# Check for GNU ac_path_GREP and select it if it is found.
3791  # Check for GNU $ac_path_GREP
3792case `"$ac_path_GREP" --version 2>&1` in
3793*GNU*)
3794  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3795*)
3796  ac_count=0
3797  $as_echo_n 0123456789 >"conftest.in"
3798  while :
3799  do
3800    cat "conftest.in" "conftest.in" >"conftest.tmp"
3801    mv "conftest.tmp" "conftest.in"
3802    cp "conftest.in" "conftest.nl"
3803    $as_echo 'GREP' >> "conftest.nl"
3804    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3805    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3806    as_fn_arith $ac_count + 1 && ac_count=$as_val
3807    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3808      # Best one so far, save it but keep looking for a better one
3809      ac_cv_path_GREP="$ac_path_GREP"
3810      ac_path_GREP_max=$ac_count
3811    fi
3812    # 10*(2^10) chars as input seems more than enough
3813    test $ac_count -gt 10 && break
3814  done
3815  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3816esac
3817
3818      $ac_path_GREP_found && break 3
3819    done
3820  done
3821  done
3822IFS=$as_save_IFS
3823  if test -z "$ac_cv_path_GREP"; then
3824    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3825  fi
3826else
3827  ac_cv_path_GREP=$GREP
3828fi
3829
3830fi
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3832$as_echo "$ac_cv_path_GREP" >&6; }
3833 GREP="$ac_cv_path_GREP"
3834
3835
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3837$as_echo_n "checking for egrep... " >&6; }
3838if ${ac_cv_path_EGREP+:} false; then :
3839  $as_echo_n "(cached) " >&6
3840else
3841  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3842   then ac_cv_path_EGREP="$GREP -E"
3843   else
3844     if test -z "$EGREP"; then
3845  ac_path_EGREP_found=false
3846  # Loop through the user's path and test for each of PROGNAME-LIST
3847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3849do
3850  IFS=$as_save_IFS
3851  test -z "$as_dir" && as_dir=.
3852    for ac_prog in egrep; do
3853    for ac_exec_ext in '' $ac_executable_extensions; do
3854      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3855      as_fn_executable_p "$ac_path_EGREP" || continue
3856# Check for GNU ac_path_EGREP and select it if it is found.
3857  # Check for GNU $ac_path_EGREP
3858case `"$ac_path_EGREP" --version 2>&1` in
3859*GNU*)
3860  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3861*)
3862  ac_count=0
3863  $as_echo_n 0123456789 >"conftest.in"
3864  while :
3865  do
3866    cat "conftest.in" "conftest.in" >"conftest.tmp"
3867    mv "conftest.tmp" "conftest.in"
3868    cp "conftest.in" "conftest.nl"
3869    $as_echo 'EGREP' >> "conftest.nl"
3870    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3871    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3872    as_fn_arith $ac_count + 1 && ac_count=$as_val
3873    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3874      # Best one so far, save it but keep looking for a better one
3875      ac_cv_path_EGREP="$ac_path_EGREP"
3876      ac_path_EGREP_max=$ac_count
3877    fi
3878    # 10*(2^10) chars as input seems more than enough
3879    test $ac_count -gt 10 && break
3880  done
3881  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3882esac
3883
3884      $ac_path_EGREP_found && break 3
3885    done
3886  done
3887  done
3888IFS=$as_save_IFS
3889  if test -z "$ac_cv_path_EGREP"; then
3890    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3891  fi
3892else
3893  ac_cv_path_EGREP=$EGREP
3894fi
3895
3896   fi
3897fi
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3899$as_echo "$ac_cv_path_EGREP" >&6; }
3900 EGREP="$ac_cv_path_EGREP"
3901
3902
3903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904/* end confdefs.h.  */
3905
3906_ACEOF
3907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908  $EGREP "" >/dev/null 2>&1; then :
3909
3910fi
3911rm -f conftest*
3912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3913$as_echo_n "checking for fgrep... " >&6; }
3914if ${ac_cv_path_FGREP+:} false; then :
3915  $as_echo_n "(cached) " >&6
3916else
3917  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3918   then ac_cv_path_FGREP="$GREP -F"
3919   else
3920     if test -z "$FGREP"; then
3921  ac_path_FGREP_found=false
3922  # Loop through the user's path and test for each of PROGNAME-LIST
3923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925do
3926  IFS=$as_save_IFS
3927  test -z "$as_dir" && as_dir=.
3928    for ac_prog in fgrep; do
3929    for ac_exec_ext in '' $ac_executable_extensions; do
3930      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3931      as_fn_executable_p "$ac_path_FGREP" || continue
3932# Check for GNU ac_path_FGREP and select it if it is found.
3933  # Check for GNU $ac_path_FGREP
3934case `"$ac_path_FGREP" --version 2>&1` in
3935*GNU*)
3936  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3937*)
3938  ac_count=0
3939  $as_echo_n 0123456789 >"conftest.in"
3940  while :
3941  do
3942    cat "conftest.in" "conftest.in" >"conftest.tmp"
3943    mv "conftest.tmp" "conftest.in"
3944    cp "conftest.in" "conftest.nl"
3945    $as_echo 'FGREP' >> "conftest.nl"
3946    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3948    as_fn_arith $ac_count + 1 && ac_count=$as_val
3949    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3950      # Best one so far, save it but keep looking for a better one
3951      ac_cv_path_FGREP="$ac_path_FGREP"
3952      ac_path_FGREP_max=$ac_count
3953    fi
3954    # 10*(2^10) chars as input seems more than enough
3955    test $ac_count -gt 10 && break
3956  done
3957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958esac
3959
3960      $ac_path_FGREP_found && break 3
3961    done
3962  done
3963  done
3964IFS=$as_save_IFS
3965  if test -z "$ac_cv_path_FGREP"; then
3966    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3967  fi
3968else
3969  ac_cv_path_FGREP=$FGREP
3970fi
3971
3972   fi
3973fi
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3975$as_echo "$ac_cv_path_FGREP" >&6; }
3976 FGREP="$ac_cv_path_FGREP"
3977
3978		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3979$as_echo_n "checking for library containing strerror... " >&6; }
3980if ${ac_cv_search_strerror+:} false; then :
3981  $as_echo_n "(cached) " >&6
3982else
3983  ac_func_search_save_LIBS=$LIBS
3984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985/* end confdefs.h.  */
3986
3987/* Override any GCC internal prototype to avoid an error.
3988   Use char because int might match the return type of a GCC
3989   builtin and then its argument prototype would still apply.  */
3990#ifdef __cplusplus
3991extern "C"
3992#endif
3993char strerror ();
3994int
3995main ()
3996{
3997return strerror ();
3998  ;
3999  return 0;
4000}
4001_ACEOF
4002for ac_lib in '' cposix; do
4003  if test -z "$ac_lib"; then
4004    ac_res="none required"
4005  else
4006    ac_res=-l$ac_lib
4007    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4008  fi
4009  if ac_fn_c_try_link "$LINENO"; then :
4010  ac_cv_search_strerror=$ac_res
4011fi
4012rm -f core conftest.err conftest.$ac_objext \
4013    conftest$ac_exeext
4014  if ${ac_cv_search_strerror+:} false; then :
4015  break
4016fi
4017done
4018if ${ac_cv_search_strerror+:} false; then :
4019
4020else
4021  ac_cv_search_strerror=no
4022fi
4023rm conftest.$ac_ext
4024LIBS=$ac_func_search_save_LIBS
4025fi
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4027$as_echo "$ac_cv_search_strerror" >&6; }
4028ac_res=$ac_cv_search_strerror
4029if test "$ac_res" != no; then :
4030  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4031
4032fi
4033		for ac_prog in gawk mawk nawk awk
4034do
4035  # Extract the first word of "$ac_prog", so it can be a program name with args.
4036set dummy $ac_prog; ac_word=$2
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
4039if ${ac_cv_prog_AWK+:} false; then :
4040  $as_echo_n "(cached) " >&6
4041else
4042  if test -n "$AWK"; then
4043  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048  IFS=$as_save_IFS
4049  test -z "$as_dir" && as_dir=.
4050    for ac_exec_ext in '' $ac_executable_extensions; do
4051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052    ac_cv_prog_AWK="$ac_prog"
4053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054    break 2
4055  fi
4056done
4057  done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062AWK=$ac_cv_prog_AWK
4063if test -n "$AWK"; then
4064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4065$as_echo "$AWK" >&6; }
4066else
4067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068$as_echo "no" >&6; }
4069fi
4070
4071
4072  test -n "$AWK" && break
4073done
4074
4075# Extract the first word of "strip", so it can be a program name with args.
4076set dummy strip; ac_word=$2
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078$as_echo_n "checking for $ac_word... " >&6; }
4079if ${ac_cv_prog_STRIP+:} false; then :
4080  $as_echo_n "(cached) " >&6
4081else
4082  if test -n "$STRIP"; then
4083  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4084else
4085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086for as_dir in $PATH
4087do
4088  IFS=$as_save_IFS
4089  test -z "$as_dir" && as_dir=.
4090    for ac_exec_ext in '' $ac_executable_extensions; do
4091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092    ac_cv_prog_STRIP="strip"
4093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4094    break 2
4095  fi
4096done
4097  done
4098IFS=$as_save_IFS
4099
4100  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4101fi
4102fi
4103STRIP=$ac_cv_prog_STRIP
4104if test -n "$STRIP"; then
4105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4106$as_echo "$STRIP" >&6; }
4107else
4108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109$as_echo "no" >&6; }
4110fi
4111
4112
4113
4114
4115
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4117$as_echo_n "checking for ANSI C header files... " >&6; }
4118if ${ac_cv_header_stdc+:} false; then :
4119  $as_echo_n "(cached) " >&6
4120else
4121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123#include <stdlib.h>
4124#include <stdarg.h>
4125#include <string.h>
4126#include <float.h>
4127
4128int
4129main ()
4130{
4131
4132  ;
4133  return 0;
4134}
4135_ACEOF
4136if ac_fn_c_try_compile "$LINENO"; then :
4137  ac_cv_header_stdc=yes
4138else
4139  ac_cv_header_stdc=no
4140fi
4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142
4143if test $ac_cv_header_stdc = yes; then
4144  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h.  */
4147#include <string.h>
4148
4149_ACEOF
4150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151  $EGREP "memchr" >/dev/null 2>&1; then :
4152
4153else
4154  ac_cv_header_stdc=no
4155fi
4156rm -f conftest*
4157
4158fi
4159
4160if test $ac_cv_header_stdc = yes; then
4161  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h.  */
4164#include <stdlib.h>
4165
4166_ACEOF
4167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4168  $EGREP "free" >/dev/null 2>&1; then :
4169
4170else
4171  ac_cv_header_stdc=no
4172fi
4173rm -f conftest*
4174
4175fi
4176
4177if test $ac_cv_header_stdc = yes; then
4178  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4179  if test "$cross_compiling" = yes; then :
4180  :
4181else
4182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183/* end confdefs.h.  */
4184#include <ctype.h>
4185#include <stdlib.h>
4186#if ((' ' & 0x0FF) == 0x020)
4187# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4188# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4189#else
4190# define ISLOWER(c) \
4191		   (('a' <= (c) && (c) <= 'i') \
4192		     || ('j' <= (c) && (c) <= 'r') \
4193		     || ('s' <= (c) && (c) <= 'z'))
4194# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4195#endif
4196
4197#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4198int
4199main ()
4200{
4201  int i;
4202  for (i = 0; i < 256; i++)
4203    if (XOR (islower (i), ISLOWER (i))
4204	|| toupper (i) != TOUPPER (i))
4205      return 2;
4206  return 0;
4207}
4208_ACEOF
4209if ac_fn_c_try_run "$LINENO"; then :
4210
4211else
4212  ac_cv_header_stdc=no
4213fi
4214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4215  conftest.$ac_objext conftest.beam conftest.$ac_ext
4216fi
4217
4218fi
4219fi
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4221$as_echo "$ac_cv_header_stdc" >&6; }
4222if test $ac_cv_header_stdc = yes; then
4223
4224$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4225
4226fi
4227
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4229$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4230if ${ac_cv_header_sys_wait_h+:} false; then :
4231  $as_echo_n "(cached) " >&6
4232else
4233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234/* end confdefs.h.  */
4235#include <sys/types.h>
4236#include <sys/wait.h>
4237#ifndef WEXITSTATUS
4238# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4239#endif
4240#ifndef WIFEXITED
4241# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4242#endif
4243
4244int
4245main ()
4246{
4247  int s;
4248  wait (&s);
4249  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4250  ;
4251  return 0;
4252}
4253_ACEOF
4254if ac_fn_c_try_compile "$LINENO"; then :
4255  ac_cv_header_sys_wait_h=yes
4256else
4257  ac_cv_header_sys_wait_h=no
4258fi
4259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4262$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4263if test $ac_cv_header_sys_wait_h = yes; then
4264
4265$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4266
4267fi
4268
4269
4270if test x"$ac_cv_prog_cc_c99" != xno; then
4271
4272
4273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4274$as_echo_n "checking for unsigned long long int... " >&6; }
4275if ${ac_cv_type_unsigned_long_long_int+:} false; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278  ac_cv_type_unsigned_long_long_int=yes
4279     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4280       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h.  */
4282
4283  /* For now, do not test the preprocessor; as of 2007 there are too many
4284	 implementations with broken preprocessors.  Perhaps this can
4285	 be revisited in 2012.  In the meantime, code should not expect
4286	 #if to work with literals wider than 32 bits.  */
4287      /* Test literals.  */
4288      long long int ll = 9223372036854775807ll;
4289      long long int nll = -9223372036854775807LL;
4290      unsigned long long int ull = 18446744073709551615ULL;
4291      /* Test constant expressions.   */
4292      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4293		     ? 1 : -1)];
4294      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4295		     ? 1 : -1)];
4296      int i = 63;
4297int
4298main ()
4299{
4300/* Test availability of runtime routines for shift and division.  */
4301      long long int llmax = 9223372036854775807ll;
4302      unsigned long long int ullmax = 18446744073709551615ull;
4303      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4304	      | (llmax / ll) | (llmax % ll)
4305	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4306	      | (ullmax / ull) | (ullmax % ull));
4307  ;
4308  return 0;
4309}
4310
4311_ACEOF
4312if ac_fn_c_try_link "$LINENO"; then :
4313
4314else
4315  ac_cv_type_unsigned_long_long_int=no
4316fi
4317rm -f core conftest.err conftest.$ac_objext \
4318    conftest$ac_exeext conftest.$ac_ext
4319     fi
4320fi
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4322$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4323  if test $ac_cv_type_unsigned_long_long_int = yes; then
4324
4325$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4326
4327  fi
4328
4329
4330
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4332$as_echo_n "checking for long long int... " >&6; }
4333if ${ac_cv_type_long_long_int+:} false; then :
4334  $as_echo_n "(cached) " >&6
4335else
4336  ac_cv_type_long_long_int=yes
4337      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4338	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
4339	if test $ac_cv_type_long_long_int = yes; then
4340	  	  	  	  if test "$cross_compiling" = yes; then :
4341  :
4342else
4343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h.  */
4345#include <limits.h>
4346		 #ifndef LLONG_MAX
4347		 # define HALF \
4348			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4349		 # define LLONG_MAX (HALF - 1 + HALF)
4350		 #endif
4351int
4352main ()
4353{
4354long long int n = 1;
4355		 int i;
4356		 for (i = 0; ; i++)
4357		   {
4358		     long long int m = n << i;
4359		     if (m >> i != n)
4360		       return 1;
4361		     if (LLONG_MAX / 2 < m)
4362		       break;
4363		   }
4364		 return 0;
4365  ;
4366  return 0;
4367}
4368_ACEOF
4369if ac_fn_c_try_run "$LINENO"; then :
4370
4371else
4372  ac_cv_type_long_long_int=no
4373fi
4374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4375  conftest.$ac_objext conftest.beam conftest.$ac_ext
4376fi
4377
4378	fi
4379      fi
4380fi
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4382$as_echo "$ac_cv_type_long_long_int" >&6; }
4383  if test $ac_cv_type_long_long_int = yes; then
4384
4385$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4386
4387  fi
4388
4389  if test "$ac_cv_type_long_long_int" = no; then
4390    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392as_fn_error $? "Compiler does not support long long int
4393See \`config.log' for more details" "$LINENO" 5; }
4394  fi
4395
4396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5
4397$as_echo_n "checking if the compiler supports trailing commas... " >&6; }
4398  trailing_commas=no
4399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h.  */
4401
4402int
4403main ()
4404{
4405
4406    enum {
4407      one,
4408    };
4409  ;
4410  return 0;
4411}
4412_ACEOF
4413if ac_fn_c_try_compile "$LINENO"; then :
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415$as_echo "yes" >&6; }; trailing_commas=yes
4416else
4417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418$as_echo "no" >&6; }
4419fi
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421  if test "$trailing_commas" = no; then
4422    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4424as_fn_error $? "Compiler does not support trailing comma in enum
4425See \`config.log' for more details" "$LINENO" 5; }
4426  fi
4427
4428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5
4429$as_echo_n "checking if the compiler supports C++ comments... " >&6; }
4430  slash_comments=no
4431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h.  */
4433
4434int
4435main ()
4436{
4437// C++ comments?
4438  ;
4439  return 0;
4440}
4441_ACEOF
4442if ac_fn_c_try_compile "$LINENO"; then :
4443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444$as_echo "yes" >&6; }; slash_comments=yes
4445else
4446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447$as_echo "no" >&6; }
4448fi
4449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450  if test "$slash_comments" = no; then
4451    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4453as_fn_error $? "Compiler does not support C++ comments
4454See \`config.log' for more details" "$LINENO" 5; }
4455  fi
4456fi
4457
4458
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4460$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4461# Check whether --enable-fail_if_missing was given.
4462if test "${enable_fail_if_missing+set}" = set; then :
4463  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4464else
4465  fail_if_missing="no"
4466fi
4467
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4469$as_echo "$fail_if_missing" >&6; }
4470
4471with_x_arg="$with_x"
4472
4473if test -z "$CFLAGS"; then
4474  CFLAGS="-O"
4475  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4476fi
4477if test "$GCC" = yes; then
4478    gccversion=`$CC -dumpversion`
4479  if test "x$gccversion" = "x"; then
4480        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4481  fi
4482    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4483    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4484    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4485  else
4486    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4487      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4488      CFLAGS="$CFLAGS -fno-strength-reduce"
4489    fi
4490  fi
4491fi
4492
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4494$as_echo_n "checking for clang version... " >&6; }
4495CLANG_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'`
4496if test x"$CLANG_VERSION_STRING" != x"" ; then
4497  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4498  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4499  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4500  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4502$as_echo "$CLANG_VERSION" >&6; }
4503          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4504$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4505  if test "$CLANG_VERSION" -ge 500002075 ; then
4506    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507$as_echo "no" >&6; }
4508    CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4509  else
4510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4511$as_echo "yes" >&6; }
4512  fi
4513else
4514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4515$as_echo "N/A" >&6; }
4516fi
4517
4518CROSS_COMPILING=
4519if test "$cross_compiling" = yes; then
4520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4521$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4522  CROSS_COMPILING=1
4523fi
4524
4525
4526test "$GCC" = yes && CPP_MM=M;
4527
4528if test -f ./toolcheck; then
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4530$as_echo "$as_me: checking for buggy tools..." >&6;}
4531  sh ./toolcheck 1>&6
4532fi
4533
4534OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4535
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4537$as_echo_n "checking for BeOS... " >&6; }
4538case `uname` in
4539    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4540		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4541$as_echo "yes" >&6; };;
4542    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; };;
4544esac
4545
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Haiku" >&5
4547$as_echo_n "checking for Haiku... " >&6; }
4548case `uname` in
4549    Haiku) HAIKU=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4550$as_echo "yes" >&6; };;
4551    *)     HAIKU=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552$as_echo "no" >&6; };;
4553esac
4554
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4556$as_echo_n "checking for QNX... " >&6; }
4557case `uname` in
4558    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4559		test -z "$with_x" && with_x=no
4560		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4561$as_echo "yes" >&6; };;
4562    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563$as_echo "no" >&6; };;
4564esac
4565
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4567$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4568if test "`(uname) 2>/dev/null`" = Darwin; then
4569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4570$as_echo "yes" >&6; }
4571  MACOS_X=yes
4572  CPPFLAGS="$CPPFLAGS -DMACOS_X"
4573
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4575$as_echo_n "checking --disable-darwin argument... " >&6; }
4576  # Check whether --enable-darwin was given.
4577if test "${enable_darwin+set}" = set; then :
4578  enableval=$enable_darwin;
4579else
4580  enable_darwin="yes"
4581fi
4582
4583  if test "$enable_darwin" = "yes"; then
4584    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585$as_echo "no" >&6; }
4586    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4587$as_echo_n "checking if Darwin files are there... " >&6; }
4588    if test -f os_macosx.m; then
4589      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4590$as_echo "yes" >&6; }
4591    else
4592      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4593$as_echo "no, Darwin support disabled" >&6; }
4594      enable_darwin=no
4595    fi
4596  else
4597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4598$as_echo "yes, Darwin support excluded" >&6; }
4599  fi
4600
4601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4602$as_echo_n "checking --with-mac-arch argument... " >&6; }
4603
4604# Check whether --with-mac-arch was given.
4605if test "${with_mac_arch+set}" = set; then :
4606  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4607$as_echo "$MACARCH" >&6; }
4608else
4609  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4610$as_echo "defaulting to $MACARCH" >&6; }
4611fi
4612
4613
4614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4615$as_echo_n "checking --with-developer-dir argument... " >&6; }
4616
4617# Check whether --with-developer-dir was given.
4618if test "${with_developer_dir+set}" = set; then :
4619  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4620$as_echo "$DEVELOPER_DIR" >&6; }
4621else
4622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4623$as_echo "not present" >&6; }
4624fi
4625
4626
4627  if test "x$DEVELOPER_DIR" = "x"; then
4628    # Extract the first word of "xcode-select", so it can be a program name with args.
4629set dummy xcode-select; ac_word=$2
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631$as_echo_n "checking for $ac_word... " >&6; }
4632if ${ac_cv_path_XCODE_SELECT+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635  case $XCODE_SELECT in
4636  [\\/]* | ?:[\\/]*)
4637  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4638  ;;
4639  *)
4640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643  IFS=$as_save_IFS
4644  test -z "$as_dir" && as_dir=.
4645    for ac_exec_ext in '' $ac_executable_extensions; do
4646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649    break 2
4650  fi
4651done
4652  done
4653IFS=$as_save_IFS
4654
4655  ;;
4656esac
4657fi
4658XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4659if test -n "$XCODE_SELECT"; then
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4661$as_echo "$XCODE_SELECT" >&6; }
4662else
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664$as_echo "no" >&6; }
4665fi
4666
4667
4668    if test "x$XCODE_SELECT" != "x"; then
4669      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4670$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4671      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4672      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4673$as_echo "$DEVELOPER_DIR" >&6; }
4674    else
4675      DEVELOPER_DIR=/Developer
4676    fi
4677  fi
4678
4679  if test "x$MACARCH" = "xboth"; then
4680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4681$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4682                            save_cppflags="$CPPFLAGS"
4683    save_cflags="$CFLAGS"
4684    save_ldflags="$LDFLAGS"
4685    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687/* end confdefs.h.  */
4688
4689int
4690main ()
4691{
4692
4693  ;
4694  return 0;
4695}
4696_ACEOF
4697if ac_fn_c_try_link "$LINENO"; then :
4698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4699$as_echo "found" >&6; }
4700else
4701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4702$as_echo "not found" >&6; }
4703	CFLAGS="$save_cflags"
4704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4705$as_echo_n "checking if Intel architecture is supported... " >&6; }
4706	CPPFLAGS="$CPPFLAGS -arch i386"
4707	LDFLAGS="$save_ldflags -arch i386"
4708	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h.  */
4710
4711int
4712main ()
4713{
4714
4715  ;
4716  return 0;
4717}
4718_ACEOF
4719if ac_fn_c_try_link "$LINENO"; then :
4720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4721$as_echo "yes" >&6; }; MACARCH="intel"
4722else
4723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725		MACARCH="ppc"
4726		CPPFLAGS="$save_cppflags -arch ppc"
4727		LDFLAGS="$save_ldflags -arch ppc"
4728fi
4729rm -f core conftest.err conftest.$ac_objext \
4730    conftest$ac_exeext conftest.$ac_ext
4731fi
4732rm -f core conftest.err conftest.$ac_objext \
4733    conftest$ac_exeext conftest.$ac_ext
4734  elif test "x$MACARCH" = "xintel"; then
4735    CPPFLAGS="$CPPFLAGS -arch intel"
4736    LDFLAGS="$LDFLAGS -arch intel"
4737  elif test "x$MACARCH" = "xppc"; then
4738    CPPFLAGS="$CPPFLAGS -arch ppc"
4739    LDFLAGS="$LDFLAGS -arch ppc"
4740  fi
4741
4742  if test "$enable_darwin" = "yes"; then
4743    MACOS_X_DARWIN=yes
4744    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4745    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4746            CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
4747
4748                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4749for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4750		  inttypes.h stdint.h unistd.h
4751do :
4752  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4753ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4754"
4755if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4756  cat >>confdefs.h <<_ACEOF
4757#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4758_ACEOF
4759
4760fi
4761
4762done
4763
4764
4765ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4766if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4767  CARBON=yes
4768fi
4769
4770
4771    if test "x$CARBON" = "xyes"; then
4772      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
4773	with_x=no
4774      fi
4775    fi
4776  fi
4777
4778        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4779    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4780  fi
4781
4782else
4783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784$as_echo "no" >&6; }
4785fi
4786
4787for ac_header in AvailabilityMacros.h
4788do :
4789  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4790if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4791  cat >>confdefs.h <<_ACEOF
4792#define HAVE_AVAILABILITYMACROS_H 1
4793_ACEOF
4794
4795fi
4796
4797done
4798
4799
4800
4801
4802
4803if test "$cross_compiling" = no; then
4804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4805$as_echo_n "checking --with-local-dir argument... " >&6; }
4806  have_local_include=''
4807  have_local_lib=''
4808
4809# Check whether --with-local-dir was given.
4810if test "${with_local_dir+set}" = set; then :
4811  withval=$with_local_dir;
4812    local_dir="$withval"
4813    case "$withval" in
4814    */*) ;;
4815    no)
4816      # avoid adding local dir to LDFLAGS and CPPFLAGS
4817      have_local_include=yes
4818      have_local_lib=yes
4819      ;;
4820    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4821    esac
4822	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4823$as_echo "$local_dir" >&6; }
4824
4825else
4826
4827    local_dir=/usr/local
4828    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4829$as_echo "Defaulting to $local_dir" >&6; }
4830
4831fi
4832
4833  if test "$GCC" = yes -a "$local_dir" != no; then
4834    echo 'void f(){}' > conftest.c
4835        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4836    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4837    rm -f conftest.c conftest.o
4838  fi
4839  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4840    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4841    if test "$tt" = "$LDFLAGS"; then
4842      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4843    fi
4844  fi
4845  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4846    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4847    if test "$tt" = "$CPPFLAGS"; then
4848      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4849    fi
4850  fi
4851fi
4852
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4854$as_echo_n "checking --with-vim-name argument... " >&6; }
4855
4856# Check whether --with-vim-name was given.
4857if test "${with_vim_name+set}" = set; then :
4858  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4859$as_echo "$VIMNAME" >&6; }
4860else
4861  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4862$as_echo "Defaulting to $VIMNAME" >&6; }
4863fi
4864
4865
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4867$as_echo_n "checking --with-ex-name argument... " >&6; }
4868
4869# Check whether --with-ex-name was given.
4870if test "${with_ex_name+set}" = set; then :
4871  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4872$as_echo "$EXNAME" >&6; }
4873else
4874  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4875$as_echo "Defaulting to ex" >&6; }
4876fi
4877
4878
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4880$as_echo_n "checking --with-view-name argument... " >&6; }
4881
4882# Check whether --with-view-name was given.
4883if test "${with_view_name+set}" = set; then :
4884  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4885$as_echo "$VIEWNAME" >&6; }
4886else
4887  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4888$as_echo "Defaulting to view" >&6; }
4889fi
4890
4891
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4894$as_echo_n "checking --with-global-runtime argument... " >&6; }
4895
4896# Check whether --with-global-runtime was given.
4897if test "${with_global_runtime+set}" = set; then :
4898  withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4899$as_echo "$withval" >&6; }
4900else
4901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902$as_echo "no" >&6; }
4903fi
4904
4905
4906if test "X$RUNTIME_GLOBAL" != "X"; then
4907  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" }')
4908  cat >>confdefs.h <<_ACEOF
4909#define RUNTIME_GLOBAL "$RUNTIME_GLOBAL"
4910_ACEOF
4911
4912  cat >>confdefs.h <<_ACEOF
4913#define RUNTIME_GLOBAL_AFTER "$RUNTIME_GLOBAL_AFTER"
4914_ACEOF
4915
4916fi
4917
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4919$as_echo_n "checking --with-modified-by argument... " >&6; }
4920
4921# Check whether --with-modified-by was given.
4922if test "${with_modified_by+set}" = set; then :
4923  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4924$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4925#define MODIFIED_BY "$withval"
4926_ACEOF
4927
4928else
4929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930$as_echo "no" >&6; }
4931fi
4932
4933
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4935$as_echo_n "checking if character set is EBCDIC... " >&6; }
4936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937/* end confdefs.h.  */
4938
4939int
4940main ()
4941{
4942 /* TryCompile function for CharSet.
4943   Treat any failure as ASCII for compatibility with existing art.
4944   Use compile-time rather than run-time tests for cross-compiler
4945   tolerance.  */
4946#if '0'!=240
4947make an error "Character set is not EBCDIC"
4948#endif
4949  ;
4950  return 0;
4951}
4952_ACEOF
4953if ac_fn_c_try_compile "$LINENO"; then :
4954   # TryCompile action if true
4955cf_cv_ebcdic=yes
4956else
4957   # TryCompile action if false
4958cf_cv_ebcdic=no
4959fi
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961# end of TryCompile ])
4962# end of CacheVal CvEbcdic
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4964$as_echo "$cf_cv_ebcdic" >&6; }
4965case "$cf_cv_ebcdic" in  #(vi
4966    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4967
4968		line_break='"\\n"'
4969		;;
4970    *)		line_break='"\\012"';;
4971esac
4972
4973
4974if test "$cf_cv_ebcdic" = "yes"; then
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4976$as_echo_n "checking for z/OS Unix... " >&6; }
4977case `uname` in
4978    OS/390)	zOSUnix="yes";
4979										if test "$CC" = "cc"; then
4980		  ccm="$_CC_CCMODE"
4981		  ccn="CC"
4982		else
4983		  if test "$CC" = "c89"; then
4984		    ccm="$_CC_C89MODE"
4985		    ccn="C89"
4986		  else
4987		    ccm=1
4988		  fi
4989		fi
4990		if test "$ccm" != "1"; then
4991		  echo ""
4992		  echo "------------------------------------------"
4993		  echo " On z/OS Unix, the environment variable"
4994		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4995		  echo " Do:"
4996		  echo "    export _CC_${ccn}MODE=1"
4997		  echo " and then call configure again."
4998		  echo "------------------------------------------"
4999		  exit 1
5000		fi
5001		# Set CFLAGS for configure process.
5002		# This will be reset later for config.mk.
5003		# Use haltonmsg to force error for missing H files.
5004		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
5005		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
5006		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5007$as_echo "yes" >&6; }
5008		;;
5009    *)		zOSUnix="no";
5010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011$as_echo "no" >&6; }
5012		;;
5013esac
5014fi
5015
5016if test "$zOSUnix" = "yes"; then
5017    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
5018else
5019    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
5020fi
5021
5022
5023
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
5025$as_echo_n "checking --disable-smack argument... " >&6; }
5026# Check whether --enable-smack was given.
5027if test "${enable_smack+set}" = set; then :
5028  enableval=$enable_smack;
5029else
5030  enable_smack="yes"
5031fi
5032
5033if test "$enable_smack" = "yes"; then
5034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
5036  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
5037if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
5038  true
5039else
5040  enable_smack="no"
5041fi
5042
5043
5044else
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5046$as_echo "yes" >&6; }
5047fi
5048if test "$enable_smack" = "yes"; then
5049  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
5050if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
5051  true
5052else
5053  enable_smack="no"
5054fi
5055
5056
5057fi
5058if test "$enable_smack" = "yes"; then
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
5060$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
5061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h.  */
5063#include <linux/xattr.h>
5064_ACEOF
5065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5066  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
5067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5068$as_echo "yes" >&6; }
5069else
5070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071$as_echo "no" >&6; }; enable_smack="no"
5072fi
5073rm -f conftest*
5074
5075fi
5076if test "$enable_smack" = "yes"; then
5077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
5078$as_echo_n "checking for setxattr in -lattr... " >&6; }
5079if ${ac_cv_lib_attr_setxattr+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  ac_check_lib_save_LIBS=$LIBS
5083LIBS="-lattr  $LIBS"
5084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h.  */
5086
5087/* Override any GCC internal prototype to avoid an error.
5088   Use char because int might match the return type of a GCC
5089   builtin and then its argument prototype would still apply.  */
5090#ifdef __cplusplus
5091extern "C"
5092#endif
5093char setxattr ();
5094int
5095main ()
5096{
5097return setxattr ();
5098  ;
5099  return 0;
5100}
5101_ACEOF
5102if ac_fn_c_try_link "$LINENO"; then :
5103  ac_cv_lib_attr_setxattr=yes
5104else
5105  ac_cv_lib_attr_setxattr=no
5106fi
5107rm -f core conftest.err conftest.$ac_objext \
5108    conftest$ac_exeext conftest.$ac_ext
5109LIBS=$ac_check_lib_save_LIBS
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
5112$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
5113if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
5114  LIBS="$LIBS -lattr"
5115	   found_smack="yes"
5116	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
5117
5118fi
5119
5120fi
5121
5122if test "x$found_smack" = "x"; then
5123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
5124$as_echo_n "checking --disable-selinux argument... " >&6; }
5125  # Check whether --enable-selinux was given.
5126if test "${enable_selinux+set}" = set; then :
5127  enableval=$enable_selinux;
5128else
5129  enable_selinux="yes"
5130fi
5131
5132  if test "$enable_selinux" = "yes"; then
5133    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134$as_echo "no" >&6; }
5135    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
5136$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
5137if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
5138  $as_echo_n "(cached) " >&6
5139else
5140  ac_check_lib_save_LIBS=$LIBS
5141LIBS="-lselinux  $LIBS"
5142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143/* end confdefs.h.  */
5144
5145/* Override any GCC internal prototype to avoid an error.
5146   Use char because int might match the return type of a GCC
5147   builtin and then its argument prototype would still apply.  */
5148#ifdef __cplusplus
5149extern "C"
5150#endif
5151char is_selinux_enabled ();
5152int
5153main ()
5154{
5155return is_selinux_enabled ();
5156  ;
5157  return 0;
5158}
5159_ACEOF
5160if ac_fn_c_try_link "$LINENO"; then :
5161  ac_cv_lib_selinux_is_selinux_enabled=yes
5162else
5163  ac_cv_lib_selinux_is_selinux_enabled=no
5164fi
5165rm -f core conftest.err conftest.$ac_objext \
5166    conftest$ac_exeext conftest.$ac_ext
5167LIBS=$ac_check_lib_save_LIBS
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
5170$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
5171if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
5172  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
5173if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
5174  LIBS="$LIBS -lselinux"
5175	    $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5176
5177fi
5178
5179
5180fi
5181
5182  else
5183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5184$as_echo "yes" >&6; }
5185  fi
5186fi
5187
5188
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
5190$as_echo_n "checking --with-features argument... " >&6; }
5191
5192# Check whether --with-features was given.
5193if test "${with_features+set}" = set; then :
5194  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
5195$as_echo "$features" >&6; }
5196else
5197  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
5198$as_echo "Defaulting to huge" >&6; }
5199fi
5200
5201
5202dovimdiff=""
5203dogvimdiff=""
5204case "$features" in
5205  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
5206 ;;
5207  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
5208 ;;
5209  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
5210 dovimdiff="installvimdiff";
5211			dogvimdiff="installgvimdiff" ;;
5212  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
5213 dovimdiff="installvimdiff";
5214			dogvimdiff="installgvimdiff" ;;
5215  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
5216 dovimdiff="installvimdiff";
5217			dogvimdiff="installgvimdiff" ;;
5218  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
5219$as_echo "Sorry, $features is not supported" >&6; } ;;
5220esac
5221
5222
5223
5224
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
5226$as_echo_n "checking --with-compiledby argument... " >&6; }
5227
5228# Check whether --with-compiledby was given.
5229if test "${with_compiledby+set}" = set; then :
5230  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5231$as_echo "$withval" >&6; }
5232else
5233  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234$as_echo "no" >&6; }
5235fi
5236
5237
5238
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
5240$as_echo_n "checking --disable-xsmp argument... " >&6; }
5241# Check whether --enable-xsmp was given.
5242if test "${enable_xsmp+set}" = set; then :
5243  enableval=$enable_xsmp;
5244else
5245  enable_xsmp="yes"
5246fi
5247
5248
5249if test "$enable_xsmp" = "yes"; then
5250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251$as_echo "no" >&6; }
5252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
5253$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
5254  # Check whether --enable-xsmp-interact was given.
5255if test "${enable_xsmp_interact+set}" = set; then :
5256  enableval=$enable_xsmp_interact;
5257else
5258  enable_xsmp_interact="yes"
5259fi
5260
5261  if test "$enable_xsmp_interact" = "yes"; then
5262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263$as_echo "no" >&6; }
5264    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
5265
5266  else
5267    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5268$as_echo "yes" >&6; }
5269  fi
5270else
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5272$as_echo "yes" >&6; }
5273fi
5274
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
5276$as_echo_n "checking --enable-luainterp argument... " >&6; }
5277# Check whether --enable-luainterp was given.
5278if test "${enable_luainterp+set}" = set; then :
5279  enableval=$enable_luainterp;
5280else
5281  enable_luainterp="no"
5282fi
5283
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
5285$as_echo "$enable_luainterp" >&6; }
5286
5287if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
5288  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5289    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
5290  fi
5291
5292
5293
5294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
5295$as_echo_n "checking --with-lua-prefix argument... " >&6; }
5296
5297# Check whether --with-lua_prefix was given.
5298if test "${with_lua_prefix+set}" = set; then :
5299  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
5300$as_echo "$with_lua_prefix" >&6; }
5301else
5302  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }
5304fi
5305
5306
5307  if test "X$with_lua_prefix" != "X"; then
5308       vi_cv_path_lua_pfx="$with_lua_prefix"
5309  else
5310    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
5311$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
5312    if test "X$LUA_PREFIX" != "X"; then
5313	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
5314$as_echo "\"$LUA_PREFIX\"" >&6; }
5315	vi_cv_path_lua_pfx="$LUA_PREFIX"
5316    else
5317	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
5318$as_echo "not set, default to /usr" >&6; }
5319	vi_cv_path_lua_pfx="/usr"
5320    fi
5321  fi
5322
5323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
5324$as_echo_n "checking --with-luajit... " >&6; }
5325
5326# Check whether --with-luajit was given.
5327if test "${with_luajit+set}" = set; then :
5328  withval=$with_luajit; vi_cv_with_luajit="$withval"
5329else
5330  vi_cv_with_luajit="no"
5331fi
5332
5333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
5334$as_echo "$vi_cv_with_luajit" >&6; }
5335
5336  LUA_INC=
5337  if test "X$vi_cv_path_lua_pfx" != "X"; then
5338    if test "x$vi_cv_with_luajit" != "xno"; then
5339            # Extract the first word of "luajit", so it can be a program name with args.
5340set dummy luajit; ac_word=$2
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342$as_echo_n "checking for $ac_word... " >&6; }
5343if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346  case $vi_cv_path_luajit in
5347  [\\/]* | ?:[\\/]*)
5348  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
5349  ;;
5350  *)
5351  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354  IFS=$as_save_IFS
5355  test -z "$as_dir" && as_dir=.
5356    for ac_exec_ext in '' $ac_executable_extensions; do
5357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
5359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360    break 2
5361  fi
5362done
5363  done
5364IFS=$as_save_IFS
5365
5366  ;;
5367esac
5368fi
5369vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
5370if test -n "$vi_cv_path_luajit"; then
5371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
5372$as_echo "$vi_cv_path_luajit" >&6; }
5373else
5374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
5376fi
5377
5378
5379      if test "X$vi_cv_path_luajit" != "X"; then
5380		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
5381$as_echo_n "checking LuaJIT version... " >&6; }
5382if ${vi_cv_version_luajit+:} false; then :
5383  $as_echo_n "(cached) " >&6
5384else
5385   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
5388$as_echo "$vi_cv_version_luajit" >&6; }
5389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
5390$as_echo_n "checking Lua version of LuaJIT... " >&6; }
5391if ${vi_cv_version_lua_luajit+:} false; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5397$as_echo "$vi_cv_version_lua_luajit" >&6; }
5398	vi_cv_path_lua="$vi_cv_path_luajit"
5399	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5400      fi
5401    else
5402            # Extract the first word of "lua", so it can be a program name with args.
5403set dummy lua; ac_word=$2
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405$as_echo_n "checking for $ac_word... " >&6; }
5406if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  case $vi_cv_path_plain_lua in
5410  [\\/]* | ?:[\\/]*)
5411  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5412  ;;
5413  *)
5414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415for as_dir in $PATH
5416do
5417  IFS=$as_save_IFS
5418  test -z "$as_dir" && as_dir=.
5419    for ac_exec_ext in '' $ac_executable_extensions; do
5420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423    break 2
5424  fi
5425done
5426  done
5427IFS=$as_save_IFS
5428
5429  ;;
5430esac
5431fi
5432vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5433if test -n "$vi_cv_path_plain_lua"; then
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5435$as_echo "$vi_cv_path_plain_lua" >&6; }
5436else
5437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438$as_echo "no" >&6; }
5439fi
5440
5441
5442      if test "X$vi_cv_path_plain_lua" != "X"; then
5443		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5444$as_echo_n "checking Lua version... " >&6; }
5445if ${vi_cv_version_plain_lua+:} false; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5451$as_echo "$vi_cv_version_plain_lua" >&6; }
5452      fi
5453      vi_cv_path_lua="$vi_cv_path_plain_lua"
5454      vi_cv_version_lua="$vi_cv_version_plain_lua"
5455    fi
5456    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5457      { $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
5458$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5459      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5460	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5461$as_echo "yes" >&6; }
5462	LUA_INC=/luajit-$vi_cv_version_luajit
5463      fi
5464    fi
5465    if test "X$LUA_INC" = "X"; then
5466      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5467$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5468      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5469	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470$as_echo "yes" >&6; }
5471      else
5472	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473$as_echo "no" >&6; }
5474	{ $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
5475$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5476	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5477	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5478$as_echo "yes" >&6; }
5479	  LUA_INC=/lua$vi_cv_version_lua
5480	else
5481	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482$as_echo "no" >&6; }
5483	  vi_cv_path_lua_pfx=
5484	fi
5485      fi
5486    fi
5487  fi
5488
5489  if test "X$vi_cv_path_lua_pfx" != "X"; then
5490    if test "x$vi_cv_with_luajit" != "xno"; then
5491      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5492      if test "X$multiarch" != "X"; then
5493	lib_multiarch="lib/${multiarch}"
5494      else
5495	lib_multiarch="lib"
5496      fi
5497      if test "X$vi_cv_version_lua" = "X"; then
5498	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5499      else
5500	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5501      fi
5502    else
5503      if test "X$LUA_INC" != "X"; then
5504		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5505      else
5506	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5507      fi
5508    fi
5509    if test "$enable_luainterp" = "dynamic"; then
5510      lua_ok="yes"
5511    else
5512      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5513$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5514      libs_save=$LIBS
5515      LIBS="$LIBS $LUA_LIBS"
5516      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h.  */
5518
5519int
5520main ()
5521{
5522
5523  ;
5524  return 0;
5525}
5526_ACEOF
5527if ac_fn_c_try_link "$LINENO"; then :
5528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5529$as_echo "yes" >&6; }; lua_ok="yes"
5530else
5531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5533fi
5534rm -f core conftest.err conftest.$ac_objext \
5535    conftest$ac_exeext conftest.$ac_ext
5536      LIBS=$libs_save
5537    fi
5538    if test "x$lua_ok" = "xyes"; then
5539      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5540      LUA_SRC="if_lua.c"
5541      LUA_OBJ="objects/if_lua.o"
5542      LUA_PRO="if_lua.pro"
5543      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5544
5545    fi
5546    if test "$enable_luainterp" = "dynamic"; then
5547      if test "x$vi_cv_with_luajit" != "xno"; then
5548	luajit="jit"
5549      fi
5550      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5551	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5552      else
5553	if test "x$MACOS_X" = "xyes"; then
5554	  ext="dylib"
5555	  indexes=""
5556	else
5557	  ext="so"
5558	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5559	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5560	  if test "X$multiarch" != "X"; then
5561	    lib_multiarch="lib/${multiarch}"
5562	  fi
5563	fi
5564			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5565$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5566	for subdir in "${lib_multiarch}" lib64 lib; do
5567	  if test -z "$subdir"; then
5568	    continue
5569	  fi
5570	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5571	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5572	    for i in $indexes ""; do
5573	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5574		sover2="$i"
5575		break 3
5576	      fi
5577	    done
5578	  done
5579	  sover=""
5580	done
5581	if test "X$sover" = "X"; then
5582	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583$as_echo "no" >&6; }
5584	  lua_ok="no"
5585	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5586	else
5587	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5588$as_echo "yes" >&6; }
5589	  lua_ok="yes"
5590	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5591	fi
5592      fi
5593      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5594
5595      LUA_LIBS=""
5596      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5597    fi
5598    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5599       test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5600       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5601            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5602    fi
5603  fi
5604  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5605    as_fn_error $? "could not configure lua" "$LINENO" 5
5606  fi
5607
5608
5609
5610
5611
5612fi
5613
5614
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5616$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5617# Check whether --enable-mzschemeinterp was given.
5618if test "${enable_mzschemeinterp+set}" = set; then :
5619  enableval=$enable_mzschemeinterp;
5620else
5621  enable_mzschemeinterp="no"
5622fi
5623
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5625$as_echo "$enable_mzschemeinterp" >&6; }
5626
5627if test "$enable_mzschemeinterp" = "yes"; then
5628
5629
5630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5631$as_echo_n "checking --with-plthome argument... " >&6; }
5632
5633# Check whether --with-plthome was given.
5634if test "${with_plthome+set}" = set; then :
5635  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5636$as_echo "$with_plthome" >&6; }
5637else
5638  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5639$as_echo "\"no\"" >&6; }
5640fi
5641
5642
5643  if test "X$with_plthome" != "X"; then
5644       vi_cv_path_mzscheme_pfx="$with_plthome"
5645       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5646  else
5647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5648$as_echo_n "checking PLTHOME environment var... " >&6; }
5649    if test "X$PLTHOME" != "X"; then
5650	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5651$as_echo "\"$PLTHOME\"" >&6; }
5652	vi_cv_path_mzscheme_pfx="$PLTHOME"
5653	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5654    else
5655	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5656$as_echo "not set" >&6; }
5657		# Extract the first word of "mzscheme", so it can be a program name with args.
5658set dummy mzscheme; ac_word=$2
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660$as_echo_n "checking for $ac_word... " >&6; }
5661if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664  case $vi_cv_path_mzscheme in
5665  [\\/]* | ?:[\\/]*)
5666  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5667  ;;
5668  *)
5669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672  IFS=$as_save_IFS
5673  test -z "$as_dir" && as_dir=.
5674    for ac_exec_ext in '' $ac_executable_extensions; do
5675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678    break 2
5679  fi
5680done
5681  done
5682IFS=$as_save_IFS
5683
5684  ;;
5685esac
5686fi
5687vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5688if test -n "$vi_cv_path_mzscheme"; then
5689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5690$as_echo "$vi_cv_path_mzscheme" >&6; }
5691else
5692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693$as_echo "no" >&6; }
5694fi
5695
5696
5697
5698			if test "X$vi_cv_path_mzscheme" != "X"; then
5699	  lsout=`ls -l $vi_cv_path_mzscheme`
5700	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5701	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5702	  fi
5703	fi
5704
5705	if test "X$vi_cv_path_mzscheme" != "X"; then
5706	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5707$as_echo_n "checking MzScheme install prefix... " >&6; }
5708if ${vi_cv_path_mzscheme_pfx+:} false; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  	    	    echo "(display (simplify-path		\
5712	       (build-path (call-with-values	\
5713		(lambda () (split-path (find-system-path (quote exec-file)))) \
5714		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5715	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5716		sed -e 's+/$++'`
5717fi
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5719$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5720	    rm -f mzdirs.scm
5721	fi
5722    fi
5723  fi
5724
5725  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5726    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5727$as_echo_n "checking for racket include directory... " >&6; }
5728    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5729    if test "X$SCHEME_INC" != "X"; then
5730      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5731$as_echo "${SCHEME_INC}" >&6; }
5732    else
5733      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5734$as_echo "not found" >&6; }
5735      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5736$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5737      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5738	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5739	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5740$as_echo "yes" >&6; }
5741      else
5742	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743$as_echo "no" >&6; }
5744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5745$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5746	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5747	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5748$as_echo "yes" >&6; }
5749	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5750	else
5751	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752$as_echo "no" >&6; }
5753	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5754$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5755	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5756	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5757$as_echo "yes" >&6; }
5758	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5759	  else
5760	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761$as_echo "no" >&6; }
5762	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5763$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5764	    if test -f /usr/include/plt/scheme.h; then
5765	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5766$as_echo "yes" >&6; }
5767	      SCHEME_INC=/usr/include/plt
5768	    else
5769	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770$as_echo "no" >&6; }
5771	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5772$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5773	      if test -f /usr/include/racket/scheme.h; then
5774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5775$as_echo "yes" >&6; }
5776		SCHEME_INC=/usr/include/racket
5777	      else
5778		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779$as_echo "no" >&6; }
5780		vi_cv_path_mzscheme_pfx=
5781	      fi
5782	    fi
5783	  fi
5784	fi
5785      fi
5786    fi
5787  fi
5788
5789  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5790
5791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5792$as_echo_n "checking for racket lib directory... " >&6; }
5793    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5794    if test "X$SCHEME_LIB" != "X"; then
5795      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5796$as_echo "${SCHEME_LIB}" >&6; }
5797    else
5798      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5799$as_echo "not found" >&6; }
5800    fi
5801
5802    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5803      if test "X$path" != "X"; then
5804	if test "x$MACOS_X" = "xyes"; then
5805	  MZSCHEME_LIBS="-framework Racket"
5806	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5807	elif test -f "${path}/libmzscheme3m.a"; then
5808	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5809	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5810	elif test -f "${path}/libracket3m.a"; then
5811	  MZSCHEME_LIBS="${path}/libracket3m.a"
5812	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5813	elif test -f "${path}/libracket.a"; then
5814	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5815	elif test -f "${path}/libmzscheme.a"; then
5816	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5817	else
5818	  	  if test -f "${path}/libmzscheme3m.so"; then
5819	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5820	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5821	  elif test -f "${path}/libracket3m.so"; then
5822	    MZSCHEME_LIBS="-L${path} -lracket3m"
5823	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5824	  elif test -f "${path}/libracket.so"; then
5825	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5826	  else
5827	    	    if test "$path" != "$SCHEME_LIB"; then
5828	      continue
5829	    fi
5830	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5831	  fi
5832	  if test "$GCC" = yes; then
5833	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5834	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5835				   uname -r | grep '^5' >/dev/null; then
5836	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5837	  fi
5838	fi
5839      fi
5840      if test "X$MZSCHEME_LIBS" != "X"; then
5841	break
5842      fi
5843    done
5844
5845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5846$as_echo_n "checking if racket requires -pthread... " >&6; }
5847    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5848      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5849$as_echo "yes" >&6; }
5850      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5851      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5852    else
5853      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854$as_echo "no" >&6; }
5855    fi
5856
5857    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5858$as_echo_n "checking for racket config directory... " >&6; }
5859    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5860    if test "X$SCHEME_CONFIGDIR" != "X"; then
5861      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5862      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5863$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5864    else
5865      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5866$as_echo "not found" >&6; }
5867    fi
5868
5869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5870$as_echo_n "checking for racket collects directory... " >&6; }
5871    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))))'`
5872    if test "X$SCHEME_COLLECTS" = "X"; then
5873      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5874	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5875      else
5876	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5877	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5878	else
5879	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5880	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5881	  else
5882	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5883	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5884	    fi
5885	  fi
5886	fi
5887      fi
5888    fi
5889    if test "X$SCHEME_COLLECTS" != "X" ; then
5890      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5891$as_echo "${SCHEME_COLLECTS}" >&6; }
5892    else
5893      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5894$as_echo "not found" >&6; }
5895    fi
5896
5897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5898$as_echo_n "checking for mzscheme_base.c... " >&6; }
5899    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5900      MZSCHEME_EXTRA="mzscheme_base.c"
5901      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5902      MZSCHEME_MOD="++lib scheme/base"
5903    else
5904      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5905	MZSCHEME_EXTRA="mzscheme_base.c"
5906	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5907	MZSCHEME_MOD="++lib scheme/base"
5908      else
5909	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5910	  MZSCHEME_EXTRA="mzscheme_base.c"
5911	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5912	  MZSCHEME_MOD=""
5913	fi
5914      fi
5915    fi
5916    if test "X$MZSCHEME_EXTRA" != "X" ; then
5917            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5918      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5919$as_echo "needed" >&6; }
5920    else
5921      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5922$as_echo "not needed" >&6; }
5923    fi
5924
5925        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5926$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5927if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  ac_check_lib_save_LIBS=$LIBS
5931LIBS="-lffi  $LIBS"
5932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933/* end confdefs.h.  */
5934
5935/* Override any GCC internal prototype to avoid an error.
5936   Use char because int might match the return type of a GCC
5937   builtin and then its argument prototype would still apply.  */
5938#ifdef __cplusplus
5939extern "C"
5940#endif
5941char ffi_type_void ();
5942int
5943main ()
5944{
5945return ffi_type_void ();
5946  ;
5947  return 0;
5948}
5949_ACEOF
5950if ac_fn_c_try_link "$LINENO"; then :
5951  ac_cv_lib_ffi_ffi_type_void=yes
5952else
5953  ac_cv_lib_ffi_ffi_type_void=no
5954fi
5955rm -f core conftest.err conftest.$ac_objext \
5956    conftest$ac_exeext conftest.$ac_ext
5957LIBS=$ac_check_lib_save_LIBS
5958fi
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5960$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5961if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5962  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5963fi
5964
5965
5966    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5967      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5968
5969        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5970$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5971    cflags_save=$CFLAGS
5972    libs_save=$LIBS
5973    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5974    LIBS="$LIBS $MZSCHEME_LIBS"
5975    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h.  */
5977
5978int
5979main ()
5980{
5981
5982  ;
5983  return 0;
5984}
5985_ACEOF
5986if ac_fn_c_try_link "$LINENO"; then :
5987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5988$as_echo "yes" >&6; }; mzs_ok=yes
5989else
5990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5991$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5992fi
5993rm -f core conftest.err conftest.$ac_objext \
5994    conftest$ac_exeext conftest.$ac_ext
5995    CFLAGS=$cflags_save
5996    LIBS=$libs_save
5997    if test $mzs_ok = yes; then
5998      MZSCHEME_SRC="if_mzsch.c"
5999      MZSCHEME_OBJ="objects/if_mzsch.o"
6000      MZSCHEME_PRO="if_mzsch.pro"
6001      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
6002
6003    else
6004      MZSCHEME_CFLAGS=
6005      MZSCHEME_LIBS=
6006      MZSCHEME_EXTRA=
6007      MZSCHEME_MZC=
6008    fi
6009  fi
6010
6011
6012
6013
6014
6015
6016
6017fi
6018
6019
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
6021$as_echo_n "checking --enable-perlinterp argument... " >&6; }
6022# Check whether --enable-perlinterp was given.
6023if test "${enable_perlinterp+set}" = set; then :
6024  enableval=$enable_perlinterp;
6025else
6026  enable_perlinterp="no"
6027fi
6028
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
6030$as_echo "$enable_perlinterp" >&6; }
6031if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
6032  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6033    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
6034  fi
6035
6036  # Extract the first word of "perl", so it can be a program name with args.
6037set dummy perl; ac_word=$2
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039$as_echo_n "checking for $ac_word... " >&6; }
6040if ${ac_cv_path_vi_cv_path_perl+:} false; then :
6041  $as_echo_n "(cached) " >&6
6042else
6043  case $vi_cv_path_perl in
6044  [\\/]* | ?:[\\/]*)
6045  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
6046  ;;
6047  *)
6048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051  IFS=$as_save_IFS
6052  test -z "$as_dir" && as_dir=.
6053    for ac_exec_ext in '' $ac_executable_extensions; do
6054  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
6056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057    break 2
6058  fi
6059done
6060  done
6061IFS=$as_save_IFS
6062
6063  ;;
6064esac
6065fi
6066vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
6067if test -n "$vi_cv_path_perl"; then
6068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
6069$as_echo "$vi_cv_path_perl" >&6; }
6070else
6071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }
6073fi
6074
6075
6076  if test "X$vi_cv_path_perl" != "X"; then
6077    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
6078$as_echo_n "checking Perl version... " >&6; }
6079    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
6080     eval `$vi_cv_path_perl -V:usethreads`
6081     eval `$vi_cv_path_perl -V:libperl`
6082     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
6083       badthreads=no
6084     else
6085       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
6086	 eval `$vi_cv_path_perl -V:use5005threads`
6087	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
6088	   badthreads=no
6089	 else
6090	   badthreads=yes
6091	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
6092$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
6093	 fi
6094       else
6095	 badthreads=yes
6096	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
6097$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
6098       fi
6099     fi
6100     if test $badthreads = no; then
6101      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6102$as_echo "OK" >&6; }
6103      eval `$vi_cv_path_perl -V:shrpenv`
6104      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
6105	shrpenv=""
6106      fi
6107      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
6108
6109      vi_cv_perl_extutils=unknown_perl_extutils_path
6110      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
6111	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
6112	if test -f "$xsubpp_path"; then
6113	  vi_cv_perl_xsubpp="$xsubpp_path"
6114	fi
6115      done
6116
6117                              perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
6118		-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
6119		-e 's/-fdebug-prefix-map[^ ]*//g' \
6120		-e 's/-pipe //' \
6121		-e 's/-W[^ ]*//g' \
6122		-e 's/-D_FORTIFY_SOURCE=.//g'`
6123            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
6124		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
6125			-e 's/-bE:perl.exp//' -e 's/-lc //'`
6126                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
6127		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
6128
6129                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
6130$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
6131      cflags_save=$CFLAGS
6132      libs_save=$LIBS
6133      ldflags_save=$LDFLAGS
6134      CFLAGS="$CFLAGS $perlcppflags"
6135      LIBS="$LIBS $perllibs"
6136      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
6137      LDFLAGS="$perlldflags $LDFLAGS"
6138      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h.  */
6140
6141int
6142main ()
6143{
6144
6145  ;
6146  return 0;
6147}
6148_ACEOF
6149if ac_fn_c_try_link "$LINENO"; then :
6150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6151$as_echo "yes" >&6; }; perl_ok=yes
6152else
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
6154$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
6155fi
6156rm -f core conftest.err conftest.$ac_objext \
6157    conftest$ac_exeext conftest.$ac_ext
6158      CFLAGS=$cflags_save
6159      LIBS=$libs_save
6160      LDFLAGS=$ldflags_save
6161      if test $perl_ok = yes; then
6162	if test "X$perlcppflags" != "X"; then
6163	  PERL_CFLAGS=$perlcppflags
6164	fi
6165	if test "X$perlldflags" != "X"; then
6166	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
6167	    LDFLAGS="$perlldflags $LDFLAGS"
6168	  fi
6169	fi
6170	PERL_LIBS=$perllibs
6171	PERL_SRC="auto/if_perl.c if_perlsfio.c"
6172	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
6173	PERL_PRO="if_perl.pro if_perlsfio.pro"
6174	$as_echo "#define FEAT_PERL 1" >>confdefs.h
6175
6176      fi
6177     fi
6178    else
6179      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
6180$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
6181    fi
6182  fi
6183
6184  if test "x$MACOS_X" = "xyes"; then
6185        dir=/System/Library/Perl
6186    darwindir=$dir/darwin
6187    if test -d $darwindir; then
6188      PERL=/usr/bin/perl
6189    else
6190            dir=/System/Library/Perl/5.8.1
6191      darwindir=$dir/darwin-thread-multi-2level
6192      if test -d $darwindir; then
6193	PERL=/usr/bin/perl
6194      fi
6195    fi
6196    if test -n "$PERL"; then
6197      PERL_DIR="$dir"
6198      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
6199      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
6200      PERL_LIBS="-L$darwindir/CORE -lperl"
6201    fi
6202                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6203    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6204  fi
6205  if test "$enable_perlinterp" = "dynamic"; then
6206    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
6207      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
6208
6209      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
6210    fi
6211  fi
6212
6213  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
6214    as_fn_error $? "could not configure perl" "$LINENO" 5
6215  fi
6216fi
6217
6218
6219
6220
6221
6222
6223
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
6225$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
6226# Check whether --enable-pythoninterp was given.
6227if test "${enable_pythoninterp+set}" = set; then :
6228  enableval=$enable_pythoninterp;
6229else
6230  enable_pythoninterp="no"
6231fi
6232
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
6234$as_echo "$enable_pythoninterp" >&6; }
6235if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
6236  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6237    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6238  fi
6239
6240    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5
6241$as_echo_n "checking --with-python-command argument... " >&6; }
6242
6243
6244# Check whether --with-python-command was given.
6245if test "${with_python_command+set}" = set; then :
6246  withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6247$as_echo "$vi_cv_path_python" >&6; }
6248else
6249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250$as_echo "no" >&6; }
6251fi
6252
6253
6254  if test "X$vi_cv_path_python" = "X"; then
6255    for ac_prog in python2 python
6256do
6257  # Extract the first word of "$ac_prog", so it can be a program name with args.
6258set dummy $ac_prog; ac_word=$2
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260$as_echo_n "checking for $ac_word... " >&6; }
6261if ${ac_cv_path_vi_cv_path_python+:} false; then :
6262  $as_echo_n "(cached) " >&6
6263else
6264  case $vi_cv_path_python in
6265  [\\/]* | ?:[\\/]*)
6266  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
6267  ;;
6268  *)
6269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272  IFS=$as_save_IFS
6273  test -z "$as_dir" && as_dir=.
6274    for ac_exec_ext in '' $ac_executable_extensions; do
6275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
6277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278    break 2
6279  fi
6280done
6281  done
6282IFS=$as_save_IFS
6283
6284  ;;
6285esac
6286fi
6287vi_cv_path_python=$ac_cv_path_vi_cv_path_python
6288if test -n "$vi_cv_path_python"; then
6289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6290$as_echo "$vi_cv_path_python" >&6; }
6291else
6292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293$as_echo "no" >&6; }
6294fi
6295
6296
6297  test -n "$vi_cv_path_python" && break
6298done
6299
6300  fi
6301  if test "X$vi_cv_path_python" != "X"; then
6302
6303        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6304$as_echo_n "checking Python version... " >&6; }
6305if ${vi_cv_var_python_version+:} false; then :
6306  $as_echo_n "(cached) " >&6
6307else
6308  vi_cv_var_python_version=`
6309	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
6310
6311fi
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
6313$as_echo "$vi_cv_var_python_version" >&6; }
6314
6315        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
6316$as_echo_n "checking Python is 2.3 or better... " >&6; }
6317    if ${vi_cv_path_python} -c \
6318	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
6319    then
6320      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6321$as_echo "yep" >&6; }
6322
6323            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6324$as_echo_n "checking Python's install prefix... " >&6; }
6325if ${vi_cv_path_python_pfx+:} false; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328   vi_cv_path_python_pfx=`
6329	    ${vi_cv_path_python} -c \
6330		"import sys; print sys.prefix"`
6331fi
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
6333$as_echo "$vi_cv_path_python_pfx" >&6; }
6334
6335            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6336$as_echo_n "checking Python's execution prefix... " >&6; }
6337if ${vi_cv_path_python_epfx+:} false; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340   vi_cv_path_python_epfx=`
6341	    ${vi_cv_path_python} -c \
6342		"import sys; print sys.exec_prefix"`
6343fi
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
6345$as_echo "$vi_cv_path_python_epfx" >&6; }
6346
6347
6348      if ${vi_cv_path_pythonpath+:} false; then :
6349  $as_echo_n "(cached) " >&6
6350else
6351   vi_cv_path_pythonpath=`
6352	    unset PYTHONPATH;
6353	    ${vi_cv_path_python} -c \
6354		"import sys, string; print string.join(sys.path,':')"`
6355fi
6356
6357
6358
6359
6360# Check whether --with-python-config-dir was given.
6361if test "${with_python_config_dir+set}" = set; then :
6362  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"; have_python_config_dir=1
6363fi
6364
6365
6366      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6367$as_echo_n "checking Python's configuration directory... " >&6; }
6368if ${vi_cv_path_python_conf+:} false; then :
6369  $as_echo_n "(cached) " >&6
6370else
6371
6372	vi_cv_path_python_conf=
6373	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
6374	if test -d "$d" && test -f "$d/config.c"; then
6375	  vi_cv_path_python_conf="$d"
6376	else
6377	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
6378	    for subdir in lib64 lib share; do
6379	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
6380	      if test -d "$d" && test -f "$d/config.c"; then
6381		vi_cv_path_python_conf="$d"
6382	      fi
6383	    done
6384	  done
6385	fi
6386
6387fi
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
6389$as_echo "$vi_cv_path_python_conf" >&6; }
6390
6391      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
6392
6393      if test "X$PYTHON_CONFDIR" = "X"; then
6394	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6395$as_echo "can't find it!" >&6; }
6396      else
6397
6398			if ${vi_cv_path_python_plibs+:} false; then :
6399  $as_echo_n "(cached) " >&6
6400else
6401
6402	    pwd=`pwd`
6403	    tmp_mkf="$pwd/config-PyMake$$"
6404	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6405__:
6406	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
6407	@echo "python_LIBS='$(LIBS)'"
6408	@echo "python_SYSLIBS='$(SYSLIBS)'"
6409	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
6410	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
6411	@echo "python_INSTSONAME='$(INSTSONAME)'"
6412	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
6413	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
6414	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
6415eof
6416	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6417	    rm -f -- "${tmp_mkf}"
6418	    if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6419		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6420	      vi_cv_path_python_plibs="-framework Python"
6421	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6422		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6423	      fi
6424	    else
6425	      vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6426	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6427	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6428		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6429	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6430	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6431		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6432		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6433	            	            		  fi
6434	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6435	        fi
6436	      fi
6437	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6438	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6439	    fi
6440
6441fi
6442
6443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6444$as_echo_n "checking Python's dll name... " >&6; }
6445if ${vi_cv_dll_name_python+:} false; then :
6446  $as_echo_n "(cached) " >&6
6447else
6448
6449	  if test "X$python_DLLLIBRARY" != "X"; then
6450	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6451	  else
6452	    vi_cv_dll_name_python="$python_INSTSONAME"
6453	  fi
6454
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6457$as_echo "$vi_cv_dll_name_python" >&6; }
6458
6459	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6460	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6461	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
6462	else
6463	  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}"
6464	fi
6465	if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then
6466	  	  PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6467
6468	fi
6469	PYTHON_SRC="if_python.c"
6470	PYTHON_OBJ="objects/if_python.o"
6471
6472								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6473$as_echo_n "checking if -pthread should be used... " >&6; }
6474	threadsafe_flag=
6475	thread_lib=
6476	        if test "`(uname) 2>/dev/null`" != Darwin; then
6477	  test "$GCC" = yes && threadsafe_flag="-pthread"
6478	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6479	    threadsafe_flag="-D_THREAD_SAFE"
6480	    thread_lib="-pthread"
6481	  fi
6482	  if test "`(uname) 2>/dev/null`" = SunOS; then
6483	    threadsafe_flag="-pthreads"
6484	  fi
6485	fi
6486	libs_save_old=$LIBS
6487	if test -n "$threadsafe_flag"; then
6488	  cflags_save=$CFLAGS
6489	  CFLAGS="$CFLAGS $threadsafe_flag"
6490	  LIBS="$LIBS $thread_lib"
6491	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h.  */
6493
6494int
6495main ()
6496{
6497
6498  ;
6499  return 0;
6500}
6501_ACEOF
6502if ac_fn_c_try_link "$LINENO"; then :
6503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6504$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6505else
6506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507$as_echo "no" >&6; }; LIBS=$libs_save_old
6508
6509fi
6510rm -f core conftest.err conftest.$ac_objext \
6511    conftest$ac_exeext conftest.$ac_ext
6512	  CFLAGS=$cflags_save
6513	else
6514	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516	fi
6517
6518			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6519$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6520	cflags_save=$CFLAGS
6521	libs_save=$LIBS
6522	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6523	LIBS="$LIBS $PYTHON_LIBS"
6524	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525/* end confdefs.h.  */
6526
6527int
6528main ()
6529{
6530
6531  ;
6532  return 0;
6533}
6534_ACEOF
6535if ac_fn_c_try_link "$LINENO"; then :
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6537$as_echo "yes" >&6; }; python_ok=yes
6538else
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6540$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6541fi
6542rm -f core conftest.err conftest.$ac_objext \
6543    conftest$ac_exeext conftest.$ac_ext
6544	CFLAGS=$cflags_save
6545	LIBS=$libs_save
6546	if test $python_ok = yes; then
6547	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6548
6549	else
6550	  LIBS=$libs_save_old
6551	  PYTHON_SRC=
6552	  PYTHON_OBJ=
6553	  PYTHON_LIBS=
6554	  PYTHON_CFLAGS=
6555	fi
6556      fi
6557    else
6558      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6559$as_echo "too old" >&6; }
6560    fi
6561  fi
6562
6563  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6564    as_fn_error $? "could not configure python" "$LINENO" 5
6565  fi
6566fi
6567
6568
6569
6570
6571
6572
6573
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6575$as_echo_n "checking --enable-python3interp argument... " >&6; }
6576# Check whether --enable-python3interp was given.
6577if test "${enable_python3interp+set}" = set; then :
6578  enableval=$enable_python3interp;
6579else
6580  enable_python3interp="no"
6581fi
6582
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6584$as_echo "$enable_python3interp" >&6; }
6585if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6586  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6587    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6588  fi
6589
6590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5
6591$as_echo_n "checking --with-python3-command argument... " >&6; }
6592
6593
6594# Check whether --with-python3-command was given.
6595if test "${with_python3_command+set}" = set; then :
6596  withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6597$as_echo "$vi_cv_path_python3" >&6; }
6598else
6599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600$as_echo "no" >&6; }
6601fi
6602
6603
6604  if test "X$vi_cv_path_python3" = "X"; then
6605    for ac_prog in python3 python
6606do
6607  # Extract the first word of "$ac_prog", so it can be a program name with args.
6608set dummy $ac_prog; ac_word=$2
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610$as_echo_n "checking for $ac_word... " >&6; }
6611if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6612  $as_echo_n "(cached) " >&6
6613else
6614  case $vi_cv_path_python3 in
6615  [\\/]* | ?:[\\/]*)
6616  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6617  ;;
6618  *)
6619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622  IFS=$as_save_IFS
6623  test -z "$as_dir" && as_dir=.
6624    for ac_exec_ext in '' $ac_executable_extensions; do
6625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628    break 2
6629  fi
6630done
6631  done
6632IFS=$as_save_IFS
6633
6634  ;;
6635esac
6636fi
6637vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6638if test -n "$vi_cv_path_python3"; then
6639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6640$as_echo "$vi_cv_path_python3" >&6; }
6641else
6642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643$as_echo "no" >&6; }
6644fi
6645
6646
6647  test -n "$vi_cv_path_python3" && break
6648done
6649
6650  fi
6651  if test "X$vi_cv_path_python3" != "X"; then
6652
6653        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6654$as_echo_n "checking Python version... " >&6; }
6655if ${vi_cv_var_python3_version+:} false; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  vi_cv_var_python3_version=`
6659          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6660
6661fi
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6663$as_echo "$vi_cv_var_python3_version" >&6; }
6664
6665        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6666$as_echo_n "checking Python is 3.0 or better... " >&6; }
6667    if ${vi_cv_path_python3} -c \
6668      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6669    then
6670      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6671$as_echo "yep" >&6; }
6672
6673            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6674$as_echo_n "checking Python's abiflags... " >&6; }
6675if ${vi_cv_var_python3_abiflags+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678
6679       vi_cv_var_python3_abiflags=
6680       if ${vi_cv_path_python3} -c \
6681           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6682       then
6683         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6684           "import sys; print(sys.abiflags)"`
6685       fi
6686fi
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6688$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6689
6690            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6691$as_echo_n "checking Python's install prefix... " >&6; }
6692if ${vi_cv_path_python3_pfx+:} false; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695   vi_cv_path_python3_pfx=`
6696       ${vi_cv_path_python3} -c \
6697       "import sys; print(sys.prefix)"`
6698fi
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6700$as_echo "$vi_cv_path_python3_pfx" >&6; }
6701
6702            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6703$as_echo_n "checking Python's execution prefix... " >&6; }
6704if ${vi_cv_path_python3_epfx+:} false; then :
6705  $as_echo_n "(cached) " >&6
6706else
6707   vi_cv_path_python3_epfx=`
6708       ${vi_cv_path_python3} -c \
6709       "import sys; print(sys.exec_prefix)"`
6710fi
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6712$as_echo "$vi_cv_path_python3_epfx" >&6; }
6713
6714
6715      if ${vi_cv_path_python3path+:} false; then :
6716  $as_echo_n "(cached) " >&6
6717else
6718   vi_cv_path_python3path=`
6719       unset PYTHONPATH;
6720       ${vi_cv_path_python3} -c \
6721       "import sys, string; print(':'.join(sys.path))"`
6722fi
6723
6724
6725
6726
6727# Check whether --with-python3-config-dir was given.
6728if test "${with_python3_config_dir+set}" = set; then :
6729  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1
6730fi
6731
6732
6733      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6734$as_echo_n "checking Python's configuration directory... " >&6; }
6735if ${vi_cv_path_python3_conf+:} false; then :
6736  $as_echo_n "(cached) " >&6
6737else
6738
6739       vi_cv_path_python3_conf=
6740       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6741       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6742       if test -d "$d" && test -f "$d/config.c"; then
6743         vi_cv_path_python3_conf="$d"
6744       else
6745         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6746	   for subdir in lib64 lib share; do
6747	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6748	     if test -d "$d" && test -f "$d/config.c"; then
6749	       vi_cv_path_python3_conf="$d"
6750	     fi
6751	   done
6752         done
6753       fi
6754
6755fi
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6757$as_echo "$vi_cv_path_python3_conf" >&6; }
6758
6759      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6760
6761      if test "X$PYTHON3_CONFDIR" = "X"; then
6762        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6763$as_echo "can't find it!" >&6; }
6764      else
6765
6766                        if ${vi_cv_path_python3_plibs+:} false; then :
6767  $as_echo_n "(cached) " >&6
6768else
6769
6770            pwd=`pwd`
6771            tmp_mkf="$pwd/config-PyMake$$"
6772            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6773__:
6774	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6775	@echo "python3_LIBS='$(LIBS)'"
6776	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6777	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6778	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6779eof
6780	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6781	    rm -f -- "${tmp_mkf}"
6782	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6783	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6784	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6785	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6786
6787fi
6788
6789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6790$as_echo_n "checking Python3's dll name... " >&6; }
6791if ${vi_cv_dll_name_python3+:} false; then :
6792  $as_echo_n "(cached) " >&6
6793else
6794
6795	  if test "X$python3_DLLLIBRARY" != "X"; then
6796	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6797	  else
6798	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6799	  fi
6800
6801fi
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6803$as_echo "$vi_cv_dll_name_python3" >&6; }
6804
6805        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6806        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6807          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6808        else
6809          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}"
6810        fi
6811	if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then
6812	  	  PYTHON3_CFLAGS="${PYTHON3_CFLAGS}  -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6813	fi
6814        PYTHON3_SRC="if_python3.c"
6815        PYTHON3_OBJ="objects/if_python3.o"
6816
6817                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6818$as_echo_n "checking if -pthread should be used... " >&6; }
6819        threadsafe_flag=
6820        thread_lib=
6821                if test "`(uname) 2>/dev/null`" != Darwin; then
6822          test "$GCC" = yes && threadsafe_flag="-pthread"
6823          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6824            threadsafe_flag="-D_THREAD_SAFE"
6825            thread_lib="-pthread"
6826          fi
6827          if test "`(uname) 2>/dev/null`" = SunOS; then
6828            threadsafe_flag="-pthreads"
6829          fi
6830        fi
6831        libs_save_old=$LIBS
6832        if test -n "$threadsafe_flag"; then
6833          cflags_save=$CFLAGS
6834          CFLAGS="$CFLAGS $threadsafe_flag"
6835          LIBS="$LIBS $thread_lib"
6836          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h.  */
6838
6839int
6840main ()
6841{
6842
6843  ;
6844  return 0;
6845}
6846_ACEOF
6847if ac_fn_c_try_link "$LINENO"; then :
6848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6849$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6850else
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }; LIBS=$libs_save_old
6853
6854fi
6855rm -f core conftest.err conftest.$ac_objext \
6856    conftest$ac_exeext conftest.$ac_ext
6857          CFLAGS=$cflags_save
6858        else
6859          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860$as_echo "no" >&6; }
6861        fi
6862
6863                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6864$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6865        cflags_save=$CFLAGS
6866        libs_save=$LIBS
6867        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6868        LIBS="$LIBS $PYTHON3_LIBS"
6869        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870/* end confdefs.h.  */
6871
6872int
6873main ()
6874{
6875
6876  ;
6877  return 0;
6878}
6879_ACEOF
6880if ac_fn_c_try_link "$LINENO"; then :
6881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6882$as_echo "yes" >&6; }; python3_ok=yes
6883else
6884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6885$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6886fi
6887rm -f core conftest.err conftest.$ac_objext \
6888    conftest$ac_exeext conftest.$ac_ext
6889        CFLAGS=$cflags_save
6890        LIBS=$libs_save
6891        if test "$python3_ok" = yes; then
6892          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6893
6894        else
6895          LIBS=$libs_save_old
6896          PYTHON3_SRC=
6897          PYTHON3_OBJ=
6898          PYTHON3_LIBS=
6899          PYTHON3_CFLAGS=
6900        fi
6901      fi
6902    else
6903      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6904$as_echo "too old" >&6; }
6905    fi
6906  fi
6907  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6908    as_fn_error $? "could not configure python3" "$LINENO" 5
6909  fi
6910fi
6911
6912
6913
6914
6915
6916
6917if test "$python_ok" = yes && test "$python3_ok" = yes; then
6918  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6919
6920  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6921
6922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6923$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6924  cflags_save=$CFLAGS
6925  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6926  libs_save=$LIBS
6927    LIBS="-ldl $LIBS"
6928  if test "$cross_compiling" = yes; then :
6929  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6931as_fn_error $? "cannot run test program while cross compiling
6932See \`config.log' for more details" "$LINENO" 5; }
6933else
6934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935/* end confdefs.h.  */
6936
6937    #include <dlfcn.h>
6938    /* If this program fails, then RTLD_GLOBAL is needed.
6939     * RTLD_GLOBAL will be used and then it is not possible to
6940     * have both python versions enabled in the same vim instance.
6941     * Only the first python version used will be switched on.
6942     */
6943
6944    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6945    {
6946      int needed = 0;
6947      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6948      if (pylib != 0)
6949      {
6950          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6951          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6952          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6953          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6954          (*pfx)(prefix);
6955          (*init)();
6956          needed = (*simple)("import termios") == -1;
6957          (*final)();
6958          dlclose(pylib);
6959      }
6960      return !needed;
6961    }
6962
6963    int main(int argc, char** argv)
6964    {
6965      int not_needed = 0;
6966      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6967            not_needed = 1;
6968      return !not_needed;
6969    }
6970_ACEOF
6971if ac_fn_c_try_run "$LINENO"; then :
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6973$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6974
6975else
6976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977$as_echo "no" >&6; }
6978fi
6979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6980  conftest.$ac_objext conftest.beam conftest.$ac_ext
6981fi
6982
6983
6984  CFLAGS=$cflags_save
6985  LIBS=$libs_save
6986
6987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6988$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6989  cflags_save=$CFLAGS
6990  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6991  libs_save=$LIBS
6992    LIBS="-ldl $LIBS"
6993  if test "$cross_compiling" = yes; then :
6994  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6996as_fn_error $? "cannot run test program while cross compiling
6997See \`config.log' for more details" "$LINENO" 5; }
6998else
6999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000/* end confdefs.h.  */
7001
7002    #include <dlfcn.h>
7003    #include <wchar.h>
7004    /* If this program fails, then RTLD_GLOBAL is needed.
7005     * RTLD_GLOBAL will be used and then it is not possible to
7006     * have both python versions enabled in the same vim instance.
7007     * Only the first python version used will be switched on.
7008     */
7009
7010    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
7011    {
7012      int needed = 0;
7013      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
7014      if (pylib != 0)
7015      {
7016          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
7017          void (*init)(void) = dlsym(pylib, "Py_Initialize");
7018          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
7019          void (*final)(void) = dlsym(pylib, "Py_Finalize");
7020          (*pfx)(prefix);
7021          (*init)();
7022          needed = (*simple)("import termios") == -1;
7023          (*final)();
7024          dlclose(pylib);
7025      }
7026      return !needed;
7027    }
7028
7029    int main(int argc, char** argv)
7030    {
7031      int not_needed = 0;
7032      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
7033            not_needed = 1;
7034      return !not_needed;
7035    }
7036_ACEOF
7037if ac_fn_c_try_run "$LINENO"; then :
7038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7039$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
7040
7041else
7042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043$as_echo "no" >&6; }
7044fi
7045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7046  conftest.$ac_objext conftest.beam conftest.$ac_ext
7047fi
7048
7049
7050  CFLAGS=$cflags_save
7051  LIBS=$libs_save
7052
7053  PYTHON_SRC="if_python.c"
7054  PYTHON_OBJ="objects/if_python.o"
7055  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7056  PYTHON_LIBS=
7057  PYTHON3_SRC="if_python3.c"
7058  PYTHON3_OBJ="objects/if_python3.o"
7059  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7060  PYTHON3_LIBS=
7061elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
7062  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
7063
7064  PYTHON_SRC="if_python.c"
7065  PYTHON_OBJ="objects/if_python.o"
7066  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7067  PYTHON_LIBS=
7068elif test "$python_ok" = yes; then
7069      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
7070$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
7071  cflags_save=$CFLAGS
7072  libs_save=$LIBS
7073  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
7074  LIBS="$LIBS $PYTHON_LIBS"
7075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076/* end confdefs.h.  */
7077
7078int
7079main ()
7080{
7081
7082  ;
7083  return 0;
7084}
7085_ACEOF
7086if ac_fn_c_try_link "$LINENO"; then :
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7088$as_echo "yes" >&6; }; fpie_ok=yes
7089else
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091$as_echo "no" >&6; }; fpie_ok=no
7092fi
7093rm -f core conftest.err conftest.$ac_objext \
7094    conftest$ac_exeext conftest.$ac_ext
7095  CFLAGS=$cflags_save
7096  LIBS=$libs_save
7097  if test $fpie_ok = yes; then
7098    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
7099  fi
7100elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
7101  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
7102
7103  PYTHON3_SRC="if_python3.c"
7104  PYTHON3_OBJ="objects/if_python3.o"
7105  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7106  PYTHON3_LIBS=
7107elif test "$python3_ok" = yes; then
7108      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
7109$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
7110  cflags_save=$CFLAGS
7111  libs_save=$LIBS
7112  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
7113  LIBS="$LIBS $PYTHON3_LIBS"
7114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115/* end confdefs.h.  */
7116
7117int
7118main ()
7119{
7120
7121  ;
7122  return 0;
7123}
7124_ACEOF
7125if ac_fn_c_try_link "$LINENO"; then :
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7127$as_echo "yes" >&6; }; fpie_ok=yes
7128else
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130$as_echo "no" >&6; }; fpie_ok=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext \
7133    conftest$ac_exeext conftest.$ac_ext
7134  CFLAGS=$cflags_save
7135  LIBS=$libs_save
7136  if test $fpie_ok = yes; then
7137    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
7138  fi
7139fi
7140
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
7142$as_echo_n "checking --enable-tclinterp argument... " >&6; }
7143# Check whether --enable-tclinterp was given.
7144if test "${enable_tclinterp+set}" = set; then :
7145  enableval=$enable_tclinterp;
7146else
7147  enable_tclinterp="no"
7148fi
7149
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
7151$as_echo "$enable_tclinterp" >&6; }
7152
7153if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
7154
7155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
7156$as_echo_n "checking --with-tclsh argument... " >&6; }
7157
7158# Check whether --with-tclsh was given.
7159if test "${with_tclsh+set}" = set; then :
7160  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
7161$as_echo "$tclsh_name" >&6; }
7162else
7163  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164$as_echo "no" >&6; }
7165fi
7166
7167  # Extract the first word of "$tclsh_name", so it can be a program name with args.
7168set dummy $tclsh_name; ac_word=$2
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170$as_echo_n "checking for $ac_word... " >&6; }
7171if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174  case $vi_cv_path_tcl in
7175  [\\/]* | ?:[\\/]*)
7176  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7177  ;;
7178  *)
7179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182  IFS=$as_save_IFS
7183  test -z "$as_dir" && as_dir=.
7184    for ac_exec_ext in '' $ac_executable_extensions; do
7185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188    break 2
7189  fi
7190done
7191  done
7192IFS=$as_save_IFS
7193
7194  ;;
7195esac
7196fi
7197vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7198if test -n "$vi_cv_path_tcl"; then
7199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7200$as_echo "$vi_cv_path_tcl" >&6; }
7201else
7202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203$as_echo "no" >&6; }
7204fi
7205
7206
7207
7208
7209    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
7210    tclsh_name="tclsh8.4"
7211    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7212set dummy $tclsh_name; ac_word=$2
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214$as_echo_n "checking for $ac_word... " >&6; }
7215if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7216  $as_echo_n "(cached) " >&6
7217else
7218  case $vi_cv_path_tcl in
7219  [\\/]* | ?:[\\/]*)
7220  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7221  ;;
7222  *)
7223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226  IFS=$as_save_IFS
7227  test -z "$as_dir" && as_dir=.
7228    for ac_exec_ext in '' $ac_executable_extensions; do
7229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232    break 2
7233  fi
7234done
7235  done
7236IFS=$as_save_IFS
7237
7238  ;;
7239esac
7240fi
7241vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7242if test -n "$vi_cv_path_tcl"; then
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7244$as_echo "$vi_cv_path_tcl" >&6; }
7245else
7246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247$as_echo "no" >&6; }
7248fi
7249
7250
7251  fi
7252  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
7253    tclsh_name="tclsh8.2"
7254    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7255set dummy $tclsh_name; ac_word=$2
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257$as_echo_n "checking for $ac_word... " >&6; }
7258if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7259  $as_echo_n "(cached) " >&6
7260else
7261  case $vi_cv_path_tcl in
7262  [\\/]* | ?:[\\/]*)
7263  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7264  ;;
7265  *)
7266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269  IFS=$as_save_IFS
7270  test -z "$as_dir" && as_dir=.
7271    for ac_exec_ext in '' $ac_executable_extensions; do
7272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275    break 2
7276  fi
7277done
7278  done
7279IFS=$as_save_IFS
7280
7281  ;;
7282esac
7283fi
7284vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7285if test -n "$vi_cv_path_tcl"; then
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7287$as_echo "$vi_cv_path_tcl" >&6; }
7288else
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290$as_echo "no" >&6; }
7291fi
7292
7293
7294  fi
7295  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
7296    tclsh_name="tclsh8.0"
7297    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7298set dummy $tclsh_name; ac_word=$2
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300$as_echo_n "checking for $ac_word... " >&6; }
7301if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7302  $as_echo_n "(cached) " >&6
7303else
7304  case $vi_cv_path_tcl in
7305  [\\/]* | ?:[\\/]*)
7306  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7307  ;;
7308  *)
7309  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312  IFS=$as_save_IFS
7313  test -z "$as_dir" && as_dir=.
7314    for ac_exec_ext in '' $ac_executable_extensions; do
7315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318    break 2
7319  fi
7320done
7321  done
7322IFS=$as_save_IFS
7323
7324  ;;
7325esac
7326fi
7327vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7328if test -n "$vi_cv_path_tcl"; then
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7330$as_echo "$vi_cv_path_tcl" >&6; }
7331else
7332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336
7337  fi
7338    if test "X$vi_cv_path_tcl" = "X"; then
7339    tclsh_name="tclsh"
7340    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7341set dummy $tclsh_name; ac_word=$2
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  case $vi_cv_path_tcl in
7348  [\\/]* | ?:[\\/]*)
7349  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7350  ;;
7351  *)
7352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355  IFS=$as_save_IFS
7356  test -z "$as_dir" && as_dir=.
7357    for ac_exec_ext in '' $ac_executable_extensions; do
7358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361    break 2
7362  fi
7363done
7364  done
7365IFS=$as_save_IFS
7366
7367  ;;
7368esac
7369fi
7370vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7371if test -n "$vi_cv_path_tcl"; then
7372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7373$as_echo "$vi_cv_path_tcl" >&6; }
7374else
7375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376$as_echo "no" >&6; }
7377fi
7378
7379
7380  fi
7381  if test "X$vi_cv_path_tcl" != "X"; then
7382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
7383$as_echo_n "checking Tcl version... " >&6; }
7384    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
7385      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
7386      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
7387$as_echo "$tclver - OK" >&6; };
7388      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 -`
7389      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
7390
7391      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
7392$as_echo_n "checking for location of Tcl include... " >&6; }
7393      if test "x$MACOS_X" != "xyes"; then
7394	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
7395      else
7396		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
7397      fi
7398      TCL_INC=
7399      for try in $tclinc; do
7400	if test -f "$try/tcl.h"; then
7401	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
7402$as_echo "$try/tcl.h" >&6; }
7403	  TCL_INC=$try
7404	  break
7405	fi
7406      done
7407      if test -z "$TCL_INC"; then
7408	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7409$as_echo "<not found>" >&6; }
7410	SKIP_TCL=YES
7411      fi
7412      if test -z "$SKIP_TCL"; then
7413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
7414$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
7415	if test "x$MACOS_X" != "xyes"; then
7416	  tclcnf=`echo $tclinc | sed s/include/lib/g`
7417	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
7418	else
7419	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
7420	fi
7421	for try in $tclcnf; do
7422	  if test -f "$try/tclConfig.sh"; then
7423	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
7424$as_echo "$try/tclConfig.sh" >&6; }
7425	    . "$try/tclConfig.sh"
7426	    	    if test "$enable_tclinterp" = "dynamic"; then
7427	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7428	    else
7429	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7430	    fi
7431	    	    	    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'`
7432	    break
7433	  fi
7434	done
7435	if test -z "$TCL_LIBS"; then
7436	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7437$as_echo "<not found>" >&6; }
7438	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7439$as_echo_n "checking for Tcl library by myself... " >&6; }
7440	  tcllib=`echo $tclinc | sed s/include/lib/g`
7441	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7442	  for ext in .so .a ; do
7443	    for ver in "" $tclver ; do
7444	      for try in $tcllib ; do
7445		trylib=tcl$ver$ext
7446		if test -f "$try/lib$trylib" ; then
7447		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7448$as_echo "$try/lib$trylib" >&6; }
7449		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7450		  if test "`(uname) 2>/dev/null`" = SunOS &&
7451					 uname -r | grep '^5' >/dev/null; then
7452		    TCL_LIBS="$TCL_LIBS -R $try"
7453		  fi
7454		  break 3
7455		fi
7456	      done
7457	    done
7458	  done
7459	  if test -z "$TCL_LIBS"; then
7460	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7461$as_echo "<not found>" >&6; }
7462	    SKIP_TCL=YES
7463	  fi
7464	fi
7465	if test -z "$SKIP_TCL"; then
7466	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7467
7468	  TCL_SRC=if_tcl.c
7469	  TCL_OBJ=objects/if_tcl.o
7470	  TCL_PRO=if_tcl.pro
7471	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7472	fi
7473      fi
7474    else
7475      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7476$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7477    fi
7478  fi
7479  if test "$enable_tclinterp" = "dynamic"; then
7480    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7481      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7482
7483      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7484    fi
7485  fi
7486  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7487    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7488  fi
7489fi
7490
7491
7492
7493
7494
7495
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7497$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7498# Check whether --enable-rubyinterp was given.
7499if test "${enable_rubyinterp+set}" = set; then :
7500  enableval=$enable_rubyinterp;
7501else
7502  enable_rubyinterp="no"
7503fi
7504
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7506$as_echo "$enable_rubyinterp" >&6; }
7507if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7508  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7509    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7510  fi
7511
7512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7513$as_echo_n "checking --with-ruby-command argument... " >&6; }
7514
7515
7516# Check whether --with-ruby-command was given.
7517if test "${with_ruby_command+set}" = set; then :
7518  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7519$as_echo "$RUBY_CMD" >&6; }
7520else
7521  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7522$as_echo "defaulting to $RUBY_CMD" >&6; }
7523fi
7524
7525  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7526set dummy $RUBY_CMD; ac_word=$2
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528$as_echo_n "checking for $ac_word... " >&6; }
7529if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532  case $vi_cv_path_ruby in
7533  [\\/]* | ?:[\\/]*)
7534  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7535  ;;
7536  *)
7537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540  IFS=$as_save_IFS
7541  test -z "$as_dir" && as_dir=.
7542    for ac_exec_ext in '' $ac_executable_extensions; do
7543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546    break 2
7547  fi
7548done
7549  done
7550IFS=$as_save_IFS
7551
7552  ;;
7553esac
7554fi
7555vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7556if test -n "$vi_cv_path_ruby"; then
7557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7558$as_echo "$vi_cv_path_ruby" >&6; }
7559else
7560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561$as_echo "no" >&6; }
7562fi
7563
7564
7565  if test "X$vi_cv_path_ruby" != "X"; then
7566    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7567$as_echo_n "checking Ruby version... " >&6; }
7568    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7569      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7570$as_echo "OK" >&6; }
7571      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7572$as_echo_n "checking Ruby rbconfig... " >&6; }
7573      ruby_rbconfig="RbConfig"
7574      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7575	ruby_rbconfig="Config"
7576      fi
7577      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7578$as_echo "$ruby_rbconfig" >&6; }
7579      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7580$as_echo_n "checking Ruby header files... " >&6; }
7581      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7582      if test "X$rubyhdrdir" != "X"; then
7583	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7584$as_echo "$rubyhdrdir" >&6; }
7585	RUBY_CFLAGS="-I$rubyhdrdir"
7586        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7587        if test -d "$rubyarchdir"; then
7588          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7589        fi
7590        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7591	if test "X$rubyversion" = "X"; then
7592	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7593	fi
7594        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7595	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7596	if test "X$rubylibs" != "X"; then
7597	  RUBY_LIBS="$rubylibs"
7598	fi
7599	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7600	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7601	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7602	if test -f "$rubylibdir/$librubya"; then
7603	  librubyarg="$librubyarg"
7604	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7605	elif test "$librubyarg" = "libruby.a"; then
7606	  	  librubyarg="-lruby"
7607	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7608	fi
7609
7610	if test "X$librubyarg" != "X"; then
7611	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7612	fi
7613	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7614	if test "X$rubyldflags" != "X"; then
7615	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7616	  if test "X$rubyldflags" != "X"; then
7617	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7618	      LDFLAGS="$rubyldflags $LDFLAGS"
7619	    fi
7620	  fi
7621	fi
7622	RUBY_SRC="if_ruby.c"
7623	RUBY_OBJ="objects/if_ruby.o"
7624	RUBY_PRO="if_ruby.pro"
7625	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7626
7627	if test "$enable_rubyinterp" = "dynamic"; then
7628	  libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"`
7629	  if test -z "$libruby_soname"; then
7630	    libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7631	  fi
7632	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7633
7634	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" $RUBY_CFLAGS"
7635	  RUBY_LIBS=
7636	fi
7637      else
7638	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7639$as_echo "not found; disabling Ruby" >&6; }
7640      fi
7641    else
7642      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7643$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7644    fi
7645  fi
7646
7647  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7648    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7649  fi
7650fi
7651
7652
7653
7654
7655
7656
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7658$as_echo_n "checking --enable-cscope argument... " >&6; }
7659# Check whether --enable-cscope was given.
7660if test "${enable_cscope+set}" = set; then :
7661  enableval=$enable_cscope;
7662else
7663  enable_cscope="no"
7664fi
7665
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7667$as_echo "$enable_cscope" >&6; }
7668if test "$enable_cscope" = "yes"; then
7669  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7670
7671fi
7672
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7674$as_echo_n "checking --disable-netbeans argument... " >&6; }
7675# Check whether --enable-netbeans was given.
7676if test "${enable_netbeans+set}" = set; then :
7677  enableval=$enable_netbeans;
7678else
7679  enable_netbeans="yes"
7680fi
7681
7682if test "$enable_netbeans" = "yes"; then
7683  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7685$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7686    enable_netbeans="no"
7687  else
7688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689$as_echo "no" >&6; }
7690  fi
7691else
7692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7693$as_echo "yes" >&6; }
7694fi
7695
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7697$as_echo_n "checking --disable-channel argument... " >&6; }
7698# Check whether --enable-channel was given.
7699if test "${enable_channel+set}" = set; then :
7700  enableval=$enable_channel;
7701else
7702  enable_channel="yes"
7703fi
7704
7705if test "$enable_channel" = "yes"; then
7706  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7708$as_echo "cannot use channels with tiny or small features" >&6; }
7709    enable_channel="no"
7710  else
7711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712$as_echo "no" >&6; }
7713  fi
7714else
7715  if test "$enable_netbeans" = "yes"; then
7716    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7717$as_echo "yes, netbeans also disabled" >&6; }
7718    enable_netbeans="no"
7719  else
7720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7721$as_echo "yes" >&6; }
7722  fi
7723fi
7724
7725if test "$enable_channel" = "yes"; then
7726
7727  if test "x$HAIKU" = "xyes"; then
7728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7729$as_echo_n "checking for socket in -lnetwork... " >&6; }
7730if ${ac_cv_lib_network_socket+:} false; then :
7731  $as_echo_n "(cached) " >&6
7732else
7733  ac_check_lib_save_LIBS=$LIBS
7734LIBS="-lnetwork  $LIBS"
7735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737
7738/* Override any GCC internal prototype to avoid an error.
7739   Use char because int might match the return type of a GCC
7740   builtin and then its argument prototype would still apply.  */
7741#ifdef __cplusplus
7742extern "C"
7743#endif
7744char socket ();
7745int
7746main ()
7747{
7748return socket ();
7749  ;
7750  return 0;
7751}
7752_ACEOF
7753if ac_fn_c_try_link "$LINENO"; then :
7754  ac_cv_lib_network_socket=yes
7755else
7756  ac_cv_lib_network_socket=no
7757fi
7758rm -f core conftest.err conftest.$ac_objext \
7759    conftest$ac_exeext conftest.$ac_ext
7760LIBS=$ac_check_lib_save_LIBS
7761fi
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7763$as_echo "$ac_cv_lib_network_socket" >&6; }
7764if test "x$ac_cv_lib_network_socket" = xyes; then :
7765  cat >>confdefs.h <<_ACEOF
7766#define HAVE_LIBNETWORK 1
7767_ACEOF
7768
7769  LIBS="-lnetwork $LIBS"
7770
7771fi
7772
7773  else
7774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7775$as_echo_n "checking for socket in -lsocket... " >&6; }
7776if ${ac_cv_lib_socket_socket+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  ac_check_lib_save_LIBS=$LIBS
7780LIBS="-lsocket  $LIBS"
7781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h.  */
7783
7784/* Override any GCC internal prototype to avoid an error.
7785   Use char because int might match the return type of a GCC
7786   builtin and then its argument prototype would still apply.  */
7787#ifdef __cplusplus
7788extern "C"
7789#endif
7790char socket ();
7791int
7792main ()
7793{
7794return socket ();
7795  ;
7796  return 0;
7797}
7798_ACEOF
7799if ac_fn_c_try_link "$LINENO"; then :
7800  ac_cv_lib_socket_socket=yes
7801else
7802  ac_cv_lib_socket_socket=no
7803fi
7804rm -f core conftest.err conftest.$ac_objext \
7805    conftest$ac_exeext conftest.$ac_ext
7806LIBS=$ac_check_lib_save_LIBS
7807fi
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7809$as_echo "$ac_cv_lib_socket_socket" >&6; }
7810if test "x$ac_cv_lib_socket_socket" = xyes; then :
7811  cat >>confdefs.h <<_ACEOF
7812#define HAVE_LIBSOCKET 1
7813_ACEOF
7814
7815  LIBS="-lsocket $LIBS"
7816
7817fi
7818
7819  fi
7820
7821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7822$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7823if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7824  $as_echo_n "(cached) " >&6
7825else
7826  ac_check_lib_save_LIBS=$LIBS
7827LIBS="-lnsl  $LIBS"
7828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829/* end confdefs.h.  */
7830
7831/* Override any GCC internal prototype to avoid an error.
7832   Use char because int might match the return type of a GCC
7833   builtin and then its argument prototype would still apply.  */
7834#ifdef __cplusplus
7835extern "C"
7836#endif
7837char gethostbyname ();
7838int
7839main ()
7840{
7841return gethostbyname ();
7842  ;
7843  return 0;
7844}
7845_ACEOF
7846if ac_fn_c_try_link "$LINENO"; then :
7847  ac_cv_lib_nsl_gethostbyname=yes
7848else
7849  ac_cv_lib_nsl_gethostbyname=no
7850fi
7851rm -f core conftest.err conftest.$ac_objext \
7852    conftest$ac_exeext conftest.$ac_ext
7853LIBS=$ac_check_lib_save_LIBS
7854fi
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7856$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7857if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7858  cat >>confdefs.h <<_ACEOF
7859#define HAVE_LIBNSL 1
7860_ACEOF
7861
7862  LIBS="-lnsl $LIBS"
7863
7864fi
7865
7866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5
7867$as_echo_n "checking whether compiling with process communication is possible... " >&6; }
7868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869/* end confdefs.h.  */
7870
7871#include <stdio.h>
7872#include <stdlib.h>
7873#include <stdarg.h>
7874#include <fcntl.h>
7875#include <netdb.h>
7876#include <netinet/in.h>
7877#include <errno.h>
7878#include <sys/types.h>
7879#include <sys/socket.h>
7880	/* Check bitfields */
7881	struct nbbuf {
7882	unsigned int  initDone:1;
7883	unsigned short signmaplen;
7884	};
7885
7886int
7887main ()
7888{
7889
7890		/* Check creating a socket. */
7891		struct sockaddr_in server;
7892		(void)socket(AF_INET, SOCK_STREAM, 0);
7893		(void)htons(100);
7894		(void)gethostbyname("microsoft.com");
7895		if (errno == ECONNREFUSED)
7896		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7897
7898  ;
7899  return 0;
7900}
7901_ACEOF
7902if ac_fn_c_try_link "$LINENO"; then :
7903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7904$as_echo "yes" >&6; }
7905else
7906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no"
7908fi
7909rm -f core conftest.err conftest.$ac_objext \
7910    conftest$ac_exeext conftest.$ac_ext
7911fi
7912if test "$enable_netbeans" = "yes"; then
7913  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7914
7915  NETBEANS_SRC="netbeans.c"
7916
7917  NETBEANS_OBJ="objects/netbeans.o"
7918
7919fi
7920if test "$enable_channel" = "yes"; then
7921  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
7922
7923  CHANNEL_SRC="channel.c"
7924
7925  CHANNEL_OBJ="objects/channel.o"
7926
7927fi
7928
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
7930$as_echo_n "checking --enable-terminal argument... " >&6; }
7931# Check whether --enable-terminal was given.
7932if test "${enable_terminal+set}" = set; then :
7933  enableval=$enable_terminal;
7934else
7935  enable_terminal="auto"
7936fi
7937
7938if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
7939  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7940    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
7941$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
7942    enable_terminal="no"
7943  else
7944    if test "$enable_terminal" = "auto"; then
7945      enable_terminal="yes"
7946      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
7947$as_echo "defaulting to yes" >&6; }
7948    else
7949      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7950$as_echo "yes" >&6; }
7951    fi
7952  fi
7953else
7954  if test "$enable_terminal" = "auto"; then
7955    enable_terminal="no"
7956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
7957$as_echo "defaulting to no" >&6; }
7958  else
7959    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960$as_echo "no" >&6; }
7961  fi
7962fi
7963if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then
7964  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
7965
7966  TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/creen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c"
7967
7968  TERM_OBJ="objects/vterm_encoding.o objects/vterm_keyboard.o objects/vterm_mouse.o objects/vterm_parser.o objects/vterm_pen.o objects/vterm_screen.o objects/vterm_state.o objects/vterm_unicode.o objects/vterm_vterm.o"
7969
7970  TERM_TEST="test_libvterm"
7971
7972fi
7973
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5
7975$as_echo_n "checking --enable-autoservername argument... " >&6; }
7976# Check whether --enable-autoservername was given.
7977if test "${enable_autoservername+set}" = set; then :
7978  enableval=$enable_autoservername;
7979else
7980  enable_autoservername="no"
7981fi
7982
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5
7984$as_echo "$enable_autoservername" >&6; }
7985if test "$enable_autoservername" = "yes"; then
7986  $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h
7987
7988fi
7989
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7991$as_echo_n "checking --enable-multibyte argument... " >&6; }
7992# Check whether --enable-multibyte was given.
7993if test "${enable_multibyte+set}" = set; then :
7994  enableval=$enable_multibyte;
7995else
7996  enable_multibyte="yes"
7997fi
7998
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
8000$as_echo "$enable_multibyte" >&6; }
8001if test "$enable_multibyte" != "yes"; then
8002  as_fn_error $? "The multi-byte feature can no longer be disabled. If you have
8003		a problem with this, discuss on the Vim mailing list." "$LINENO" 5
8004fi
8005
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5
8007$as_echo_n "checking --disable-rightleft argument... " >&6; }
8008# Check whether --enable-rightleft was given.
8009if test "${enable_rightleft+set}" = set; then :
8010  enableval=$enable_rightleft;
8011else
8012  enable_rightleft="yes"
8013fi
8014
8015if test "$enable_rightleft" = "yes"; then
8016	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017$as_echo "no" >&6; }
8018else
8019	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8020$as_echo "yes" >&6; }
8021	$as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h
8022
8023fi
8024
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5
8026$as_echo_n "checking --disable-arabic argument... " >&6; }
8027# Check whether --enable-arabic was given.
8028if test "${enable_arabic+set}" = set; then :
8029  enableval=$enable_arabic;
8030else
8031  enable_arabic="yes"
8032fi
8033
8034if test "$enable_arabic" = "yes"; then
8035	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036$as_echo "no" >&6; }
8037else
8038	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8039$as_echo "yes" >&6; }
8040	$as_echo "#define DISABLE_ARABIC 1" >>confdefs.h
8041
8042fi
8043
8044# Check whether --enable-farsi was given.
8045if test "${enable_farsi+set}" = set; then :
8046  enableval=$enable_farsi;
8047fi
8048
8049
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
8051$as_echo_n "checking --enable-xim argument... " >&6; }
8052# Check whether --enable-xim was given.
8053if test "${enable_xim+set}" = set; then :
8054  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
8055$as_echo "$enable_xim" >&6; }
8056else
8057  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
8058$as_echo "defaulting to auto" >&6; }
8059fi
8060
8061
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
8063$as_echo_n "checking --enable-fontset argument... " >&6; }
8064# Check whether --enable-fontset was given.
8065if test "${enable_fontset+set}" = set; then :
8066  enableval=$enable_fontset;
8067else
8068  enable_fontset="no"
8069fi
8070
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
8072$as_echo "$enable_fontset" >&6; }
8073
8074test -z "$with_x" && with_x=yes
8075test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
8076if test "$with_x" = no; then
8077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
8078$as_echo "defaulting to: don't HAVE_X11" >&6; }
8079else
8080
8081  # Extract the first word of "xmkmf", so it can be a program name with args.
8082set dummy xmkmf; ac_word=$2
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084$as_echo_n "checking for $ac_word... " >&6; }
8085if ${ac_cv_path_xmkmfpath+:} false; then :
8086  $as_echo_n "(cached) " >&6
8087else
8088  case $xmkmfpath in
8089  [\\/]* | ?:[\\/]*)
8090  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
8091  ;;
8092  *)
8093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096  IFS=$as_save_IFS
8097  test -z "$as_dir" && as_dir=.
8098    for ac_exec_ext in '' $ac_executable_extensions; do
8099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
8101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102    break 2
8103  fi
8104done
8105  done
8106IFS=$as_save_IFS
8107
8108  ;;
8109esac
8110fi
8111xmkmfpath=$ac_cv_path_xmkmfpath
8112if test -n "$xmkmfpath"; then
8113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
8114$as_echo "$xmkmfpath" >&6; }
8115else
8116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117$as_echo "no" >&6; }
8118fi
8119
8120
8121
8122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8123$as_echo_n "checking for X... " >&6; }
8124
8125
8126# Check whether --with-x was given.
8127if test "${with_x+set}" = set; then :
8128  withval=$with_x;
8129fi
8130
8131# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8132if test "x$with_x" = xno; then
8133  # The user explicitly disabled X.
8134  have_x=disabled
8135else
8136  case $x_includes,$x_libraries in #(
8137    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8138    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8139  $as_echo_n "(cached) " >&6
8140else
8141  # One or both of the vars are not set, and there is no cached value.
8142ac_x_includes=no ac_x_libraries=no
8143rm -f -r conftest.dir
8144if mkdir conftest.dir; then
8145  cd conftest.dir
8146  cat >Imakefile <<'_ACEOF'
8147incroot:
8148	@echo incroot='${INCROOT}'
8149usrlibdir:
8150	@echo usrlibdir='${USRLIBDIR}'
8151libdir:
8152	@echo libdir='${LIBDIR}'
8153_ACEOF
8154  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8155    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8156    for ac_var in incroot usrlibdir libdir; do
8157      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8158    done
8159    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8160    for ac_extension in a so sl dylib la dll; do
8161      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8162	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8163	ac_im_usrlibdir=$ac_im_libdir; break
8164      fi
8165    done
8166    # Screen out bogus values from the imake configuration.  They are
8167    # bogus both because they are the default anyway, and because
8168    # using them would break gcc on systems where it needs fixed includes.
8169    case $ac_im_incroot in
8170	/usr/include) ac_x_includes= ;;
8171	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8172    esac
8173    case $ac_im_usrlibdir in
8174	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8175	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8176    esac
8177  fi
8178  cd ..
8179  rm -f -r conftest.dir
8180fi
8181
8182# Standard set of common directories for X headers.
8183# Check X11 before X11Rn because it is often a symlink to the current release.
8184ac_x_header_dirs='
8185/usr/X11/include
8186/usr/X11R7/include
8187/usr/X11R6/include
8188/usr/X11R5/include
8189/usr/X11R4/include
8190
8191/usr/include/X11
8192/usr/include/X11R7
8193/usr/include/X11R6
8194/usr/include/X11R5
8195/usr/include/X11R4
8196
8197/usr/local/X11/include
8198/usr/local/X11R7/include
8199/usr/local/X11R6/include
8200/usr/local/X11R5/include
8201/usr/local/X11R4/include
8202
8203/usr/local/include/X11
8204/usr/local/include/X11R7
8205/usr/local/include/X11R6
8206/usr/local/include/X11R5
8207/usr/local/include/X11R4
8208
8209/usr/X386/include
8210/usr/x386/include
8211/usr/XFree86/include/X11
8212
8213/usr/include
8214/usr/local/include
8215/usr/unsupported/include
8216/usr/athena/include
8217/usr/local/x11r5/include
8218/usr/lpp/Xamples/include
8219
8220/usr/openwin/include
8221/usr/openwin/share/include'
8222
8223if test "$ac_x_includes" = no; then
8224  # Guess where to find include files, by looking for Xlib.h.
8225  # First, try using that file with no special directory specified.
8226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228#include <X11/Xlib.h>
8229_ACEOF
8230if ac_fn_c_try_cpp "$LINENO"; then :
8231  # We can compile using X headers with no special include directory.
8232ac_x_includes=
8233else
8234  for ac_dir in $ac_x_header_dirs; do
8235  if test -r "$ac_dir/X11/Xlib.h"; then
8236    ac_x_includes=$ac_dir
8237    break
8238  fi
8239done
8240fi
8241rm -f conftest.err conftest.i conftest.$ac_ext
8242fi # $ac_x_includes = no
8243
8244if test "$ac_x_libraries" = no; then
8245  # Check for the libraries.
8246  # See if we find them without any special options.
8247  # Don't add to $LIBS permanently.
8248  ac_save_LIBS=$LIBS
8249  LIBS="-lX11 $LIBS"
8250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251/* end confdefs.h.  */
8252#include <X11/Xlib.h>
8253int
8254main ()
8255{
8256XrmInitialize ()
8257  ;
8258  return 0;
8259}
8260_ACEOF
8261if ac_fn_c_try_link "$LINENO"; then :
8262  LIBS=$ac_save_LIBS
8263# We can link X programs with no special library path.
8264ac_x_libraries=
8265else
8266  LIBS=$ac_save_LIBS
8267for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8268do
8269  # Don't even attempt the hair of trying to link an X program!
8270  for ac_extension in a so sl dylib la dll; do
8271    if test -r "$ac_dir/libX11.$ac_extension"; then
8272      ac_x_libraries=$ac_dir
8273      break 2
8274    fi
8275  done
8276done
8277fi
8278rm -f core conftest.err conftest.$ac_objext \
8279    conftest$ac_exeext conftest.$ac_ext
8280fi # $ac_x_libraries = no
8281
8282case $ac_x_includes,$ac_x_libraries in #(
8283  no,* | *,no | *\'*)
8284    # Didn't find X, or a directory has "'" in its name.
8285    ac_cv_have_x="have_x=no";; #(
8286  *)
8287    # Record where we found X for the cache.
8288    ac_cv_have_x="have_x=yes\
8289	ac_x_includes='$ac_x_includes'\
8290	ac_x_libraries='$ac_x_libraries'"
8291esac
8292fi
8293;; #(
8294    *) have_x=yes;;
8295  esac
8296  eval "$ac_cv_have_x"
8297fi # $with_x != no
8298
8299if test "$have_x" != yes; then
8300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8301$as_echo "$have_x" >&6; }
8302  no_x=yes
8303else
8304  # If each of the values was on the command line, it overrides each guess.
8305  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8306  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8307  # Update the cache value to reflect the command line values.
8308  ac_cv_have_x="have_x=yes\
8309	ac_x_includes='$x_includes'\
8310	ac_x_libraries='$x_libraries'"
8311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8312$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8313fi
8314
8315if test "$no_x" = yes; then
8316  # Not all programs may use this symbol, but it does not hurt to define it.
8317
8318$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8319
8320  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8321else
8322  if test -n "$x_includes"; then
8323    X_CFLAGS="$X_CFLAGS -I$x_includes"
8324  fi
8325
8326  # It would also be nice to do this for all -L options, not just this one.
8327  if test -n "$x_libraries"; then
8328    X_LIBS="$X_LIBS -L$x_libraries"
8329    # For Solaris; some versions of Sun CC require a space after -R and
8330    # others require no space.  Words are not sufficient . . . .
8331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8332$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8333    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8334    ac_xsave_c_werror_flag=$ac_c_werror_flag
8335    ac_c_werror_flag=yes
8336    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338
8339int
8340main ()
8341{
8342
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347if ac_fn_c_try_link "$LINENO"; then :
8348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349$as_echo "no" >&6; }
8350       X_LIBS="$X_LIBS -R$x_libraries"
8351else
8352  LIBS="$ac_xsave_LIBS -R $x_libraries"
8353       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354/* end confdefs.h.  */
8355
8356int
8357main ()
8358{
8359
8360  ;
8361  return 0;
8362}
8363_ACEOF
8364if ac_fn_c_try_link "$LINENO"; then :
8365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8366$as_echo "yes" >&6; }
8367	  X_LIBS="$X_LIBS -R $x_libraries"
8368else
8369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8370$as_echo "neither works" >&6; }
8371fi
8372rm -f core conftest.err conftest.$ac_objext \
8373    conftest$ac_exeext conftest.$ac_ext
8374fi
8375rm -f core conftest.err conftest.$ac_objext \
8376    conftest$ac_exeext conftest.$ac_ext
8377    ac_c_werror_flag=$ac_xsave_c_werror_flag
8378    LIBS=$ac_xsave_LIBS
8379  fi
8380
8381  # Check for system-dependent libraries X programs must link with.
8382  # Do this before checking for the system-independent R6 libraries
8383  # (-lICE), since we may need -lsocket or whatever for X linking.
8384
8385  if test "$ISC" = yes; then
8386    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8387  else
8388    # Martyn Johnson says this is needed for Ultrix, if the X
8389    # libraries were built with DECnet support.  And Karl Berry says
8390    # the Alpha needs dnet_stub (dnet does not exist).
8391    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8392    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393/* end confdefs.h.  */
8394
8395/* Override any GCC internal prototype to avoid an error.
8396   Use char because int might match the return type of a GCC
8397   builtin and then its argument prototype would still apply.  */
8398#ifdef __cplusplus
8399extern "C"
8400#endif
8401char XOpenDisplay ();
8402int
8403main ()
8404{
8405return XOpenDisplay ();
8406  ;
8407  return 0;
8408}
8409_ACEOF
8410if ac_fn_c_try_link "$LINENO"; then :
8411
8412else
8413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8414$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8415if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8416  $as_echo_n "(cached) " >&6
8417else
8418  ac_check_lib_save_LIBS=$LIBS
8419LIBS="-ldnet  $LIBS"
8420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h.  */
8422
8423/* Override any GCC internal prototype to avoid an error.
8424   Use char because int might match the return type of a GCC
8425   builtin and then its argument prototype would still apply.  */
8426#ifdef __cplusplus
8427extern "C"
8428#endif
8429char dnet_ntoa ();
8430int
8431main ()
8432{
8433return dnet_ntoa ();
8434  ;
8435  return 0;
8436}
8437_ACEOF
8438if ac_fn_c_try_link "$LINENO"; then :
8439  ac_cv_lib_dnet_dnet_ntoa=yes
8440else
8441  ac_cv_lib_dnet_dnet_ntoa=no
8442fi
8443rm -f core conftest.err conftest.$ac_objext \
8444    conftest$ac_exeext conftest.$ac_ext
8445LIBS=$ac_check_lib_save_LIBS
8446fi
8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8448$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8449if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8450  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8451fi
8452
8453    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8454      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8455$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8456if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8457  $as_echo_n "(cached) " >&6
8458else
8459  ac_check_lib_save_LIBS=$LIBS
8460LIBS="-ldnet_stub  $LIBS"
8461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h.  */
8463
8464/* Override any GCC internal prototype to avoid an error.
8465   Use char because int might match the return type of a GCC
8466   builtin and then its argument prototype would still apply.  */
8467#ifdef __cplusplus
8468extern "C"
8469#endif
8470char dnet_ntoa ();
8471int
8472main ()
8473{
8474return dnet_ntoa ();
8475  ;
8476  return 0;
8477}
8478_ACEOF
8479if ac_fn_c_try_link "$LINENO"; then :
8480  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8481else
8482  ac_cv_lib_dnet_stub_dnet_ntoa=no
8483fi
8484rm -f core conftest.err conftest.$ac_objext \
8485    conftest$ac_exeext conftest.$ac_ext
8486LIBS=$ac_check_lib_save_LIBS
8487fi
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8489$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8490if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8491  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8492fi
8493
8494    fi
8495fi
8496rm -f core conftest.err conftest.$ac_objext \
8497    conftest$ac_exeext conftest.$ac_ext
8498    LIBS="$ac_xsave_LIBS"
8499
8500    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
8501    # to get the SysV transport functions.
8502    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8503    # needs -lnsl.
8504    # The nsl library prevents programs from opening the X display
8505    # on Irix 5.2, according to T.E. Dickey.
8506    # The functions gethostbyname, getservbyname, and inet_addr are
8507    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8508    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8509if test "x$ac_cv_func_gethostbyname" = xyes; then :
8510
8511fi
8512
8513    if test $ac_cv_func_gethostbyname = no; then
8514      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8515$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8516if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8517  $as_echo_n "(cached) " >&6
8518else
8519  ac_check_lib_save_LIBS=$LIBS
8520LIBS="-lnsl  $LIBS"
8521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h.  */
8523
8524/* Override any GCC internal prototype to avoid an error.
8525   Use char because int might match the return type of a GCC
8526   builtin and then its argument prototype would still apply.  */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530char gethostbyname ();
8531int
8532main ()
8533{
8534return gethostbyname ();
8535  ;
8536  return 0;
8537}
8538_ACEOF
8539if ac_fn_c_try_link "$LINENO"; then :
8540  ac_cv_lib_nsl_gethostbyname=yes
8541else
8542  ac_cv_lib_nsl_gethostbyname=no
8543fi
8544rm -f core conftest.err conftest.$ac_objext \
8545    conftest$ac_exeext conftest.$ac_ext
8546LIBS=$ac_check_lib_save_LIBS
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8549$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8550if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8551  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8552fi
8553
8554      if test $ac_cv_lib_nsl_gethostbyname = no; then
8555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8556$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8557if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8558  $as_echo_n "(cached) " >&6
8559else
8560  ac_check_lib_save_LIBS=$LIBS
8561LIBS="-lbsd  $LIBS"
8562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h.  */
8564
8565/* Override any GCC internal prototype to avoid an error.
8566   Use char because int might match the return type of a GCC
8567   builtin and then its argument prototype would still apply.  */
8568#ifdef __cplusplus
8569extern "C"
8570#endif
8571char gethostbyname ();
8572int
8573main ()
8574{
8575return gethostbyname ();
8576  ;
8577  return 0;
8578}
8579_ACEOF
8580if ac_fn_c_try_link "$LINENO"; then :
8581  ac_cv_lib_bsd_gethostbyname=yes
8582else
8583  ac_cv_lib_bsd_gethostbyname=no
8584fi
8585rm -f core conftest.err conftest.$ac_objext \
8586    conftest$ac_exeext conftest.$ac_ext
8587LIBS=$ac_check_lib_save_LIBS
8588fi
8589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8590$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8591if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8592  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8593fi
8594
8595      fi
8596    fi
8597
8598    # [email protected] says without -lsocket,
8599    # socket/setsockopt and other routines are undefined under SCO ODT
8600    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8601    # on later versions), says Simon Leinen: it contains gethostby*
8602    # variants that don't use the name server (or something).  -lsocket
8603    # must be given before -lnsl if both are needed.  We assume that
8604    # if connect needs -lnsl, so does gethostbyname.
8605    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8606if test "x$ac_cv_func_connect" = xyes; then :
8607
8608fi
8609
8610    if test $ac_cv_func_connect = no; then
8611      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8612$as_echo_n "checking for connect in -lsocket... " >&6; }
8613if ${ac_cv_lib_socket_connect+:} false; then :
8614  $as_echo_n "(cached) " >&6
8615else
8616  ac_check_lib_save_LIBS=$LIBS
8617LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h.  */
8620
8621/* Override any GCC internal prototype to avoid an error.
8622   Use char because int might match the return type of a GCC
8623   builtin and then its argument prototype would still apply.  */
8624#ifdef __cplusplus
8625extern "C"
8626#endif
8627char connect ();
8628int
8629main ()
8630{
8631return connect ();
8632  ;
8633  return 0;
8634}
8635_ACEOF
8636if ac_fn_c_try_link "$LINENO"; then :
8637  ac_cv_lib_socket_connect=yes
8638else
8639  ac_cv_lib_socket_connect=no
8640fi
8641rm -f core conftest.err conftest.$ac_objext \
8642    conftest$ac_exeext conftest.$ac_ext
8643LIBS=$ac_check_lib_save_LIBS
8644fi
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8646$as_echo "$ac_cv_lib_socket_connect" >&6; }
8647if test "x$ac_cv_lib_socket_connect" = xyes; then :
8648  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8649fi
8650
8651    fi
8652
8653    # Guillermo Gomez says -lposix is necessary on A/UX.
8654    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8655if test "x$ac_cv_func_remove" = xyes; then :
8656
8657fi
8658
8659    if test $ac_cv_func_remove = no; then
8660      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8661$as_echo_n "checking for remove in -lposix... " >&6; }
8662if ${ac_cv_lib_posix_remove+:} false; then :
8663  $as_echo_n "(cached) " >&6
8664else
8665  ac_check_lib_save_LIBS=$LIBS
8666LIBS="-lposix  $LIBS"
8667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668/* end confdefs.h.  */
8669
8670/* Override any GCC internal prototype to avoid an error.
8671   Use char because int might match the return type of a GCC
8672   builtin and then its argument prototype would still apply.  */
8673#ifdef __cplusplus
8674extern "C"
8675#endif
8676char remove ();
8677int
8678main ()
8679{
8680return remove ();
8681  ;
8682  return 0;
8683}
8684_ACEOF
8685if ac_fn_c_try_link "$LINENO"; then :
8686  ac_cv_lib_posix_remove=yes
8687else
8688  ac_cv_lib_posix_remove=no
8689fi
8690rm -f core conftest.err conftest.$ac_objext \
8691    conftest$ac_exeext conftest.$ac_ext
8692LIBS=$ac_check_lib_save_LIBS
8693fi
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8695$as_echo "$ac_cv_lib_posix_remove" >&6; }
8696if test "x$ac_cv_lib_posix_remove" = xyes; then :
8697  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8698fi
8699
8700    fi
8701
8702    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8703    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8704if test "x$ac_cv_func_shmat" = xyes; then :
8705
8706fi
8707
8708    if test $ac_cv_func_shmat = no; then
8709      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8710$as_echo_n "checking for shmat in -lipc... " >&6; }
8711if ${ac_cv_lib_ipc_shmat+:} false; then :
8712  $as_echo_n "(cached) " >&6
8713else
8714  ac_check_lib_save_LIBS=$LIBS
8715LIBS="-lipc  $LIBS"
8716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717/* end confdefs.h.  */
8718
8719/* Override any GCC internal prototype to avoid an error.
8720   Use char because int might match the return type of a GCC
8721   builtin and then its argument prototype would still apply.  */
8722#ifdef __cplusplus
8723extern "C"
8724#endif
8725char shmat ();
8726int
8727main ()
8728{
8729return shmat ();
8730  ;
8731  return 0;
8732}
8733_ACEOF
8734if ac_fn_c_try_link "$LINENO"; then :
8735  ac_cv_lib_ipc_shmat=yes
8736else
8737  ac_cv_lib_ipc_shmat=no
8738fi
8739rm -f core conftest.err conftest.$ac_objext \
8740    conftest$ac_exeext conftest.$ac_ext
8741LIBS=$ac_check_lib_save_LIBS
8742fi
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8744$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8745if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8746  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8747fi
8748
8749    fi
8750  fi
8751
8752  # Check for libraries that X11R6 Xt/Xaw programs need.
8753  ac_save_LDFLAGS=$LDFLAGS
8754  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8755  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8756  # check for ICE first), but we must link in the order -lSM -lICE or
8757  # we get undefined symbols.  So assume we have SM if we have ICE.
8758  # These have to be linked with before -lX11, unlike the other
8759  # libraries we check for below, so use a different variable.
8760  # John Interrante, Karl Berry
8761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8762$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8763if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8764  $as_echo_n "(cached) " >&6
8765else
8766  ac_check_lib_save_LIBS=$LIBS
8767LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769/* end confdefs.h.  */
8770
8771/* Override any GCC internal prototype to avoid an error.
8772   Use char because int might match the return type of a GCC
8773   builtin and then its argument prototype would still apply.  */
8774#ifdef __cplusplus
8775extern "C"
8776#endif
8777char IceConnectionNumber ();
8778int
8779main ()
8780{
8781return IceConnectionNumber ();
8782  ;
8783  return 0;
8784}
8785_ACEOF
8786if ac_fn_c_try_link "$LINENO"; then :
8787  ac_cv_lib_ICE_IceConnectionNumber=yes
8788else
8789  ac_cv_lib_ICE_IceConnectionNumber=no
8790fi
8791rm -f core conftest.err conftest.$ac_objext \
8792    conftest$ac_exeext conftest.$ac_ext
8793LIBS=$ac_check_lib_save_LIBS
8794fi
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8796$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8797if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8798  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8799fi
8800
8801  LDFLAGS=$ac_save_LDFLAGS
8802
8803fi
8804
8805
8806        if test "$zOSUnix" = "yes"; then
8807    CFLAGS="$CFLAGS -W c,dll"
8808    LDFLAGS="$LDFLAGS -W l,dll"
8809    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8810  fi
8811
8812
8813  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8814    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8816$as_echo "Corrected X libraries to $x_libraries" >&6; }
8817    X_LIBS="$X_LIBS -L$x_libraries"
8818    if test "`(uname) 2>/dev/null`" = SunOS &&
8819					 uname -r | grep '^5' >/dev/null; then
8820      X_LIBS="$X_LIBS -R $x_libraries"
8821    fi
8822  fi
8823
8824  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8825    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8827$as_echo "Corrected X includes to $x_includes" >&6; }
8828    X_CFLAGS="$X_CFLAGS -I$x_includes"
8829  fi
8830
8831    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8832    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8833    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8834
8835
8836        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8837$as_echo_n "checking if X11 header files can be found... " >&6; }
8838  cflags_save=$CFLAGS
8839  CFLAGS="$CFLAGS $X_CFLAGS"
8840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841/* end confdefs.h.  */
8842#include <X11/Xlib.h>
8843#include <X11/Intrinsic.h>
8844int
8845main ()
8846{
8847
8848  ;
8849  return 0;
8850}
8851_ACEOF
8852if ac_fn_c_try_compile "$LINENO"; then :
8853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8854$as_echo "yes" >&6; }
8855else
8856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857$as_echo "no" >&6; }; no_x=yes
8858fi
8859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860  CFLAGS=$cflags_save
8861
8862  if test "${no_x-no}" = yes; then
8863    with_x=no
8864  else
8865    $as_echo "#define HAVE_X11 1" >>confdefs.h
8866
8867    X_LIB="-lXt -lX11";
8868
8869
8870    ac_save_LDFLAGS="$LDFLAGS"
8871    LDFLAGS="-L$x_libraries $LDFLAGS"
8872
8873            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8874$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8875if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8876  $as_echo_n "(cached) " >&6
8877else
8878  ac_check_lib_save_LIBS=$LIBS
8879LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881/* end confdefs.h.  */
8882
8883/* Override any GCC internal prototype to avoid an error.
8884   Use char because int might match the return type of a GCC
8885   builtin and then its argument prototype would still apply.  */
8886#ifdef __cplusplus
8887extern "C"
8888#endif
8889char _XdmcpAuthDoIt ();
8890int
8891main ()
8892{
8893return _XdmcpAuthDoIt ();
8894  ;
8895  return 0;
8896}
8897_ACEOF
8898if ac_fn_c_try_link "$LINENO"; then :
8899  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8900else
8901  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8902fi
8903rm -f core conftest.err conftest.$ac_objext \
8904    conftest$ac_exeext conftest.$ac_ext
8905LIBS=$ac_check_lib_save_LIBS
8906fi
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8908$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8909if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8910  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8911fi
8912
8913
8914                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8915$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8916if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8917  $as_echo_n "(cached) " >&6
8918else
8919  ac_check_lib_save_LIBS=$LIBS
8920LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922/* end confdefs.h.  */
8923
8924/* Override any GCC internal prototype to avoid an error.
8925   Use char because int might match the return type of a GCC
8926   builtin and then its argument prototype would still apply.  */
8927#ifdef __cplusplus
8928extern "C"
8929#endif
8930char IceOpenConnection ();
8931int
8932main ()
8933{
8934return IceOpenConnection ();
8935  ;
8936  return 0;
8937}
8938_ACEOF
8939if ac_fn_c_try_link "$LINENO"; then :
8940  ac_cv_lib_ICE_IceOpenConnection=yes
8941else
8942  ac_cv_lib_ICE_IceOpenConnection=no
8943fi
8944rm -f core conftest.err conftest.$ac_objext \
8945    conftest$ac_exeext conftest.$ac_ext
8946LIBS=$ac_check_lib_save_LIBS
8947fi
8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8949$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8950if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8951  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8952fi
8953
8954
8955        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8957$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8958if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8959  $as_echo_n "(cached) " >&6
8960else
8961  ac_check_lib_save_LIBS=$LIBS
8962LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964/* end confdefs.h.  */
8965
8966/* Override any GCC internal prototype to avoid an error.
8967   Use char because int might match the return type of a GCC
8968   builtin and then its argument prototype would still apply.  */
8969#ifdef __cplusplus
8970extern "C"
8971#endif
8972char XpmCreatePixmapFromData ();
8973int
8974main ()
8975{
8976return XpmCreatePixmapFromData ();
8977  ;
8978  return 0;
8979}
8980_ACEOF
8981if ac_fn_c_try_link "$LINENO"; then :
8982  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8983else
8984  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8985fi
8986rm -f core conftest.err conftest.$ac_objext \
8987    conftest$ac_exeext conftest.$ac_ext
8988LIBS=$ac_check_lib_save_LIBS
8989fi
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8991$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8992if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8993  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8994fi
8995
8996
8997        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8998$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8999    cflags_save=$CFLAGS
9000        if test "$GCC" = yes; then
9001      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
9002    else
9003      CFLAGS="$CFLAGS $X_CFLAGS"
9004    fi
9005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h.  */
9007#include <X11/Xlib.h>
9008int
9009main ()
9010{
9011
9012  ;
9013  return 0;
9014}
9015_ACEOF
9016if ac_fn_c_try_compile "$LINENO"; then :
9017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018$as_echo "no" >&6; }
9019else
9020  CFLAGS="$CFLAGS -Wno-implicit-int"
9021	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h.  */
9023#include <X11/Xlib.h>
9024int
9025main ()
9026{
9027
9028  ;
9029  return 0;
9030}
9031_ACEOF
9032if ac_fn_c_try_compile "$LINENO"; then :
9033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9034$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
9035else
9036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
9037$as_echo "test failed" >&6; }
9038
9039fi
9040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041
9042fi
9043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044    CFLAGS=$cflags_save
9045
9046    LDFLAGS="$ac_save_LDFLAGS"
9047
9048    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
9049$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
9050    if ${ac_cv_small_wchar_t+:} false; then :
9051  $as_echo_n "(cached) " >&6
9052else
9053  if test "$cross_compiling" = yes; then :
9054  as_fn_error $? "failed to compile test program" "$LINENO" 5
9055else
9056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057/* end confdefs.h.  */
9058
9059#include <X11/Xlib.h>
9060#if STDC_HEADERS
9061# include <stdlib.h>
9062# include <stddef.h>
9063#endif
9064		main()
9065		{
9066		  if (sizeof(wchar_t) <= 2)
9067		    exit(1);
9068		  exit(0);
9069		}
9070_ACEOF
9071if ac_fn_c_try_run "$LINENO"; then :
9072  ac_cv_small_wchar_t="no"
9073else
9074  ac_cv_small_wchar_t="yes"
9075fi
9076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9077  conftest.$ac_objext conftest.beam conftest.$ac_ext
9078fi
9079
9080fi
9081
9082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
9083$as_echo "$ac_cv_small_wchar_t" >&6; }
9084    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
9085      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
9086
9087    fi
9088
9089  fi
9090fi
9091
9092if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then
9093    as_fn_error $? "could not configure X" "$LINENO" 5
9094fi
9095
9096test "x$with_x" = xno -a "x$HAIKU" != "xyes" -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
9097
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
9099$as_echo_n "checking --enable-gui argument... " >&6; }
9100# Check whether --enable-gui was given.
9101if test "${enable_gui+set}" = set; then :
9102  enableval=$enable_gui;
9103else
9104  enable_gui="auto"
9105fi
9106
9107
9108enable_gui_canon=`echo "_$enable_gui" | \
9109	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
9110
9111SKIP_GTK2=YES
9112SKIP_GTK3=YES
9113SKIP_GNOME=YES
9114SKIP_MOTIF=YES
9115SKIP_ATHENA=YES
9116SKIP_NEXTAW=YES
9117SKIP_PHOTON=YES
9118SKIP_HAIKU=YES
9119SKIP_CARBON=YES
9120GUITYPE=NONE
9121
9122if test "x$HAIKU" = "xyes"; then
9123  SKIP_HAIKU=
9124  case "$enable_gui_canon" in
9125    no)     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9126$as_echo "no GUI support" >&6; }
9127            SKIP_HAIKU=YES ;;
9128    yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9129$as_echo "yes - automatic GUI support" >&6; } ;;
9130    auto)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
9131$as_echo "auto - automatic GUI support" >&6; } ;;
9132    haiku)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Haiku GUI support" >&5
9133$as_echo "Haiku GUI support" >&6; } ;;
9134    *)      { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9135$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9136            SKIP_HAIKU=YES ;;
9137    esac
9138elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
9139  SKIP_PHOTON=
9140  case "$enable_gui_canon" in
9141    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9142$as_echo "no GUI support" >&6; }
9143		SKIP_PHOTON=YES ;;
9144    yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5
9145$as_echo "automatic GUI support" >&6; }
9146    		gui_auto=yes ;;
9147    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
9148$as_echo "Photon GUI support" >&6; } ;;
9149    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9150$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9151		SKIP_PHOTON=YES ;;
9152  esac
9153
9154elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
9155  SKIP_CARBON=
9156  case "$enable_gui_canon" in
9157    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9158$as_echo "no GUI support" >&6; }
9159		SKIP_CARBON=YES ;;
9160    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9161$as_echo "yes - automatic GUI support" >&6; }
9162    		gui_auto=yes ;;
9163    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
9164$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
9165		SKIP_CARBON=YES ;;
9166    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
9167$as_echo "Carbon GUI support" >&6; } ;;
9168    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9169$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9170		SKIP_CARBON=YES ;;
9171  esac
9172
9173else
9174
9175  case "$enable_gui_canon" in
9176    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9177$as_echo "no GUI support" >&6; } ;;
9178    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
9179$as_echo "yes/auto - automatic GUI support" >&6; }
9180		gui_auto=yes
9181		SKIP_GTK2=
9182		SKIP_GNOME=
9183		SKIP_MOTIF=
9184		SKIP_ATHENA=
9185		SKIP_NEXTAW=
9186		SKIP_CARBON=;;
9187    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
9188$as_echo "GTK+ 2.x GUI support" >&6; }
9189		SKIP_GTK2=;;
9190    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
9191$as_echo "GNOME 2.x GUI support" >&6; }
9192		SKIP_GNOME=
9193		SKIP_GTK2=;;
9194    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
9195$as_echo "GTK+ 3.x GUI support" >&6; }
9196		SKIP_GTK3=;;
9197    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
9198$as_echo "Motif GUI support" >&6; }
9199		SKIP_MOTIF=;;
9200    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
9201$as_echo "Athena GUI support" >&6; }
9202		SKIP_ATHENA=;;
9203    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
9204$as_echo "neXtaw GUI support" >&6; }
9205		SKIP_NEXTAW=;;
9206    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9207$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
9208  esac
9209
9210fi
9211
9212if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
9213				-a "$enable_gui_canon" != "gnome2"; then
9214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
9215$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
9216  # Check whether --enable-gtk2-check was given.
9217if test "${enable_gtk2_check+set}" = set; then :
9218  enableval=$enable_gtk2_check;
9219else
9220  enable_gtk2_check="yes"
9221fi
9222
9223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
9224$as_echo "$enable_gtk2_check" >&6; }
9225  if test "x$enable_gtk2_check" = "xno"; then
9226    SKIP_GTK2=YES
9227    SKIP_GNOME=YES
9228  fi
9229fi
9230
9231if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
9232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
9233$as_echo_n "checking whether or not to look for GNOME... " >&6; }
9234  # Check whether --enable-gnome-check was given.
9235if test "${enable_gnome_check+set}" = set; then :
9236  enableval=$enable_gnome_check;
9237else
9238  enable_gnome_check="no"
9239fi
9240
9241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
9242$as_echo "$enable_gnome_check" >&6; }
9243  if test "x$enable_gnome_check" = "xno"; then
9244    SKIP_GNOME=YES
9245  fi
9246fi
9247
9248if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
9249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
9250$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
9251  # Check whether --enable-gtk3-check was given.
9252if test "${enable_gtk3_check+set}" = set; then :
9253  enableval=$enable_gtk3_check;
9254else
9255  enable_gtk3_check="yes"
9256fi
9257
9258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
9259$as_echo "$enable_gtk3_check" >&6; }
9260  if test "x$enable_gtk3_check" = "xno"; then
9261    SKIP_GTK3=YES
9262  fi
9263fi
9264
9265if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
9266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
9267$as_echo_n "checking whether or not to look for Motif... " >&6; }
9268  # Check whether --enable-motif-check was given.
9269if test "${enable_motif_check+set}" = set; then :
9270  enableval=$enable_motif_check;
9271else
9272  enable_motif_check="yes"
9273fi
9274
9275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
9276$as_echo "$enable_motif_check" >&6; }
9277  if test "x$enable_motif_check" = "xno"; then
9278    SKIP_MOTIF=YES
9279  fi
9280fi
9281
9282if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
9283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
9284$as_echo_n "checking whether or not to look for Athena... " >&6; }
9285  # Check whether --enable-athena-check was given.
9286if test "${enable_athena_check+set}" = set; then :
9287  enableval=$enable_athena_check;
9288else
9289  enable_athena_check="yes"
9290fi
9291
9292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
9293$as_echo "$enable_athena_check" >&6; }
9294  if test "x$enable_athena_check" = "xno"; then
9295    SKIP_ATHENA=YES
9296  fi
9297fi
9298
9299if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
9300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
9301$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
9302  # Check whether --enable-nextaw-check was given.
9303if test "${enable_nextaw_check+set}" = set; then :
9304  enableval=$enable_nextaw_check;
9305else
9306  enable_nextaw_check="yes"
9307fi
9308
9309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
9310$as_echo "$enable_nextaw_check" >&6; };
9311  if test "x$enable_nextaw_check" = "xno"; then
9312    SKIP_NEXTAW=YES
9313  fi
9314fi
9315
9316if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
9317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
9318$as_echo_n "checking whether or not to look for Carbon... " >&6; }
9319  # Check whether --enable-carbon-check was given.
9320if test "${enable_carbon_check+set}" = set; then :
9321  enableval=$enable_carbon_check;
9322else
9323  enable_carbon_check="yes"
9324fi
9325
9326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
9327$as_echo "$enable_carbon_check" >&6; };
9328  if test "x$enable_carbon_check" = "xno"; then
9329    SKIP_CARBON=YES
9330  fi
9331fi
9332
9333
9334if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
9335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
9336$as_echo_n "checking for Carbon GUI... " >&6; }
9337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9338$as_echo "yes" >&6; };
9339  GUITYPE=CARBONGUI
9340  if test "$VIMNAME" = "vim"; then
9341    VIMNAME=Vim
9342  fi
9343
9344  if test "x$MACARCH" = "xboth"; then
9345    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
9346  else
9347    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
9348  fi
9349
9350    if test x$prefix = xNONE; then
9351    prefix=/Applications
9352  fi
9353
9354    datadir='${prefix}/Vim.app/Contents/Resources'
9355
9356    SKIP_GTK2=YES;
9357  SKIP_GNOME=YES;
9358  SKIP_MOTIF=YES;
9359  SKIP_ATHENA=YES;
9360  SKIP_NEXTAW=YES;
9361  SKIP_PHOTON=YES;
9362  SKIP_HAIKU=YES;
9363  SKIP_CARBON=YES
9364fi
9365
9366
9367
9368
9369
9370
9371
9372if test "X$PKG_CONFIG" = "X"; then
9373  if test -n "$ac_tool_prefix"; then
9374  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9375set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377$as_echo_n "checking for $ac_word... " >&6; }
9378if ${ac_cv_path_PKG_CONFIG+:} false; then :
9379  $as_echo_n "(cached) " >&6
9380else
9381  case $PKG_CONFIG in
9382  [\\/]* | ?:[\\/]*)
9383  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9384  ;;
9385  *)
9386  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387for as_dir in $PATH
9388do
9389  IFS=$as_save_IFS
9390  test -z "$as_dir" && as_dir=.
9391    for ac_exec_ext in '' $ac_executable_extensions; do
9392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9393    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9395    break 2
9396  fi
9397done
9398  done
9399IFS=$as_save_IFS
9400
9401  ;;
9402esac
9403fi
9404PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9405if test -n "$PKG_CONFIG"; then
9406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9407$as_echo "$PKG_CONFIG" >&6; }
9408else
9409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410$as_echo "no" >&6; }
9411fi
9412
9413
9414fi
9415if test -z "$ac_cv_path_PKG_CONFIG"; then
9416  ac_pt_PKG_CONFIG=$PKG_CONFIG
9417  # Extract the first word of "pkg-config", so it can be a program name with args.
9418set dummy pkg-config; ac_word=$2
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9420$as_echo_n "checking for $ac_word... " >&6; }
9421if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9422  $as_echo_n "(cached) " >&6
9423else
9424  case $ac_pt_PKG_CONFIG in
9425  [\\/]* | ?:[\\/]*)
9426  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9427  ;;
9428  *)
9429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430for as_dir in $PATH
9431do
9432  IFS=$as_save_IFS
9433  test -z "$as_dir" && as_dir=.
9434    for ac_exec_ext in '' $ac_executable_extensions; do
9435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9436    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9438    break 2
9439  fi
9440done
9441  done
9442IFS=$as_save_IFS
9443
9444  ;;
9445esac
9446fi
9447ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9448if test -n "$ac_pt_PKG_CONFIG"; then
9449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9450$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9451else
9452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453$as_echo "no" >&6; }
9454fi
9455
9456  if test "x$ac_pt_PKG_CONFIG" = x; then
9457    PKG_CONFIG="no"
9458  else
9459    case $cross_compiling:$ac_tool_warned in
9460yes:)
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9463ac_tool_warned=yes ;;
9464esac
9465    PKG_CONFIG=$ac_pt_PKG_CONFIG
9466  fi
9467else
9468  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9469fi
9470
9471fi
9472
9473
9474if test -z "$SKIP_GTK2"; then
9475
9476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9477$as_echo_n "checking --disable-gtktest argument... " >&6; }
9478  # Check whether --enable-gtktest was given.
9479if test "${enable_gtktest+set}" = set; then :
9480  enableval=$enable_gtktest;
9481else
9482  enable_gtktest=yes
9483fi
9484
9485  if test "x$enable_gtktest" = "xyes" ; then
9486    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9487$as_echo "gtk test enabled" >&6; }
9488  else
9489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9490$as_echo "gtk test disabled" >&6; }
9491  fi
9492
9493  if test "x$PKG_CONFIG" != "xno"; then
9494
9495  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9496  {
9497    no_gtk=""
9498    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9499	  && $PKG_CONFIG --exists gtk+-2.0; then
9500    {
9501      min_gtk_version=2.2.0
9502      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9503$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9504                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9505      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9506      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9507      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9508	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9509      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9510	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9511      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9512	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9513    }
9514    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9515	  && $PKG_CONFIG --exists gtk+-3.0; then
9516    {
9517      min_gtk_version=2.2.0
9518      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9519$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9520
9521      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9522      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9523      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9524      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9525	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9526      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9527	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9528      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9529	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9530    }
9531    else
9532      no_gtk=yes
9533    fi
9534
9535    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9536    {
9537      ac_save_CFLAGS="$CFLAGS"
9538      ac_save_LIBS="$LIBS"
9539      CFLAGS="$CFLAGS $GTK_CFLAGS"
9540      LIBS="$LIBS $GTK_LIBS"
9541
9542                        rm -f conf.gtktest
9543      if test "$cross_compiling" = yes; then :
9544  echo $ac_n "cross compiling; assumed OK... $ac_c"
9545else
9546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547/* end confdefs.h.  */
9548
9549#include <gtk/gtk.h>
9550#include <stdio.h>
9551#if STDC_HEADERS
9552# include <stdlib.h>
9553# include <stddef.h>
9554#endif
9555
9556int
9557main ()
9558{
9559int major, minor, micro;
9560char *tmp_version;
9561
9562system ("touch conf.gtktest");
9563
9564/* HP/UX 9 (%@#!) writes to sscanf strings */
9565tmp_version = g_strdup("$min_gtk_version");
9566if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9567   printf("%s, bad version string\n", "$min_gtk_version");
9568   exit(1);
9569 }
9570
9571if ((gtk_major_version > major) ||
9572    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9573    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9574				     (gtk_micro_version >= micro)))
9575{
9576    return 0;
9577}
9578return 1;
9579}
9580
9581_ACEOF
9582if ac_fn_c_try_run "$LINENO"; then :
9583
9584else
9585  no_gtk=yes
9586fi
9587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9588  conftest.$ac_objext conftest.beam conftest.$ac_ext
9589fi
9590
9591      CFLAGS="$ac_save_CFLAGS"
9592      LIBS="$ac_save_LIBS"
9593    }
9594    fi
9595    if test "x$no_gtk" = x ; then
9596      if test "x$enable_gtktest" = "xyes"; then
9597	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9598$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9599      else
9600	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9601$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9602      fi
9603      GUI_LIB_LOC="$GTK_LIBDIR"
9604		 GTK_LIBNAME="$GTK_LIBS"
9605		GUI_INC_LOC="$GTK_CFLAGS"
9606    else
9607    {
9608      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609$as_echo "no" >&6; }
9610      GTK_CFLAGS=""
9611      GTK_LIBS=""
9612      :
9613      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9614	as_fn_error $? "could not configure GTK" "$LINENO" 5
9615      fi
9616    }
9617    fi
9618  }
9619  else
9620    GTK_CFLAGS=""
9621    GTK_LIBS=""
9622    :
9623  fi
9624
9625
9626  rm -f conf.gtktest
9627
9628    if test "x$GTK_CFLAGS" != "x"; then
9629      SKIP_GTK3=YES
9630      SKIP_ATHENA=YES
9631      SKIP_NEXTAW=YES
9632      SKIP_MOTIF=YES
9633      GUITYPE=GTK
9634
9635    fi
9636  fi
9637  if test "x$GUITYPE" = "xGTK"; then
9638                if test -z "$SKIP_GNOME"; then
9639    {
9640
9641
9642
9643
9644
9645
9646# Check whether --with-gnome-includes was given.
9647if test "${with_gnome_includes+set}" = set; then :
9648  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9649
9650fi
9651
9652
9653
9654# Check whether --with-gnome-libs was given.
9655if test "${with_gnome_libs+set}" = set; then :
9656  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9657
9658fi
9659
9660
9661
9662# Check whether --with-gnome was given.
9663if test "${with_gnome+set}" = set; then :
9664  withval=$with_gnome; if test x$withval = xyes; then
9665      want_gnome=yes
9666      have_gnome=yes
9667    else
9668      if test "x$withval" = xno; then
9669	want_gnome=no
9670      else
9671	want_gnome=yes
9672	LDFLAGS="$LDFLAGS -L$withval/lib"
9673	CFLAGS="$CFLAGS -I$withval/include"
9674	gnome_prefix=$withval/lib
9675      fi
9676    fi
9677else
9678  want_gnome=yes
9679fi
9680
9681
9682  if test "x$want_gnome" = xyes; then
9683  {
9684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9685$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9686    if $PKG_CONFIG --exists libgnomeui-2.0; then
9687      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9688$as_echo "yes" >&6; }
9689      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9690      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9691      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9692
9693                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9694$as_echo_n "checking for FreeBSD... " >&6; }
9695      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9696	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9697$as_echo "yes" >&6; }
9698	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9699	GNOME_LIBS="$GNOME_LIBS -pthread"
9700      else
9701	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702$as_echo "no" >&6; }
9703      fi
9704      have_gnome=yes
9705    else
9706      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9707$as_echo "not found" >&6; }
9708      if test "x" = xfail; then
9709	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9710      fi
9711    fi
9712  }
9713  fi
9714
9715      if test "x$have_gnome" = xyes ; then
9716	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9717
9718	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9719	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9720      fi
9721    }
9722    fi
9723  fi
9724fi
9725
9726
9727if test -z "$SKIP_GTK3"; then
9728
9729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9730$as_echo_n "checking --disable-gtktest argument... " >&6; }
9731  # Check whether --enable-gtktest was given.
9732if test "${enable_gtktest+set}" = set; then :
9733  enableval=$enable_gtktest;
9734else
9735  enable_gtktest=yes
9736fi
9737
9738  if test "x$enable_gtktest" = "xyes" ; then
9739    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9740$as_echo "gtk test enabled" >&6; }
9741  else
9742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9743$as_echo "gtk test disabled" >&6; }
9744  fi
9745
9746  if test "x$PKG_CONFIG" != "xno"; then
9747
9748  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9749  {
9750    no_gtk=""
9751    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9752	  && $PKG_CONFIG --exists gtk+-2.0; then
9753    {
9754      min_gtk_version=3.0.0
9755      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9756$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9757                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9758      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9759      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9760      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9761	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9762      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9763	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9764      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9765	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9766    }
9767    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9768	  && $PKG_CONFIG --exists gtk+-3.0; then
9769    {
9770      min_gtk_version=3.0.0
9771      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9772$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9773
9774      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9775      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9776      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9777      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9778	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9779      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9780	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9781      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9782	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9783    }
9784    else
9785      no_gtk=yes
9786    fi
9787
9788    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9789    {
9790      ac_save_CFLAGS="$CFLAGS"
9791      ac_save_LIBS="$LIBS"
9792      CFLAGS="$CFLAGS $GTK_CFLAGS"
9793      LIBS="$LIBS $GTK_LIBS"
9794
9795                        rm -f conf.gtktest
9796      if test "$cross_compiling" = yes; then :
9797  echo $ac_n "cross compiling; assumed OK... $ac_c"
9798else
9799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800/* end confdefs.h.  */
9801
9802#include <gtk/gtk.h>
9803#include <stdio.h>
9804#if STDC_HEADERS
9805# include <stdlib.h>
9806# include <stddef.h>
9807#endif
9808
9809int
9810main ()
9811{
9812int major, minor, micro;
9813char *tmp_version;
9814
9815system ("touch conf.gtktest");
9816
9817/* HP/UX 9 (%@#!) writes to sscanf strings */
9818tmp_version = g_strdup("$min_gtk_version");
9819if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9820   printf("%s, bad version string\n", "$min_gtk_version");
9821   exit(1);
9822 }
9823
9824if ((gtk_major_version > major) ||
9825    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9826    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9827				     (gtk_micro_version >= micro)))
9828{
9829    return 0;
9830}
9831return 1;
9832}
9833
9834_ACEOF
9835if ac_fn_c_try_run "$LINENO"; then :
9836
9837else
9838  no_gtk=yes
9839fi
9840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9841  conftest.$ac_objext conftest.beam conftest.$ac_ext
9842fi
9843
9844      CFLAGS="$ac_save_CFLAGS"
9845      LIBS="$ac_save_LIBS"
9846    }
9847    fi
9848    if test "x$no_gtk" = x ; then
9849      if test "x$enable_gtktest" = "xyes"; then
9850	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9851$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9852      else
9853	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9854$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9855      fi
9856      GUI_LIB_LOC="$GTK_LIBDIR"
9857		 GTK_LIBNAME="$GTK_LIBS"
9858		GUI_INC_LOC="$GTK_CFLAGS"
9859    else
9860    {
9861      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862$as_echo "no" >&6; }
9863      GTK_CFLAGS=""
9864      GTK_LIBS=""
9865      :
9866      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9867	as_fn_error $? "could not configure GTK" "$LINENO" 5
9868      fi
9869    }
9870    fi
9871  }
9872  else
9873    GTK_CFLAGS=""
9874    GTK_LIBS=""
9875    :
9876  fi
9877
9878
9879  rm -f conf.gtktest
9880
9881    if test "x$GTK_CFLAGS" != "x"; then
9882      SKIP_GTK2=YES
9883      SKIP_GNOME=YES
9884      SKIP_ATHENA=YES
9885      SKIP_NEXTAW=YES
9886      SKIP_MOTIF=YES
9887      GUITYPE=GTK
9888
9889      $as_echo "#define USE_GTK3 1" >>confdefs.h
9890
9891    fi
9892  fi
9893fi
9894
9895if test "x$GUITYPE" = "xGTK"; then
9896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9897$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9898  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9899  if test "x$gdk_pixbuf_version" != x ; then
9900    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9901      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9902    if test "x$gdk_pixbuf_version_minor" != x -a \
9903	$gdk_pixbuf_version_minor -ge 31 ; then
9904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
9905$as_echo "OK." >&6; }
9906      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
9907set dummy glib-compile-resources; ac_word=$2
9908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9909$as_echo_n "checking for $ac_word... " >&6; }
9910if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
9911  $as_echo_n "(cached) " >&6
9912else
9913  case $GLIB_COMPILE_RESOURCES in
9914  [\\/]* | ?:[\\/]*)
9915  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
9916  ;;
9917  *)
9918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919for as_dir in $PATH
9920do
9921  IFS=$as_save_IFS
9922  test -z "$as_dir" && as_dir=.
9923    for ac_exec_ext in '' $ac_executable_extensions; do
9924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9925    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
9926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9927    break 2
9928  fi
9929done
9930  done
9931IFS=$as_save_IFS
9932
9933  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
9934  ;;
9935esac
9936fi
9937GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
9938if test -n "$GLIB_COMPILE_RESOURCES"; then
9939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
9940$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
9941else
9942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943$as_echo "no" >&6; }
9944fi
9945
9946
9947      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
9948$as_echo_n "checking glib-compile-resources... " >&6; }
9949      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
9950	GLIB_COMPILE_RESOURCES=""
9951	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
9952$as_echo "cannot be found in PATH." >&6; }
9953      else
9954	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
9955$as_echo "usable." >&6; }
9956	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
9957
9958	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
9959	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
9960      fi
9961    else
9962      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
9963$as_echo "not usable." >&6; }
9964    fi
9965  else
9966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
9967$as_echo "cannot obtain from pkg_config." >&6; }
9968  fi
9969
9970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
9971$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
9972  # Check whether --enable-icon_cache_update was given.
9973if test "${enable_icon_cache_update+set}" = set; then :
9974  enableval=$enable_icon_cache_update;
9975else
9976  enable_icon_cache_update="yes"
9977fi
9978
9979  if test "$enable_icon_cache_update" = "yes"; then
9980    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9981$as_echo "not set" >&6; }
9982    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
9983set dummy gtk-update-icon-cache; ac_word=$2
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985$as_echo_n "checking for $ac_word... " >&6; }
9986if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
9987  $as_echo_n "(cached) " >&6
9988else
9989  case $GTK_UPDATE_ICON_CACHE in
9990  [\\/]* | ?:[\\/]*)
9991  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
9992  ;;
9993  *)
9994  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995for as_dir in $PATH
9996do
9997  IFS=$as_save_IFS
9998  test -z "$as_dir" && as_dir=.
9999    for ac_exec_ext in '' $ac_executable_extensions; do
10000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
10002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003    break 2
10004  fi
10005done
10006  done
10007IFS=$as_save_IFS
10008
10009  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
10010  ;;
10011esac
10012fi
10013GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
10014if test -n "$GTK_UPDATE_ICON_CACHE"; then
10015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
10016$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
10017else
10018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019$as_echo "no" >&6; }
10020fi
10021
10022
10023    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
10024      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10025$as_echo "not found in PATH." >&6; }
10026    fi
10027  else
10028    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10029$as_echo "update disabled" >&6; }
10030  fi
10031
10032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
10033$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
10034  # Check whether --enable-desktop_database_update was given.
10035if test "${enable_desktop_database_update+set}" = set; then :
10036  enableval=$enable_desktop_database_update;
10037else
10038  enable_desktop_database_update="yes"
10039fi
10040
10041  if test "$enable_desktop_database_update" = "yes"; then
10042    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10043$as_echo "not set" >&6; }
10044    # Extract the first word of "update-desktop-database", so it can be a program name with args.
10045set dummy update-desktop-database; ac_word=$2
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047$as_echo_n "checking for $ac_word... " >&6; }
10048if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
10049  $as_echo_n "(cached) " >&6
10050else
10051  case $UPDATE_DESKTOP_DATABASE in
10052  [\\/]* | ?:[\\/]*)
10053  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
10054  ;;
10055  *)
10056  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057for as_dir in $PATH
10058do
10059  IFS=$as_save_IFS
10060  test -z "$as_dir" && as_dir=.
10061    for ac_exec_ext in '' $ac_executable_extensions; do
10062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10063    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
10064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10065    break 2
10066  fi
10067done
10068  done
10069IFS=$as_save_IFS
10070
10071  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
10072  ;;
10073esac
10074fi
10075UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
10076if test -n "$UPDATE_DESKTOP_DATABASE"; then
10077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
10078$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
10079else
10080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
10082fi
10083
10084
10085    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
10086      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10087$as_echo "not found in PATH." >&6; }
10088    fi
10089  else
10090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10091$as_echo "update disabled" >&6; }
10092  fi
10093fi
10094
10095
10096
10097
10098
10099
10100
10101if test -z "$SKIP_MOTIF"; then
10102  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"
10103    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
10104
10105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
10106$as_echo_n "checking for location of Motif GUI includes... " >&6; }
10107  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
10108  GUI_INC_LOC=
10109  for try in $gui_includes; do
10110    if test -f "$try/Xm/Xm.h"; then
10111      GUI_INC_LOC=$try
10112    fi
10113  done
10114  if test -n "$GUI_INC_LOC"; then
10115    if test "$GUI_INC_LOC" = /usr/include; then
10116      GUI_INC_LOC=
10117      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10118$as_echo "in default path" >&6; }
10119    else
10120      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
10121$as_echo "$GUI_INC_LOC" >&6; }
10122    fi
10123  else
10124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10125$as_echo "<not found>" >&6; }
10126    SKIP_MOTIF=YES
10127  fi
10128fi
10129
10130
10131if test -z "$SKIP_MOTIF"; then
10132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
10133$as_echo_n "checking --with-motif-lib argument... " >&6; }
10134
10135# Check whether --with-motif-lib was given.
10136if test "${with_motif_lib+set}" = set; then :
10137  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
10138fi
10139
10140
10141  if test -n "$MOTIF_LIBNAME"; then
10142    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
10143$as_echo "$MOTIF_LIBNAME" >&6; }
10144    GUI_LIB_LOC=
10145  else
10146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147$as_echo "no" >&6; }
10148
10149        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
10150
10151            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
10152$as_echo_n "checking for location of Motif GUI libs... " >&6; }
10153    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"
10154    GUI_LIB_LOC=
10155    for try in $gui_libs; do
10156      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
10157	if test -f "$libtry"; then
10158	  GUI_LIB_LOC=$try
10159	fi
10160      done
10161    done
10162    if test -n "$GUI_LIB_LOC"; then
10163            if test "$GUI_LIB_LOC" = /usr/lib \
10164	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
10165	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
10166	GUI_LIB_LOC=
10167	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10168$as_echo "in default path" >&6; }
10169      else
10170	if test -n "$GUI_LIB_LOC"; then
10171	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
10172$as_echo "$GUI_LIB_LOC" >&6; }
10173	  if test "`(uname) 2>/dev/null`" = SunOS &&
10174					 uname -r | grep '^5' >/dev/null; then
10175	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
10176	  fi
10177	fi
10178      fi
10179      MOTIF_LIBNAME=-lXm
10180    else
10181      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10182$as_echo "<not found>" >&6; }
10183      SKIP_MOTIF=YES
10184    fi
10185  fi
10186fi
10187
10188if test -z "$SKIP_MOTIF"; then
10189  SKIP_ATHENA=YES
10190  SKIP_NEXTAW=YES
10191  GUITYPE=MOTIF
10192
10193fi
10194
10195
10196GUI_X_LIBS=
10197
10198if test -z "$SKIP_ATHENA"; then
10199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
10200$as_echo_n "checking if Athena header files can be found... " >&6; }
10201  cflags_save=$CFLAGS
10202  CFLAGS="$CFLAGS $X_CFLAGS"
10203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h.  */
10205
10206#include <X11/Intrinsic.h>
10207#include <X11/Xaw/Paned.h>
10208int
10209main ()
10210{
10211
10212  ;
10213  return 0;
10214}
10215_ACEOF
10216if ac_fn_c_try_compile "$LINENO"; then :
10217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10218$as_echo "yes" >&6; }
10219else
10220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221$as_echo "no" >&6; }; SKIP_ATHENA=YES
10222fi
10223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10224  CFLAGS=$cflags_save
10225fi
10226
10227if test -z "$SKIP_ATHENA"; then
10228  GUITYPE=ATHENA
10229fi
10230
10231if test -z "$SKIP_NEXTAW"; then
10232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
10233$as_echo_n "checking if neXtaw header files can be found... " >&6; }
10234  cflags_save=$CFLAGS
10235  CFLAGS="$CFLAGS $X_CFLAGS"
10236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237/* end confdefs.h.  */
10238
10239#include <X11/Intrinsic.h>
10240#include <X11/neXtaw/Paned.h>
10241int
10242main ()
10243{
10244
10245  ;
10246  return 0;
10247}
10248_ACEOF
10249if ac_fn_c_try_compile "$LINENO"; then :
10250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10251$as_echo "yes" >&6; }
10252else
10253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254$as_echo "no" >&6; }; SKIP_NEXTAW=YES
10255fi
10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257  CFLAGS=$cflags_save
10258fi
10259
10260if test -z "$SKIP_NEXTAW"; then
10261  GUITYPE=NEXTAW
10262fi
10263
10264if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10265      if test -n "$GUI_INC_LOC"; then
10266    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
10267  fi
10268  if test -n "$GUI_LIB_LOC"; then
10269    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
10270  fi
10271
10272    ldflags_save=$LDFLAGS
10273  LDFLAGS="$X_LIBS $LDFLAGS"
10274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10275$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10276if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10277  $as_echo_n "(cached) " >&6
10278else
10279  ac_check_lib_save_LIBS=$LIBS
10280LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282/* end confdefs.h.  */
10283
10284/* Override any GCC internal prototype to avoid an error.
10285   Use char because int might match the return type of a GCC
10286   builtin and then its argument prototype would still apply.  */
10287#ifdef __cplusplus
10288extern "C"
10289#endif
10290char XShapeQueryExtension ();
10291int
10292main ()
10293{
10294return XShapeQueryExtension ();
10295  ;
10296  return 0;
10297}
10298_ACEOF
10299if ac_fn_c_try_link "$LINENO"; then :
10300  ac_cv_lib_Xext_XShapeQueryExtension=yes
10301else
10302  ac_cv_lib_Xext_XShapeQueryExtension=no
10303fi
10304rm -f core conftest.err conftest.$ac_objext \
10305    conftest$ac_exeext conftest.$ac_ext
10306LIBS=$ac_check_lib_save_LIBS
10307fi
10308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10309$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10310if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10311  GUI_X_LIBS="-lXext"
10312fi
10313
10314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
10315$as_echo_n "checking for wslen in -lw... " >&6; }
10316if ${ac_cv_lib_w_wslen+:} false; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  ac_check_lib_save_LIBS=$LIBS
10320LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h.  */
10323
10324/* Override any GCC internal prototype to avoid an error.
10325   Use char because int might match the return type of a GCC
10326   builtin and then its argument prototype would still apply.  */
10327#ifdef __cplusplus
10328extern "C"
10329#endif
10330char wslen ();
10331int
10332main ()
10333{
10334return wslen ();
10335  ;
10336  return 0;
10337}
10338_ACEOF
10339if ac_fn_c_try_link "$LINENO"; then :
10340  ac_cv_lib_w_wslen=yes
10341else
10342  ac_cv_lib_w_wslen=no
10343fi
10344rm -f core conftest.err conftest.$ac_objext \
10345    conftest$ac_exeext conftest.$ac_ext
10346LIBS=$ac_check_lib_save_LIBS
10347fi
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
10349$as_echo "$ac_cv_lib_w_wslen" >&6; }
10350if test "x$ac_cv_lib_w_wslen" = xyes; then :
10351  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
10352fi
10353
10354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10355$as_echo_n "checking for dlsym in -ldl... " >&6; }
10356if ${ac_cv_lib_dl_dlsym+:} false; then :
10357  $as_echo_n "(cached) " >&6
10358else
10359  ac_check_lib_save_LIBS=$LIBS
10360LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362/* end confdefs.h.  */
10363
10364/* Override any GCC internal prototype to avoid an error.
10365   Use char because int might match the return type of a GCC
10366   builtin and then its argument prototype would still apply.  */
10367#ifdef __cplusplus
10368extern "C"
10369#endif
10370char dlsym ();
10371int
10372main ()
10373{
10374return dlsym ();
10375  ;
10376  return 0;
10377}
10378_ACEOF
10379if ac_fn_c_try_link "$LINENO"; then :
10380  ac_cv_lib_dl_dlsym=yes
10381else
10382  ac_cv_lib_dl_dlsym=no
10383fi
10384rm -f core conftest.err conftest.$ac_objext \
10385    conftest$ac_exeext conftest.$ac_ext
10386LIBS=$ac_check_lib_save_LIBS
10387fi
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10389$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10390if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10391  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
10392fi
10393
10394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
10395$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
10396if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
10397  $as_echo_n "(cached) " >&6
10398else
10399  ac_check_lib_save_LIBS=$LIBS
10400LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402/* end confdefs.h.  */
10403
10404/* Override any GCC internal prototype to avoid an error.
10405   Use char because int might match the return type of a GCC
10406   builtin and then its argument prototype would still apply.  */
10407#ifdef __cplusplus
10408extern "C"
10409#endif
10410char XmuCreateStippledPixmap ();
10411int
10412main ()
10413{
10414return XmuCreateStippledPixmap ();
10415  ;
10416  return 0;
10417}
10418_ACEOF
10419if ac_fn_c_try_link "$LINENO"; then :
10420  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
10421else
10422  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
10423fi
10424rm -f core conftest.err conftest.$ac_objext \
10425    conftest$ac_exeext conftest.$ac_ext
10426LIBS=$ac_check_lib_save_LIBS
10427fi
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
10429$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
10430if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
10431  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
10432fi
10433
10434  if test -z "$SKIP_MOTIF"; then
10435    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
10436$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
10437if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
10438  $as_echo_n "(cached) " >&6
10439else
10440  ac_check_lib_save_LIBS=$LIBS
10441LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h.  */
10444
10445/* Override any GCC internal prototype to avoid an error.
10446   Use char because int might match the return type of a GCC
10447   builtin and then its argument prototype would still apply.  */
10448#ifdef __cplusplus
10449extern "C"
10450#endif
10451char XpEndJob ();
10452int
10453main ()
10454{
10455return XpEndJob ();
10456  ;
10457  return 0;
10458}
10459_ACEOF
10460if ac_fn_c_try_link "$LINENO"; then :
10461  ac_cv_lib_Xp_XpEndJob=yes
10462else
10463  ac_cv_lib_Xp_XpEndJob=no
10464fi
10465rm -f core conftest.err conftest.$ac_objext \
10466    conftest$ac_exeext conftest.$ac_ext
10467LIBS=$ac_check_lib_save_LIBS
10468fi
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
10470$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10471if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
10472  GUI_X_LIBS="-lXp $GUI_X_LIBS"
10473fi
10474
10475  fi
10476  LDFLAGS=$ldflags_save
10477
10478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
10479$as_echo_n "checking for extra X11 defines... " >&6; }
10480  NARROW_PROTO=
10481  rm -fr conftestdir
10482  if mkdir conftestdir; then
10483    cd conftestdir
10484    cat > Imakefile <<'EOF'
10485acfindx:
10486	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10487EOF
10488    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10489      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10490    fi
10491    cd ..
10492    rm -fr conftestdir
10493  fi
10494  if test -z "$NARROW_PROTO"; then
10495    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496$as_echo "no" >&6; }
10497  else
10498    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
10499$as_echo "$NARROW_PROTO" >&6; }
10500  fi
10501
10502fi
10503
10504if test "$enable_xsmp" = "yes"; then
10505  cppflags_save=$CPPFLAGS
10506  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10507  for ac_header in X11/SM/SMlib.h
10508do :
10509  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10510if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
10511  cat >>confdefs.h <<_ACEOF
10512#define HAVE_X11_SM_SMLIB_H 1
10513_ACEOF
10514
10515fi
10516
10517done
10518
10519  CPPFLAGS=$cppflags_save
10520fi
10521
10522
10523if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
10524    cppflags_save=$CPPFLAGS
10525  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10526  for ac_header in X11/xpm.h X11/Sunkeysym.h
10527do :
10528  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10529ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10530if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10531  cat >>confdefs.h <<_ACEOF
10532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10533_ACEOF
10534
10535fi
10536
10537done
10538
10539
10540    if test ! "$enable_xim" = "no"; then
10541    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
10542$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10543    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h.  */
10545#include <X11/Xlib.h>
10546_ACEOF
10547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10548  $EGREP "XIMText" >/dev/null 2>&1; then :
10549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10550$as_echo "yes" >&6; }
10551else
10552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10553$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10554fi
10555rm -f conftest*
10556
10557  fi
10558  CPPFLAGS=$cppflags_save
10559
10560    if test "$enable_xim" = "auto" -a "x$GUITYPE" != "xNONE" ; then
10561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10562$as_echo "X GUI selected; xim has been enabled" >&6; }
10563    enable_xim="yes"
10564  fi
10565fi
10566
10567if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10568  cppflags_save=$CPPFLAGS
10569  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10571$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573/* end confdefs.h.  */
10574
10575#include <X11/Intrinsic.h>
10576#include <X11/Xmu/Editres.h>
10577int
10578main ()
10579{
10580int i; i = 0;
10581  ;
10582  return 0;
10583}
10584_ACEOF
10585if ac_fn_c_try_compile "$LINENO"; then :
10586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10587$as_echo "yes" >&6; }
10588		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10589
10590else
10591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592$as_echo "no" >&6; }
10593fi
10594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595  CPPFLAGS=$cppflags_save
10596fi
10597
10598if test -z "$SKIP_MOTIF"; then
10599  cppflags_save=$CPPFLAGS
10600  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10601  if test "$zOSUnix" = "yes"; then
10602	xmheader="Xm/Xm.h"
10603  else
10604	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10605	   Xm/UnhighlightT.h Xm/Notebook.h"
10606  fi
10607  for ac_header in $xmheader
10608do :
10609  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10610ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10612  cat >>confdefs.h <<_ACEOF
10613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10614_ACEOF
10615
10616fi
10617
10618done
10619
10620
10621  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10622        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10623$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10624    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625/* end confdefs.h.  */
10626#include <Xm/XpmP.h>
10627int
10628main ()
10629{
10630XpmAttributes_21 attr;
10631  ;
10632  return 0;
10633}
10634_ACEOF
10635if ac_fn_c_try_compile "$LINENO"; then :
10636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10637$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10638
10639else
10640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10642
10643
10644fi
10645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646  else
10647    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10648
10649  fi
10650  CPPFLAGS=$cppflags_save
10651fi
10652
10653if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10655$as_echo "no GUI selected; xim has been disabled" >&6; }
10656  enable_xim="no"
10657fi
10658if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10660$as_echo "no GUI selected; fontset has been disabled" >&6; }
10661  enable_fontset="no"
10662fi
10663if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10665$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10666  enable_fontset="no"
10667fi
10668
10669if test -z "$SKIP_HAIKU"; then
10670  GUITYPE=HAIKUGUI
10671fi
10672
10673if test -z "$SKIP_PHOTON"; then
10674  GUITYPE=PHOTONGUI
10675fi
10676
10677
10678
10679
10680
10681
10682if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10683  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10684fi
10685
10686if test "$enable_xim" = "yes"; then
10687  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10688
10689fi
10690if test "$enable_fontset" = "yes"; then
10691  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10692
10693fi
10694
10695
10696
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10698$as_echo_n "checking for /proc link to executable... " >&6; }
10699if test -L "/proc/self/exe"; then
10700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10701$as_echo "/proc/self/exe" >&6; }
10702  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10703
10704elif test -L "/proc/self/path/a.out"; then
10705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10706$as_echo "/proc/self/path/a.out" >&6; }
10707  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10708
10709elif test -L "/proc/curproc/file"; then
10710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10711$as_echo "/proc/curproc/file" >&6; }
10712  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10713
10714else
10715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716$as_echo "no" >&6; }
10717fi
10718
10719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10720$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10721case `uname` in
10722    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10723$as_echo "yes" >&6; }
10724                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10725$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10726                if test "x$with_x" = "xno" ; then
10727                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10728                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10729$as_echo "yes" >&6; }
10730                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10731
10732                else
10733                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10734$as_echo "no - using X11" >&6; }
10735                fi ;;
10736
10737    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738$as_echo "no" >&6; };;
10739esac
10740
10741
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10743$as_echo_n "checking whether toupper is broken... " >&6; }
10744if ${vim_cv_toupper_broken+:} false; then :
10745  $as_echo_n "(cached) " >&6
10746else
10747
10748    if test "$cross_compiling" = yes; then :
10749
10750    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10751
10752else
10753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754/* end confdefs.h.  */
10755
10756#include "confdefs.h"
10757#include <ctype.h>
10758#if STDC_HEADERS
10759# include <stdlib.h>
10760# include <stddef.h>
10761#endif
10762main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10763
10764_ACEOF
10765if ac_fn_c_try_run "$LINENO"; then :
10766
10767    vim_cv_toupper_broken=yes
10768
10769else
10770
10771    vim_cv_toupper_broken=no
10772
10773fi
10774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10775  conftest.$ac_objext conftest.beam conftest.$ac_ext
10776fi
10777
10778fi
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10780$as_echo "$vim_cv_toupper_broken" >&6; }
10781
10782if test "x$vim_cv_toupper_broken" = "xyes" ; then
10783  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10784
10785fi
10786
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10788$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790/* end confdefs.h.  */
10791#include <stdio.h>
10792int
10793main ()
10794{
10795printf("(" __DATE__ " " __TIME__ ")");
10796  ;
10797  return 0;
10798}
10799_ACEOF
10800if ac_fn_c_try_compile "$LINENO"; then :
10801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10802$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10803
10804else
10805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806$as_echo "no" >&6; }
10807fi
10808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10809
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10811$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813/* end confdefs.h.  */
10814#include <stdio.h>
10815int
10816main ()
10817{
10818int x __attribute__((unused));
10819  ;
10820  return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_compile "$LINENO"; then :
10824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10825$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10826
10827else
10828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829$as_echo "no" >&6; }
10830fi
10831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832
10833ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10834if test "x$ac_cv_header_elf_h" = xyes; then :
10835  HAS_ELF=1
10836fi
10837
10838
10839if test "$HAS_ELF" = 1; then
10840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10841$as_echo_n "checking for main in -lelf... " >&6; }
10842if ${ac_cv_lib_elf_main+:} false; then :
10843  $as_echo_n "(cached) " >&6
10844else
10845  ac_check_lib_save_LIBS=$LIBS
10846LIBS="-lelf  $LIBS"
10847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848/* end confdefs.h.  */
10849
10850
10851int
10852main ()
10853{
10854return main ();
10855  ;
10856  return 0;
10857}
10858_ACEOF
10859if ac_fn_c_try_link "$LINENO"; then :
10860  ac_cv_lib_elf_main=yes
10861else
10862  ac_cv_lib_elf_main=no
10863fi
10864rm -f core conftest.err conftest.$ac_objext \
10865    conftest$ac_exeext conftest.$ac_ext
10866LIBS=$ac_check_lib_save_LIBS
10867fi
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10869$as_echo "$ac_cv_lib_elf_main" >&6; }
10870if test "x$ac_cv_lib_elf_main" = xyes; then :
10871  cat >>confdefs.h <<_ACEOF
10872#define HAVE_LIBELF 1
10873_ACEOF
10874
10875  LIBS="-lelf $LIBS"
10876
10877fi
10878
10879fi
10880
10881ac_header_dirent=no
10882for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10883  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10885$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10886if eval \${$as_ac_Header+:} false; then :
10887  $as_echo_n "(cached) " >&6
10888else
10889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890/* end confdefs.h.  */
10891#include <sys/types.h>
10892#include <$ac_hdr>
10893
10894int
10895main ()
10896{
10897if ((DIR *) 0)
10898return 0;
10899  ;
10900  return 0;
10901}
10902_ACEOF
10903if ac_fn_c_try_compile "$LINENO"; then :
10904  eval "$as_ac_Header=yes"
10905else
10906  eval "$as_ac_Header=no"
10907fi
10908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909fi
10910eval ac_res=\$$as_ac_Header
10911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10912$as_echo "$ac_res" >&6; }
10913if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10914  cat >>confdefs.h <<_ACEOF
10915#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10916_ACEOF
10917
10918ac_header_dirent=$ac_hdr; break
10919fi
10920
10921done
10922# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10923if test $ac_header_dirent = dirent.h; then
10924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10925$as_echo_n "checking for library containing opendir... " >&6; }
10926if ${ac_cv_search_opendir+:} false; then :
10927  $as_echo_n "(cached) " >&6
10928else
10929  ac_func_search_save_LIBS=$LIBS
10930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931/* end confdefs.h.  */
10932
10933/* Override any GCC internal prototype to avoid an error.
10934   Use char because int might match the return type of a GCC
10935   builtin and then its argument prototype would still apply.  */
10936#ifdef __cplusplus
10937extern "C"
10938#endif
10939char opendir ();
10940int
10941main ()
10942{
10943return opendir ();
10944  ;
10945  return 0;
10946}
10947_ACEOF
10948for ac_lib in '' dir; do
10949  if test -z "$ac_lib"; then
10950    ac_res="none required"
10951  else
10952    ac_res=-l$ac_lib
10953    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10954  fi
10955  if ac_fn_c_try_link "$LINENO"; then :
10956  ac_cv_search_opendir=$ac_res
10957fi
10958rm -f core conftest.err conftest.$ac_objext \
10959    conftest$ac_exeext
10960  if ${ac_cv_search_opendir+:} false; then :
10961  break
10962fi
10963done
10964if ${ac_cv_search_opendir+:} false; then :
10965
10966else
10967  ac_cv_search_opendir=no
10968fi
10969rm conftest.$ac_ext
10970LIBS=$ac_func_search_save_LIBS
10971fi
10972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10973$as_echo "$ac_cv_search_opendir" >&6; }
10974ac_res=$ac_cv_search_opendir
10975if test "$ac_res" != no; then :
10976  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10977
10978fi
10979
10980else
10981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10982$as_echo_n "checking for library containing opendir... " >&6; }
10983if ${ac_cv_search_opendir+:} false; then :
10984  $as_echo_n "(cached) " >&6
10985else
10986  ac_func_search_save_LIBS=$LIBS
10987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988/* end confdefs.h.  */
10989
10990/* Override any GCC internal prototype to avoid an error.
10991   Use char because int might match the return type of a GCC
10992   builtin and then its argument prototype would still apply.  */
10993#ifdef __cplusplus
10994extern "C"
10995#endif
10996char opendir ();
10997int
10998main ()
10999{
11000return opendir ();
11001  ;
11002  return 0;
11003}
11004_ACEOF
11005for ac_lib in '' x; do
11006  if test -z "$ac_lib"; then
11007    ac_res="none required"
11008  else
11009    ac_res=-l$ac_lib
11010    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11011  fi
11012  if ac_fn_c_try_link "$LINENO"; then :
11013  ac_cv_search_opendir=$ac_res
11014fi
11015rm -f core conftest.err conftest.$ac_objext \
11016    conftest$ac_exeext
11017  if ${ac_cv_search_opendir+:} false; then :
11018  break
11019fi
11020done
11021if ${ac_cv_search_opendir+:} false; then :
11022
11023else
11024  ac_cv_search_opendir=no
11025fi
11026rm conftest.$ac_ext
11027LIBS=$ac_func_search_save_LIBS
11028fi
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11030$as_echo "$ac_cv_search_opendir" >&6; }
11031ac_res=$ac_cv_search_opendir
11032if test "$ac_res" != no; then :
11033  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11034
11035fi
11036
11037fi
11038
11039
11040if test $ac_cv_header_sys_wait_h = no; then
11041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
11042$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044/* end confdefs.h.  */
11045#include <sys/wait.h>
11046int
11047main ()
11048{
11049union wait xx, yy; xx = yy
11050  ;
11051  return 0;
11052}
11053_ACEOF
11054if ac_fn_c_try_compile "$LINENO"; then :
11055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11056$as_echo "yes" >&6; }
11057			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11058
11059			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
11060
11061else
11062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063$as_echo "no" >&6; }
11064fi
11065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066fi
11067
11068for ac_header in stdint.h stdlib.h string.h \
11069	sys/select.h sys/utsname.h termcap.h fcntl.h \
11070	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
11071	termio.h iconv.h inttypes.h langinfo.h math.h \
11072	unistd.h stropts.h errno.h sys/resource.h \
11073	sys/systeminfo.h locale.h sys/stream.h termios.h \
11074	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
11075	utime.h sys/param.h sys/ptms.h libintl.h libgen.h \
11076	util/debug.h util/msg18n.h frame.h sys/acl.h \
11077	sys/access.h sys/sysinfo.h wchar.h wctype.h
11078do :
11079  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11080ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11081if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11082  cat >>confdefs.h <<_ACEOF
11083#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11084_ACEOF
11085
11086fi
11087
11088done
11089
11090
11091for ac_header in sys/ptem.h
11092do :
11093  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
11094#  include <sys/stream.h>
11095#endif
11096"
11097if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
11098  cat >>confdefs.h <<_ACEOF
11099#define HAVE_SYS_PTEM_H 1
11100_ACEOF
11101
11102fi
11103
11104done
11105
11106
11107for ac_header in sys/sysctl.h
11108do :
11109  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
11110#  include <sys/param.h>
11111#endif
11112"
11113if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
11114  cat >>confdefs.h <<_ACEOF
11115#define HAVE_SYS_SYSCTL_H 1
11116_ACEOF
11117
11118fi
11119
11120done
11121
11122
11123
11124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
11125$as_echo_n "checking for pthread_np.h... " >&6; }
11126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127/* end confdefs.h.  */
11128
11129#include <pthread.h>
11130#include <pthread_np.h>
11131int
11132main ()
11133{
11134int i; i = 0;
11135  ;
11136  return 0;
11137}
11138_ACEOF
11139if ac_fn_c_try_compile "$LINENO"; then :
11140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11141$as_echo "yes" >&6; }
11142		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
11143
11144else
11145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
11147fi
11148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149
11150for ac_header in strings.h
11151do :
11152  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
11153if test "x$ac_cv_header_strings_h" = xyes; then :
11154  cat >>confdefs.h <<_ACEOF
11155#define HAVE_STRINGS_H 1
11156_ACEOF
11157
11158fi
11159
11160done
11161
11162if test "x$MACOS_X" = "xyes"; then
11163    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11164
11165else
11166
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
11168$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11169cppflags_save=$CPPFLAGS
11170CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172/* end confdefs.h.  */
11173
11174#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11175# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11176			/* but don't do it on AIX 5.1 (Uribarri) */
11177#endif
11178#ifdef HAVE_XM_XM_H
11179# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11180#endif
11181#ifdef HAVE_STRING_H
11182# include <string.h>
11183#endif
11184#if defined(HAVE_STRINGS_H)
11185# include <strings.h>
11186#endif
11187
11188int
11189main ()
11190{
11191int i; i = 0;
11192  ;
11193  return 0;
11194}
11195_ACEOF
11196if ac_fn_c_try_compile "$LINENO"; then :
11197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11198$as_echo "yes" >&6; }
11199else
11200  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11201
11202		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203$as_echo "no" >&6; }
11204fi
11205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206CPPFLAGS=$cppflags_save
11207fi
11208
11209if test $ac_cv_c_compiler_gnu = yes; then
11210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11211$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11212if ${ac_cv_prog_gcc_traditional+:} false; then :
11213  $as_echo_n "(cached) " >&6
11214else
11215    ac_pattern="Autoconf.*'x'"
11216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217/* end confdefs.h.  */
11218#include <sgtty.h>
11219Autoconf TIOCGETP
11220_ACEOF
11221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11222  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11223  ac_cv_prog_gcc_traditional=yes
11224else
11225  ac_cv_prog_gcc_traditional=no
11226fi
11227rm -f conftest*
11228
11229
11230  if test $ac_cv_prog_gcc_traditional = no; then
11231    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232/* end confdefs.h.  */
11233#include <termio.h>
11234Autoconf TCGETA
11235_ACEOF
11236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11237  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11238  ac_cv_prog_gcc_traditional=yes
11239fi
11240rm -f conftest*
11241
11242  fi
11243fi
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11245$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11246  if test $ac_cv_prog_gcc_traditional = yes; then
11247    CC="$CC -traditional"
11248  fi
11249fi
11250
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11252$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11253if ${ac_cv_c_const+:} false; then :
11254  $as_echo_n "(cached) " >&6
11255else
11256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257/* end confdefs.h.  */
11258
11259int
11260main ()
11261{
11262
11263#ifndef __cplusplus
11264  /* Ultrix mips cc rejects this sort of thing.  */
11265  typedef int charset[2];
11266  const charset cs = { 0, 0 };
11267  /* SunOS 4.1.1 cc rejects this.  */
11268  char const *const *pcpcc;
11269  char **ppc;
11270  /* NEC SVR4.0.2 mips cc rejects this.  */
11271  struct point {int x, y;};
11272  static struct point const zero = {0,0};
11273  /* AIX XL C 1.02.0.0 rejects this.
11274     It does not let you subtract one const X* pointer from another in
11275     an arm of an if-expression whose if-part is not a constant
11276     expression */
11277  const char *g = "string";
11278  pcpcc = &g + (g ? g-g : 0);
11279  /* HPUX 7.0 cc rejects these. */
11280  ++pcpcc;
11281  ppc = (char**) pcpcc;
11282  pcpcc = (char const *const *) ppc;
11283  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11284    char tx;
11285    char *t = &tx;
11286    char const *s = 0 ? (char *) 0 : (char const *) 0;
11287
11288    *t++ = 0;
11289    if (s) return 0;
11290  }
11291  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11292    int x[] = {25, 17};
11293    const int *foo = &x[0];
11294    ++foo;
11295  }
11296  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11297    typedef const int *iptr;
11298    iptr p = 0;
11299    ++p;
11300  }
11301  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11302       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11303    struct s { int j; const int *ap[3]; } bx;
11304    struct s *b = &bx; b->j = 5;
11305  }
11306  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11307    const int foo = 10;
11308    if (!foo) return 0;
11309  }
11310  return !cs[0] && !zero.x;
11311#endif
11312
11313  ;
11314  return 0;
11315}
11316_ACEOF
11317if ac_fn_c_try_compile "$LINENO"; then :
11318  ac_cv_c_const=yes
11319else
11320  ac_cv_c_const=no
11321fi
11322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323fi
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11325$as_echo "$ac_cv_c_const" >&6; }
11326if test $ac_cv_c_const = no; then
11327
11328$as_echo "#define const /**/" >>confdefs.h
11329
11330fi
11331
11332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11333$as_echo_n "checking for working volatile... " >&6; }
11334if ${ac_cv_c_volatile+:} false; then :
11335  $as_echo_n "(cached) " >&6
11336else
11337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338/* end confdefs.h.  */
11339
11340int
11341main ()
11342{
11343
11344volatile int x;
11345int * volatile y = (int *) 0;
11346return !x && !y;
11347  ;
11348  return 0;
11349}
11350_ACEOF
11351if ac_fn_c_try_compile "$LINENO"; then :
11352  ac_cv_c_volatile=yes
11353else
11354  ac_cv_c_volatile=no
11355fi
11356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357fi
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11359$as_echo "$ac_cv_c_volatile" >&6; }
11360if test $ac_cv_c_volatile = no; then
11361
11362$as_echo "#define volatile /**/" >>confdefs.h
11363
11364fi
11365
11366ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11367if test "x$ac_cv_type_mode_t" = xyes; then :
11368
11369else
11370
11371cat >>confdefs.h <<_ACEOF
11372#define mode_t int
11373_ACEOF
11374
11375fi
11376
11377ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11378if test "x$ac_cv_type_off_t" = xyes; then :
11379
11380else
11381
11382cat >>confdefs.h <<_ACEOF
11383#define off_t long int
11384_ACEOF
11385
11386fi
11387
11388ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11389if test "x$ac_cv_type_pid_t" = xyes; then :
11390
11391else
11392
11393cat >>confdefs.h <<_ACEOF
11394#define pid_t int
11395_ACEOF
11396
11397fi
11398
11399ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11400if test "x$ac_cv_type_size_t" = xyes; then :
11401
11402else
11403
11404cat >>confdefs.h <<_ACEOF
11405#define size_t unsigned int
11406_ACEOF
11407
11408fi
11409
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11411$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11412if ${ac_cv_type_uid_t+:} false; then :
11413  $as_echo_n "(cached) " >&6
11414else
11415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416/* end confdefs.h.  */
11417#include <sys/types.h>
11418
11419_ACEOF
11420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11421  $EGREP "uid_t" >/dev/null 2>&1; then :
11422  ac_cv_type_uid_t=yes
11423else
11424  ac_cv_type_uid_t=no
11425fi
11426rm -f conftest*
11427
11428fi
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11430$as_echo "$ac_cv_type_uid_t" >&6; }
11431if test $ac_cv_type_uid_t = no; then
11432
11433$as_echo "#define uid_t int" >>confdefs.h
11434
11435
11436$as_echo "#define gid_t int" >>confdefs.h
11437
11438fi
11439
11440ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11441case $ac_cv_c_uint32_t in #(
11442  no|yes) ;; #(
11443  *)
11444
11445$as_echo "#define _UINT32_T 1" >>confdefs.h
11446
11447
11448cat >>confdefs.h <<_ACEOF
11449#define uint32_t $ac_cv_c_uint32_t
11450_ACEOF
11451;;
11452  esac
11453
11454
11455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11456$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11457if ${ac_cv_header_time+:} false; then :
11458  $as_echo_n "(cached) " >&6
11459else
11460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461/* end confdefs.h.  */
11462#include <sys/types.h>
11463#include <sys/time.h>
11464#include <time.h>
11465
11466int
11467main ()
11468{
11469if ((struct tm *) 0)
11470return 0;
11471  ;
11472  return 0;
11473}
11474_ACEOF
11475if ac_fn_c_try_compile "$LINENO"; then :
11476  ac_cv_header_time=yes
11477else
11478  ac_cv_header_time=no
11479fi
11480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481fi
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11483$as_echo "$ac_cv_header_time" >&6; }
11484if test $ac_cv_header_time = yes; then
11485
11486$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11487
11488fi
11489
11490ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
11491if test "x$ac_cv_type_ino_t" = xyes; then :
11492
11493else
11494
11495cat >>confdefs.h <<_ACEOF
11496#define ino_t long
11497_ACEOF
11498
11499fi
11500
11501ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
11502if test "x$ac_cv_type_dev_t" = xyes; then :
11503
11504else
11505
11506cat >>confdefs.h <<_ACEOF
11507#define dev_t unsigned
11508_ACEOF
11509
11510fi
11511
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11513$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11514if ${ac_cv_c_bigendian+:} false; then :
11515  $as_echo_n "(cached) " >&6
11516else
11517  ac_cv_c_bigendian=unknown
11518    # See if we're dealing with a universal compiler.
11519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520/* end confdefs.h.  */
11521#ifndef __APPLE_CC__
11522	       not a universal capable compiler
11523	     #endif
11524	     typedef int dummy;
11525
11526_ACEOF
11527if ac_fn_c_try_compile "$LINENO"; then :
11528
11529	# Check for potential -arch flags.  It is not universal unless
11530	# there are at least two -arch flags with different values.
11531	ac_arch=
11532	ac_prev=
11533	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11534	 if test -n "$ac_prev"; then
11535	   case $ac_word in
11536	     i?86 | x86_64 | ppc | ppc64)
11537	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11538		 ac_arch=$ac_word
11539	       else
11540		 ac_cv_c_bigendian=universal
11541		 break
11542	       fi
11543	       ;;
11544	   esac
11545	   ac_prev=
11546	 elif test "x$ac_word" = "x-arch"; then
11547	   ac_prev=arch
11548	 fi
11549       done
11550fi
11551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11552    if test $ac_cv_c_bigendian = unknown; then
11553      # See if sys/param.h defines the BYTE_ORDER macro.
11554      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555/* end confdefs.h.  */
11556#include <sys/types.h>
11557	     #include <sys/param.h>
11558
11559int
11560main ()
11561{
11562#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11563		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11564		     && LITTLE_ENDIAN)
11565	      bogus endian macros
11566	     #endif
11567
11568  ;
11569  return 0;
11570}
11571_ACEOF
11572if ac_fn_c_try_compile "$LINENO"; then :
11573  # It does; now see whether it defined to BIG_ENDIAN or not.
11574	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575/* end confdefs.h.  */
11576#include <sys/types.h>
11577		#include <sys/param.h>
11578
11579int
11580main ()
11581{
11582#if BYTE_ORDER != BIG_ENDIAN
11583		 not big endian
11584		#endif
11585
11586  ;
11587  return 0;
11588}
11589_ACEOF
11590if ac_fn_c_try_compile "$LINENO"; then :
11591  ac_cv_c_bigendian=yes
11592else
11593  ac_cv_c_bigendian=no
11594fi
11595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596fi
11597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598    fi
11599    if test $ac_cv_c_bigendian = unknown; then
11600      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11601      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602/* end confdefs.h.  */
11603#include <limits.h>
11604
11605int
11606main ()
11607{
11608#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11609	      bogus endian macros
11610	     #endif
11611
11612  ;
11613  return 0;
11614}
11615_ACEOF
11616if ac_fn_c_try_compile "$LINENO"; then :
11617  # It does; now see whether it defined to _BIG_ENDIAN or not.
11618	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619/* end confdefs.h.  */
11620#include <limits.h>
11621
11622int
11623main ()
11624{
11625#ifndef _BIG_ENDIAN
11626		 not big endian
11627		#endif
11628
11629  ;
11630  return 0;
11631}
11632_ACEOF
11633if ac_fn_c_try_compile "$LINENO"; then :
11634  ac_cv_c_bigendian=yes
11635else
11636  ac_cv_c_bigendian=no
11637fi
11638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639fi
11640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641    fi
11642    if test $ac_cv_c_bigendian = unknown; then
11643      # Compile a test program.
11644      if test "$cross_compiling" = yes; then :
11645  # Try to guess by grepping values from an object file.
11646	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647/* end confdefs.h.  */
11648short int ascii_mm[] =
11649		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11650		short int ascii_ii[] =
11651		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11652		int use_ascii (int i) {
11653		  return ascii_mm[i] + ascii_ii[i];
11654		}
11655		short int ebcdic_ii[] =
11656		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11657		short int ebcdic_mm[] =
11658		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11659		int use_ebcdic (int i) {
11660		  return ebcdic_mm[i] + ebcdic_ii[i];
11661		}
11662		extern int foo;
11663
11664int
11665main ()
11666{
11667return use_ascii (foo) == use_ebcdic (foo);
11668  ;
11669  return 0;
11670}
11671_ACEOF
11672if ac_fn_c_try_compile "$LINENO"; then :
11673  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11674	      ac_cv_c_bigendian=yes
11675	    fi
11676	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11677	      if test "$ac_cv_c_bigendian" = unknown; then
11678		ac_cv_c_bigendian=no
11679	      else
11680		# finding both strings is unlikely to happen, but who knows?
11681		ac_cv_c_bigendian=unknown
11682	      fi
11683	    fi
11684fi
11685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686else
11687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688/* end confdefs.h.  */
11689$ac_includes_default
11690int
11691main ()
11692{
11693
11694	     /* Are we little or big endian?  From Harbison&Steele.  */
11695	     union
11696	     {
11697	       long int l;
11698	       char c[sizeof (long int)];
11699	     } u;
11700	     u.l = 1;
11701	     return u.c[sizeof (long int) - 1] == 1;
11702
11703  ;
11704  return 0;
11705}
11706_ACEOF
11707if ac_fn_c_try_run "$LINENO"; then :
11708  ac_cv_c_bigendian=no
11709else
11710  ac_cv_c_bigendian=yes
11711fi
11712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11713  conftest.$ac_objext conftest.beam conftest.$ac_ext
11714fi
11715
11716    fi
11717fi
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11719$as_echo "$ac_cv_c_bigendian" >&6; }
11720 case $ac_cv_c_bigendian in #(
11721   yes)
11722     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11723;; #(
11724   no)
11725      ;; #(
11726   universal)
11727
11728$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11729
11730     ;; #(
11731   *)
11732     as_fn_error $? "unknown endianness
11733 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11734 esac
11735
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11737$as_echo_n "checking for inline... " >&6; }
11738if ${ac_cv_c_inline+:} false; then :
11739  $as_echo_n "(cached) " >&6
11740else
11741  ac_cv_c_inline=no
11742for ac_kw in inline __inline__ __inline; do
11743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744/* end confdefs.h.  */
11745#ifndef __cplusplus
11746typedef int foo_t;
11747static $ac_kw foo_t static_foo () {return 0; }
11748$ac_kw foo_t foo () {return 0; }
11749#endif
11750
11751_ACEOF
11752if ac_fn_c_try_compile "$LINENO"; then :
11753  ac_cv_c_inline=$ac_kw
11754fi
11755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11756  test "$ac_cv_c_inline" != no && break
11757done
11758
11759fi
11760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11761$as_echo "$ac_cv_c_inline" >&6; }
11762
11763case $ac_cv_c_inline in
11764  inline | yes) ;;
11765  *)
11766    case $ac_cv_c_inline in
11767      no) ac_val=;;
11768      *) ac_val=$ac_cv_c_inline;;
11769    esac
11770    cat >>confdefs.h <<_ACEOF
11771#ifndef __cplusplus
11772#define inline $ac_val
11773#endif
11774_ACEOF
11775    ;;
11776esac
11777
11778
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11780$as_echo_n "checking for rlim_t... " >&6; }
11781if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11783$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11784else
11785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786/* end confdefs.h.  */
11787
11788#include <sys/types.h>
11789#if STDC_HEADERS
11790# include <stdlib.h>
11791# include <stddef.h>
11792#endif
11793#ifdef HAVE_SYS_RESOURCE_H
11794# include <sys/resource.h>
11795#endif
11796
11797_ACEOF
11798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11799  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11800  ac_cv_type_rlim_t=yes
11801else
11802  ac_cv_type_rlim_t=no
11803fi
11804rm -f conftest*
11805
11806	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11807$as_echo "$ac_cv_type_rlim_t" >&6; }
11808fi
11809if test $ac_cv_type_rlim_t = no; then
11810  cat >> confdefs.h <<\EOF
11811#define rlim_t unsigned long
11812EOF
11813fi
11814
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11816$as_echo_n "checking for stack_t... " >&6; }
11817if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11819$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11820else
11821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822/* end confdefs.h.  */
11823
11824#include <sys/types.h>
11825#if STDC_HEADERS
11826# include <stdlib.h>
11827# include <stddef.h>
11828#endif
11829#include <signal.h>
11830
11831_ACEOF
11832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11833  $EGREP "stack_t" >/dev/null 2>&1; then :
11834  ac_cv_type_stack_t=yes
11835else
11836  ac_cv_type_stack_t=no
11837fi
11838rm -f conftest*
11839
11840	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11841$as_echo "$ac_cv_type_stack_t" >&6; }
11842fi
11843if test $ac_cv_type_stack_t = no; then
11844  cat >> confdefs.h <<\EOF
11845#define stack_t struct sigaltstack
11846EOF
11847fi
11848
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11850$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852/* end confdefs.h.  */
11853
11854#include <sys/types.h>
11855#if STDC_HEADERS
11856# include <stdlib.h>
11857# include <stddef.h>
11858#endif
11859#include <signal.h>
11860#include "confdefs.h"
11861
11862int
11863main ()
11864{
11865stack_t sigstk; sigstk.ss_base = 0;
11866  ;
11867  return 0;
11868}
11869_ACEOF
11870if ac_fn_c_try_compile "$LINENO"; then :
11871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11873
11874else
11875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
11877fi
11878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11879
11880olibs="$LIBS"
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11882$as_echo_n "checking --with-tlib argument... " >&6; }
11883
11884# Check whether --with-tlib was given.
11885if test "${with_tlib+set}" = set; then :
11886  withval=$with_tlib;
11887fi
11888
11889if test -n "$with_tlib"; then
11890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11891$as_echo "$with_tlib" >&6; }
11892  LIBS="$LIBS -l$with_tlib"
11893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11894$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896/* end confdefs.h.  */
11897
11898int
11899main ()
11900{
11901
11902  ;
11903  return 0;
11904}
11905_ACEOF
11906if ac_fn_c_try_link "$LINENO"; then :
11907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
11908$as_echo "OK" >&6; }
11909else
11910  as_fn_error $? "FAILED" "$LINENO" 5
11911fi
11912rm -f core conftest.err conftest.$ac_objext \
11913    conftest$ac_exeext conftest.$ac_ext
11914    olibs="$LIBS"
11915else
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
11917$as_echo "empty: automatic terminal library selection" >&6; }
11918                case "`uname -s 2>/dev/null`" in
11919	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
11920	*)	tlibs="tinfo ncurses termlib termcap curses";;
11921  esac
11922  for libname in $tlibs; do
11923    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
11925$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
11926if eval \${$as_ac_Lib+:} false; then :
11927  $as_echo_n "(cached) " >&6
11928else
11929  ac_check_lib_save_LIBS=$LIBS
11930LIBS="-l${libname}  $LIBS"
11931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932/* end confdefs.h.  */
11933
11934/* Override any GCC internal prototype to avoid an error.
11935   Use char because int might match the return type of a GCC
11936   builtin and then its argument prototype would still apply.  */
11937#ifdef __cplusplus
11938extern "C"
11939#endif
11940char tgetent ();
11941int
11942main ()
11943{
11944return tgetent ();
11945  ;
11946  return 0;
11947}
11948_ACEOF
11949if ac_fn_c_try_link "$LINENO"; then :
11950  eval "$as_ac_Lib=yes"
11951else
11952  eval "$as_ac_Lib=no"
11953fi
11954rm -f core conftest.err conftest.$ac_objext \
11955    conftest$ac_exeext conftest.$ac_ext
11956LIBS=$ac_check_lib_save_LIBS
11957fi
11958eval ac_res=\$$as_ac_Lib
11959	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11960$as_echo "$ac_res" >&6; }
11961if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11962  cat >>confdefs.h <<_ACEOF
11963#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11964_ACEOF
11965
11966  LIBS="-l${libname} $LIBS"
11967
11968fi
11969
11970    if test "x$olibs" != "x$LIBS"; then
11971                        if test "$cross_compiling" = yes; then :
11972  res="FAIL"
11973else
11974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975/* end confdefs.h.  */
11976
11977#ifdef HAVE_TERMCAP_H
11978# include <termcap.h>
11979#endif
11980#if STDC_HEADERS
11981# include <stdlib.h>
11982# include <stddef.h>
11983#endif
11984main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11985_ACEOF
11986if ac_fn_c_try_run "$LINENO"; then :
11987  res="OK"
11988else
11989  res="FAIL"
11990fi
11991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11992  conftest.$ac_objext conftest.beam conftest.$ac_ext
11993fi
11994
11995      if test "$res" = "OK"; then
11996	break
11997      fi
11998      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
11999$as_echo "$libname library is not usable" >&6; }
12000      LIBS="$olibs"
12001    fi
12002  done
12003  if test "x$olibs" = "x$LIBS"; then
12004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
12005$as_echo "no terminal library found" >&6; }
12006  fi
12007fi
12008
12009if test "x$olibs" = "x$LIBS"; then
12010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
12011$as_echo_n "checking for tgetent()... " >&6; }
12012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013/* end confdefs.h.  */
12014
12015int
12016main ()
12017{
12018char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12019  ;
12020  return 0;
12021}
12022_ACEOF
12023if ac_fn_c_try_link "$LINENO"; then :
12024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025$as_echo "yes" >&6; }
12026else
12027  as_fn_error $? "NOT FOUND!
12028      You need to install a terminal library; for example ncurses.
12029      Or specify the name of the library with --with-tlib." "$LINENO" 5
12030fi
12031rm -f core conftest.err conftest.$ac_objext \
12032    conftest$ac_exeext conftest.$ac_ext
12033fi
12034
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
12036$as_echo_n "checking whether we talk terminfo... " >&6; }
12037if ${vim_cv_terminfo+:} false; then :
12038  $as_echo_n "(cached) " >&6
12039else
12040
12041    if test "$cross_compiling" = yes; then :
12042
12043      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
12044
12045else
12046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047/* end confdefs.h.  */
12048
12049#include "confdefs.h"
12050#ifdef HAVE_TERMCAP_H
12051# include <termcap.h>
12052#endif
12053#ifdef HAVE_STRING_H
12054# include <string.h>
12055#endif
12056#if STDC_HEADERS
12057# include <stdlib.h>
12058# include <stddef.h>
12059#endif
12060main()
12061{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12062
12063_ACEOF
12064if ac_fn_c_try_run "$LINENO"; then :
12065
12066      vim_cv_terminfo=no
12067
12068else
12069
12070      vim_cv_terminfo=yes
12071
12072fi
12073rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12074  conftest.$ac_objext conftest.beam conftest.$ac_ext
12075fi
12076
12077
12078fi
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
12080$as_echo "$vim_cv_terminfo" >&6; }
12081
12082if test "x$vim_cv_terminfo" = "xyes" ; then
12083  $as_echo "#define TERMINFO 1" >>confdefs.h
12084
12085fi
12086
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
12088$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12089if ${vim_cv_tgetent+:} false; then :
12090  $as_echo_n "(cached) " >&6
12091else
12092
12093    if test "$cross_compiling" = yes; then :
12094
12095      as_fn_error $? "failed to compile test program." "$LINENO" 5
12096
12097else
12098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099/* end confdefs.h.  */
12100
12101#include "confdefs.h"
12102#ifdef HAVE_TERMCAP_H
12103# include <termcap.h>
12104#endif
12105#if STDC_HEADERS
12106# include <stdlib.h>
12107# include <stddef.h>
12108#endif
12109main()
12110{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12111
12112_ACEOF
12113if ac_fn_c_try_run "$LINENO"; then :
12114
12115      vim_cv_tgetent=zero
12116
12117else
12118
12119      vim_cv_tgetent=non-zero
12120
12121fi
12122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12123  conftest.$ac_objext conftest.beam conftest.$ac_ext
12124fi
12125
12126
12127fi
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5
12129$as_echo "$vim_cv_tgetent" >&6; }
12130
12131if test "x$vim_cv_tgetent" = "xzero" ; then
12132  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
12133
12134fi
12135
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
12137$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139/* end confdefs.h.  */
12140
12141#ifdef HAVE_TERMCAP_H
12142# include <termcap.h>
12143#endif
12144
12145int
12146main ()
12147{
12148ospeed = 20000
12149  ;
12150  return 0;
12151}
12152_ACEOF
12153if ac_fn_c_try_link "$LINENO"; then :
12154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12155$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
12156
12157else
12158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159$as_echo "no" >&6; }
12160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
12161$as_echo_n "checking whether ospeed can be extern... " >&6; }
12162	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163/* end confdefs.h.  */
12164
12165#ifdef HAVE_TERMCAP_H
12166# include <termcap.h>
12167#endif
12168extern short ospeed;
12169
12170int
12171main ()
12172{
12173ospeed = 20000
12174  ;
12175  return 0;
12176}
12177_ACEOF
12178if ac_fn_c_try_link "$LINENO"; then :
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
12181
12182else
12183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184$as_echo "no" >&6; }
12185fi
12186rm -f core conftest.err conftest.$ac_objext \
12187    conftest$ac_exeext conftest.$ac_ext
12188
12189fi
12190rm -f core conftest.err conftest.$ac_objext \
12191    conftest$ac_exeext conftest.$ac_ext
12192
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
12194$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196/* end confdefs.h.  */
12197
12198#ifdef HAVE_TERMCAP_H
12199# include <termcap.h>
12200#endif
12201
12202int
12203main ()
12204{
12205if (UP == 0 && BC == 0) PC = 1
12206  ;
12207  return 0;
12208}
12209_ACEOF
12210if ac_fn_c_try_link "$LINENO"; then :
12211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12212$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
12213
12214else
12215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216$as_echo "no" >&6; }
12217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
12218$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
12219	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220/* end confdefs.h.  */
12221
12222#ifdef HAVE_TERMCAP_H
12223# include <termcap.h>
12224#endif
12225extern char *UP, *BC, PC;
12226
12227int
12228main ()
12229{
12230if (UP == 0 && BC == 0) PC = 1
12231  ;
12232  return 0;
12233}
12234_ACEOF
12235if ac_fn_c_try_link "$LINENO"; then :
12236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12237$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
12238
12239else
12240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241$as_echo "no" >&6; }
12242fi
12243rm -f core conftest.err conftest.$ac_objext \
12244    conftest$ac_exeext conftest.$ac_ext
12245
12246fi
12247rm -f core conftest.err conftest.$ac_objext \
12248    conftest$ac_exeext conftest.$ac_ext
12249
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
12251$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
12252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253/* end confdefs.h.  */
12254
12255#ifdef HAVE_TERMCAP_H
12256# include <termcap.h>
12257#endif
12258
12259int
12260main ()
12261{
12262extern int xx(); tputs("test", 1, (outfuntype)xx)
12263  ;
12264  return 0;
12265}
12266_ACEOF
12267if ac_fn_c_try_compile "$LINENO"; then :
12268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12269$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
12270
12271else
12272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273$as_echo "no" >&6; }
12274fi
12275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12278$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280/* end confdefs.h.  */
12281
12282#include <sys/types.h>
12283#include <sys/time.h>
12284#include <sys/select.h>
12285int
12286main ()
12287{
12288
12289  ;
12290  return 0;
12291}
12292_ACEOF
12293if ac_fn_c_try_compile "$LINENO"; then :
12294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12295$as_echo "yes" >&6; }
12296			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12297
12298else
12299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300$as_echo "no" >&6; }
12301fi
12302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303
12304
12305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12306$as_echo_n "checking for /dev/ptc... " >&6; }
12307if test -r /dev/ptc; then
12308  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
12309
12310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12311$as_echo "yes" >&6; }
12312else
12313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314$as_echo "no" >&6; }
12315fi
12316
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
12318$as_echo_n "checking for SVR4 ptys... " >&6; }
12319if test -c /dev/ptmx ; then
12320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321/* end confdefs.h.  */
12322
12323int
12324main ()
12325{
12326ptsname(0);grantpt(0);unlockpt(0);
12327  ;
12328  return 0;
12329}
12330_ACEOF
12331if ac_fn_c_try_link "$LINENO"; then :
12332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12333$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
12334
12335else
12336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338fi
12339rm -f core conftest.err conftest.$ac_objext \
12340    conftest$ac_exeext conftest.$ac_ext
12341else
12342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
12344fi
12345
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
12347$as_echo_n "checking for ptyranges... " >&6; }
12348if test -d /dev/ptym ; then
12349  pdir='/dev/ptym'
12350else
12351  pdir='/dev'
12352fi
12353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354/* end confdefs.h.  */
12355#ifdef M_UNIX
12356   yes;
12357#endif
12358
12359_ACEOF
12360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12361  $EGREP "yes" >/dev/null 2>&1; then :
12362  ptys=`echo /dev/ptyp??`
12363else
12364  ptys=`echo $pdir/pty??`
12365fi
12366rm -f conftest*
12367
12368if test "$ptys" != "$pdir/pty??" ; then
12369  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12370  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12371  cat >>confdefs.h <<_ACEOF
12372#define PTYRANGE0 "$p0"
12373_ACEOF
12374
12375  cat >>confdefs.h <<_ACEOF
12376#define PTYRANGE1 "$p1"
12377_ACEOF
12378
12379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
12380$as_echo "$p0 / $p1" >&6; }
12381else
12382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
12383$as_echo "don't know" >&6; }
12384fi
12385
12386rm -f conftest_grp
12387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
12388$as_echo_n "checking default tty permissions/group... " >&6; }
12389if ${vim_cv_tty_group+:} false; then :
12390  $as_echo_n "(cached) " >&6
12391else
12392
12393    if test "$cross_compiling" = yes; then :
12394
12395      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
12396
12397else
12398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399/* end confdefs.h.  */
12400
12401#include "confdefs.h"
12402#include <sys/types.h>
12403#if STDC_HEADERS
12404# include <stdlib.h>
12405# include <stddef.h>
12406#endif
12407#ifdef HAVE_UNISTD_H
12408#include <unistd.h>
12409#endif
12410#include <sys/stat.h>
12411#include <stdio.h>
12412main()
12413{
12414  struct stat sb;
12415  char *x,*ttyname();
12416  int om, m;
12417  FILE *fp;
12418
12419  if (!(x = ttyname(0))) exit(1);
12420  if (stat(x, &sb)) exit(1);
12421  om = sb.st_mode;
12422  if (om & 002) exit(0);
12423  m = system("mesg y");
12424  if (m == -1 || m == 127) exit(1);
12425  if (stat(x, &sb)) exit(1);
12426  m = sb.st_mode;
12427  if (chmod(x, om)) exit(1);
12428  if (m & 002) exit(0);
12429  if (sb.st_gid == getgid()) exit(1);
12430  if (!(fp=fopen("conftest_grp", "w")))
12431    exit(1);
12432  fprintf(fp, "%d\n", sb.st_gid);
12433  fclose(fp);
12434  exit(0);
12435}
12436
12437_ACEOF
12438if ac_fn_c_try_run "$LINENO"; then :
12439
12440      if test -f conftest_grp; then
12441	vim_cv_tty_group=`cat conftest_grp`
12442	if test "x$vim_cv_tty_mode" = "x" ; then
12443	  vim_cv_tty_mode=0620
12444	fi
12445	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
12446$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
12447      else
12448	vim_cv_tty_group=world
12449	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
12450$as_echo "ptys are world accessible" >&6; }
12451      fi
12452
12453else
12454
12455      vim_cv_tty_group=world
12456      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
12457$as_echo "can't determine - assume ptys are world accessible" >&6; }
12458
12459fi
12460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12461  conftest.$ac_objext conftest.beam conftest.$ac_ext
12462fi
12463
12464
12465fi
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
12467$as_echo "$vim_cv_tty_group" >&6; }
12468rm -f conftest_grp
12469
12470if test "x$vim_cv_tty_group" != "xworld" ; then
12471  cat >>confdefs.h <<_ACEOF
12472#define PTYGROUP $vim_cv_tty_group
12473_ACEOF
12474
12475  if test "x$vim_cv_tty_mode" = "x" ; then
12476    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
12477  else
12478    $as_echo "#define PTYMODE 0620" >>confdefs.h
12479
12480  fi
12481fi
12482
12483
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12485$as_echo_n "checking return type of signal handlers... " >&6; }
12486if ${ac_cv_type_signal+:} false; then :
12487  $as_echo_n "(cached) " >&6
12488else
12489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490/* end confdefs.h.  */
12491#include <sys/types.h>
12492#include <signal.h>
12493
12494int
12495main ()
12496{
12497return *(signal (0, 0)) (0) == 1;
12498  ;
12499  return 0;
12500}
12501_ACEOF
12502if ac_fn_c_try_compile "$LINENO"; then :
12503  ac_cv_type_signal=int
12504else
12505  ac_cv_type_signal=void
12506fi
12507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12508fi
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12510$as_echo "$ac_cv_type_signal" >&6; }
12511
12512cat >>confdefs.h <<_ACEOF
12513#define RETSIGTYPE $ac_cv_type_signal
12514_ACEOF
12515
12516
12517
12518if test $ac_cv_type_signal = void; then
12519  $as_echo "#define SIGRETURN return" >>confdefs.h
12520
12521else
12522  $as_echo "#define SIGRETURN return 0" >>confdefs.h
12523
12524fi
12525
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
12527$as_echo_n "checking for struct sigcontext... " >&6; }
12528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529/* end confdefs.h.  */
12530
12531#include <signal.h>
12532test_sig()
12533{
12534    struct sigcontext *scont;
12535    scont = (struct sigcontext *)0;
12536    return 1;
12537}
12538int
12539main ()
12540{
12541
12542  ;
12543  return 0;
12544}
12545_ACEOF
12546if ac_fn_c_try_compile "$LINENO"; then :
12547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548$as_echo "yes" >&6; }
12549		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12550
12551else
12552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553$as_echo "no" >&6; }
12554fi
12555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12558$as_echo_n "checking getcwd implementation is broken... " >&6; }
12559if ${vim_cv_getcwd_broken+:} false; then :
12560  $as_echo_n "(cached) " >&6
12561else
12562
12563    if test "$cross_compiling" = yes; then :
12564
12565      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12566
12567else
12568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569/* end confdefs.h.  */
12570
12571#include "confdefs.h"
12572#ifdef HAVE_UNISTD_H
12573#include <unistd.h>
12574#endif
12575char *dagger[] = { "IFS=pwd", 0 };
12576main()
12577{
12578  char buffer[500];
12579  extern char **environ;
12580  environ = dagger;
12581  return getcwd(buffer, 500) ? 0 : 1;
12582}
12583
12584_ACEOF
12585if ac_fn_c_try_run "$LINENO"; then :
12586
12587      vim_cv_getcwd_broken=no
12588
12589else
12590
12591      vim_cv_getcwd_broken=yes
12592
12593fi
12594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12595  conftest.$ac_objext conftest.beam conftest.$ac_ext
12596fi
12597
12598
12599fi
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12601$as_echo "$vim_cv_getcwd_broken" >&6; }
12602
12603if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12604  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12605
12606  for ac_func in getwd
12607do :
12608  ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
12609if test "x$ac_cv_func_getwd" = xyes; then :
12610  cat >>confdefs.h <<_ACEOF
12611#define HAVE_GETWD 1
12612_ACEOF
12613
12614fi
12615done
12616
12617fi
12618
12619for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \
12620	getpwent getpwnam getpwuid getrlimit gettimeofday localtime_r lstat \
12621	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12622	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12623	sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
12624	strnicmp strpbrk strptime strtol tgetent towlower towupper iswupper \
12625	tzset usleep utime utimes mblen ftruncate unsetenv posix_openpt
12626do :
12627  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12628ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12629if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12630  cat >>confdefs.h <<_ACEOF
12631#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12632_ACEOF
12633
12634fi
12635done
12636
12637for ac_header in sys/select.h sys/socket.h
12638do :
12639  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12640ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12641if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12642  cat >>confdefs.h <<_ACEOF
12643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12644_ACEOF
12645
12646fi
12647
12648done
12649
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12651$as_echo_n "checking types of arguments for select... " >&6; }
12652if ${ac_cv_func_select_args+:} false; then :
12653  $as_echo_n "(cached) " >&6
12654else
12655  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12656 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12657  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659/* end confdefs.h.  */
12660$ac_includes_default
12661#ifdef HAVE_SYS_SELECT_H
12662# include <sys/select.h>
12663#endif
12664#ifdef HAVE_SYS_SOCKET_H
12665# include <sys/socket.h>
12666#endif
12667
12668int
12669main ()
12670{
12671extern int select ($ac_arg1,
12672					    $ac_arg234, $ac_arg234, $ac_arg234,
12673					    $ac_arg5);
12674  ;
12675  return 0;
12676}
12677_ACEOF
12678if ac_fn_c_try_compile "$LINENO"; then :
12679  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12680fi
12681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12682  done
12683 done
12684done
12685# Provide a safe default value.
12686: "${ac_cv_func_select_args=int,int *,struct timeval *}"
12687
12688fi
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12690$as_echo "$ac_cv_func_select_args" >&6; }
12691ac_save_IFS=$IFS; IFS=','
12692set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12693IFS=$ac_save_IFS
12694shift
12695
12696cat >>confdefs.h <<_ACEOF
12697#define SELECT_TYPE_ARG1 $1
12698_ACEOF
12699
12700
12701cat >>confdefs.h <<_ACEOF
12702#define SELECT_TYPE_ARG234 ($2)
12703_ACEOF
12704
12705
12706cat >>confdefs.h <<_ACEOF
12707#define SELECT_TYPE_ARG5 ($3)
12708_ACEOF
12709
12710rm -f conftest*
12711
12712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12713$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12714if ${ac_cv_sys_largefile_source+:} false; then :
12715  $as_echo_n "(cached) " >&6
12716else
12717  while :; do
12718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719/* end confdefs.h.  */
12720#include <sys/types.h> /* for off_t */
12721     #include <stdio.h>
12722int
12723main ()
12724{
12725int (*fp) (FILE *, off_t, int) = fseeko;
12726     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12727  ;
12728  return 0;
12729}
12730_ACEOF
12731if ac_fn_c_try_link "$LINENO"; then :
12732  ac_cv_sys_largefile_source=no; break
12733fi
12734rm -f core conftest.err conftest.$ac_objext \
12735    conftest$ac_exeext conftest.$ac_ext
12736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737/* end confdefs.h.  */
12738#define _LARGEFILE_SOURCE 1
12739#include <sys/types.h> /* for off_t */
12740     #include <stdio.h>
12741int
12742main ()
12743{
12744int (*fp) (FILE *, off_t, int) = fseeko;
12745     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12746  ;
12747  return 0;
12748}
12749_ACEOF
12750if ac_fn_c_try_link "$LINENO"; then :
12751  ac_cv_sys_largefile_source=1; break
12752fi
12753rm -f core conftest.err conftest.$ac_objext \
12754    conftest$ac_exeext conftest.$ac_ext
12755  ac_cv_sys_largefile_source=unknown
12756  break
12757done
12758fi
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12760$as_echo "$ac_cv_sys_largefile_source" >&6; }
12761case $ac_cv_sys_largefile_source in #(
12762  no | unknown) ;;
12763  *)
12764cat >>confdefs.h <<_ACEOF
12765#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12766_ACEOF
12767;;
12768esac
12769rm -rf conftest*
12770
12771# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12772# in glibc 2.1.3, but that breaks too many other things.
12773# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12774if test $ac_cv_sys_largefile_source != unknown; then
12775
12776$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12777
12778fi
12779
12780
12781# Check whether --enable-largefile was given.
12782if test "${enable_largefile+set}" = set; then :
12783  enableval=$enable_largefile;
12784fi
12785
12786if test "$enable_largefile" != no; then
12787
12788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12789$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12790if ${ac_cv_sys_largefile_CC+:} false; then :
12791  $as_echo_n "(cached) " >&6
12792else
12793  ac_cv_sys_largefile_CC=no
12794     if test "$GCC" != yes; then
12795       ac_save_CC=$CC
12796       while :; do
12797	 # IRIX 6.2 and later do not support large files by default,
12798	 # so use the C compiler's -n32 option if that helps.
12799	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800/* end confdefs.h.  */
12801#include <sys/types.h>
12802 /* Check that off_t can represent 2**63 - 1 correctly.
12803    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12804    since some C++ compilers masquerading as C compilers
12805    incorrectly reject 9223372036854775807.  */
12806#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12807  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12808		       && LARGE_OFF_T % 2147483647 == 1)
12809		      ? 1 : -1];
12810int
12811main ()
12812{
12813
12814  ;
12815  return 0;
12816}
12817_ACEOF
12818	 if ac_fn_c_try_compile "$LINENO"; then :
12819  break
12820fi
12821rm -f core conftest.err conftest.$ac_objext
12822	 CC="$CC -n32"
12823	 if ac_fn_c_try_compile "$LINENO"; then :
12824  ac_cv_sys_largefile_CC=' -n32'; break
12825fi
12826rm -f core conftest.err conftest.$ac_objext
12827	 break
12828       done
12829       CC=$ac_save_CC
12830       rm -f conftest.$ac_ext
12831    fi
12832fi
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12834$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12835  if test "$ac_cv_sys_largefile_CC" != no; then
12836    CC=$CC$ac_cv_sys_largefile_CC
12837  fi
12838
12839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12840$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12841if ${ac_cv_sys_file_offset_bits+:} false; then :
12842  $as_echo_n "(cached) " >&6
12843else
12844  while :; do
12845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846/* end confdefs.h.  */
12847#include <sys/types.h>
12848 /* Check that off_t can represent 2**63 - 1 correctly.
12849    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12850    since some C++ compilers masquerading as C compilers
12851    incorrectly reject 9223372036854775807.  */
12852#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12853  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12854		       && LARGE_OFF_T % 2147483647 == 1)
12855		      ? 1 : -1];
12856int
12857main ()
12858{
12859
12860  ;
12861  return 0;
12862}
12863_ACEOF
12864if ac_fn_c_try_compile "$LINENO"; then :
12865  ac_cv_sys_file_offset_bits=no; break
12866fi
12867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869/* end confdefs.h.  */
12870#define _FILE_OFFSET_BITS 64
12871#include <sys/types.h>
12872 /* Check that off_t can represent 2**63 - 1 correctly.
12873    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12874    since some C++ compilers masquerading as C compilers
12875    incorrectly reject 9223372036854775807.  */
12876#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12877  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12878		       && LARGE_OFF_T % 2147483647 == 1)
12879		      ? 1 : -1];
12880int
12881main ()
12882{
12883
12884  ;
12885  return 0;
12886}
12887_ACEOF
12888if ac_fn_c_try_compile "$LINENO"; then :
12889  ac_cv_sys_file_offset_bits=64; break
12890fi
12891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892  ac_cv_sys_file_offset_bits=unknown
12893  break
12894done
12895fi
12896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12897$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12898case $ac_cv_sys_file_offset_bits in #(
12899  no | unknown) ;;
12900  *)
12901cat >>confdefs.h <<_ACEOF
12902#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12903_ACEOF
12904;;
12905esac
12906rm -rf conftest*
12907  if test $ac_cv_sys_file_offset_bits = unknown; then
12908    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12909$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12910if ${ac_cv_sys_large_files+:} false; then :
12911  $as_echo_n "(cached) " >&6
12912else
12913  while :; do
12914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915/* end confdefs.h.  */
12916#include <sys/types.h>
12917 /* Check that off_t can represent 2**63 - 1 correctly.
12918    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12919    since some C++ compilers masquerading as C compilers
12920    incorrectly reject 9223372036854775807.  */
12921#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12922  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12923		       && LARGE_OFF_T % 2147483647 == 1)
12924		      ? 1 : -1];
12925int
12926main ()
12927{
12928
12929  ;
12930  return 0;
12931}
12932_ACEOF
12933if ac_fn_c_try_compile "$LINENO"; then :
12934  ac_cv_sys_large_files=no; break
12935fi
12936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938/* end confdefs.h.  */
12939#define _LARGE_FILES 1
12940#include <sys/types.h>
12941 /* Check that off_t can represent 2**63 - 1 correctly.
12942    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12943    since some C++ compilers masquerading as C compilers
12944    incorrectly reject 9223372036854775807.  */
12945#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12946  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12947		       && LARGE_OFF_T % 2147483647 == 1)
12948		      ? 1 : -1];
12949int
12950main ()
12951{
12952
12953  ;
12954  return 0;
12955}
12956_ACEOF
12957if ac_fn_c_try_compile "$LINENO"; then :
12958  ac_cv_sys_large_files=1; break
12959fi
12960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12961  ac_cv_sys_large_files=unknown
12962  break
12963done
12964fi
12965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12966$as_echo "$ac_cv_sys_large_files" >&6; }
12967case $ac_cv_sys_large_files in #(
12968  no | unknown) ;;
12969  *)
12970cat >>confdefs.h <<_ACEOF
12971#define _LARGE_FILES $ac_cv_sys_large_files
12972_ACEOF
12973;;
12974esac
12975rm -rf conftest*
12976  fi
12977
12978
12979fi
12980
12981
12982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-canberra argument" >&5
12983$as_echo_n "checking --enable-canberra argument... " >&6; }
12984# Check whether --enable-canberra was given.
12985if test "${enable_canberra+set}" = set; then :
12986  enableval=$enable_canberra;
12987else
12988  enable_canberra="maybe"
12989fi
12990
12991
12992if test "$enable_canberra" = "maybe"; then
12993  if test "$features" = "big" -o "$features" = "huge"; then
12994    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to yes" >&5
12995$as_echo "Defaulting to yes" >&6; }
12996    enable_canberra="yes"
12997  else
12998    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to no" >&5
12999$as_echo "Defaulting to no" >&6; }
13000    enable_canberra="no"
13001  fi
13002else
13003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5
13004$as_echo "$enable_canberra" >&6; }
13005fi
13006if test "$enable_canberra" = "yes"; then
13007  if test "x$PKG_CONFIG" != "xno"; then
13008    canberra_lib=`$PKG_CONFIG --libs libcanberra 2>/dev/null`
13009    canberra_cflags=`$PKG_CONFIG --cflags libcanberra 2>/dev/null`
13010  fi
13011  if test "x$canberra_lib" = "x"; then
13012    canberra_lib=-lcanberra
13013    canberra_cflags=-D_REENTRANT
13014  fi
13015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcanberra" >&5
13016$as_echo_n "checking for libcanberra... " >&6; }
13017  ac_save_CFLAGS="$CFLAGS"
13018  ac_save_LIBS="$LIBS"
13019  CFLAGS="$CFLAGS $canberra_cflags"
13020  LIBS="$LIBS $canberra_lib"
13021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022/* end confdefs.h.  */
13023
13024  # include <canberra.h>
13025
13026int
13027main ()
13028{
13029
13030     ca_context *hello;
13031     ca_context_create(&hello);
13032  ;
13033  return 0;
13034}
13035_ACEOF
13036if ac_fn_c_try_link "$LINENO"; then :
13037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13038$as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h
13039
13040else
13041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; try installing libcanberra-dev" >&5
13042$as_echo "no; try installing libcanberra-dev" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS"
13043fi
13044rm -f core conftest.err conftest.$ac_objext \
13045    conftest$ac_exeext conftest.$ac_ext
13046fi
13047
13048
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
13050$as_echo_n "checking for st_blksize... " >&6; }
13051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052/* end confdefs.h.  */
13053#include <sys/types.h>
13054#include <sys/stat.h>
13055int
13056main ()
13057{
13058	struct stat st;
13059	int n;
13060
13061	stat("/", &st);
13062	n = (int)st.st_blksize;
13063  ;
13064  return 0;
13065}
13066_ACEOF
13067if ac_fn_c_try_compile "$LINENO"; then :
13068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13069$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
13070
13071else
13072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073$as_echo "no" >&6; }
13074fi
13075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076
13077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
13078$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13079if ${vim_cv_stat_ignores_slash+:} false; then :
13080  $as_echo_n "(cached) " >&6
13081else
13082
13083    if test "$cross_compiling" = yes; then :
13084
13085      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
13086
13087else
13088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089/* end confdefs.h.  */
13090
13091#include "confdefs.h"
13092#if STDC_HEADERS
13093# include <stdlib.h>
13094# include <stddef.h>
13095#endif
13096#include <sys/types.h>
13097#include <sys/stat.h>
13098main() {struct stat st;  exit(stat("configure/", &st) != 0); }
13099
13100_ACEOF
13101if ac_fn_c_try_run "$LINENO"; then :
13102
13103      vim_cv_stat_ignores_slash=yes
13104
13105else
13106
13107      vim_cv_stat_ignores_slash=no
13108
13109fi
13110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13111  conftest.$ac_objext conftest.beam conftest.$ac_ext
13112fi
13113
13114
13115fi
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
13117$as_echo "$vim_cv_stat_ignores_slash" >&6; }
13118
13119if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13120  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
13121
13122fi
13123
13124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
13125$as_echo_n "checking for iconv_open()... " >&6; }
13126save_LIBS="$LIBS"
13127LIBS="$LIBS -liconv"
13128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129/* end confdefs.h.  */
13130
13131#ifdef HAVE_ICONV_H
13132# include <iconv.h>
13133#endif
13134
13135int
13136main ()
13137{
13138iconv_open("fr", "to");
13139  ;
13140  return 0;
13141}
13142_ACEOF
13143if ac_fn_c_try_link "$LINENO"; then :
13144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
13145$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13146
13147else
13148  LIBS="$save_LIBS"
13149    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150/* end confdefs.h.  */
13151
13152#ifdef HAVE_ICONV_H
13153# include <iconv.h>
13154#endif
13155
13156int
13157main ()
13158{
13159iconv_open("fr", "to");
13160  ;
13161  return 0;
13162}
13163_ACEOF
13164if ac_fn_c_try_link "$LINENO"; then :
13165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13166$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13167
13168else
13169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170$as_echo "no" >&6; }
13171fi
13172rm -f core conftest.err conftest.$ac_objext \
13173    conftest$ac_exeext conftest.$ac_ext
13174fi
13175rm -f core conftest.err conftest.$ac_objext \
13176    conftest$ac_exeext conftest.$ac_ext
13177
13178
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
13180$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
13181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182/* end confdefs.h.  */
13183
13184#ifdef HAVE_LANGINFO_H
13185# include <langinfo.h>
13186#endif
13187
13188int
13189main ()
13190{
13191char *cs = nl_langinfo(CODESET);
13192  ;
13193  return 0;
13194}
13195_ACEOF
13196if ac_fn_c_try_link "$LINENO"; then :
13197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13198$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
13199
13200else
13201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202$as_echo "no" >&6; }
13203fi
13204rm -f core conftest.err conftest.$ac_objext \
13205    conftest$ac_exeext conftest.$ac_ext
13206
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
13208$as_echo_n "checking for strtod in -lm... " >&6; }
13209if ${ac_cv_lib_m_strtod+:} false; then :
13210  $as_echo_n "(cached) " >&6
13211else
13212  ac_check_lib_save_LIBS=$LIBS
13213LIBS="-lm  $LIBS"
13214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215/* end confdefs.h.  */
13216
13217/* Override any GCC internal prototype to avoid an error.
13218   Use char because int might match the return type of a GCC
13219   builtin and then its argument prototype would still apply.  */
13220#ifdef __cplusplus
13221extern "C"
13222#endif
13223char strtod ();
13224int
13225main ()
13226{
13227return strtod ();
13228  ;
13229  return 0;
13230}
13231_ACEOF
13232if ac_fn_c_try_link "$LINENO"; then :
13233  ac_cv_lib_m_strtod=yes
13234else
13235  ac_cv_lib_m_strtod=no
13236fi
13237rm -f core conftest.err conftest.$ac_objext \
13238    conftest$ac_exeext conftest.$ac_ext
13239LIBS=$ac_check_lib_save_LIBS
13240fi
13241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
13242$as_echo "$ac_cv_lib_m_strtod" >&6; }
13243if test "x$ac_cv_lib_m_strtod" = xyes; then :
13244  cat >>confdefs.h <<_ACEOF
13245#define HAVE_LIBM 1
13246_ACEOF
13247
13248  LIBS="-lm $LIBS"
13249
13250fi
13251
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
13253$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
13254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255/* end confdefs.h.  */
13256
13257#ifdef HAVE_MATH_H
13258# include <math.h>
13259#endif
13260#if STDC_HEADERS
13261# include <stdlib.h>
13262# include <stddef.h>
13263#endif
13264
13265int
13266main ()
13267{
13268char *s; double d;
13269    d = strtod("1.1", &s);
13270    d = fabs(1.11);
13271    d = ceil(1.11);
13272    d = floor(1.11);
13273    d = log10(1.11);
13274    d = pow(1.11, 2.22);
13275    d = sqrt(1.11);
13276    d = sin(1.11);
13277    d = cos(1.11);
13278    d = atan(1.11);
13279
13280  ;
13281  return 0;
13282}
13283_ACEOF
13284if ac_fn_c_try_link "$LINENO"; then :
13285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13286$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
13287
13288else
13289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290$as_echo "no" >&6; }
13291fi
13292rm -f core conftest.err conftest.$ac_objext \
13293    conftest$ac_exeext conftest.$ac_ext
13294
13295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
13296$as_echo_n "checking for isinf()... " >&6; }
13297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298/* end confdefs.h.  */
13299
13300#ifdef HAVE_MATH_H
13301# include <math.h>
13302#endif
13303#if STDC_HEADERS
13304# include <stdlib.h>
13305# include <stddef.h>
13306#endif
13307
13308int
13309main ()
13310{
13311int r = isinf(1.11);
13312  ;
13313  return 0;
13314}
13315_ACEOF
13316if ac_fn_c_try_link "$LINENO"; then :
13317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13318$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13319
13320else
13321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322$as_echo "no" >&6; }
13323fi
13324rm -f core conftest.err conftest.$ac_objext \
13325    conftest$ac_exeext conftest.$ac_ext
13326
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
13328$as_echo_n "checking for isnan()... " >&6; }
13329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330/* end confdefs.h.  */
13331
13332#ifdef HAVE_MATH_H
13333# include <math.h>
13334#endif
13335#if STDC_HEADERS
13336# include <stdlib.h>
13337# include <stddef.h>
13338#endif
13339
13340int
13341main ()
13342{
13343int r = isnan(1.11);
13344  ;
13345  return 0;
13346}
13347_ACEOF
13348if ac_fn_c_try_link "$LINENO"; then :
13349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13350$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13351
13352else
13353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354$as_echo "no" >&6; }
13355fi
13356rm -f core conftest.err conftest.$ac_objext \
13357    conftest$ac_exeext conftest.$ac_ext
13358
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
13360$as_echo_n "checking --disable-acl argument... " >&6; }
13361# Check whether --enable-acl was given.
13362if test "${enable_acl+set}" = set; then :
13363  enableval=$enable_acl;
13364else
13365  enable_acl="yes"
13366fi
13367
13368if test "$enable_acl" = "yes"; then
13369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370$as_echo "no" >&6; }
13371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
13372$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
13373if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
13374  $as_echo_n "(cached) " >&6
13375else
13376  ac_check_lib_save_LIBS=$LIBS
13377LIBS="-lposix1e  $LIBS"
13378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379/* end confdefs.h.  */
13380
13381/* Override any GCC internal prototype to avoid an error.
13382   Use char because int might match the return type of a GCC
13383   builtin and then its argument prototype would still apply.  */
13384#ifdef __cplusplus
13385extern "C"
13386#endif
13387char acl_get_file ();
13388int
13389main ()
13390{
13391return acl_get_file ();
13392  ;
13393  return 0;
13394}
13395_ACEOF
13396if ac_fn_c_try_link "$LINENO"; then :
13397  ac_cv_lib_posix1e_acl_get_file=yes
13398else
13399  ac_cv_lib_posix1e_acl_get_file=no
13400fi
13401rm -f core conftest.err conftest.$ac_objext \
13402    conftest$ac_exeext conftest.$ac_ext
13403LIBS=$ac_check_lib_save_LIBS
13404fi
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13406$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
13407if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
13408  LIBS="$LIBS -lposix1e"
13409else
13410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
13411$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
13412if ${ac_cv_lib_acl_acl_get_file+:} false; then :
13413  $as_echo_n "(cached) " >&6
13414else
13415  ac_check_lib_save_LIBS=$LIBS
13416LIBS="-lacl  $LIBS"
13417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418/* end confdefs.h.  */
13419
13420/* Override any GCC internal prototype to avoid an error.
13421   Use char because int might match the return type of a GCC
13422   builtin and then its argument prototype would still apply.  */
13423#ifdef __cplusplus
13424extern "C"
13425#endif
13426char acl_get_file ();
13427int
13428main ()
13429{
13430return acl_get_file ();
13431  ;
13432  return 0;
13433}
13434_ACEOF
13435if ac_fn_c_try_link "$LINENO"; then :
13436  ac_cv_lib_acl_acl_get_file=yes
13437else
13438  ac_cv_lib_acl_acl_get_file=no
13439fi
13440rm -f core conftest.err conftest.$ac_objext \
13441    conftest$ac_exeext conftest.$ac_ext
13442LIBS=$ac_check_lib_save_LIBS
13443fi
13444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
13445$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
13446if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
13447  LIBS="$LIBS -lacl"
13448		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
13449$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
13450if ${ac_cv_lib_attr_fgetxattr+:} false; then :
13451  $as_echo_n "(cached) " >&6
13452else
13453  ac_check_lib_save_LIBS=$LIBS
13454LIBS="-lattr  $LIBS"
13455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456/* end confdefs.h.  */
13457
13458/* Override any GCC internal prototype to avoid an error.
13459   Use char because int might match the return type of a GCC
13460   builtin and then its argument prototype would still apply.  */
13461#ifdef __cplusplus
13462extern "C"
13463#endif
13464char fgetxattr ();
13465int
13466main ()
13467{
13468return fgetxattr ();
13469  ;
13470  return 0;
13471}
13472_ACEOF
13473if ac_fn_c_try_link "$LINENO"; then :
13474  ac_cv_lib_attr_fgetxattr=yes
13475else
13476  ac_cv_lib_attr_fgetxattr=no
13477fi
13478rm -f core conftest.err conftest.$ac_objext \
13479    conftest$ac_exeext conftest.$ac_ext
13480LIBS=$ac_check_lib_save_LIBS
13481fi
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
13483$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
13484if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
13485  LIBS="$LIBS -lattr"
13486fi
13487
13488fi
13489
13490fi
13491
13492
13493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
13494$as_echo_n "checking for POSIX ACL support... " >&6; }
13495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496/* end confdefs.h.  */
13497
13498#include <sys/types.h>
13499#ifdef HAVE_SYS_ACL_H
13500# include <sys/acl.h>
13501#endif
13502acl_t acl;
13503int
13504main ()
13505{
13506acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13507	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13508	acl_free(acl);
13509  ;
13510  return 0;
13511}
13512_ACEOF
13513if ac_fn_c_try_link "$LINENO"; then :
13514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13515$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
13516
13517else
13518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519$as_echo "no" >&6; }
13520fi
13521rm -f core conftest.err conftest.$ac_objext \
13522    conftest$ac_exeext conftest.$ac_ext
13523
13524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
13525$as_echo_n "checking for acl_get in -lsec... " >&6; }
13526if ${ac_cv_lib_sec_acl_get+:} false; then :
13527  $as_echo_n "(cached) " >&6
13528else
13529  ac_check_lib_save_LIBS=$LIBS
13530LIBS="-lsec  $LIBS"
13531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532/* end confdefs.h.  */
13533
13534/* Override any GCC internal prototype to avoid an error.
13535   Use char because int might match the return type of a GCC
13536   builtin and then its argument prototype would still apply.  */
13537#ifdef __cplusplus
13538extern "C"
13539#endif
13540char acl_get ();
13541int
13542main ()
13543{
13544return acl_get ();
13545  ;
13546  return 0;
13547}
13548_ACEOF
13549if ac_fn_c_try_link "$LINENO"; then :
13550  ac_cv_lib_sec_acl_get=yes
13551else
13552  ac_cv_lib_sec_acl_get=no
13553fi
13554rm -f core conftest.err conftest.$ac_objext \
13555    conftest$ac_exeext conftest.$ac_ext
13556LIBS=$ac_check_lib_save_LIBS
13557fi
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
13559$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
13560if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
13561  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
13562
13563else
13564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
13565$as_echo_n "checking for Solaris ACL support... " >&6; }
13566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567/* end confdefs.h.  */
13568
13569#ifdef HAVE_SYS_ACL_H
13570# include <sys/acl.h>
13571#endif
13572int
13573main ()
13574{
13575acl("foo", GETACLCNT, 0, NULL);
13576
13577  ;
13578  return 0;
13579}
13580_ACEOF
13581if ac_fn_c_try_link "$LINENO"; then :
13582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13583$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
13584
13585else
13586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587$as_echo "no" >&6; }
13588fi
13589rm -f core conftest.err conftest.$ac_objext \
13590    conftest$ac_exeext conftest.$ac_ext
13591fi
13592
13593
13594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
13595$as_echo_n "checking for AIX ACL support... " >&6; }
13596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597/* end confdefs.h.  */
13598
13599#if STDC_HEADERS
13600# include <stdlib.h>
13601# include <stddef.h>
13602#endif
13603#ifdef HAVE_SYS_ACL_H
13604# include <sys/acl.h>
13605#endif
13606#ifdef HAVE_SYS_ACCESS_H
13607# include <sys/access.h>
13608#endif
13609#define _ALL_SOURCE
13610
13611#include <sys/stat.h>
13612
13613int aclsize;
13614struct acl *aclent;
13615int
13616main ()
13617{
13618aclsize = sizeof(struct acl);
13619	aclent = (void *)malloc(aclsize);
13620	statacl("foo", STX_NORMAL, aclent, aclsize);
13621
13622  ;
13623  return 0;
13624}
13625_ACEOF
13626if ac_fn_c_try_link "$LINENO"; then :
13627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13628$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
13629
13630else
13631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632$as_echo "no" >&6; }
13633fi
13634rm -f core conftest.err conftest.$ac_objext \
13635    conftest$ac_exeext conftest.$ac_ext
13636else
13637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13638$as_echo "yes" >&6; }
13639fi
13640
13641if test "x$GTK_CFLAGS" != "x"; then
13642    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
13643$as_echo_n "checking for pango_shape_full... " >&6; }
13644  ac_save_CFLAGS="$CFLAGS"
13645  ac_save_LIBS="$LIBS"
13646  CFLAGS="$CFLAGS $GTK_CFLAGS"
13647  LIBS="$LIBS $GTK_LIBS"
13648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649/* end confdefs.h.  */
13650#include <gtk/gtk.h>
13651int
13652main ()
13653{
13654 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
13655  ;
13656  return 0;
13657}
13658_ACEOF
13659if ac_fn_c_try_link "$LINENO"; then :
13660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13661$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
13662
13663else
13664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665$as_echo "no" >&6; }
13666fi
13667rm -f core conftest.err conftest.$ac_objext \
13668    conftest$ac_exeext conftest.$ac_ext
13669  CFLAGS="$ac_save_CFLAGS"
13670  LIBS="$ac_save_LIBS"
13671fi
13672
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
13674$as_echo_n "checking --disable-gpm argument... " >&6; }
13675# Check whether --enable-gpm was given.
13676if test "${enable_gpm+set}" = set; then :
13677  enableval=$enable_gpm;
13678else
13679  enable_gpm="yes"
13680fi
13681
13682
13683if test "$enable_gpm" = "yes"; then
13684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685$as_echo "no" >&6; }
13686    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
13687$as_echo_n "checking for gpm... " >&6; }
13688if ${vi_cv_have_gpm+:} false; then :
13689  $as_echo_n "(cached) " >&6
13690else
13691  olibs="$LIBS" ; LIBS="-lgpm"
13692	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693/* end confdefs.h.  */
13694#include <gpm.h>
13695	    #include <linux/keyboard.h>
13696int
13697main ()
13698{
13699Gpm_GetLibVersion(NULL);
13700  ;
13701  return 0;
13702}
13703_ACEOF
13704if ac_fn_c_try_link "$LINENO"; then :
13705  	    	    vi_cv_have_gpm=yes
13706else
13707  vi_cv_have_gpm=no
13708fi
13709rm -f core conftest.err conftest.$ac_objext \
13710    conftest$ac_exeext conftest.$ac_ext
13711	LIBS="$olibs"
13712
13713fi
13714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13715$as_echo "$vi_cv_have_gpm" >&6; }
13716  if test $vi_cv_have_gpm = yes; then
13717    LIBS="$LIBS -lgpm"
13718    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13719
13720  fi
13721else
13722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13723$as_echo "yes" >&6; }
13724fi
13725
13726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13727$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13728# Check whether --enable-sysmouse was given.
13729if test "${enable_sysmouse+set}" = set; then :
13730  enableval=$enable_sysmouse;
13731else
13732  enable_sysmouse="yes"
13733fi
13734
13735
13736if test "$enable_sysmouse" = "yes"; then
13737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738$as_echo "no" >&6; }
13739        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13740$as_echo_n "checking for sysmouse... " >&6; }
13741if ${vi_cv_have_sysmouse+:} false; then :
13742  $as_echo_n "(cached) " >&6
13743else
13744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745/* end confdefs.h.  */
13746#include <sys/consio.h>
13747	     #include <signal.h>
13748	     #include <sys/fbio.h>
13749int
13750main ()
13751{
13752struct mouse_info   mouse;
13753	     mouse.operation = MOUSE_MODE;
13754	     mouse.operation = MOUSE_SHOW;
13755	     mouse.u.mode.mode = 0;
13756	     mouse.u.mode.signal = SIGUSR2;
13757  ;
13758  return 0;
13759}
13760_ACEOF
13761if ac_fn_c_try_link "$LINENO"; then :
13762  vi_cv_have_sysmouse=yes
13763else
13764  vi_cv_have_sysmouse=no
13765fi
13766rm -f core conftest.err conftest.$ac_objext \
13767    conftest$ac_exeext conftest.$ac_ext
13768
13769fi
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13771$as_echo "$vi_cv_have_sysmouse" >&6; }
13772  if test $vi_cv_have_sysmouse = yes; then
13773    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13774
13775  fi
13776else
13777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13778$as_echo "yes" >&6; }
13779fi
13780
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13782$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784/* end confdefs.h.  */
13785#if HAVE_FCNTL_H
13786# include <fcntl.h>
13787#endif
13788int
13789main ()
13790{
13791	int flag = FD_CLOEXEC;
13792  ;
13793  return 0;
13794}
13795_ACEOF
13796if ac_fn_c_try_compile "$LINENO"; then :
13797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13798$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13799
13800else
13801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13802$as_echo "not usable" >&6; }
13803fi
13804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13805
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13807$as_echo_n "checking for rename... " >&6; }
13808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809/* end confdefs.h.  */
13810#include <stdio.h>
13811int
13812main ()
13813{
13814rename("this", "that")
13815  ;
13816  return 0;
13817}
13818_ACEOF
13819if ac_fn_c_try_link "$LINENO"; then :
13820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13821$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13822
13823else
13824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825$as_echo "no" >&6; }
13826fi
13827rm -f core conftest.err conftest.$ac_objext \
13828    conftest$ac_exeext conftest.$ac_ext
13829
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13831$as_echo_n "checking for sysctl... " >&6; }
13832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833/* end confdefs.h.  */
13834#include <sys/types.h>
13835#include <sys/sysctl.h>
13836int
13837main ()
13838{
13839	int mib[2], r;
13840	size_t len;
13841
13842	mib[0] = CTL_HW;
13843	mib[1] = HW_USERMEM;
13844	len = sizeof(r);
13845	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13846
13847  ;
13848  return 0;
13849}
13850_ACEOF
13851if ac_fn_c_try_compile "$LINENO"; then :
13852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13853$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13854
13855else
13856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13857$as_echo "not usable" >&6; }
13858fi
13859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13860
13861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13862$as_echo_n "checking for sysinfo... " >&6; }
13863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864/* end confdefs.h.  */
13865#include <sys/types.h>
13866#include <sys/sysinfo.h>
13867int
13868main ()
13869{
13870	struct sysinfo sinfo;
13871	int t;
13872
13873	(void)sysinfo(&sinfo);
13874	t = sinfo.totalram;
13875
13876  ;
13877  return 0;
13878}
13879_ACEOF
13880if ac_fn_c_try_compile "$LINENO"; then :
13881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13882$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13883
13884else
13885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13886$as_echo "not usable" >&6; }
13887fi
13888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13891$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893/* end confdefs.h.  */
13894#include <sys/types.h>
13895#include <sys/sysinfo.h>
13896int
13897main ()
13898{
13899	struct sysinfo sinfo;
13900	sinfo.mem_unit = 1;
13901
13902  ;
13903  return 0;
13904}
13905_ACEOF
13906if ac_fn_c_try_compile "$LINENO"; then :
13907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13908$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13909
13910else
13911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912$as_echo "no" >&6; }
13913fi
13914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13917$as_echo_n "checking for sysconf... " >&6; }
13918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919/* end confdefs.h.  */
13920#include <unistd.h>
13921int
13922main ()
13923{
13924	(void)sysconf(_SC_PAGESIZE);
13925	(void)sysconf(_SC_PHYS_PAGES);
13926
13927  ;
13928  return 0;
13929}
13930_ACEOF
13931if ac_fn_c_try_compile "$LINENO"; then :
13932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13933$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13934
13935else
13936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13937$as_echo "not usable" >&6; }
13938fi
13939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13940
13941# The cast to long int works around a bug in the HP C Compiler
13942# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13943# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13944# This bug is HP SR number 8606223364.
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13946$as_echo_n "checking size of int... " >&6; }
13947if ${ac_cv_sizeof_int+:} false; then :
13948  $as_echo_n "(cached) " >&6
13949else
13950  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13951
13952else
13953  if test "$ac_cv_type_int" = yes; then
13954     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13956as_fn_error 77 "cannot compute sizeof (int)
13957See \`config.log' for more details" "$LINENO" 5; }
13958   else
13959     ac_cv_sizeof_int=0
13960   fi
13961fi
13962
13963fi
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13965$as_echo "$ac_cv_sizeof_int" >&6; }
13966
13967
13968
13969cat >>confdefs.h <<_ACEOF
13970#define SIZEOF_INT $ac_cv_sizeof_int
13971_ACEOF
13972
13973
13974# The cast to long int works around a bug in the HP C Compiler
13975# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13976# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13977# This bug is HP SR number 8606223364.
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13979$as_echo_n "checking size of long... " >&6; }
13980if ${ac_cv_sizeof_long+:} false; then :
13981  $as_echo_n "(cached) " >&6
13982else
13983  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13984
13985else
13986  if test "$ac_cv_type_long" = yes; then
13987     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13989as_fn_error 77 "cannot compute sizeof (long)
13990See \`config.log' for more details" "$LINENO" 5; }
13991   else
13992     ac_cv_sizeof_long=0
13993   fi
13994fi
13995
13996fi
13997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13998$as_echo "$ac_cv_sizeof_long" >&6; }
13999
14000
14001
14002cat >>confdefs.h <<_ACEOF
14003#define SIZEOF_LONG $ac_cv_sizeof_long
14004_ACEOF
14005
14006
14007# The cast to long int works around a bug in the HP C Compiler
14008# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14009# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14010# This bug is HP SR number 8606223364.
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14012$as_echo_n "checking size of time_t... " >&6; }
14013if ${ac_cv_sizeof_time_t+:} false; then :
14014  $as_echo_n "(cached) " >&6
14015else
14016  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
14017
14018else
14019  if test "$ac_cv_type_time_t" = yes; then
14020     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14022as_fn_error 77 "cannot compute sizeof (time_t)
14023See \`config.log' for more details" "$LINENO" 5; }
14024   else
14025     ac_cv_sizeof_time_t=0
14026   fi
14027fi
14028
14029fi
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14031$as_echo "$ac_cv_sizeof_time_t" >&6; }
14032
14033
14034
14035cat >>confdefs.h <<_ACEOF
14036#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14037_ACEOF
14038
14039
14040# The cast to long int works around a bug in the HP C Compiler
14041# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14042# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14043# This bug is HP SR number 8606223364.
14044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14045$as_echo_n "checking size of off_t... " >&6; }
14046if ${ac_cv_sizeof_off_t+:} false; then :
14047  $as_echo_n "(cached) " >&6
14048else
14049  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14050
14051else
14052  if test "$ac_cv_type_off_t" = yes; then
14053     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14055as_fn_error 77 "cannot compute sizeof (off_t)
14056See \`config.log' for more details" "$LINENO" 5; }
14057   else
14058     ac_cv_sizeof_off_t=0
14059   fi
14060fi
14061
14062fi
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14064$as_echo "$ac_cv_sizeof_off_t" >&6; }
14065
14066
14067
14068cat >>confdefs.h <<_ACEOF
14069#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14070_ACEOF
14071
14072
14073
14074cat >>confdefs.h <<_ACEOF
14075#define VIM_SIZEOF_INT $ac_cv_sizeof_int
14076_ACEOF
14077
14078cat >>confdefs.h <<_ACEOF
14079#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
14080_ACEOF
14081
14082
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
14084$as_echo_n "checking uint32_t is 32 bits... " >&6; }
14085if test "$cross_compiling" = yes; then :
14086  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
14087$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
14088else
14089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090/* end confdefs.h.  */
14091
14092#ifdef HAVE_STDINT_H
14093# include <stdint.h>
14094#endif
14095#ifdef HAVE_INTTYPES_H
14096# include <inttypes.h>
14097#endif
14098main() {
14099  uint32_t nr1 = (uint32_t)-1;
14100  uint32_t nr2 = (uint32_t)0xffffffffUL;
14101  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
14102  exit(0);
14103}
14104_ACEOF
14105if ac_fn_c_try_run "$LINENO"; then :
14106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14107$as_echo "ok" >&6; }
14108else
14109  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
14110fi
14111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14112  conftest.$ac_objext conftest.beam conftest.$ac_ext
14113fi
14114
14115
14116
14117bcopy_test_prog='
14118#include "confdefs.h"
14119#ifdef HAVE_STRING_H
14120# include <string.h>
14121#endif
14122#if STDC_HEADERS
14123# include <stdlib.h>
14124# include <stddef.h>
14125#endif
14126main() {
14127  char buf[10];
14128  strcpy(buf, "abcdefghi");
14129  mch_memmove(buf, buf + 2, 3);
14130  if (strncmp(buf, "ababcf", 6))
14131    exit(1);
14132  strcpy(buf, "abcdefghi");
14133  mch_memmove(buf + 2, buf, 3);
14134  if (strncmp(buf, "cdedef", 6))
14135    exit(1);
14136  exit(0); /* libc version works properly.  */
14137}'
14138
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
14140$as_echo_n "checking whether memmove handles overlaps... " >&6; }
14141if ${vim_cv_memmove_handles_overlap+:} false; then :
14142  $as_echo_n "(cached) " >&6
14143else
14144
14145    if test "$cross_compiling" = yes; then :
14146
14147	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
14148
14149else
14150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151/* end confdefs.h.  */
14152#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14153_ACEOF
14154if ac_fn_c_try_run "$LINENO"; then :
14155
14156	vim_cv_memmove_handles_overlap=yes
14157
14158else
14159
14160	vim_cv_memmove_handles_overlap=no
14161
14162fi
14163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14164  conftest.$ac_objext conftest.beam conftest.$ac_ext
14165fi
14166
14167
14168fi
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
14170$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
14171
14172if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
14173  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
14174
14175else
14176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
14177$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
14178if ${vim_cv_bcopy_handles_overlap+:} false; then :
14179  $as_echo_n "(cached) " >&6
14180else
14181
14182      if test "$cross_compiling" = yes; then :
14183
14184	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
14185
14186else
14187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188/* end confdefs.h.  */
14189#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14190_ACEOF
14191if ac_fn_c_try_run "$LINENO"; then :
14192
14193	vim_cv_bcopy_handles_overlap=yes
14194
14195else
14196
14197	vim_cv_bcopy_handles_overlap=no
14198
14199fi
14200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14201  conftest.$ac_objext conftest.beam conftest.$ac_ext
14202fi
14203
14204
14205fi
14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
14207$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
14208
14209  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
14210    $as_echo "#define USEBCOPY 1" >>confdefs.h
14211
14212  else
14213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
14214$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
14215if ${vim_cv_memcpy_handles_overlap+:} false; then :
14216  $as_echo_n "(cached) " >&6
14217else
14218
14219	if test "$cross_compiling" = yes; then :
14220
14221	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
14222
14223else
14224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225/* end confdefs.h.  */
14226#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14227_ACEOF
14228if ac_fn_c_try_run "$LINENO"; then :
14229
14230	    vim_cv_memcpy_handles_overlap=yes
14231
14232else
14233
14234	    vim_cv_memcpy_handles_overlap=no
14235
14236fi
14237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14238  conftest.$ac_objext conftest.beam conftest.$ac_ext
14239fi
14240
14241
14242fi
14243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
14244$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
14245
14246    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
14247      $as_echo "#define USEMEMCPY 1" >>confdefs.h
14248
14249    fi
14250  fi
14251fi
14252
14253
14254if test "x$with_x" = "xyes"; then
14255  cflags_save=$CFLAGS
14256  libs_save=$LIBS
14257  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
14258  CFLAGS="$CFLAGS $X_CFLAGS"
14259
14260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
14261$as_echo_n "checking whether X_LOCALE needed... " >&6; }
14262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263/* end confdefs.h.  */
14264#include <X11/Xlocale.h>
14265int
14266main ()
14267{
14268
14269  ;
14270  return 0;
14271}
14272_ACEOF
14273if ac_fn_c_try_compile "$LINENO"; then :
14274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275/* end confdefs.h.  */
14276
14277/* Override any GCC internal prototype to avoid an error.
14278   Use char because int might match the return type of a GCC
14279   builtin and then its argument prototype would still apply.  */
14280#ifdef __cplusplus
14281extern "C"
14282#endif
14283char _Xsetlocale ();
14284int
14285main ()
14286{
14287return _Xsetlocale ();
14288  ;
14289  return 0;
14290}
14291_ACEOF
14292if ac_fn_c_try_link "$LINENO"; then :
14293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14294$as_echo "yes" >&6; }
14295	      $as_echo "#define X_LOCALE 1" >>confdefs.h
14296
14297else
14298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299$as_echo "no" >&6; }
14300fi
14301rm -f core conftest.err conftest.$ac_objext \
14302    conftest$ac_exeext conftest.$ac_ext
14303else
14304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305$as_echo "no" >&6; }
14306fi
14307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14308
14309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
14310$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
14311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312/* end confdefs.h.  */
14313
14314/* Override any GCC internal prototype to avoid an error.
14315   Use char because int might match the return type of a GCC
14316   builtin and then its argument prototype would still apply.  */
14317#ifdef __cplusplus
14318extern "C"
14319#endif
14320char Xutf8SetWMProperties ();
14321int
14322main ()
14323{
14324return Xutf8SetWMProperties ();
14325  ;
14326  return 0;
14327}
14328_ACEOF
14329if ac_fn_c_try_link "$LINENO"; then :
14330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14331$as_echo "yes" >&6; }
14332	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
14333
14334else
14335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14336$as_echo "no" >&6; }
14337fi
14338rm -f core conftest.err conftest.$ac_objext \
14339    conftest$ac_exeext conftest.$ac_ext
14340
14341  CFLAGS=$cflags_save
14342  LIBS=$libs_save
14343fi
14344
14345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
14346$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
14347if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
14348  $as_echo_n "(cached) " >&6
14349else
14350  ac_check_lib_save_LIBS=$LIBS
14351LIBS="-lxpg4  $LIBS"
14352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353/* end confdefs.h.  */
14354
14355/* Override any GCC internal prototype to avoid an error.
14356   Use char because int might match the return type of a GCC
14357   builtin and then its argument prototype would still apply.  */
14358#ifdef __cplusplus
14359extern "C"
14360#endif
14361char _xpg4_setrunelocale ();
14362int
14363main ()
14364{
14365return _xpg4_setrunelocale ();
14366  ;
14367  return 0;
14368}
14369_ACEOF
14370if ac_fn_c_try_link "$LINENO"; then :
14371  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14372else
14373  ac_cv_lib_xpg4__xpg4_setrunelocale=no
14374fi
14375rm -f core conftest.err conftest.$ac_objext \
14376    conftest$ac_exeext conftest.$ac_ext
14377LIBS=$ac_check_lib_save_LIBS
14378fi
14379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14380$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
14381if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
14382  LIBS="$LIBS -lxpg4"
14383fi
14384
14385
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
14387$as_echo_n "checking how to create tags... " >&6; }
14388test -f tags && mv tags tags.save
14389if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14390  TAGPRG="ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14391elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14392  TAGPRG="exctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14393elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14394  TAGPRG="exuberant-ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14395else
14396  TAGPRG="ctags"
14397  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14398  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14399  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14400  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14401  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14402  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14403  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14404fi
14405test -f tags.save && mv tags.save tags
14406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
14407$as_echo "$TAGPRG" >&6; }
14408
14409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
14410$as_echo_n "checking how to run man with a section nr... " >&6; }
14411MANDEF="man"
14412(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
14414$as_echo "$MANDEF" >&6; }
14415if test "$MANDEF" = "man -s"; then
14416  $as_echo "#define USEMAN_S 1" >>confdefs.h
14417
14418fi
14419
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
14421$as_echo_n "checking --disable-nls argument... " >&6; }
14422# Check whether --enable-nls was given.
14423if test "${enable_nls+set}" = set; then :
14424  enableval=$enable_nls;
14425else
14426  enable_nls="yes"
14427fi
14428
14429
14430if test "$enable_nls" = "yes"; then
14431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432$as_echo "no" >&6; }
14433
14434  INSTALL_LANGS=install-languages
14435
14436  INSTALL_TOOL_LANGS=install-tool-languages
14437
14438
14439  # Extract the first word of "msgfmt", so it can be a program name with args.
14440set dummy msgfmt; ac_word=$2
14441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14442$as_echo_n "checking for $ac_word... " >&6; }
14443if ${ac_cv_prog_MSGFMT+:} false; then :
14444  $as_echo_n "(cached) " >&6
14445else
14446  if test -n "$MSGFMT"; then
14447  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14448else
14449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450for as_dir in $PATH
14451do
14452  IFS=$as_save_IFS
14453  test -z "$as_dir" && as_dir=.
14454    for ac_exec_ext in '' $ac_executable_extensions; do
14455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14456    ac_cv_prog_MSGFMT="msgfmt"
14457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14458    break 2
14459  fi
14460done
14461  done
14462IFS=$as_save_IFS
14463
14464fi
14465fi
14466MSGFMT=$ac_cv_prog_MSGFMT
14467if test -n "$MSGFMT"; then
14468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14469$as_echo "$MSGFMT" >&6; }
14470else
14471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472$as_echo "no" >&6; }
14473fi
14474
14475
14476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
14477$as_echo_n "checking for NLS... " >&6; }
14478  if test -f po/Makefile; then
14479    have_gettext="no"
14480    if test -n "$MSGFMT"; then
14481      olibs=$LIBS
14482      LIBS=""
14483      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484/* end confdefs.h.  */
14485#include <libintl.h>
14486int
14487main ()
14488{
14489gettext("Test");
14490  ;
14491  return 0;
14492}
14493_ACEOF
14494if ac_fn_c_try_link "$LINENO"; then :
14495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
14496$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
14497else
14498  LIBS="-lintl"
14499	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500/* end confdefs.h.  */
14501#include <libintl.h>
14502int
14503main ()
14504{
14505gettext("Test");
14506  ;
14507  return 0;
14508}
14509_ACEOF
14510if ac_fn_c_try_link "$LINENO"; then :
14511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
14512$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
14513	      LIBS="$olibs -lintl"
14514else
14515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
14516$as_echo "gettext() doesn't work" >&6; };
14517	      LIBS=$olibs
14518fi
14519rm -f core conftest.err conftest.$ac_objext \
14520    conftest$ac_exeext conftest.$ac_ext
14521fi
14522rm -f core conftest.err conftest.$ac_objext \
14523    conftest$ac_exeext conftest.$ac_ext
14524    else
14525      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
14526$as_echo "msgfmt not found - disabled" >&6; };
14527    fi
14528    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
14529      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14530
14531      MAKEMO=yes
14532
14533            for ac_func in bind_textdomain_codeset
14534do :
14535  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14536if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14537  cat >>confdefs.h <<_ACEOF
14538#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14539_ACEOF
14540
14541fi
14542done
14543
14544            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
14545$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
14546      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547/* end confdefs.h.  */
14548#include <libintl.h>
14549		extern int _nl_msg_cat_cntr;
14550int
14551main ()
14552{
14553++_nl_msg_cat_cntr;
14554  ;
14555  return 0;
14556}
14557_ACEOF
14558if ac_fn_c_try_link "$LINENO"; then :
14559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14560$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
14561
14562else
14563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14564$as_echo "no" >&6; }
14565fi
14566rm -f core conftest.err conftest.$ac_objext \
14567    conftest$ac_exeext conftest.$ac_ext
14568      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5
14569$as_echo_n "checking if msgfmt supports --desktop... " >&6; }
14570      MSGFMT_DESKTOP=
14571      if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then
14572	if "$MSGFMT" --version | grep '0.19.[3-7]$' >/dev/null; then
14573	  	  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
14574$as_echo "broken" >&6; }
14575	else
14576	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14577$as_echo "yes" >&6; }
14578	  MSGFMT_DESKTOP="gvim.desktop vim.desktop"
14579	fi
14580      else
14581	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582$as_echo "no" >&6; }
14583      fi
14584
14585    fi
14586  else
14587    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
14588$as_echo "no \"po/Makefile\" - disabled" >&6; };
14589  fi
14590else
14591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14592$as_echo "yes" >&6; }
14593fi
14594
14595ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14596if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14597  DLL=dlfcn.h
14598else
14599  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14600if test "x$ac_cv_header_dl_h" = xyes; then :
14601  DLL=dl.h
14602fi
14603
14604
14605fi
14606
14607
14608if test x${DLL} = xdlfcn.h; then
14609
14610$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14611
14612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
14613$as_echo_n "checking for dlopen()... " >&6; }
14614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615/* end confdefs.h.  */
14616
14617int
14618main ()
14619{
14620
14621		extern void* dlopen();
14622		dlopen();
14623
14624  ;
14625  return 0;
14626}
14627_ACEOF
14628if ac_fn_c_try_link "$LINENO"; then :
14629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14630$as_echo "yes" >&6; };
14631
14632$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14633
14634else
14635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14636$as_echo "no" >&6; };
14637	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
14638$as_echo_n "checking for dlopen() in -ldl... " >&6; }
14639	      olibs=$LIBS
14640	      LIBS="$LIBS -ldl"
14641	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642/* end confdefs.h.  */
14643
14644int
14645main ()
14646{
14647
14648				extern void* dlopen();
14649				dlopen();
14650
14651  ;
14652  return 0;
14653}
14654_ACEOF
14655if ac_fn_c_try_link "$LINENO"; then :
14656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14657$as_echo "yes" >&6; };
14658
14659$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14660
14661else
14662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663$as_echo "no" >&6; };
14664			  LIBS=$olibs
14665fi
14666rm -f core conftest.err conftest.$ac_objext \
14667    conftest$ac_exeext conftest.$ac_ext
14668fi
14669rm -f core conftest.err conftest.$ac_objext \
14670    conftest$ac_exeext conftest.$ac_ext
14671      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
14672$as_echo_n "checking for dlsym()... " >&6; }
14673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674/* end confdefs.h.  */
14675
14676int
14677main ()
14678{
14679
14680		extern void* dlsym();
14681		dlsym();
14682
14683  ;
14684  return 0;
14685}
14686_ACEOF
14687if ac_fn_c_try_link "$LINENO"; then :
14688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14689$as_echo "yes" >&6; };
14690
14691$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14692
14693else
14694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14695$as_echo "no" >&6; };
14696	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
14697$as_echo_n "checking for dlsym() in -ldl... " >&6; }
14698	      olibs=$LIBS
14699	      LIBS="$LIBS -ldl"
14700	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701/* end confdefs.h.  */
14702
14703int
14704main ()
14705{
14706
14707				extern void* dlsym();
14708				dlsym();
14709
14710  ;
14711  return 0;
14712}
14713_ACEOF
14714if ac_fn_c_try_link "$LINENO"; then :
14715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14716$as_echo "yes" >&6; };
14717
14718$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14719
14720else
14721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722$as_echo "no" >&6; };
14723			  LIBS=$olibs
14724fi
14725rm -f core conftest.err conftest.$ac_objext \
14726    conftest$ac_exeext conftest.$ac_ext
14727fi
14728rm -f core conftest.err conftest.$ac_objext \
14729    conftest$ac_exeext conftest.$ac_ext
14730elif test x${DLL} = xdl.h; then
14731
14732$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14733
14734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14735$as_echo_n "checking for shl_load()... " >&6; }
14736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737/* end confdefs.h.  */
14738
14739int
14740main ()
14741{
14742
14743		extern void* shl_load();
14744		shl_load();
14745
14746  ;
14747  return 0;
14748}
14749_ACEOF
14750if ac_fn_c_try_link "$LINENO"; then :
14751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14752$as_echo "yes" >&6; };
14753
14754$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14755
14756else
14757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758$as_echo "no" >&6; };
14759	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14760$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14761	  olibs=$LIBS
14762	  LIBS="$LIBS -ldld"
14763	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764/* end confdefs.h.  */
14765
14766int
14767main ()
14768{
14769
14770			extern void* shl_load();
14771			shl_load();
14772
14773  ;
14774  return 0;
14775}
14776_ACEOF
14777if ac_fn_c_try_link "$LINENO"; then :
14778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14779$as_echo "yes" >&6; };
14780
14781$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14782
14783else
14784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785$as_echo "no" >&6; };
14786		  LIBS=$olibs
14787fi
14788rm -f core conftest.err conftest.$ac_objext \
14789    conftest$ac_exeext conftest.$ac_ext
14790fi
14791rm -f core conftest.err conftest.$ac_objext \
14792    conftest$ac_exeext conftest.$ac_ext
14793fi
14794for ac_header in setjmp.h
14795do :
14796  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14797if test "x$ac_cv_header_setjmp_h" = xyes; then :
14798  cat >>confdefs.h <<_ACEOF
14799#define HAVE_SETJMP_H 1
14800_ACEOF
14801
14802fi
14803
14804done
14805
14806
14807if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then
14808    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14809    LIBS=`echo $LIBS | sed s/-ldl//`
14810    PERL_LIBS="$PERL_LIBS -ldl"
14811  fi
14812fi
14813
14814if test "$MACOS_X" = "yes"; then
14815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5
14816$as_echo_n "checking whether we need macOS frameworks... " >&6; }
14817  if test "$GUITYPE" = "CARBONGUI"; then
14818    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5
14819$as_echo "yes, we need Carbon" >&6; }
14820    LIBS="$LIBS -framework Carbon"
14821  elif test "$MACOS_X_DARWIN" = "yes"; then
14822    if test "$features" = "tiny"; then
14823            OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14824      OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14825      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
14826$as_echo "yes, we need CoreServices" >&6; }
14827      LIBS="$LIBS -framework CoreServices"
14828    else
14829      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
14830$as_echo "yes, we need AppKit" >&6; }
14831      LIBS="$LIBS -framework AppKit"
14832    fi
14833  else
14834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14835$as_echo "no" >&6; }
14836  fi
14837fi
14838if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14839  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14840fi
14841
14842DEPEND_CFLAGS_FILTER=
14843if test "$GCC" = yes; then
14844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14845$as_echo_n "checking for GCC 3 or later... " >&6; }
14846  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9][0-9]*\)\..*$/\1/g'`
14847  if test "$gccmajor" -gt "2"; then
14848    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14849    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14850$as_echo "yes" >&6; }
14851  else
14852    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853$as_echo "no" >&6; }
14854  fi
14855          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14856$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14857  if test "$gccmajor" -gt "3"; then
14858    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/'`
14859    CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g'`
14860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14861$as_echo "yes" >&6; }
14862  else
14863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14864$as_echo "no" >&6; }
14865  fi
14866fi
14867
14868
14869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5
14870$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; }
14871if 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
14872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14873$as_echo "yes" >&6; }
14874  $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14875
14876else
14877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14878$as_echo "no" >&6; }
14879fi
14880
14881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14882$as_echo_n "checking linker --as-needed support... " >&6; }
14883LINK_AS_NEEDED=
14884# Check if linker supports --as-needed and --no-as-needed options
14885if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14886  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14887  LINK_AS_NEEDED=yes
14888fi
14889if test "$LINK_AS_NEEDED" = yes; then
14890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891$as_echo "yes" >&6; }
14892else
14893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14894$as_echo "no" >&6; }
14895fi
14896
14897
14898# IBM z/OS reset CFLAGS for config.mk
14899if test "$zOSUnix" = "yes"; then
14900	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14901fi
14902
14903ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14904
14905cat >confcache <<\_ACEOF
14906# This file is a shell script that caches the results of configure
14907# tests run on this system so they can be shared between configure
14908# scripts and configure runs, see configure's option --config-cache.
14909# It is not useful on other systems.  If it contains results you don't
14910# want to keep, you may remove or edit it.
14911#
14912# config.status only pays attention to the cache file if you give it
14913# the --recheck option to rerun configure.
14914#
14915# `ac_cv_env_foo' variables (set or unset) will be overridden when
14916# loading this file, other *unset* `ac_cv_foo' will be assigned the
14917# following values.
14918
14919_ACEOF
14920
14921# The following way of writing the cache mishandles newlines in values,
14922# but we know of no workaround that is simple, portable, and efficient.
14923# So, we kill variables containing newlines.
14924# Ultrix sh set writes to stderr and can't be redirected directly,
14925# and sets the high bit in the cache file unless we assign to the vars.
14926(
14927  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14928    eval ac_val=\$$ac_var
14929    case $ac_val in #(
14930    *${as_nl}*)
14931      case $ac_var in #(
14932      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14933$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14934      esac
14935      case $ac_var in #(
14936      _ | IFS | as_nl) ;; #(
14937      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14938      *) { eval $ac_var=; unset $ac_var;} ;;
14939      esac ;;
14940    esac
14941  done
14942
14943  (set) 2>&1 |
14944    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14945    *${as_nl}ac_space=\ *)
14946      # `set' does not quote correctly, so add quotes: double-quote
14947      # substitution turns \\\\ into \\, and sed turns \\ into \.
14948      sed -n \
14949	"s/'/'\\\\''/g;
14950	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14951      ;; #(
14952    *)
14953      # `set' quotes correctly as required by POSIX, so do not add quotes.
14954      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14955      ;;
14956    esac |
14957    sort
14958) |
14959  sed '
14960     /^ac_cv_env_/b end
14961     t clear
14962     :clear
14963     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14964     t end
14965     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14966     :end' >>confcache
14967if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14968  if test -w "$cache_file"; then
14969    if test "x$cache_file" != "x/dev/null"; then
14970      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14971$as_echo "$as_me: updating cache $cache_file" >&6;}
14972      if test ! -f "$cache_file" || test -h "$cache_file"; then
14973	cat confcache >"$cache_file"
14974      else
14975        case $cache_file in #(
14976        */* | ?:*)
14977	  mv -f confcache "$cache_file"$$ &&
14978	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14979        *)
14980	  mv -f confcache "$cache_file" ;;
14981	esac
14982      fi
14983    fi
14984  else
14985    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14986$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14987  fi
14988fi
14989rm -f confcache
14990
14991test "x$prefix" = xNONE && prefix=$ac_default_prefix
14992# Let make expand exec_prefix.
14993test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14994
14995DEFS=-DHAVE_CONFIG_H
14996
14997ac_libobjs=
14998ac_ltlibobjs=
14999U=
15000for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15001  # 1. Remove the extension, and $U if already installed.
15002  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15003  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15004  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15005  #    will be set to the directory where LIBOBJS objects are built.
15006  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15007  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15008done
15009LIBOBJS=$ac_libobjs
15010
15011LTLIBOBJS=$ac_ltlibobjs
15012
15013
15014
15015
15016: "${CONFIG_STATUS=./config.status}"
15017ac_write_fail=0
15018ac_clean_files_save=$ac_clean_files
15019ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15020{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15021$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15022as_write_fail=0
15023cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15024#! $SHELL
15025# Generated by $as_me.
15026# Run this file to recreate the current configuration.
15027# Compiler output produced by configure, useful for debugging
15028# configure, is in config.log if it exists.
15029
15030debug=false
15031ac_cs_recheck=false
15032ac_cs_silent=false
15033
15034SHELL=\${CONFIG_SHELL-$SHELL}
15035export SHELL
15036_ASEOF
15037cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15038## -------------------- ##
15039## M4sh Initialization. ##
15040## -------------------- ##
15041
15042# Be more Bourne compatible
15043DUALCASE=1; export DUALCASE # for MKS sh
15044if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15045  emulate sh
15046  NULLCMD=:
15047  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15048  # is contrary to our usage.  Disable this feature.
15049  alias -g '${1+"$@"}'='"$@"'
15050  setopt NO_GLOB_SUBST
15051else
15052  case `(set -o) 2>/dev/null` in #(
15053  *posix*) :
15054    set -o posix ;; #(
15055  *) :
15056     ;;
15057esac
15058fi
15059
15060
15061as_nl='
15062'
15063export as_nl
15064# Printing a long string crashes Solaris 7 /usr/bin/printf.
15065as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15066as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15067as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15068# Prefer a ksh shell builtin over an external printf program on Solaris,
15069# but without wasting forks for bash or zsh.
15070if test -z "$BASH_VERSION$ZSH_VERSION" \
15071    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15072  as_echo='print -r --'
15073  as_echo_n='print -rn --'
15074elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15075  as_echo='printf %s\n'
15076  as_echo_n='printf %s'
15077else
15078  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15079    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15080    as_echo_n='/usr/ucb/echo -n'
15081  else
15082    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15083    as_echo_n_body='eval
15084      arg=$1;
15085      case $arg in #(
15086      *"$as_nl"*)
15087	expr "X$arg" : "X\\(.*\\)$as_nl";
15088	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15089      esac;
15090      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15091    '
15092    export as_echo_n_body
15093    as_echo_n='sh -c $as_echo_n_body as_echo'
15094  fi
15095  export as_echo_body
15096  as_echo='sh -c $as_echo_body as_echo'
15097fi
15098
15099# The user is always right.
15100if test "${PATH_SEPARATOR+set}" != set; then
15101  PATH_SEPARATOR=:
15102  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15103    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15104      PATH_SEPARATOR=';'
15105  }
15106fi
15107
15108
15109# IFS
15110# We need space, tab and new line, in precisely that order.  Quoting is
15111# there to prevent editors from complaining about space-tab.
15112# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15113# splitting by setting IFS to empty value.)
15114IFS=" ""	$as_nl"
15115
15116# Find who we are.  Look in the path if we contain no directory separator.
15117as_myself=
15118case $0 in #((
15119  *[\\/]* ) as_myself=$0 ;;
15120  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15121for as_dir in $PATH
15122do
15123  IFS=$as_save_IFS
15124  test -z "$as_dir" && as_dir=.
15125    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15126  done
15127IFS=$as_save_IFS
15128
15129     ;;
15130esac
15131# We did not find ourselves, most probably we were run as `sh COMMAND'
15132# in which case we are not to be found in the path.
15133if test "x$as_myself" = x; then
15134  as_myself=$0
15135fi
15136if test ! -f "$as_myself"; then
15137  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15138  exit 1
15139fi
15140
15141# Unset variables that we do not need and which cause bugs (e.g. in
15142# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15143# suppresses any "Segmentation fault" message there.  '((' could
15144# trigger a bug in pdksh 5.2.14.
15145for as_var in BASH_ENV ENV MAIL MAILPATH
15146do eval test x\${$as_var+set} = xset \
15147  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15148done
15149PS1='$ '
15150PS2='> '
15151PS4='+ '
15152
15153# NLS nuisances.
15154LC_ALL=C
15155export LC_ALL
15156LANGUAGE=C
15157export LANGUAGE
15158
15159# CDPATH.
15160(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15161
15162
15163# as_fn_error STATUS ERROR [LINENO LOG_FD]
15164# ----------------------------------------
15165# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15166# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15167# script with STATUS, using 1 if that was 0.
15168as_fn_error ()
15169{
15170  as_status=$1; test $as_status -eq 0 && as_status=1
15171  if test "$4"; then
15172    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15173    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15174  fi
15175  $as_echo "$as_me: error: $2" >&2
15176  as_fn_exit $as_status
15177} # as_fn_error
15178
15179
15180# as_fn_set_status STATUS
15181# -----------------------
15182# Set $? to STATUS, without forking.
15183as_fn_set_status ()
15184{
15185  return $1
15186} # as_fn_set_status
15187
15188# as_fn_exit STATUS
15189# -----------------
15190# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15191as_fn_exit ()
15192{
15193  set +e
15194  as_fn_set_status $1
15195  exit $1
15196} # as_fn_exit
15197
15198# as_fn_unset VAR
15199# ---------------
15200# Portably unset VAR.
15201as_fn_unset ()
15202{
15203  { eval $1=; unset $1;}
15204}
15205as_unset=as_fn_unset
15206# as_fn_append VAR VALUE
15207# ----------------------
15208# Append the text in VALUE to the end of the definition contained in VAR. Take
15209# advantage of any shell optimizations that allow amortized linear growth over
15210# repeated appends, instead of the typical quadratic growth present in naive
15211# implementations.
15212if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15213  eval 'as_fn_append ()
15214  {
15215    eval $1+=\$2
15216  }'
15217else
15218  as_fn_append ()
15219  {
15220    eval $1=\$$1\$2
15221  }
15222fi # as_fn_append
15223
15224# as_fn_arith ARG...
15225# ------------------
15226# Perform arithmetic evaluation on the ARGs, and store the result in the
15227# global $as_val. Take advantage of shells that can avoid forks. The arguments
15228# must be portable across $(()) and expr.
15229if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15230  eval 'as_fn_arith ()
15231  {
15232    as_val=$(( $* ))
15233  }'
15234else
15235  as_fn_arith ()
15236  {
15237    as_val=`expr "$@" || test $? -eq 1`
15238  }
15239fi # as_fn_arith
15240
15241
15242if expr a : '\(a\)' >/dev/null 2>&1 &&
15243   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15244  as_expr=expr
15245else
15246  as_expr=false
15247fi
15248
15249if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15250  as_basename=basename
15251else
15252  as_basename=false
15253fi
15254
15255if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15256  as_dirname=dirname
15257else
15258  as_dirname=false
15259fi
15260
15261as_me=`$as_basename -- "$0" ||
15262$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15263	 X"$0" : 'X\(//\)$' \| \
15264	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15265$as_echo X/"$0" |
15266    sed '/^.*\/\([^/][^/]*\)\/*$/{
15267	    s//\1/
15268	    q
15269	  }
15270	  /^X\/\(\/\/\)$/{
15271	    s//\1/
15272	    q
15273	  }
15274	  /^X\/\(\/\).*/{
15275	    s//\1/
15276	    q
15277	  }
15278	  s/.*/./; q'`
15279
15280# Avoid depending upon Character Ranges.
15281as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15282as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15283as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15284as_cr_digits='0123456789'
15285as_cr_alnum=$as_cr_Letters$as_cr_digits
15286
15287ECHO_C= ECHO_N= ECHO_T=
15288case `echo -n x` in #(((((
15289-n*)
15290  case `echo 'xy\c'` in
15291  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15292  xy)  ECHO_C='\c';;
15293  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15294       ECHO_T='	';;
15295  esac;;
15296*)
15297  ECHO_N='-n';;
15298esac
15299
15300rm -f conf$$ conf$$.exe conf$$.file
15301if test -d conf$$.dir; then
15302  rm -f conf$$.dir/conf$$.file
15303else
15304  rm -f conf$$.dir
15305  mkdir conf$$.dir 2>/dev/null
15306fi
15307if (echo >conf$$.file) 2>/dev/null; then
15308  if ln -s conf$$.file conf$$ 2>/dev/null; then
15309    as_ln_s='ln -s'
15310    # ... but there are two gotchas:
15311    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15312    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15313    # In both cases, we have to default to `cp -pR'.
15314    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15315      as_ln_s='cp -pR'
15316  elif ln conf$$.file conf$$ 2>/dev/null; then
15317    as_ln_s=ln
15318  else
15319    as_ln_s='cp -pR'
15320  fi
15321else
15322  as_ln_s='cp -pR'
15323fi
15324rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15325rmdir conf$$.dir 2>/dev/null
15326
15327
15328# as_fn_mkdir_p
15329# -------------
15330# Create "$as_dir" as a directory, including parents if necessary.
15331as_fn_mkdir_p ()
15332{
15333
15334  case $as_dir in #(
15335  -*) as_dir=./$as_dir;;
15336  esac
15337  test -d "$as_dir" || eval $as_mkdir_p || {
15338    as_dirs=
15339    while :; do
15340      case $as_dir in #(
15341      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15342      *) as_qdir=$as_dir;;
15343      esac
15344      as_dirs="'$as_qdir' $as_dirs"
15345      as_dir=`$as_dirname -- "$as_dir" ||
15346$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15347	 X"$as_dir" : 'X\(//\)[^/]' \| \
15348	 X"$as_dir" : 'X\(//\)$' \| \
15349	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15350$as_echo X"$as_dir" |
15351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15352	    s//\1/
15353	    q
15354	  }
15355	  /^X\(\/\/\)[^/].*/{
15356	    s//\1/
15357	    q
15358	  }
15359	  /^X\(\/\/\)$/{
15360	    s//\1/
15361	    q
15362	  }
15363	  /^X\(\/\).*/{
15364	    s//\1/
15365	    q
15366	  }
15367	  s/.*/./; q'`
15368      test -d "$as_dir" && break
15369    done
15370    test -z "$as_dirs" || eval "mkdir $as_dirs"
15371  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15372
15373
15374} # as_fn_mkdir_p
15375if mkdir -p . 2>/dev/null; then
15376  as_mkdir_p='mkdir -p "$as_dir"'
15377else
15378  test -d ./-p && rmdir ./-p
15379  as_mkdir_p=false
15380fi
15381
15382
15383# as_fn_executable_p FILE
15384# -----------------------
15385# Test if FILE is an executable regular file.
15386as_fn_executable_p ()
15387{
15388  test -f "$1" && test -x "$1"
15389} # as_fn_executable_p
15390as_test_x='test -x'
15391as_executable_p=as_fn_executable_p
15392
15393# Sed expression to map a string onto a valid CPP name.
15394as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15395
15396# Sed expression to map a string onto a valid variable name.
15397as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15398
15399
15400exec 6>&1
15401## ----------------------------------- ##
15402## Main body of $CONFIG_STATUS script. ##
15403## ----------------------------------- ##
15404_ASEOF
15405test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15406
15407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15408# Save the log message, to keep $0 and so on meaningful, and to
15409# report actual input values of CONFIG_FILES etc. instead of their
15410# values after options handling.
15411ac_log="
15412This file was extended by $as_me, which was
15413generated by GNU Autoconf 2.69.  Invocation command line was
15414
15415  CONFIG_FILES    = $CONFIG_FILES
15416  CONFIG_HEADERS  = $CONFIG_HEADERS
15417  CONFIG_LINKS    = $CONFIG_LINKS
15418  CONFIG_COMMANDS = $CONFIG_COMMANDS
15419  $ $0 $@
15420
15421on `(hostname || uname -n) 2>/dev/null | sed 1q`
15422"
15423
15424_ACEOF
15425
15426case $ac_config_files in *"
15427"*) set x $ac_config_files; shift; ac_config_files=$*;;
15428esac
15429
15430case $ac_config_headers in *"
15431"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15432esac
15433
15434
15435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15436# Files that config.status was made for.
15437config_files="$ac_config_files"
15438config_headers="$ac_config_headers"
15439
15440_ACEOF
15441
15442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15443ac_cs_usage="\
15444\`$as_me' instantiates files and other configuration actions
15445from templates according to the current configuration.  Unless the files
15446and actions are specified as TAGs, all are instantiated by default.
15447
15448Usage: $0 [OPTION]... [TAG]...
15449
15450  -h, --help       print this help, then exit
15451  -V, --version    print version number and configuration settings, then exit
15452      --config     print configuration, then exit
15453  -q, --quiet, --silent
15454                   do not print progress messages
15455  -d, --debug      don't remove temporary files
15456      --recheck    update $as_me by reconfiguring in the same conditions
15457      --file=FILE[:TEMPLATE]
15458                   instantiate the configuration file FILE
15459      --header=FILE[:TEMPLATE]
15460                   instantiate the configuration header FILE
15461
15462Configuration files:
15463$config_files
15464
15465Configuration headers:
15466$config_headers
15467
15468Report bugs to the package provider."
15469
15470_ACEOF
15471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15472ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15473ac_cs_version="\\
15474config.status
15475configured by $0, generated by GNU Autoconf 2.69,
15476  with options \\"\$ac_cs_config\\"
15477
15478Copyright (C) 2012 Free Software Foundation, Inc.
15479This config.status script is free software; the Free Software Foundation
15480gives unlimited permission to copy, distribute and modify it."
15481
15482ac_pwd='$ac_pwd'
15483srcdir='$srcdir'
15484AWK='$AWK'
15485test -n "\$AWK" || AWK=awk
15486_ACEOF
15487
15488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15489# The default lists apply if the user does not specify any file.
15490ac_need_defaults=:
15491while test $# != 0
15492do
15493  case $1 in
15494  --*=?*)
15495    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15496    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15497    ac_shift=:
15498    ;;
15499  --*=)
15500    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15501    ac_optarg=
15502    ac_shift=:
15503    ;;
15504  *)
15505    ac_option=$1
15506    ac_optarg=$2
15507    ac_shift=shift
15508    ;;
15509  esac
15510
15511  case $ac_option in
15512  # Handling of the options.
15513  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15514    ac_cs_recheck=: ;;
15515  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15516    $as_echo "$ac_cs_version"; exit ;;
15517  --config | --confi | --conf | --con | --co | --c )
15518    $as_echo "$ac_cs_config"; exit ;;
15519  --debug | --debu | --deb | --de | --d | -d )
15520    debug=: ;;
15521  --file | --fil | --fi | --f )
15522    $ac_shift
15523    case $ac_optarg in
15524    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15525    '') as_fn_error $? "missing file argument" ;;
15526    esac
15527    as_fn_append CONFIG_FILES " '$ac_optarg'"
15528    ac_need_defaults=false;;
15529  --header | --heade | --head | --hea )
15530    $ac_shift
15531    case $ac_optarg in
15532    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15533    esac
15534    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15535    ac_need_defaults=false;;
15536  --he | --h)
15537    # Conflict between --help and --header
15538    as_fn_error $? "ambiguous option: \`$1'
15539Try \`$0 --help' for more information.";;
15540  --help | --hel | -h )
15541    $as_echo "$ac_cs_usage"; exit ;;
15542  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15543  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15544    ac_cs_silent=: ;;
15545
15546  # This is an error.
15547  -*) as_fn_error $? "unrecognized option: \`$1'
15548Try \`$0 --help' for more information." ;;
15549
15550  *) as_fn_append ac_config_targets " $1"
15551     ac_need_defaults=false ;;
15552
15553  esac
15554  shift
15555done
15556
15557ac_configure_extra_args=
15558
15559if $ac_cs_silent; then
15560  exec 6>/dev/null
15561  ac_configure_extra_args="$ac_configure_extra_args --silent"
15562fi
15563
15564_ACEOF
15565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15566if \$ac_cs_recheck; then
15567  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15568  shift
15569  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15570  CONFIG_SHELL='$SHELL'
15571  export CONFIG_SHELL
15572  exec "\$@"
15573fi
15574
15575_ACEOF
15576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15577exec 5>>auto/config.log
15578{
15579  echo
15580  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15581## Running $as_me. ##
15582_ASBOX
15583  $as_echo "$ac_log"
15584} >&5
15585
15586_ACEOF
15587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15588_ACEOF
15589
15590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15591
15592# Handling of arguments.
15593for ac_config_target in $ac_config_targets
15594do
15595  case $ac_config_target in
15596    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15597    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15598
15599  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15600  esac
15601done
15602
15603
15604# If the user did not use the arguments to specify the items to instantiate,
15605# then the envvar interface is used.  Set only those that are not.
15606# We use the long form for the default assignment because of an extremely
15607# bizarre bug on SunOS 4.1.3.
15608if $ac_need_defaults; then
15609  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15610  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15611fi
15612
15613# Have a temporary directory for convenience.  Make it in the build tree
15614# simply because there is no reason against having it here, and in addition,
15615# creating and moving files from /tmp can sometimes cause problems.
15616# Hook for its removal unless debugging.
15617# Note that there is a small window in which the directory will not be cleaned:
15618# after its creation but before its name has been assigned to `$tmp'.
15619$debug ||
15620{
15621  tmp= ac_tmp=
15622  trap 'exit_status=$?
15623  : "${ac_tmp:=$tmp}"
15624  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15625' 0
15626  trap 'as_fn_exit 1' 1 2 13 15
15627}
15628# Create a (secure) tmp directory for tmp files.
15629
15630{
15631  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15632  test -d "$tmp"
15633}  ||
15634{
15635  tmp=./conf$$-$RANDOM
15636  (umask 077 && mkdir "$tmp")
15637} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15638ac_tmp=$tmp
15639
15640# Set up the scripts for CONFIG_FILES section.
15641# No need to generate them if there are no CONFIG_FILES.
15642# This happens for instance with `./config.status config.h'.
15643if test -n "$CONFIG_FILES"; then
15644
15645
15646ac_cr=`echo X | tr X '\015'`
15647# On cygwin, bash can eat \r inside `` if the user requested igncr.
15648# But we know of no other shell where ac_cr would be empty at this
15649# point, so we can use a bashism as a fallback.
15650if test "x$ac_cr" = x; then
15651  eval ac_cr=\$\'\\r\'
15652fi
15653ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15654if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15655  ac_cs_awk_cr='\\r'
15656else
15657  ac_cs_awk_cr=$ac_cr
15658fi
15659
15660echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15661_ACEOF
15662
15663
15664{
15665  echo "cat >conf$$subs.awk <<_ACEOF" &&
15666  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15667  echo "_ACEOF"
15668} >conf$$subs.sh ||
15669  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15670ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15671ac_delim='%!_!# '
15672for ac_last_try in false false false false false :; do
15673  . ./conf$$subs.sh ||
15674    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15675
15676  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15677  if test $ac_delim_n = $ac_delim_num; then
15678    break
15679  elif $ac_last_try; then
15680    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15681  else
15682    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15683  fi
15684done
15685rm -f conf$$subs.sh
15686
15687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15688cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15689_ACEOF
15690sed -n '
15691h
15692s/^/S["/; s/!.*/"]=/
15693p
15694g
15695s/^[^!]*!//
15696:repl
15697t repl
15698s/'"$ac_delim"'$//
15699t delim
15700:nl
15701h
15702s/\(.\{148\}\)..*/\1/
15703t more1
15704s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15705p
15706n
15707b repl
15708:more1
15709s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15710p
15711g
15712s/.\{148\}//
15713t nl
15714:delim
15715h
15716s/\(.\{148\}\)..*/\1/
15717t more2
15718s/["\\]/\\&/g; s/^/"/; s/$/"/
15719p
15720b
15721:more2
15722s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15723p
15724g
15725s/.\{148\}//
15726t delim
15727' <conf$$subs.awk | sed '
15728/^[^""]/{
15729  N
15730  s/\n//
15731}
15732' >>$CONFIG_STATUS || ac_write_fail=1
15733rm -f conf$$subs.awk
15734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15735_ACAWK
15736cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15737  for (key in S) S_is_set[key] = 1
15738  FS = ""
15739
15740}
15741{
15742  line = $ 0
15743  nfields = split(line, field, "@")
15744  substed = 0
15745  len = length(field[1])
15746  for (i = 2; i < nfields; i++) {
15747    key = field[i]
15748    keylen = length(key)
15749    if (S_is_set[key]) {
15750      value = S[key]
15751      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15752      len += length(value) + length(field[++i])
15753      substed = 1
15754    } else
15755      len += 1 + keylen
15756  }
15757
15758  print line
15759}
15760
15761_ACAWK
15762_ACEOF
15763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15764if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15765  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15766else
15767  cat
15768fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15769  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15770_ACEOF
15771
15772# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15773# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15774# trailing colons and then remove the whole line if VPATH becomes empty
15775# (actually we leave an empty line to preserve line numbers).
15776if test "x$srcdir" = x.; then
15777  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15778h
15779s///
15780s/^/:/
15781s/[	 ]*$/:/
15782s/:\$(srcdir):/:/g
15783s/:\${srcdir}:/:/g
15784s/:@srcdir@:/:/g
15785s/^:*//
15786s/:*$//
15787x
15788s/\(=[	 ]*\).*/\1/
15789G
15790s/\n//
15791s/^[^=]*=[	 ]*$//
15792}'
15793fi
15794
15795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15796fi # test -n "$CONFIG_FILES"
15797
15798# Set up the scripts for CONFIG_HEADERS section.
15799# No need to generate them if there are no CONFIG_HEADERS.
15800# This happens for instance with `./config.status Makefile'.
15801if test -n "$CONFIG_HEADERS"; then
15802cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15803BEGIN {
15804_ACEOF
15805
15806# Transform confdefs.h into an awk script `defines.awk', embedded as
15807# here-document in config.status, that substitutes the proper values into
15808# config.h.in to produce config.h.
15809
15810# Create a delimiter string that does not exist in confdefs.h, to ease
15811# handling of long lines.
15812ac_delim='%!_!# '
15813for ac_last_try in false false :; do
15814  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15815  if test -z "$ac_tt"; then
15816    break
15817  elif $ac_last_try; then
15818    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15819  else
15820    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15821  fi
15822done
15823
15824# For the awk script, D is an array of macro values keyed by name,
15825# likewise P contains macro parameters if any.  Preserve backslash
15826# newline sequences.
15827
15828ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15829sed -n '
15830s/.\{148\}/&'"$ac_delim"'/g
15831t rset
15832:rset
15833s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15834t def
15835d
15836:def
15837s/\\$//
15838t bsnl
15839s/["\\]/\\&/g
15840s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15841D["\1"]=" \3"/p
15842s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15843d
15844:bsnl
15845s/["\\]/\\&/g
15846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15847D["\1"]=" \3\\\\\\n"\\/p
15848t cont
15849s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15850t cont
15851d
15852:cont
15853n
15854s/.\{148\}/&'"$ac_delim"'/g
15855t clear
15856:clear
15857s/\\$//
15858t bsnlc
15859s/["\\]/\\&/g; s/^/"/; s/$/"/p
15860d
15861:bsnlc
15862s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15863b cont
15864' <confdefs.h | sed '
15865s/'"$ac_delim"'/"\\\
15866"/g' >>$CONFIG_STATUS || ac_write_fail=1
15867
15868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15869  for (key in D) D_is_set[key] = 1
15870  FS = ""
15871}
15872/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15873  line = \$ 0
15874  split(line, arg, " ")
15875  if (arg[1] == "#") {
15876    defundef = arg[2]
15877    mac1 = arg[3]
15878  } else {
15879    defundef = substr(arg[1], 2)
15880    mac1 = arg[2]
15881  }
15882  split(mac1, mac2, "(") #)
15883  macro = mac2[1]
15884  prefix = substr(line, 1, index(line, defundef) - 1)
15885  if (D_is_set[macro]) {
15886    # Preserve the white space surrounding the "#".
15887    print prefix "define", macro P[macro] D[macro]
15888    next
15889  } else {
15890    # Replace #undef with comments.  This is necessary, for example,
15891    # in the case of _POSIX_SOURCE, which is predefined and required
15892    # on some systems where configure will not decide to define it.
15893    if (defundef == "undef") {
15894      print "/*", prefix defundef, macro, "*/"
15895      next
15896    }
15897  }
15898}
15899{ print }
15900_ACAWK
15901_ACEOF
15902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15903  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15904fi # test -n "$CONFIG_HEADERS"
15905
15906
15907eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15908shift
15909for ac_tag
15910do
15911  case $ac_tag in
15912  :[FHLC]) ac_mode=$ac_tag; continue;;
15913  esac
15914  case $ac_mode$ac_tag in
15915  :[FHL]*:*);;
15916  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15917  :[FH]-) ac_tag=-:-;;
15918  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15919  esac
15920  ac_save_IFS=$IFS
15921  IFS=:
15922  set x $ac_tag
15923  IFS=$ac_save_IFS
15924  shift
15925  ac_file=$1
15926  shift
15927
15928  case $ac_mode in
15929  :L) ac_source=$1;;
15930  :[FH])
15931    ac_file_inputs=
15932    for ac_f
15933    do
15934      case $ac_f in
15935      -) ac_f="$ac_tmp/stdin";;
15936      *) # Look for the file first in the build tree, then in the source tree
15937	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15938	 # because $ac_f cannot contain `:'.
15939	 test -f "$ac_f" ||
15940	   case $ac_f in
15941	   [\\/$]*) false;;
15942	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15943	   esac ||
15944	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15945      esac
15946      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15947      as_fn_append ac_file_inputs " '$ac_f'"
15948    done
15949
15950    # Let's still pretend it is `configure' which instantiates (i.e., don't
15951    # use $as_me), people would be surprised to read:
15952    #    /* config.h.  Generated by config.status.  */
15953    configure_input='Generated from '`
15954	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15955	`' by configure.'
15956    if test x"$ac_file" != x-; then
15957      configure_input="$ac_file.  $configure_input"
15958      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15959$as_echo "$as_me: creating $ac_file" >&6;}
15960    fi
15961    # Neutralize special characters interpreted by sed in replacement strings.
15962    case $configure_input in #(
15963    *\&* | *\|* | *\\* )
15964       ac_sed_conf_input=`$as_echo "$configure_input" |
15965       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15966    *) ac_sed_conf_input=$configure_input;;
15967    esac
15968
15969    case $ac_tag in
15970    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15971      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15972    esac
15973    ;;
15974  esac
15975
15976  ac_dir=`$as_dirname -- "$ac_file" ||
15977$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15978	 X"$ac_file" : 'X\(//\)[^/]' \| \
15979	 X"$ac_file" : 'X\(//\)$' \| \
15980	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15981$as_echo X"$ac_file" |
15982    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15983	    s//\1/
15984	    q
15985	  }
15986	  /^X\(\/\/\)[^/].*/{
15987	    s//\1/
15988	    q
15989	  }
15990	  /^X\(\/\/\)$/{
15991	    s//\1/
15992	    q
15993	  }
15994	  /^X\(\/\).*/{
15995	    s//\1/
15996	    q
15997	  }
15998	  s/.*/./; q'`
15999  as_dir="$ac_dir"; as_fn_mkdir_p
16000  ac_builddir=.
16001
16002case "$ac_dir" in
16003.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16004*)
16005  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16006  # A ".." for each directory in $ac_dir_suffix.
16007  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16008  case $ac_top_builddir_sub in
16009  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16010  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16011  esac ;;
16012esac
16013ac_abs_top_builddir=$ac_pwd
16014ac_abs_builddir=$ac_pwd$ac_dir_suffix
16015# for backward compatibility:
16016ac_top_builddir=$ac_top_build_prefix
16017
16018case $srcdir in
16019  .)  # We are building in place.
16020    ac_srcdir=.
16021    ac_top_srcdir=$ac_top_builddir_sub
16022    ac_abs_top_srcdir=$ac_pwd ;;
16023  [\\/]* | ?:[\\/]* )  # Absolute name.
16024    ac_srcdir=$srcdir$ac_dir_suffix;
16025    ac_top_srcdir=$srcdir
16026    ac_abs_top_srcdir=$srcdir ;;
16027  *) # Relative name.
16028    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16029    ac_top_srcdir=$ac_top_build_prefix$srcdir
16030    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16031esac
16032ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16033
16034
16035  case $ac_mode in
16036  :F)
16037  #
16038  # CONFIG_FILE
16039  #
16040
16041_ACEOF
16042
16043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16044# If the template does not know about datarootdir, expand it.
16045# FIXME: This hack should be removed a few years after 2.60.
16046ac_datarootdir_hack=; ac_datarootdir_seen=
16047ac_sed_dataroot='
16048/datarootdir/ {
16049  p
16050  q
16051}
16052/@datadir@/p
16053/@docdir@/p
16054/@infodir@/p
16055/@localedir@/p
16056/@mandir@/p'
16057case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16058*datarootdir*) ac_datarootdir_seen=yes;;
16059*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16060  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16061$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16062_ACEOF
16063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16064  ac_datarootdir_hack='
16065  s&@datadir@&$datadir&g
16066  s&@docdir@&$docdir&g
16067  s&@infodir@&$infodir&g
16068  s&@localedir@&$localedir&g
16069  s&@mandir@&$mandir&g
16070  s&\\\${datarootdir}&$datarootdir&g' ;;
16071esac
16072_ACEOF
16073
16074# Neutralize VPATH when `$srcdir' = `.'.
16075# Shell code in configure.ac might set extrasub.
16076# FIXME: do we really want to maintain this feature?
16077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16078ac_sed_extra="$ac_vpsub
16079$extrasub
16080_ACEOF
16081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16082:t
16083/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16084s|@configure_input@|$ac_sed_conf_input|;t t
16085s&@top_builddir@&$ac_top_builddir_sub&;t t
16086s&@top_build_prefix@&$ac_top_build_prefix&;t t
16087s&@srcdir@&$ac_srcdir&;t t
16088s&@abs_srcdir@&$ac_abs_srcdir&;t t
16089s&@top_srcdir@&$ac_top_srcdir&;t t
16090s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16091s&@builddir@&$ac_builddir&;t t
16092s&@abs_builddir@&$ac_abs_builddir&;t t
16093s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16094$ac_datarootdir_hack
16095"
16096eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16097  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16098
16099test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16100  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16101  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16102      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16103  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16104which seems to be undefined.  Please make sure it is defined" >&5
16105$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16106which seems to be undefined.  Please make sure it is defined" >&2;}
16107
16108  rm -f "$ac_tmp/stdin"
16109  case $ac_file in
16110  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16111  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16112  esac \
16113  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16114 ;;
16115  :H)
16116  #
16117  # CONFIG_HEADER
16118  #
16119  if test x"$ac_file" != x-; then
16120    {
16121      $as_echo "/* $configure_input  */" \
16122      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16123    } >"$ac_tmp/config.h" \
16124      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16125    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16126      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16127$as_echo "$as_me: $ac_file is unchanged" >&6;}
16128    else
16129      rm -f "$ac_file"
16130      mv "$ac_tmp/config.h" "$ac_file" \
16131	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16132    fi
16133  else
16134    $as_echo "/* $configure_input  */" \
16135      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16136      || as_fn_error $? "could not create -" "$LINENO" 5
16137  fi
16138 ;;
16139
16140
16141  esac
16142
16143done # for ac_tag
16144
16145
16146as_fn_exit 0
16147_ACEOF
16148ac_clean_files=$ac_clean_files_save
16149
16150test $ac_write_fail = 0 ||
16151  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16152
16153
16154# configure is writing to config.log, and then calls config.status.
16155# config.status does its own redirection, appending to config.log.
16156# Unfortunately, on DOS this fails, as config.log is still kept open
16157# by configure, so config.status won't be able to write to it; its
16158# output is simply discarded.  So we exec the FD to /dev/null,
16159# effectively closing config.log, so it can be properly (re)opened and
16160# appended to by config.status.  When coming back to configure, we
16161# need to make the FD available again.
16162if test "$no_create" != yes; then
16163  ac_cs_success=:
16164  ac_config_status_args=
16165  test "$silent" = yes &&
16166    ac_config_status_args="$ac_config_status_args --quiet"
16167  exec 5>/dev/null
16168  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16169  exec 5>>auto/config.log
16170  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16171  # would make configure fail if this is the last instruction.
16172  $ac_cs_success || as_fn_exit 1
16173fi
16174if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16175  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16176$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16177fi
16178
16179
16180