xref: /vim-8.2.3635/src/auto/configure (revision a7c4e747)
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
724BUILD_DATE_MSG
725STRIP
726AWK
727FGREP
728EGREP
729GREP
730CPP
731OBJEXT
732EXEEXT
733ac_ct_CC
734CPPFLAGS
735LDFLAGS
736CFLAGS
737CC
738SET_MAKE
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758runstatedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
778ac_subst_files=''
779ac_user_opts='
780enable_option_checking
781enable_fail_if_missing
782enable_darwin
783with_mac_arch
784with_developer_dir
785with_local_dir
786with_vim_name
787with_ex_name
788with_view_name
789with_global_runtime
790with_modified_by
791enable_smack
792enable_selinux
793with_features
794with_compiledby
795enable_xsmp
796enable_xsmp_interact
797enable_luainterp
798with_lua_prefix
799with_luajit
800enable_mzschemeinterp
801with_plthome
802enable_perlinterp
803enable_pythoninterp
804with_python_command
805with_python_config_dir
806enable_python3interp
807with_python3_command
808with_python3_config_dir
809enable_tclinterp
810with_tclsh
811enable_rubyinterp
812with_ruby_command
813enable_cscope
814enable_netbeans
815enable_channel
816enable_terminal
817enable_autoservername
818enable_multibyte
819enable_rightleft
820enable_arabic
821enable_farsi
822enable_xim
823enable_fontset
824with_x
825enable_gui
826enable_gtk2_check
827enable_gnome_check
828enable_gtk3_check
829enable_motif_check
830enable_athena_check
831enable_nextaw_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  --disable-gtktest       Do not try to compile and run a test GTK program
1512  --disable-icon-cache-update        update disabled
1513  --disable-desktop-database-update  update disabled
1514  --disable-largefile     omit support for large files
1515  --disable-canberra      Do not use libcanberra.
1516  --disable-acl           No check for ACL support.
1517  --disable-gpm           Don't use gpm (Linux mouse daemon).
1518  --disable-sysmouse      Don't use sysmouse (mouse in *BSD console).
1519  --disable-nls           Don't support NLS (gettext()).
1520
1521Optional Packages:
1522  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1523  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1524  --with-mac-arch=ARCH    current, intel, ppc or both
1525  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1526  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1527  --without-local-dir     do not search /usr/local for local libraries.
1528  --with-vim-name=NAME    what to call the Vim executable
1529  --with-ex-name=NAME     what to call the Ex executable
1530  --with-view-name=NAME   what to call the View executable
1531  --with-global-runtime=DIR    global runtime directory in 'runtimepath', comma-separated for multiple directories
1532  --with-modified-by=NAME       name of who modified a release version
1533  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)
1534  --with-compiledby=NAME  name to show in :version message
1535  --with-lua-prefix=PFX   Prefix where Lua is installed.
1536  --with-luajit           Link with LuaJIT instead of Lua.
1537  --with-plthome=PLTHOME   Use PLTHOME.
1538  --with-python-command=NAME  name of the Python 2 command (default: python2 or python)
1539  --with-python-config-dir=PATH  Python's config directory (deprecated)
1540  --with-python3-command=NAME  name of the Python 3 command (default: python3 or python)
1541  --with-python3-config-dir=PATH  Python's config directory (deprecated)
1542  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1543  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1544  --with-x                use the X Window System
1545  --with-gnome-includes=DIR Specify location of GNOME headers
1546  --with-gnome-libs=DIR   Specify location of GNOME libs
1547  --with-gnome            Specify prefix for GNOME files
1548  --with-motif-lib=STRING Library for Motif
1549  --with-tlib=library     terminal library to be used
1550
1551Some influential environment variables:
1552  CC          C compiler command
1553  CFLAGS      C compiler flags
1554  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1555              nonstandard directory <lib dir>
1556  LIBS        libraries to pass to the linker, e.g. -l<library>
1557  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1558              you have headers in a nonstandard directory <include dir>
1559  CPP         C preprocessor
1560  XMKMF       Path to xmkmf, Makefile generator for X Window System
1561
1562Use these variables to override the choices made by `configure' or to help
1563it to find libraries and programs with nonstandard names/locations.
1564
1565Report bugs to the package provider.
1566_ACEOF
1567ac_status=$?
1568fi
1569
1570if test "$ac_init_help" = "recursive"; then
1571  # If there are subdirs, report their specific --help.
1572  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573    test -d "$ac_dir" ||
1574      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575      continue
1576    ac_builddir=.
1577
1578case "$ac_dir" in
1579.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580*)
1581  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582  # A ".." for each directory in $ac_dir_suffix.
1583  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584  case $ac_top_builddir_sub in
1585  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587  esac ;;
1588esac
1589ac_abs_top_builddir=$ac_pwd
1590ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591# for backward compatibility:
1592ac_top_builddir=$ac_top_build_prefix
1593
1594case $srcdir in
1595  .)  # We are building in place.
1596    ac_srcdir=.
1597    ac_top_srcdir=$ac_top_builddir_sub
1598    ac_abs_top_srcdir=$ac_pwd ;;
1599  [\\/]* | ?:[\\/]* )  # Absolute name.
1600    ac_srcdir=$srcdir$ac_dir_suffix;
1601    ac_top_srcdir=$srcdir
1602    ac_abs_top_srcdir=$srcdir ;;
1603  *) # Relative name.
1604    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605    ac_top_srcdir=$ac_top_build_prefix$srcdir
1606    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607esac
1608ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609
1610    cd "$ac_dir" || { ac_status=$?; continue; }
1611    # Check for guested configure.
1612    if test -f "$ac_srcdir/configure.gnu"; then
1613      echo &&
1614      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615    elif test -f "$ac_srcdir/configure"; then
1616      echo &&
1617      $SHELL "$ac_srcdir/configure" --help=recursive
1618    else
1619      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620    fi || ac_status=$?
1621    cd "$ac_pwd" || { ac_status=$?; break; }
1622  done
1623fi
1624
1625test -n "$ac_init_help" && exit $ac_status
1626if $ac_init_version; then
1627  cat <<\_ACEOF
1628configure
1629generated by GNU Autoconf 2.69
1630
1631Copyright (C) 2012 Free Software Foundation, Inc.
1632This configure script is free software; the Free Software Foundation
1633gives unlimited permission to copy, distribute and modify it.
1634_ACEOF
1635  exit
1636fi
1637
1638## ------------------------ ##
1639## Autoconf initialization. ##
1640## ------------------------ ##
1641
1642# ac_fn_c_try_compile LINENO
1643# --------------------------
1644# Try to compile conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_c_try_compile ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  rm -f conftest.$ac_objext
1649  if { { ac_try="$ac_compile"
1650case "(($ac_try" in
1651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652  *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656  (eval "$ac_compile") 2>conftest.err
1657  ac_status=$?
1658  if test -s conftest.err; then
1659    grep -v '^ *+' conftest.err >conftest.er1
1660    cat conftest.er1 >&5
1661    mv -f conftest.er1 conftest.err
1662  fi
1663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664  test $ac_status = 0; } && {
1665	 test -z "$ac_c_werror_flag" ||
1666	 test ! -s conftest.err
1667       } && test -s conftest.$ac_objext; then :
1668  ac_retval=0
1669else
1670  $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673	ac_retval=1
1674fi
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676  as_fn_set_status $ac_retval
1677
1678} # ac_fn_c_try_compile
1679
1680# ac_fn_c_try_cpp LINENO
1681# ----------------------
1682# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_c_try_cpp ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  if { { ac_try="$ac_cpp conftest.$ac_ext"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694  ac_status=$?
1695  if test -s conftest.err; then
1696    grep -v '^ *+' conftest.err >conftest.er1
1697    cat conftest.er1 >&5
1698    mv -f conftest.er1 conftest.err
1699  fi
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } > conftest.i && {
1702	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703	 test ! -s conftest.err
1704       }; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710    ac_retval=1
1711fi
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_cpp
1716
1717# ac_fn_c_try_link LINENO
1718# -----------------------
1719# Try to link conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_link ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  rm -f conftest.$ac_objext conftest$ac_exeext
1724  if { { ac_try="$ac_link"
1725case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_link") 2>conftest.err
1732  ac_status=$?
1733  if test -s conftest.err; then
1734    grep -v '^ *+' conftest.err >conftest.er1
1735    cat conftest.er1 >&5
1736    mv -f conftest.er1 conftest.err
1737  fi
1738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739  test $ac_status = 0; } && {
1740	 test -z "$ac_c_werror_flag" ||
1741	 test ! -s conftest.err
1742       } && test -s conftest$ac_exeext && {
1743	 test "$cross_compiling" = yes ||
1744	 test -x conftest$ac_exeext
1745       }; then :
1746  ac_retval=0
1747else
1748  $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751	ac_retval=1
1752fi
1753  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1754  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1755  # interfere with the next link command; also delete a directory that is
1756  # left behind by Apple's compiler.  We do this before executing the actions.
1757  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759  as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_link
1762
1763# ac_fn_c_try_run LINENO
1764# ----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1766# that executables *can* be run.
1767ac_fn_c_try_run ()
1768{
1769  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770  if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773  *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777  (eval "$ac_link") 2>&5
1778  ac_status=$?
1779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781  { { case "(($ac_try" in
1782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783  *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787  (eval "$ac_try") 2>&5
1788  ac_status=$?
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; }; }; then :
1791  ac_retval=0
1792else
1793  $as_echo "$as_me: program exited with status $ac_status" >&5
1794       $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797       ac_retval=$ac_status
1798fi
1799  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801  as_fn_set_status $ac_retval
1802
1803} # ac_fn_c_try_run
1804
1805# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1806# -------------------------------------------------------
1807# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1808# the include files in INCLUDES and setting the cache variable VAR
1809# accordingly.
1810ac_fn_c_check_header_mongrel ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  if eval \${$3+:} false; then :
1814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815$as_echo_n "checking for $2... " >&6; }
1816if eval \${$3+:} false; then :
1817  $as_echo_n "(cached) " >&6
1818fi
1819eval ac_res=\$$3
1820	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821$as_echo "$ac_res" >&6; }
1822else
1823  # Is the header compilable?
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1825$as_echo_n "checking $2 usability... " >&6; }
1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h.  */
1828$4
1829#include <$2>
1830_ACEOF
1831if ac_fn_c_try_compile "$LINENO"; then :
1832  ac_header_compiler=yes
1833else
1834  ac_header_compiler=no
1835fi
1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1838$as_echo "$ac_header_compiler" >&6; }
1839
1840# Is the header present?
1841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1842$as_echo_n "checking $2 presence... " >&6; }
1843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h.  */
1845#include <$2>
1846_ACEOF
1847if ac_fn_c_try_cpp "$LINENO"; then :
1848  ac_header_preproc=yes
1849else
1850  ac_header_preproc=no
1851fi
1852rm -f conftest.err conftest.i conftest.$ac_ext
1853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1854$as_echo "$ac_header_preproc" >&6; }
1855
1856# So?  What about this header?
1857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858  yes:no: )
1859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1860$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863    ;;
1864  no:yes:* )
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1866$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1868$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1870$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1872$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1873    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875    ;;
1876esac
1877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval \${$3+:} false; then :
1880  $as_echo_n "(cached) " >&6
1881else
1882  eval "$3=\$ac_header_compiler"
1883fi
1884eval ac_res=\$$3
1885	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887fi
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890} # ac_fn_c_check_header_mongrel
1891
1892# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1893# -------------------------------------------------------
1894# Tests whether HEADER exists and can be compiled using the include files in
1895# INCLUDES, setting the cache variable VAR accordingly.
1896ac_fn_c_check_header_compile ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900$as_echo_n "checking for $2... " >&6; }
1901if eval \${$3+:} false; then :
1902  $as_echo_n "(cached) " >&6
1903else
1904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906$4
1907#include <$2>
1908_ACEOF
1909if ac_fn_c_try_compile "$LINENO"; then :
1910  eval "$3=yes"
1911else
1912  eval "$3=no"
1913fi
1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915fi
1916eval ac_res=\$$3
1917	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918$as_echo "$ac_res" >&6; }
1919  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920
1921} # ac_fn_c_check_header_compile
1922
1923# ac_fn_c_check_func LINENO FUNC VAR
1924# ----------------------------------
1925# Tests whether FUNC exists, setting the cache variable VAR accordingly
1926ac_fn_c_check_func ()
1927{
1928  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930$as_echo_n "checking for $2... " >&6; }
1931if eval \${$3+:} false; then :
1932  $as_echo_n "(cached) " >&6
1933else
1934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1937   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1938#define $2 innocuous_$2
1939
1940/* System header to define __stub macros and hopefully few prototypes,
1941    which can conflict with char $2 (); below.
1942    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1943    <limits.h> exists even on freestanding compilers.  */
1944
1945#ifdef __STDC__
1946# include <limits.h>
1947#else
1948# include <assert.h>
1949#endif
1950
1951#undef $2
1952
1953/* Override any GCC internal prototype to avoid an error.
1954   Use char because int might match the return type of a GCC
1955   builtin and then its argument prototype would still apply.  */
1956#ifdef __cplusplus
1957extern "C"
1958#endif
1959char $2 ();
1960/* The GNU C library defines this for functions which it implements
1961    to always fail with ENOSYS.  Some functions are actually named
1962    something starting with __ and the normal name is an alias.  */
1963#if defined __stub_$2 || defined __stub___$2
1964choke me
1965#endif
1966
1967int
1968main ()
1969{
1970return $2 ();
1971  ;
1972  return 0;
1973}
1974_ACEOF
1975if ac_fn_c_try_link "$LINENO"; then :
1976  eval "$3=yes"
1977else
1978  eval "$3=no"
1979fi
1980rm -f core conftest.err conftest.$ac_objext \
1981    conftest$ac_exeext conftest.$ac_ext
1982fi
1983eval ac_res=\$$3
1984	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985$as_echo "$ac_res" >&6; }
1986  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988} # ac_fn_c_check_func
1989
1990# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1991# -------------------------------------------
1992# Tests whether TYPE exists after having included INCLUDES, setting cache
1993# variable VAR accordingly.
1994ac_fn_c_check_type ()
1995{
1996  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998$as_echo_n "checking for $2... " >&6; }
1999if eval \${$3+:} false; then :
2000  $as_echo_n "(cached) " >&6
2001else
2002  eval "$3=no"
2003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h.  */
2005$4
2006int
2007main ()
2008{
2009if (sizeof ($2))
2010	 return 0;
2011  ;
2012  return 0;
2013}
2014_ACEOF
2015if ac_fn_c_try_compile "$LINENO"; then :
2016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h.  */
2018$4
2019int
2020main ()
2021{
2022if (sizeof (($2)))
2023	    return 0;
2024  ;
2025  return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"; then :
2029
2030else
2031  eval "$3=yes"
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034fi
2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036fi
2037eval ac_res=\$$3
2038	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039$as_echo "$ac_res" >&6; }
2040  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042} # ac_fn_c_check_type
2043
2044# ac_fn_c_find_uintX_t LINENO BITS VAR
2045# ------------------------------------
2046# Finds an unsigned integer type with width BITS, setting cache variable VAR
2047# accordingly.
2048ac_fn_c_find_uintX_t ()
2049{
2050  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2052$as_echo_n "checking for uint$2_t... " >&6; }
2053if eval \${$3+:} false; then :
2054  $as_echo_n "(cached) " >&6
2055else
2056  eval "$3=no"
2057     # Order is important - never check a type that is potentially smaller
2058     # than half of the expected target width.
2059     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2060	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2061       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h.  */
2063$ac_includes_default
2064int
2065main ()
2066{
2067static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2068test_array [0] = 0;
2069return test_array [0];
2070
2071  ;
2072  return 0;
2073}
2074_ACEOF
2075if ac_fn_c_try_compile "$LINENO"; then :
2076  case $ac_type in #(
2077  uint$2_t) :
2078    eval "$3=yes" ;; #(
2079  *) :
2080    eval "$3=\$ac_type" ;;
2081esac
2082fi
2083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084       if eval test \"x\$"$3"\" = x"no"; then :
2085
2086else
2087  break
2088fi
2089     done
2090fi
2091eval ac_res=\$$3
2092	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093$as_echo "$ac_res" >&6; }
2094  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095
2096} # ac_fn_c_find_uintX_t
2097
2098# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2099# --------------------------------------------
2100# Tries to find the compile-time value of EXPR in a program that includes
2101# INCLUDES, setting VAR accordingly. Returns whether the value could be
2102# computed
2103ac_fn_c_compute_int ()
2104{
2105  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106  if test "$cross_compiling" = yes; then
2107    # Depending upon the size, compute the lo and hi bounds.
2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h.  */
2110$4
2111int
2112main ()
2113{
2114static int test_array [1 - 2 * !(($2) >= 0)];
2115test_array [0] = 0;
2116return test_array [0];
2117
2118  ;
2119  return 0;
2120}
2121_ACEOF
2122if ac_fn_c_try_compile "$LINENO"; then :
2123  ac_lo=0 ac_mid=0
2124  while :; do
2125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h.  */
2127$4
2128int
2129main ()
2130{
2131static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2132test_array [0] = 0;
2133return test_array [0];
2134
2135  ;
2136  return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_compile "$LINENO"; then :
2140  ac_hi=$ac_mid; break
2141else
2142  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2143			if test $ac_lo -le $ac_mid; then
2144			  ac_lo= ac_hi=
2145			  break
2146			fi
2147			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2148fi
2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150  done
2151else
2152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154$4
2155int
2156main ()
2157{
2158static int test_array [1 - 2 * !(($2) < 0)];
2159test_array [0] = 0;
2160return test_array [0];
2161
2162  ;
2163  return 0;
2164}
2165_ACEOF
2166if ac_fn_c_try_compile "$LINENO"; then :
2167  ac_hi=-1 ac_mid=-1
2168  while :; do
2169    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170/* end confdefs.h.  */
2171$4
2172int
2173main ()
2174{
2175static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2176test_array [0] = 0;
2177return test_array [0];
2178
2179  ;
2180  return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_compile "$LINENO"; then :
2184  ac_lo=$ac_mid; break
2185else
2186  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2187			if test $ac_mid -le $ac_hi; then
2188			  ac_lo= ac_hi=
2189			  break
2190			fi
2191			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194  done
2195else
2196  ac_lo= ac_hi=
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201# Binary search between lo and hi bounds.
2202while test "x$ac_lo" != "x$ac_hi"; do
2203  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h.  */
2206$4
2207int
2208main ()
2209{
2210static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2211test_array [0] = 0;
2212return test_array [0];
2213
2214  ;
2215  return 0;
2216}
2217_ACEOF
2218if ac_fn_c_try_compile "$LINENO"; then :
2219  ac_hi=$ac_mid
2220else
2221  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2222fi
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224done
2225case $ac_lo in #((
2226?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2227'') ac_retval=1 ;;
2228esac
2229  else
2230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231/* end confdefs.h.  */
2232$4
2233static long int longval () { return $2; }
2234static unsigned long int ulongval () { return $2; }
2235#include <stdio.h>
2236#include <stdlib.h>
2237int
2238main ()
2239{
2240
2241  FILE *f = fopen ("conftest.val", "w");
2242  if (! f)
2243    return 1;
2244  if (($2) < 0)
2245    {
2246      long int i = longval ();
2247      if (i != ($2))
2248	return 1;
2249      fprintf (f, "%ld", i);
2250    }
2251  else
2252    {
2253      unsigned long int i = ulongval ();
2254      if (i != ($2))
2255	return 1;
2256      fprintf (f, "%lu", i);
2257    }
2258  /* Do not output a trailing newline, as this causes \r\n confusion
2259     on some platforms.  */
2260  return ferror (f) || fclose (f) != 0;
2261
2262  ;
2263  return 0;
2264}
2265_ACEOF
2266if ac_fn_c_try_run "$LINENO"; then :
2267  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2268else
2269  ac_retval=1
2270fi
2271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2272  conftest.$ac_objext conftest.beam conftest.$ac_ext
2273rm -f conftest.val
2274
2275  fi
2276  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277  as_fn_set_status $ac_retval
2278
2279} # ac_fn_c_compute_int
2280cat >auto/config.log <<_ACEOF
2281This file contains any messages produced by compilers while
2282running configure, to aid debugging if configure makes a mistake.
2283
2284It was created by $as_me, which was
2285generated by GNU Autoconf 2.69.  Invocation command line was
2286
2287  $ $0 $@
2288
2289_ACEOF
2290exec 5>>auto/config.log
2291{
2292cat <<_ASUNAME
2293## --------- ##
2294## Platform. ##
2295## --------- ##
2296
2297hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2298uname -m = `(uname -m) 2>/dev/null || echo unknown`
2299uname -r = `(uname -r) 2>/dev/null || echo unknown`
2300uname -s = `(uname -s) 2>/dev/null || echo unknown`
2301uname -v = `(uname -v) 2>/dev/null || echo unknown`
2302
2303/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2304/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2305
2306/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2307/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2308/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2309/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2310/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2311/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2312/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2313
2314_ASUNAME
2315
2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319  IFS=$as_save_IFS
2320  test -z "$as_dir" && as_dir=.
2321    $as_echo "PATH: $as_dir"
2322  done
2323IFS=$as_save_IFS
2324
2325} >&5
2326
2327cat >&5 <<_ACEOF
2328
2329
2330## ----------- ##
2331## Core tests. ##
2332## ----------- ##
2333
2334_ACEOF
2335
2336
2337# Keep a trace of the command line.
2338# Strip out --no-create and --no-recursion so they do not pile up.
2339# Strip out --silent because we don't want to record it for future runs.
2340# Also quote any args containing shell meta-characters.
2341# Make two passes to allow for proper duplicate-argument suppression.
2342ac_configure_args=
2343ac_configure_args0=
2344ac_configure_args1=
2345ac_must_keep_next=false
2346for ac_pass in 1 2
2347do
2348  for ac_arg
2349  do
2350    case $ac_arg in
2351    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2352    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2353    | -silent | --silent | --silen | --sile | --sil)
2354      continue ;;
2355    *\'*)
2356      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2357    esac
2358    case $ac_pass in
2359    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2360    2)
2361      as_fn_append ac_configure_args1 " '$ac_arg'"
2362      if test $ac_must_keep_next = true; then
2363	ac_must_keep_next=false # Got value, back to normal.
2364      else
2365	case $ac_arg in
2366	  *=* | --config-cache | -C | -disable-* | --disable-* \
2367	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2368	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2369	  | -with-* | --with-* | -without-* | --without-* | --x)
2370	    case "$ac_configure_args0 " in
2371	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2372	    esac
2373	    ;;
2374	  -* ) ac_must_keep_next=true ;;
2375	esac
2376      fi
2377      as_fn_append ac_configure_args " '$ac_arg'"
2378      ;;
2379    esac
2380  done
2381done
2382{ ac_configure_args0=; unset ac_configure_args0;}
2383{ ac_configure_args1=; unset ac_configure_args1;}
2384
2385# When interrupted or exit'd, cleanup temporary files, and complete
2386# config.log.  We remove comments because anyway the quotes in there
2387# would cause problems or look ugly.
2388# WARNING: Use '\'' to represent an apostrophe within the trap.
2389# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2390trap 'exit_status=$?
2391  # Save into config.log some information that might help in debugging.
2392  {
2393    echo
2394
2395    $as_echo "## ---------------- ##
2396## Cache variables. ##
2397## ---------------- ##"
2398    echo
2399    # The following way of writing the cache mishandles newlines in values,
2400(
2401  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2402    eval ac_val=\$$ac_var
2403    case $ac_val in #(
2404    *${as_nl}*)
2405      case $ac_var in #(
2406      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2407$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2408      esac
2409      case $ac_var in #(
2410      _ | IFS | as_nl) ;; #(
2411      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2412      *) { eval $ac_var=; unset $ac_var;} ;;
2413      esac ;;
2414    esac
2415  done
2416  (set) 2>&1 |
2417    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2418    *${as_nl}ac_space=\ *)
2419      sed -n \
2420	"s/'\''/'\''\\\\'\'''\''/g;
2421	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2422      ;; #(
2423    *)
2424      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2425      ;;
2426    esac |
2427    sort
2428)
2429    echo
2430
2431    $as_echo "## ----------------- ##
2432## Output variables. ##
2433## ----------------- ##"
2434    echo
2435    for ac_var in $ac_subst_vars
2436    do
2437      eval ac_val=\$$ac_var
2438      case $ac_val in
2439      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440      esac
2441      $as_echo "$ac_var='\''$ac_val'\''"
2442    done | sort
2443    echo
2444
2445    if test -n "$ac_subst_files"; then
2446      $as_echo "## ------------------- ##
2447## File substitutions. ##
2448## ------------------- ##"
2449      echo
2450      for ac_var in $ac_subst_files
2451      do
2452	eval ac_val=\$$ac_var
2453	case $ac_val in
2454	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2455	esac
2456	$as_echo "$ac_var='\''$ac_val'\''"
2457      done | sort
2458      echo
2459    fi
2460
2461    if test -s confdefs.h; then
2462      $as_echo "## ----------- ##
2463## confdefs.h. ##
2464## ----------- ##"
2465      echo
2466      cat confdefs.h
2467      echo
2468    fi
2469    test "$ac_signal" != 0 &&
2470      $as_echo "$as_me: caught signal $ac_signal"
2471    $as_echo "$as_me: exit $exit_status"
2472  } >&5
2473  rm -f core *.core core.conftest.* &&
2474    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2475    exit $exit_status
2476' 0
2477for ac_signal in 1 2 13 15; do
2478  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2479done
2480ac_signal=0
2481
2482# confdefs.h avoids OS command line length limits that DEFS can exceed.
2483rm -f -r conftest* confdefs.h
2484
2485$as_echo "/* confdefs.h */" > confdefs.h
2486
2487# Predefined preprocessor variables.
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_NAME "$PACKAGE_NAME"
2491_ACEOF
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_VERSION "$PACKAGE_VERSION"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_STRING "$PACKAGE_STRING"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2507_ACEOF
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_URL "$PACKAGE_URL"
2511_ACEOF
2512
2513
2514# Let the site file select an alternate cache file if it wants to.
2515# Prefer an explicitly selected file to automatically selected ones.
2516ac_site_file1=NONE
2517ac_site_file2=NONE
2518if test -n "$CONFIG_SITE"; then
2519  # We do not want a PATH search for config.site.
2520  case $CONFIG_SITE in #((
2521    -*)  ac_site_file1=./$CONFIG_SITE;;
2522    */*) ac_site_file1=$CONFIG_SITE;;
2523    *)   ac_site_file1=./$CONFIG_SITE;;
2524  esac
2525elif test "x$prefix" != xNONE; then
2526  ac_site_file1=$prefix/share/config.site
2527  ac_site_file2=$prefix/etc/config.site
2528else
2529  ac_site_file1=$ac_default_prefix/share/config.site
2530  ac_site_file2=$ac_default_prefix/etc/config.site
2531fi
2532for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2533do
2534  test "x$ac_site_file" = xNONE && continue
2535  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2536    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2537$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2538    sed 's/^/| /' "$ac_site_file" >&5
2539    . "$ac_site_file" \
2540      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542as_fn_error $? "failed to load site script $ac_site_file
2543See \`config.log' for more details" "$LINENO" 5; }
2544  fi
2545done
2546
2547if test -r "$cache_file"; then
2548  # Some versions of bash will fail to source /dev/null (special files
2549  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2550  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2551    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2552$as_echo "$as_me: loading cache $cache_file" >&6;}
2553    case $cache_file in
2554      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2555      *)                      . "./$cache_file";;
2556    esac
2557  fi
2558else
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2560$as_echo "$as_me: creating cache $cache_file" >&6;}
2561  >$cache_file
2562fi
2563
2564# Check that the precious variables saved in the cache have kept the same
2565# value.
2566ac_cache_corrupted=false
2567for ac_var in $ac_precious_vars; do
2568  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2569  eval ac_new_set=\$ac_env_${ac_var}_set
2570  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2571  eval ac_new_val=\$ac_env_${ac_var}_value
2572  case $ac_old_set,$ac_new_set in
2573    set,)
2574      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2575$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2576      ac_cache_corrupted=: ;;
2577    ,set)
2578      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2579$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2580      ac_cache_corrupted=: ;;
2581    ,);;
2582    *)
2583      if test "x$ac_old_val" != "x$ac_new_val"; then
2584	# differences in whitespace do not lead to failure.
2585	ac_old_val_w=`echo x $ac_old_val`
2586	ac_new_val_w=`echo x $ac_new_val`
2587	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2588	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2589$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2590	  ac_cache_corrupted=:
2591	else
2592	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2593$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2594	  eval $ac_var=\$ac_old_val
2595	fi
2596	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2597$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2598	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2599$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2600      fi;;
2601  esac
2602  # Pass precious variables to config.status.
2603  if test "$ac_new_set" = set; then
2604    case $ac_new_val in
2605    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2606    *) ac_arg=$ac_var=$ac_new_val ;;
2607    esac
2608    case " $ac_configure_args " in
2609      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2610      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2611    esac
2612  fi
2613done
2614if $ac_cache_corrupted; then
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2618$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2619  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2620fi
2621## -------------------- ##
2622## Main body of script. ##
2623## -------------------- ##
2624
2625ac_ext=c
2626ac_cpp='$CPP $CPPFLAGS'
2627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630
2631
2632ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2633
2634
2635$as_echo "#define UNIX 1" >>confdefs.h
2636
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2638$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2639set x ${MAKE-make}
2640ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2641if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2642  $as_echo_n "(cached) " >&6
2643else
2644  cat >conftest.make <<\_ACEOF
2645SHELL = /bin/sh
2646all:
2647	@echo '@@@%%%=$(MAKE)=@@@%%%'
2648_ACEOF
2649# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2650case `${MAKE-make} -f conftest.make 2>/dev/null` in
2651  *@@@%%%=?*=@@@%%%*)
2652    eval ac_cv_prog_make_${ac_make}_set=yes;;
2653  *)
2654    eval ac_cv_prog_make_${ac_make}_set=no;;
2655esac
2656rm -f conftest.make
2657fi
2658if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660$as_echo "yes" >&6; }
2661  SET_MAKE=
2662else
2663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664$as_echo "no" >&6; }
2665  SET_MAKE="MAKE=${MAKE-make}"
2666fi
2667
2668
2669ac_ext=c
2670ac_cpp='$CPP $CPPFLAGS'
2671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674if test -n "$ac_tool_prefix"; then
2675  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676set dummy ${ac_tool_prefix}gcc; ac_word=$2
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678$as_echo_n "checking for $ac_word... " >&6; }
2679if ${ac_cv_prog_CC+:} false; then :
2680  $as_echo_n "(cached) " >&6
2681else
2682  if test -n "$CC"; then
2683  ac_cv_prog_CC="$CC" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688  IFS=$as_save_IFS
2689  test -z "$as_dir" && as_dir=.
2690    for ac_exec_ext in '' $ac_executable_extensions; do
2691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694    break 2
2695  fi
2696done
2697  done
2698IFS=$as_save_IFS
2699
2700fi
2701fi
2702CC=$ac_cv_prog_CC
2703if test -n "$CC"; then
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2705$as_echo "$CC" >&6; }
2706else
2707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708$as_echo "no" >&6; }
2709fi
2710
2711
2712fi
2713if test -z "$ac_cv_prog_CC"; then
2714  ac_ct_CC=$CC
2715  # Extract the first word of "gcc", so it can be a program name with args.
2716set dummy gcc; ac_word=$2
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718$as_echo_n "checking for $ac_word... " >&6; }
2719if ${ac_cv_prog_ac_ct_CC+:} false; then :
2720  $as_echo_n "(cached) " >&6
2721else
2722  if test -n "$ac_ct_CC"; then
2723  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724else
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728  IFS=$as_save_IFS
2729  test -z "$as_dir" && as_dir=.
2730    for ac_exec_ext in '' $ac_executable_extensions; do
2731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732    ac_cv_prog_ac_ct_CC="gcc"
2733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734    break 2
2735  fi
2736done
2737  done
2738IFS=$as_save_IFS
2739
2740fi
2741fi
2742ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743if test -n "$ac_ct_CC"; then
2744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2745$as_echo "$ac_ct_CC" >&6; }
2746else
2747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748$as_echo "no" >&6; }
2749fi
2750
2751  if test "x$ac_ct_CC" = x; then
2752    CC=""
2753  else
2754    case $cross_compiling:$ac_tool_warned in
2755yes:)
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758ac_tool_warned=yes ;;
2759esac
2760    CC=$ac_ct_CC
2761  fi
2762else
2763  CC="$ac_cv_prog_CC"
2764fi
2765
2766if test -z "$CC"; then
2767          if test -n "$ac_tool_prefix"; then
2768    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2769set dummy ${ac_tool_prefix}cc; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if ${ac_cv_prog_CC+:} false; then :
2773  $as_echo_n "(cached) " >&6
2774else
2775  if test -n "$CC"; then
2776  ac_cv_prog_CC="$CC" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781  IFS=$as_save_IFS
2782  test -z "$as_dir" && as_dir=.
2783    for ac_exec_ext in '' $ac_executable_extensions; do
2784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785    ac_cv_prog_CC="${ac_tool_prefix}cc"
2786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787    break 2
2788  fi
2789done
2790  done
2791IFS=$as_save_IFS
2792
2793fi
2794fi
2795CC=$ac_cv_prog_CC
2796if test -n "$CC"; then
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798$as_echo "$CC" >&6; }
2799else
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
2803
2804
2805  fi
2806fi
2807if test -z "$CC"; then
2808  # Extract the first word of "cc", so it can be a program name with args.
2809set dummy cc; ac_word=$2
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
2812if ${ac_cv_prog_CC+:} false; then :
2813  $as_echo_n "(cached) " >&6
2814else
2815  if test -n "$CC"; then
2816  ac_cv_prog_CC="$CC" # Let the user override the test.
2817else
2818  ac_prog_rejected=no
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822  IFS=$as_save_IFS
2823  test -z "$as_dir" && as_dir=.
2824    for ac_exec_ext in '' $ac_executable_extensions; do
2825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2827       ac_prog_rejected=yes
2828       continue
2829     fi
2830    ac_cv_prog_CC="cc"
2831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832    break 2
2833  fi
2834done
2835  done
2836IFS=$as_save_IFS
2837
2838if test $ac_prog_rejected = yes; then
2839  # We found a bogon in the path, so make sure we never use it.
2840  set dummy $ac_cv_prog_CC
2841  shift
2842  if test $# != 0; then
2843    # We chose a different compiler from the bogus one.
2844    # However, it has the same basename, so the bogon will be chosen
2845    # first if we set CC to just the basename; use the full file name.
2846    shift
2847    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2848  fi
2849fi
2850fi
2851fi
2852CC=$ac_cv_prog_CC
2853if test -n "$CC"; then
2854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855$as_echo "$CC" >&6; }
2856else
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858$as_echo "no" >&6; }
2859fi
2860
2861
2862fi
2863if test -z "$CC"; then
2864  if test -n "$ac_tool_prefix"; then
2865  for ac_prog in cl.exe
2866  do
2867    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
2871if ${ac_cv_prog_CC+:} false; then :
2872  $as_echo_n "(cached) " >&6
2873else
2874  if test -n "$CC"; then
2875  ac_cv_prog_CC="$CC" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880  IFS=$as_save_IFS
2881  test -z "$as_dir" && as_dir=.
2882    for ac_exec_ext in '' $ac_executable_extensions; do
2883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886    break 2
2887  fi
2888done
2889  done
2890IFS=$as_save_IFS
2891
2892fi
2893fi
2894CC=$ac_cv_prog_CC
2895if test -n "$CC"; then
2896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897$as_echo "$CC" >&6; }
2898else
2899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
2901fi
2902
2903
2904    test -n "$CC" && break
2905  done
2906fi
2907if test -z "$CC"; then
2908  ac_ct_CC=$CC
2909  for ac_prog in cl.exe
2910do
2911  # Extract the first word of "$ac_prog", so it can be a program name with args.
2912set dummy $ac_prog; ac_word=$2
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
2915if ${ac_cv_prog_ac_ct_CC+:} false; then :
2916  $as_echo_n "(cached) " >&6
2917else
2918  if test -n "$ac_ct_CC"; then
2919  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  test -z "$as_dir" && as_dir=.
2926    for ac_exec_ext in '' $ac_executable_extensions; do
2927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928    ac_cv_prog_ac_ct_CC="$ac_prog"
2929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930    break 2
2931  fi
2932done
2933  done
2934IFS=$as_save_IFS
2935
2936fi
2937fi
2938ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939if test -n "$ac_ct_CC"; then
2940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2941$as_echo "$ac_ct_CC" >&6; }
2942else
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944$as_echo "no" >&6; }
2945fi
2946
2947
2948  test -n "$ac_ct_CC" && break
2949done
2950
2951  if test "x$ac_ct_CC" = x; then
2952    CC=""
2953  else
2954    case $cross_compiling:$ac_tool_warned in
2955yes:)
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958ac_tool_warned=yes ;;
2959esac
2960    CC=$ac_ct_CC
2961  fi
2962fi
2963
2964fi
2965
2966
2967test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969as_fn_error $? "no acceptable C compiler found in \$PATH
2970See \`config.log' for more details" "$LINENO" 5; }
2971
2972# Provide some information about the compiler.
2973$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2974set X $ac_compile
2975ac_compiler=$2
2976for ac_option in --version -v -V -qversion; do
2977  { { ac_try="$ac_compiler $ac_option >&5"
2978case "(($ac_try" in
2979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980  *) ac_try_echo=$ac_try;;
2981esac
2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983$as_echo "$ac_try_echo"; } >&5
2984  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2985  ac_status=$?
2986  if test -s conftest.err; then
2987    sed '10a\
2988... rest of stderr output deleted ...
2989         10q' conftest.err >conftest.er1
2990    cat conftest.er1 >&5
2991  fi
2992  rm -f conftest.er1 conftest.err
2993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994  test $ac_status = 0; }
2995done
2996
2997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998/* end confdefs.h.  */
2999
3000int
3001main ()
3002{
3003
3004  ;
3005  return 0;
3006}
3007_ACEOF
3008ac_clean_files_save=$ac_clean_files
3009ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3010# Try to create an executable without -o first, disregard a.out.
3011# It will help us diagnose broken compilers, and finding out an intuition
3012# of exeext.
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3014$as_echo_n "checking whether the C compiler works... " >&6; }
3015ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3016
3017# The possible output files:
3018ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3019
3020ac_rmfiles=
3021for ac_file in $ac_files
3022do
3023  case $ac_file in
3024    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3025    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3026  esac
3027done
3028rm -f $ac_rmfiles
3029
3030if { { ac_try="$ac_link_default"
3031case "(($ac_try" in
3032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033  *) ac_try_echo=$ac_try;;
3034esac
3035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036$as_echo "$ac_try_echo"; } >&5
3037  (eval "$ac_link_default") 2>&5
3038  ac_status=$?
3039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040  test $ac_status = 0; }; then :
3041  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3042# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3043# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3044# so that the user can short-circuit this test for compilers unknown to
3045# Autoconf.
3046for ac_file in $ac_files ''
3047do
3048  test -f "$ac_file" || continue
3049  case $ac_file in
3050    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3051	;;
3052    [ab].out )
3053	# We found the default executable, but exeext='' is most
3054	# certainly right.
3055	break;;
3056    *.* )
3057	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3058	then :; else
3059	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3060	fi
3061	# We set ac_cv_exeext here because the later test for it is not
3062	# safe: cross compilers may not add the suffix if given an `-o'
3063	# argument, so we may need to know it at that point already.
3064	# Even if this section looks crufty: it has the advantage of
3065	# actually working.
3066	break;;
3067    * )
3068	break;;
3069  esac
3070done
3071test "$ac_cv_exeext" = no && ac_cv_exeext=
3072
3073else
3074  ac_file=''
3075fi
3076if test -z "$ac_file"; then :
3077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
3079$as_echo "$as_me: failed program was:" >&5
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
3082{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084as_fn_error 77 "C compiler cannot create executables
3085See \`config.log' for more details" "$LINENO" 5; }
3086else
3087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3088$as_echo "yes" >&6; }
3089fi
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3091$as_echo_n "checking for C compiler default output file name... " >&6; }
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3093$as_echo "$ac_file" >&6; }
3094ac_exeext=$ac_cv_exeext
3095
3096rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3097ac_clean_files=$ac_clean_files_save
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3099$as_echo_n "checking for suffix of executables... " >&6; }
3100if { { ac_try="$ac_link"
3101case "(($ac_try" in
3102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103  *) ac_try_echo=$ac_try;;
3104esac
3105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106$as_echo "$ac_try_echo"; } >&5
3107  (eval "$ac_link") 2>&5
3108  ac_status=$?
3109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110  test $ac_status = 0; }; then :
3111  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3112# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3113# work properly (i.e., refer to `conftest.exe'), while it won't with
3114# `rm'.
3115for ac_file in conftest.exe conftest conftest.*; do
3116  test -f "$ac_file" || continue
3117  case $ac_file in
3118    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3119    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120	  break;;
3121    * ) break;;
3122  esac
3123done
3124else
3125  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3128See \`config.log' for more details" "$LINENO" 5; }
3129fi
3130rm -f conftest conftest$ac_cv_exeext
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3132$as_echo "$ac_cv_exeext" >&6; }
3133
3134rm -f conftest.$ac_ext
3135EXEEXT=$ac_cv_exeext
3136ac_exeext=$EXEEXT
3137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138/* end confdefs.h.  */
3139#include <stdio.h>
3140int
3141main ()
3142{
3143FILE *f = fopen ("conftest.out", "w");
3144 return ferror (f) || fclose (f) != 0;
3145
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150ac_clean_files="$ac_clean_files conftest.out"
3151# Check that the compiler produces executables we can run.  If not, either
3152# the compiler is broken, or we cross compile.
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3154$as_echo_n "checking whether we are cross compiling... " >&6; }
3155if test "$cross_compiling" != yes; then
3156  { { ac_try="$ac_link"
3157case "(($ac_try" in
3158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159  *) ac_try_echo=$ac_try;;
3160esac
3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162$as_echo "$ac_try_echo"; } >&5
3163  (eval "$ac_link") 2>&5
3164  ac_status=$?
3165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166  test $ac_status = 0; }
3167  if { ac_try='./conftest$ac_cv_exeext'
3168  { { case "(($ac_try" in
3169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170  *) ac_try_echo=$ac_try;;
3171esac
3172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173$as_echo "$ac_try_echo"; } >&5
3174  (eval "$ac_try") 2>&5
3175  ac_status=$?
3176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177  test $ac_status = 0; }; }; then
3178    cross_compiling=no
3179  else
3180    if test "$cross_compiling" = maybe; then
3181	cross_compiling=yes
3182    else
3183	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185as_fn_error $? "cannot run C compiled programs.
3186If you meant to cross compile, use \`--host'.
3187See \`config.log' for more details" "$LINENO" 5; }
3188    fi
3189  fi
3190fi
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3192$as_echo "$cross_compiling" >&6; }
3193
3194rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3195ac_clean_files=$ac_clean_files_save
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3197$as_echo_n "checking for suffix of object files... " >&6; }
3198if ${ac_cv_objext+:} false; then :
3199  $as_echo_n "(cached) " >&6
3200else
3201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202/* end confdefs.h.  */
3203
3204int
3205main ()
3206{
3207
3208  ;
3209  return 0;
3210}
3211_ACEOF
3212rm -f conftest.o conftest.obj
3213if { { ac_try="$ac_compile"
3214case "(($ac_try" in
3215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216  *) ac_try_echo=$ac_try;;
3217esac
3218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219$as_echo "$ac_try_echo"; } >&5
3220  (eval "$ac_compile") 2>&5
3221  ac_status=$?
3222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223  test $ac_status = 0; }; then :
3224  for ac_file in conftest.o conftest.obj conftest.*; do
3225  test -f "$ac_file" || continue;
3226  case $ac_file in
3227    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3228    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3229       break;;
3230  esac
3231done
3232else
3233  $as_echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238as_fn_error $? "cannot compute suffix of object files: cannot compile
3239See \`config.log' for more details" "$LINENO" 5; }
3240fi
3241rm -f conftest.$ac_cv_objext conftest.$ac_ext
3242fi
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3244$as_echo "$ac_cv_objext" >&6; }
3245OBJEXT=$ac_cv_objext
3246ac_objext=$OBJEXT
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3248$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3249if ${ac_cv_c_compiler_gnu+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h.  */
3254
3255int
3256main ()
3257{
3258#ifndef __GNUC__
3259       choke me
3260#endif
3261
3262  ;
3263  return 0;
3264}
3265_ACEOF
3266if ac_fn_c_try_compile "$LINENO"; then :
3267  ac_compiler_gnu=yes
3268else
3269  ac_compiler_gnu=no
3270fi
3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272ac_cv_c_compiler_gnu=$ac_compiler_gnu
3273
3274fi
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3276$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3277if test $ac_compiler_gnu = yes; then
3278  GCC=yes
3279else
3280  GCC=
3281fi
3282ac_test_CFLAGS=${CFLAGS+set}
3283ac_save_CFLAGS=$CFLAGS
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3285$as_echo_n "checking whether $CC accepts -g... " >&6; }
3286if ${ac_cv_prog_cc_g+:} false; then :
3287  $as_echo_n "(cached) " >&6
3288else
3289  ac_save_c_werror_flag=$ac_c_werror_flag
3290   ac_c_werror_flag=yes
3291   ac_cv_prog_cc_g=no
3292   CFLAGS="-g"
3293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294/* end confdefs.h.  */
3295
3296int
3297main ()
3298{
3299
3300  ;
3301  return 0;
3302}
3303_ACEOF
3304if ac_fn_c_try_compile "$LINENO"; then :
3305  ac_cv_prog_cc_g=yes
3306else
3307  CFLAGS=""
3308      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309/* end confdefs.h.  */
3310
3311int
3312main ()
3313{
3314
3315  ;
3316  return 0;
3317}
3318_ACEOF
3319if ac_fn_c_try_compile "$LINENO"; then :
3320
3321else
3322  ac_c_werror_flag=$ac_save_c_werror_flag
3323	 CFLAGS="-g"
3324	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325/* end confdefs.h.  */
3326
3327int
3328main ()
3329{
3330
3331  ;
3332  return 0;
3333}
3334_ACEOF
3335if ac_fn_c_try_compile "$LINENO"; then :
3336  ac_cv_prog_cc_g=yes
3337fi
3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339fi
3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341fi
3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343   ac_c_werror_flag=$ac_save_c_werror_flag
3344fi
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3346$as_echo "$ac_cv_prog_cc_g" >&6; }
3347if test "$ac_test_CFLAGS" = set; then
3348  CFLAGS=$ac_save_CFLAGS
3349elif test $ac_cv_prog_cc_g = yes; then
3350  if test "$GCC" = yes; then
3351    CFLAGS="-g -O2"
3352  else
3353    CFLAGS="-g"
3354  fi
3355else
3356  if test "$GCC" = yes; then
3357    CFLAGS="-O2"
3358  else
3359    CFLAGS=
3360  fi
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3363$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3364if ${ac_cv_prog_cc_c89+:} false; then :
3365  $as_echo_n "(cached) " >&6
3366else
3367  ac_cv_prog_cc_c89=no
3368ac_save_CC=$CC
3369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370/* end confdefs.h.  */
3371#include <stdarg.h>
3372#include <stdio.h>
3373struct stat;
3374/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3375struct buf { int x; };
3376FILE * (*rcsopen) (struct buf *, struct stat *, int);
3377static char *e (p, i)
3378     char **p;
3379     int i;
3380{
3381  return p[i];
3382}
3383static char *f (char * (*g) (char **, int), char **p, ...)
3384{
3385  char *s;
3386  va_list v;
3387  va_start (v,p);
3388  s = g (p, va_arg (v,int));
3389  va_end (v);
3390  return s;
3391}
3392
3393/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3394   function prototypes and stuff, but not '\xHH' hex character constants.
3395   These don't provoke an error unfortunately, instead are silently treated
3396   as 'x'.  The following induces an error, until -std is added to get
3397   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3398   array size at least.  It's necessary to write '\x00'==0 to get something
3399   that's true only with -std.  */
3400int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401
3402/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3403   inside strings and character constants.  */
3404#define FOO(x) 'x'
3405int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3406
3407int test (int i, double x);
3408struct s1 {int (*f) (int a);};
3409struct s2 {int (*f) (double a);};
3410int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3411int argc;
3412char **argv;
3413int
3414main ()
3415{
3416return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3417  ;
3418  return 0;
3419}
3420_ACEOF
3421for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3422	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423do
3424  CC="$ac_save_CC $ac_arg"
3425  if ac_fn_c_try_compile "$LINENO"; then :
3426  ac_cv_prog_cc_c89=$ac_arg
3427fi
3428rm -f core conftest.err conftest.$ac_objext
3429  test "x$ac_cv_prog_cc_c89" != "xno" && break
3430done
3431rm -f conftest.$ac_ext
3432CC=$ac_save_CC
3433
3434fi
3435# AC_CACHE_VAL
3436case "x$ac_cv_prog_cc_c89" in
3437  x)
3438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3439$as_echo "none needed" >&6; } ;;
3440  xno)
3441    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3442$as_echo "unsupported" >&6; } ;;
3443  *)
3444    CC="$CC $ac_cv_prog_cc_c89"
3445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3446$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3447esac
3448if test "x$ac_cv_prog_cc_c89" != xno; then :
3449
3450fi
3451
3452ac_ext=c
3453ac_cpp='$CPP $CPPFLAGS'
3454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457
3458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3459$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3460if ${ac_cv_prog_cc_c99+:} false; then :
3461  $as_echo_n "(cached) " >&6
3462else
3463  ac_cv_prog_cc_c99=no
3464ac_save_CC=$CC
3465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466/* end confdefs.h.  */
3467#include <stdarg.h>
3468#include <stdbool.h>
3469#include <stdlib.h>
3470#include <wchar.h>
3471#include <stdio.h>
3472
3473// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3474#define debug(...) fprintf (stderr, __VA_ARGS__)
3475#define showlist(...) puts (#__VA_ARGS__)
3476#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3477static void
3478test_varargs_macros (void)
3479{
3480  int x = 1234;
3481  int y = 5678;
3482  debug ("Flag");
3483  debug ("X = %d\n", x);
3484  showlist (The first, second, and third items.);
3485  report (x>y, "x is %d but y is %d", x, y);
3486}
3487
3488// Check long long types.
3489#define BIG64 18446744073709551615ull
3490#define BIG32 4294967295ul
3491#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3492#if !BIG_OK
3493  your preprocessor is broken;
3494#endif
3495#if BIG_OK
3496#else
3497  your preprocessor is broken;
3498#endif
3499static long long int bignum = -9223372036854775807LL;
3500static unsigned long long int ubignum = BIG64;
3501
3502struct incomplete_array
3503{
3504  int datasize;
3505  double data[];
3506};
3507
3508struct named_init {
3509  int number;
3510  const wchar_t *name;
3511  double average;
3512};
3513
3514typedef const char *ccp;
3515
3516static inline int
3517test_restrict (ccp restrict text)
3518{
3519  // See if C++-style comments work.
3520  // Iterate through items via the restricted pointer.
3521  // Also check for declarations in for loops.
3522  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3523    continue;
3524  return 0;
3525}
3526
3527// Check varargs and va_copy.
3528static void
3529test_varargs (const char *format, ...)
3530{
3531  va_list args;
3532  va_start (args, format);
3533  va_list args_copy;
3534  va_copy (args_copy, args);
3535
3536  const char *str;
3537  int number;
3538  float fnumber;
3539
3540  while (*format)
3541    {
3542      switch (*format++)
3543	{
3544	case 's': // string
3545	  str = va_arg (args_copy, const char *);
3546	  break;
3547	case 'd': // int
3548	  number = va_arg (args_copy, int);
3549	  break;
3550	case 'f': // float
3551	  fnumber = va_arg (args_copy, double);
3552	  break;
3553	default:
3554	  break;
3555	}
3556    }
3557  va_end (args_copy);
3558  va_end (args);
3559}
3560
3561int
3562main ()
3563{
3564
3565  // Check bool.
3566  _Bool success = false;
3567
3568  // Check restrict.
3569  if (test_restrict ("String literal") == 0)
3570    success = true;
3571  char *restrict newvar = "Another string";
3572
3573  // Check varargs.
3574  test_varargs ("s, d' f .", "string", 65, 34.234);
3575  test_varargs_macros ();
3576
3577  // Check flexible array members.
3578  struct incomplete_array *ia =
3579    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3580  ia->datasize = 10;
3581  for (int i = 0; i < ia->datasize; ++i)
3582    ia->data[i] = i * 1.234;
3583
3584  // Check named initializers.
3585  struct named_init ni = {
3586    .number = 34,
3587    .name = L"Test wide string",
3588    .average = 543.34343,
3589  };
3590
3591  ni.number = 58;
3592
3593  int dynamic_array[ni.number];
3594  dynamic_array[ni.number - 1] = 543;
3595
3596  // work around unused variable warnings
3597  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3598	  || dynamic_array[ni.number - 1] != 543);
3599
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3605do
3606  CC="$ac_save_CC $ac_arg"
3607  if ac_fn_c_try_compile "$LINENO"; then :
3608  ac_cv_prog_cc_c99=$ac_arg
3609fi
3610rm -f core conftest.err conftest.$ac_objext
3611  test "x$ac_cv_prog_cc_c99" != "xno" && break
3612done
3613rm -f conftest.$ac_ext
3614CC=$ac_save_CC
3615
3616fi
3617# AC_CACHE_VAL
3618case "x$ac_cv_prog_cc_c99" in
3619  x)
3620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3621$as_echo "none needed" >&6; } ;;
3622  xno)
3623    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3624$as_echo "unsupported" >&6; } ;;
3625  *)
3626    CC="$CC $ac_cv_prog_cc_c99"
3627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3628$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3629esac
3630if test "x$ac_cv_prog_cc_c99" != xno; then :
3631
3632fi
3633
3634		ac_ext=c
3635ac_cpp='$CPP $CPPFLAGS'
3636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3640$as_echo_n "checking how to run the C preprocessor... " >&6; }
3641# On Suns, sometimes $CPP names a directory.
3642if test -n "$CPP" && test -d "$CPP"; then
3643  CPP=
3644fi
3645if test -z "$CPP"; then
3646  if ${ac_cv_prog_CPP+:} false; then :
3647  $as_echo_n "(cached) " >&6
3648else
3649      # Double quotes because CPP needs to be expanded
3650    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3651    do
3652      ac_preproc_ok=false
3653for ac_c_preproc_warn_flag in '' yes
3654do
3655  # Use a header file that comes with gcc, so configuring glibc
3656  # with a fresh cross-compiler works.
3657  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658  # <limits.h> exists even on freestanding compilers.
3659  # On the NeXT, cc -E runs the code through the compiler's parser,
3660  # not just through cpp. "Syntax error" is here to catch this case.
3661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662/* end confdefs.h.  */
3663#ifdef __STDC__
3664# include <limits.h>
3665#else
3666# include <assert.h>
3667#endif
3668		     Syntax error
3669_ACEOF
3670if ac_fn_c_try_cpp "$LINENO"; then :
3671
3672else
3673  # Broken: fails on valid input.
3674continue
3675fi
3676rm -f conftest.err conftest.i conftest.$ac_ext
3677
3678  # OK, works on sane cases.  Now check whether nonexistent headers
3679  # can be detected and how.
3680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h.  */
3682#include <ac_nonexistent.h>
3683_ACEOF
3684if ac_fn_c_try_cpp "$LINENO"; then :
3685  # Broken: success on invalid input.
3686continue
3687else
3688  # Passes both tests.
3689ac_preproc_ok=:
3690break
3691fi
3692rm -f conftest.err conftest.i conftest.$ac_ext
3693
3694done
3695# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3696rm -f conftest.i conftest.err conftest.$ac_ext
3697if $ac_preproc_ok; then :
3698  break
3699fi
3700
3701    done
3702    ac_cv_prog_CPP=$CPP
3703
3704fi
3705  CPP=$ac_cv_prog_CPP
3706else
3707  ac_cv_prog_CPP=$CPP
3708fi
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3710$as_echo "$CPP" >&6; }
3711ac_preproc_ok=false
3712for ac_c_preproc_warn_flag in '' yes
3713do
3714  # Use a header file that comes with gcc, so configuring glibc
3715  # with a fresh cross-compiler works.
3716  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3717  # <limits.h> exists even on freestanding compilers.
3718  # On the NeXT, cc -E runs the code through the compiler's parser,
3719  # not just through cpp. "Syntax error" is here to catch this case.
3720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722#ifdef __STDC__
3723# include <limits.h>
3724#else
3725# include <assert.h>
3726#endif
3727		     Syntax error
3728_ACEOF
3729if ac_fn_c_try_cpp "$LINENO"; then :
3730
3731else
3732  # Broken: fails on valid input.
3733continue
3734fi
3735rm -f conftest.err conftest.i conftest.$ac_ext
3736
3737  # OK, works on sane cases.  Now check whether nonexistent headers
3738  # can be detected and how.
3739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h.  */
3741#include <ac_nonexistent.h>
3742_ACEOF
3743if ac_fn_c_try_cpp "$LINENO"; then :
3744  # Broken: success on invalid input.
3745continue
3746else
3747  # Passes both tests.
3748ac_preproc_ok=:
3749break
3750fi
3751rm -f conftest.err conftest.i conftest.$ac_ext
3752
3753done
3754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755rm -f conftest.i conftest.err conftest.$ac_ext
3756if $ac_preproc_ok; then :
3757
3758else
3759  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3762See \`config.log' for more details" "$LINENO" 5; }
3763fi
3764
3765ac_ext=c
3766ac_cpp='$CPP $CPPFLAGS'
3767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770
3771
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3773$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3774if ${ac_cv_path_GREP+:} false; then :
3775  $as_echo_n "(cached) " >&6
3776else
3777  if test -z "$GREP"; then
3778  ac_path_GREP_found=false
3779  # Loop through the user's path and test for each of PROGNAME-LIST
3780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3782do
3783  IFS=$as_save_IFS
3784  test -z "$as_dir" && as_dir=.
3785    for ac_prog in grep ggrep; do
3786    for ac_exec_ext in '' $ac_executable_extensions; do
3787      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3788      as_fn_executable_p "$ac_path_GREP" || continue
3789# Check for GNU ac_path_GREP and select it if it is found.
3790  # Check for GNU $ac_path_GREP
3791case `"$ac_path_GREP" --version 2>&1` in
3792*GNU*)
3793  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3794*)
3795  ac_count=0
3796  $as_echo_n 0123456789 >"conftest.in"
3797  while :
3798  do
3799    cat "conftest.in" "conftest.in" >"conftest.tmp"
3800    mv "conftest.tmp" "conftest.in"
3801    cp "conftest.in" "conftest.nl"
3802    $as_echo 'GREP' >> "conftest.nl"
3803    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3804    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3805    as_fn_arith $ac_count + 1 && ac_count=$as_val
3806    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3807      # Best one so far, save it but keep looking for a better one
3808      ac_cv_path_GREP="$ac_path_GREP"
3809      ac_path_GREP_max=$ac_count
3810    fi
3811    # 10*(2^10) chars as input seems more than enough
3812    test $ac_count -gt 10 && break
3813  done
3814  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3815esac
3816
3817      $ac_path_GREP_found && break 3
3818    done
3819  done
3820  done
3821IFS=$as_save_IFS
3822  if test -z "$ac_cv_path_GREP"; then
3823    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3824  fi
3825else
3826  ac_cv_path_GREP=$GREP
3827fi
3828
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3831$as_echo "$ac_cv_path_GREP" >&6; }
3832 GREP="$ac_cv_path_GREP"
3833
3834
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3836$as_echo_n "checking for egrep... " >&6; }
3837if ${ac_cv_path_EGREP+:} false; then :
3838  $as_echo_n "(cached) " >&6
3839else
3840  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3841   then ac_cv_path_EGREP="$GREP -E"
3842   else
3843     if test -z "$EGREP"; then
3844  ac_path_EGREP_found=false
3845  # Loop through the user's path and test for each of PROGNAME-LIST
3846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3848do
3849  IFS=$as_save_IFS
3850  test -z "$as_dir" && as_dir=.
3851    for ac_prog in egrep; do
3852    for ac_exec_ext in '' $ac_executable_extensions; do
3853      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3854      as_fn_executable_p "$ac_path_EGREP" || continue
3855# Check for GNU ac_path_EGREP and select it if it is found.
3856  # Check for GNU $ac_path_EGREP
3857case `"$ac_path_EGREP" --version 2>&1` in
3858*GNU*)
3859  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3860*)
3861  ac_count=0
3862  $as_echo_n 0123456789 >"conftest.in"
3863  while :
3864  do
3865    cat "conftest.in" "conftest.in" >"conftest.tmp"
3866    mv "conftest.tmp" "conftest.in"
3867    cp "conftest.in" "conftest.nl"
3868    $as_echo 'EGREP' >> "conftest.nl"
3869    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3870    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3871    as_fn_arith $ac_count + 1 && ac_count=$as_val
3872    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3873      # Best one so far, save it but keep looking for a better one
3874      ac_cv_path_EGREP="$ac_path_EGREP"
3875      ac_path_EGREP_max=$ac_count
3876    fi
3877    # 10*(2^10) chars as input seems more than enough
3878    test $ac_count -gt 10 && break
3879  done
3880  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3881esac
3882
3883      $ac_path_EGREP_found && break 3
3884    done
3885  done
3886  done
3887IFS=$as_save_IFS
3888  if test -z "$ac_cv_path_EGREP"; then
3889    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3890  fi
3891else
3892  ac_cv_path_EGREP=$EGREP
3893fi
3894
3895   fi
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3898$as_echo "$ac_cv_path_EGREP" >&6; }
3899 EGREP="$ac_cv_path_EGREP"
3900
3901
3902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903/* end confdefs.h.  */
3904
3905_ACEOF
3906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907  $EGREP "" >/dev/null 2>&1; then :
3908
3909fi
3910rm -f conftest*
3911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3912$as_echo_n "checking for fgrep... " >&6; }
3913if ${ac_cv_path_FGREP+:} false; then :
3914  $as_echo_n "(cached) " >&6
3915else
3916  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3917   then ac_cv_path_FGREP="$GREP -F"
3918   else
3919     if test -z "$FGREP"; then
3920  ac_path_FGREP_found=false
3921  # Loop through the user's path and test for each of PROGNAME-LIST
3922  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3924do
3925  IFS=$as_save_IFS
3926  test -z "$as_dir" && as_dir=.
3927    for ac_prog in fgrep; do
3928    for ac_exec_ext in '' $ac_executable_extensions; do
3929      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3930      as_fn_executable_p "$ac_path_FGREP" || continue
3931# Check for GNU ac_path_FGREP and select it if it is found.
3932  # Check for GNU $ac_path_FGREP
3933case `"$ac_path_FGREP" --version 2>&1` in
3934*GNU*)
3935  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3936*)
3937  ac_count=0
3938  $as_echo_n 0123456789 >"conftest.in"
3939  while :
3940  do
3941    cat "conftest.in" "conftest.in" >"conftest.tmp"
3942    mv "conftest.tmp" "conftest.in"
3943    cp "conftest.in" "conftest.nl"
3944    $as_echo 'FGREP' >> "conftest.nl"
3945    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3946    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3947    as_fn_arith $ac_count + 1 && ac_count=$as_val
3948    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3949      # Best one so far, save it but keep looking for a better one
3950      ac_cv_path_FGREP="$ac_path_FGREP"
3951      ac_path_FGREP_max=$ac_count
3952    fi
3953    # 10*(2^10) chars as input seems more than enough
3954    test $ac_count -gt 10 && break
3955  done
3956  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3957esac
3958
3959      $ac_path_FGREP_found && break 3
3960    done
3961  done
3962  done
3963IFS=$as_save_IFS
3964  if test -z "$ac_cv_path_FGREP"; then
3965    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3966  fi
3967else
3968  ac_cv_path_FGREP=$FGREP
3969fi
3970
3971   fi
3972fi
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3974$as_echo "$ac_cv_path_FGREP" >&6; }
3975 FGREP="$ac_cv_path_FGREP"
3976
3977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3978$as_echo_n "checking for library containing strerror... " >&6; }
3979if ${ac_cv_search_strerror+:} false; then :
3980  $as_echo_n "(cached) " >&6
3981else
3982  ac_func_search_save_LIBS=$LIBS
3983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h.  */
3985
3986/* Override any GCC internal prototype to avoid an error.
3987   Use char because int might match the return type of a GCC
3988   builtin and then its argument prototype would still apply.  */
3989#ifdef __cplusplus
3990extern "C"
3991#endif
3992char strerror ();
3993int
3994main ()
3995{
3996return strerror ();
3997  ;
3998  return 0;
3999}
4000_ACEOF
4001for ac_lib in '' cposix; do
4002  if test -z "$ac_lib"; then
4003    ac_res="none required"
4004  else
4005    ac_res=-l$ac_lib
4006    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4007  fi
4008  if ac_fn_c_try_link "$LINENO"; then :
4009  ac_cv_search_strerror=$ac_res
4010fi
4011rm -f core conftest.err conftest.$ac_objext \
4012    conftest$ac_exeext
4013  if ${ac_cv_search_strerror+:} false; then :
4014  break
4015fi
4016done
4017if ${ac_cv_search_strerror+:} false; then :
4018
4019else
4020  ac_cv_search_strerror=no
4021fi
4022rm conftest.$ac_ext
4023LIBS=$ac_func_search_save_LIBS
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4026$as_echo "$ac_cv_search_strerror" >&6; }
4027ac_res=$ac_cv_search_strerror
4028if test "$ac_res" != no; then :
4029  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4030
4031fi
4032		for ac_prog in gawk mawk nawk awk
4033do
4034  # Extract the first word of "$ac_prog", so it can be a program name with args.
4035set dummy $ac_prog; ac_word=$2
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037$as_echo_n "checking for $ac_word... " >&6; }
4038if ${ac_cv_prog_AWK+:} false; then :
4039  $as_echo_n "(cached) " >&6
4040else
4041  if test -n "$AWK"; then
4042  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4043else
4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH
4046do
4047  IFS=$as_save_IFS
4048  test -z "$as_dir" && as_dir=.
4049    for ac_exec_ext in '' $ac_executable_extensions; do
4050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051    ac_cv_prog_AWK="$ac_prog"
4052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053    break 2
4054  fi
4055done
4056  done
4057IFS=$as_save_IFS
4058
4059fi
4060fi
4061AWK=$ac_cv_prog_AWK
4062if test -n "$AWK"; then
4063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4064$as_echo "$AWK" >&6; }
4065else
4066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067$as_echo "no" >&6; }
4068fi
4069
4070
4071  test -n "$AWK" && break
4072done
4073
4074# Extract the first word of "strip", so it can be a program name with args.
4075set dummy strip; ac_word=$2
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077$as_echo_n "checking for $ac_word... " >&6; }
4078if ${ac_cv_prog_STRIP+:} false; then :
4079  $as_echo_n "(cached) " >&6
4080else
4081  if test -n "$STRIP"; then
4082  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4083else
4084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085for as_dir in $PATH
4086do
4087  IFS=$as_save_IFS
4088  test -z "$as_dir" && as_dir=.
4089    for ac_exec_ext in '' $ac_executable_extensions; do
4090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091    ac_cv_prog_STRIP="strip"
4092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093    break 2
4094  fi
4095done
4096  done
4097IFS=$as_save_IFS
4098
4099  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4100fi
4101fi
4102STRIP=$ac_cv_prog_STRIP
4103if test -n "$STRIP"; then
4104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4105$as_echo "$STRIP" >&6; }
4106else
4107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108$as_echo "no" >&6; }
4109fi
4110
4111
4112
4113
4114
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4116$as_echo_n "checking for ANSI C header files... " >&6; }
4117if ${ac_cv_header_stdc+:} false; then :
4118  $as_echo_n "(cached) " >&6
4119else
4120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h.  */
4122#include <stdlib.h>
4123#include <stdarg.h>
4124#include <string.h>
4125#include <float.h>
4126
4127int
4128main ()
4129{
4130
4131  ;
4132  return 0;
4133}
4134_ACEOF
4135if ac_fn_c_try_compile "$LINENO"; then :
4136  ac_cv_header_stdc=yes
4137else
4138  ac_cv_header_stdc=no
4139fi
4140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141
4142if test $ac_cv_header_stdc = yes; then
4143  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h.  */
4146#include <string.h>
4147
4148_ACEOF
4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150  $EGREP "memchr" >/dev/null 2>&1; then :
4151
4152else
4153  ac_cv_header_stdc=no
4154fi
4155rm -f conftest*
4156
4157fi
4158
4159if test $ac_cv_header_stdc = yes; then
4160  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163#include <stdlib.h>
4164
4165_ACEOF
4166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167  $EGREP "free" >/dev/null 2>&1; then :
4168
4169else
4170  ac_cv_header_stdc=no
4171fi
4172rm -f conftest*
4173
4174fi
4175
4176if test $ac_cv_header_stdc = yes; then
4177  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4178  if test "$cross_compiling" = yes; then :
4179  :
4180else
4181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182/* end confdefs.h.  */
4183#include <ctype.h>
4184#include <stdlib.h>
4185#if ((' ' & 0x0FF) == 0x020)
4186# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4187# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4188#else
4189# define ISLOWER(c) \
4190		   (('a' <= (c) && (c) <= 'i') \
4191		     || ('j' <= (c) && (c) <= 'r') \
4192		     || ('s' <= (c) && (c) <= 'z'))
4193# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4194#endif
4195
4196#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4197int
4198main ()
4199{
4200  int i;
4201  for (i = 0; i < 256; i++)
4202    if (XOR (islower (i), ISLOWER (i))
4203	|| toupper (i) != TOUPPER (i))
4204      return 2;
4205  return 0;
4206}
4207_ACEOF
4208if ac_fn_c_try_run "$LINENO"; then :
4209
4210else
4211  ac_cv_header_stdc=no
4212fi
4213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4214  conftest.$ac_objext conftest.beam conftest.$ac_ext
4215fi
4216
4217fi
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4220$as_echo "$ac_cv_header_stdc" >&6; }
4221if test $ac_cv_header_stdc = yes; then
4222
4223$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4224
4225fi
4226
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4228$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4229if ${ac_cv_header_sys_wait_h+:} false; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234#include <sys/types.h>
4235#include <sys/wait.h>
4236#ifndef WEXITSTATUS
4237# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4238#endif
4239#ifndef WIFEXITED
4240# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4241#endif
4242
4243int
4244main ()
4245{
4246  int s;
4247  wait (&s);
4248  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4249  ;
4250  return 0;
4251}
4252_ACEOF
4253if ac_fn_c_try_compile "$LINENO"; then :
4254  ac_cv_header_sys_wait_h=yes
4255else
4256  ac_cv_header_sys_wait_h=no
4257fi
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259fi
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4261$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4262if test $ac_cv_header_sys_wait_h = yes; then
4263
4264$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4265
4266fi
4267
4268
4269if test x"$ac_cv_prog_cc_c99" != xno; then
4270
4271
4272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4273$as_echo_n "checking for unsigned long long int... " >&6; }
4274if ${ac_cv_type_unsigned_long_long_int+:} false; then :
4275  $as_echo_n "(cached) " >&6
4276else
4277  ac_cv_type_unsigned_long_long_int=yes
4278     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4279       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280/* end confdefs.h.  */
4281
4282  /* For now, do not test the preprocessor; as of 2007 there are too many
4283	 implementations with broken preprocessors.  Perhaps this can
4284	 be revisited in 2012.  In the meantime, code should not expect
4285	 #if to work with literals wider than 32 bits.  */
4286      /* Test literals.  */
4287      long long int ll = 9223372036854775807ll;
4288      long long int nll = -9223372036854775807LL;
4289      unsigned long long int ull = 18446744073709551615ULL;
4290      /* Test constant expressions.   */
4291      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4292		     ? 1 : -1)];
4293      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4294		     ? 1 : -1)];
4295      int i = 63;
4296int
4297main ()
4298{
4299/* Test availability of runtime routines for shift and division.  */
4300      long long int llmax = 9223372036854775807ll;
4301      unsigned long long int ullmax = 18446744073709551615ull;
4302      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4303	      | (llmax / ll) | (llmax % ll)
4304	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4305	      | (ullmax / ull) | (ullmax % ull));
4306  ;
4307  return 0;
4308}
4309
4310_ACEOF
4311if ac_fn_c_try_link "$LINENO"; then :
4312
4313else
4314  ac_cv_type_unsigned_long_long_int=no
4315fi
4316rm -f core conftest.err conftest.$ac_objext \
4317    conftest$ac_exeext conftest.$ac_ext
4318     fi
4319fi
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4321$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4322  if test $ac_cv_type_unsigned_long_long_int = yes; then
4323
4324$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4325
4326  fi
4327
4328
4329
4330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4331$as_echo_n "checking for long long int... " >&6; }
4332if ${ac_cv_type_long_long_int+:} false; then :
4333  $as_echo_n "(cached) " >&6
4334else
4335  ac_cv_type_long_long_int=yes
4336      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4337	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
4338	if test $ac_cv_type_long_long_int = yes; then
4339	  	  	  	  if test "$cross_compiling" = yes; then :
4340  :
4341else
4342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344#include <limits.h>
4345		 #ifndef LLONG_MAX
4346		 # define HALF \
4347			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4348		 # define LLONG_MAX (HALF - 1 + HALF)
4349		 #endif
4350int
4351main ()
4352{
4353long long int n = 1;
4354		 int i;
4355		 for (i = 0; ; i++)
4356		   {
4357		     long long int m = n << i;
4358		     if (m >> i != n)
4359		       return 1;
4360		     if (LLONG_MAX / 2 < m)
4361		       break;
4362		   }
4363		 return 0;
4364  ;
4365  return 0;
4366}
4367_ACEOF
4368if ac_fn_c_try_run "$LINENO"; then :
4369
4370else
4371  ac_cv_type_long_long_int=no
4372fi
4373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4374  conftest.$ac_objext conftest.beam conftest.$ac_ext
4375fi
4376
4377	fi
4378      fi
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4381$as_echo "$ac_cv_type_long_long_int" >&6; }
4382  if test $ac_cv_type_long_long_int = yes; then
4383
4384$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4385
4386  fi
4387
4388  if test "$ac_cv_type_long_long_int" = no; then
4389    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4391as_fn_error $? "Compiler does not support long long int
4392See \`config.log' for more details" "$LINENO" 5; }
4393  fi
4394
4395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5
4396$as_echo_n "checking if the compiler supports trailing commas... " >&6; }
4397  trailing_commas=no
4398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399/* end confdefs.h.  */
4400
4401int
4402main ()
4403{
4404
4405    enum {
4406      one,
4407    };
4408  ;
4409  return 0;
4410}
4411_ACEOF
4412if ac_fn_c_try_compile "$LINENO"; then :
4413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4414$as_echo "yes" >&6; }; trailing_commas=yes
4415else
4416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417$as_echo "no" >&6; }
4418fi
4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420  if test "$trailing_commas" = no; then
4421    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4423as_fn_error $? "Compiler does not support trailing comma in enum
4424See \`config.log' for more details" "$LINENO" 5; }
4425  fi
4426
4427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5
4428$as_echo_n "checking if the compiler supports C++ comments... " >&6; }
4429  slash_comments=no
4430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431/* end confdefs.h.  */
4432
4433int
4434main ()
4435{
4436// C++ comments?
4437  ;
4438  return 0;
4439}
4440_ACEOF
4441if ac_fn_c_try_compile "$LINENO"; then :
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443$as_echo "yes" >&6; }; slash_comments=yes
4444else
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
4448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449  if test "$slash_comments" = no; then
4450    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4452as_fn_error $? "Compiler does not support C++ comments
4453See \`config.log' for more details" "$LINENO" 5; }
4454  fi
4455fi
4456
4457if test -n "$SOURCE_DATE_EPOCH"; then
4458  DATE_FMT="%b %d %Y %H:%M:%S"
4459  BUILD_DATE=$(LC_ALL=C date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u "+$DATE_FMT")
4460  cat >>confdefs.h <<_ACEOF
4461#define BUILD_DATE "$BUILD_DATE"
4462_ACEOF
4463
4464  BUILD_DATE_MSG=-"echo -e '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nNOTE: build date/time is fixed: $BUILD_DATE\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='"
4465
4466fi
4467
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4470$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4471# Check whether --enable-fail_if_missing was given.
4472if test "${enable_fail_if_missing+set}" = set; then :
4473  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4474else
4475  fail_if_missing="no"
4476fi
4477
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4479$as_echo "$fail_if_missing" >&6; }
4480
4481with_x_arg="$with_x"
4482
4483if test -z "$CFLAGS"; then
4484  CFLAGS="-O"
4485  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4486fi
4487if test "$GCC" = yes; then
4488    gccversion=`$CC -dumpversion`
4489  if test "x$gccversion" = "x"; then
4490        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4491  fi
4492    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4493    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4494    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4495  else
4496    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4497      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4498      CFLAGS="$CFLAGS -fno-strength-reduce"
4499    fi
4500  fi
4501fi
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4504$as_echo_n "checking for clang version... " >&6; }
4505CLANG_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'`
4506if test x"$CLANG_VERSION_STRING" != x"" ; then
4507  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4508  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4509  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4510  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4512$as_echo "$CLANG_VERSION" >&6; }
4513          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4514$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4515  if test "$CLANG_VERSION" -ge 500002075 ; then
4516    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517$as_echo "no" >&6; }
4518    CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4519  else
4520    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4521$as_echo "yes" >&6; }
4522  fi
4523else
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4525$as_echo "N/A" >&6; }
4526fi
4527
4528CROSS_COMPILING=
4529if test "$cross_compiling" = yes; then
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4531$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4532  CROSS_COMPILING=1
4533fi
4534
4535
4536test "$GCC" = yes && CPP_MM=M;
4537
4538if test -f ./toolcheck; then
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4540$as_echo "$as_me: checking for buggy tools..." >&6;}
4541  sh ./toolcheck 1>&6
4542fi
4543
4544OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
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               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
4749      with_x=no
4750     fi
4751  fi
4752
4753        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4754    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4755  fi
4756
4757else
4758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759$as_echo "no" >&6; }
4760fi
4761
4762# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4763for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4764		  inttypes.h stdint.h unistd.h
4765do :
4766  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4767ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4768"
4769if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4770  cat >>confdefs.h <<_ACEOF
4771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4772_ACEOF
4773
4774fi
4775
4776done
4777
4778
4779for ac_header in AvailabilityMacros.h
4780do :
4781  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4782if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4783  cat >>confdefs.h <<_ACEOF
4784#define HAVE_AVAILABILITYMACROS_H 1
4785_ACEOF
4786
4787fi
4788
4789done
4790
4791
4792
4793
4794
4795if test "$cross_compiling" = no; then
4796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4797$as_echo_n "checking --with-local-dir argument... " >&6; }
4798  have_local_include=''
4799  have_local_lib=''
4800
4801# Check whether --with-local-dir was given.
4802if test "${with_local_dir+set}" = set; then :
4803  withval=$with_local_dir;
4804    local_dir="$withval"
4805    case "$withval" in
4806    */*) ;;
4807    no)
4808      # avoid adding local dir to LDFLAGS and CPPFLAGS
4809      have_local_include=yes
4810      have_local_lib=yes
4811      ;;
4812    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4813    esac
4814	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4815$as_echo "$local_dir" >&6; }
4816
4817else
4818
4819    local_dir=/usr/local
4820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4821$as_echo "Defaulting to $local_dir" >&6; }
4822
4823fi
4824
4825  if test "$GCC" = yes -a "$local_dir" != no; then
4826    echo 'void f(){}' > conftest.c
4827        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4828    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4829    rm -f conftest.c conftest.o
4830  fi
4831  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4832    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4833    if test "$tt" = "$LDFLAGS"; then
4834      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4835    fi
4836  fi
4837  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4838    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4839    if test "$tt" = "$CPPFLAGS"; then
4840      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4841    fi
4842  fi
4843fi
4844
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4846$as_echo_n "checking --with-vim-name argument... " >&6; }
4847
4848# Check whether --with-vim-name was given.
4849if test "${with_vim_name+set}" = set; then :
4850  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4851$as_echo "$VIMNAME" >&6; }
4852else
4853  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4854$as_echo "Defaulting to $VIMNAME" >&6; }
4855fi
4856
4857
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4859$as_echo_n "checking --with-ex-name argument... " >&6; }
4860
4861# Check whether --with-ex-name was given.
4862if test "${with_ex_name+set}" = set; then :
4863  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4864$as_echo "$EXNAME" >&6; }
4865else
4866  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4867$as_echo "Defaulting to ex" >&6; }
4868fi
4869
4870
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4872$as_echo_n "checking --with-view-name argument... " >&6; }
4873
4874# Check whether --with-view-name was given.
4875if test "${with_view_name+set}" = set; then :
4876  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4877$as_echo "$VIEWNAME" >&6; }
4878else
4879  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4880$as_echo "Defaulting to view" >&6; }
4881fi
4882
4883
4884
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4886$as_echo_n "checking --with-global-runtime argument... " >&6; }
4887
4888# Check whether --with-global-runtime was given.
4889if test "${with_global_runtime+set}" = set; then :
4890  withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4891$as_echo "$withval" >&6; }
4892else
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895fi
4896
4897
4898if test "X$RUNTIME_GLOBAL" != "X"; then
4899  RUNTIME_GLOBAL_AFTER=$(printf -- "$RUNTIME_GLOBAL\\n" | $AWK -F, 'BEGIN { comma=0 } { for (i = NF; i > 0; i--) { if (comma) { printf ",%s/after", $i } else { printf "%s/after", $i; comma=1 } } } END { printf "\n" }')
4900  cat >>confdefs.h <<_ACEOF
4901#define RUNTIME_GLOBAL "$RUNTIME_GLOBAL"
4902_ACEOF
4903
4904  cat >>confdefs.h <<_ACEOF
4905#define RUNTIME_GLOBAL_AFTER "$RUNTIME_GLOBAL_AFTER"
4906_ACEOF
4907
4908fi
4909
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4911$as_echo_n "checking --with-modified-by argument... " >&6; }
4912
4913# Check whether --with-modified-by was given.
4914if test "${with_modified_by+set}" = set; then :
4915  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4916$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4917#define MODIFIED_BY "$withval"
4918_ACEOF
4919
4920else
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
4923fi
4924
4925
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4927$as_echo_n "checking if character set is EBCDIC... " >&6; }
4928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h.  */
4930
4931int
4932main ()
4933{
4934 /* TryCompile function for CharSet.
4935   Treat any failure as ASCII for compatibility with existing art.
4936   Use compile-time rather than run-time tests for cross-compiler
4937   tolerance.  */
4938#if '0'!=240
4939make an error "Character set is not EBCDIC"
4940#endif
4941  ;
4942  return 0;
4943}
4944_ACEOF
4945if ac_fn_c_try_compile "$LINENO"; then :
4946   # TryCompile action if true
4947cf_cv_ebcdic=yes
4948else
4949   # TryCompile action if false
4950cf_cv_ebcdic=no
4951fi
4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953# end of TryCompile ])
4954# end of CacheVal CvEbcdic
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4956$as_echo "$cf_cv_ebcdic" >&6; }
4957case "$cf_cv_ebcdic" in  #(vi
4958    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4959
4960		line_break='"\\n"'
4961		;;
4962    *)		line_break='"\\012"';;
4963esac
4964
4965
4966if test "$cf_cv_ebcdic" = "yes"; then
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4968$as_echo_n "checking for z/OS Unix... " >&6; }
4969case `uname` in
4970    OS/390)	zOSUnix="yes";
4971										if test "$CC" = "cc"; then
4972		  ccm="$_CC_CCMODE"
4973		  ccn="CC"
4974		else
4975		  if test "$CC" = "c89"; then
4976		    ccm="$_CC_C89MODE"
4977		    ccn="C89"
4978		  else
4979		    ccm=1
4980		  fi
4981		fi
4982		if test "$ccm" != "1"; then
4983		  echo ""
4984		  echo "------------------------------------------"
4985		  echo " On z/OS Unix, the environment variable"
4986		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4987		  echo " Do:"
4988		  echo "    export _CC_${ccn}MODE=1"
4989		  echo " and then call configure again."
4990		  echo "------------------------------------------"
4991		  exit 1
4992		fi
4993		# Set CFLAGS for configure process.
4994		# This will be reset later for config.mk.
4995		# Use haltonmsg to force error for missing H files.
4996		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
4997		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999$as_echo "yes" >&6; }
5000		;;
5001    *)		zOSUnix="no";
5002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003$as_echo "no" >&6; }
5004		;;
5005esac
5006fi
5007
5008if test "$zOSUnix" = "yes"; then
5009    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
5010else
5011    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
5012fi
5013
5014
5015
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
5017$as_echo_n "checking --disable-smack argument... " >&6; }
5018# Check whether --enable-smack was given.
5019if test "${enable_smack+set}" = set; then :
5020  enableval=$enable_smack;
5021else
5022  enable_smack="yes"
5023fi
5024
5025if test "$enable_smack" = "yes"; then
5026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027$as_echo "no" >&6; }
5028  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
5029if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
5030  true
5031else
5032  enable_smack="no"
5033fi
5034
5035
5036else
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5038$as_echo "yes" >&6; }
5039fi
5040if test "$enable_smack" = "yes"; then
5041  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
5042if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
5043  true
5044else
5045  enable_smack="no"
5046fi
5047
5048
5049fi
5050if test "$enable_smack" = "yes"; then
5051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
5052$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
5053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054/* end confdefs.h.  */
5055#include <linux/xattr.h>
5056_ACEOF
5057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5058  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5060$as_echo "yes" >&6; }
5061else
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }; enable_smack="no"
5064fi
5065rm -f conftest*
5066
5067fi
5068if test "$enable_smack" = "yes"; then
5069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
5070$as_echo_n "checking for setxattr in -lattr... " >&6; }
5071if ${ac_cv_lib_attr_setxattr+:} false; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074  ac_check_lib_save_LIBS=$LIBS
5075LIBS="-lattr  $LIBS"
5076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078
5079/* Override any GCC internal prototype to avoid an error.
5080   Use char because int might match the return type of a GCC
5081   builtin and then its argument prototype would still apply.  */
5082#ifdef __cplusplus
5083extern "C"
5084#endif
5085char setxattr ();
5086int
5087main ()
5088{
5089return setxattr ();
5090  ;
5091  return 0;
5092}
5093_ACEOF
5094if ac_fn_c_try_link "$LINENO"; then :
5095  ac_cv_lib_attr_setxattr=yes
5096else
5097  ac_cv_lib_attr_setxattr=no
5098fi
5099rm -f core conftest.err conftest.$ac_objext \
5100    conftest$ac_exeext conftest.$ac_ext
5101LIBS=$ac_check_lib_save_LIBS
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
5104$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
5105if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
5106  LIBS="$LIBS -lattr"
5107	   found_smack="yes"
5108	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
5109
5110fi
5111
5112fi
5113
5114if test "x$found_smack" = "x"; then
5115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
5116$as_echo_n "checking --disable-selinux argument... " >&6; }
5117  # Check whether --enable-selinux was given.
5118if test "${enable_selinux+set}" = set; then :
5119  enableval=$enable_selinux;
5120else
5121  enable_selinux="yes"
5122fi
5123
5124  if test "$enable_selinux" = "yes"; then
5125    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126$as_echo "no" >&6; }
5127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
5128$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
5129if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
5130  $as_echo_n "(cached) " >&6
5131else
5132  ac_check_lib_save_LIBS=$LIBS
5133LIBS="-lselinux  $LIBS"
5134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h.  */
5136
5137/* Override any GCC internal prototype to avoid an error.
5138   Use char because int might match the return type of a GCC
5139   builtin and then its argument prototype would still apply.  */
5140#ifdef __cplusplus
5141extern "C"
5142#endif
5143char is_selinux_enabled ();
5144int
5145main ()
5146{
5147return is_selinux_enabled ();
5148  ;
5149  return 0;
5150}
5151_ACEOF
5152if ac_fn_c_try_link "$LINENO"; then :
5153  ac_cv_lib_selinux_is_selinux_enabled=yes
5154else
5155  ac_cv_lib_selinux_is_selinux_enabled=no
5156fi
5157rm -f core conftest.err conftest.$ac_objext \
5158    conftest$ac_exeext conftest.$ac_ext
5159LIBS=$ac_check_lib_save_LIBS
5160fi
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
5162$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
5163if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
5164  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
5165if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
5166  LIBS="$LIBS -lselinux"
5167	    $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5168
5169fi
5170
5171
5172fi
5173
5174  else
5175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5176$as_echo "yes" >&6; }
5177  fi
5178fi
5179
5180
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
5182$as_echo_n "checking --with-features argument... " >&6; }
5183
5184# Check whether --with-features was given.
5185if test "${with_features+set}" = set; then :
5186  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
5187$as_echo "$features" >&6; }
5188else
5189  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
5190$as_echo "Defaulting to huge" >&6; }
5191fi
5192
5193
5194dovimdiff=""
5195dogvimdiff=""
5196case "$features" in
5197  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
5198 ;;
5199  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
5200 ;;
5201  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
5202 dovimdiff="installvimdiff";
5203			dogvimdiff="installgvimdiff" ;;
5204  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
5205 dovimdiff="installvimdiff";
5206			dogvimdiff="installgvimdiff" ;;
5207  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
5208 dovimdiff="installvimdiff";
5209			dogvimdiff="installgvimdiff" ;;
5210  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
5211$as_echo "Sorry, $features is not supported" >&6; } ;;
5212esac
5213
5214
5215
5216
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
5218$as_echo_n "checking --with-compiledby argument... " >&6; }
5219
5220# Check whether --with-compiledby was given.
5221if test "${with_compiledby+set}" = set; then :
5222  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5223$as_echo "$withval" >&6; }
5224else
5225  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228
5229
5230
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
5232$as_echo_n "checking --disable-xsmp argument... " >&6; }
5233# Check whether --enable-xsmp was given.
5234if test "${enable_xsmp+set}" = set; then :
5235  enableval=$enable_xsmp;
5236else
5237  enable_xsmp="yes"
5238fi
5239
5240
5241if test "$enable_xsmp" = "yes"; then
5242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
5245$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
5246  # Check whether --enable-xsmp-interact was given.
5247if test "${enable_xsmp_interact+set}" = set; then :
5248  enableval=$enable_xsmp_interact;
5249else
5250  enable_xsmp_interact="yes"
5251fi
5252
5253  if test "$enable_xsmp_interact" = "yes"; then
5254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
5257
5258  else
5259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5260$as_echo "yes" >&6; }
5261  fi
5262else
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5264$as_echo "yes" >&6; }
5265fi
5266
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
5268$as_echo_n "checking --enable-luainterp argument... " >&6; }
5269# Check whether --enable-luainterp was given.
5270if test "${enable_luainterp+set}" = set; then :
5271  enableval=$enable_luainterp;
5272else
5273  enable_luainterp="no"
5274fi
5275
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
5277$as_echo "$enable_luainterp" >&6; }
5278
5279if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
5280  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5281    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
5282  fi
5283
5284
5285
5286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
5287$as_echo_n "checking --with-lua-prefix argument... " >&6; }
5288
5289# Check whether --with-lua_prefix was given.
5290if test "${with_lua_prefix+set}" = set; then :
5291  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
5292$as_echo "$with_lua_prefix" >&6; }
5293else
5294  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
5296fi
5297
5298
5299  if test "X$with_lua_prefix" != "X"; then
5300       vi_cv_path_lua_pfx="$with_lua_prefix"
5301  else
5302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
5303$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
5304    if test "X$LUA_PREFIX" != "X"; then
5305	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
5306$as_echo "\"$LUA_PREFIX\"" >&6; }
5307	vi_cv_path_lua_pfx="$LUA_PREFIX"
5308    else
5309	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
5310$as_echo "not set, default to /usr" >&6; }
5311	vi_cv_path_lua_pfx="/usr"
5312    fi
5313  fi
5314
5315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
5316$as_echo_n "checking --with-luajit... " >&6; }
5317
5318# Check whether --with-luajit was given.
5319if test "${with_luajit+set}" = set; then :
5320  withval=$with_luajit; vi_cv_with_luajit="$withval"
5321else
5322  vi_cv_with_luajit="no"
5323fi
5324
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
5326$as_echo "$vi_cv_with_luajit" >&6; }
5327
5328  LUA_INC=
5329  if test "X$vi_cv_path_lua_pfx" != "X"; then
5330    if test "x$vi_cv_with_luajit" != "xno"; then
5331            # Extract the first word of "luajit", so it can be a program name with args.
5332set dummy luajit; ac_word=$2
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334$as_echo_n "checking for $ac_word... " >&6; }
5335if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
5336  $as_echo_n "(cached) " >&6
5337else
5338  case $vi_cv_path_luajit in
5339  [\\/]* | ?:[\\/]*)
5340  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
5341  ;;
5342  *)
5343  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346  IFS=$as_save_IFS
5347  test -z "$as_dir" && as_dir=.
5348    for ac_exec_ext in '' $ac_executable_extensions; do
5349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
5351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352    break 2
5353  fi
5354done
5355  done
5356IFS=$as_save_IFS
5357
5358  ;;
5359esac
5360fi
5361vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
5362if test -n "$vi_cv_path_luajit"; then
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
5364$as_echo "$vi_cv_path_luajit" >&6; }
5365else
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367$as_echo "no" >&6; }
5368fi
5369
5370
5371      if test "X$vi_cv_path_luajit" != "X"; then
5372		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
5373$as_echo_n "checking LuaJIT version... " >&6; }
5374if ${vi_cv_version_luajit+:} false; then :
5375  $as_echo_n "(cached) " >&6
5376else
5377   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
5378fi
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
5380$as_echo "$vi_cv_version_luajit" >&6; }
5381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
5382$as_echo_n "checking Lua version of LuaJIT... " >&6; }
5383if ${vi_cv_version_lua_luajit+:} false; then :
5384  $as_echo_n "(cached) " >&6
5385else
5386   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5389$as_echo "$vi_cv_version_lua_luajit" >&6; }
5390	vi_cv_path_lua="$vi_cv_path_luajit"
5391	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5392      fi
5393    else
5394            # Extract the first word of "lua", so it can be a program name with args.
5395set dummy lua; ac_word=$2
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
5398if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5399  $as_echo_n "(cached) " >&6
5400else
5401  case $vi_cv_path_plain_lua in
5402  [\\/]* | ?:[\\/]*)
5403  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5404  ;;
5405  *)
5406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411    for ac_exec_ext in '' $ac_executable_extensions; do
5412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415    break 2
5416  fi
5417done
5418  done
5419IFS=$as_save_IFS
5420
5421  ;;
5422esac
5423fi
5424vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5425if test -n "$vi_cv_path_plain_lua"; then
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5427$as_echo "$vi_cv_path_plain_lua" >&6; }
5428else
5429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430$as_echo "no" >&6; }
5431fi
5432
5433
5434      if test "X$vi_cv_path_plain_lua" != "X"; then
5435		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5436$as_echo_n "checking Lua version... " >&6; }
5437if ${vi_cv_version_plain_lua+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5443$as_echo "$vi_cv_version_plain_lua" >&6; }
5444      fi
5445      vi_cv_path_lua="$vi_cv_path_plain_lua"
5446      vi_cv_version_lua="$vi_cv_version_plain_lua"
5447    fi
5448    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5449      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit" >&5
5450$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5451      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5452	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5453$as_echo "yes" >&6; }
5454	LUA_INC=/luajit-$vi_cv_version_luajit
5455      fi
5456    fi
5457    if test "X$LUA_INC" = "X"; then
5458      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5459$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5460      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5461	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462$as_echo "yes" >&6; }
5463      else
5464	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465$as_echo "no" >&6; }
5466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5
5467$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5468	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5469	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470$as_echo "yes" >&6; }
5471	  LUA_INC=/lua$vi_cv_version_lua
5472	else
5473	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475
5476	  # Detect moonjit:
5477	  # https://groups.google.com/forum/#!topic/vim_use/O0vek60WuTk
5478	  lua_suf=/moonjit-2.3
5479	  inc_path="$vi_cv_path_lua_pfx/include"
5480	  for dir in "$inc_path"/moonjit-[0-9]* ; do
5481	    if test -d "$dir" ; then
5482	      lua_suf=`basename '$dir'`
5483	      lua_suf="/$lua_suf"
5484	      break
5485	    fi
5486	  done
5487	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $inc_path$lua_suf" >&5
5488$as_echo_n "checking if lua.h can be found in $inc_path$lua_suf... " >&6; }
5489	  if test -f "$inc_path$lua_suf/lua.h"; then
5490	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5491$as_echo "yes" >&6; }
5492	    LUA_INC=$lua_suf
5493	  else
5494	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495$as_echo "no" >&6; }
5496	    vi_cv_path_lua_pfx=
5497	  fi
5498	fi
5499      fi
5500    fi
5501  fi
5502
5503  if test "X$vi_cv_path_lua_pfx" != "X"; then
5504    if test "x$vi_cv_with_luajit" != "xno"; then
5505      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5506      if test "X$multiarch" != "X"; then
5507	lib_multiarch="lib/${multiarch}"
5508      else
5509	lib_multiarch="lib"
5510      fi
5511      if test "X$vi_cv_version_lua" = "X"; then
5512	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5513      else
5514	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5515      fi
5516    else
5517      if test "X$LUA_INC" != "X"; then
5518		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5519      else
5520	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5521      fi
5522    fi
5523    if test "$enable_luainterp" = "dynamic"; then
5524      lua_ok="yes"
5525    else
5526      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5527$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5528      libs_save=$LIBS
5529      LIBS="$LIBS $LUA_LIBS"
5530      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531/* end confdefs.h.  */
5532
5533int
5534main ()
5535{
5536
5537  ;
5538  return 0;
5539}
5540_ACEOF
5541if ac_fn_c_try_link "$LINENO"; then :
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543$as_echo "yes" >&6; }; lua_ok="yes"
5544else
5545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5547fi
5548rm -f core conftest.err conftest.$ac_objext \
5549    conftest$ac_exeext conftest.$ac_ext
5550      LIBS=$libs_save
5551    fi
5552    if test "x$lua_ok" = "xyes"; then
5553      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5554      LUA_SRC="if_lua.c"
5555      LUA_OBJ="objects/if_lua.o"
5556      LUA_PRO="if_lua.pro"
5557      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5558
5559    fi
5560    if test "$enable_luainterp" = "dynamic"; then
5561      if test "x$vi_cv_with_luajit" != "xno"; then
5562	luajit="jit"
5563      fi
5564      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5565	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5566      else
5567	if test "x$MACOS_X" = "xyes"; then
5568	  ext="dylib"
5569	  indexes=""
5570	else
5571	  ext="so"
5572	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5573	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5574	  if test "X$multiarch" != "X"; then
5575	    lib_multiarch="lib/${multiarch}"
5576	  fi
5577	fi
5578			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5579$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5580	for subdir in "${lib_multiarch}" lib64 lib; do
5581	  if test -z "$subdir"; then
5582	    continue
5583	  fi
5584	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5585	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5586	    for i in $indexes ""; do
5587	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5588		sover2="$i"
5589		break 3
5590	      fi
5591	    done
5592	  done
5593	  sover=""
5594	done
5595	if test "X$sover" = "X"; then
5596	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597$as_echo "no" >&6; }
5598	  lua_ok="no"
5599	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5600	else
5601	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5602$as_echo "yes" >&6; }
5603	  lua_ok="yes"
5604	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5605	fi
5606      fi
5607      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5608
5609      LUA_LIBS=""
5610      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5611    fi
5612    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5613       test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5614       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5615            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5616    fi
5617  fi
5618  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5619    as_fn_error $? "could not configure lua" "$LINENO" 5
5620  fi
5621
5622
5623
5624
5625
5626fi
5627
5628
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5630$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5631# Check whether --enable-mzschemeinterp was given.
5632if test "${enable_mzschemeinterp+set}" = set; then :
5633  enableval=$enable_mzschemeinterp;
5634else
5635  enable_mzschemeinterp="no"
5636fi
5637
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5639$as_echo "$enable_mzschemeinterp" >&6; }
5640
5641if test "$enable_mzschemeinterp" = "yes"; then
5642
5643
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5645$as_echo_n "checking --with-plthome argument... " >&6; }
5646
5647# Check whether --with-plthome was given.
5648if test "${with_plthome+set}" = set; then :
5649  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5650$as_echo "$with_plthome" >&6; }
5651else
5652  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5653$as_echo "\"no\"" >&6; }
5654fi
5655
5656
5657  if test "X$with_plthome" != "X"; then
5658       vi_cv_path_mzscheme_pfx="$with_plthome"
5659       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5660  else
5661    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5662$as_echo_n "checking PLTHOME environment var... " >&6; }
5663    if test "X$PLTHOME" != "X"; then
5664	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5665$as_echo "\"$PLTHOME\"" >&6; }
5666	vi_cv_path_mzscheme_pfx="$PLTHOME"
5667	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5668    else
5669	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5670$as_echo "not set" >&6; }
5671		# Extract the first word of "mzscheme", so it can be a program name with args.
5672set dummy mzscheme; ac_word=$2
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674$as_echo_n "checking for $ac_word... " >&6; }
5675if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5676  $as_echo_n "(cached) " >&6
5677else
5678  case $vi_cv_path_mzscheme in
5679  [\\/]* | ?:[\\/]*)
5680  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5681  ;;
5682  *)
5683  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686  IFS=$as_save_IFS
5687  test -z "$as_dir" && as_dir=.
5688    for ac_exec_ext in '' $ac_executable_extensions; do
5689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692    break 2
5693  fi
5694done
5695  done
5696IFS=$as_save_IFS
5697
5698  ;;
5699esac
5700fi
5701vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5702if test -n "$vi_cv_path_mzscheme"; then
5703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5704$as_echo "$vi_cv_path_mzscheme" >&6; }
5705else
5706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707$as_echo "no" >&6; }
5708fi
5709
5710
5711
5712			if test "X$vi_cv_path_mzscheme" != "X"; then
5713	  lsout=`ls -l $vi_cv_path_mzscheme`
5714	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5715	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5716	  fi
5717	fi
5718
5719	if test "X$vi_cv_path_mzscheme" != "X"; then
5720	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5721$as_echo_n "checking MzScheme install prefix... " >&6; }
5722if ${vi_cv_path_mzscheme_pfx+:} false; then :
5723  $as_echo_n "(cached) " >&6
5724else
5725  	    	    echo "(display (simplify-path		\
5726	       (build-path (call-with-values	\
5727		(lambda () (split-path (find-system-path (quote exec-file)))) \
5728		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5729	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5730		sed -e 's+/$++'`
5731fi
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5733$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5734	    rm -f mzdirs.scm
5735	fi
5736    fi
5737  fi
5738
5739  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5741$as_echo_n "checking for racket include directory... " >&6; }
5742    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5743    if test "X$SCHEME_INC" != "X"; then
5744      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5745$as_echo "${SCHEME_INC}" >&6; }
5746    else
5747      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5748$as_echo "not found" >&6; }
5749      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5750$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5751      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5752	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5753	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754$as_echo "yes" >&6; }
5755      else
5756	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757$as_echo "no" >&6; }
5758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5759$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5760	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5761	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5762$as_echo "yes" >&6; }
5763	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5764	else
5765	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766$as_echo "no" >&6; }
5767	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5768$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5769	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5770	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5771$as_echo "yes" >&6; }
5772	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5773	  else
5774	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775$as_echo "no" >&6; }
5776	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5777$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5778	    if test -f /usr/include/plt/scheme.h; then
5779	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5780$as_echo "yes" >&6; }
5781	      SCHEME_INC=/usr/include/plt
5782	    else
5783	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784$as_echo "no" >&6; }
5785	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5786$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5787	      if test -f /usr/include/racket/scheme.h; then
5788		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5789$as_echo "yes" >&6; }
5790		SCHEME_INC=/usr/include/racket
5791	      else
5792		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793$as_echo "no" >&6; }
5794		vi_cv_path_mzscheme_pfx=
5795	      fi
5796	    fi
5797	  fi
5798	fi
5799      fi
5800    fi
5801  fi
5802
5803  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5804
5805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5806$as_echo_n "checking for racket lib directory... " >&6; }
5807    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5808    if test "X$SCHEME_LIB" != "X"; then
5809      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5810$as_echo "${SCHEME_LIB}" >&6; }
5811    else
5812      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5813$as_echo "not found" >&6; }
5814    fi
5815
5816    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5817      if test "X$path" != "X"; then
5818	if test "x$MACOS_X" = "xyes"; then
5819	  MZSCHEME_LIBS="-framework Racket"
5820	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5821	elif test -f "${path}/libmzscheme3m.a"; then
5822	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5823	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5824	elif test -f "${path}/libracket3m.a"; then
5825	  MZSCHEME_LIBS="${path}/libracket3m.a"
5826	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5827	elif test -f "${path}/libracket.a"; then
5828	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5829	elif test -f "${path}/libmzscheme.a"; then
5830	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5831	else
5832	  	  if test -f "${path}/libmzscheme3m.so"; then
5833	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5834	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5835	  elif test -f "${path}/libracket3m.so"; then
5836	    MZSCHEME_LIBS="-L${path} -lracket3m"
5837	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5838	  elif test -f "${path}/libracket.so"; then
5839	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5840	  else
5841	    	    if test "$path" != "$SCHEME_LIB"; then
5842	      continue
5843	    fi
5844	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5845	  fi
5846	  if test "$GCC" = yes; then
5847	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5848	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5849				   uname -r | grep '^5' >/dev/null; then
5850	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5851	  fi
5852	fi
5853      fi
5854      if test "X$MZSCHEME_LIBS" != "X"; then
5855	break
5856      fi
5857    done
5858
5859    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5860$as_echo_n "checking if racket requires -pthread... " >&6; }
5861    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5862      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5863$as_echo "yes" >&6; }
5864      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5865      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5866    else
5867      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
5869    fi
5870
5871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5872$as_echo_n "checking for racket config directory... " >&6; }
5873    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5874    if test "X$SCHEME_CONFIGDIR" != "X"; then
5875      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5876      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5877$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5878    else
5879      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5880$as_echo "not found" >&6; }
5881    fi
5882
5883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5884$as_echo_n "checking for racket collects directory... " >&6; }
5885    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))))'`
5886    if test "X$SCHEME_COLLECTS" = "X"; then
5887      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5888	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5889      else
5890	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5891	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5892	else
5893	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5894	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5895	  else
5896	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5897	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5898	    fi
5899	  fi
5900	fi
5901      fi
5902    fi
5903    if test "X$SCHEME_COLLECTS" != "X" ; then
5904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5905$as_echo "${SCHEME_COLLECTS}" >&6; }
5906    else
5907      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5908$as_echo "not found" >&6; }
5909    fi
5910
5911    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5912$as_echo_n "checking for mzscheme_base.c... " >&6; }
5913    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5914      MZSCHEME_EXTRA="mzscheme_base.c"
5915      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5916      MZSCHEME_MOD="++lib scheme/base"
5917    else
5918      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5919	MZSCHEME_EXTRA="mzscheme_base.c"
5920	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5921	MZSCHEME_MOD="++lib scheme/base"
5922      else
5923	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5924	  MZSCHEME_EXTRA="mzscheme_base.c"
5925	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5926	  MZSCHEME_MOD=""
5927	fi
5928      fi
5929    fi
5930    if test "X$MZSCHEME_EXTRA" != "X" ; then
5931            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5932      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5933$as_echo "needed" >&6; }
5934    else
5935      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5936$as_echo "not needed" >&6; }
5937    fi
5938
5939        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5940$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5941if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5942  $as_echo_n "(cached) " >&6
5943else
5944  ac_check_lib_save_LIBS=$LIBS
5945LIBS="-lffi  $LIBS"
5946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h.  */
5948
5949/* Override any GCC internal prototype to avoid an error.
5950   Use char because int might match the return type of a GCC
5951   builtin and then its argument prototype would still apply.  */
5952#ifdef __cplusplus
5953extern "C"
5954#endif
5955char ffi_type_void ();
5956int
5957main ()
5958{
5959return ffi_type_void ();
5960  ;
5961  return 0;
5962}
5963_ACEOF
5964if ac_fn_c_try_link "$LINENO"; then :
5965  ac_cv_lib_ffi_ffi_type_void=yes
5966else
5967  ac_cv_lib_ffi_ffi_type_void=no
5968fi
5969rm -f core conftest.err conftest.$ac_objext \
5970    conftest$ac_exeext conftest.$ac_ext
5971LIBS=$ac_check_lib_save_LIBS
5972fi
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5974$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5975if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5976  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5977fi
5978
5979
5980    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5981      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5982
5983        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5984$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5985    cflags_save=$CFLAGS
5986    libs_save=$LIBS
5987    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5988    LIBS="$LIBS $MZSCHEME_LIBS"
5989    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990/* end confdefs.h.  */
5991
5992int
5993main ()
5994{
5995
5996  ;
5997  return 0;
5998}
5999_ACEOF
6000if ac_fn_c_try_link "$LINENO"; then :
6001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6002$as_echo "yes" >&6; }; mzs_ok=yes
6003else
6004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
6005$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
6006fi
6007rm -f core conftest.err conftest.$ac_objext \
6008    conftest$ac_exeext conftest.$ac_ext
6009    CFLAGS=$cflags_save
6010    LIBS=$libs_save
6011    if test $mzs_ok = yes; then
6012      MZSCHEME_SRC="if_mzsch.c"
6013      MZSCHEME_OBJ="objects/if_mzsch.o"
6014      MZSCHEME_PRO="if_mzsch.pro"
6015      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
6016
6017    else
6018      MZSCHEME_CFLAGS=
6019      MZSCHEME_LIBS=
6020      MZSCHEME_EXTRA=
6021      MZSCHEME_MZC=
6022    fi
6023  fi
6024
6025
6026
6027
6028
6029
6030
6031fi
6032
6033
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
6035$as_echo_n "checking --enable-perlinterp argument... " >&6; }
6036# Check whether --enable-perlinterp was given.
6037if test "${enable_perlinterp+set}" = set; then :
6038  enableval=$enable_perlinterp;
6039else
6040  enable_perlinterp="no"
6041fi
6042
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
6044$as_echo "$enable_perlinterp" >&6; }
6045if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
6046  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6047    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
6048  fi
6049
6050  # Extract the first word of "perl", so it can be a program name with args.
6051set dummy perl; ac_word=$2
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053$as_echo_n "checking for $ac_word... " >&6; }
6054if ${ac_cv_path_vi_cv_path_perl+:} false; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057  case $vi_cv_path_perl in
6058  [\\/]* | ?:[\\/]*)
6059  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
6060  ;;
6061  *)
6062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065  IFS=$as_save_IFS
6066  test -z "$as_dir" && as_dir=.
6067    for ac_exec_ext in '' $ac_executable_extensions; do
6068  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
6070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071    break 2
6072  fi
6073done
6074  done
6075IFS=$as_save_IFS
6076
6077  ;;
6078esac
6079fi
6080vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
6081if test -n "$vi_cv_path_perl"; then
6082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
6083$as_echo "$vi_cv_path_perl" >&6; }
6084else
6085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086$as_echo "no" >&6; }
6087fi
6088
6089
6090  if test "X$vi_cv_path_perl" != "X"; then
6091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
6092$as_echo_n "checking Perl version... " >&6; }
6093    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
6094     eval `$vi_cv_path_perl -V:usethreads`
6095     eval `$vi_cv_path_perl -V:libperl`
6096     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
6097       badthreads=no
6098     else
6099       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
6100	 eval `$vi_cv_path_perl -V:use5005threads`
6101	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
6102	   badthreads=no
6103	 else
6104	   badthreads=yes
6105	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
6106$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
6107	 fi
6108       else
6109	 badthreads=yes
6110	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
6111$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
6112       fi
6113     fi
6114     if test $badthreads = no; then
6115      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6116$as_echo "OK" >&6; }
6117      eval `$vi_cv_path_perl -V:shrpenv`
6118      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
6119	shrpenv=""
6120      fi
6121      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
6122
6123      vi_cv_perl_extutils=unknown_perl_extutils_path
6124      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
6125	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
6126	if test -f "$xsubpp_path"; then
6127	  vi_cv_perl_xsubpp="$xsubpp_path"
6128	fi
6129      done
6130
6131                              perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
6132		-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
6133		-e 's/-fdebug-prefix-map[^ ]*//g' \
6134		-e 's/-pipe //' \
6135		-e 's/-W[^ ]*//g' \
6136		-e 's/-D_FORTIFY_SOURCE=.//g'`
6137            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
6138		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
6139			-e 's/-bE:perl.exp//' -e 's/-lc //'`
6140                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
6141		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
6142
6143                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
6144$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
6145      cflags_save=$CFLAGS
6146      libs_save=$LIBS
6147      ldflags_save=$LDFLAGS
6148      CFLAGS="$CFLAGS $perlcppflags"
6149      LIBS="$LIBS $perllibs"
6150      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
6151      LDFLAGS="$perlldflags $LDFLAGS"
6152      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h.  */
6154
6155int
6156main ()
6157{
6158
6159  ;
6160  return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_link "$LINENO"; then :
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6165$as_echo "yes" >&6; }; perl_ok=yes
6166else
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
6168$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
6169fi
6170rm -f core conftest.err conftest.$ac_objext \
6171    conftest$ac_exeext conftest.$ac_ext
6172      CFLAGS=$cflags_save
6173      LIBS=$libs_save
6174      LDFLAGS=$ldflags_save
6175      if test $perl_ok = yes; then
6176	if test "X$perlcppflags" != "X"; then
6177	  PERL_CFLAGS=$perlcppflags
6178	fi
6179	if test "X$perlldflags" != "X"; then
6180	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
6181	    LDFLAGS="$perlldflags $LDFLAGS"
6182	  fi
6183	fi
6184	PERL_LIBS=$perllibs
6185	PERL_SRC="auto/if_perl.c if_perlsfio.c"
6186	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
6187	PERL_PRO="if_perl.pro if_perlsfio.pro"
6188	$as_echo "#define FEAT_PERL 1" >>confdefs.h
6189
6190      fi
6191     fi
6192    else
6193      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
6194$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
6195    fi
6196  fi
6197
6198  if test "x$MACOS_X" = "xyes"; then
6199        dir=/System/Library/Perl
6200    darwindir=$dir/darwin
6201    if test -d $darwindir; then
6202      PERL=/usr/bin/perl
6203    else
6204            dir=/System/Library/Perl/5.8.1
6205      darwindir=$dir/darwin-thread-multi-2level
6206      if test -d $darwindir; then
6207	PERL=/usr/bin/perl
6208      fi
6209    fi
6210    if test -n "$PERL"; then
6211      PERL_DIR="$dir"
6212      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
6213      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
6214      PERL_LIBS="-L$darwindir/CORE -lperl"
6215    fi
6216                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6217    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6218  fi
6219  if test "$enable_perlinterp" = "dynamic"; then
6220    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
6221      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
6222
6223      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
6224    fi
6225  fi
6226
6227  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
6228    as_fn_error $? "could not configure perl" "$LINENO" 5
6229  fi
6230fi
6231
6232
6233
6234
6235
6236
6237
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
6239$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
6240# Check whether --enable-pythoninterp was given.
6241if test "${enable_pythoninterp+set}" = set; then :
6242  enableval=$enable_pythoninterp;
6243else
6244  enable_pythoninterp="no"
6245fi
6246
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
6248$as_echo "$enable_pythoninterp" >&6; }
6249if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
6250  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6251    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6252  fi
6253
6254    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5
6255$as_echo_n "checking --with-python-command argument... " >&6; }
6256
6257
6258# Check whether --with-python-command was given.
6259if test "${with_python_command+set}" = set; then :
6260  withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6261$as_echo "$vi_cv_path_python" >&6; }
6262else
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264$as_echo "no" >&6; }
6265fi
6266
6267
6268  if test "X$vi_cv_path_python" = "X"; then
6269    for ac_prog in python2 python
6270do
6271  # Extract the first word of "$ac_prog", so it can be a program name with args.
6272set dummy $ac_prog; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if ${ac_cv_path_vi_cv_path_python+:} false; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278  case $vi_cv_path_python in
6279  [\\/]* | ?:[\\/]*)
6280  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
6281  ;;
6282  *)
6283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286  IFS=$as_save_IFS
6287  test -z "$as_dir" && as_dir=.
6288    for ac_exec_ext in '' $ac_executable_extensions; do
6289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
6291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292    break 2
6293  fi
6294done
6295  done
6296IFS=$as_save_IFS
6297
6298  ;;
6299esac
6300fi
6301vi_cv_path_python=$ac_cv_path_vi_cv_path_python
6302if test -n "$vi_cv_path_python"; then
6303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6304$as_echo "$vi_cv_path_python" >&6; }
6305else
6306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307$as_echo "no" >&6; }
6308fi
6309
6310
6311  test -n "$vi_cv_path_python" && break
6312done
6313
6314  fi
6315  if test "X$vi_cv_path_python" != "X"; then
6316
6317        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6318$as_echo_n "checking Python version... " >&6; }
6319if ${vi_cv_var_python_version+:} false; then :
6320  $as_echo_n "(cached) " >&6
6321else
6322  vi_cv_var_python_version=`
6323	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
6324
6325fi
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
6327$as_echo "$vi_cv_var_python_version" >&6; }
6328
6329        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
6330$as_echo_n "checking Python is 2.3 or better... " >&6; }
6331    if ${vi_cv_path_python} -c \
6332	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
6333    then
6334      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6335$as_echo "yep" >&6; }
6336
6337            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6338$as_echo_n "checking Python's install prefix... " >&6; }
6339if ${vi_cv_path_python_pfx+:} false; then :
6340  $as_echo_n "(cached) " >&6
6341else
6342   vi_cv_path_python_pfx=`
6343	    ${vi_cv_path_python} -c \
6344		"import sys; print sys.prefix"`
6345fi
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
6347$as_echo "$vi_cv_path_python_pfx" >&6; }
6348
6349            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6350$as_echo_n "checking Python's execution prefix... " >&6; }
6351if ${vi_cv_path_python_epfx+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354   vi_cv_path_python_epfx=`
6355	    ${vi_cv_path_python} -c \
6356		"import sys; print sys.exec_prefix"`
6357fi
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
6359$as_echo "$vi_cv_path_python_epfx" >&6; }
6360
6361
6362      if ${vi_cv_path_pythonpath+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365   vi_cv_path_pythonpath=`
6366	    unset PYTHONPATH;
6367	    ${vi_cv_path_python} -c \
6368		"import sys, string; print string.join(sys.path,':')"`
6369fi
6370
6371
6372
6373
6374# Check whether --with-python-config-dir was given.
6375if test "${with_python_config_dir+set}" = set; then :
6376  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"; have_python_config_dir=1
6377fi
6378
6379
6380      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6381$as_echo_n "checking Python's configuration directory... " >&6; }
6382if ${vi_cv_path_python_conf+:} false; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385
6386	vi_cv_path_python_conf=
6387	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
6388	if test -d "$d" && test -f "$d/config.c"; then
6389	  vi_cv_path_python_conf="$d"
6390	else
6391	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
6392	    for subdir in lib64 lib share; do
6393	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
6394	      if test -d "$d" && test -f "$d/config.c"; then
6395		vi_cv_path_python_conf="$d"
6396	      fi
6397	    done
6398	  done
6399	fi
6400
6401fi
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
6403$as_echo "$vi_cv_path_python_conf" >&6; }
6404
6405      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
6406
6407      if test "X$PYTHON_CONFDIR" = "X"; then
6408	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6409$as_echo "can't find it!" >&6; }
6410      else
6411
6412			if ${vi_cv_path_python_plibs+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415
6416	    pwd=`pwd`
6417	    tmp_mkf="$pwd/config-PyMake$$"
6418	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6419__:
6420	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
6421	@echo "python_LIBS='$(LIBS)'"
6422	@echo "python_SYSLIBS='$(SYSLIBS)'"
6423	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
6424	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
6425	@echo "python_INSTSONAME='$(INSTSONAME)'"
6426	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
6427	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
6428	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
6429eof
6430	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6431	    rm -f -- "${tmp_mkf}"
6432	    if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6433		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6434	      vi_cv_path_python_plibs="-framework Python"
6435	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6436		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6437	      fi
6438	    else
6439	      vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6440	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6441	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6442		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6443	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6444	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6445		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6446		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6447	            	            		  fi
6448	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6449	        fi
6450	      fi
6451	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6452	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6453	    fi
6454
6455fi
6456
6457	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6458$as_echo_n "checking Python's dll name... " >&6; }
6459if ${vi_cv_dll_name_python+:} false; then :
6460  $as_echo_n "(cached) " >&6
6461else
6462
6463	  if test "X$python_DLLLIBRARY" != "X"; then
6464	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6465	  else
6466	    vi_cv_dll_name_python="$python_INSTSONAME"
6467	  fi
6468
6469fi
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6471$as_echo "$vi_cv_dll_name_python" >&6; }
6472
6473	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6474	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6475	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
6476	else
6477	  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}"
6478	fi
6479	if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then
6480	  	  PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6481
6482	fi
6483	PYTHON_SRC="if_python.c"
6484	PYTHON_OBJ="objects/if_python.o"
6485
6486								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6487$as_echo_n "checking if -pthread should be used... " >&6; }
6488	threadsafe_flag=
6489	thread_lib=
6490	        if test "`(uname) 2>/dev/null`" != Darwin; then
6491	  test "$GCC" = yes && threadsafe_flag="-pthread"
6492	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6493	    threadsafe_flag="-D_THREAD_SAFE"
6494	    thread_lib="-pthread"
6495	  fi
6496	  if test "`(uname) 2>/dev/null`" = SunOS; then
6497	    threadsafe_flag="-pthreads"
6498	  fi
6499	fi
6500	libs_save_old=$LIBS
6501	if test -n "$threadsafe_flag"; then
6502	  cflags_save=$CFLAGS
6503	  CFLAGS="$CFLAGS $threadsafe_flag"
6504	  LIBS="$LIBS $thread_lib"
6505	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h.  */
6507
6508int
6509main ()
6510{
6511
6512  ;
6513  return 0;
6514}
6515_ACEOF
6516if ac_fn_c_try_link "$LINENO"; then :
6517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6518$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6519else
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }; LIBS=$libs_save_old
6522
6523fi
6524rm -f core conftest.err conftest.$ac_objext \
6525    conftest$ac_exeext conftest.$ac_ext
6526	  CFLAGS=$cflags_save
6527	else
6528	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529$as_echo "no" >&6; }
6530	fi
6531
6532			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6533$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6534	cflags_save=$CFLAGS
6535	libs_save=$LIBS
6536	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6537	LIBS="$LIBS $PYTHON_LIBS"
6538	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h.  */
6540
6541int
6542main ()
6543{
6544
6545  ;
6546  return 0;
6547}
6548_ACEOF
6549if ac_fn_c_try_link "$LINENO"; then :
6550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6551$as_echo "yes" >&6; }; python_ok=yes
6552else
6553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6554$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6555fi
6556rm -f core conftest.err conftest.$ac_objext \
6557    conftest$ac_exeext conftest.$ac_ext
6558	CFLAGS=$cflags_save
6559	LIBS=$libs_save
6560	if test $python_ok = yes; then
6561	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6562
6563	else
6564	  LIBS=$libs_save_old
6565	  PYTHON_SRC=
6566	  PYTHON_OBJ=
6567	  PYTHON_LIBS=
6568	  PYTHON_CFLAGS=
6569	fi
6570      fi
6571    else
6572      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6573$as_echo "too old" >&6; }
6574    fi
6575  fi
6576
6577  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6578    as_fn_error $? "could not configure python" "$LINENO" 5
6579  fi
6580fi
6581
6582
6583
6584
6585
6586
6587
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6589$as_echo_n "checking --enable-python3interp argument... " >&6; }
6590# Check whether --enable-python3interp was given.
6591if test "${enable_python3interp+set}" = set; then :
6592  enableval=$enable_python3interp;
6593else
6594  enable_python3interp="no"
6595fi
6596
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6598$as_echo "$enable_python3interp" >&6; }
6599if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6600  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6601    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6602  fi
6603
6604    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5
6605$as_echo_n "checking --with-python3-command argument... " >&6; }
6606
6607
6608# Check whether --with-python3-command was given.
6609if test "${with_python3_command+set}" = set; then :
6610  withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6611$as_echo "$vi_cv_path_python3" >&6; }
6612else
6613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614$as_echo "no" >&6; }
6615fi
6616
6617
6618  if test "X$vi_cv_path_python3" = "X"; then
6619    for ac_prog in python3 python
6620do
6621  # Extract the first word of "$ac_prog", so it can be a program name with args.
6622set dummy $ac_prog; ac_word=$2
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624$as_echo_n "checking for $ac_word... " >&6; }
6625if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6626  $as_echo_n "(cached) " >&6
6627else
6628  case $vi_cv_path_python3 in
6629  [\\/]* | ?:[\\/]*)
6630  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6631  ;;
6632  *)
6633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636  IFS=$as_save_IFS
6637  test -z "$as_dir" && as_dir=.
6638    for ac_exec_ext in '' $ac_executable_extensions; do
6639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642    break 2
6643  fi
6644done
6645  done
6646IFS=$as_save_IFS
6647
6648  ;;
6649esac
6650fi
6651vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6652if test -n "$vi_cv_path_python3"; then
6653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6654$as_echo "$vi_cv_path_python3" >&6; }
6655else
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657$as_echo "no" >&6; }
6658fi
6659
6660
6661  test -n "$vi_cv_path_python3" && break
6662done
6663
6664  fi
6665  if test "X$vi_cv_path_python3" != "X"; then
6666
6667        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6668$as_echo_n "checking Python version... " >&6; }
6669if ${vi_cv_var_python3_version+:} false; then :
6670  $as_echo_n "(cached) " >&6
6671else
6672  vi_cv_var_python3_version=`
6673          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6674
6675fi
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6677$as_echo "$vi_cv_var_python3_version" >&6; }
6678
6679        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6680$as_echo_n "checking Python is 3.0 or better... " >&6; }
6681    if ${vi_cv_path_python3} -c \
6682      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6683    then
6684      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6685$as_echo "yep" >&6; }
6686
6687            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6688$as_echo_n "checking Python's abiflags... " >&6; }
6689if ${vi_cv_var_python3_abiflags+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692
6693       vi_cv_var_python3_abiflags=
6694       if ${vi_cv_path_python3} -c \
6695           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6696       then
6697         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6698           "import sys; print(sys.abiflags)"`
6699       fi
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6702$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6703
6704            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6705$as_echo_n "checking Python's install prefix... " >&6; }
6706if ${vi_cv_path_python3_pfx+:} false; then :
6707  $as_echo_n "(cached) " >&6
6708else
6709   vi_cv_path_python3_pfx=`
6710       ${vi_cv_path_python3} -c \
6711       "import sys; print(sys.prefix)"`
6712fi
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6714$as_echo "$vi_cv_path_python3_pfx" >&6; }
6715
6716            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6717$as_echo_n "checking Python's execution prefix... " >&6; }
6718if ${vi_cv_path_python3_epfx+:} false; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721   vi_cv_path_python3_epfx=`
6722       ${vi_cv_path_python3} -c \
6723       "import sys; print(sys.exec_prefix)"`
6724fi
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6726$as_echo "$vi_cv_path_python3_epfx" >&6; }
6727
6728
6729      if ${vi_cv_path_python3path+:} false; then :
6730  $as_echo_n "(cached) " >&6
6731else
6732   vi_cv_path_python3path=`
6733       unset PYTHONPATH;
6734       ${vi_cv_path_python3} -c \
6735       "import sys, string; print(':'.join(sys.path))"`
6736fi
6737
6738
6739
6740
6741# Check whether --with-python3-config-dir was given.
6742if test "${with_python3_config_dir+set}" = set; then :
6743  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1
6744fi
6745
6746
6747      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6748$as_echo_n "checking Python's configuration directory... " >&6; }
6749if ${vi_cv_path_python3_conf+:} false; then :
6750  $as_echo_n "(cached) " >&6
6751else
6752
6753       vi_cv_path_python3_conf=
6754       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6755       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6756       if test -d "$d" && test -f "$d/config.c"; then
6757         vi_cv_path_python3_conf="$d"
6758       else
6759         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6760	   for subdir in lib64 lib share; do
6761	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6762	     if test -d "$d" && test -f "$d/config.c"; then
6763	       vi_cv_path_python3_conf="$d"
6764	     fi
6765	   done
6766         done
6767       fi
6768
6769fi
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6771$as_echo "$vi_cv_path_python3_conf" >&6; }
6772
6773      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6774
6775      if test "X$PYTHON3_CONFDIR" = "X"; then
6776        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6777$as_echo "can't find it!" >&6; }
6778      else
6779
6780                        if ${vi_cv_path_python3_plibs+:} false; then :
6781  $as_echo_n "(cached) " >&6
6782else
6783
6784            pwd=`pwd`
6785            tmp_mkf="$pwd/config-PyMake$$"
6786            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6787__:
6788	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6789	@echo "python3_LIBS='$(LIBS)'"
6790	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6791	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6792	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6793eof
6794	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6795	    rm -f -- "${tmp_mkf}"
6796	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6797	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6798	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6799	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6800
6801fi
6802
6803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6804$as_echo_n "checking Python3's dll name... " >&6; }
6805if ${vi_cv_dll_name_python3+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808
6809	  if test "X$python3_DLLLIBRARY" != "X"; then
6810	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6811	  else
6812	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6813	  fi
6814
6815fi
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6817$as_echo "$vi_cv_dll_name_python3" >&6; }
6818
6819        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6820        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6821          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6822        else
6823          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}"
6824        fi
6825	if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then
6826	  	  PYTHON3_CFLAGS="${PYTHON3_CFLAGS}  -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6827	fi
6828        PYTHON3_SRC="if_python3.c"
6829        PYTHON3_OBJ="objects/if_python3.o"
6830
6831                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6832$as_echo_n "checking if -pthread should be used... " >&6; }
6833        threadsafe_flag=
6834        thread_lib=
6835                if test "`(uname) 2>/dev/null`" != Darwin; then
6836          test "$GCC" = yes && threadsafe_flag="-pthread"
6837          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6838            threadsafe_flag="-D_THREAD_SAFE"
6839            thread_lib="-pthread"
6840          fi
6841          if test "`(uname) 2>/dev/null`" = SunOS; then
6842            threadsafe_flag="-pthreads"
6843          fi
6844        fi
6845        libs_save_old=$LIBS
6846        if test -n "$threadsafe_flag"; then
6847          cflags_save=$CFLAGS
6848          CFLAGS="$CFLAGS $threadsafe_flag"
6849          LIBS="$LIBS $thread_lib"
6850          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852
6853int
6854main ()
6855{
6856
6857  ;
6858  return 0;
6859}
6860_ACEOF
6861if ac_fn_c_try_link "$LINENO"; then :
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6863$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6864else
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866$as_echo "no" >&6; }; LIBS=$libs_save_old
6867
6868fi
6869rm -f core conftest.err conftest.$ac_objext \
6870    conftest$ac_exeext conftest.$ac_ext
6871          CFLAGS=$cflags_save
6872        else
6873          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875        fi
6876
6877                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6878$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6879        cflags_save=$CFLAGS
6880        libs_save=$LIBS
6881        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6882        LIBS="$LIBS $PYTHON3_LIBS"
6883        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885
6886int
6887main ()
6888{
6889
6890  ;
6891  return 0;
6892}
6893_ACEOF
6894if ac_fn_c_try_link "$LINENO"; then :
6895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6896$as_echo "yes" >&6; }; python3_ok=yes
6897else
6898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6899$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6900fi
6901rm -f core conftest.err conftest.$ac_objext \
6902    conftest$ac_exeext conftest.$ac_ext
6903        CFLAGS=$cflags_save
6904        LIBS=$libs_save
6905        if test "$python3_ok" = yes; then
6906          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6907
6908        else
6909          LIBS=$libs_save_old
6910          PYTHON3_SRC=
6911          PYTHON3_OBJ=
6912          PYTHON3_LIBS=
6913          PYTHON3_CFLAGS=
6914        fi
6915      fi
6916    else
6917      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6918$as_echo "too old" >&6; }
6919    fi
6920  fi
6921  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6922    as_fn_error $? "could not configure python3" "$LINENO" 5
6923  fi
6924fi
6925
6926
6927
6928
6929
6930
6931if test "$python_ok" = yes && test "$python3_ok" = yes; then
6932  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6933
6934  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6935
6936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6937$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6938  cflags_save=$CFLAGS
6939  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6940  libs_save=$LIBS
6941    LIBS="-ldl $LIBS"
6942  if test "$cross_compiling" = yes; then :
6943  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6945as_fn_error $? "cannot run test program while cross compiling
6946See \`config.log' for more details" "$LINENO" 5; }
6947else
6948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h.  */
6950
6951    #include <dlfcn.h>
6952    /* If this program fails, then RTLD_GLOBAL is needed.
6953     * RTLD_GLOBAL will be used and then it is not possible to
6954     * have both python versions enabled in the same vim instance.
6955     * Only the first python version used will be switched on.
6956     */
6957
6958    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6959    {
6960      int needed = 0;
6961      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6962      if (pylib != 0)
6963      {
6964          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6965          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6966          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6967          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6968          (*pfx)(prefix);
6969          (*init)();
6970          needed = (*simple)("import termios") == -1;
6971          (*final)();
6972          dlclose(pylib);
6973      }
6974      return !needed;
6975    }
6976
6977    int main(int argc, char** argv)
6978    {
6979      int not_needed = 0;
6980      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6981            not_needed = 1;
6982      return !not_needed;
6983    }
6984_ACEOF
6985if ac_fn_c_try_run "$LINENO"; then :
6986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6987$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6988
6989else
6990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991$as_echo "no" >&6; }
6992fi
6993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6994  conftest.$ac_objext conftest.beam conftest.$ac_ext
6995fi
6996
6997
6998  CFLAGS=$cflags_save
6999  LIBS=$libs_save
7000
7001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
7002$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
7003  cflags_save=$CFLAGS
7004  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
7005  libs_save=$LIBS
7006    LIBS="-ldl $LIBS"
7007  if test "$cross_compiling" = yes; then :
7008  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7010as_fn_error $? "cannot run test program while cross compiling
7011See \`config.log' for more details" "$LINENO" 5; }
7012else
7013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014/* end confdefs.h.  */
7015
7016    #include <dlfcn.h>
7017    #include <wchar.h>
7018    /* If this program fails, then RTLD_GLOBAL is needed.
7019     * RTLD_GLOBAL will be used and then it is not possible to
7020     * have both python versions enabled in the same vim instance.
7021     * Only the first python version used will be switched on.
7022     */
7023
7024    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
7025    {
7026      int needed = 0;
7027      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
7028      if (pylib != 0)
7029      {
7030          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
7031          void (*init)(void) = dlsym(pylib, "Py_Initialize");
7032          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
7033          void (*final)(void) = dlsym(pylib, "Py_Finalize");
7034          (*pfx)(prefix);
7035          (*init)();
7036          needed = (*simple)("import termios") == -1;
7037          (*final)();
7038          dlclose(pylib);
7039      }
7040      return !needed;
7041    }
7042
7043    int main(int argc, char** argv)
7044    {
7045      int not_needed = 0;
7046      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
7047            not_needed = 1;
7048      return !not_needed;
7049    }
7050_ACEOF
7051if ac_fn_c_try_run "$LINENO"; then :
7052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7053$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
7054
7055else
7056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057$as_echo "no" >&6; }
7058fi
7059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7060  conftest.$ac_objext conftest.beam conftest.$ac_ext
7061fi
7062
7063
7064  CFLAGS=$cflags_save
7065  LIBS=$libs_save
7066
7067  PYTHON_SRC="if_python.c"
7068  PYTHON_OBJ="objects/if_python.o"
7069  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7070  PYTHON_LIBS=
7071  PYTHON3_SRC="if_python3.c"
7072  PYTHON3_OBJ="objects/if_python3.o"
7073  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7074  PYTHON3_LIBS=
7075elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
7076  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
7077
7078  PYTHON_SRC="if_python.c"
7079  PYTHON_OBJ="objects/if_python.o"
7080  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7081  PYTHON_LIBS=
7082elif test "$python_ok" = yes; then
7083      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
7084$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
7085  cflags_save=$CFLAGS
7086  libs_save=$LIBS
7087  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
7088  LIBS="$LIBS $PYTHON_LIBS"
7089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090/* end confdefs.h.  */
7091
7092int
7093main ()
7094{
7095
7096  ;
7097  return 0;
7098}
7099_ACEOF
7100if ac_fn_c_try_link "$LINENO"; then :
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7102$as_echo "yes" >&6; }; fpie_ok=yes
7103else
7104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }; fpie_ok=no
7106fi
7107rm -f core conftest.err conftest.$ac_objext \
7108    conftest$ac_exeext conftest.$ac_ext
7109  CFLAGS=$cflags_save
7110  LIBS=$libs_save
7111  if test $fpie_ok = yes; then
7112    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
7113  fi
7114elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
7115  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
7116
7117  PYTHON3_SRC="if_python3.c"
7118  PYTHON3_OBJ="objects/if_python3.o"
7119  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7120  PYTHON3_LIBS=
7121elif test "$python3_ok" = yes; then
7122      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
7123$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
7124  cflags_save=$CFLAGS
7125  libs_save=$LIBS
7126  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
7127  LIBS="$LIBS $PYTHON3_LIBS"
7128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129/* end confdefs.h.  */
7130
7131int
7132main ()
7133{
7134
7135  ;
7136  return 0;
7137}
7138_ACEOF
7139if ac_fn_c_try_link "$LINENO"; then :
7140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7141$as_echo "yes" >&6; }; fpie_ok=yes
7142else
7143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144$as_echo "no" >&6; }; fpie_ok=no
7145fi
7146rm -f core conftest.err conftest.$ac_objext \
7147    conftest$ac_exeext conftest.$ac_ext
7148  CFLAGS=$cflags_save
7149  LIBS=$libs_save
7150  if test $fpie_ok = yes; then
7151    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
7152  fi
7153fi
7154
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
7156$as_echo_n "checking --enable-tclinterp argument... " >&6; }
7157# Check whether --enable-tclinterp was given.
7158if test "${enable_tclinterp+set}" = set; then :
7159  enableval=$enable_tclinterp;
7160else
7161  enable_tclinterp="no"
7162fi
7163
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
7165$as_echo "$enable_tclinterp" >&6; }
7166
7167if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
7168
7169    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
7170$as_echo_n "checking --with-tclsh argument... " >&6; }
7171
7172# Check whether --with-tclsh was given.
7173if test "${with_tclsh+set}" = set; then :
7174  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
7175$as_echo "$tclsh_name" >&6; }
7176else
7177  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178$as_echo "no" >&6; }
7179fi
7180
7181  # Extract the first word of "$tclsh_name", so it can be a program name with args.
7182set dummy $tclsh_name; ac_word=$2
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184$as_echo_n "checking for $ac_word... " >&6; }
7185if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  case $vi_cv_path_tcl in
7189  [\\/]* | ?:[\\/]*)
7190  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7191  ;;
7192  *)
7193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196  IFS=$as_save_IFS
7197  test -z "$as_dir" && as_dir=.
7198    for ac_exec_ext in '' $ac_executable_extensions; do
7199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202    break 2
7203  fi
7204done
7205  done
7206IFS=$as_save_IFS
7207
7208  ;;
7209esac
7210fi
7211vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7212if test -n "$vi_cv_path_tcl"; then
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7214$as_echo "$vi_cv_path_tcl" >&6; }
7215else
7216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217$as_echo "no" >&6; }
7218fi
7219
7220
7221
7222
7223    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
7224    tclsh_name="tclsh8.4"
7225    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7226set dummy $tclsh_name; ac_word=$2
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228$as_echo_n "checking for $ac_word... " >&6; }
7229if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7230  $as_echo_n "(cached) " >&6
7231else
7232  case $vi_cv_path_tcl in
7233  [\\/]* | ?:[\\/]*)
7234  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7235  ;;
7236  *)
7237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240  IFS=$as_save_IFS
7241  test -z "$as_dir" && as_dir=.
7242    for ac_exec_ext in '' $ac_executable_extensions; do
7243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246    break 2
7247  fi
7248done
7249  done
7250IFS=$as_save_IFS
7251
7252  ;;
7253esac
7254fi
7255vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7256if test -n "$vi_cv_path_tcl"; then
7257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7258$as_echo "$vi_cv_path_tcl" >&6; }
7259else
7260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261$as_echo "no" >&6; }
7262fi
7263
7264
7265  fi
7266  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
7267    tclsh_name="tclsh8.2"
7268    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7269set dummy $tclsh_name; ac_word=$2
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271$as_echo_n "checking for $ac_word... " >&6; }
7272if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7273  $as_echo_n "(cached) " >&6
7274else
7275  case $vi_cv_path_tcl in
7276  [\\/]* | ?:[\\/]*)
7277  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7278  ;;
7279  *)
7280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281for as_dir in $PATH
7282do
7283  IFS=$as_save_IFS
7284  test -z "$as_dir" && as_dir=.
7285    for ac_exec_ext in '' $ac_executable_extensions; do
7286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289    break 2
7290  fi
7291done
7292  done
7293IFS=$as_save_IFS
7294
7295  ;;
7296esac
7297fi
7298vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7299if test -n "$vi_cv_path_tcl"; then
7300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7301$as_echo "$vi_cv_path_tcl" >&6; }
7302else
7303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304$as_echo "no" >&6; }
7305fi
7306
7307
7308  fi
7309  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
7310    tclsh_name="tclsh8.0"
7311    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7312set dummy $tclsh_name; ac_word=$2
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314$as_echo_n "checking for $ac_word... " >&6; }
7315if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7316  $as_echo_n "(cached) " >&6
7317else
7318  case $vi_cv_path_tcl in
7319  [\\/]* | ?:[\\/]*)
7320  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7321  ;;
7322  *)
7323  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326  IFS=$as_save_IFS
7327  test -z "$as_dir" && as_dir=.
7328    for ac_exec_ext in '' $ac_executable_extensions; do
7329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332    break 2
7333  fi
7334done
7335  done
7336IFS=$as_save_IFS
7337
7338  ;;
7339esac
7340fi
7341vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7342if test -n "$vi_cv_path_tcl"; then
7343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7344$as_echo "$vi_cv_path_tcl" >&6; }
7345else
7346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347$as_echo "no" >&6; }
7348fi
7349
7350
7351  fi
7352    if test "X$vi_cv_path_tcl" = "X"; then
7353    tclsh_name="tclsh"
7354    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7355set dummy $tclsh_name; ac_word=$2
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357$as_echo_n "checking for $ac_word... " >&6; }
7358if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7359  $as_echo_n "(cached) " >&6
7360else
7361  case $vi_cv_path_tcl in
7362  [\\/]* | ?:[\\/]*)
7363  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7364  ;;
7365  *)
7366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367for as_dir in $PATH
7368do
7369  IFS=$as_save_IFS
7370  test -z "$as_dir" && as_dir=.
7371    for ac_exec_ext in '' $ac_executable_extensions; do
7372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375    break 2
7376  fi
7377done
7378  done
7379IFS=$as_save_IFS
7380
7381  ;;
7382esac
7383fi
7384vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7385if test -n "$vi_cv_path_tcl"; then
7386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7387$as_echo "$vi_cv_path_tcl" >&6; }
7388else
7389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390$as_echo "no" >&6; }
7391fi
7392
7393
7394  fi
7395  if test "X$vi_cv_path_tcl" != "X"; then
7396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
7397$as_echo_n "checking Tcl version... " >&6; }
7398    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
7399      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
7400      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
7401$as_echo "$tclver - OK" >&6; };
7402      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 -`
7403      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
7404
7405      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
7406$as_echo_n "checking for location of Tcl include... " >&6; }
7407      if test "x$MACOS_X" != "xyes"; then
7408	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
7409      else
7410				tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /System/Library/Frameworks/Tcl.framework/Headers `xcrun --show-sdk-path`/System/Library/Frameworks/Tcl.framework/Versions/Current/Headers"
7411      fi
7412      TCL_INC=
7413      for try in $tclinc; do
7414	if test -f "$try/tcl.h"; then
7415	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
7416$as_echo "$try/tcl.h" >&6; }
7417	  TCL_INC=$try
7418	  break
7419	fi
7420      done
7421      if test -z "$TCL_INC"; then
7422	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7423$as_echo "<not found>" >&6; }
7424	SKIP_TCL=YES
7425      fi
7426      if test -z "$SKIP_TCL"; then
7427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
7428$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
7429	if test "x$MACOS_X" != "xyes"; then
7430	  tclcnf=`echo $tclinc | sed s/include/lib/g`
7431	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
7432	else
7433	  	  	  	  tclcnf=`echo $tclinc | sed s/include/lib/g`
7434	  tclcnf="$tclcnf /System/Library/Frameworks/Tcl.framework `xcrun --show-sdk-path`/System/Library/Frameworks/Tcl.framework"
7435	fi
7436	for try in $tclcnf; do
7437	  if test -f "$try/tclConfig.sh"; then
7438	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
7439$as_echo "$try/tclConfig.sh" >&6; }
7440	    . "$try/tclConfig.sh"
7441	    	    if test "$enable_tclinterp" = "dynamic"; then
7442	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7443	    else
7444	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7445	    fi
7446	    	    	    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'`
7447	    break
7448	  fi
7449	done
7450	if test -z "$TCL_LIBS"; then
7451	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7452$as_echo "<not found>" >&6; }
7453	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7454$as_echo_n "checking for Tcl library by myself... " >&6; }
7455	  tcllib=`echo $tclinc | sed s/include/lib/g`
7456	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7457	  for ext in .so .a ; do
7458	    for ver in "" $tclver ; do
7459	      for try in $tcllib ; do
7460		trylib=tcl$ver$ext
7461		if test -f "$try/lib$trylib" ; then
7462		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7463$as_echo "$try/lib$trylib" >&6; }
7464		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7465		  if test "`(uname) 2>/dev/null`" = SunOS &&
7466					 uname -r | grep '^5' >/dev/null; then
7467		    TCL_LIBS="$TCL_LIBS -R $try"
7468		  fi
7469		  break 3
7470		fi
7471	      done
7472	    done
7473	  done
7474	  if test -z "$TCL_LIBS"; then
7475	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7476$as_echo "<not found>" >&6; }
7477	    SKIP_TCL=YES
7478	  fi
7479	fi
7480	if test -z "$SKIP_TCL"; then
7481	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7482
7483	  TCL_SRC=if_tcl.c
7484	  TCL_OBJ=objects/if_tcl.o
7485	  TCL_PRO=if_tcl.pro
7486	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7487	fi
7488      fi
7489    else
7490      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7491$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7492    fi
7493  fi
7494  if test "$enable_tclinterp" = "dynamic"; then
7495    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7496      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7497
7498      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7499    fi
7500  fi
7501  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7502    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7503  fi
7504fi
7505
7506
7507
7508
7509
7510
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7512$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7513# Check whether --enable-rubyinterp was given.
7514if test "${enable_rubyinterp+set}" = set; then :
7515  enableval=$enable_rubyinterp;
7516else
7517  enable_rubyinterp="no"
7518fi
7519
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7521$as_echo "$enable_rubyinterp" >&6; }
7522if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7523  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7524    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7525  fi
7526
7527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7528$as_echo_n "checking --with-ruby-command argument... " >&6; }
7529
7530
7531# Check whether --with-ruby-command was given.
7532if test "${with_ruby_command+set}" = set; then :
7533  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7534$as_echo "$RUBY_CMD" >&6; }
7535else
7536  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7537$as_echo "defaulting to $RUBY_CMD" >&6; }
7538fi
7539
7540  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7541set dummy $RUBY_CMD; ac_word=$2
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543$as_echo_n "checking for $ac_word... " >&6; }
7544if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7545  $as_echo_n "(cached) " >&6
7546else
7547  case $vi_cv_path_ruby in
7548  [\\/]* | ?:[\\/]*)
7549  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7550  ;;
7551  *)
7552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555  IFS=$as_save_IFS
7556  test -z "$as_dir" && as_dir=.
7557    for ac_exec_ext in '' $ac_executable_extensions; do
7558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561    break 2
7562  fi
7563done
7564  done
7565IFS=$as_save_IFS
7566
7567  ;;
7568esac
7569fi
7570vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7571if test -n "$vi_cv_path_ruby"; then
7572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7573$as_echo "$vi_cv_path_ruby" >&6; }
7574else
7575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576$as_echo "no" >&6; }
7577fi
7578
7579
7580  if test "X$vi_cv_path_ruby" != "X"; then
7581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7582$as_echo_n "checking Ruby version... " >&6; }
7583    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7585$as_echo "OK" >&6; }
7586      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7587$as_echo_n "checking Ruby rbconfig... " >&6; }
7588      ruby_rbconfig="RbConfig"
7589      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7590	ruby_rbconfig="Config"
7591      fi
7592      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7593$as_echo "$ruby_rbconfig" >&6; }
7594      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7595$as_echo_n "checking Ruby header files... " >&6; }
7596      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7597      if test "X$rubyhdrdir" != "X"; then
7598	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7599$as_echo "$rubyhdrdir" >&6; }
7600	RUBY_CFLAGS="-I$rubyhdrdir"
7601        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7602        if test -d "$rubyarchdir"; then
7603          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7604        fi
7605        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7606	if test "X$rubyversion" = "X"; then
7607	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7608	fi
7609        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7610	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7611	if test "X$rubylibs" != "X"; then
7612	  RUBY_LIBS="$rubylibs"
7613	fi
7614	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7615	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7616	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7617	if test -f "$rubylibdir/$librubya"; then
7618	  librubyarg="$librubyarg"
7619	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7620	elif test "$librubyarg" = "libruby.a"; then
7621	  	  librubyarg="-lruby"
7622	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7623	fi
7624
7625	if test "X$librubyarg" != "X"; then
7626	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7627	fi
7628	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7629	if test "X$rubyldflags" != "X"; then
7630	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7631	  if test "X$rubyldflags" != "X"; then
7632	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7633	      LDFLAGS="$rubyldflags $LDFLAGS"
7634	    fi
7635	  fi
7636	fi
7637	RUBY_SRC="if_ruby.c"
7638	RUBY_OBJ="objects/if_ruby.o"
7639	RUBY_PRO="if_ruby.pro"
7640	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7641
7642	if test "$enable_rubyinterp" = "dynamic"; then
7643	  libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"`
7644	  if test -z "$libruby_soname"; then
7645	    libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7646	  fi
7647	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7648
7649	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" $RUBY_CFLAGS"
7650	  RUBY_LIBS=
7651	fi
7652      else
7653	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7654$as_echo "not found; disabling Ruby" >&6; }
7655      fi
7656    else
7657      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7658$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7659    fi
7660  fi
7661
7662  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7663    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7664  fi
7665fi
7666
7667
7668
7669
7670
7671
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7673$as_echo_n "checking --enable-cscope argument... " >&6; }
7674# Check whether --enable-cscope was given.
7675if test "${enable_cscope+set}" = set; then :
7676  enableval=$enable_cscope;
7677else
7678  enable_cscope="no"
7679fi
7680
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7682$as_echo "$enable_cscope" >&6; }
7683if test "$enable_cscope" = "yes"; then
7684  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7685
7686fi
7687
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7689$as_echo_n "checking --disable-netbeans argument... " >&6; }
7690# Check whether --enable-netbeans was given.
7691if test "${enable_netbeans+set}" = set; then :
7692  enableval=$enable_netbeans;
7693else
7694  enable_netbeans="yes"
7695fi
7696
7697if test "$enable_netbeans" = "yes"; then
7698  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7699    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7700$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7701    enable_netbeans="no"
7702  else
7703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
7705  fi
7706else
7707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7708$as_echo "yes" >&6; }
7709fi
7710
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7712$as_echo_n "checking --disable-channel argument... " >&6; }
7713# Check whether --enable-channel was given.
7714if test "${enable_channel+set}" = set; then :
7715  enableval=$enable_channel;
7716else
7717  enable_channel="yes"
7718fi
7719
7720if test "$enable_channel" = "yes"; then
7721  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7723$as_echo "cannot use channels with tiny or small features" >&6; }
7724    enable_channel="no"
7725  else
7726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727$as_echo "no" >&6; }
7728  fi
7729else
7730  if test "$enable_netbeans" = "yes"; then
7731    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7732$as_echo "yes, netbeans also disabled" >&6; }
7733    enable_netbeans="no"
7734  else
7735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7736$as_echo "yes" >&6; }
7737  fi
7738fi
7739
7740if test "$enable_channel" = "yes"; then
7741    if test "x$HAIKU" = "xyes"; then
7742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7743$as_echo_n "checking for socket in -lnetwork... " >&6; }
7744if ${ac_cv_lib_network_socket+:} false; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747  ac_check_lib_save_LIBS=$LIBS
7748LIBS="-lnetwork  $LIBS"
7749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750/* end confdefs.h.  */
7751
7752/* Override any GCC internal prototype to avoid an error.
7753   Use char because int might match the return type of a GCC
7754   builtin and then its argument prototype would still apply.  */
7755#ifdef __cplusplus
7756extern "C"
7757#endif
7758char socket ();
7759int
7760main ()
7761{
7762return socket ();
7763  ;
7764  return 0;
7765}
7766_ACEOF
7767if ac_fn_c_try_link "$LINENO"; then :
7768  ac_cv_lib_network_socket=yes
7769else
7770  ac_cv_lib_network_socket=no
7771fi
7772rm -f core conftest.err conftest.$ac_objext \
7773    conftest$ac_exeext conftest.$ac_ext
7774LIBS=$ac_check_lib_save_LIBS
7775fi
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7777$as_echo "$ac_cv_lib_network_socket" >&6; }
7778if test "x$ac_cv_lib_network_socket" = xyes; then :
7779  cat >>confdefs.h <<_ACEOF
7780#define HAVE_LIBNETWORK 1
7781_ACEOF
7782
7783  LIBS="-lnetwork $LIBS"
7784
7785fi
7786
7787  else
7788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7789$as_echo_n "checking for socket in -lsocket... " >&6; }
7790if ${ac_cv_lib_socket_socket+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  ac_check_lib_save_LIBS=$LIBS
7794LIBS="-lsocket  $LIBS"
7795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h.  */
7797
7798/* Override any GCC internal prototype to avoid an error.
7799   Use char because int might match the return type of a GCC
7800   builtin and then its argument prototype would still apply.  */
7801#ifdef __cplusplus
7802extern "C"
7803#endif
7804char socket ();
7805int
7806main ()
7807{
7808return socket ();
7809  ;
7810  return 0;
7811}
7812_ACEOF
7813if ac_fn_c_try_link "$LINENO"; then :
7814  ac_cv_lib_socket_socket=yes
7815else
7816  ac_cv_lib_socket_socket=no
7817fi
7818rm -f core conftest.err conftest.$ac_objext \
7819    conftest$ac_exeext conftest.$ac_ext
7820LIBS=$ac_check_lib_save_LIBS
7821fi
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7823$as_echo "$ac_cv_lib_socket_socket" >&6; }
7824if test "x$ac_cv_lib_socket_socket" = xyes; then :
7825  cat >>confdefs.h <<_ACEOF
7826#define HAVE_LIBSOCKET 1
7827_ACEOF
7828
7829  LIBS="-lsocket $LIBS"
7830
7831fi
7832
7833  fi
7834
7835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv6 networking is possible" >&5
7836$as_echo_n "checking whether compiling with IPv6 networking is possible... " >&6; }
7837if ${vim_cv_ipv6_networking+:} false; then :
7838  $as_echo_n "(cached) " >&6
7839else
7840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h.  */
7842
7843#include <stdio.h>
7844#include <stdlib.h>
7845#include <stdarg.h>
7846#include <fcntl.h>
7847#include <netdb.h>
7848#include <netinet/in.h>
7849#include <errno.h>
7850#include <sys/types.h>
7851#include <sys/socket.h>
7852	/* Check bitfields */
7853	struct nbbuf {
7854	unsigned int  initDone:1;
7855	unsigned short signmaplen;
7856	};
7857
7858int
7859main ()
7860{
7861
7862		/* Check creating a socket. */
7863		struct sockaddr_in server;
7864		struct addrinfo *res;
7865		(void)socket(AF_INET, SOCK_STREAM, 0);
7866		(void)htons(100);
7867		(void)getaddrinfo("microsoft.com", NULL, NULL, &res);
7868		if (errno == ECONNREFUSED)
7869		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7870		(void)freeaddrinfo(res);
7871
7872  ;
7873  return 0;
7874}
7875_ACEOF
7876if ac_fn_c_try_link "$LINENO"; then :
7877  vim_cv_ipv6_networking="yes"
7878else
7879  vim_cv_ipv6_networking="no"
7880fi
7881rm -f core conftest.err conftest.$ac_objext \
7882    conftest$ac_exeext conftest.$ac_ext
7883fi
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv6_networking" >&5
7885$as_echo "$vim_cv_ipv6_networking" >&6; }
7886
7887  if test "x$vim_cv_ipv6_networking" = "xyes"; then
7888    $as_echo "#define FEAT_IPV6 1" >>confdefs.h
7889
7890    for ac_func in inet_ntop
7891do :
7892  ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
7893if test "x$ac_cv_func_inet_ntop" = xyes; then :
7894  cat >>confdefs.h <<_ACEOF
7895#define HAVE_INET_NTOP 1
7896_ACEOF
7897
7898fi
7899done
7900
7901  else
7902        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7903$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7904if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7905  $as_echo_n "(cached) " >&6
7906else
7907  ac_check_lib_save_LIBS=$LIBS
7908LIBS="-lnsl  $LIBS"
7909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910/* end confdefs.h.  */
7911
7912/* Override any GCC internal prototype to avoid an error.
7913   Use char because int might match the return type of a GCC
7914   builtin and then its argument prototype would still apply.  */
7915#ifdef __cplusplus
7916extern "C"
7917#endif
7918char gethostbyname ();
7919int
7920main ()
7921{
7922return gethostbyname ();
7923  ;
7924  return 0;
7925}
7926_ACEOF
7927if ac_fn_c_try_link "$LINENO"; then :
7928  ac_cv_lib_nsl_gethostbyname=yes
7929else
7930  ac_cv_lib_nsl_gethostbyname=no
7931fi
7932rm -f core conftest.err conftest.$ac_objext \
7933    conftest$ac_exeext conftest.$ac_ext
7934LIBS=$ac_check_lib_save_LIBS
7935fi
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7937$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7938if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7939  cat >>confdefs.h <<_ACEOF
7940#define HAVE_LIBNSL 1
7941_ACEOF
7942
7943  LIBS="-lnsl $LIBS"
7944
7945fi
7946
7947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv4 networking is possible" >&5
7948$as_echo_n "checking whether compiling with IPv4 networking is possible... " >&6; }
7949if ${vim_cv_ipv4_networking+:} false; then :
7950  $as_echo_n "(cached) " >&6
7951else
7952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h.  */
7954
7955#include <stdio.h>
7956#include <stdlib.h>
7957#include <stdarg.h>
7958#include <fcntl.h>
7959#include <netdb.h>
7960#include <netinet/in.h>
7961#include <errno.h>
7962#include <sys/types.h>
7963#include <sys/socket.h>
7964	/* Check bitfields */
7965	struct nbbuf {
7966	unsigned int  initDone:1;
7967	unsigned short signmaplen;
7968	};
7969
7970int
7971main ()
7972{
7973
7974		/* Check creating a socket. */
7975		struct sockaddr_in server;
7976		(void)socket(AF_INET, SOCK_STREAM, 0);
7977		(void)htons(100);
7978		(void)gethostbyname("microsoft.com");
7979		if (errno == ECONNREFUSED)
7980		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7981
7982  ;
7983  return 0;
7984}
7985_ACEOF
7986if ac_fn_c_try_link "$LINENO"; then :
7987  vim_cv_ipv4_networking="yes"
7988else
7989  vim_cv_ipv4_networking="no"; enable_netbeans="no"; enable_channel="no"
7990fi
7991rm -f core conftest.err conftest.$ac_objext \
7992    conftest$ac_exeext conftest.$ac_ext
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv4_networking" >&5
7995$as_echo "$vim_cv_ipv4_networking" >&6; }
7996  fi
7997fi
7998if test "$enable_netbeans" = "yes"; then
7999  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
8000
8001  NETBEANS_SRC="netbeans.c"
8002
8003  NETBEANS_OBJ="objects/netbeans.o"
8004
8005fi
8006if test "$enable_channel" = "yes"; then
8007  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
8008
8009  CHANNEL_SRC="channel.c"
8010
8011  CHANNEL_OBJ="objects/channel.o"
8012
8013fi
8014
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
8016$as_echo_n "checking --enable-terminal argument... " >&6; }
8017# Check whether --enable-terminal was given.
8018if test "${enable_terminal+set}" = set; then :
8019  enableval=$enable_terminal;
8020else
8021  enable_terminal="auto"
8022fi
8023
8024if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
8025  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
8026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
8027$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
8028    enable_terminal="no"
8029  else
8030    if test "$enable_terminal" = "auto"; then
8031      enable_terminal="yes"
8032      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
8033$as_echo "defaulting to yes" >&6; }
8034    else
8035      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8036$as_echo "yes" >&6; }
8037    fi
8038  fi
8039else
8040  if test "$enable_terminal" = "auto"; then
8041    enable_terminal="no"
8042    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
8043$as_echo "defaulting to no" >&6; }
8044  else
8045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047  fi
8048fi
8049if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then
8050  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
8051
8052  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"
8053
8054  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"
8055
8056  TERM_TEST="test_libvterm"
8057
8058fi
8059
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5
8061$as_echo_n "checking --enable-autoservername argument... " >&6; }
8062# Check whether --enable-autoservername was given.
8063if test "${enable_autoservername+set}" = set; then :
8064  enableval=$enable_autoservername;
8065else
8066  enable_autoservername="no"
8067fi
8068
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5
8070$as_echo "$enable_autoservername" >&6; }
8071if test "$enable_autoservername" = "yes"; then
8072  $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h
8073
8074fi
8075
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
8077$as_echo_n "checking --enable-multibyte argument... " >&6; }
8078# Check whether --enable-multibyte was given.
8079if test "${enable_multibyte+set}" = set; then :
8080  enableval=$enable_multibyte;
8081else
8082  enable_multibyte="yes"
8083fi
8084
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
8086$as_echo "$enable_multibyte" >&6; }
8087if test "$enable_multibyte" != "yes"; then
8088  as_fn_error $? "The multi-byte feature can no longer be disabled. If you have
8089		a problem with this, discuss on the Vim mailing list." "$LINENO" 5
8090fi
8091
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5
8093$as_echo_n "checking --disable-rightleft argument... " >&6; }
8094# Check whether --enable-rightleft was given.
8095if test "${enable_rightleft+set}" = set; then :
8096  enableval=$enable_rightleft;
8097else
8098  enable_rightleft="yes"
8099fi
8100
8101if test "$enable_rightleft" = "yes"; then
8102	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
8104else
8105	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8106$as_echo "yes" >&6; }
8107	$as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h
8108
8109fi
8110
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5
8112$as_echo_n "checking --disable-arabic argument... " >&6; }
8113# Check whether --enable-arabic was given.
8114if test "${enable_arabic+set}" = set; then :
8115  enableval=$enable_arabic;
8116else
8117  enable_arabic="yes"
8118fi
8119
8120if test "$enable_arabic" = "yes"; then
8121	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122$as_echo "no" >&6; }
8123else
8124	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8125$as_echo "yes" >&6; }
8126	$as_echo "#define DISABLE_ARABIC 1" >>confdefs.h
8127
8128fi
8129
8130# Check whether --enable-farsi was given.
8131if test "${enable_farsi+set}" = set; then :
8132  enableval=$enable_farsi;
8133fi
8134
8135
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
8137$as_echo_n "checking --enable-xim argument... " >&6; }
8138# Check whether --enable-xim was given.
8139if test "${enable_xim+set}" = set; then :
8140  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
8141$as_echo "$enable_xim" >&6; }
8142else
8143  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
8144$as_echo "defaulting to auto" >&6; }
8145fi
8146
8147
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
8149$as_echo_n "checking --enable-fontset argument... " >&6; }
8150# Check whether --enable-fontset was given.
8151if test "${enable_fontset+set}" = set; then :
8152  enableval=$enable_fontset;
8153else
8154  enable_fontset="no"
8155fi
8156
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
8158$as_echo "$enable_fontset" >&6; }
8159
8160test -z "$with_x" && with_x=yes
8161test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
8162if test "$with_x" = no; then
8163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
8164$as_echo "defaulting to: don't HAVE_X11" >&6; }
8165else
8166
8167  # Extract the first word of "xmkmf", so it can be a program name with args.
8168set dummy xmkmf; ac_word=$2
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170$as_echo_n "checking for $ac_word... " >&6; }
8171if ${ac_cv_path_xmkmfpath+:} false; then :
8172  $as_echo_n "(cached) " >&6
8173else
8174  case $xmkmfpath in
8175  [\\/]* | ?:[\\/]*)
8176  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
8177  ;;
8178  *)
8179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182  IFS=$as_save_IFS
8183  test -z "$as_dir" && as_dir=.
8184    for ac_exec_ext in '' $ac_executable_extensions; do
8185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
8187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188    break 2
8189  fi
8190done
8191  done
8192IFS=$as_save_IFS
8193
8194  ;;
8195esac
8196fi
8197xmkmfpath=$ac_cv_path_xmkmfpath
8198if test -n "$xmkmfpath"; then
8199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
8200$as_echo "$xmkmfpath" >&6; }
8201else
8202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203$as_echo "no" >&6; }
8204fi
8205
8206
8207
8208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8209$as_echo_n "checking for X... " >&6; }
8210
8211
8212# Check whether --with-x was given.
8213if test "${with_x+set}" = set; then :
8214  withval=$with_x;
8215fi
8216
8217# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8218if test "x$with_x" = xno; then
8219  # The user explicitly disabled X.
8220  have_x=disabled
8221else
8222  case $x_includes,$x_libraries in #(
8223    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8224    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  # One or both of the vars are not set, and there is no cached value.
8228ac_x_includes=no ac_x_libraries=no
8229rm -f -r conftest.dir
8230if mkdir conftest.dir; then
8231  cd conftest.dir
8232  cat >Imakefile <<'_ACEOF'
8233incroot:
8234	@echo incroot='${INCROOT}'
8235usrlibdir:
8236	@echo usrlibdir='${USRLIBDIR}'
8237libdir:
8238	@echo libdir='${LIBDIR}'
8239_ACEOF
8240  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8241    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8242    for ac_var in incroot usrlibdir libdir; do
8243      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8244    done
8245    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8246    for ac_extension in a so sl dylib la dll; do
8247      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8248	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8249	ac_im_usrlibdir=$ac_im_libdir; break
8250      fi
8251    done
8252    # Screen out bogus values from the imake configuration.  They are
8253    # bogus both because they are the default anyway, and because
8254    # using them would break gcc on systems where it needs fixed includes.
8255    case $ac_im_incroot in
8256	/usr/include) ac_x_includes= ;;
8257	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8258    esac
8259    case $ac_im_usrlibdir in
8260	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8261	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8262    esac
8263  fi
8264  cd ..
8265  rm -f -r conftest.dir
8266fi
8267
8268# Standard set of common directories for X headers.
8269# Check X11 before X11Rn because it is often a symlink to the current release.
8270ac_x_header_dirs='
8271/usr/X11/include
8272/usr/X11R7/include
8273/usr/X11R6/include
8274/usr/X11R5/include
8275/usr/X11R4/include
8276
8277/usr/include/X11
8278/usr/include/X11R7
8279/usr/include/X11R6
8280/usr/include/X11R5
8281/usr/include/X11R4
8282
8283/usr/local/X11/include
8284/usr/local/X11R7/include
8285/usr/local/X11R6/include
8286/usr/local/X11R5/include
8287/usr/local/X11R4/include
8288
8289/usr/local/include/X11
8290/usr/local/include/X11R7
8291/usr/local/include/X11R6
8292/usr/local/include/X11R5
8293/usr/local/include/X11R4
8294
8295/usr/X386/include
8296/usr/x386/include
8297/usr/XFree86/include/X11
8298
8299/usr/include
8300/usr/local/include
8301/usr/unsupported/include
8302/usr/athena/include
8303/usr/local/x11r5/include
8304/usr/lpp/Xamples/include
8305
8306/usr/openwin/include
8307/usr/openwin/share/include'
8308
8309if test "$ac_x_includes" = no; then
8310  # Guess where to find include files, by looking for Xlib.h.
8311  # First, try using that file with no special directory specified.
8312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313/* end confdefs.h.  */
8314#include <X11/Xlib.h>
8315_ACEOF
8316if ac_fn_c_try_cpp "$LINENO"; then :
8317  # We can compile using X headers with no special include directory.
8318ac_x_includes=
8319else
8320  for ac_dir in $ac_x_header_dirs; do
8321  if test -r "$ac_dir/X11/Xlib.h"; then
8322    ac_x_includes=$ac_dir
8323    break
8324  fi
8325done
8326fi
8327rm -f conftest.err conftest.i conftest.$ac_ext
8328fi # $ac_x_includes = no
8329
8330if test "$ac_x_libraries" = no; then
8331  # Check for the libraries.
8332  # See if we find them without any special options.
8333  # Don't add to $LIBS permanently.
8334  ac_save_LIBS=$LIBS
8335  LIBS="-lX11 $LIBS"
8336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338#include <X11/Xlib.h>
8339int
8340main ()
8341{
8342XrmInitialize ()
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347if ac_fn_c_try_link "$LINENO"; then :
8348  LIBS=$ac_save_LIBS
8349# We can link X programs with no special library path.
8350ac_x_libraries=
8351else
8352  LIBS=$ac_save_LIBS
8353for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8354do
8355  # Don't even attempt the hair of trying to link an X program!
8356  for ac_extension in a so sl dylib la dll; do
8357    if test -r "$ac_dir/libX11.$ac_extension"; then
8358      ac_x_libraries=$ac_dir
8359      break 2
8360    fi
8361  done
8362done
8363fi
8364rm -f core conftest.err conftest.$ac_objext \
8365    conftest$ac_exeext conftest.$ac_ext
8366fi # $ac_x_libraries = no
8367
8368case $ac_x_includes,$ac_x_libraries in #(
8369  no,* | *,no | *\'*)
8370    # Didn't find X, or a directory has "'" in its name.
8371    ac_cv_have_x="have_x=no";; #(
8372  *)
8373    # Record where we found X for the cache.
8374    ac_cv_have_x="have_x=yes\
8375	ac_x_includes='$ac_x_includes'\
8376	ac_x_libraries='$ac_x_libraries'"
8377esac
8378fi
8379;; #(
8380    *) have_x=yes;;
8381  esac
8382  eval "$ac_cv_have_x"
8383fi # $with_x != no
8384
8385if test "$have_x" != yes; then
8386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8387$as_echo "$have_x" >&6; }
8388  no_x=yes
8389else
8390  # If each of the values was on the command line, it overrides each guess.
8391  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8392  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8393  # Update the cache value to reflect the command line values.
8394  ac_cv_have_x="have_x=yes\
8395	ac_x_includes='$x_includes'\
8396	ac_x_libraries='$x_libraries'"
8397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8398$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8399fi
8400
8401if test "$no_x" = yes; then
8402  # Not all programs may use this symbol, but it does not hurt to define it.
8403
8404$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8405
8406  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8407else
8408  if test -n "$x_includes"; then
8409    X_CFLAGS="$X_CFLAGS -I$x_includes"
8410  fi
8411
8412  # It would also be nice to do this for all -L options, not just this one.
8413  if test -n "$x_libraries"; then
8414    X_LIBS="$X_LIBS -L$x_libraries"
8415    # For Solaris; some versions of Sun CC require a space after -R and
8416    # others require no space.  Words are not sufficient . . . .
8417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8418$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8419    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8420    ac_xsave_c_werror_flag=$ac_c_werror_flag
8421    ac_c_werror_flag=yes
8422    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423/* end confdefs.h.  */
8424
8425int
8426main ()
8427{
8428
8429  ;
8430  return 0;
8431}
8432_ACEOF
8433if ac_fn_c_try_link "$LINENO"; then :
8434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435$as_echo "no" >&6; }
8436       X_LIBS="$X_LIBS -R$x_libraries"
8437else
8438  LIBS="$ac_xsave_LIBS -R $x_libraries"
8439       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440/* end confdefs.h.  */
8441
8442int
8443main ()
8444{
8445
8446  ;
8447  return 0;
8448}
8449_ACEOF
8450if ac_fn_c_try_link "$LINENO"; then :
8451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452$as_echo "yes" >&6; }
8453	  X_LIBS="$X_LIBS -R $x_libraries"
8454else
8455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8456$as_echo "neither works" >&6; }
8457fi
8458rm -f core conftest.err conftest.$ac_objext \
8459    conftest$ac_exeext conftest.$ac_ext
8460fi
8461rm -f core conftest.err conftest.$ac_objext \
8462    conftest$ac_exeext conftest.$ac_ext
8463    ac_c_werror_flag=$ac_xsave_c_werror_flag
8464    LIBS=$ac_xsave_LIBS
8465  fi
8466
8467  # Check for system-dependent libraries X programs must link with.
8468  # Do this before checking for the system-independent R6 libraries
8469  # (-lICE), since we may need -lsocket or whatever for X linking.
8470
8471  if test "$ISC" = yes; then
8472    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8473  else
8474    # Martyn Johnson says this is needed for Ultrix, if the X
8475    # libraries were built with DECnet support.  And Karl Berry says
8476    # the Alpha needs dnet_stub (dnet does not exist).
8477    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h.  */
8480
8481/* Override any GCC internal prototype to avoid an error.
8482   Use char because int might match the return type of a GCC
8483   builtin and then its argument prototype would still apply.  */
8484#ifdef __cplusplus
8485extern "C"
8486#endif
8487char XOpenDisplay ();
8488int
8489main ()
8490{
8491return XOpenDisplay ();
8492  ;
8493  return 0;
8494}
8495_ACEOF
8496if ac_fn_c_try_link "$LINENO"; then :
8497
8498else
8499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8500$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8501if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8502  $as_echo_n "(cached) " >&6
8503else
8504  ac_check_lib_save_LIBS=$LIBS
8505LIBS="-ldnet  $LIBS"
8506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507/* end confdefs.h.  */
8508
8509/* Override any GCC internal prototype to avoid an error.
8510   Use char because int might match the return type of a GCC
8511   builtin and then its argument prototype would still apply.  */
8512#ifdef __cplusplus
8513extern "C"
8514#endif
8515char dnet_ntoa ();
8516int
8517main ()
8518{
8519return dnet_ntoa ();
8520  ;
8521  return 0;
8522}
8523_ACEOF
8524if ac_fn_c_try_link "$LINENO"; then :
8525  ac_cv_lib_dnet_dnet_ntoa=yes
8526else
8527  ac_cv_lib_dnet_dnet_ntoa=no
8528fi
8529rm -f core conftest.err conftest.$ac_objext \
8530    conftest$ac_exeext conftest.$ac_ext
8531LIBS=$ac_check_lib_save_LIBS
8532fi
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8534$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8535if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8536  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8537fi
8538
8539    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8540      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8541$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8542if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8543  $as_echo_n "(cached) " >&6
8544else
8545  ac_check_lib_save_LIBS=$LIBS
8546LIBS="-ldnet_stub  $LIBS"
8547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548/* end confdefs.h.  */
8549
8550/* Override any GCC internal prototype to avoid an error.
8551   Use char because int might match the return type of a GCC
8552   builtin and then its argument prototype would still apply.  */
8553#ifdef __cplusplus
8554extern "C"
8555#endif
8556char dnet_ntoa ();
8557int
8558main ()
8559{
8560return dnet_ntoa ();
8561  ;
8562  return 0;
8563}
8564_ACEOF
8565if ac_fn_c_try_link "$LINENO"; then :
8566  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8567else
8568  ac_cv_lib_dnet_stub_dnet_ntoa=no
8569fi
8570rm -f core conftest.err conftest.$ac_objext \
8571    conftest$ac_exeext conftest.$ac_ext
8572LIBS=$ac_check_lib_save_LIBS
8573fi
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8575$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8576if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8577  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8578fi
8579
8580    fi
8581fi
8582rm -f core conftest.err conftest.$ac_objext \
8583    conftest$ac_exeext conftest.$ac_ext
8584    LIBS="$ac_xsave_LIBS"
8585
8586    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
8587    # to get the SysV transport functions.
8588    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8589    # needs -lnsl.
8590    # The nsl library prevents programs from opening the X display
8591    # on Irix 5.2, according to T.E. Dickey.
8592    # The functions gethostbyname, getservbyname, and inet_addr are
8593    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8594    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8595if test "x$ac_cv_func_gethostbyname" = xyes; then :
8596
8597fi
8598
8599    if test $ac_cv_func_gethostbyname = no; then
8600      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8601$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8602if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8603  $as_echo_n "(cached) " >&6
8604else
8605  ac_check_lib_save_LIBS=$LIBS
8606LIBS="-lnsl  $LIBS"
8607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608/* end confdefs.h.  */
8609
8610/* Override any GCC internal prototype to avoid an error.
8611   Use char because int might match the return type of a GCC
8612   builtin and then its argument prototype would still apply.  */
8613#ifdef __cplusplus
8614extern "C"
8615#endif
8616char gethostbyname ();
8617int
8618main ()
8619{
8620return gethostbyname ();
8621  ;
8622  return 0;
8623}
8624_ACEOF
8625if ac_fn_c_try_link "$LINENO"; then :
8626  ac_cv_lib_nsl_gethostbyname=yes
8627else
8628  ac_cv_lib_nsl_gethostbyname=no
8629fi
8630rm -f core conftest.err conftest.$ac_objext \
8631    conftest$ac_exeext conftest.$ac_ext
8632LIBS=$ac_check_lib_save_LIBS
8633fi
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8635$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8636if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8637  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8638fi
8639
8640      if test $ac_cv_lib_nsl_gethostbyname = no; then
8641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8642$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8643if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  ac_check_lib_save_LIBS=$LIBS
8647LIBS="-lbsd  $LIBS"
8648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649/* end confdefs.h.  */
8650
8651/* Override any GCC internal prototype to avoid an error.
8652   Use char because int might match the return type of a GCC
8653   builtin and then its argument prototype would still apply.  */
8654#ifdef __cplusplus
8655extern "C"
8656#endif
8657char gethostbyname ();
8658int
8659main ()
8660{
8661return gethostbyname ();
8662  ;
8663  return 0;
8664}
8665_ACEOF
8666if ac_fn_c_try_link "$LINENO"; then :
8667  ac_cv_lib_bsd_gethostbyname=yes
8668else
8669  ac_cv_lib_bsd_gethostbyname=no
8670fi
8671rm -f core conftest.err conftest.$ac_objext \
8672    conftest$ac_exeext conftest.$ac_ext
8673LIBS=$ac_check_lib_save_LIBS
8674fi
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8676$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8677if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8678  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8679fi
8680
8681      fi
8682    fi
8683
8684    # [email protected] says without -lsocket,
8685    # socket/setsockopt and other routines are undefined under SCO ODT
8686    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8687    # on later versions), says Simon Leinen: it contains gethostby*
8688    # variants that don't use the name server (or something).  -lsocket
8689    # must be given before -lnsl if both are needed.  We assume that
8690    # if connect needs -lnsl, so does gethostbyname.
8691    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8692if test "x$ac_cv_func_connect" = xyes; then :
8693
8694fi
8695
8696    if test $ac_cv_func_connect = no; then
8697      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8698$as_echo_n "checking for connect in -lsocket... " >&6; }
8699if ${ac_cv_lib_socket_connect+:} false; then :
8700  $as_echo_n "(cached) " >&6
8701else
8702  ac_check_lib_save_LIBS=$LIBS
8703LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h.  */
8706
8707/* Override any GCC internal prototype to avoid an error.
8708   Use char because int might match the return type of a GCC
8709   builtin and then its argument prototype would still apply.  */
8710#ifdef __cplusplus
8711extern "C"
8712#endif
8713char connect ();
8714int
8715main ()
8716{
8717return connect ();
8718  ;
8719  return 0;
8720}
8721_ACEOF
8722if ac_fn_c_try_link "$LINENO"; then :
8723  ac_cv_lib_socket_connect=yes
8724else
8725  ac_cv_lib_socket_connect=no
8726fi
8727rm -f core conftest.err conftest.$ac_objext \
8728    conftest$ac_exeext conftest.$ac_ext
8729LIBS=$ac_check_lib_save_LIBS
8730fi
8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8732$as_echo "$ac_cv_lib_socket_connect" >&6; }
8733if test "x$ac_cv_lib_socket_connect" = xyes; then :
8734  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8735fi
8736
8737    fi
8738
8739    # Guillermo Gomez says -lposix is necessary on A/UX.
8740    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8741if test "x$ac_cv_func_remove" = xyes; then :
8742
8743fi
8744
8745    if test $ac_cv_func_remove = no; then
8746      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8747$as_echo_n "checking for remove in -lposix... " >&6; }
8748if ${ac_cv_lib_posix_remove+:} false; then :
8749  $as_echo_n "(cached) " >&6
8750else
8751  ac_check_lib_save_LIBS=$LIBS
8752LIBS="-lposix  $LIBS"
8753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754/* end confdefs.h.  */
8755
8756/* Override any GCC internal prototype to avoid an error.
8757   Use char because int might match the return type of a GCC
8758   builtin and then its argument prototype would still apply.  */
8759#ifdef __cplusplus
8760extern "C"
8761#endif
8762char remove ();
8763int
8764main ()
8765{
8766return remove ();
8767  ;
8768  return 0;
8769}
8770_ACEOF
8771if ac_fn_c_try_link "$LINENO"; then :
8772  ac_cv_lib_posix_remove=yes
8773else
8774  ac_cv_lib_posix_remove=no
8775fi
8776rm -f core conftest.err conftest.$ac_objext \
8777    conftest$ac_exeext conftest.$ac_ext
8778LIBS=$ac_check_lib_save_LIBS
8779fi
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8781$as_echo "$ac_cv_lib_posix_remove" >&6; }
8782if test "x$ac_cv_lib_posix_remove" = xyes; then :
8783  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8784fi
8785
8786    fi
8787
8788    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8789    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8790if test "x$ac_cv_func_shmat" = xyes; then :
8791
8792fi
8793
8794    if test $ac_cv_func_shmat = no; then
8795      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8796$as_echo_n "checking for shmat in -lipc... " >&6; }
8797if ${ac_cv_lib_ipc_shmat+:} false; then :
8798  $as_echo_n "(cached) " >&6
8799else
8800  ac_check_lib_save_LIBS=$LIBS
8801LIBS="-lipc  $LIBS"
8802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803/* end confdefs.h.  */
8804
8805/* Override any GCC internal prototype to avoid an error.
8806   Use char because int might match the return type of a GCC
8807   builtin and then its argument prototype would still apply.  */
8808#ifdef __cplusplus
8809extern "C"
8810#endif
8811char shmat ();
8812int
8813main ()
8814{
8815return shmat ();
8816  ;
8817  return 0;
8818}
8819_ACEOF
8820if ac_fn_c_try_link "$LINENO"; then :
8821  ac_cv_lib_ipc_shmat=yes
8822else
8823  ac_cv_lib_ipc_shmat=no
8824fi
8825rm -f core conftest.err conftest.$ac_objext \
8826    conftest$ac_exeext conftest.$ac_ext
8827LIBS=$ac_check_lib_save_LIBS
8828fi
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8830$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8831if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8832  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8833fi
8834
8835    fi
8836  fi
8837
8838  # Check for libraries that X11R6 Xt/Xaw programs need.
8839  ac_save_LDFLAGS=$LDFLAGS
8840  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8841  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8842  # check for ICE first), but we must link in the order -lSM -lICE or
8843  # we get undefined symbols.  So assume we have SM if we have ICE.
8844  # These have to be linked with before -lX11, unlike the other
8845  # libraries we check for below, so use a different variable.
8846  # John Interrante, Karl Berry
8847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8848$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8849if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8850  $as_echo_n "(cached) " >&6
8851else
8852  ac_check_lib_save_LIBS=$LIBS
8853LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855/* end confdefs.h.  */
8856
8857/* Override any GCC internal prototype to avoid an error.
8858   Use char because int might match the return type of a GCC
8859   builtin and then its argument prototype would still apply.  */
8860#ifdef __cplusplus
8861extern "C"
8862#endif
8863char IceConnectionNumber ();
8864int
8865main ()
8866{
8867return IceConnectionNumber ();
8868  ;
8869  return 0;
8870}
8871_ACEOF
8872if ac_fn_c_try_link "$LINENO"; then :
8873  ac_cv_lib_ICE_IceConnectionNumber=yes
8874else
8875  ac_cv_lib_ICE_IceConnectionNumber=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext \
8878    conftest$ac_exeext conftest.$ac_ext
8879LIBS=$ac_check_lib_save_LIBS
8880fi
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8882$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8883if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8884  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8885fi
8886
8887  LDFLAGS=$ac_save_LDFLAGS
8888
8889fi
8890
8891
8892        if test "$zOSUnix" = "yes"; then
8893    CFLAGS="$CFLAGS -W c,dll"
8894    LDFLAGS="$LDFLAGS -W l,dll"
8895    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8896  fi
8897
8898
8899  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8900    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8902$as_echo "Corrected X libraries to $x_libraries" >&6; }
8903    X_LIBS="$X_LIBS -L$x_libraries"
8904    if test "`(uname) 2>/dev/null`" = SunOS &&
8905					 uname -r | grep '^5' >/dev/null; then
8906      X_LIBS="$X_LIBS -R $x_libraries"
8907    fi
8908  fi
8909
8910  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8911    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8913$as_echo "Corrected X includes to $x_includes" >&6; }
8914    X_CFLAGS="$X_CFLAGS -I$x_includes"
8915  fi
8916
8917    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8918    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8919    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8920
8921
8922        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8923$as_echo_n "checking if X11 header files can be found... " >&6; }
8924  cflags_save=$CFLAGS
8925  CFLAGS="$CFLAGS $X_CFLAGS"
8926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927/* end confdefs.h.  */
8928#include <X11/Xlib.h>
8929#include <X11/Intrinsic.h>
8930int
8931main ()
8932{
8933
8934  ;
8935  return 0;
8936}
8937_ACEOF
8938if ac_fn_c_try_compile "$LINENO"; then :
8939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8940$as_echo "yes" >&6; }
8941else
8942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943$as_echo "no" >&6; }; no_x=yes
8944fi
8945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946  CFLAGS=$cflags_save
8947
8948  if test "${no_x-no}" = yes; then
8949    with_x=no
8950  else
8951    $as_echo "#define HAVE_X11 1" >>confdefs.h
8952
8953    X_LIB="-lXt -lX11";
8954
8955
8956    ac_save_LDFLAGS="$LDFLAGS"
8957    LDFLAGS="-L$x_libraries $LDFLAGS"
8958
8959            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8960$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8961if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8962  $as_echo_n "(cached) " >&6
8963else
8964  ac_check_lib_save_LIBS=$LIBS
8965LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967/* end confdefs.h.  */
8968
8969/* Override any GCC internal prototype to avoid an error.
8970   Use char because int might match the return type of a GCC
8971   builtin and then its argument prototype would still apply.  */
8972#ifdef __cplusplus
8973extern "C"
8974#endif
8975char _XdmcpAuthDoIt ();
8976int
8977main ()
8978{
8979return _XdmcpAuthDoIt ();
8980  ;
8981  return 0;
8982}
8983_ACEOF
8984if ac_fn_c_try_link "$LINENO"; then :
8985  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8986else
8987  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8988fi
8989rm -f core conftest.err conftest.$ac_objext \
8990    conftest$ac_exeext conftest.$ac_ext
8991LIBS=$ac_check_lib_save_LIBS
8992fi
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8994$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8995if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8996  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8997fi
8998
8999
9000                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
9001$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
9002if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
9003  $as_echo_n "(cached) " >&6
9004else
9005  ac_check_lib_save_LIBS=$LIBS
9006LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008/* end confdefs.h.  */
9009
9010/* Override any GCC internal prototype to avoid an error.
9011   Use char because int might match the return type of a GCC
9012   builtin and then its argument prototype would still apply.  */
9013#ifdef __cplusplus
9014extern "C"
9015#endif
9016char IceOpenConnection ();
9017int
9018main ()
9019{
9020return IceOpenConnection ();
9021  ;
9022  return 0;
9023}
9024_ACEOF
9025if ac_fn_c_try_link "$LINENO"; then :
9026  ac_cv_lib_ICE_IceOpenConnection=yes
9027else
9028  ac_cv_lib_ICE_IceOpenConnection=no
9029fi
9030rm -f core conftest.err conftest.$ac_objext \
9031    conftest$ac_exeext conftest.$ac_ext
9032LIBS=$ac_check_lib_save_LIBS
9033fi
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
9035$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
9036if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
9037  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
9038fi
9039
9040
9041        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
9042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
9043$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
9044if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
9045  $as_echo_n "(cached) " >&6
9046else
9047  ac_check_lib_save_LIBS=$LIBS
9048LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
9049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050/* end confdefs.h.  */
9051
9052/* Override any GCC internal prototype to avoid an error.
9053   Use char because int might match the return type of a GCC
9054   builtin and then its argument prototype would still apply.  */
9055#ifdef __cplusplus
9056extern "C"
9057#endif
9058char XpmCreatePixmapFromData ();
9059int
9060main ()
9061{
9062return XpmCreatePixmapFromData ();
9063  ;
9064  return 0;
9065}
9066_ACEOF
9067if ac_fn_c_try_link "$LINENO"; then :
9068  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
9069else
9070  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
9071fi
9072rm -f core conftest.err conftest.$ac_objext \
9073    conftest$ac_exeext conftest.$ac_ext
9074LIBS=$ac_check_lib_save_LIBS
9075fi
9076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
9077$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
9078if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
9079  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
9080fi
9081
9082
9083        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
9084$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
9085    cflags_save=$CFLAGS
9086        if test "$GCC" = yes; then
9087      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
9088    else
9089      CFLAGS="$CFLAGS $X_CFLAGS"
9090    fi
9091    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092/* end confdefs.h.  */
9093#include <X11/Xlib.h>
9094int
9095main ()
9096{
9097
9098  ;
9099  return 0;
9100}
9101_ACEOF
9102if ac_fn_c_try_compile "$LINENO"; then :
9103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104$as_echo "no" >&6; }
9105else
9106  CFLAGS="$CFLAGS -Wno-implicit-int"
9107	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108/* end confdefs.h.  */
9109#include <X11/Xlib.h>
9110int
9111main ()
9112{
9113
9114  ;
9115  return 0;
9116}
9117_ACEOF
9118if ac_fn_c_try_compile "$LINENO"; then :
9119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9120$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
9121else
9122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
9123$as_echo "test failed" >&6; }
9124
9125fi
9126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127
9128fi
9129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130    CFLAGS=$cflags_save
9131
9132    LDFLAGS="$ac_save_LDFLAGS"
9133
9134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
9135$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
9136    if ${ac_cv_small_wchar_t+:} false; then :
9137  $as_echo_n "(cached) " >&6
9138else
9139  if test "$cross_compiling" = yes; then :
9140  as_fn_error $? "failed to compile test program" "$LINENO" 5
9141else
9142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143/* end confdefs.h.  */
9144
9145#include <X11/Xlib.h>
9146#if STDC_HEADERS
9147# include <stdlib.h>
9148# include <stddef.h>
9149#endif
9150		main()
9151		{
9152		  if (sizeof(wchar_t) <= 2)
9153		    exit(1);
9154		  exit(0);
9155		}
9156_ACEOF
9157if ac_fn_c_try_run "$LINENO"; then :
9158  ac_cv_small_wchar_t="no"
9159else
9160  ac_cv_small_wchar_t="yes"
9161fi
9162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9163  conftest.$ac_objext conftest.beam conftest.$ac_ext
9164fi
9165
9166fi
9167
9168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
9169$as_echo "$ac_cv_small_wchar_t" >&6; }
9170    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
9171      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
9172
9173    fi
9174
9175  fi
9176fi
9177
9178if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then
9179    as_fn_error $? "could not configure X" "$LINENO" 5
9180fi
9181
9182test "x$with_x" = xno -a "x$HAIKU" != "xyes" -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
9183
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
9185$as_echo_n "checking --enable-gui argument... " >&6; }
9186# Check whether --enable-gui was given.
9187if test "${enable_gui+set}" = set; then :
9188  enableval=$enable_gui;
9189else
9190  enable_gui="auto"
9191fi
9192
9193
9194enable_gui_canon=`echo "_$enable_gui" | \
9195	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
9196
9197SKIP_GTK2=YES
9198SKIP_GTK3=YES
9199SKIP_GNOME=YES
9200SKIP_MOTIF=YES
9201SKIP_ATHENA=YES
9202SKIP_NEXTAW=YES
9203SKIP_PHOTON=YES
9204SKIP_HAIKU=YES
9205GUITYPE=NONE
9206
9207if test "x$HAIKU" = "xyes"; then
9208  SKIP_HAIKU=
9209  case "$enable_gui_canon" in
9210    no)     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9211$as_echo "no GUI support" >&6; }
9212            SKIP_HAIKU=YES ;;
9213    yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9214$as_echo "yes - automatic GUI support" >&6; } ;;
9215    auto)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
9216$as_echo "auto - automatic GUI support" >&6; } ;;
9217    haiku)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Haiku GUI support" >&5
9218$as_echo "Haiku GUI support" >&6; } ;;
9219    *)      { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9220$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9221            SKIP_HAIKU=YES ;;
9222    esac
9223elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
9224  SKIP_PHOTON=
9225  case "$enable_gui_canon" in
9226    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9227$as_echo "no GUI support" >&6; }
9228		SKIP_PHOTON=YES ;;
9229    yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5
9230$as_echo "automatic GUI support" >&6; }
9231    		gui_auto=yes ;;
9232    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
9233$as_echo "Photon GUI support" >&6; } ;;
9234    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9235$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9236		SKIP_PHOTON=YES ;;
9237  esac
9238
9239elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
9240  case "$enable_gui_canon" in
9241    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9242$as_echo "no GUI support" >&6; } ;;
9243    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9244$as_echo "yes - automatic GUI support" >&6; }
9245    		gui_auto=yes ;;
9246    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - disable GUI support for Mac OS" >&5
9247$as_echo "auto - disable GUI support for Mac OS" >&6; } ;;
9248    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9249$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
9250  esac
9251else
9252
9253  case "$enable_gui_canon" in
9254    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9255$as_echo "no GUI support" >&6; } ;;
9256    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
9257$as_echo "yes/auto - automatic GUI support" >&6; }
9258		gui_auto=yes
9259		SKIP_GTK2=
9260		SKIP_GNOME=
9261		SKIP_MOTIF=
9262		SKIP_ATHENA=
9263		SKIP_NEXTAW=;;
9264    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
9265$as_echo "GTK+ 2.x GUI support" >&6; }
9266		SKIP_GTK2=;;
9267    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
9268$as_echo "GNOME 2.x GUI support" >&6; }
9269		SKIP_GNOME=
9270		SKIP_GTK2=;;
9271    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
9272$as_echo "GTK+ 3.x GUI support" >&6; }
9273		SKIP_GTK3=;;
9274    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
9275$as_echo "Motif GUI support" >&6; }
9276		SKIP_MOTIF=;;
9277    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
9278$as_echo "Athena GUI support" >&6; }
9279		SKIP_ATHENA=;;
9280    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
9281$as_echo "neXtaw GUI support" >&6; }
9282		SKIP_NEXTAW=;;
9283    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9284$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
9285  esac
9286
9287fi
9288
9289if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
9290				-a "$enable_gui_canon" != "gnome2"; then
9291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
9292$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
9293  # Check whether --enable-gtk2-check was given.
9294if test "${enable_gtk2_check+set}" = set; then :
9295  enableval=$enable_gtk2_check;
9296else
9297  enable_gtk2_check="yes"
9298fi
9299
9300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
9301$as_echo "$enable_gtk2_check" >&6; }
9302  if test "x$enable_gtk2_check" = "xno"; then
9303    SKIP_GTK2=YES
9304    SKIP_GNOME=YES
9305  fi
9306fi
9307
9308if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
9309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
9310$as_echo_n "checking whether or not to look for GNOME... " >&6; }
9311  # Check whether --enable-gnome-check was given.
9312if test "${enable_gnome_check+set}" = set; then :
9313  enableval=$enable_gnome_check;
9314else
9315  enable_gnome_check="no"
9316fi
9317
9318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
9319$as_echo "$enable_gnome_check" >&6; }
9320  if test "x$enable_gnome_check" = "xno"; then
9321    SKIP_GNOME=YES
9322  fi
9323fi
9324
9325if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
9326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
9327$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
9328  # Check whether --enable-gtk3-check was given.
9329if test "${enable_gtk3_check+set}" = set; then :
9330  enableval=$enable_gtk3_check;
9331else
9332  enable_gtk3_check="yes"
9333fi
9334
9335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
9336$as_echo "$enable_gtk3_check" >&6; }
9337  if test "x$enable_gtk3_check" = "xno"; then
9338    SKIP_GTK3=YES
9339  fi
9340fi
9341
9342if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
9343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
9344$as_echo_n "checking whether or not to look for Motif... " >&6; }
9345  # Check whether --enable-motif-check was given.
9346if test "${enable_motif_check+set}" = set; then :
9347  enableval=$enable_motif_check;
9348else
9349  enable_motif_check="yes"
9350fi
9351
9352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
9353$as_echo "$enable_motif_check" >&6; }
9354  if test "x$enable_motif_check" = "xno"; then
9355    SKIP_MOTIF=YES
9356  fi
9357fi
9358
9359if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
9360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
9361$as_echo_n "checking whether or not to look for Athena... " >&6; }
9362  # Check whether --enable-athena-check was given.
9363if test "${enable_athena_check+set}" = set; then :
9364  enableval=$enable_athena_check;
9365else
9366  enable_athena_check="yes"
9367fi
9368
9369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
9370$as_echo "$enable_athena_check" >&6; }
9371  if test "x$enable_athena_check" = "xno"; then
9372    SKIP_ATHENA=YES
9373  fi
9374fi
9375
9376if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
9377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
9378$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
9379  # Check whether --enable-nextaw-check was given.
9380if test "${enable_nextaw_check+set}" = set; then :
9381  enableval=$enable_nextaw_check;
9382else
9383  enable_nextaw_check="yes"
9384fi
9385
9386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
9387$as_echo "$enable_nextaw_check" >&6; };
9388  if test "x$enable_nextaw_check" = "xno"; then
9389    SKIP_NEXTAW=YES
9390  fi
9391fi
9392
9393
9394
9395
9396
9397
9398
9399if test "X$PKG_CONFIG" = "X"; then
9400  if test -n "$ac_tool_prefix"; then
9401  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9402set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9404$as_echo_n "checking for $ac_word... " >&6; }
9405if ${ac_cv_path_PKG_CONFIG+:} false; then :
9406  $as_echo_n "(cached) " >&6
9407else
9408  case $PKG_CONFIG in
9409  [\\/]* | ?:[\\/]*)
9410  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9411  ;;
9412  *)
9413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414for as_dir in $PATH
9415do
9416  IFS=$as_save_IFS
9417  test -z "$as_dir" && as_dir=.
9418    for ac_exec_ext in '' $ac_executable_extensions; do
9419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9420    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9422    break 2
9423  fi
9424done
9425  done
9426IFS=$as_save_IFS
9427
9428  ;;
9429esac
9430fi
9431PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9432if test -n "$PKG_CONFIG"; then
9433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9434$as_echo "$PKG_CONFIG" >&6; }
9435else
9436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437$as_echo "no" >&6; }
9438fi
9439
9440
9441fi
9442if test -z "$ac_cv_path_PKG_CONFIG"; then
9443  ac_pt_PKG_CONFIG=$PKG_CONFIG
9444  # Extract the first word of "pkg-config", so it can be a program name with args.
9445set dummy pkg-config; ac_word=$2
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447$as_echo_n "checking for $ac_word... " >&6; }
9448if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9449  $as_echo_n "(cached) " >&6
9450else
9451  case $ac_pt_PKG_CONFIG in
9452  [\\/]* | ?:[\\/]*)
9453  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9454  ;;
9455  *)
9456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457for as_dir in $PATH
9458do
9459  IFS=$as_save_IFS
9460  test -z "$as_dir" && as_dir=.
9461    for ac_exec_ext in '' $ac_executable_extensions; do
9462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9463    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465    break 2
9466  fi
9467done
9468  done
9469IFS=$as_save_IFS
9470
9471  ;;
9472esac
9473fi
9474ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9475if test -n "$ac_pt_PKG_CONFIG"; then
9476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9477$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9478else
9479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480$as_echo "no" >&6; }
9481fi
9482
9483  if test "x$ac_pt_PKG_CONFIG" = x; then
9484    PKG_CONFIG="no"
9485  else
9486    case $cross_compiling:$ac_tool_warned in
9487yes:)
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9490ac_tool_warned=yes ;;
9491esac
9492    PKG_CONFIG=$ac_pt_PKG_CONFIG
9493  fi
9494else
9495  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9496fi
9497
9498fi
9499
9500
9501if test -z "$SKIP_GTK2"; then
9502
9503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9504$as_echo_n "checking --disable-gtktest argument... " >&6; }
9505  # Check whether --enable-gtktest was given.
9506if test "${enable_gtktest+set}" = set; then :
9507  enableval=$enable_gtktest;
9508else
9509  enable_gtktest=yes
9510fi
9511
9512  if test "x$enable_gtktest" = "xyes" ; then
9513    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9514$as_echo "gtk test enabled" >&6; }
9515  else
9516    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9517$as_echo "gtk test disabled" >&6; }
9518  fi
9519
9520  if test "x$PKG_CONFIG" != "xno"; then
9521
9522  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9523  {
9524    no_gtk=""
9525    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9526	  && $PKG_CONFIG --exists gtk+-2.0; then
9527    {
9528      min_gtk_version=2.2.0
9529      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9530$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9531                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9532      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9533      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9534      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9535	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9536      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9537	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9538      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9539	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9540    }
9541    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9542	  && $PKG_CONFIG --exists gtk+-3.0; then
9543    {
9544      min_gtk_version=2.2.0
9545      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9546$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9547
9548      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9549      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9550      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9551      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9552	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9553      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9554	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9555      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9556	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9557    }
9558    else
9559      no_gtk=yes
9560    fi
9561
9562    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9563    {
9564      ac_save_CFLAGS="$CFLAGS"
9565      ac_save_LIBS="$LIBS"
9566      CFLAGS="$CFLAGS $GTK_CFLAGS"
9567      LIBS="$LIBS $GTK_LIBS"
9568
9569                        rm -f conf.gtktest
9570      if test "$cross_compiling" = yes; then :
9571  echo $ac_n "cross compiling; assumed OK... $ac_c"
9572else
9573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574/* end confdefs.h.  */
9575
9576#include <gtk/gtk.h>
9577#include <stdio.h>
9578#if STDC_HEADERS
9579# include <stdlib.h>
9580# include <stddef.h>
9581#endif
9582
9583int
9584main ()
9585{
9586int major, minor, micro;
9587char *tmp_version;
9588
9589system ("touch conf.gtktest");
9590
9591/* HP/UX 9 (%@#!) writes to sscanf strings */
9592tmp_version = g_strdup("$min_gtk_version");
9593if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9594   printf("%s, bad version string\n", "$min_gtk_version");
9595   exit(1);
9596 }
9597
9598if ((gtk_major_version > major) ||
9599    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9600    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9601				     (gtk_micro_version >= micro)))
9602{
9603    return 0;
9604}
9605return 1;
9606}
9607
9608_ACEOF
9609if ac_fn_c_try_run "$LINENO"; then :
9610
9611else
9612  no_gtk=yes
9613fi
9614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9615  conftest.$ac_objext conftest.beam conftest.$ac_ext
9616fi
9617
9618      CFLAGS="$ac_save_CFLAGS"
9619      LIBS="$ac_save_LIBS"
9620    }
9621    fi
9622    if test "x$no_gtk" = x ; then
9623      if test "x$enable_gtktest" = "xyes"; then
9624	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9625$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9626      else
9627	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9628$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9629      fi
9630      GUI_LIB_LOC="$GTK_LIBDIR"
9631		 GTK_LIBNAME="$GTK_LIBS"
9632		GUI_INC_LOC="$GTK_CFLAGS"
9633    else
9634    {
9635      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636$as_echo "no" >&6; }
9637      GTK_CFLAGS=""
9638      GTK_LIBS=""
9639      :
9640      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9641	as_fn_error $? "could not configure GTK" "$LINENO" 5
9642      fi
9643    }
9644    fi
9645  }
9646  else
9647    GTK_CFLAGS=""
9648    GTK_LIBS=""
9649    :
9650  fi
9651
9652
9653  rm -f conf.gtktest
9654
9655    if test "x$GTK_CFLAGS" != "x"; then
9656      SKIP_GTK3=YES
9657      SKIP_ATHENA=YES
9658      SKIP_NEXTAW=YES
9659      SKIP_MOTIF=YES
9660      GUITYPE=GTK
9661
9662    fi
9663  fi
9664  if test "x$GUITYPE" = "xGTK"; then
9665                if test -z "$SKIP_GNOME"; then
9666    {
9667
9668
9669
9670
9671
9672
9673# Check whether --with-gnome-includes was given.
9674if test "${with_gnome_includes+set}" = set; then :
9675  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9676
9677fi
9678
9679
9680
9681# Check whether --with-gnome-libs was given.
9682if test "${with_gnome_libs+set}" = set; then :
9683  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9684
9685fi
9686
9687
9688
9689# Check whether --with-gnome was given.
9690if test "${with_gnome+set}" = set; then :
9691  withval=$with_gnome; if test x$withval = xyes; then
9692      want_gnome=yes
9693      have_gnome=yes
9694    else
9695      if test "x$withval" = xno; then
9696	want_gnome=no
9697      else
9698	want_gnome=yes
9699	LDFLAGS="$LDFLAGS -L$withval/lib"
9700	CFLAGS="$CFLAGS -I$withval/include"
9701	gnome_prefix=$withval/lib
9702      fi
9703    fi
9704else
9705  want_gnome=yes
9706fi
9707
9708
9709  if test "x$want_gnome" = xyes; then
9710  {
9711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9712$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9713    if $PKG_CONFIG --exists libgnomeui-2.0; then
9714      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9715$as_echo "yes" >&6; }
9716      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9717      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9718      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9719
9720                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9721$as_echo_n "checking for FreeBSD... " >&6; }
9722      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9723	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9724$as_echo "yes" >&6; }
9725	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9726	GNOME_LIBS="$GNOME_LIBS -pthread"
9727      else
9728	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729$as_echo "no" >&6; }
9730      fi
9731      have_gnome=yes
9732    else
9733      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9734$as_echo "not found" >&6; }
9735      if test "x" = xfail; then
9736	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9737      fi
9738    fi
9739  }
9740  fi
9741
9742      if test "x$have_gnome" = xyes ; then
9743	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9744
9745	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9746	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9747      fi
9748    }
9749    fi
9750  fi
9751fi
9752
9753
9754if test -z "$SKIP_GTK3"; then
9755
9756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9757$as_echo_n "checking --disable-gtktest argument... " >&6; }
9758  # Check whether --enable-gtktest was given.
9759if test "${enable_gtktest+set}" = set; then :
9760  enableval=$enable_gtktest;
9761else
9762  enable_gtktest=yes
9763fi
9764
9765  if test "x$enable_gtktest" = "xyes" ; then
9766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9767$as_echo "gtk test enabled" >&6; }
9768  else
9769    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9770$as_echo "gtk test disabled" >&6; }
9771  fi
9772
9773  if test "x$PKG_CONFIG" != "xno"; then
9774
9775  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9776  {
9777    no_gtk=""
9778    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9779	  && $PKG_CONFIG --exists gtk+-2.0; then
9780    {
9781      min_gtk_version=3.0.0
9782      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9783$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9784                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9785      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9786      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9787      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9788	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9789      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9790	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9791      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9792	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9793    }
9794    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9795	  && $PKG_CONFIG --exists gtk+-3.0; then
9796    {
9797      min_gtk_version=3.0.0
9798      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9799$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9800
9801      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9802      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9803      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9804      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9805	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9806      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9807	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9808      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9809	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9810    }
9811    else
9812      no_gtk=yes
9813    fi
9814
9815    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9816    {
9817      ac_save_CFLAGS="$CFLAGS"
9818      ac_save_LIBS="$LIBS"
9819      CFLAGS="$CFLAGS $GTK_CFLAGS"
9820      LIBS="$LIBS $GTK_LIBS"
9821
9822                        rm -f conf.gtktest
9823      if test "$cross_compiling" = yes; then :
9824  echo $ac_n "cross compiling; assumed OK... $ac_c"
9825else
9826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828
9829#include <gtk/gtk.h>
9830#include <stdio.h>
9831#if STDC_HEADERS
9832# include <stdlib.h>
9833# include <stddef.h>
9834#endif
9835
9836int
9837main ()
9838{
9839int major, minor, micro;
9840char *tmp_version;
9841
9842system ("touch conf.gtktest");
9843
9844/* HP/UX 9 (%@#!) writes to sscanf strings */
9845tmp_version = g_strdup("$min_gtk_version");
9846if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9847   printf("%s, bad version string\n", "$min_gtk_version");
9848   exit(1);
9849 }
9850
9851if ((gtk_major_version > major) ||
9852    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9853    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9854				     (gtk_micro_version >= micro)))
9855{
9856    return 0;
9857}
9858return 1;
9859}
9860
9861_ACEOF
9862if ac_fn_c_try_run "$LINENO"; then :
9863
9864else
9865  no_gtk=yes
9866fi
9867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9868  conftest.$ac_objext conftest.beam conftest.$ac_ext
9869fi
9870
9871      CFLAGS="$ac_save_CFLAGS"
9872      LIBS="$ac_save_LIBS"
9873    }
9874    fi
9875    if test "x$no_gtk" = x ; then
9876      if test "x$enable_gtktest" = "xyes"; then
9877	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9878$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9879      else
9880	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9881$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9882      fi
9883      GUI_LIB_LOC="$GTK_LIBDIR"
9884		 GTK_LIBNAME="$GTK_LIBS"
9885		GUI_INC_LOC="$GTK_CFLAGS"
9886    else
9887    {
9888      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889$as_echo "no" >&6; }
9890      GTK_CFLAGS=""
9891      GTK_LIBS=""
9892      :
9893      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9894	as_fn_error $? "could not configure GTK" "$LINENO" 5
9895      fi
9896    }
9897    fi
9898  }
9899  else
9900    GTK_CFLAGS=""
9901    GTK_LIBS=""
9902    :
9903  fi
9904
9905
9906  rm -f conf.gtktest
9907
9908    if test "x$GTK_CFLAGS" != "x"; then
9909      SKIP_GTK2=YES
9910      SKIP_GNOME=YES
9911      SKIP_ATHENA=YES
9912      SKIP_NEXTAW=YES
9913      SKIP_MOTIF=YES
9914      GUITYPE=GTK
9915
9916      $as_echo "#define USE_GTK3 1" >>confdefs.h
9917
9918    fi
9919  fi
9920fi
9921
9922if test "x$GUITYPE" = "xGTK"; then
9923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9924$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9925  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9926  if test "x$gdk_pixbuf_version" != x ; then
9927    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9928      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9929    if test "x$gdk_pixbuf_version_minor" != x -a \
9930	$gdk_pixbuf_version_minor -ge 31 ; then
9931      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
9932$as_echo "OK." >&6; }
9933      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
9934set dummy glib-compile-resources; ac_word=$2
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936$as_echo_n "checking for $ac_word... " >&6; }
9937if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
9938  $as_echo_n "(cached) " >&6
9939else
9940  case $GLIB_COMPILE_RESOURCES in
9941  [\\/]* | ?:[\\/]*)
9942  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
9943  ;;
9944  *)
9945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946for as_dir in $PATH
9947do
9948  IFS=$as_save_IFS
9949  test -z "$as_dir" && as_dir=.
9950    for ac_exec_ext in '' $ac_executable_extensions; do
9951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
9953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954    break 2
9955  fi
9956done
9957  done
9958IFS=$as_save_IFS
9959
9960  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
9961  ;;
9962esac
9963fi
9964GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
9965if test -n "$GLIB_COMPILE_RESOURCES"; then
9966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
9967$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
9968else
9969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970$as_echo "no" >&6; }
9971fi
9972
9973
9974      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
9975$as_echo_n "checking glib-compile-resources... " >&6; }
9976      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
9977	GLIB_COMPILE_RESOURCES=""
9978	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
9979$as_echo "cannot be found in PATH." >&6; }
9980      else
9981	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
9982$as_echo "usable." >&6; }
9983	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
9984
9985	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
9986	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
9987      fi
9988    else
9989      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
9990$as_echo "not usable." >&6; }
9991    fi
9992  else
9993    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
9994$as_echo "cannot obtain from pkg_config." >&6; }
9995  fi
9996
9997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
9998$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
9999  # Check whether --enable-icon_cache_update was given.
10000if test "${enable_icon_cache_update+set}" = set; then :
10001  enableval=$enable_icon_cache_update;
10002else
10003  enable_icon_cache_update="yes"
10004fi
10005
10006  if test "$enable_icon_cache_update" = "yes"; then
10007    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10008$as_echo "not set" >&6; }
10009    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
10010set dummy gtk-update-icon-cache; ac_word=$2
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012$as_echo_n "checking for $ac_word... " >&6; }
10013if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
10014  $as_echo_n "(cached) " >&6
10015else
10016  case $GTK_UPDATE_ICON_CACHE in
10017  [\\/]* | ?:[\\/]*)
10018  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
10019  ;;
10020  *)
10021  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024  IFS=$as_save_IFS
10025  test -z "$as_dir" && as_dir=.
10026    for ac_exec_ext in '' $ac_executable_extensions; do
10027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10028    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
10029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030    break 2
10031  fi
10032done
10033  done
10034IFS=$as_save_IFS
10035
10036  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
10037  ;;
10038esac
10039fi
10040GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
10041if test -n "$GTK_UPDATE_ICON_CACHE"; then
10042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
10043$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
10044else
10045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046$as_echo "no" >&6; }
10047fi
10048
10049
10050    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
10051      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10052$as_echo "not found in PATH." >&6; }
10053    fi
10054  else
10055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10056$as_echo "update disabled" >&6; }
10057  fi
10058
10059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
10060$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
10061  # Check whether --enable-desktop_database_update was given.
10062if test "${enable_desktop_database_update+set}" = set; then :
10063  enableval=$enable_desktop_database_update;
10064else
10065  enable_desktop_database_update="yes"
10066fi
10067
10068  if test "$enable_desktop_database_update" = "yes"; then
10069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10070$as_echo "not set" >&6; }
10071    # Extract the first word of "update-desktop-database", so it can be a program name with args.
10072set dummy update-desktop-database; ac_word=$2
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074$as_echo_n "checking for $ac_word... " >&6; }
10075if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
10076  $as_echo_n "(cached) " >&6
10077else
10078  case $UPDATE_DESKTOP_DATABASE in
10079  [\\/]* | ?:[\\/]*)
10080  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
10081  ;;
10082  *)
10083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086  IFS=$as_save_IFS
10087  test -z "$as_dir" && as_dir=.
10088    for ac_exec_ext in '' $ac_executable_extensions; do
10089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10090    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
10091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092    break 2
10093  fi
10094done
10095  done
10096IFS=$as_save_IFS
10097
10098  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
10099  ;;
10100esac
10101fi
10102UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
10103if test -n "$UPDATE_DESKTOP_DATABASE"; then
10104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
10105$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
10106else
10107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108$as_echo "no" >&6; }
10109fi
10110
10111
10112    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
10113      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10114$as_echo "not found in PATH." >&6; }
10115    fi
10116  else
10117    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10118$as_echo "update disabled" >&6; }
10119  fi
10120fi
10121
10122
10123
10124
10125
10126
10127
10128if test -z "$SKIP_MOTIF"; then
10129  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"
10130    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
10131
10132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
10133$as_echo_n "checking for location of Motif GUI includes... " >&6; }
10134  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
10135  GUI_INC_LOC=
10136  for try in $gui_includes; do
10137    if test -f "$try/Xm/Xm.h"; then
10138      GUI_INC_LOC=$try
10139    fi
10140  done
10141  if test -n "$GUI_INC_LOC"; then
10142    if test "$GUI_INC_LOC" = /usr/include; then
10143      GUI_INC_LOC=
10144      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10145$as_echo "in default path" >&6; }
10146    else
10147      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
10148$as_echo "$GUI_INC_LOC" >&6; }
10149    fi
10150  else
10151    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10152$as_echo "<not found>" >&6; }
10153    SKIP_MOTIF=YES
10154  fi
10155fi
10156
10157
10158if test -z "$SKIP_MOTIF"; then
10159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
10160$as_echo_n "checking --with-motif-lib argument... " >&6; }
10161
10162# Check whether --with-motif-lib was given.
10163if test "${with_motif_lib+set}" = set; then :
10164  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
10165fi
10166
10167
10168  if test -n "$MOTIF_LIBNAME"; then
10169    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
10170$as_echo "$MOTIF_LIBNAME" >&6; }
10171    GUI_LIB_LOC=
10172  else
10173    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174$as_echo "no" >&6; }
10175
10176        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
10177
10178            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
10179$as_echo_n "checking for location of Motif GUI libs... " >&6; }
10180    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"
10181    GUI_LIB_LOC=
10182    for try in $gui_libs; do
10183      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
10184	if test -f "$libtry"; then
10185	  GUI_LIB_LOC=$try
10186	fi
10187      done
10188    done
10189    if test -n "$GUI_LIB_LOC"; then
10190            if test "$GUI_LIB_LOC" = /usr/lib \
10191	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
10192	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
10193	GUI_LIB_LOC=
10194	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10195$as_echo "in default path" >&6; }
10196      else
10197	if test -n "$GUI_LIB_LOC"; then
10198	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
10199$as_echo "$GUI_LIB_LOC" >&6; }
10200	  if test "`(uname) 2>/dev/null`" = SunOS &&
10201					 uname -r | grep '^5' >/dev/null; then
10202	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
10203	  fi
10204	fi
10205      fi
10206      MOTIF_LIBNAME=-lXm
10207    else
10208      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10209$as_echo "<not found>" >&6; }
10210      SKIP_MOTIF=YES
10211    fi
10212  fi
10213fi
10214
10215if test -z "$SKIP_MOTIF"; then
10216  SKIP_ATHENA=YES
10217  SKIP_NEXTAW=YES
10218  GUITYPE=MOTIF
10219
10220fi
10221
10222
10223GUI_X_LIBS=
10224
10225if test -z "$SKIP_ATHENA"; then
10226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
10227$as_echo_n "checking if Athena header files can be found... " >&6; }
10228  cflags_save=$CFLAGS
10229  CFLAGS="$CFLAGS $X_CFLAGS"
10230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231/* end confdefs.h.  */
10232
10233#include <X11/Intrinsic.h>
10234#include <X11/Xaw/Paned.h>
10235int
10236main ()
10237{
10238
10239  ;
10240  return 0;
10241}
10242_ACEOF
10243if ac_fn_c_try_compile "$LINENO"; then :
10244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10245$as_echo "yes" >&6; }
10246else
10247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248$as_echo "no" >&6; }; SKIP_ATHENA=YES
10249fi
10250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10251  CFLAGS=$cflags_save
10252fi
10253
10254if test -z "$SKIP_ATHENA"; then
10255  GUITYPE=ATHENA
10256fi
10257
10258if test -z "$SKIP_NEXTAW"; then
10259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
10260$as_echo_n "checking if neXtaw header files can be found... " >&6; }
10261  cflags_save=$CFLAGS
10262  CFLAGS="$CFLAGS $X_CFLAGS"
10263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264/* end confdefs.h.  */
10265
10266#include <X11/Intrinsic.h>
10267#include <X11/neXtaw/Paned.h>
10268int
10269main ()
10270{
10271
10272  ;
10273  return 0;
10274}
10275_ACEOF
10276if ac_fn_c_try_compile "$LINENO"; then :
10277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10278$as_echo "yes" >&6; }
10279else
10280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }; SKIP_NEXTAW=YES
10282fi
10283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284  CFLAGS=$cflags_save
10285fi
10286
10287if test -z "$SKIP_NEXTAW"; then
10288  GUITYPE=NEXTAW
10289fi
10290
10291if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10292      if test -n "$GUI_INC_LOC"; then
10293    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
10294  fi
10295  if test -n "$GUI_LIB_LOC"; then
10296    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
10297  fi
10298
10299    ldflags_save=$LDFLAGS
10300  LDFLAGS="$X_LIBS $LDFLAGS"
10301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10302$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10303if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10304  $as_echo_n "(cached) " >&6
10305else
10306  ac_check_lib_save_LIBS=$LIBS
10307LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309/* end confdefs.h.  */
10310
10311/* Override any GCC internal prototype to avoid an error.
10312   Use char because int might match the return type of a GCC
10313   builtin and then its argument prototype would still apply.  */
10314#ifdef __cplusplus
10315extern "C"
10316#endif
10317char XShapeQueryExtension ();
10318int
10319main ()
10320{
10321return XShapeQueryExtension ();
10322  ;
10323  return 0;
10324}
10325_ACEOF
10326if ac_fn_c_try_link "$LINENO"; then :
10327  ac_cv_lib_Xext_XShapeQueryExtension=yes
10328else
10329  ac_cv_lib_Xext_XShapeQueryExtension=no
10330fi
10331rm -f core conftest.err conftest.$ac_objext \
10332    conftest$ac_exeext conftest.$ac_ext
10333LIBS=$ac_check_lib_save_LIBS
10334fi
10335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10336$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10337if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10338  GUI_X_LIBS="-lXext"
10339fi
10340
10341    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
10342$as_echo_n "checking for wslen in -lw... " >&6; }
10343if ${ac_cv_lib_w_wslen+:} false; then :
10344  $as_echo_n "(cached) " >&6
10345else
10346  ac_check_lib_save_LIBS=$LIBS
10347LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349/* end confdefs.h.  */
10350
10351/* Override any GCC internal prototype to avoid an error.
10352   Use char because int might match the return type of a GCC
10353   builtin and then its argument prototype would still apply.  */
10354#ifdef __cplusplus
10355extern "C"
10356#endif
10357char wslen ();
10358int
10359main ()
10360{
10361return wslen ();
10362  ;
10363  return 0;
10364}
10365_ACEOF
10366if ac_fn_c_try_link "$LINENO"; then :
10367  ac_cv_lib_w_wslen=yes
10368else
10369  ac_cv_lib_w_wslen=no
10370fi
10371rm -f core conftest.err conftest.$ac_objext \
10372    conftest$ac_exeext conftest.$ac_ext
10373LIBS=$ac_check_lib_save_LIBS
10374fi
10375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
10376$as_echo "$ac_cv_lib_w_wslen" >&6; }
10377if test "x$ac_cv_lib_w_wslen" = xyes; then :
10378  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
10379fi
10380
10381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10382$as_echo_n "checking for dlsym in -ldl... " >&6; }
10383if ${ac_cv_lib_dl_dlsym+:} false; then :
10384  $as_echo_n "(cached) " >&6
10385else
10386  ac_check_lib_save_LIBS=$LIBS
10387LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h.  */
10390
10391/* Override any GCC internal prototype to avoid an error.
10392   Use char because int might match the return type of a GCC
10393   builtin and then its argument prototype would still apply.  */
10394#ifdef __cplusplus
10395extern "C"
10396#endif
10397char dlsym ();
10398int
10399main ()
10400{
10401return dlsym ();
10402  ;
10403  return 0;
10404}
10405_ACEOF
10406if ac_fn_c_try_link "$LINENO"; then :
10407  ac_cv_lib_dl_dlsym=yes
10408else
10409  ac_cv_lib_dl_dlsym=no
10410fi
10411rm -f core conftest.err conftest.$ac_objext \
10412    conftest$ac_exeext conftest.$ac_ext
10413LIBS=$ac_check_lib_save_LIBS
10414fi
10415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10416$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10417if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10418  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
10419fi
10420
10421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
10422$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
10423if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
10424  $as_echo_n "(cached) " >&6
10425else
10426  ac_check_lib_save_LIBS=$LIBS
10427LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429/* end confdefs.h.  */
10430
10431/* Override any GCC internal prototype to avoid an error.
10432   Use char because int might match the return type of a GCC
10433   builtin and then its argument prototype would still apply.  */
10434#ifdef __cplusplus
10435extern "C"
10436#endif
10437char XmuCreateStippledPixmap ();
10438int
10439main ()
10440{
10441return XmuCreateStippledPixmap ();
10442  ;
10443  return 0;
10444}
10445_ACEOF
10446if ac_fn_c_try_link "$LINENO"; then :
10447  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
10448else
10449  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
10450fi
10451rm -f core conftest.err conftest.$ac_objext \
10452    conftest$ac_exeext conftest.$ac_ext
10453LIBS=$ac_check_lib_save_LIBS
10454fi
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
10456$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
10457if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
10458  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
10459fi
10460
10461  if test -z "$SKIP_MOTIF"; then
10462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
10463$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
10464if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
10465  $as_echo_n "(cached) " >&6
10466else
10467  ac_check_lib_save_LIBS=$LIBS
10468LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470/* end confdefs.h.  */
10471
10472/* Override any GCC internal prototype to avoid an error.
10473   Use char because int might match the return type of a GCC
10474   builtin and then its argument prototype would still apply.  */
10475#ifdef __cplusplus
10476extern "C"
10477#endif
10478char XpEndJob ();
10479int
10480main ()
10481{
10482return XpEndJob ();
10483  ;
10484  return 0;
10485}
10486_ACEOF
10487if ac_fn_c_try_link "$LINENO"; then :
10488  ac_cv_lib_Xp_XpEndJob=yes
10489else
10490  ac_cv_lib_Xp_XpEndJob=no
10491fi
10492rm -f core conftest.err conftest.$ac_objext \
10493    conftest$ac_exeext conftest.$ac_ext
10494LIBS=$ac_check_lib_save_LIBS
10495fi
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
10497$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10498if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
10499  GUI_X_LIBS="-lXp $GUI_X_LIBS"
10500fi
10501
10502  fi
10503  LDFLAGS=$ldflags_save
10504
10505    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
10506$as_echo_n "checking for extra X11 defines... " >&6; }
10507  NARROW_PROTO=
10508  rm -fr conftestdir
10509  if mkdir conftestdir; then
10510    cd conftestdir
10511    cat > Imakefile <<'EOF'
10512acfindx:
10513	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10514EOF
10515    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10516      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10517    fi
10518    cd ..
10519    rm -fr conftestdir
10520  fi
10521  if test -z "$NARROW_PROTO"; then
10522    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523$as_echo "no" >&6; }
10524  else
10525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
10526$as_echo "$NARROW_PROTO" >&6; }
10527  fi
10528
10529fi
10530
10531if test "$enable_xsmp" = "yes"; then
10532  cppflags_save=$CPPFLAGS
10533  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10534  for ac_header in X11/SM/SMlib.h
10535do :
10536  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10537if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
10538  cat >>confdefs.h <<_ACEOF
10539#define HAVE_X11_SM_SMLIB_H 1
10540_ACEOF
10541
10542fi
10543
10544done
10545
10546  CPPFLAGS=$cppflags_save
10547fi
10548
10549
10550if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
10551    cppflags_save=$CPPFLAGS
10552  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10553  for ac_header in X11/xpm.h X11/Sunkeysym.h
10554do :
10555  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10556ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10557if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10558  cat >>confdefs.h <<_ACEOF
10559#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10560_ACEOF
10561
10562fi
10563
10564done
10565
10566
10567    if test ! "$enable_xim" = "no"; then
10568    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
10569$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10570    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571/* end confdefs.h.  */
10572#include <X11/Xlib.h>
10573_ACEOF
10574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10575  $EGREP "XIMText" >/dev/null 2>&1; then :
10576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577$as_echo "yes" >&6; }
10578else
10579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10580$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10581fi
10582rm -f conftest*
10583
10584  fi
10585  CPPFLAGS=$cppflags_save
10586
10587    if test "$enable_xim" = "auto" -a "x$GUITYPE" != "xNONE" ; then
10588    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10589$as_echo "X GUI selected; xim has been enabled" >&6; }
10590    enable_xim="yes"
10591  fi
10592fi
10593
10594if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10595  cppflags_save=$CPPFLAGS
10596  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10598$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600/* end confdefs.h.  */
10601
10602#include <X11/Intrinsic.h>
10603#include <X11/Xmu/Editres.h>
10604int
10605main ()
10606{
10607int i; i = 0;
10608  ;
10609  return 0;
10610}
10611_ACEOF
10612if ac_fn_c_try_compile "$LINENO"; then :
10613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10614$as_echo "yes" >&6; }
10615		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10616
10617else
10618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619$as_echo "no" >&6; }
10620fi
10621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10622  CPPFLAGS=$cppflags_save
10623fi
10624
10625if test -z "$SKIP_MOTIF"; then
10626  cppflags_save=$CPPFLAGS
10627  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10628  if test "$zOSUnix" = "yes"; then
10629	xmheader="Xm/Xm.h"
10630  else
10631	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10632	   Xm/UnhighlightT.h Xm/Notebook.h"
10633  fi
10634  for ac_header in $xmheader
10635do :
10636  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10637ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10638if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10639  cat >>confdefs.h <<_ACEOF
10640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10641_ACEOF
10642
10643fi
10644
10645done
10646
10647
10648  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10649        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10650$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10651    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652/* end confdefs.h.  */
10653#include <Xm/XpmP.h>
10654int
10655main ()
10656{
10657XpmAttributes_21 attr;
10658  ;
10659  return 0;
10660}
10661_ACEOF
10662if ac_fn_c_try_compile "$LINENO"; then :
10663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10664$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10665
10666else
10667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10669
10670
10671fi
10672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673  else
10674    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10675
10676  fi
10677  CPPFLAGS=$cppflags_save
10678fi
10679
10680if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10682$as_echo "no GUI selected; xim has been disabled" >&6; }
10683  enable_xim="no"
10684fi
10685if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10687$as_echo "no GUI selected; fontset has been disabled" >&6; }
10688  enable_fontset="no"
10689fi
10690if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10692$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10693  enable_fontset="no"
10694fi
10695
10696if test -z "$SKIP_HAIKU"; then
10697  GUITYPE=HAIKUGUI
10698fi
10699
10700if test -z "$SKIP_PHOTON"; then
10701  GUITYPE=PHOTONGUI
10702fi
10703
10704
10705
10706
10707
10708
10709if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10710  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10711fi
10712
10713if test "$enable_xim" = "yes"; then
10714  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10715
10716fi
10717if test "$enable_fontset" = "yes"; then
10718  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10719
10720fi
10721
10722
10723
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10725$as_echo_n "checking for /proc link to executable... " >&6; }
10726if test -L "/proc/self/exe"; then
10727    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10728$as_echo "/proc/self/exe" >&6; }
10729  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10730
10731elif test -L "/proc/self/path/a.out"; then
10732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10733$as_echo "/proc/self/path/a.out" >&6; }
10734  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10735
10736elif test -L "/proc/curproc/file"; then
10737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10738$as_echo "/proc/curproc/file" >&6; }
10739  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10740
10741else
10742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743$as_echo "no" >&6; }
10744fi
10745
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10747$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10748case `uname` in
10749    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10750$as_echo "yes" >&6; }
10751                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10752$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10753                if test "x$with_x" = "xno" ; then
10754                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10755                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10756$as_echo "yes" >&6; }
10757                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10758
10759                else
10760                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10761$as_echo "no - using X11" >&6; }
10762                fi ;;
10763
10764    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765$as_echo "no" >&6; };;
10766esac
10767
10768
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10770$as_echo_n "checking whether toupper is broken... " >&6; }
10771if ${vim_cv_toupper_broken+:} false; then :
10772  $as_echo_n "(cached) " >&6
10773else
10774
10775    if test "$cross_compiling" = yes; then :
10776
10777    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10778
10779else
10780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781/* end confdefs.h.  */
10782
10783#include "confdefs.h"
10784#include <ctype.h>
10785#if STDC_HEADERS
10786# include <stdlib.h>
10787# include <stddef.h>
10788#endif
10789main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10790
10791_ACEOF
10792if ac_fn_c_try_run "$LINENO"; then :
10793
10794    vim_cv_toupper_broken=yes
10795
10796else
10797
10798    vim_cv_toupper_broken=no
10799
10800fi
10801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10802  conftest.$ac_objext conftest.beam conftest.$ac_ext
10803fi
10804
10805fi
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10807$as_echo "$vim_cv_toupper_broken" >&6; }
10808
10809if test "x$vim_cv_toupper_broken" = "xyes" ; then
10810  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10811
10812fi
10813
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10815$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817/* end confdefs.h.  */
10818#include <stdio.h>
10819int
10820main ()
10821{
10822printf("(" __DATE__ " " __TIME__ ")");
10823  ;
10824  return 0;
10825}
10826_ACEOF
10827if ac_fn_c_try_compile "$LINENO"; then :
10828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10829$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10830
10831else
10832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833$as_echo "no" >&6; }
10834fi
10835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10838$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840/* end confdefs.h.  */
10841#include <stdio.h>
10842int
10843main ()
10844{
10845int x __attribute__((unused));
10846  ;
10847  return 0;
10848}
10849_ACEOF
10850if ac_fn_c_try_compile "$LINENO"; then :
10851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10852$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10853
10854else
10855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856$as_echo "no" >&6; }
10857fi
10858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10859
10860ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10861if test "x$ac_cv_header_elf_h" = xyes; then :
10862  HAS_ELF=1
10863fi
10864
10865
10866if test "$HAS_ELF" = 1; then
10867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10868$as_echo_n "checking for main in -lelf... " >&6; }
10869if ${ac_cv_lib_elf_main+:} false; then :
10870  $as_echo_n "(cached) " >&6
10871else
10872  ac_check_lib_save_LIBS=$LIBS
10873LIBS="-lelf  $LIBS"
10874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875/* end confdefs.h.  */
10876
10877
10878int
10879main ()
10880{
10881return main ();
10882  ;
10883  return 0;
10884}
10885_ACEOF
10886if ac_fn_c_try_link "$LINENO"; then :
10887  ac_cv_lib_elf_main=yes
10888else
10889  ac_cv_lib_elf_main=no
10890fi
10891rm -f core conftest.err conftest.$ac_objext \
10892    conftest$ac_exeext conftest.$ac_ext
10893LIBS=$ac_check_lib_save_LIBS
10894fi
10895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10896$as_echo "$ac_cv_lib_elf_main" >&6; }
10897if test "x$ac_cv_lib_elf_main" = xyes; then :
10898  cat >>confdefs.h <<_ACEOF
10899#define HAVE_LIBELF 1
10900_ACEOF
10901
10902  LIBS="-lelf $LIBS"
10903
10904fi
10905
10906fi
10907
10908ac_header_dirent=no
10909for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10910  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10912$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10913if eval \${$as_ac_Header+:} false; then :
10914  $as_echo_n "(cached) " >&6
10915else
10916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10917/* end confdefs.h.  */
10918#include <sys/types.h>
10919#include <$ac_hdr>
10920
10921int
10922main ()
10923{
10924if ((DIR *) 0)
10925return 0;
10926  ;
10927  return 0;
10928}
10929_ACEOF
10930if ac_fn_c_try_compile "$LINENO"; then :
10931  eval "$as_ac_Header=yes"
10932else
10933  eval "$as_ac_Header=no"
10934fi
10935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936fi
10937eval ac_res=\$$as_ac_Header
10938	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10939$as_echo "$ac_res" >&6; }
10940if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10941  cat >>confdefs.h <<_ACEOF
10942#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10943_ACEOF
10944
10945ac_header_dirent=$ac_hdr; break
10946fi
10947
10948done
10949# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10950if test $ac_header_dirent = dirent.h; then
10951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10952$as_echo_n "checking for library containing opendir... " >&6; }
10953if ${ac_cv_search_opendir+:} false; then :
10954  $as_echo_n "(cached) " >&6
10955else
10956  ac_func_search_save_LIBS=$LIBS
10957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958/* end confdefs.h.  */
10959
10960/* Override any GCC internal prototype to avoid an error.
10961   Use char because int might match the return type of a GCC
10962   builtin and then its argument prototype would still apply.  */
10963#ifdef __cplusplus
10964extern "C"
10965#endif
10966char opendir ();
10967int
10968main ()
10969{
10970return opendir ();
10971  ;
10972  return 0;
10973}
10974_ACEOF
10975for ac_lib in '' dir; do
10976  if test -z "$ac_lib"; then
10977    ac_res="none required"
10978  else
10979    ac_res=-l$ac_lib
10980    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10981  fi
10982  if ac_fn_c_try_link "$LINENO"; then :
10983  ac_cv_search_opendir=$ac_res
10984fi
10985rm -f core conftest.err conftest.$ac_objext \
10986    conftest$ac_exeext
10987  if ${ac_cv_search_opendir+:} false; then :
10988  break
10989fi
10990done
10991if ${ac_cv_search_opendir+:} false; then :
10992
10993else
10994  ac_cv_search_opendir=no
10995fi
10996rm conftest.$ac_ext
10997LIBS=$ac_func_search_save_LIBS
10998fi
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11000$as_echo "$ac_cv_search_opendir" >&6; }
11001ac_res=$ac_cv_search_opendir
11002if test "$ac_res" != no; then :
11003  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11004
11005fi
11006
11007else
11008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11009$as_echo_n "checking for library containing opendir... " >&6; }
11010if ${ac_cv_search_opendir+:} false; then :
11011  $as_echo_n "(cached) " >&6
11012else
11013  ac_func_search_save_LIBS=$LIBS
11014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015/* end confdefs.h.  */
11016
11017/* Override any GCC internal prototype to avoid an error.
11018   Use char because int might match the return type of a GCC
11019   builtin and then its argument prototype would still apply.  */
11020#ifdef __cplusplus
11021extern "C"
11022#endif
11023char opendir ();
11024int
11025main ()
11026{
11027return opendir ();
11028  ;
11029  return 0;
11030}
11031_ACEOF
11032for ac_lib in '' x; do
11033  if test -z "$ac_lib"; then
11034    ac_res="none required"
11035  else
11036    ac_res=-l$ac_lib
11037    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11038  fi
11039  if ac_fn_c_try_link "$LINENO"; then :
11040  ac_cv_search_opendir=$ac_res
11041fi
11042rm -f core conftest.err conftest.$ac_objext \
11043    conftest$ac_exeext
11044  if ${ac_cv_search_opendir+:} false; then :
11045  break
11046fi
11047done
11048if ${ac_cv_search_opendir+:} false; then :
11049
11050else
11051  ac_cv_search_opendir=no
11052fi
11053rm conftest.$ac_ext
11054LIBS=$ac_func_search_save_LIBS
11055fi
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11057$as_echo "$ac_cv_search_opendir" >&6; }
11058ac_res=$ac_cv_search_opendir
11059if test "$ac_res" != no; then :
11060  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11061
11062fi
11063
11064fi
11065
11066
11067if test $ac_cv_header_sys_wait_h = no; then
11068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
11069$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071/* end confdefs.h.  */
11072#include <sys/wait.h>
11073int
11074main ()
11075{
11076union wait xx, yy; xx = yy
11077  ;
11078  return 0;
11079}
11080_ACEOF
11081if ac_fn_c_try_compile "$LINENO"; then :
11082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11083$as_echo "yes" >&6; }
11084			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11085
11086			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
11087
11088else
11089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090$as_echo "no" >&6; }
11091fi
11092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11093fi
11094
11095for ac_header in stdint.h stdlib.h string.h \
11096	sys/select.h sys/utsname.h termcap.h fcntl.h \
11097	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
11098	termio.h iconv.h inttypes.h langinfo.h math.h \
11099	unistd.h stropts.h errno.h sys/resource.h \
11100	sys/systeminfo.h locale.h sys/stream.h termios.h \
11101	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
11102	utime.h sys/param.h sys/ptms.h libintl.h libgen.h \
11103	util/debug.h util/msg18n.h frame.h sys/acl.h \
11104	sys/access.h sys/sysinfo.h wchar.h wctype.h
11105do :
11106  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11107ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11108if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11109  cat >>confdefs.h <<_ACEOF
11110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11111_ACEOF
11112
11113fi
11114
11115done
11116
11117
11118for ac_header in sys/ptem.h
11119do :
11120  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
11121#  include <sys/stream.h>
11122#endif
11123"
11124if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
11125  cat >>confdefs.h <<_ACEOF
11126#define HAVE_SYS_PTEM_H 1
11127_ACEOF
11128
11129fi
11130
11131done
11132
11133
11134for ac_header in sys/sysctl.h
11135do :
11136  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
11137#  include <sys/param.h>
11138#endif
11139"
11140if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
11141  cat >>confdefs.h <<_ACEOF
11142#define HAVE_SYS_SYSCTL_H 1
11143_ACEOF
11144
11145fi
11146
11147done
11148
11149
11150
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
11152$as_echo_n "checking for pthread_np.h... " >&6; }
11153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h.  */
11155
11156#include <pthread.h>
11157#include <pthread_np.h>
11158int
11159main ()
11160{
11161int i; i = 0;
11162  ;
11163  return 0;
11164}
11165_ACEOF
11166if ac_fn_c_try_compile "$LINENO"; then :
11167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168$as_echo "yes" >&6; }
11169		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
11170
11171else
11172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173$as_echo "no" >&6; }
11174fi
11175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176
11177for ac_header in strings.h
11178do :
11179  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
11180if test "x$ac_cv_header_strings_h" = xyes; then :
11181  cat >>confdefs.h <<_ACEOF
11182#define HAVE_STRINGS_H 1
11183_ACEOF
11184
11185fi
11186
11187done
11188
11189if test "x$MACOS_X" = "xyes"; then
11190    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11191
11192else
11193
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
11195$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11196cppflags_save=$CPPFLAGS
11197CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199/* end confdefs.h.  */
11200
11201#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11202# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11203			/* but don't do it on AIX 5.1 (Uribarri) */
11204#endif
11205#ifdef HAVE_XM_XM_H
11206# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11207#endif
11208#ifdef HAVE_STRING_H
11209# include <string.h>
11210#endif
11211#if defined(HAVE_STRINGS_H)
11212# include <strings.h>
11213#endif
11214
11215int
11216main ()
11217{
11218int i; i = 0;
11219  ;
11220  return 0;
11221}
11222_ACEOF
11223if ac_fn_c_try_compile "$LINENO"; then :
11224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11225$as_echo "yes" >&6; }
11226else
11227  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11228
11229		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
11231fi
11232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233CPPFLAGS=$cppflags_save
11234fi
11235
11236if test $ac_cv_c_compiler_gnu = yes; then
11237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11238$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11239if ${ac_cv_prog_gcc_traditional+:} false; then :
11240  $as_echo_n "(cached) " >&6
11241else
11242    ac_pattern="Autoconf.*'x'"
11243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244/* end confdefs.h.  */
11245#include <sgtty.h>
11246Autoconf TIOCGETP
11247_ACEOF
11248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11249  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11250  ac_cv_prog_gcc_traditional=yes
11251else
11252  ac_cv_prog_gcc_traditional=no
11253fi
11254rm -f conftest*
11255
11256
11257  if test $ac_cv_prog_gcc_traditional = no; then
11258    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259/* end confdefs.h.  */
11260#include <termio.h>
11261Autoconf TCGETA
11262_ACEOF
11263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11264  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11265  ac_cv_prog_gcc_traditional=yes
11266fi
11267rm -f conftest*
11268
11269  fi
11270fi
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11272$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11273  if test $ac_cv_prog_gcc_traditional = yes; then
11274    CC="$CC -traditional"
11275  fi
11276fi
11277
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11279$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11280if ${ac_cv_c_const+:} false; then :
11281  $as_echo_n "(cached) " >&6
11282else
11283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284/* end confdefs.h.  */
11285
11286int
11287main ()
11288{
11289
11290#ifndef __cplusplus
11291  /* Ultrix mips cc rejects this sort of thing.  */
11292  typedef int charset[2];
11293  const charset cs = { 0, 0 };
11294  /* SunOS 4.1.1 cc rejects this.  */
11295  char const *const *pcpcc;
11296  char **ppc;
11297  /* NEC SVR4.0.2 mips cc rejects this.  */
11298  struct point {int x, y;};
11299  static struct point const zero = {0,0};
11300  /* AIX XL C 1.02.0.0 rejects this.
11301     It does not let you subtract one const X* pointer from another in
11302     an arm of an if-expression whose if-part is not a constant
11303     expression */
11304  const char *g = "string";
11305  pcpcc = &g + (g ? g-g : 0);
11306  /* HPUX 7.0 cc rejects these. */
11307  ++pcpcc;
11308  ppc = (char**) pcpcc;
11309  pcpcc = (char const *const *) ppc;
11310  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11311    char tx;
11312    char *t = &tx;
11313    char const *s = 0 ? (char *) 0 : (char const *) 0;
11314
11315    *t++ = 0;
11316    if (s) return 0;
11317  }
11318  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11319    int x[] = {25, 17};
11320    const int *foo = &x[0];
11321    ++foo;
11322  }
11323  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11324    typedef const int *iptr;
11325    iptr p = 0;
11326    ++p;
11327  }
11328  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11329       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11330    struct s { int j; const int *ap[3]; } bx;
11331    struct s *b = &bx; b->j = 5;
11332  }
11333  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11334    const int foo = 10;
11335    if (!foo) return 0;
11336  }
11337  return !cs[0] && !zero.x;
11338#endif
11339
11340  ;
11341  return 0;
11342}
11343_ACEOF
11344if ac_fn_c_try_compile "$LINENO"; then :
11345  ac_cv_c_const=yes
11346else
11347  ac_cv_c_const=no
11348fi
11349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350fi
11351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11352$as_echo "$ac_cv_c_const" >&6; }
11353if test $ac_cv_c_const = no; then
11354
11355$as_echo "#define const /**/" >>confdefs.h
11356
11357fi
11358
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11360$as_echo_n "checking for working volatile... " >&6; }
11361if ${ac_cv_c_volatile+:} false; then :
11362  $as_echo_n "(cached) " >&6
11363else
11364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365/* end confdefs.h.  */
11366
11367int
11368main ()
11369{
11370
11371volatile int x;
11372int * volatile y = (int *) 0;
11373return !x && !y;
11374  ;
11375  return 0;
11376}
11377_ACEOF
11378if ac_fn_c_try_compile "$LINENO"; then :
11379  ac_cv_c_volatile=yes
11380else
11381  ac_cv_c_volatile=no
11382fi
11383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11384fi
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11386$as_echo "$ac_cv_c_volatile" >&6; }
11387if test $ac_cv_c_volatile = no; then
11388
11389$as_echo "#define volatile /**/" >>confdefs.h
11390
11391fi
11392
11393ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11394if test "x$ac_cv_type_mode_t" = xyes; then :
11395
11396else
11397
11398cat >>confdefs.h <<_ACEOF
11399#define mode_t int
11400_ACEOF
11401
11402fi
11403
11404ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11405if test "x$ac_cv_type_off_t" = xyes; then :
11406
11407else
11408
11409cat >>confdefs.h <<_ACEOF
11410#define off_t long int
11411_ACEOF
11412
11413fi
11414
11415ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11416if test "x$ac_cv_type_pid_t" = xyes; then :
11417
11418else
11419
11420cat >>confdefs.h <<_ACEOF
11421#define pid_t int
11422_ACEOF
11423
11424fi
11425
11426ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11427if test "x$ac_cv_type_size_t" = xyes; then :
11428
11429else
11430
11431cat >>confdefs.h <<_ACEOF
11432#define size_t unsigned int
11433_ACEOF
11434
11435fi
11436
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11438$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11439if ${ac_cv_type_uid_t+:} false; then :
11440  $as_echo_n "(cached) " >&6
11441else
11442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443/* end confdefs.h.  */
11444#include <sys/types.h>
11445
11446_ACEOF
11447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11448  $EGREP "uid_t" >/dev/null 2>&1; then :
11449  ac_cv_type_uid_t=yes
11450else
11451  ac_cv_type_uid_t=no
11452fi
11453rm -f conftest*
11454
11455fi
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11457$as_echo "$ac_cv_type_uid_t" >&6; }
11458if test $ac_cv_type_uid_t = no; then
11459
11460$as_echo "#define uid_t int" >>confdefs.h
11461
11462
11463$as_echo "#define gid_t int" >>confdefs.h
11464
11465fi
11466
11467ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11468case $ac_cv_c_uint32_t in #(
11469  no|yes) ;; #(
11470  *)
11471
11472$as_echo "#define _UINT32_T 1" >>confdefs.h
11473
11474
11475cat >>confdefs.h <<_ACEOF
11476#define uint32_t $ac_cv_c_uint32_t
11477_ACEOF
11478;;
11479  esac
11480
11481
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11483$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11484if ${ac_cv_header_time+:} false; then :
11485  $as_echo_n "(cached) " >&6
11486else
11487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488/* end confdefs.h.  */
11489#include <sys/types.h>
11490#include <sys/time.h>
11491#include <time.h>
11492
11493int
11494main ()
11495{
11496if ((struct tm *) 0)
11497return 0;
11498  ;
11499  return 0;
11500}
11501_ACEOF
11502if ac_fn_c_try_compile "$LINENO"; then :
11503  ac_cv_header_time=yes
11504else
11505  ac_cv_header_time=no
11506fi
11507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11508fi
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11510$as_echo "$ac_cv_header_time" >&6; }
11511if test $ac_cv_header_time = yes; then
11512
11513$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11514
11515fi
11516
11517ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
11518if test "x$ac_cv_type_ino_t" = xyes; then :
11519
11520else
11521
11522cat >>confdefs.h <<_ACEOF
11523#define ino_t long
11524_ACEOF
11525
11526fi
11527
11528ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
11529if test "x$ac_cv_type_dev_t" = xyes; then :
11530
11531else
11532
11533cat >>confdefs.h <<_ACEOF
11534#define dev_t unsigned
11535_ACEOF
11536
11537fi
11538
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11540$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11541if ${ac_cv_c_bigendian+:} false; then :
11542  $as_echo_n "(cached) " >&6
11543else
11544  ac_cv_c_bigendian=unknown
11545    # See if we're dealing with a universal compiler.
11546    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547/* end confdefs.h.  */
11548#ifndef __APPLE_CC__
11549	       not a universal capable compiler
11550	     #endif
11551	     typedef int dummy;
11552
11553_ACEOF
11554if ac_fn_c_try_compile "$LINENO"; then :
11555
11556	# Check for potential -arch flags.  It is not universal unless
11557	# there are at least two -arch flags with different values.
11558	ac_arch=
11559	ac_prev=
11560	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11561	 if test -n "$ac_prev"; then
11562	   case $ac_word in
11563	     i?86 | x86_64 | ppc | ppc64)
11564	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11565		 ac_arch=$ac_word
11566	       else
11567		 ac_cv_c_bigendian=universal
11568		 break
11569	       fi
11570	       ;;
11571	   esac
11572	   ac_prev=
11573	 elif test "x$ac_word" = "x-arch"; then
11574	   ac_prev=arch
11575	 fi
11576       done
11577fi
11578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579    if test $ac_cv_c_bigendian = unknown; then
11580      # See if sys/param.h defines the BYTE_ORDER macro.
11581      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582/* end confdefs.h.  */
11583#include <sys/types.h>
11584	     #include <sys/param.h>
11585
11586int
11587main ()
11588{
11589#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11590		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11591		     && LITTLE_ENDIAN)
11592	      bogus endian macros
11593	     #endif
11594
11595  ;
11596  return 0;
11597}
11598_ACEOF
11599if ac_fn_c_try_compile "$LINENO"; then :
11600  # It does; now see whether it defined to BIG_ENDIAN or not.
11601	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602/* end confdefs.h.  */
11603#include <sys/types.h>
11604		#include <sys/param.h>
11605
11606int
11607main ()
11608{
11609#if BYTE_ORDER != BIG_ENDIAN
11610		 not big endian
11611		#endif
11612
11613  ;
11614  return 0;
11615}
11616_ACEOF
11617if ac_fn_c_try_compile "$LINENO"; then :
11618  ac_cv_c_bigendian=yes
11619else
11620  ac_cv_c_bigendian=no
11621fi
11622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11623fi
11624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625    fi
11626    if test $ac_cv_c_bigendian = unknown; then
11627      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11628      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629/* end confdefs.h.  */
11630#include <limits.h>
11631
11632int
11633main ()
11634{
11635#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11636	      bogus endian macros
11637	     #endif
11638
11639  ;
11640  return 0;
11641}
11642_ACEOF
11643if ac_fn_c_try_compile "$LINENO"; then :
11644  # It does; now see whether it defined to _BIG_ENDIAN or not.
11645	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646/* end confdefs.h.  */
11647#include <limits.h>
11648
11649int
11650main ()
11651{
11652#ifndef _BIG_ENDIAN
11653		 not big endian
11654		#endif
11655
11656  ;
11657  return 0;
11658}
11659_ACEOF
11660if ac_fn_c_try_compile "$LINENO"; then :
11661  ac_cv_c_bigendian=yes
11662else
11663  ac_cv_c_bigendian=no
11664fi
11665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666fi
11667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668    fi
11669    if test $ac_cv_c_bigendian = unknown; then
11670      # Compile a test program.
11671      if test "$cross_compiling" = yes; then :
11672  # Try to guess by grepping values from an object file.
11673	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674/* end confdefs.h.  */
11675short int ascii_mm[] =
11676		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11677		short int ascii_ii[] =
11678		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11679		int use_ascii (int i) {
11680		  return ascii_mm[i] + ascii_ii[i];
11681		}
11682		short int ebcdic_ii[] =
11683		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11684		short int ebcdic_mm[] =
11685		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11686		int use_ebcdic (int i) {
11687		  return ebcdic_mm[i] + ebcdic_ii[i];
11688		}
11689		extern int foo;
11690
11691int
11692main ()
11693{
11694return use_ascii (foo) == use_ebcdic (foo);
11695  ;
11696  return 0;
11697}
11698_ACEOF
11699if ac_fn_c_try_compile "$LINENO"; then :
11700  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11701	      ac_cv_c_bigendian=yes
11702	    fi
11703	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11704	      if test "$ac_cv_c_bigendian" = unknown; then
11705		ac_cv_c_bigendian=no
11706	      else
11707		# finding both strings is unlikely to happen, but who knows?
11708		ac_cv_c_bigendian=unknown
11709	      fi
11710	    fi
11711fi
11712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11713else
11714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h.  */
11716$ac_includes_default
11717int
11718main ()
11719{
11720
11721	     /* Are we little or big endian?  From Harbison&Steele.  */
11722	     union
11723	     {
11724	       long int l;
11725	       char c[sizeof (long int)];
11726	     } u;
11727	     u.l = 1;
11728	     return u.c[sizeof (long int) - 1] == 1;
11729
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734if ac_fn_c_try_run "$LINENO"; then :
11735  ac_cv_c_bigendian=no
11736else
11737  ac_cv_c_bigendian=yes
11738fi
11739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11740  conftest.$ac_objext conftest.beam conftest.$ac_ext
11741fi
11742
11743    fi
11744fi
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11746$as_echo "$ac_cv_c_bigendian" >&6; }
11747 case $ac_cv_c_bigendian in #(
11748   yes)
11749     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11750;; #(
11751   no)
11752      ;; #(
11753   universal)
11754
11755$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11756
11757     ;; #(
11758   *)
11759     as_fn_error $? "unknown endianness
11760 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11761 esac
11762
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11764$as_echo_n "checking for inline... " >&6; }
11765if ${ac_cv_c_inline+:} false; then :
11766  $as_echo_n "(cached) " >&6
11767else
11768  ac_cv_c_inline=no
11769for ac_kw in inline __inline__ __inline; do
11770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771/* end confdefs.h.  */
11772#ifndef __cplusplus
11773typedef int foo_t;
11774static $ac_kw foo_t static_foo () {return 0; }
11775$ac_kw foo_t foo () {return 0; }
11776#endif
11777
11778_ACEOF
11779if ac_fn_c_try_compile "$LINENO"; then :
11780  ac_cv_c_inline=$ac_kw
11781fi
11782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783  test "$ac_cv_c_inline" != no && break
11784done
11785
11786fi
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11788$as_echo "$ac_cv_c_inline" >&6; }
11789
11790case $ac_cv_c_inline in
11791  inline | yes) ;;
11792  *)
11793    case $ac_cv_c_inline in
11794      no) ac_val=;;
11795      *) ac_val=$ac_cv_c_inline;;
11796    esac
11797    cat >>confdefs.h <<_ACEOF
11798#ifndef __cplusplus
11799#define inline $ac_val
11800#endif
11801_ACEOF
11802    ;;
11803esac
11804
11805
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11807$as_echo_n "checking for rlim_t... " >&6; }
11808if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11810$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11811else
11812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813/* end confdefs.h.  */
11814
11815#include <sys/types.h>
11816#if STDC_HEADERS
11817# include <stdlib.h>
11818# include <stddef.h>
11819#endif
11820#ifdef HAVE_SYS_RESOURCE_H
11821# include <sys/resource.h>
11822#endif
11823
11824_ACEOF
11825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11826  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11827  ac_cv_type_rlim_t=yes
11828else
11829  ac_cv_type_rlim_t=no
11830fi
11831rm -f conftest*
11832
11833	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11834$as_echo "$ac_cv_type_rlim_t" >&6; }
11835fi
11836if test $ac_cv_type_rlim_t = no; then
11837  cat >> confdefs.h <<\EOF
11838#define rlim_t unsigned long
11839EOF
11840fi
11841
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11843$as_echo_n "checking for stack_t... " >&6; }
11844if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11846$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11847else
11848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849/* end confdefs.h.  */
11850
11851#include <sys/types.h>
11852#if STDC_HEADERS
11853# include <stdlib.h>
11854# include <stddef.h>
11855#endif
11856#include <signal.h>
11857
11858_ACEOF
11859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11860  $EGREP "stack_t" >/dev/null 2>&1; then :
11861  ac_cv_type_stack_t=yes
11862else
11863  ac_cv_type_stack_t=no
11864fi
11865rm -f conftest*
11866
11867	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11868$as_echo "$ac_cv_type_stack_t" >&6; }
11869fi
11870if test $ac_cv_type_stack_t = no; then
11871  cat >> confdefs.h <<\EOF
11872#define stack_t struct sigaltstack
11873EOF
11874fi
11875
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11877$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879/* end confdefs.h.  */
11880
11881#include <sys/types.h>
11882#if STDC_HEADERS
11883# include <stdlib.h>
11884# include <stddef.h>
11885#endif
11886#include <signal.h>
11887#include "confdefs.h"
11888
11889int
11890main ()
11891{
11892stack_t sigstk; sigstk.ss_base = 0;
11893  ;
11894  return 0;
11895}
11896_ACEOF
11897if ac_fn_c_try_compile "$LINENO"; then :
11898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11900
11901else
11902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903$as_echo "no" >&6; }
11904fi
11905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906
11907olibs="$LIBS"
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11909$as_echo_n "checking --with-tlib argument... " >&6; }
11910
11911# Check whether --with-tlib was given.
11912if test "${with_tlib+set}" = set; then :
11913  withval=$with_tlib;
11914fi
11915
11916if test -n "$with_tlib"; then
11917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11918$as_echo "$with_tlib" >&6; }
11919  LIBS="$LIBS -l$with_tlib"
11920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11921$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923/* end confdefs.h.  */
11924
11925int
11926main ()
11927{
11928
11929  ;
11930  return 0;
11931}
11932_ACEOF
11933if ac_fn_c_try_link "$LINENO"; then :
11934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
11935$as_echo "OK" >&6; }
11936else
11937  as_fn_error $? "FAILED" "$LINENO" 5
11938fi
11939rm -f core conftest.err conftest.$ac_objext \
11940    conftest$ac_exeext conftest.$ac_ext
11941    olibs="$LIBS"
11942else
11943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
11944$as_echo "empty: automatic terminal library selection" >&6; }
11945                case "`uname -s 2>/dev/null`" in
11946	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
11947	*)	tlibs="tinfo ncurses termlib termcap curses";;
11948  esac
11949  for libname in $tlibs; do
11950    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
11952$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
11953if eval \${$as_ac_Lib+:} false; then :
11954  $as_echo_n "(cached) " >&6
11955else
11956  ac_check_lib_save_LIBS=$LIBS
11957LIBS="-l${libname}  $LIBS"
11958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959/* end confdefs.h.  */
11960
11961/* Override any GCC internal prototype to avoid an error.
11962   Use char because int might match the return type of a GCC
11963   builtin and then its argument prototype would still apply.  */
11964#ifdef __cplusplus
11965extern "C"
11966#endif
11967char tgetent ();
11968int
11969main ()
11970{
11971return tgetent ();
11972  ;
11973  return 0;
11974}
11975_ACEOF
11976if ac_fn_c_try_link "$LINENO"; then :
11977  eval "$as_ac_Lib=yes"
11978else
11979  eval "$as_ac_Lib=no"
11980fi
11981rm -f core conftest.err conftest.$ac_objext \
11982    conftest$ac_exeext conftest.$ac_ext
11983LIBS=$ac_check_lib_save_LIBS
11984fi
11985eval ac_res=\$$as_ac_Lib
11986	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11987$as_echo "$ac_res" >&6; }
11988if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11989  cat >>confdefs.h <<_ACEOF
11990#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11991_ACEOF
11992
11993  LIBS="-l${libname} $LIBS"
11994
11995fi
11996
11997    if test "x$olibs" != "x$LIBS"; then
11998                        if test "$cross_compiling" = yes; then :
11999  res="FAIL"
12000else
12001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002/* end confdefs.h.  */
12003
12004#ifdef HAVE_TERMCAP_H
12005# include <termcap.h>
12006#endif
12007#if STDC_HEADERS
12008# include <stdlib.h>
12009# include <stddef.h>
12010#endif
12011main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12012_ACEOF
12013if ac_fn_c_try_run "$LINENO"; then :
12014  res="OK"
12015else
12016  res="FAIL"
12017fi
12018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12019  conftest.$ac_objext conftest.beam conftest.$ac_ext
12020fi
12021
12022      if test "$res" = "OK"; then
12023	break
12024      fi
12025      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
12026$as_echo "$libname library is not usable" >&6; }
12027      LIBS="$olibs"
12028    fi
12029  done
12030  if test "x$olibs" = "x$LIBS"; then
12031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
12032$as_echo "no terminal library found" >&6; }
12033  fi
12034fi
12035
12036if test "x$olibs" = "x$LIBS"; then
12037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
12038$as_echo_n "checking for tgetent()... " >&6; }
12039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040/* end confdefs.h.  */
12041int tgetent(char *, const char *);
12042int
12043main ()
12044{
12045char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12046  ;
12047  return 0;
12048}
12049_ACEOF
12050if ac_fn_c_try_link "$LINENO"; then :
12051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12052$as_echo "yes" >&6; }
12053else
12054  as_fn_error $? "NOT FOUND!
12055      You need to install a terminal library; for example ncurses.
12056      Or specify the name of the library with --with-tlib." "$LINENO" 5
12057fi
12058rm -f core conftest.err conftest.$ac_objext \
12059    conftest$ac_exeext conftest.$ac_ext
12060fi
12061
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
12063$as_echo_n "checking whether we talk terminfo... " >&6; }
12064if ${vim_cv_terminfo+:} false; then :
12065  $as_echo_n "(cached) " >&6
12066else
12067
12068    if test "$cross_compiling" = yes; then :
12069
12070      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
12071
12072else
12073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074/* end confdefs.h.  */
12075
12076#include "confdefs.h"
12077#ifdef HAVE_TERMCAP_H
12078# include <termcap.h>
12079#endif
12080#ifdef HAVE_STRING_H
12081# include <string.h>
12082#endif
12083#if STDC_HEADERS
12084# include <stdlib.h>
12085# include <stddef.h>
12086#endif
12087main()
12088{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12089
12090_ACEOF
12091if ac_fn_c_try_run "$LINENO"; then :
12092
12093      vim_cv_terminfo=no
12094
12095else
12096
12097      vim_cv_terminfo=yes
12098
12099fi
12100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12101  conftest.$ac_objext conftest.beam conftest.$ac_ext
12102fi
12103
12104
12105fi
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
12107$as_echo "$vim_cv_terminfo" >&6; }
12108
12109if test "x$vim_cv_terminfo" = "xyes" ; then
12110  $as_echo "#define TERMINFO 1" >>confdefs.h
12111
12112fi
12113
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
12115$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12116if ${vim_cv_tgetent+:} false; then :
12117  $as_echo_n "(cached) " >&6
12118else
12119
12120    if test "$cross_compiling" = yes; then :
12121
12122      as_fn_error $? "failed to compile test program." "$LINENO" 5
12123
12124else
12125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126/* end confdefs.h.  */
12127
12128#include "confdefs.h"
12129#ifdef HAVE_TERMCAP_H
12130# include <termcap.h>
12131#endif
12132#if STDC_HEADERS
12133# include <stdlib.h>
12134# include <stddef.h>
12135#endif
12136main()
12137{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12138
12139_ACEOF
12140if ac_fn_c_try_run "$LINENO"; then :
12141
12142      vim_cv_tgetent=zero
12143
12144else
12145
12146      vim_cv_tgetent=non-zero
12147
12148fi
12149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12150  conftest.$ac_objext conftest.beam conftest.$ac_ext
12151fi
12152
12153
12154fi
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5
12156$as_echo "$vim_cv_tgetent" >&6; }
12157
12158if test "x$vim_cv_tgetent" = "xzero" ; then
12159  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
12160
12161fi
12162
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
12164$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166/* end confdefs.h.  */
12167
12168#ifdef HAVE_TERMCAP_H
12169# include <termcap.h>
12170#endif
12171
12172int
12173main ()
12174{
12175ospeed = 20000
12176  ;
12177  return 0;
12178}
12179_ACEOF
12180if ac_fn_c_try_link "$LINENO"; then :
12181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12182$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
12183
12184else
12185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186$as_echo "no" >&6; }
12187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
12188$as_echo_n "checking whether ospeed can be extern... " >&6; }
12189	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190/* end confdefs.h.  */
12191
12192#ifdef HAVE_TERMCAP_H
12193# include <termcap.h>
12194#endif
12195extern short ospeed;
12196
12197int
12198main ()
12199{
12200ospeed = 20000
12201  ;
12202  return 0;
12203}
12204_ACEOF
12205if ac_fn_c_try_link "$LINENO"; then :
12206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12207$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
12208
12209else
12210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211$as_echo "no" >&6; }
12212fi
12213rm -f core conftest.err conftest.$ac_objext \
12214    conftest$ac_exeext conftest.$ac_ext
12215
12216fi
12217rm -f core conftest.err conftest.$ac_objext \
12218    conftest$ac_exeext conftest.$ac_ext
12219
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
12221$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223/* end confdefs.h.  */
12224
12225#ifdef HAVE_TERMCAP_H
12226# include <termcap.h>
12227#endif
12228
12229int
12230main ()
12231{
12232if (UP == 0 && BC == 0) PC = 1
12233  ;
12234  return 0;
12235}
12236_ACEOF
12237if ac_fn_c_try_link "$LINENO"; then :
12238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12239$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
12240
12241else
12242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243$as_echo "no" >&6; }
12244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
12245$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
12246	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247/* end confdefs.h.  */
12248
12249#ifdef HAVE_TERMCAP_H
12250# include <termcap.h>
12251#endif
12252extern char *UP, *BC, PC;
12253
12254int
12255main ()
12256{
12257if (UP == 0 && BC == 0) PC = 1
12258  ;
12259  return 0;
12260}
12261_ACEOF
12262if ac_fn_c_try_link "$LINENO"; then :
12263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12264$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
12265
12266else
12267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
12269fi
12270rm -f core conftest.err conftest.$ac_objext \
12271    conftest$ac_exeext conftest.$ac_ext
12272
12273fi
12274rm -f core conftest.err conftest.$ac_objext \
12275    conftest$ac_exeext conftest.$ac_ext
12276
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
12278$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
12279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280/* end confdefs.h.  */
12281
12282#ifdef HAVE_TERMCAP_H
12283# include <termcap.h>
12284#endif
12285
12286int
12287main ()
12288{
12289extern int xx(); tputs("test", 1, (outfuntype)xx)
12290  ;
12291  return 0;
12292}
12293_ACEOF
12294if ac_fn_c_try_compile "$LINENO"; then :
12295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12296$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12305$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307/* end confdefs.h.  */
12308
12309#include <sys/types.h>
12310#include <sys/time.h>
12311#include <sys/select.h>
12312int
12313main ()
12314{
12315
12316  ;
12317  return 0;
12318}
12319_ACEOF
12320if ac_fn_c_try_compile "$LINENO"; then :
12321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322$as_echo "yes" >&6; }
12323			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12324
12325else
12326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327$as_echo "no" >&6; }
12328fi
12329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330
12331
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12333$as_echo_n "checking for /dev/ptc... " >&6; }
12334if test -r /dev/ptc; then
12335  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
12336
12337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12338$as_echo "yes" >&6; }
12339else
12340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; }
12342fi
12343
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
12345$as_echo_n "checking for SVR4 ptys... " >&6; }
12346if test -c /dev/ptmx ; then
12347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348/* end confdefs.h.  */
12349
12350int
12351main ()
12352{
12353ptsname(0);grantpt(0);unlockpt(0);
12354  ;
12355  return 0;
12356}
12357_ACEOF
12358if ac_fn_c_try_link "$LINENO"; then :
12359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12360$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
12361
12362else
12363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364$as_echo "no" >&6; }
12365fi
12366rm -f core conftest.err conftest.$ac_objext \
12367    conftest$ac_exeext conftest.$ac_ext
12368else
12369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370$as_echo "no" >&6; }
12371fi
12372
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
12374$as_echo_n "checking for ptyranges... " >&6; }
12375if test -d /dev/ptym ; then
12376  pdir='/dev/ptym'
12377else
12378  pdir='/dev'
12379fi
12380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381/* end confdefs.h.  */
12382#ifdef M_UNIX
12383   yes;
12384#endif
12385
12386_ACEOF
12387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12388  $EGREP "yes" >/dev/null 2>&1; then :
12389  ptys=`echo /dev/ptyp??`
12390else
12391  ptys=`echo $pdir/pty??`
12392fi
12393rm -f conftest*
12394
12395if test "$ptys" != "$pdir/pty??" ; then
12396  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12397  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12398  cat >>confdefs.h <<_ACEOF
12399#define PTYRANGE0 "$p0"
12400_ACEOF
12401
12402  cat >>confdefs.h <<_ACEOF
12403#define PTYRANGE1 "$p1"
12404_ACEOF
12405
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
12407$as_echo "$p0 / $p1" >&6; }
12408else
12409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
12410$as_echo "don't know" >&6; }
12411fi
12412
12413
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12415$as_echo_n "checking return type of signal handlers... " >&6; }
12416if ${ac_cv_type_signal+:} false; then :
12417  $as_echo_n "(cached) " >&6
12418else
12419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420/* end confdefs.h.  */
12421#include <sys/types.h>
12422#include <signal.h>
12423
12424int
12425main ()
12426{
12427return *(signal (0, 0)) (0) == 1;
12428  ;
12429  return 0;
12430}
12431_ACEOF
12432if ac_fn_c_try_compile "$LINENO"; then :
12433  ac_cv_type_signal=int
12434else
12435  ac_cv_type_signal=void
12436fi
12437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438fi
12439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12440$as_echo "$ac_cv_type_signal" >&6; }
12441
12442cat >>confdefs.h <<_ACEOF
12443#define RETSIGTYPE $ac_cv_type_signal
12444_ACEOF
12445
12446
12447
12448if test $ac_cv_type_signal = void; then
12449  $as_echo "#define SIGRETURN return" >>confdefs.h
12450
12451else
12452  $as_echo "#define SIGRETURN return 0" >>confdefs.h
12453
12454fi
12455
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
12457$as_echo_n "checking for struct sigcontext... " >&6; }
12458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459/* end confdefs.h.  */
12460
12461#include <signal.h>
12462test_sig()
12463{
12464    struct sigcontext *scont;
12465    scont = (struct sigcontext *)0;
12466    return 1;
12467}
12468int
12469main ()
12470{
12471
12472  ;
12473  return 0;
12474}
12475_ACEOF
12476if ac_fn_c_try_compile "$LINENO"; then :
12477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12478$as_echo "yes" >&6; }
12479		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12480
12481else
12482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483$as_echo "no" >&6; }
12484fi
12485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12488$as_echo_n "checking getcwd implementation is broken... " >&6; }
12489if ${vim_cv_getcwd_broken+:} false; then :
12490  $as_echo_n "(cached) " >&6
12491else
12492
12493    if test "$cross_compiling" = yes; then :
12494
12495      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12496
12497else
12498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499/* end confdefs.h.  */
12500
12501#include "confdefs.h"
12502#ifdef HAVE_UNISTD_H
12503#include <unistd.h>
12504#endif
12505char *dagger[] = { "IFS=pwd", 0 };
12506main()
12507{
12508  char buffer[500];
12509  extern char **environ;
12510  environ = dagger;
12511  return getcwd(buffer, 500) ? 0 : 1;
12512}
12513
12514_ACEOF
12515if ac_fn_c_try_run "$LINENO"; then :
12516
12517      vim_cv_getcwd_broken=no
12518
12519else
12520
12521      vim_cv_getcwd_broken=yes
12522
12523fi
12524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12525  conftest.$ac_objext conftest.beam conftest.$ac_ext
12526fi
12527
12528
12529fi
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12531$as_echo "$vim_cv_getcwd_broken" >&6; }
12532
12533if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12534  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12535
12536  for ac_func in getwd
12537do :
12538  ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
12539if test "x$ac_cv_func_getwd" = xyes; then :
12540  cat >>confdefs.h <<_ACEOF
12541#define HAVE_GETWD 1
12542_ACEOF
12543
12544fi
12545done
12546
12547fi
12548
12549for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \
12550	getpwent getpwnam getpwuid getrlimit gettimeofday localtime_r lstat \
12551	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12552	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12553	sigprocmask sigvec strcasecmp strcoll strerror strftime stricmp strncasecmp \
12554	strnicmp strpbrk strptime strtol tgetent towlower towupper iswupper \
12555	tzset usleep utime utimes mblen ftruncate unsetenv posix_openpt
12556do :
12557  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12558ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12559if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12560  cat >>confdefs.h <<_ACEOF
12561#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12562_ACEOF
12563
12564fi
12565done
12566
12567for ac_header in sys/select.h sys/socket.h
12568do :
12569  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12570ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12571if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12572  cat >>confdefs.h <<_ACEOF
12573#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12574_ACEOF
12575
12576fi
12577
12578done
12579
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12581$as_echo_n "checking types of arguments for select... " >&6; }
12582if ${ac_cv_func_select_args+:} false; then :
12583  $as_echo_n "(cached) " >&6
12584else
12585  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12586 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12587  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589/* end confdefs.h.  */
12590$ac_includes_default
12591#ifdef HAVE_SYS_SELECT_H
12592# include <sys/select.h>
12593#endif
12594#ifdef HAVE_SYS_SOCKET_H
12595# include <sys/socket.h>
12596#endif
12597
12598int
12599main ()
12600{
12601extern int select ($ac_arg1,
12602					    $ac_arg234, $ac_arg234, $ac_arg234,
12603					    $ac_arg5);
12604  ;
12605  return 0;
12606}
12607_ACEOF
12608if ac_fn_c_try_compile "$LINENO"; then :
12609  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12610fi
12611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612  done
12613 done
12614done
12615# Provide a safe default value.
12616: "${ac_cv_func_select_args=int,int *,struct timeval *}"
12617
12618fi
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12620$as_echo "$ac_cv_func_select_args" >&6; }
12621ac_save_IFS=$IFS; IFS=','
12622set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12623IFS=$ac_save_IFS
12624shift
12625
12626cat >>confdefs.h <<_ACEOF
12627#define SELECT_TYPE_ARG1 $1
12628_ACEOF
12629
12630
12631cat >>confdefs.h <<_ACEOF
12632#define SELECT_TYPE_ARG234 ($2)
12633_ACEOF
12634
12635
12636cat >>confdefs.h <<_ACEOF
12637#define SELECT_TYPE_ARG5 ($3)
12638_ACEOF
12639
12640rm -f conftest*
12641
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12643$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12644if ${ac_cv_sys_largefile_source+:} false; then :
12645  $as_echo_n "(cached) " >&6
12646else
12647  while :; do
12648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h.  */
12650#include <sys/types.h> /* for off_t */
12651     #include <stdio.h>
12652int
12653main ()
12654{
12655int (*fp) (FILE *, off_t, int) = fseeko;
12656     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12657  ;
12658  return 0;
12659}
12660_ACEOF
12661if ac_fn_c_try_link "$LINENO"; then :
12662  ac_cv_sys_largefile_source=no; break
12663fi
12664rm -f core conftest.err conftest.$ac_objext \
12665    conftest$ac_exeext conftest.$ac_ext
12666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667/* end confdefs.h.  */
12668#define _LARGEFILE_SOURCE 1
12669#include <sys/types.h> /* for off_t */
12670     #include <stdio.h>
12671int
12672main ()
12673{
12674int (*fp) (FILE *, off_t, int) = fseeko;
12675     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12676  ;
12677  return 0;
12678}
12679_ACEOF
12680if ac_fn_c_try_link "$LINENO"; then :
12681  ac_cv_sys_largefile_source=1; break
12682fi
12683rm -f core conftest.err conftest.$ac_objext \
12684    conftest$ac_exeext conftest.$ac_ext
12685  ac_cv_sys_largefile_source=unknown
12686  break
12687done
12688fi
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12690$as_echo "$ac_cv_sys_largefile_source" >&6; }
12691case $ac_cv_sys_largefile_source in #(
12692  no | unknown) ;;
12693  *)
12694cat >>confdefs.h <<_ACEOF
12695#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12696_ACEOF
12697;;
12698esac
12699rm -rf conftest*
12700
12701# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12702# in glibc 2.1.3, but that breaks too many other things.
12703# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12704if test $ac_cv_sys_largefile_source != unknown; then
12705
12706$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12707
12708fi
12709
12710
12711# Check whether --enable-largefile was given.
12712if test "${enable_largefile+set}" = set; then :
12713  enableval=$enable_largefile;
12714fi
12715
12716if test "$enable_largefile" != no; then
12717
12718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12719$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12720if ${ac_cv_sys_largefile_CC+:} false; then :
12721  $as_echo_n "(cached) " >&6
12722else
12723  ac_cv_sys_largefile_CC=no
12724     if test "$GCC" != yes; then
12725       ac_save_CC=$CC
12726       while :; do
12727	 # IRIX 6.2 and later do not support large files by default,
12728	 # so use the C compiler's -n32 option if that helps.
12729	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730/* end confdefs.h.  */
12731#include <sys/types.h>
12732 /* Check that off_t can represent 2**63 - 1 correctly.
12733    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12734    since some C++ compilers masquerading as C compilers
12735    incorrectly reject 9223372036854775807.  */
12736#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12737  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12738		       && LARGE_OFF_T % 2147483647 == 1)
12739		      ? 1 : -1];
12740int
12741main ()
12742{
12743
12744  ;
12745  return 0;
12746}
12747_ACEOF
12748	 if ac_fn_c_try_compile "$LINENO"; then :
12749  break
12750fi
12751rm -f core conftest.err conftest.$ac_objext
12752	 CC="$CC -n32"
12753	 if ac_fn_c_try_compile "$LINENO"; then :
12754  ac_cv_sys_largefile_CC=' -n32'; break
12755fi
12756rm -f core conftest.err conftest.$ac_objext
12757	 break
12758       done
12759       CC=$ac_save_CC
12760       rm -f conftest.$ac_ext
12761    fi
12762fi
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12764$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12765  if test "$ac_cv_sys_largefile_CC" != no; then
12766    CC=$CC$ac_cv_sys_largefile_CC
12767  fi
12768
12769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12770$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12771if ${ac_cv_sys_file_offset_bits+:} false; then :
12772  $as_echo_n "(cached) " >&6
12773else
12774  while :; do
12775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776/* end confdefs.h.  */
12777#include <sys/types.h>
12778 /* Check that off_t can represent 2**63 - 1 correctly.
12779    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12780    since some C++ compilers masquerading as C compilers
12781    incorrectly reject 9223372036854775807.  */
12782#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12783  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12784		       && LARGE_OFF_T % 2147483647 == 1)
12785		      ? 1 : -1];
12786int
12787main ()
12788{
12789
12790  ;
12791  return 0;
12792}
12793_ACEOF
12794if ac_fn_c_try_compile "$LINENO"; then :
12795  ac_cv_sys_file_offset_bits=no; break
12796fi
12797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799/* end confdefs.h.  */
12800#define _FILE_OFFSET_BITS 64
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
12818if ac_fn_c_try_compile "$LINENO"; then :
12819  ac_cv_sys_file_offset_bits=64; break
12820fi
12821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822  ac_cv_sys_file_offset_bits=unknown
12823  break
12824done
12825fi
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12827$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12828case $ac_cv_sys_file_offset_bits in #(
12829  no | unknown) ;;
12830  *)
12831cat >>confdefs.h <<_ACEOF
12832#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12833_ACEOF
12834;;
12835esac
12836rm -rf conftest*
12837  if test $ac_cv_sys_file_offset_bits = unknown; then
12838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12839$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12840if ${ac_cv_sys_large_files+:} false; then :
12841  $as_echo_n "(cached) " >&6
12842else
12843  while :; do
12844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845/* end confdefs.h.  */
12846#include <sys/types.h>
12847 /* Check that off_t can represent 2**63 - 1 correctly.
12848    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12849    since some C++ compilers masquerading as C compilers
12850    incorrectly reject 9223372036854775807.  */
12851#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12852  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12853		       && LARGE_OFF_T % 2147483647 == 1)
12854		      ? 1 : -1];
12855int
12856main ()
12857{
12858
12859  ;
12860  return 0;
12861}
12862_ACEOF
12863if ac_fn_c_try_compile "$LINENO"; then :
12864  ac_cv_sys_large_files=no; break
12865fi
12866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868/* end confdefs.h.  */
12869#define _LARGE_FILES 1
12870#include <sys/types.h>
12871 /* Check that off_t can represent 2**63 - 1 correctly.
12872    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12873    since some C++ compilers masquerading as C compilers
12874    incorrectly reject 9223372036854775807.  */
12875#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12876  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12877		       && LARGE_OFF_T % 2147483647 == 1)
12878		      ? 1 : -1];
12879int
12880main ()
12881{
12882
12883  ;
12884  return 0;
12885}
12886_ACEOF
12887if ac_fn_c_try_compile "$LINENO"; then :
12888  ac_cv_sys_large_files=1; break
12889fi
12890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891  ac_cv_sys_large_files=unknown
12892  break
12893done
12894fi
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12896$as_echo "$ac_cv_sys_large_files" >&6; }
12897case $ac_cv_sys_large_files in #(
12898  no | unknown) ;;
12899  *)
12900cat >>confdefs.h <<_ACEOF
12901#define _LARGE_FILES $ac_cv_sys_large_files
12902_ACEOF
12903;;
12904esac
12905rm -rf conftest*
12906  fi
12907
12908
12909fi
12910
12911
12912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-canberra argument" >&5
12913$as_echo_n "checking --enable-canberra argument... " >&6; }
12914# Check whether --enable-canberra was given.
12915if test "${enable_canberra+set}" = set; then :
12916  enableval=$enable_canberra;
12917else
12918  enable_canberra="maybe"
12919fi
12920
12921
12922if test "$enable_canberra" = "maybe"; then
12923  if test "$features" = "big" -o "$features" = "huge"; then
12924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to yes" >&5
12925$as_echo "Defaulting to yes" >&6; }
12926    enable_canberra="yes"
12927  else
12928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to no" >&5
12929$as_echo "Defaulting to no" >&6; }
12930    enable_canberra="no"
12931  fi
12932else
12933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5
12934$as_echo "$enable_canberra" >&6; }
12935fi
12936if test "$enable_canberra" = "yes"; then
12937  if test "x$PKG_CONFIG" != "xno"; then
12938    canberra_lib=`$PKG_CONFIG --libs libcanberra 2>/dev/null`
12939    canberra_cflags=`$PKG_CONFIG --cflags libcanberra 2>/dev/null`
12940  fi
12941  if test "x$canberra_lib" = "x"; then
12942    canberra_lib=-lcanberra
12943    canberra_cflags=-D_REENTRANT
12944  fi
12945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcanberra" >&5
12946$as_echo_n "checking for libcanberra... " >&6; }
12947  ac_save_CFLAGS="$CFLAGS"
12948  ac_save_LIBS="$LIBS"
12949  CFLAGS="$CFLAGS $canberra_cflags"
12950  LIBS="$LIBS $canberra_lib"
12951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952/* end confdefs.h.  */
12953
12954  # include <canberra.h>
12955
12956int
12957main ()
12958{
12959
12960     ca_context *hello;
12961     ca_context_create(&hello);
12962  ;
12963  return 0;
12964}
12965_ACEOF
12966if ac_fn_c_try_link "$LINENO"; then :
12967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12968$as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h
12969
12970else
12971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; try installing libcanberra-dev" >&5
12972$as_echo "no; try installing libcanberra-dev" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS"
12973fi
12974rm -f core conftest.err conftest.$ac_objext \
12975    conftest$ac_exeext conftest.$ac_ext
12976fi
12977
12978
12979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
12980$as_echo_n "checking for st_blksize... " >&6; }
12981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982/* end confdefs.h.  */
12983#include <sys/types.h>
12984#include <sys/stat.h>
12985int
12986main ()
12987{
12988	struct stat st;
12989	int n;
12990
12991	stat("/", &st);
12992	n = (int)st.st_blksize;
12993  ;
12994  return 0;
12995}
12996_ACEOF
12997if ac_fn_c_try_compile "$LINENO"; then :
12998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12999$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
13000
13001else
13002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003$as_echo "no" >&6; }
13004fi
13005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
13008$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13009if ${vim_cv_stat_ignores_slash+:} false; then :
13010  $as_echo_n "(cached) " >&6
13011else
13012
13013    if test "$cross_compiling" = yes; then :
13014
13015      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
13016
13017else
13018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019/* end confdefs.h.  */
13020
13021#include "confdefs.h"
13022#if STDC_HEADERS
13023# include <stdlib.h>
13024# include <stddef.h>
13025#endif
13026#include <sys/types.h>
13027#include <sys/stat.h>
13028main() {struct stat st;  exit(stat("configure/", &st) != 0); }
13029
13030_ACEOF
13031if ac_fn_c_try_run "$LINENO"; then :
13032
13033      vim_cv_stat_ignores_slash=yes
13034
13035else
13036
13037      vim_cv_stat_ignores_slash=no
13038
13039fi
13040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13041  conftest.$ac_objext conftest.beam conftest.$ac_ext
13042fi
13043
13044
13045fi
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
13047$as_echo "$vim_cv_stat_ignores_slash" >&6; }
13048
13049if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13050  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
13051
13052fi
13053
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
13055$as_echo_n "checking for iconv_open()... " >&6; }
13056save_LIBS="$LIBS"
13057LIBS="$LIBS -liconv"
13058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059/* end confdefs.h.  */
13060
13061#ifdef HAVE_ICONV_H
13062# include <iconv.h>
13063#endif
13064
13065int
13066main ()
13067{
13068iconv_open("fr", "to");
13069  ;
13070  return 0;
13071}
13072_ACEOF
13073if ac_fn_c_try_link "$LINENO"; then :
13074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
13075$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13076
13077else
13078  LIBS="$save_LIBS"
13079    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080/* end confdefs.h.  */
13081
13082#ifdef HAVE_ICONV_H
13083# include <iconv.h>
13084#endif
13085
13086int
13087main ()
13088{
13089iconv_open("fr", "to");
13090  ;
13091  return 0;
13092}
13093_ACEOF
13094if ac_fn_c_try_link "$LINENO"; then :
13095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13096$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13097
13098else
13099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100$as_echo "no" >&6; }
13101fi
13102rm -f core conftest.err conftest.$ac_objext \
13103    conftest$ac_exeext conftest.$ac_ext
13104fi
13105rm -f core conftest.err conftest.$ac_objext \
13106    conftest$ac_exeext conftest.$ac_ext
13107
13108
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
13110$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
13111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112/* end confdefs.h.  */
13113
13114#ifdef HAVE_LANGINFO_H
13115# include <langinfo.h>
13116#endif
13117
13118int
13119main ()
13120{
13121char *cs = nl_langinfo(CODESET);
13122  ;
13123  return 0;
13124}
13125_ACEOF
13126if ac_fn_c_try_link "$LINENO"; then :
13127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13128$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
13129
13130else
13131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132$as_echo "no" >&6; }
13133fi
13134rm -f core conftest.err conftest.$ac_objext \
13135    conftest$ac_exeext conftest.$ac_ext
13136
13137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
13138$as_echo_n "checking for strtod in -lm... " >&6; }
13139if ${ac_cv_lib_m_strtod+:} false; then :
13140  $as_echo_n "(cached) " >&6
13141else
13142  ac_check_lib_save_LIBS=$LIBS
13143LIBS="-lm  $LIBS"
13144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145/* end confdefs.h.  */
13146
13147/* Override any GCC internal prototype to avoid an error.
13148   Use char because int might match the return type of a GCC
13149   builtin and then its argument prototype would still apply.  */
13150#ifdef __cplusplus
13151extern "C"
13152#endif
13153char strtod ();
13154int
13155main ()
13156{
13157return strtod ();
13158  ;
13159  return 0;
13160}
13161_ACEOF
13162if ac_fn_c_try_link "$LINENO"; then :
13163  ac_cv_lib_m_strtod=yes
13164else
13165  ac_cv_lib_m_strtod=no
13166fi
13167rm -f core conftest.err conftest.$ac_objext \
13168    conftest$ac_exeext conftest.$ac_ext
13169LIBS=$ac_check_lib_save_LIBS
13170fi
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
13172$as_echo "$ac_cv_lib_m_strtod" >&6; }
13173if test "x$ac_cv_lib_m_strtod" = xyes; then :
13174  cat >>confdefs.h <<_ACEOF
13175#define HAVE_LIBM 1
13176_ACEOF
13177
13178  LIBS="-lm $LIBS"
13179
13180fi
13181
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
13183$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
13184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185/* end confdefs.h.  */
13186
13187#ifdef HAVE_MATH_H
13188# include <math.h>
13189#endif
13190#if STDC_HEADERS
13191# include <stdlib.h>
13192# include <stddef.h>
13193#endif
13194
13195int
13196main ()
13197{
13198char *s; double d;
13199    d = strtod("1.1", &s);
13200    d = fabs(1.11);
13201    d = ceil(1.11);
13202    d = floor(1.11);
13203    d = log10(1.11);
13204    d = pow(1.11, 2.22);
13205    d = sqrt(1.11);
13206    d = sin(1.11);
13207    d = cos(1.11);
13208    d = atan(1.11);
13209
13210  ;
13211  return 0;
13212}
13213_ACEOF
13214if ac_fn_c_try_link "$LINENO"; then :
13215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13216$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
13217
13218else
13219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220$as_echo "no" >&6; }
13221fi
13222rm -f core conftest.err conftest.$ac_objext \
13223    conftest$ac_exeext conftest.$ac_ext
13224
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
13226$as_echo_n "checking for isinf()... " >&6; }
13227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228/* end confdefs.h.  */
13229
13230#ifdef HAVE_MATH_H
13231# include <math.h>
13232#endif
13233#if STDC_HEADERS
13234# include <stdlib.h>
13235# include <stddef.h>
13236#endif
13237
13238int
13239main ()
13240{
13241int r = isinf(1.11);
13242  ;
13243  return 0;
13244}
13245_ACEOF
13246if ac_fn_c_try_link "$LINENO"; then :
13247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13248$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13249
13250else
13251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252$as_echo "no" >&6; }
13253fi
13254rm -f core conftest.err conftest.$ac_objext \
13255    conftest$ac_exeext conftest.$ac_ext
13256
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
13258$as_echo_n "checking for isnan()... " >&6; }
13259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260/* end confdefs.h.  */
13261
13262#ifdef HAVE_MATH_H
13263# include <math.h>
13264#endif
13265#if STDC_HEADERS
13266# include <stdlib.h>
13267# include <stddef.h>
13268#endif
13269
13270int
13271main ()
13272{
13273int r = isnan(1.11);
13274  ;
13275  return 0;
13276}
13277_ACEOF
13278if ac_fn_c_try_link "$LINENO"; then :
13279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13280$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13281
13282else
13283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284$as_echo "no" >&6; }
13285fi
13286rm -f core conftest.err conftest.$ac_objext \
13287    conftest$ac_exeext conftest.$ac_ext
13288
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
13290$as_echo_n "checking --disable-acl argument... " >&6; }
13291# Check whether --enable-acl was given.
13292if test "${enable_acl+set}" = set; then :
13293  enableval=$enable_acl;
13294else
13295  enable_acl="yes"
13296fi
13297
13298if test "$enable_acl" = "yes"; then
13299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300$as_echo "no" >&6; }
13301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
13302$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
13303if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
13304  $as_echo_n "(cached) " >&6
13305else
13306  ac_check_lib_save_LIBS=$LIBS
13307LIBS="-lposix1e  $LIBS"
13308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309/* end confdefs.h.  */
13310
13311/* Override any GCC internal prototype to avoid an error.
13312   Use char because int might match the return type of a GCC
13313   builtin and then its argument prototype would still apply.  */
13314#ifdef __cplusplus
13315extern "C"
13316#endif
13317char acl_get_file ();
13318int
13319main ()
13320{
13321return acl_get_file ();
13322  ;
13323  return 0;
13324}
13325_ACEOF
13326if ac_fn_c_try_link "$LINENO"; then :
13327  ac_cv_lib_posix1e_acl_get_file=yes
13328else
13329  ac_cv_lib_posix1e_acl_get_file=no
13330fi
13331rm -f core conftest.err conftest.$ac_objext \
13332    conftest$ac_exeext conftest.$ac_ext
13333LIBS=$ac_check_lib_save_LIBS
13334fi
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13336$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
13337if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
13338  LIBS="$LIBS -lposix1e"
13339else
13340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
13341$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
13342if ${ac_cv_lib_acl_acl_get_file+:} false; then :
13343  $as_echo_n "(cached) " >&6
13344else
13345  ac_check_lib_save_LIBS=$LIBS
13346LIBS="-lacl  $LIBS"
13347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348/* end confdefs.h.  */
13349
13350/* Override any GCC internal prototype to avoid an error.
13351   Use char because int might match the return type of a GCC
13352   builtin and then its argument prototype would still apply.  */
13353#ifdef __cplusplus
13354extern "C"
13355#endif
13356char acl_get_file ();
13357int
13358main ()
13359{
13360return acl_get_file ();
13361  ;
13362  return 0;
13363}
13364_ACEOF
13365if ac_fn_c_try_link "$LINENO"; then :
13366  ac_cv_lib_acl_acl_get_file=yes
13367else
13368  ac_cv_lib_acl_acl_get_file=no
13369fi
13370rm -f core conftest.err conftest.$ac_objext \
13371    conftest$ac_exeext conftest.$ac_ext
13372LIBS=$ac_check_lib_save_LIBS
13373fi
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
13375$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
13376if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
13377  LIBS="$LIBS -lacl"
13378		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
13379$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
13380if ${ac_cv_lib_attr_fgetxattr+:} false; then :
13381  $as_echo_n "(cached) " >&6
13382else
13383  ac_check_lib_save_LIBS=$LIBS
13384LIBS="-lattr  $LIBS"
13385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386/* end confdefs.h.  */
13387
13388/* Override any GCC internal prototype to avoid an error.
13389   Use char because int might match the return type of a GCC
13390   builtin and then its argument prototype would still apply.  */
13391#ifdef __cplusplus
13392extern "C"
13393#endif
13394char fgetxattr ();
13395int
13396main ()
13397{
13398return fgetxattr ();
13399  ;
13400  return 0;
13401}
13402_ACEOF
13403if ac_fn_c_try_link "$LINENO"; then :
13404  ac_cv_lib_attr_fgetxattr=yes
13405else
13406  ac_cv_lib_attr_fgetxattr=no
13407fi
13408rm -f core conftest.err conftest.$ac_objext \
13409    conftest$ac_exeext conftest.$ac_ext
13410LIBS=$ac_check_lib_save_LIBS
13411fi
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
13413$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
13414if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
13415  LIBS="$LIBS -lattr"
13416fi
13417
13418fi
13419
13420fi
13421
13422
13423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
13424$as_echo_n "checking for POSIX ACL support... " >&6; }
13425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426/* end confdefs.h.  */
13427
13428#include <sys/types.h>
13429#ifdef HAVE_SYS_ACL_H
13430# include <sys/acl.h>
13431#endif
13432acl_t acl;
13433int
13434main ()
13435{
13436acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13437	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13438	acl_free(acl);
13439  ;
13440  return 0;
13441}
13442_ACEOF
13443if ac_fn_c_try_link "$LINENO"; then :
13444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13445$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
13446
13447else
13448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449$as_echo "no" >&6; }
13450fi
13451rm -f core conftest.err conftest.$ac_objext \
13452    conftest$ac_exeext conftest.$ac_ext
13453
13454  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
13455$as_echo_n "checking for acl_get in -lsec... " >&6; }
13456if ${ac_cv_lib_sec_acl_get+:} false; then :
13457  $as_echo_n "(cached) " >&6
13458else
13459  ac_check_lib_save_LIBS=$LIBS
13460LIBS="-lsec  $LIBS"
13461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13462/* end confdefs.h.  */
13463
13464/* Override any GCC internal prototype to avoid an error.
13465   Use char because int might match the return type of a GCC
13466   builtin and then its argument prototype would still apply.  */
13467#ifdef __cplusplus
13468extern "C"
13469#endif
13470char acl_get ();
13471int
13472main ()
13473{
13474return acl_get ();
13475  ;
13476  return 0;
13477}
13478_ACEOF
13479if ac_fn_c_try_link "$LINENO"; then :
13480  ac_cv_lib_sec_acl_get=yes
13481else
13482  ac_cv_lib_sec_acl_get=no
13483fi
13484rm -f core conftest.err conftest.$ac_objext \
13485    conftest$ac_exeext conftest.$ac_ext
13486LIBS=$ac_check_lib_save_LIBS
13487fi
13488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
13489$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
13490if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
13491  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
13492
13493else
13494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
13495$as_echo_n "checking for Solaris ACL support... " >&6; }
13496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497/* end confdefs.h.  */
13498
13499#ifdef HAVE_SYS_ACL_H
13500# include <sys/acl.h>
13501#endif
13502int
13503main ()
13504{
13505acl("foo", GETACLCNT, 0, NULL);
13506
13507  ;
13508  return 0;
13509}
13510_ACEOF
13511if ac_fn_c_try_link "$LINENO"; then :
13512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13513$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
13514
13515else
13516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517$as_echo "no" >&6; }
13518fi
13519rm -f core conftest.err conftest.$ac_objext \
13520    conftest$ac_exeext conftest.$ac_ext
13521fi
13522
13523
13524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
13525$as_echo_n "checking for AIX ACL support... " >&6; }
13526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527/* end confdefs.h.  */
13528
13529#if STDC_HEADERS
13530# include <stdlib.h>
13531# include <stddef.h>
13532#endif
13533#ifdef HAVE_SYS_ACL_H
13534# include <sys/acl.h>
13535#endif
13536#ifdef HAVE_SYS_ACCESS_H
13537# include <sys/access.h>
13538#endif
13539#define _ALL_SOURCE
13540
13541#include <sys/stat.h>
13542
13543int aclsize;
13544struct acl *aclent;
13545int
13546main ()
13547{
13548aclsize = sizeof(struct acl);
13549	aclent = (void *)malloc(aclsize);
13550	statacl("foo", STX_NORMAL, aclent, aclsize);
13551
13552  ;
13553  return 0;
13554}
13555_ACEOF
13556if ac_fn_c_try_link "$LINENO"; then :
13557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13558$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
13559
13560else
13561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562$as_echo "no" >&6; }
13563fi
13564rm -f core conftest.err conftest.$ac_objext \
13565    conftest$ac_exeext conftest.$ac_ext
13566else
13567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13568$as_echo "yes" >&6; }
13569fi
13570
13571if test "x$GTK_CFLAGS" != "x"; then
13572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
13573$as_echo_n "checking for pango_shape_full... " >&6; }
13574  ac_save_CFLAGS="$CFLAGS"
13575  ac_save_LIBS="$LIBS"
13576  CFLAGS="$CFLAGS $GTK_CFLAGS"
13577  LIBS="$LIBS $GTK_LIBS"
13578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579/* end confdefs.h.  */
13580#include <gtk/gtk.h>
13581int
13582main ()
13583{
13584 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
13585  ;
13586  return 0;
13587}
13588_ACEOF
13589if ac_fn_c_try_link "$LINENO"; then :
13590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
13592
13593else
13594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595$as_echo "no" >&6; }
13596fi
13597rm -f core conftest.err conftest.$ac_objext \
13598    conftest$ac_exeext conftest.$ac_ext
13599  CFLAGS="$ac_save_CFLAGS"
13600  LIBS="$ac_save_LIBS"
13601fi
13602
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
13604$as_echo_n "checking --disable-gpm argument... " >&6; }
13605# Check whether --enable-gpm was given.
13606if test "${enable_gpm+set}" = set; then :
13607  enableval=$enable_gpm;
13608else
13609  enable_gpm="yes"
13610fi
13611
13612
13613if test "$enable_gpm" = "yes"; then
13614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615$as_echo "no" >&6; }
13616    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
13617$as_echo_n "checking for gpm... " >&6; }
13618if ${vi_cv_have_gpm+:} false; then :
13619  $as_echo_n "(cached) " >&6
13620else
13621  olibs="$LIBS" ; LIBS="-lgpm"
13622	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623/* end confdefs.h.  */
13624#include <gpm.h>
13625	    #include <linux/keyboard.h>
13626int
13627main ()
13628{
13629Gpm_GetLibVersion(NULL);
13630  ;
13631  return 0;
13632}
13633_ACEOF
13634if ac_fn_c_try_link "$LINENO"; then :
13635  	    	    vi_cv_have_gpm=yes
13636else
13637  vi_cv_have_gpm=no
13638fi
13639rm -f core conftest.err conftest.$ac_objext \
13640    conftest$ac_exeext conftest.$ac_ext
13641	LIBS="$olibs"
13642
13643fi
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13645$as_echo "$vi_cv_have_gpm" >&6; }
13646  if test $vi_cv_have_gpm = yes; then
13647    LIBS="$LIBS -lgpm"
13648    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13649
13650  fi
13651else
13652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13653$as_echo "yes" >&6; }
13654fi
13655
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13657$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13658# Check whether --enable-sysmouse was given.
13659if test "${enable_sysmouse+set}" = set; then :
13660  enableval=$enable_sysmouse;
13661else
13662  enable_sysmouse="yes"
13663fi
13664
13665
13666if test "$enable_sysmouse" = "yes"; then
13667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668$as_echo "no" >&6; }
13669        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13670$as_echo_n "checking for sysmouse... " >&6; }
13671if ${vi_cv_have_sysmouse+:} false; then :
13672  $as_echo_n "(cached) " >&6
13673else
13674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675/* end confdefs.h.  */
13676#include <sys/consio.h>
13677	     #include <signal.h>
13678	     #include <sys/fbio.h>
13679int
13680main ()
13681{
13682struct mouse_info   mouse;
13683	     mouse.operation = MOUSE_MODE;
13684	     mouse.operation = MOUSE_SHOW;
13685	     mouse.u.mode.mode = 0;
13686	     mouse.u.mode.signal = SIGUSR2;
13687  ;
13688  return 0;
13689}
13690_ACEOF
13691if ac_fn_c_try_link "$LINENO"; then :
13692  vi_cv_have_sysmouse=yes
13693else
13694  vi_cv_have_sysmouse=no
13695fi
13696rm -f core conftest.err conftest.$ac_objext \
13697    conftest$ac_exeext conftest.$ac_ext
13698
13699fi
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13701$as_echo "$vi_cv_have_sysmouse" >&6; }
13702  if test $vi_cv_have_sysmouse = yes; then
13703    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13704
13705  fi
13706else
13707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13708$as_echo "yes" >&6; }
13709fi
13710
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13712$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714/* end confdefs.h.  */
13715#if HAVE_FCNTL_H
13716# include <fcntl.h>
13717#endif
13718int
13719main ()
13720{
13721	int flag = FD_CLOEXEC;
13722  ;
13723  return 0;
13724}
13725_ACEOF
13726if ac_fn_c_try_compile "$LINENO"; then :
13727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13728$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13729
13730else
13731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13732$as_echo "not usable" >&6; }
13733fi
13734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13737$as_echo_n "checking for rename... " >&6; }
13738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739/* end confdefs.h.  */
13740#include <stdio.h>
13741int
13742main ()
13743{
13744rename("this", "that")
13745  ;
13746  return 0;
13747}
13748_ACEOF
13749if ac_fn_c_try_link "$LINENO"; then :
13750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13751$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13752
13753else
13754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755$as_echo "no" >&6; }
13756fi
13757rm -f core conftest.err conftest.$ac_objext \
13758    conftest$ac_exeext conftest.$ac_ext
13759
13760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
13761$as_echo_n "checking for dirfd... " >&6; }
13762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763/* end confdefs.h.  */
13764#include <sys/types.h>
13765#include <dirent.h>
13766int
13767main ()
13768{
13769DIR * dir=opendir("dirname"); dirfd(dir);
13770  ;
13771  return 0;
13772}
13773_ACEOF
13774if ac_fn_c_try_compile "$LINENO"; then :
13775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13776$as_echo "yes" >&6; }; $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
13777
13778else
13779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13780$as_echo "not usable" >&6; }
13781fi
13782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13783
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
13785$as_echo_n "checking for flock... " >&6; }
13786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787/* end confdefs.h.  */
13788#include <sys/file.h>
13789int
13790main ()
13791{
13792flock(10, LOCK_SH);
13793  ;
13794  return 0;
13795}
13796_ACEOF
13797if ac_fn_c_try_compile "$LINENO"; then :
13798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13799$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
13800
13801else
13802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13803$as_echo "not usable" >&6; }
13804fi
13805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13808$as_echo_n "checking for sysctl... " >&6; }
13809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810/* end confdefs.h.  */
13811#include <sys/types.h>
13812#include <sys/sysctl.h>
13813int
13814main ()
13815{
13816	int mib[2], r;
13817	size_t len;
13818
13819	mib[0] = CTL_HW;
13820	mib[1] = HW_USERMEM;
13821	len = sizeof(r);
13822	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13823
13824  ;
13825  return 0;
13826}
13827_ACEOF
13828if ac_fn_c_try_compile "$LINENO"; then :
13829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13830$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13831
13832else
13833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13834$as_echo "not usable" >&6; }
13835fi
13836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13837
13838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13839$as_echo_n "checking for sysinfo... " >&6; }
13840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841/* end confdefs.h.  */
13842#include <sys/types.h>
13843#include <sys/sysinfo.h>
13844int
13845main ()
13846{
13847	struct sysinfo sinfo;
13848	int t;
13849
13850	(void)sysinfo(&sinfo);
13851	t = sinfo.totalram;
13852
13853  ;
13854  return 0;
13855}
13856_ACEOF
13857if ac_fn_c_try_compile "$LINENO"; then :
13858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13859$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13860
13861else
13862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13863$as_echo "not usable" >&6; }
13864fi
13865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866
13867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13868$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870/* end confdefs.h.  */
13871#include <sys/types.h>
13872#include <sys/sysinfo.h>
13873int
13874main ()
13875{
13876	struct sysinfo sinfo;
13877	sinfo.mem_unit = 1;
13878
13879  ;
13880  return 0;
13881}
13882_ACEOF
13883if ac_fn_c_try_compile "$LINENO"; then :
13884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13885$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13886
13887else
13888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889$as_echo "no" >&6; }
13890fi
13891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13894$as_echo_n "checking for sysconf... " >&6; }
13895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896/* end confdefs.h.  */
13897#include <unistd.h>
13898int
13899main ()
13900{
13901	(void)sysconf(_SC_PAGESIZE);
13902	(void)sysconf(_SC_PHYS_PAGES);
13903
13904  ;
13905  return 0;
13906}
13907_ACEOF
13908if ac_fn_c_try_compile "$LINENO"; then :
13909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13910$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13911
13912else
13913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13914$as_echo "not usable" >&6; }
13915fi
13916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917
13918# The cast to long int works around a bug in the HP C Compiler
13919# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13920# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13921# This bug is HP SR number 8606223364.
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13923$as_echo_n "checking size of int... " >&6; }
13924if ${ac_cv_sizeof_int+:} false; then :
13925  $as_echo_n "(cached) " >&6
13926else
13927  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13928
13929else
13930  if test "$ac_cv_type_int" = yes; then
13931     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13933as_fn_error 77 "cannot compute sizeof (int)
13934See \`config.log' for more details" "$LINENO" 5; }
13935   else
13936     ac_cv_sizeof_int=0
13937   fi
13938fi
13939
13940fi
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13942$as_echo "$ac_cv_sizeof_int" >&6; }
13943
13944
13945
13946cat >>confdefs.h <<_ACEOF
13947#define SIZEOF_INT $ac_cv_sizeof_int
13948_ACEOF
13949
13950
13951# The cast to long int works around a bug in the HP C Compiler
13952# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13953# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13954# This bug is HP SR number 8606223364.
13955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13956$as_echo_n "checking size of long... " >&6; }
13957if ${ac_cv_sizeof_long+:} false; then :
13958  $as_echo_n "(cached) " >&6
13959else
13960  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13961
13962else
13963  if test "$ac_cv_type_long" = yes; then
13964     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13966as_fn_error 77 "cannot compute sizeof (long)
13967See \`config.log' for more details" "$LINENO" 5; }
13968   else
13969     ac_cv_sizeof_long=0
13970   fi
13971fi
13972
13973fi
13974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13975$as_echo "$ac_cv_sizeof_long" >&6; }
13976
13977
13978
13979cat >>confdefs.h <<_ACEOF
13980#define SIZEOF_LONG $ac_cv_sizeof_long
13981_ACEOF
13982
13983
13984# The cast to long int works around a bug in the HP C Compiler
13985# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13986# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13987# This bug is HP SR number 8606223364.
13988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
13989$as_echo_n "checking size of time_t... " >&6; }
13990if ${ac_cv_sizeof_time_t+:} false; then :
13991  $as_echo_n "(cached) " >&6
13992else
13993  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
13994
13995else
13996  if test "$ac_cv_type_time_t" = yes; then
13997     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13999as_fn_error 77 "cannot compute sizeof (time_t)
14000See \`config.log' for more details" "$LINENO" 5; }
14001   else
14002     ac_cv_sizeof_time_t=0
14003   fi
14004fi
14005
14006fi
14007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14008$as_echo "$ac_cv_sizeof_time_t" >&6; }
14009
14010
14011
14012cat >>confdefs.h <<_ACEOF
14013#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14014_ACEOF
14015
14016
14017# The cast to long int works around a bug in the HP C Compiler
14018# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14019# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14020# This bug is HP SR number 8606223364.
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14022$as_echo_n "checking size of off_t... " >&6; }
14023if ${ac_cv_sizeof_off_t+:} false; then :
14024  $as_echo_n "(cached) " >&6
14025else
14026  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14027
14028else
14029  if test "$ac_cv_type_off_t" = yes; then
14030     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14032as_fn_error 77 "cannot compute sizeof (off_t)
14033See \`config.log' for more details" "$LINENO" 5; }
14034   else
14035     ac_cv_sizeof_off_t=0
14036   fi
14037fi
14038
14039fi
14040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14041$as_echo "$ac_cv_sizeof_off_t" >&6; }
14042
14043
14044
14045cat >>confdefs.h <<_ACEOF
14046#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14047_ACEOF
14048
14049
14050
14051cat >>confdefs.h <<_ACEOF
14052#define VIM_SIZEOF_INT $ac_cv_sizeof_int
14053_ACEOF
14054
14055cat >>confdefs.h <<_ACEOF
14056#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
14057_ACEOF
14058
14059
14060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
14061$as_echo_n "checking uint32_t is 32 bits... " >&6; }
14062if test "$cross_compiling" = yes; then :
14063  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
14064$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
14065else
14066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067/* end confdefs.h.  */
14068
14069#ifdef HAVE_STDINT_H
14070# include <stdint.h>
14071#endif
14072#ifdef HAVE_INTTYPES_H
14073# include <inttypes.h>
14074#endif
14075main() {
14076  uint32_t nr1 = (uint32_t)-1;
14077  uint32_t nr2 = (uint32_t)0xffffffffUL;
14078  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1;
14079  return 0;
14080}
14081_ACEOF
14082if ac_fn_c_try_run "$LINENO"; then :
14083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14084$as_echo "ok" >&6; }
14085else
14086  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
14087fi
14088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14089  conftest.$ac_objext conftest.beam conftest.$ac_ext
14090fi
14091
14092
14093
14094bcopy_test_prog='
14095#include "confdefs.h"
14096#ifdef HAVE_STRING_H
14097# include <string.h>
14098#endif
14099#if STDC_HEADERS
14100# include <stdlib.h>
14101# include <stddef.h>
14102#endif
14103main() {
14104  char buf[10];
14105  strcpy(buf, "abcdefghi");
14106  mch_memmove(buf, buf + 2, 3);
14107  if (strncmp(buf, "ababcf", 6))
14108    exit(1);
14109  strcpy(buf, "abcdefghi");
14110  mch_memmove(buf + 2, buf, 3);
14111  if (strncmp(buf, "cdedef", 6))
14112    exit(1);
14113  exit(0); /* libc version works properly.  */
14114}'
14115
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
14117$as_echo_n "checking whether memmove handles overlaps... " >&6; }
14118if ${vim_cv_memmove_handles_overlap+:} false; then :
14119  $as_echo_n "(cached) " >&6
14120else
14121
14122    if test "$cross_compiling" = yes; then :
14123
14124	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
14125
14126else
14127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128/* end confdefs.h.  */
14129#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14130_ACEOF
14131if ac_fn_c_try_run "$LINENO"; then :
14132
14133	vim_cv_memmove_handles_overlap=yes
14134
14135else
14136
14137	vim_cv_memmove_handles_overlap=no
14138
14139fi
14140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14141  conftest.$ac_objext conftest.beam conftest.$ac_ext
14142fi
14143
14144
14145fi
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
14147$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
14148
14149if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
14150  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
14151
14152else
14153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
14154$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
14155if ${vim_cv_bcopy_handles_overlap+:} false; then :
14156  $as_echo_n "(cached) " >&6
14157else
14158
14159      if test "$cross_compiling" = yes; then :
14160
14161	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
14162
14163else
14164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165/* end confdefs.h.  */
14166#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14167_ACEOF
14168if ac_fn_c_try_run "$LINENO"; then :
14169
14170	vim_cv_bcopy_handles_overlap=yes
14171
14172else
14173
14174	vim_cv_bcopy_handles_overlap=no
14175
14176fi
14177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14178  conftest.$ac_objext conftest.beam conftest.$ac_ext
14179fi
14180
14181
14182fi
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
14184$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
14185
14186  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
14187    $as_echo "#define USEBCOPY 1" >>confdefs.h
14188
14189  else
14190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
14191$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
14192if ${vim_cv_memcpy_handles_overlap+:} false; then :
14193  $as_echo_n "(cached) " >&6
14194else
14195
14196	if test "$cross_compiling" = yes; then :
14197
14198	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
14199
14200else
14201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202/* end confdefs.h.  */
14203#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14204_ACEOF
14205if ac_fn_c_try_run "$LINENO"; then :
14206
14207	    vim_cv_memcpy_handles_overlap=yes
14208
14209else
14210
14211	    vim_cv_memcpy_handles_overlap=no
14212
14213fi
14214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14215  conftest.$ac_objext conftest.beam conftest.$ac_ext
14216fi
14217
14218
14219fi
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
14221$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
14222
14223    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
14224      $as_echo "#define USEMEMCPY 1" >>confdefs.h
14225
14226    fi
14227  fi
14228fi
14229
14230
14231if test "x$with_x" = "xyes"; then
14232  cflags_save=$CFLAGS
14233  libs_save=$LIBS
14234  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
14235  CFLAGS="$CFLAGS $X_CFLAGS"
14236
14237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
14238$as_echo_n "checking whether X_LOCALE needed... " >&6; }
14239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240/* end confdefs.h.  */
14241#include <X11/Xlocale.h>
14242int
14243main ()
14244{
14245
14246  ;
14247  return 0;
14248}
14249_ACEOF
14250if ac_fn_c_try_compile "$LINENO"; then :
14251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252/* end confdefs.h.  */
14253
14254/* Override any GCC internal prototype to avoid an error.
14255   Use char because int might match the return type of a GCC
14256   builtin and then its argument prototype would still apply.  */
14257#ifdef __cplusplus
14258extern "C"
14259#endif
14260char _Xsetlocale ();
14261int
14262main ()
14263{
14264return _Xsetlocale ();
14265  ;
14266  return 0;
14267}
14268_ACEOF
14269if ac_fn_c_try_link "$LINENO"; then :
14270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14271$as_echo "yes" >&6; }
14272	      $as_echo "#define X_LOCALE 1" >>confdefs.h
14273
14274else
14275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276$as_echo "no" >&6; }
14277fi
14278rm -f core conftest.err conftest.$ac_objext \
14279    conftest$ac_exeext conftest.$ac_ext
14280else
14281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282$as_echo "no" >&6; }
14283fi
14284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14285
14286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
14287$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
14288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289/* end confdefs.h.  */
14290
14291/* Override any GCC internal prototype to avoid an error.
14292   Use char because int might match the return type of a GCC
14293   builtin and then its argument prototype would still apply.  */
14294#ifdef __cplusplus
14295extern "C"
14296#endif
14297char Xutf8SetWMProperties ();
14298int
14299main ()
14300{
14301return Xutf8SetWMProperties ();
14302  ;
14303  return 0;
14304}
14305_ACEOF
14306if ac_fn_c_try_link "$LINENO"; then :
14307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14308$as_echo "yes" >&6; }
14309	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
14310
14311else
14312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313$as_echo "no" >&6; }
14314fi
14315rm -f core conftest.err conftest.$ac_objext \
14316    conftest$ac_exeext conftest.$ac_ext
14317
14318  CFLAGS=$cflags_save
14319  LIBS=$libs_save
14320fi
14321
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
14323$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
14324if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
14325  $as_echo_n "(cached) " >&6
14326else
14327  ac_check_lib_save_LIBS=$LIBS
14328LIBS="-lxpg4  $LIBS"
14329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330/* end confdefs.h.  */
14331
14332/* Override any GCC internal prototype to avoid an error.
14333   Use char because int might match the return type of a GCC
14334   builtin and then its argument prototype would still apply.  */
14335#ifdef __cplusplus
14336extern "C"
14337#endif
14338char _xpg4_setrunelocale ();
14339int
14340main ()
14341{
14342return _xpg4_setrunelocale ();
14343  ;
14344  return 0;
14345}
14346_ACEOF
14347if ac_fn_c_try_link "$LINENO"; then :
14348  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14349else
14350  ac_cv_lib_xpg4__xpg4_setrunelocale=no
14351fi
14352rm -f core conftest.err conftest.$ac_objext \
14353    conftest$ac_exeext conftest.$ac_ext
14354LIBS=$ac_check_lib_save_LIBS
14355fi
14356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14357$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
14358if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
14359  LIBS="$LIBS -lxpg4"
14360fi
14361
14362
14363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
14364$as_echo_n "checking how to create tags... " >&6; }
14365test -f tags && mv tags tags.save
14366if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14367  TAGPRG="ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14368elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14369  TAGPRG="exctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14370elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14371  TAGPRG="exuberant-ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14372else
14373  TAGPRG="ctags"
14374  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14375  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14376  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14377  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14378  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14379  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14380  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14381fi
14382test -f tags.save && mv tags.save tags
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
14384$as_echo "$TAGPRG" >&6; }
14385
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
14387$as_echo_n "checking how to run man with a section nr... " >&6; }
14388MANDEF="man"
14389(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
14391$as_echo "$MANDEF" >&6; }
14392if test "$MANDEF" = "man -s"; then
14393  $as_echo "#define USEMAN_S 1" >>confdefs.h
14394
14395fi
14396
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
14398$as_echo_n "checking --disable-nls argument... " >&6; }
14399# Check whether --enable-nls was given.
14400if test "${enable_nls+set}" = set; then :
14401  enableval=$enable_nls;
14402else
14403  enable_nls="yes"
14404fi
14405
14406
14407if test "$enable_nls" = "yes"; then
14408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14409$as_echo "no" >&6; }
14410
14411  INSTALL_LANGS=install-languages
14412
14413  INSTALL_TOOL_LANGS=install-tool-languages
14414
14415
14416  # Extract the first word of "msgfmt", so it can be a program name with args.
14417set dummy msgfmt; ac_word=$2
14418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14419$as_echo_n "checking for $ac_word... " >&6; }
14420if ${ac_cv_prog_MSGFMT+:} false; then :
14421  $as_echo_n "(cached) " >&6
14422else
14423  if test -n "$MSGFMT"; then
14424  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14425else
14426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427for as_dir in $PATH
14428do
14429  IFS=$as_save_IFS
14430  test -z "$as_dir" && as_dir=.
14431    for ac_exec_ext in '' $ac_executable_extensions; do
14432  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14433    ac_cv_prog_MSGFMT="msgfmt"
14434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14435    break 2
14436  fi
14437done
14438  done
14439IFS=$as_save_IFS
14440
14441fi
14442fi
14443MSGFMT=$ac_cv_prog_MSGFMT
14444if test -n "$MSGFMT"; then
14445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14446$as_echo "$MSGFMT" >&6; }
14447else
14448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449$as_echo "no" >&6; }
14450fi
14451
14452
14453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
14454$as_echo_n "checking for NLS... " >&6; }
14455  if test -f po/Makefile; then
14456    have_gettext="no"
14457    if test -n "$MSGFMT"; then
14458      olibs=$LIBS
14459      LIBS=""
14460      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461/* end confdefs.h.  */
14462#include <libintl.h>
14463int
14464main ()
14465{
14466gettext("Test");
14467  ;
14468  return 0;
14469}
14470_ACEOF
14471if ac_fn_c_try_link "$LINENO"; then :
14472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
14473$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
14474else
14475  LIBS="-lintl"
14476	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477/* end confdefs.h.  */
14478#include <libintl.h>
14479int
14480main ()
14481{
14482gettext("Test");
14483  ;
14484  return 0;
14485}
14486_ACEOF
14487if ac_fn_c_try_link "$LINENO"; then :
14488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
14489$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
14490	      LIBS="$olibs -lintl"
14491else
14492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
14493$as_echo "gettext() doesn't work" >&6; };
14494	      LIBS=$olibs
14495fi
14496rm -f core conftest.err conftest.$ac_objext \
14497    conftest$ac_exeext conftest.$ac_ext
14498fi
14499rm -f core conftest.err conftest.$ac_objext \
14500    conftest$ac_exeext conftest.$ac_ext
14501    else
14502      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
14503$as_echo "msgfmt not found - disabled" >&6; };
14504    fi
14505    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
14506      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14507
14508      MAKEMO=yes
14509
14510            for ac_func in bind_textdomain_codeset
14511do :
14512  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14513if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14514  cat >>confdefs.h <<_ACEOF
14515#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14516_ACEOF
14517
14518fi
14519done
14520
14521            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
14522$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
14523      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524/* end confdefs.h.  */
14525#include <libintl.h>
14526		extern int _nl_msg_cat_cntr;
14527int
14528main ()
14529{
14530++_nl_msg_cat_cntr;
14531  ;
14532  return 0;
14533}
14534_ACEOF
14535if ac_fn_c_try_link "$LINENO"; then :
14536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14537$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
14538
14539else
14540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14541$as_echo "no" >&6; }
14542fi
14543rm -f core conftest.err conftest.$ac_objext \
14544    conftest$ac_exeext conftest.$ac_ext
14545      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5
14546$as_echo_n "checking if msgfmt supports --desktop... " >&6; }
14547      MSGFMT_DESKTOP=
14548      if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then
14549	if "$MSGFMT" --version | grep '0.19.[3-7]$' >/dev/null; then
14550	  	  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
14551$as_echo "broken" >&6; }
14552	else
14553	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14554$as_echo "yes" >&6; }
14555	  MSGFMT_DESKTOP="gvim.desktop vim.desktop"
14556	fi
14557      else
14558	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559$as_echo "no" >&6; }
14560      fi
14561
14562    fi
14563  else
14564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
14565$as_echo "no \"po/Makefile\" - disabled" >&6; };
14566  fi
14567else
14568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14569$as_echo "yes" >&6; }
14570fi
14571
14572ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14573if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14574  DLL=dlfcn.h
14575else
14576  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14577if test "x$ac_cv_header_dl_h" = xyes; then :
14578  DLL=dl.h
14579fi
14580
14581
14582fi
14583
14584
14585if test x${DLL} = xdlfcn.h; then
14586
14587$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14588
14589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
14590$as_echo_n "checking for dlopen()... " >&6; }
14591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592/* end confdefs.h.  */
14593
14594int
14595main ()
14596{
14597
14598		extern void* dlopen();
14599		dlopen();
14600
14601  ;
14602  return 0;
14603}
14604_ACEOF
14605if ac_fn_c_try_link "$LINENO"; then :
14606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14607$as_echo "yes" >&6; };
14608
14609$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14610
14611else
14612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14613$as_echo "no" >&6; };
14614	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
14615$as_echo_n "checking for dlopen() in -ldl... " >&6; }
14616	      olibs=$LIBS
14617	      LIBS="$LIBS -ldl"
14618	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619/* end confdefs.h.  */
14620
14621int
14622main ()
14623{
14624
14625				extern void* dlopen();
14626				dlopen();
14627
14628  ;
14629  return 0;
14630}
14631_ACEOF
14632if ac_fn_c_try_link "$LINENO"; then :
14633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14634$as_echo "yes" >&6; };
14635
14636$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14637
14638else
14639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640$as_echo "no" >&6; };
14641			  LIBS=$olibs
14642fi
14643rm -f core conftest.err conftest.$ac_objext \
14644    conftest$ac_exeext conftest.$ac_ext
14645fi
14646rm -f core conftest.err conftest.$ac_objext \
14647    conftest$ac_exeext conftest.$ac_ext
14648      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
14649$as_echo_n "checking for dlsym()... " >&6; }
14650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651/* end confdefs.h.  */
14652
14653int
14654main ()
14655{
14656
14657		extern void* dlsym();
14658		dlsym();
14659
14660  ;
14661  return 0;
14662}
14663_ACEOF
14664if ac_fn_c_try_link "$LINENO"; then :
14665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14666$as_echo "yes" >&6; };
14667
14668$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14669
14670else
14671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672$as_echo "no" >&6; };
14673	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
14674$as_echo_n "checking for dlsym() in -ldl... " >&6; }
14675	      olibs=$LIBS
14676	      LIBS="$LIBS -ldl"
14677	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678/* end confdefs.h.  */
14679
14680int
14681main ()
14682{
14683
14684				extern void* dlsym();
14685				dlsym();
14686
14687  ;
14688  return 0;
14689}
14690_ACEOF
14691if ac_fn_c_try_link "$LINENO"; then :
14692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14693$as_echo "yes" >&6; };
14694
14695$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14696
14697else
14698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14699$as_echo "no" >&6; };
14700			  LIBS=$olibs
14701fi
14702rm -f core conftest.err conftest.$ac_objext \
14703    conftest$ac_exeext conftest.$ac_ext
14704fi
14705rm -f core conftest.err conftest.$ac_objext \
14706    conftest$ac_exeext conftest.$ac_ext
14707elif test x${DLL} = xdl.h; then
14708
14709$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14710
14711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14712$as_echo_n "checking for shl_load()... " >&6; }
14713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714/* end confdefs.h.  */
14715
14716int
14717main ()
14718{
14719
14720		extern void* shl_load();
14721		shl_load();
14722
14723  ;
14724  return 0;
14725}
14726_ACEOF
14727if ac_fn_c_try_link "$LINENO"; then :
14728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14729$as_echo "yes" >&6; };
14730
14731$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14732
14733else
14734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14735$as_echo "no" >&6; };
14736	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14737$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14738	  olibs=$LIBS
14739	  LIBS="$LIBS -ldld"
14740	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741/* end confdefs.h.  */
14742
14743int
14744main ()
14745{
14746
14747			extern void* shl_load();
14748			shl_load();
14749
14750  ;
14751  return 0;
14752}
14753_ACEOF
14754if ac_fn_c_try_link "$LINENO"; then :
14755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14756$as_echo "yes" >&6; };
14757
14758$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14759
14760else
14761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14762$as_echo "no" >&6; };
14763		  LIBS=$olibs
14764fi
14765rm -f core conftest.err conftest.$ac_objext \
14766    conftest$ac_exeext conftest.$ac_ext
14767fi
14768rm -f core conftest.err conftest.$ac_objext \
14769    conftest$ac_exeext conftest.$ac_ext
14770fi
14771for ac_header in setjmp.h
14772do :
14773  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14774if test "x$ac_cv_header_setjmp_h" = xyes; then :
14775  cat >>confdefs.h <<_ACEOF
14776#define HAVE_SETJMP_H 1
14777_ACEOF
14778
14779fi
14780
14781done
14782
14783
14784if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then
14785    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14786    LIBS=`echo $LIBS | sed s/-ldl//`
14787    PERL_LIBS="$PERL_LIBS -ldl"
14788  fi
14789fi
14790
14791if test "$MACOS_X" = "yes"; then
14792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5
14793$as_echo_n "checking whether we need macOS frameworks... " >&6; }
14794  if test "$MACOS_X_DARWIN" = "yes"; then
14795    if test "$features" = "tiny"; then
14796            OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14797      OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14798      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
14799$as_echo "yes, we need CoreServices" >&6; }
14800      LIBS="$LIBS -framework CoreServices"
14801    else
14802      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
14803$as_echo "yes, we need AppKit" >&6; }
14804      LIBS="$LIBS -framework AppKit"
14805    fi
14806  else
14807    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14808$as_echo "no" >&6; }
14809  fi
14810fi
14811
14812DEPEND_CFLAGS_FILTER=
14813if test "$GCC" = yes; then
14814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14815$as_echo_n "checking for GCC 3 or later... " >&6; }
14816  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9][0-9]*\)\..*$/\1/g'`
14817  if test "$gccmajor" -gt "2"; then
14818    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14819    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14820$as_echo "yes" >&6; }
14821  else
14822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14823$as_echo "no" >&6; }
14824  fi
14825          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14826$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14827  if test "$gccmajor" -gt "3"; then
14828    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/'`
14829    CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g'`
14830    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14831$as_echo "yes" >&6; }
14832  else
14833    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14834$as_echo "no" >&6; }
14835  fi
14836fi
14837
14838
14839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5
14840$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; }
14841if 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
14842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14843$as_echo "yes" >&6; }
14844  $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14845
14846else
14847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848$as_echo "no" >&6; }
14849fi
14850
14851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14852$as_echo_n "checking linker --as-needed support... " >&6; }
14853LINK_AS_NEEDED=
14854# Check if linker supports --as-needed and --no-as-needed options
14855if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14856  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14857  LINK_AS_NEEDED=yes
14858fi
14859if test "$LINK_AS_NEEDED" = yes; then
14860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14861$as_echo "yes" >&6; }
14862else
14863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14864$as_echo "no" >&6; }
14865fi
14866
14867
14868# IBM z/OS reset CFLAGS for config.mk
14869if test "$zOSUnix" = "yes"; then
14870	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14871fi
14872
14873ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14874
14875cat >confcache <<\_ACEOF
14876# This file is a shell script that caches the results of configure
14877# tests run on this system so they can be shared between configure
14878# scripts and configure runs, see configure's option --config-cache.
14879# It is not useful on other systems.  If it contains results you don't
14880# want to keep, you may remove or edit it.
14881#
14882# config.status only pays attention to the cache file if you give it
14883# the --recheck option to rerun configure.
14884#
14885# `ac_cv_env_foo' variables (set or unset) will be overridden when
14886# loading this file, other *unset* `ac_cv_foo' will be assigned the
14887# following values.
14888
14889_ACEOF
14890
14891# The following way of writing the cache mishandles newlines in values,
14892# but we know of no workaround that is simple, portable, and efficient.
14893# So, we kill variables containing newlines.
14894# Ultrix sh set writes to stderr and can't be redirected directly,
14895# and sets the high bit in the cache file unless we assign to the vars.
14896(
14897  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14898    eval ac_val=\$$ac_var
14899    case $ac_val in #(
14900    *${as_nl}*)
14901      case $ac_var in #(
14902      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14903$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14904      esac
14905      case $ac_var in #(
14906      _ | IFS | as_nl) ;; #(
14907      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14908      *) { eval $ac_var=; unset $ac_var;} ;;
14909      esac ;;
14910    esac
14911  done
14912
14913  (set) 2>&1 |
14914    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14915    *${as_nl}ac_space=\ *)
14916      # `set' does not quote correctly, so add quotes: double-quote
14917      # substitution turns \\\\ into \\, and sed turns \\ into \.
14918      sed -n \
14919	"s/'/'\\\\''/g;
14920	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14921      ;; #(
14922    *)
14923      # `set' quotes correctly as required by POSIX, so do not add quotes.
14924      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14925      ;;
14926    esac |
14927    sort
14928) |
14929  sed '
14930     /^ac_cv_env_/b end
14931     t clear
14932     :clear
14933     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14934     t end
14935     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14936     :end' >>confcache
14937if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14938  if test -w "$cache_file"; then
14939    if test "x$cache_file" != "x/dev/null"; then
14940      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14941$as_echo "$as_me: updating cache $cache_file" >&6;}
14942      if test ! -f "$cache_file" || test -h "$cache_file"; then
14943	cat confcache >"$cache_file"
14944      else
14945        case $cache_file in #(
14946        */* | ?:*)
14947	  mv -f confcache "$cache_file"$$ &&
14948	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14949        *)
14950	  mv -f confcache "$cache_file" ;;
14951	esac
14952      fi
14953    fi
14954  else
14955    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14956$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14957  fi
14958fi
14959rm -f confcache
14960
14961test "x$prefix" = xNONE && prefix=$ac_default_prefix
14962# Let make expand exec_prefix.
14963test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14964
14965DEFS=-DHAVE_CONFIG_H
14966
14967ac_libobjs=
14968ac_ltlibobjs=
14969U=
14970for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14971  # 1. Remove the extension, and $U if already installed.
14972  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14973  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14974  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14975  #    will be set to the directory where LIBOBJS objects are built.
14976  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14977  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14978done
14979LIBOBJS=$ac_libobjs
14980
14981LTLIBOBJS=$ac_ltlibobjs
14982
14983
14984
14985
14986: "${CONFIG_STATUS=./config.status}"
14987ac_write_fail=0
14988ac_clean_files_save=$ac_clean_files
14989ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14990{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14991$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14992as_write_fail=0
14993cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14994#! $SHELL
14995# Generated by $as_me.
14996# Run this file to recreate the current configuration.
14997# Compiler output produced by configure, useful for debugging
14998# configure, is in config.log if it exists.
14999
15000debug=false
15001ac_cs_recheck=false
15002ac_cs_silent=false
15003
15004SHELL=\${CONFIG_SHELL-$SHELL}
15005export SHELL
15006_ASEOF
15007cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15008## -------------------- ##
15009## M4sh Initialization. ##
15010## -------------------- ##
15011
15012# Be more Bourne compatible
15013DUALCASE=1; export DUALCASE # for MKS sh
15014if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15015  emulate sh
15016  NULLCMD=:
15017  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15018  # is contrary to our usage.  Disable this feature.
15019  alias -g '${1+"$@"}'='"$@"'
15020  setopt NO_GLOB_SUBST
15021else
15022  case `(set -o) 2>/dev/null` in #(
15023  *posix*) :
15024    set -o posix ;; #(
15025  *) :
15026     ;;
15027esac
15028fi
15029
15030
15031as_nl='
15032'
15033export as_nl
15034# Printing a long string crashes Solaris 7 /usr/bin/printf.
15035as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15036as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15037as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15038# Prefer a ksh shell builtin over an external printf program on Solaris,
15039# but without wasting forks for bash or zsh.
15040if test -z "$BASH_VERSION$ZSH_VERSION" \
15041    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15042  as_echo='print -r --'
15043  as_echo_n='print -rn --'
15044elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15045  as_echo='printf %s\n'
15046  as_echo_n='printf %s'
15047else
15048  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15049    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15050    as_echo_n='/usr/ucb/echo -n'
15051  else
15052    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15053    as_echo_n_body='eval
15054      arg=$1;
15055      case $arg in #(
15056      *"$as_nl"*)
15057	expr "X$arg" : "X\\(.*\\)$as_nl";
15058	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15059      esac;
15060      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15061    '
15062    export as_echo_n_body
15063    as_echo_n='sh -c $as_echo_n_body as_echo'
15064  fi
15065  export as_echo_body
15066  as_echo='sh -c $as_echo_body as_echo'
15067fi
15068
15069# The user is always right.
15070if test "${PATH_SEPARATOR+set}" != set; then
15071  PATH_SEPARATOR=:
15072  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15073    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15074      PATH_SEPARATOR=';'
15075  }
15076fi
15077
15078
15079# IFS
15080# We need space, tab and new line, in precisely that order.  Quoting is
15081# there to prevent editors from complaining about space-tab.
15082# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15083# splitting by setting IFS to empty value.)
15084IFS=" ""	$as_nl"
15085
15086# Find who we are.  Look in the path if we contain no directory separator.
15087as_myself=
15088case $0 in #((
15089  *[\\/]* ) as_myself=$0 ;;
15090  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15091for as_dir in $PATH
15092do
15093  IFS=$as_save_IFS
15094  test -z "$as_dir" && as_dir=.
15095    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15096  done
15097IFS=$as_save_IFS
15098
15099     ;;
15100esac
15101# We did not find ourselves, most probably we were run as `sh COMMAND'
15102# in which case we are not to be found in the path.
15103if test "x$as_myself" = x; then
15104  as_myself=$0
15105fi
15106if test ! -f "$as_myself"; then
15107  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15108  exit 1
15109fi
15110
15111# Unset variables that we do not need and which cause bugs (e.g. in
15112# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15113# suppresses any "Segmentation fault" message there.  '((' could
15114# trigger a bug in pdksh 5.2.14.
15115for as_var in BASH_ENV ENV MAIL MAILPATH
15116do eval test x\${$as_var+set} = xset \
15117  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15118done
15119PS1='$ '
15120PS2='> '
15121PS4='+ '
15122
15123# NLS nuisances.
15124LC_ALL=C
15125export LC_ALL
15126LANGUAGE=C
15127export LANGUAGE
15128
15129# CDPATH.
15130(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15131
15132
15133# as_fn_error STATUS ERROR [LINENO LOG_FD]
15134# ----------------------------------------
15135# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15136# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15137# script with STATUS, using 1 if that was 0.
15138as_fn_error ()
15139{
15140  as_status=$1; test $as_status -eq 0 && as_status=1
15141  if test "$4"; then
15142    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15143    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15144  fi
15145  $as_echo "$as_me: error: $2" >&2
15146  as_fn_exit $as_status
15147} # as_fn_error
15148
15149
15150# as_fn_set_status STATUS
15151# -----------------------
15152# Set $? to STATUS, without forking.
15153as_fn_set_status ()
15154{
15155  return $1
15156} # as_fn_set_status
15157
15158# as_fn_exit STATUS
15159# -----------------
15160# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15161as_fn_exit ()
15162{
15163  set +e
15164  as_fn_set_status $1
15165  exit $1
15166} # as_fn_exit
15167
15168# as_fn_unset VAR
15169# ---------------
15170# Portably unset VAR.
15171as_fn_unset ()
15172{
15173  { eval $1=; unset $1;}
15174}
15175as_unset=as_fn_unset
15176# as_fn_append VAR VALUE
15177# ----------------------
15178# Append the text in VALUE to the end of the definition contained in VAR. Take
15179# advantage of any shell optimizations that allow amortized linear growth over
15180# repeated appends, instead of the typical quadratic growth present in naive
15181# implementations.
15182if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15183  eval 'as_fn_append ()
15184  {
15185    eval $1+=\$2
15186  }'
15187else
15188  as_fn_append ()
15189  {
15190    eval $1=\$$1\$2
15191  }
15192fi # as_fn_append
15193
15194# as_fn_arith ARG...
15195# ------------------
15196# Perform arithmetic evaluation on the ARGs, and store the result in the
15197# global $as_val. Take advantage of shells that can avoid forks. The arguments
15198# must be portable across $(()) and expr.
15199if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15200  eval 'as_fn_arith ()
15201  {
15202    as_val=$(( $* ))
15203  }'
15204else
15205  as_fn_arith ()
15206  {
15207    as_val=`expr "$@" || test $? -eq 1`
15208  }
15209fi # as_fn_arith
15210
15211
15212if expr a : '\(a\)' >/dev/null 2>&1 &&
15213   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15214  as_expr=expr
15215else
15216  as_expr=false
15217fi
15218
15219if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15220  as_basename=basename
15221else
15222  as_basename=false
15223fi
15224
15225if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15226  as_dirname=dirname
15227else
15228  as_dirname=false
15229fi
15230
15231as_me=`$as_basename -- "$0" ||
15232$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15233	 X"$0" : 'X\(//\)$' \| \
15234	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15235$as_echo X/"$0" |
15236    sed '/^.*\/\([^/][^/]*\)\/*$/{
15237	    s//\1/
15238	    q
15239	  }
15240	  /^X\/\(\/\/\)$/{
15241	    s//\1/
15242	    q
15243	  }
15244	  /^X\/\(\/\).*/{
15245	    s//\1/
15246	    q
15247	  }
15248	  s/.*/./; q'`
15249
15250# Avoid depending upon Character Ranges.
15251as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15252as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15253as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15254as_cr_digits='0123456789'
15255as_cr_alnum=$as_cr_Letters$as_cr_digits
15256
15257ECHO_C= ECHO_N= ECHO_T=
15258case `echo -n x` in #(((((
15259-n*)
15260  case `echo 'xy\c'` in
15261  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15262  xy)  ECHO_C='\c';;
15263  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15264       ECHO_T='	';;
15265  esac;;
15266*)
15267  ECHO_N='-n';;
15268esac
15269
15270rm -f conf$$ conf$$.exe conf$$.file
15271if test -d conf$$.dir; then
15272  rm -f conf$$.dir/conf$$.file
15273else
15274  rm -f conf$$.dir
15275  mkdir conf$$.dir 2>/dev/null
15276fi
15277if (echo >conf$$.file) 2>/dev/null; then
15278  if ln -s conf$$.file conf$$ 2>/dev/null; then
15279    as_ln_s='ln -s'
15280    # ... but there are two gotchas:
15281    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15282    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15283    # In both cases, we have to default to `cp -pR'.
15284    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15285      as_ln_s='cp -pR'
15286  elif ln conf$$.file conf$$ 2>/dev/null; then
15287    as_ln_s=ln
15288  else
15289    as_ln_s='cp -pR'
15290  fi
15291else
15292  as_ln_s='cp -pR'
15293fi
15294rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15295rmdir conf$$.dir 2>/dev/null
15296
15297
15298# as_fn_mkdir_p
15299# -------------
15300# Create "$as_dir" as a directory, including parents if necessary.
15301as_fn_mkdir_p ()
15302{
15303
15304  case $as_dir in #(
15305  -*) as_dir=./$as_dir;;
15306  esac
15307  test -d "$as_dir" || eval $as_mkdir_p || {
15308    as_dirs=
15309    while :; do
15310      case $as_dir in #(
15311      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15312      *) as_qdir=$as_dir;;
15313      esac
15314      as_dirs="'$as_qdir' $as_dirs"
15315      as_dir=`$as_dirname -- "$as_dir" ||
15316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15317	 X"$as_dir" : 'X\(//\)[^/]' \| \
15318	 X"$as_dir" : 'X\(//\)$' \| \
15319	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15320$as_echo X"$as_dir" |
15321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15322	    s//\1/
15323	    q
15324	  }
15325	  /^X\(\/\/\)[^/].*/{
15326	    s//\1/
15327	    q
15328	  }
15329	  /^X\(\/\/\)$/{
15330	    s//\1/
15331	    q
15332	  }
15333	  /^X\(\/\).*/{
15334	    s//\1/
15335	    q
15336	  }
15337	  s/.*/./; q'`
15338      test -d "$as_dir" && break
15339    done
15340    test -z "$as_dirs" || eval "mkdir $as_dirs"
15341  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15342
15343
15344} # as_fn_mkdir_p
15345if mkdir -p . 2>/dev/null; then
15346  as_mkdir_p='mkdir -p "$as_dir"'
15347else
15348  test -d ./-p && rmdir ./-p
15349  as_mkdir_p=false
15350fi
15351
15352
15353# as_fn_executable_p FILE
15354# -----------------------
15355# Test if FILE is an executable regular file.
15356as_fn_executable_p ()
15357{
15358  test -f "$1" && test -x "$1"
15359} # as_fn_executable_p
15360as_test_x='test -x'
15361as_executable_p=as_fn_executable_p
15362
15363# Sed expression to map a string onto a valid CPP name.
15364as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15365
15366# Sed expression to map a string onto a valid variable name.
15367as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15368
15369
15370exec 6>&1
15371## ----------------------------------- ##
15372## Main body of $CONFIG_STATUS script. ##
15373## ----------------------------------- ##
15374_ASEOF
15375test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15376
15377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15378# Save the log message, to keep $0 and so on meaningful, and to
15379# report actual input values of CONFIG_FILES etc. instead of their
15380# values after options handling.
15381ac_log="
15382This file was extended by $as_me, which was
15383generated by GNU Autoconf 2.69.  Invocation command line was
15384
15385  CONFIG_FILES    = $CONFIG_FILES
15386  CONFIG_HEADERS  = $CONFIG_HEADERS
15387  CONFIG_LINKS    = $CONFIG_LINKS
15388  CONFIG_COMMANDS = $CONFIG_COMMANDS
15389  $ $0 $@
15390
15391on `(hostname || uname -n) 2>/dev/null | sed 1q`
15392"
15393
15394_ACEOF
15395
15396case $ac_config_files in *"
15397"*) set x $ac_config_files; shift; ac_config_files=$*;;
15398esac
15399
15400case $ac_config_headers in *"
15401"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15402esac
15403
15404
15405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15406# Files that config.status was made for.
15407config_files="$ac_config_files"
15408config_headers="$ac_config_headers"
15409
15410_ACEOF
15411
15412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15413ac_cs_usage="\
15414\`$as_me' instantiates files and other configuration actions
15415from templates according to the current configuration.  Unless the files
15416and actions are specified as TAGs, all are instantiated by default.
15417
15418Usage: $0 [OPTION]... [TAG]...
15419
15420  -h, --help       print this help, then exit
15421  -V, --version    print version number and configuration settings, then exit
15422      --config     print configuration, then exit
15423  -q, --quiet, --silent
15424                   do not print progress messages
15425  -d, --debug      don't remove temporary files
15426      --recheck    update $as_me by reconfiguring in the same conditions
15427      --file=FILE[:TEMPLATE]
15428                   instantiate the configuration file FILE
15429      --header=FILE[:TEMPLATE]
15430                   instantiate the configuration header FILE
15431
15432Configuration files:
15433$config_files
15434
15435Configuration headers:
15436$config_headers
15437
15438Report bugs to the package provider."
15439
15440_ACEOF
15441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15442ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15443ac_cs_version="\\
15444config.status
15445configured by $0, generated by GNU Autoconf 2.69,
15446  with options \\"\$ac_cs_config\\"
15447
15448Copyright (C) 2012 Free Software Foundation, Inc.
15449This config.status script is free software; the Free Software Foundation
15450gives unlimited permission to copy, distribute and modify it."
15451
15452ac_pwd='$ac_pwd'
15453srcdir='$srcdir'
15454AWK='$AWK'
15455test -n "\$AWK" || AWK=awk
15456_ACEOF
15457
15458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15459# The default lists apply if the user does not specify any file.
15460ac_need_defaults=:
15461while test $# != 0
15462do
15463  case $1 in
15464  --*=?*)
15465    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15466    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15467    ac_shift=:
15468    ;;
15469  --*=)
15470    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15471    ac_optarg=
15472    ac_shift=:
15473    ;;
15474  *)
15475    ac_option=$1
15476    ac_optarg=$2
15477    ac_shift=shift
15478    ;;
15479  esac
15480
15481  case $ac_option in
15482  # Handling of the options.
15483  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15484    ac_cs_recheck=: ;;
15485  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15486    $as_echo "$ac_cs_version"; exit ;;
15487  --config | --confi | --conf | --con | --co | --c )
15488    $as_echo "$ac_cs_config"; exit ;;
15489  --debug | --debu | --deb | --de | --d | -d )
15490    debug=: ;;
15491  --file | --fil | --fi | --f )
15492    $ac_shift
15493    case $ac_optarg in
15494    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15495    '') as_fn_error $? "missing file argument" ;;
15496    esac
15497    as_fn_append CONFIG_FILES " '$ac_optarg'"
15498    ac_need_defaults=false;;
15499  --header | --heade | --head | --hea )
15500    $ac_shift
15501    case $ac_optarg in
15502    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15503    esac
15504    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15505    ac_need_defaults=false;;
15506  --he | --h)
15507    # Conflict between --help and --header
15508    as_fn_error $? "ambiguous option: \`$1'
15509Try \`$0 --help' for more information.";;
15510  --help | --hel | -h )
15511    $as_echo "$ac_cs_usage"; exit ;;
15512  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15513  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15514    ac_cs_silent=: ;;
15515
15516  # This is an error.
15517  -*) as_fn_error $? "unrecognized option: \`$1'
15518Try \`$0 --help' for more information." ;;
15519
15520  *) as_fn_append ac_config_targets " $1"
15521     ac_need_defaults=false ;;
15522
15523  esac
15524  shift
15525done
15526
15527ac_configure_extra_args=
15528
15529if $ac_cs_silent; then
15530  exec 6>/dev/null
15531  ac_configure_extra_args="$ac_configure_extra_args --silent"
15532fi
15533
15534_ACEOF
15535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15536if \$ac_cs_recheck; then
15537  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15538  shift
15539  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15540  CONFIG_SHELL='$SHELL'
15541  export CONFIG_SHELL
15542  exec "\$@"
15543fi
15544
15545_ACEOF
15546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15547exec 5>>auto/config.log
15548{
15549  echo
15550  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15551## Running $as_me. ##
15552_ASBOX
15553  $as_echo "$ac_log"
15554} >&5
15555
15556_ACEOF
15557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15558_ACEOF
15559
15560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561
15562# Handling of arguments.
15563for ac_config_target in $ac_config_targets
15564do
15565  case $ac_config_target in
15566    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15567    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15568
15569  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15570  esac
15571done
15572
15573
15574# If the user did not use the arguments to specify the items to instantiate,
15575# then the envvar interface is used.  Set only those that are not.
15576# We use the long form for the default assignment because of an extremely
15577# bizarre bug on SunOS 4.1.3.
15578if $ac_need_defaults; then
15579  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15580  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15581fi
15582
15583# Have a temporary directory for convenience.  Make it in the build tree
15584# simply because there is no reason against having it here, and in addition,
15585# creating and moving files from /tmp can sometimes cause problems.
15586# Hook for its removal unless debugging.
15587# Note that there is a small window in which the directory will not be cleaned:
15588# after its creation but before its name has been assigned to `$tmp'.
15589$debug ||
15590{
15591  tmp= ac_tmp=
15592  trap 'exit_status=$?
15593  : "${ac_tmp:=$tmp}"
15594  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15595' 0
15596  trap 'as_fn_exit 1' 1 2 13 15
15597}
15598# Create a (secure) tmp directory for tmp files.
15599
15600{
15601  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15602  test -d "$tmp"
15603}  ||
15604{
15605  tmp=./conf$$-$RANDOM
15606  (umask 077 && mkdir "$tmp")
15607} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15608ac_tmp=$tmp
15609
15610# Set up the scripts for CONFIG_FILES section.
15611# No need to generate them if there are no CONFIG_FILES.
15612# This happens for instance with `./config.status config.h'.
15613if test -n "$CONFIG_FILES"; then
15614
15615
15616ac_cr=`echo X | tr X '\015'`
15617# On cygwin, bash can eat \r inside `` if the user requested igncr.
15618# But we know of no other shell where ac_cr would be empty at this
15619# point, so we can use a bashism as a fallback.
15620if test "x$ac_cr" = x; then
15621  eval ac_cr=\$\'\\r\'
15622fi
15623ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15624if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15625  ac_cs_awk_cr='\\r'
15626else
15627  ac_cs_awk_cr=$ac_cr
15628fi
15629
15630echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15631_ACEOF
15632
15633
15634{
15635  echo "cat >conf$$subs.awk <<_ACEOF" &&
15636  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15637  echo "_ACEOF"
15638} >conf$$subs.sh ||
15639  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15640ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15641ac_delim='%!_!# '
15642for ac_last_try in false false false false false :; do
15643  . ./conf$$subs.sh ||
15644    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15645
15646  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15647  if test $ac_delim_n = $ac_delim_num; then
15648    break
15649  elif $ac_last_try; then
15650    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15651  else
15652    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15653  fi
15654done
15655rm -f conf$$subs.sh
15656
15657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15658cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15659_ACEOF
15660sed -n '
15661h
15662s/^/S["/; s/!.*/"]=/
15663p
15664g
15665s/^[^!]*!//
15666:repl
15667t repl
15668s/'"$ac_delim"'$//
15669t delim
15670:nl
15671h
15672s/\(.\{148\}\)..*/\1/
15673t more1
15674s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15675p
15676n
15677b repl
15678:more1
15679s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15680p
15681g
15682s/.\{148\}//
15683t nl
15684:delim
15685h
15686s/\(.\{148\}\)..*/\1/
15687t more2
15688s/["\\]/\\&/g; s/^/"/; s/$/"/
15689p
15690b
15691:more2
15692s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15693p
15694g
15695s/.\{148\}//
15696t delim
15697' <conf$$subs.awk | sed '
15698/^[^""]/{
15699  N
15700  s/\n//
15701}
15702' >>$CONFIG_STATUS || ac_write_fail=1
15703rm -f conf$$subs.awk
15704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15705_ACAWK
15706cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15707  for (key in S) S_is_set[key] = 1
15708  FS = ""
15709
15710}
15711{
15712  line = $ 0
15713  nfields = split(line, field, "@")
15714  substed = 0
15715  len = length(field[1])
15716  for (i = 2; i < nfields; i++) {
15717    key = field[i]
15718    keylen = length(key)
15719    if (S_is_set[key]) {
15720      value = S[key]
15721      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15722      len += length(value) + length(field[++i])
15723      substed = 1
15724    } else
15725      len += 1 + keylen
15726  }
15727
15728  print line
15729}
15730
15731_ACAWK
15732_ACEOF
15733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15734if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15735  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15736else
15737  cat
15738fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15739  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15740_ACEOF
15741
15742# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15743# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15744# trailing colons and then remove the whole line if VPATH becomes empty
15745# (actually we leave an empty line to preserve line numbers).
15746if test "x$srcdir" = x.; then
15747  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15748h
15749s///
15750s/^/:/
15751s/[	 ]*$/:/
15752s/:\$(srcdir):/:/g
15753s/:\${srcdir}:/:/g
15754s/:@srcdir@:/:/g
15755s/^:*//
15756s/:*$//
15757x
15758s/\(=[	 ]*\).*/\1/
15759G
15760s/\n//
15761s/^[^=]*=[	 ]*$//
15762}'
15763fi
15764
15765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15766fi # test -n "$CONFIG_FILES"
15767
15768# Set up the scripts for CONFIG_HEADERS section.
15769# No need to generate them if there are no CONFIG_HEADERS.
15770# This happens for instance with `./config.status Makefile'.
15771if test -n "$CONFIG_HEADERS"; then
15772cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15773BEGIN {
15774_ACEOF
15775
15776# Transform confdefs.h into an awk script `defines.awk', embedded as
15777# here-document in config.status, that substitutes the proper values into
15778# config.h.in to produce config.h.
15779
15780# Create a delimiter string that does not exist in confdefs.h, to ease
15781# handling of long lines.
15782ac_delim='%!_!# '
15783for ac_last_try in false false :; do
15784  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15785  if test -z "$ac_tt"; then
15786    break
15787  elif $ac_last_try; then
15788    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15789  else
15790    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15791  fi
15792done
15793
15794# For the awk script, D is an array of macro values keyed by name,
15795# likewise P contains macro parameters if any.  Preserve backslash
15796# newline sequences.
15797
15798ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15799sed -n '
15800s/.\{148\}/&'"$ac_delim"'/g
15801t rset
15802:rset
15803s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15804t def
15805d
15806:def
15807s/\\$//
15808t bsnl
15809s/["\\]/\\&/g
15810s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15811D["\1"]=" \3"/p
15812s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15813d
15814:bsnl
15815s/["\\]/\\&/g
15816s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15817D["\1"]=" \3\\\\\\n"\\/p
15818t cont
15819s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15820t cont
15821d
15822:cont
15823n
15824s/.\{148\}/&'"$ac_delim"'/g
15825t clear
15826:clear
15827s/\\$//
15828t bsnlc
15829s/["\\]/\\&/g; s/^/"/; s/$/"/p
15830d
15831:bsnlc
15832s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15833b cont
15834' <confdefs.h | sed '
15835s/'"$ac_delim"'/"\\\
15836"/g' >>$CONFIG_STATUS || ac_write_fail=1
15837
15838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15839  for (key in D) D_is_set[key] = 1
15840  FS = ""
15841}
15842/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15843  line = \$ 0
15844  split(line, arg, " ")
15845  if (arg[1] == "#") {
15846    defundef = arg[2]
15847    mac1 = arg[3]
15848  } else {
15849    defundef = substr(arg[1], 2)
15850    mac1 = arg[2]
15851  }
15852  split(mac1, mac2, "(") #)
15853  macro = mac2[1]
15854  prefix = substr(line, 1, index(line, defundef) - 1)
15855  if (D_is_set[macro]) {
15856    # Preserve the white space surrounding the "#".
15857    print prefix "define", macro P[macro] D[macro]
15858    next
15859  } else {
15860    # Replace #undef with comments.  This is necessary, for example,
15861    # in the case of _POSIX_SOURCE, which is predefined and required
15862    # on some systems where configure will not decide to define it.
15863    if (defundef == "undef") {
15864      print "/*", prefix defundef, macro, "*/"
15865      next
15866    }
15867  }
15868}
15869{ print }
15870_ACAWK
15871_ACEOF
15872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15873  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15874fi # test -n "$CONFIG_HEADERS"
15875
15876
15877eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15878shift
15879for ac_tag
15880do
15881  case $ac_tag in
15882  :[FHLC]) ac_mode=$ac_tag; continue;;
15883  esac
15884  case $ac_mode$ac_tag in
15885  :[FHL]*:*);;
15886  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15887  :[FH]-) ac_tag=-:-;;
15888  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15889  esac
15890  ac_save_IFS=$IFS
15891  IFS=:
15892  set x $ac_tag
15893  IFS=$ac_save_IFS
15894  shift
15895  ac_file=$1
15896  shift
15897
15898  case $ac_mode in
15899  :L) ac_source=$1;;
15900  :[FH])
15901    ac_file_inputs=
15902    for ac_f
15903    do
15904      case $ac_f in
15905      -) ac_f="$ac_tmp/stdin";;
15906      *) # Look for the file first in the build tree, then in the source tree
15907	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15908	 # because $ac_f cannot contain `:'.
15909	 test -f "$ac_f" ||
15910	   case $ac_f in
15911	   [\\/$]*) false;;
15912	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15913	   esac ||
15914	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15915      esac
15916      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15917      as_fn_append ac_file_inputs " '$ac_f'"
15918    done
15919
15920    # Let's still pretend it is `configure' which instantiates (i.e., don't
15921    # use $as_me), people would be surprised to read:
15922    #    /* config.h.  Generated by config.status.  */
15923    configure_input='Generated from '`
15924	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15925	`' by configure.'
15926    if test x"$ac_file" != x-; then
15927      configure_input="$ac_file.  $configure_input"
15928      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15929$as_echo "$as_me: creating $ac_file" >&6;}
15930    fi
15931    # Neutralize special characters interpreted by sed in replacement strings.
15932    case $configure_input in #(
15933    *\&* | *\|* | *\\* )
15934       ac_sed_conf_input=`$as_echo "$configure_input" |
15935       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15936    *) ac_sed_conf_input=$configure_input;;
15937    esac
15938
15939    case $ac_tag in
15940    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15941      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15942    esac
15943    ;;
15944  esac
15945
15946  ac_dir=`$as_dirname -- "$ac_file" ||
15947$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15948	 X"$ac_file" : 'X\(//\)[^/]' \| \
15949	 X"$ac_file" : 'X\(//\)$' \| \
15950	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15951$as_echo X"$ac_file" |
15952    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15953	    s//\1/
15954	    q
15955	  }
15956	  /^X\(\/\/\)[^/].*/{
15957	    s//\1/
15958	    q
15959	  }
15960	  /^X\(\/\/\)$/{
15961	    s//\1/
15962	    q
15963	  }
15964	  /^X\(\/\).*/{
15965	    s//\1/
15966	    q
15967	  }
15968	  s/.*/./; q'`
15969  as_dir="$ac_dir"; as_fn_mkdir_p
15970  ac_builddir=.
15971
15972case "$ac_dir" in
15973.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15974*)
15975  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15976  # A ".." for each directory in $ac_dir_suffix.
15977  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15978  case $ac_top_builddir_sub in
15979  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15980  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15981  esac ;;
15982esac
15983ac_abs_top_builddir=$ac_pwd
15984ac_abs_builddir=$ac_pwd$ac_dir_suffix
15985# for backward compatibility:
15986ac_top_builddir=$ac_top_build_prefix
15987
15988case $srcdir in
15989  .)  # We are building in place.
15990    ac_srcdir=.
15991    ac_top_srcdir=$ac_top_builddir_sub
15992    ac_abs_top_srcdir=$ac_pwd ;;
15993  [\\/]* | ?:[\\/]* )  # Absolute name.
15994    ac_srcdir=$srcdir$ac_dir_suffix;
15995    ac_top_srcdir=$srcdir
15996    ac_abs_top_srcdir=$srcdir ;;
15997  *) # Relative name.
15998    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15999    ac_top_srcdir=$ac_top_build_prefix$srcdir
16000    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16001esac
16002ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16003
16004
16005  case $ac_mode in
16006  :F)
16007  #
16008  # CONFIG_FILE
16009  #
16010
16011_ACEOF
16012
16013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16014# If the template does not know about datarootdir, expand it.
16015# FIXME: This hack should be removed a few years after 2.60.
16016ac_datarootdir_hack=; ac_datarootdir_seen=
16017ac_sed_dataroot='
16018/datarootdir/ {
16019  p
16020  q
16021}
16022/@datadir@/p
16023/@docdir@/p
16024/@infodir@/p
16025/@localedir@/p
16026/@mandir@/p'
16027case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16028*datarootdir*) ac_datarootdir_seen=yes;;
16029*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16030  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16031$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16032_ACEOF
16033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16034  ac_datarootdir_hack='
16035  s&@datadir@&$datadir&g
16036  s&@docdir@&$docdir&g
16037  s&@infodir@&$infodir&g
16038  s&@localedir@&$localedir&g
16039  s&@mandir@&$mandir&g
16040  s&\\\${datarootdir}&$datarootdir&g' ;;
16041esac
16042_ACEOF
16043
16044# Neutralize VPATH when `$srcdir' = `.'.
16045# Shell code in configure.ac might set extrasub.
16046# FIXME: do we really want to maintain this feature?
16047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16048ac_sed_extra="$ac_vpsub
16049$extrasub
16050_ACEOF
16051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16052:t
16053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16054s|@configure_input@|$ac_sed_conf_input|;t t
16055s&@top_builddir@&$ac_top_builddir_sub&;t t
16056s&@top_build_prefix@&$ac_top_build_prefix&;t t
16057s&@srcdir@&$ac_srcdir&;t t
16058s&@abs_srcdir@&$ac_abs_srcdir&;t t
16059s&@top_srcdir@&$ac_top_srcdir&;t t
16060s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16061s&@builddir@&$ac_builddir&;t t
16062s&@abs_builddir@&$ac_abs_builddir&;t t
16063s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16064$ac_datarootdir_hack
16065"
16066eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16067  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16068
16069test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16070  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16071  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16072      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16073  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16074which seems to be undefined.  Please make sure it is defined" >&5
16075$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16076which seems to be undefined.  Please make sure it is defined" >&2;}
16077
16078  rm -f "$ac_tmp/stdin"
16079  case $ac_file in
16080  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16081  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16082  esac \
16083  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16084 ;;
16085  :H)
16086  #
16087  # CONFIG_HEADER
16088  #
16089  if test x"$ac_file" != x-; then
16090    {
16091      $as_echo "/* $configure_input  */" \
16092      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16093    } >"$ac_tmp/config.h" \
16094      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16095    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16096      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16097$as_echo "$as_me: $ac_file is unchanged" >&6;}
16098    else
16099      rm -f "$ac_file"
16100      mv "$ac_tmp/config.h" "$ac_file" \
16101	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16102    fi
16103  else
16104    $as_echo "/* $configure_input  */" \
16105      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16106      || as_fn_error $? "could not create -" "$LINENO" 5
16107  fi
16108 ;;
16109
16110
16111  esac
16112
16113done # for ac_tag
16114
16115
16116as_fn_exit 0
16117_ACEOF
16118ac_clean_files=$ac_clean_files_save
16119
16120test $ac_write_fail = 0 ||
16121  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16122
16123
16124# configure is writing to config.log, and then calls config.status.
16125# config.status does its own redirection, appending to config.log.
16126# Unfortunately, on DOS this fails, as config.log is still kept open
16127# by configure, so config.status won't be able to write to it; its
16128# output is simply discarded.  So we exec the FD to /dev/null,
16129# effectively closing config.log, so it can be properly (re)opened and
16130# appended to by config.status.  When coming back to configure, we
16131# need to make the FD available again.
16132if test "$no_create" != yes; then
16133  ac_cs_success=:
16134  ac_config_status_args=
16135  test "$silent" = yes &&
16136    ac_config_status_args="$ac_config_status_args --quiet"
16137  exec 5>/dev/null
16138  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16139  exec 5>>auto/config.log
16140  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16141  # would make configure fail if this is the last instruction.
16142  $ac_cs_success || as_fn_exit 1
16143fi
16144if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16145  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16146$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16147fi
16148
16149
16150