xref: /vim-8.2.3635/src/auto/configure (revision 37c64c78)
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
626MAKEMO
627MSGFMT
628INSTALL_TOOL_LANGS
629INSTALL_LANGS
630TAGPRG
631HANGULIN_OBJ
632HANGULIN_SRC
633GUI_X_LIBS
634GUITYPE
635GUI_LIB_LOC
636GUI_INC_LOC
637NARROW_PROTO
638MOTIF_LIBNAME
639GRESOURCE_OBJ
640GRESOURCE_SRC
641UPDATE_DESKTOP_DATABASE
642GTK_UPDATE_ICON_CACHE
643GLIB_COMPILE_RESOURCES
644GNOME_INCLUDEDIR
645GNOME_LIBDIR
646GNOME_LIBS
647GTK_LIBNAME
648GTK_LIBS
649GTK_CFLAGS
650PKG_CONFIG
651X_LIB
652X_EXTRA_LIBS
653X_LIBS
654X_PRE_LIBS
655X_CFLAGS
656XMKMF
657xmkmfpath
658TERM_OBJ
659TERM_SRC
660CHANNEL_OBJ
661CHANNEL_SRC
662NETBEANS_OBJ
663NETBEANS_SRC
664WORKSHOP_OBJ
665WORKSHOP_SRC
666RUBY_LIBS
667RUBY_CFLAGS
668RUBY_PRO
669RUBY_OBJ
670RUBY_SRC
671vi_cv_path_ruby
672TCL_LIBS
673TCL_CFLAGS
674TCL_PRO
675TCL_OBJ
676TCL_SRC
677vi_cv_path_tcl
678PYTHON3_OBJ
679PYTHON3_SRC
680PYTHON3_CFLAGS
681PYTHON3_LIBS
682PYTHON3_CONFDIR
683vi_cv_path_python3
684PYTHON_OBJ
685PYTHON_SRC
686PYTHON_CFLAGS
687PYTHON_GETPATH_CFLAGS
688PYTHON_LIBS
689PYTHON_CONFDIR
690vi_cv_path_python
691PERL_LIBS
692PERL_CFLAGS
693PERL_PRO
694PERL_OBJ
695PERL_SRC
696shrpenv
697vi_cv_perl_xsubpp
698vi_cv_perllib
699vi_cv_path_perl
700MZSCHEME_MZC
701MZSCHEME_EXTRA
702MZSCHEME_CFLAGS
703MZSCHEME_LIBS
704MZSCHEME_PRO
705MZSCHEME_OBJ
706MZSCHEME_SRC
707vi_cv_path_mzscheme
708LUA_CFLAGS
709LUA_LIBS
710LUA_PRO
711LUA_OBJ
712LUA_SRC
713vi_cv_path_plain_lua
714vi_cv_path_luajit
715vi_cv_path_lua
716compiledby
717dogvimdiff
718dovimdiff
719QUOTESED
720line_break
721VIEWNAME
722EXNAME
723VIMNAME
724OS_EXTRA_OBJ
725OS_EXTRA_SRC
726XCODE_SELECT
727CPP_MM
728CROSS_COMPILING
729STRIP
730AWK
731FGREP
732EGREP
733GREP
734CPP
735OBJEXT
736EXEEXT
737ac_ct_CC
738CPPFLAGS
739LDFLAGS
740CFLAGS
741CC
742SET_MAKE
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762runstatedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
774PACKAGE_URL
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL'
782ac_subst_files=''
783ac_user_opts='
784enable_option_checking
785enable_fail_if_missing
786enable_darwin
787with_mac_arch
788with_developer_dir
789with_local_dir
790with_vim_name
791with_ex_name
792with_view_name
793with_global_runtime
794with_modified_by
795enable_smack
796enable_selinux
797with_features
798with_compiledby
799enable_xsmp
800enable_xsmp_interact
801enable_luainterp
802with_lua_prefix
803with_luajit
804enable_mzschemeinterp
805with_plthome
806enable_perlinterp
807enable_pythoninterp
808with_python_config_dir
809enable_python3interp
810with_python3_config_dir
811enable_tclinterp
812with_tclsh
813enable_rubyinterp
814with_ruby_command
815enable_cscope
816enable_workshop
817enable_netbeans
818enable_channel
819enable_terminal
820enable_multibyte
821enable_hangulinput
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_carbon_check
833enable_gtktest
834with_gnome_includes
835with_gnome_libs
836with_gnome
837enable_icon_cache_update
838enable_desktop_database_update
839with_motif_lib
840with_tlib
841enable_largefile
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  --enable-workshop       Include Sun Visual Workshop support.
1495  --disable-netbeans      Disable NetBeans integration support.
1496  --disable-channel       Disable process communication support.
1497  --enable-terminal       Enable terminal emulation support.
1498  --enable-multibyte      Include multibyte editing support.
1499  --enable-hangulinput    Include Hangul input support.
1500  --enable-xim            Include XIM input support.
1501  --enable-fontset        Include X fontset output support.
1502  --enable-gui=OPTS       X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon
1503  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1504  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1505  --enable-gtk3-check     If auto-select GUI, check for GTK+ 3 default=yes
1506  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1507  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1508  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1509  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1510  --disable-gtktest       Do not try to compile and run a test GTK program
1511  --disable-icon-cache-update        update disabled
1512  --disable-desktop-database-update  update disabled
1513  --disable-largefile     omit support for large files
1514  --disable-acl           Don't check for ACL support.
1515  --disable-gpm           Don't use gpm (Linux mouse daemon).
1516  --disable-sysmouse      Don't use sysmouse (mouse in *BSD console).
1517  --disable-nls           Don't support NLS (gettext()).
1518
1519Optional Packages:
1520  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1521  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1522  --with-mac-arch=ARCH    current, intel, ppc or both
1523  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1524  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1525  --without-local-dir     do not search /usr/local for local libraries.
1526  --with-vim-name=NAME    what to call the Vim executable
1527  --with-ex-name=NAME     what to call the Ex executable
1528  --with-view-name=NAME   what to call the View executable
1529  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1530  --with-modified-by=NAME       name of who modified a release version
1531  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)
1532  --with-compiledby=NAME  name to show in :version message
1533  --with-lua-prefix=PFX   Prefix where Lua is installed.
1534  --with-luajit           Link with LuaJIT instead of Lua.
1535  --with-plthome=PLTHOME   Use PLTHOME.
1536  --with-python-config-dir=PATH  Python's config directory
1537  --with-python3-config-dir=PATH  Python's config directory
1538  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1539  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1540  --with-x                use the X Window System
1541  --with-gnome-includes=DIR Specify location of GNOME headers
1542  --with-gnome-libs=DIR   Specify location of GNOME libs
1543  --with-gnome            Specify prefix for GNOME files
1544  --with-motif-lib=STRING Library for Motif
1545  --with-tlib=library     terminal library to be used
1546
1547Some influential environment variables:
1548  CC          C compiler command
1549  CFLAGS      C compiler flags
1550  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551              nonstandard directory <lib dir>
1552  LIBS        libraries to pass to the linker, e.g. -l<library>
1553  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554              you have headers in a nonstandard directory <include dir>
1555  CPP         C preprocessor
1556  XMKMF       Path to xmkmf, Makefile generator for X Window System
1557
1558Use these variables to override the choices made by `configure' or to help
1559it to find libraries and programs with nonstandard names/locations.
1560
1561Report bugs to the package provider.
1562_ACEOF
1563ac_status=$?
1564fi
1565
1566if test "$ac_init_help" = "recursive"; then
1567  # If there are subdirs, report their specific --help.
1568  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569    test -d "$ac_dir" ||
1570      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571      continue
1572    ac_builddir=.
1573
1574case "$ac_dir" in
1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576*)
1577  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578  # A ".." for each directory in $ac_dir_suffix.
1579  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580  case $ac_top_builddir_sub in
1581  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583  esac ;;
1584esac
1585ac_abs_top_builddir=$ac_pwd
1586ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587# for backward compatibility:
1588ac_top_builddir=$ac_top_build_prefix
1589
1590case $srcdir in
1591  .)  # We are building in place.
1592    ac_srcdir=.
1593    ac_top_srcdir=$ac_top_builddir_sub
1594    ac_abs_top_srcdir=$ac_pwd ;;
1595  [\\/]* | ?:[\\/]* )  # Absolute name.
1596    ac_srcdir=$srcdir$ac_dir_suffix;
1597    ac_top_srcdir=$srcdir
1598    ac_abs_top_srcdir=$srcdir ;;
1599  *) # Relative name.
1600    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601    ac_top_srcdir=$ac_top_build_prefix$srcdir
1602    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603esac
1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606    cd "$ac_dir" || { ac_status=$?; continue; }
1607    # Check for guested configure.
1608    if test -f "$ac_srcdir/configure.gnu"; then
1609      echo &&
1610      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611    elif test -f "$ac_srcdir/configure"; then
1612      echo &&
1613      $SHELL "$ac_srcdir/configure" --help=recursive
1614    else
1615      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616    fi || ac_status=$?
1617    cd "$ac_pwd" || { ac_status=$?; break; }
1618  done
1619fi
1620
1621test -n "$ac_init_help" && exit $ac_status
1622if $ac_init_version; then
1623  cat <<\_ACEOF
1624configure
1625generated by GNU Autoconf 2.69
1626
1627Copyright (C) 2012 Free Software Foundation, Inc.
1628This configure script is free software; the Free Software Foundation
1629gives unlimited permission to copy, distribute and modify it.
1630_ACEOF
1631  exit
1632fi
1633
1634## ------------------------ ##
1635## Autoconf initialization. ##
1636## ------------------------ ##
1637
1638# ac_fn_c_try_compile LINENO
1639# --------------------------
1640# Try to compile conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_compile ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  rm -f conftest.$ac_objext
1645  if { { ac_try="$ac_compile"
1646case "(($ac_try" in
1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648  *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652  (eval "$ac_compile") 2>conftest.err
1653  ac_status=$?
1654  if test -s conftest.err; then
1655    grep -v '^ *+' conftest.err >conftest.er1
1656    cat conftest.er1 >&5
1657    mv -f conftest.er1 conftest.err
1658  fi
1659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660  test $ac_status = 0; } && {
1661	 test -z "$ac_c_werror_flag" ||
1662	 test ! -s conftest.err
1663       } && test -s conftest.$ac_objext; then :
1664  ac_retval=0
1665else
1666  $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669	ac_retval=1
1670fi
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672  as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_compile
1675
1676# ac_fn_c_try_cpp LINENO
1677# ----------------------
1678# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_cpp ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  if { { ac_try="$ac_cpp conftest.$ac_ext"
1683case "(($ac_try" in
1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685  *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690  ac_status=$?
1691  if test -s conftest.err; then
1692    grep -v '^ *+' conftest.err >conftest.er1
1693    cat conftest.er1 >&5
1694    mv -f conftest.er1 conftest.err
1695  fi
1696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697  test $ac_status = 0; } > conftest.i && {
1698	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699	 test ! -s conftest.err
1700       }; then :
1701  ac_retval=0
1702else
1703  $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706    ac_retval=1
1707fi
1708  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709  as_fn_set_status $ac_retval
1710
1711} # ac_fn_c_try_cpp
1712
1713# ac_fn_c_try_link LINENO
1714# -----------------------
1715# Try to link conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_c_try_link ()
1717{
1718  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719  rm -f conftest.$ac_objext conftest$ac_exeext
1720  if { { ac_try="$ac_link"
1721case "(($ac_try" in
1722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723  *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727  (eval "$ac_link") 2>conftest.err
1728  ac_status=$?
1729  if test -s conftest.err; then
1730    grep -v '^ *+' conftest.err >conftest.er1
1731    cat conftest.er1 >&5
1732    mv -f conftest.er1 conftest.err
1733  fi
1734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735  test $ac_status = 0; } && {
1736	 test -z "$ac_c_werror_flag" ||
1737	 test ! -s conftest.err
1738       } && test -s conftest$ac_exeext && {
1739	 test "$cross_compiling" = yes ||
1740	 test -x conftest$ac_exeext
1741       }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747	ac_retval=1
1748fi
1749  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751  # interfere with the next link command; also delete a directory that is
1752  # left behind by Apple's compiler.  We do this before executing the actions.
1753  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755  as_fn_set_status $ac_retval
1756
1757} # ac_fn_c_try_link
1758
1759# ac_fn_c_try_run LINENO
1760# ----------------------
1761# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762# that executables *can* be run.
1763ac_fn_c_try_run ()
1764{
1765  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766  if { { ac_try="$ac_link"
1767case "(($ac_try" in
1768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769  *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773  (eval "$ac_link") 2>&5
1774  ac_status=$?
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777  { { case "(($ac_try" in
1778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779  *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783  (eval "$ac_try") 2>&5
1784  ac_status=$?
1785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; }; }; then :
1787  ac_retval=0
1788else
1789  $as_echo "$as_me: program exited with status $ac_status" >&5
1790       $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793       ac_retval=$ac_status
1794fi
1795  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797  as_fn_set_status $ac_retval
1798
1799} # ac_fn_c_try_run
1800
1801# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802# -------------------------------------------------------
1803# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804# the include files in INCLUDES and setting the cache variable VAR
1805# accordingly.
1806ac_fn_c_check_header_mongrel ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  if eval \${$3+:} false; then :
1810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811$as_echo_n "checking for $2... " >&6; }
1812if eval \${$3+:} false; then :
1813  $as_echo_n "(cached) " >&6
1814fi
1815eval ac_res=\$$3
1816	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817$as_echo "$ac_res" >&6; }
1818else
1819  # Is the header compilable?
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821$as_echo_n "checking $2 usability... " >&6; }
1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824$4
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828  ac_header_compiler=yes
1829else
1830  ac_header_compiler=no
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834$as_echo "$ac_header_compiler" >&6; }
1835
1836# Is the header present?
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838$as_echo_n "checking $2 presence... " >&6; }
1839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h.  */
1841#include <$2>
1842_ACEOF
1843if ac_fn_c_try_cpp "$LINENO"; then :
1844  ac_header_preproc=yes
1845else
1846  ac_header_preproc=no
1847fi
1848rm -f conftest.err conftest.i conftest.$ac_ext
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850$as_echo "$ac_header_preproc" >&6; }
1851
1852# So?  What about this header?
1853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854  yes:no: )
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859    ;;
1860  no:yes:* )
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1864$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1868$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871    ;;
1872esac
1873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874$as_echo_n "checking for $2... " >&6; }
1875if eval \${$3+:} false; then :
1876  $as_echo_n "(cached) " >&6
1877else
1878  eval "$3=\$ac_header_compiler"
1879fi
1880eval ac_res=\$$3
1881	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882$as_echo "$ac_res" >&6; }
1883fi
1884  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886} # ac_fn_c_check_header_mongrel
1887
1888# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1889# -------------------------------------------------------
1890# Tests whether HEADER exists and can be compiled using the include files in
1891# INCLUDES, setting the cache variable VAR accordingly.
1892ac_fn_c_check_header_compile ()
1893{
1894  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896$as_echo_n "checking for $2... " >&6; }
1897if eval \${$3+:} false; then :
1898  $as_echo_n "(cached) " >&6
1899else
1900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h.  */
1902$4
1903#include <$2>
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906  eval "$3=yes"
1907else
1908  eval "$3=no"
1909fi
1910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911fi
1912eval ac_res=\$$3
1913	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914$as_echo "$ac_res" >&6; }
1915  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917} # ac_fn_c_check_header_compile
1918
1919# ac_fn_c_check_func LINENO FUNC VAR
1920# ----------------------------------
1921# Tests whether FUNC exists, setting the cache variable VAR accordingly
1922ac_fn_c_check_func ()
1923{
1924  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926$as_echo_n "checking for $2... " >&6; }
1927if eval \${$3+:} false; then :
1928  $as_echo_n "(cached) " >&6
1929else
1930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h.  */
1932/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1933   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1934#define $2 innocuous_$2
1935
1936/* System header to define __stub macros and hopefully few prototypes,
1937    which can conflict with char $2 (); below.
1938    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1939    <limits.h> exists even on freestanding compilers.  */
1940
1941#ifdef __STDC__
1942# include <limits.h>
1943#else
1944# include <assert.h>
1945#endif
1946
1947#undef $2
1948
1949/* Override any GCC internal prototype to avoid an error.
1950   Use char because int might match the return type of a GCC
1951   builtin and then its argument prototype would still apply.  */
1952#ifdef __cplusplus
1953extern "C"
1954#endif
1955char $2 ();
1956/* The GNU C library defines this for functions which it implements
1957    to always fail with ENOSYS.  Some functions are actually named
1958    something starting with __ and the normal name is an alias.  */
1959#if defined __stub_$2 || defined __stub___$2
1960choke me
1961#endif
1962
1963int
1964main ()
1965{
1966return $2 ();
1967  ;
1968  return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_link "$LINENO"; then :
1972  eval "$3=yes"
1973else
1974  eval "$3=no"
1975fi
1976rm -f core conftest.err conftest.$ac_objext \
1977    conftest$ac_exeext conftest.$ac_ext
1978fi
1979eval ac_res=\$$3
1980	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
1982  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984} # ac_fn_c_check_func
1985
1986# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1987# -------------------------------------------
1988# Tests whether TYPE exists after having included INCLUDES, setting cache
1989# variable VAR accordingly.
1990ac_fn_c_check_type ()
1991{
1992  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if eval \${$3+:} false; then :
1996  $as_echo_n "(cached) " >&6
1997else
1998  eval "$3=no"
1999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001$4
2002int
2003main ()
2004{
2005if (sizeof ($2))
2006	 return 0;
2007  ;
2008  return 0;
2009}
2010_ACEOF
2011if ac_fn_c_try_compile "$LINENO"; then :
2012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h.  */
2014$4
2015int
2016main ()
2017{
2018if (sizeof (($2)))
2019	    return 0;
2020  ;
2021  return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025
2026else
2027  eval "$3=yes"
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033eval ac_res=\$$3
2034	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035$as_echo "$ac_res" >&6; }
2036  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038} # ac_fn_c_check_type
2039
2040# ac_fn_c_find_uintX_t LINENO BITS VAR
2041# ------------------------------------
2042# Finds an unsigned integer type with width BITS, setting cache variable VAR
2043# accordingly.
2044ac_fn_c_find_uintX_t ()
2045{
2046  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2048$as_echo_n "checking for uint$2_t... " >&6; }
2049if eval \${$3+:} false; then :
2050  $as_echo_n "(cached) " >&6
2051else
2052  eval "$3=no"
2053     # Order is important - never check a type that is potentially smaller
2054     # than half of the expected target width.
2055     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2056	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2057       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h.  */
2059$ac_includes_default
2060int
2061main ()
2062{
2063static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2064test_array [0] = 0;
2065return test_array [0];
2066
2067  ;
2068  return 0;
2069}
2070_ACEOF
2071if ac_fn_c_try_compile "$LINENO"; then :
2072  case $ac_type in #(
2073  uint$2_t) :
2074    eval "$3=yes" ;; #(
2075  *) :
2076    eval "$3=\$ac_type" ;;
2077esac
2078fi
2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080       if eval test \"x\$"$3"\" = x"no"; then :
2081
2082else
2083  break
2084fi
2085     done
2086fi
2087eval ac_res=\$$3
2088	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089$as_echo "$ac_res" >&6; }
2090  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092} # ac_fn_c_find_uintX_t
2093
2094# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2095# --------------------------------------------
2096# Tries to find the compile-time value of EXPR in a program that includes
2097# INCLUDES, setting VAR accordingly. Returns whether the value could be
2098# computed
2099ac_fn_c_compute_int ()
2100{
2101  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102  if test "$cross_compiling" = yes; then
2103    # Depending upon the size, compute the lo and hi bounds.
2104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h.  */
2106$4
2107int
2108main ()
2109{
2110static int test_array [1 - 2 * !(($2) >= 0)];
2111test_array [0] = 0;
2112return test_array [0];
2113
2114  ;
2115  return 0;
2116}
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119  ac_lo=0 ac_mid=0
2120  while :; do
2121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122/* end confdefs.h.  */
2123$4
2124int
2125main ()
2126{
2127static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2128test_array [0] = 0;
2129return test_array [0];
2130
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_compile "$LINENO"; then :
2136  ac_hi=$ac_mid; break
2137else
2138  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2139			if test $ac_lo -le $ac_mid; then
2140			  ac_lo= ac_hi=
2141			  break
2142			fi
2143			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146  done
2147else
2148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h.  */
2150$4
2151int
2152main ()
2153{
2154static int test_array [1 - 2 * !(($2) < 0)];
2155test_array [0] = 0;
2156return test_array [0];
2157
2158  ;
2159  return 0;
2160}
2161_ACEOF
2162if ac_fn_c_try_compile "$LINENO"; then :
2163  ac_hi=-1 ac_mid=-1
2164  while :; do
2165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h.  */
2167$4
2168int
2169main ()
2170{
2171static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172test_array [0] = 0;
2173return test_array [0];
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"; then :
2180  ac_lo=$ac_mid; break
2181else
2182  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2183			if test $ac_mid -le $ac_hi; then
2184			  ac_lo= ac_hi=
2185			  break
2186			fi
2187			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190  done
2191else
2192  ac_lo= ac_hi=
2193fi
2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197# Binary search between lo and hi bounds.
2198while test "x$ac_lo" != "x$ac_hi"; do
2199  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201/* end confdefs.h.  */
2202$4
2203int
2204main ()
2205{
2206static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207test_array [0] = 0;
2208return test_array [0];
2209
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214if ac_fn_c_try_compile "$LINENO"; then :
2215  ac_hi=$ac_mid
2216else
2217  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220done
2221case $ac_lo in #((
2222?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2223'') ac_retval=1 ;;
2224esac
2225  else
2226    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h.  */
2228$4
2229static long int longval () { return $2; }
2230static unsigned long int ulongval () { return $2; }
2231#include <stdio.h>
2232#include <stdlib.h>
2233int
2234main ()
2235{
2236
2237  FILE *f = fopen ("conftest.val", "w");
2238  if (! f)
2239    return 1;
2240  if (($2) < 0)
2241    {
2242      long int i = longval ();
2243      if (i != ($2))
2244	return 1;
2245      fprintf (f, "%ld", i);
2246    }
2247  else
2248    {
2249      unsigned long int i = ulongval ();
2250      if (i != ($2))
2251	return 1;
2252      fprintf (f, "%lu", i);
2253    }
2254  /* Do not output a trailing newline, as this causes \r\n confusion
2255     on some platforms.  */
2256  return ferror (f) || fclose (f) != 0;
2257
2258  ;
2259  return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_run "$LINENO"; then :
2263  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2264else
2265  ac_retval=1
2266fi
2267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2268  conftest.$ac_objext conftest.beam conftest.$ac_ext
2269rm -f conftest.val
2270
2271  fi
2272  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273  as_fn_set_status $ac_retval
2274
2275} # ac_fn_c_compute_int
2276cat >auto/config.log <<_ACEOF
2277This file contains any messages produced by compilers while
2278running configure, to aid debugging if configure makes a mistake.
2279
2280It was created by $as_me, which was
2281generated by GNU Autoconf 2.69.  Invocation command line was
2282
2283  $ $0 $@
2284
2285_ACEOF
2286exec 5>>auto/config.log
2287{
2288cat <<_ASUNAME
2289## --------- ##
2290## Platform. ##
2291## --------- ##
2292
2293hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2301
2302/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2303/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2304/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2306/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2307/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2308/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2309
2310_ASUNAME
2311
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  test -z "$as_dir" && as_dir=.
2317    $as_echo "PATH: $as_dir"
2318  done
2319IFS=$as_save_IFS
2320
2321} >&5
2322
2323cat >&5 <<_ACEOF
2324
2325
2326## ----------- ##
2327## Core tests. ##
2328## ----------- ##
2329
2330_ACEOF
2331
2332
2333# Keep a trace of the command line.
2334# Strip out --no-create and --no-recursion so they do not pile up.
2335# Strip out --silent because we don't want to record it for future runs.
2336# Also quote any args containing shell meta-characters.
2337# Make two passes to allow for proper duplicate-argument suppression.
2338ac_configure_args=
2339ac_configure_args0=
2340ac_configure_args1=
2341ac_must_keep_next=false
2342for ac_pass in 1 2
2343do
2344  for ac_arg
2345  do
2346    case $ac_arg in
2347    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349    | -silent | --silent | --silen | --sile | --sil)
2350      continue ;;
2351    *\'*)
2352      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353    esac
2354    case $ac_pass in
2355    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356    2)
2357      as_fn_append ac_configure_args1 " '$ac_arg'"
2358      if test $ac_must_keep_next = true; then
2359	ac_must_keep_next=false # Got value, back to normal.
2360      else
2361	case $ac_arg in
2362	  *=* | --config-cache | -C | -disable-* | --disable-* \
2363	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365	  | -with-* | --with-* | -without-* | --without-* | --x)
2366	    case "$ac_configure_args0 " in
2367	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368	    esac
2369	    ;;
2370	  -* ) ac_must_keep_next=true ;;
2371	esac
2372      fi
2373      as_fn_append ac_configure_args " '$ac_arg'"
2374      ;;
2375    esac
2376  done
2377done
2378{ ac_configure_args0=; unset ac_configure_args0;}
2379{ ac_configure_args1=; unset ac_configure_args1;}
2380
2381# When interrupted or exit'd, cleanup temporary files, and complete
2382# config.log.  We remove comments because anyway the quotes in there
2383# would cause problems or look ugly.
2384# WARNING: Use '\'' to represent an apostrophe within the trap.
2385# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386trap 'exit_status=$?
2387  # Save into config.log some information that might help in debugging.
2388  {
2389    echo
2390
2391    $as_echo "## ---------------- ##
2392## Cache variables. ##
2393## ---------------- ##"
2394    echo
2395    # The following way of writing the cache mishandles newlines in values,
2396(
2397  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2398    eval ac_val=\$$ac_var
2399    case $ac_val in #(
2400    *${as_nl}*)
2401      case $ac_var in #(
2402      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2403$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2404      esac
2405      case $ac_var in #(
2406      _ | IFS | as_nl) ;; #(
2407      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2408      *) { eval $ac_var=; unset $ac_var;} ;;
2409      esac ;;
2410    esac
2411  done
2412  (set) 2>&1 |
2413    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2414    *${as_nl}ac_space=\ *)
2415      sed -n \
2416	"s/'\''/'\''\\\\'\'''\''/g;
2417	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2418      ;; #(
2419    *)
2420      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2421      ;;
2422    esac |
2423    sort
2424)
2425    echo
2426
2427    $as_echo "## ----------------- ##
2428## Output variables. ##
2429## ----------------- ##"
2430    echo
2431    for ac_var in $ac_subst_vars
2432    do
2433      eval ac_val=\$$ac_var
2434      case $ac_val in
2435      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436      esac
2437      $as_echo "$ac_var='\''$ac_val'\''"
2438    done | sort
2439    echo
2440
2441    if test -n "$ac_subst_files"; then
2442      $as_echo "## ------------------- ##
2443## File substitutions. ##
2444## ------------------- ##"
2445      echo
2446      for ac_var in $ac_subst_files
2447      do
2448	eval ac_val=\$$ac_var
2449	case $ac_val in
2450	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451	esac
2452	$as_echo "$ac_var='\''$ac_val'\''"
2453      done | sort
2454      echo
2455    fi
2456
2457    if test -s confdefs.h; then
2458      $as_echo "## ----------- ##
2459## confdefs.h. ##
2460## ----------- ##"
2461      echo
2462      cat confdefs.h
2463      echo
2464    fi
2465    test "$ac_signal" != 0 &&
2466      $as_echo "$as_me: caught signal $ac_signal"
2467    $as_echo "$as_me: exit $exit_status"
2468  } >&5
2469  rm -f core *.core core.conftest.* &&
2470    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2471    exit $exit_status
2472' 0
2473for ac_signal in 1 2 13 15; do
2474  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2475done
2476ac_signal=0
2477
2478# confdefs.h avoids OS command line length limits that DEFS can exceed.
2479rm -f -r conftest* confdefs.h
2480
2481$as_echo "/* confdefs.h */" > confdefs.h
2482
2483# Predefined preprocessor variables.
2484
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_NAME "$PACKAGE_NAME"
2487_ACEOF
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2491_ACEOF
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_VERSION "$PACKAGE_VERSION"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_STRING "$PACKAGE_STRING"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_URL "$PACKAGE_URL"
2507_ACEOF
2508
2509
2510# Let the site file select an alternate cache file if it wants to.
2511# Prefer an explicitly selected file to automatically selected ones.
2512ac_site_file1=NONE
2513ac_site_file2=NONE
2514if test -n "$CONFIG_SITE"; then
2515  # We do not want a PATH search for config.site.
2516  case $CONFIG_SITE in #((
2517    -*)  ac_site_file1=./$CONFIG_SITE;;
2518    */*) ac_site_file1=$CONFIG_SITE;;
2519    *)   ac_site_file1=./$CONFIG_SITE;;
2520  esac
2521elif test "x$prefix" != xNONE; then
2522  ac_site_file1=$prefix/share/config.site
2523  ac_site_file2=$prefix/etc/config.site
2524else
2525  ac_site_file1=$ac_default_prefix/share/config.site
2526  ac_site_file2=$ac_default_prefix/etc/config.site
2527fi
2528for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2529do
2530  test "x$ac_site_file" = xNONE && continue
2531  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2532    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2533$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2534    sed 's/^/| /' "$ac_site_file" >&5
2535    . "$ac_site_file" \
2536      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538as_fn_error $? "failed to load site script $ac_site_file
2539See \`config.log' for more details" "$LINENO" 5; }
2540  fi
2541done
2542
2543if test -r "$cache_file"; then
2544  # Some versions of bash will fail to source /dev/null (special files
2545  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2546  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2547    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2548$as_echo "$as_me: loading cache $cache_file" >&6;}
2549    case $cache_file in
2550      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2551      *)                      . "./$cache_file";;
2552    esac
2553  fi
2554else
2555  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2556$as_echo "$as_me: creating cache $cache_file" >&6;}
2557  >$cache_file
2558fi
2559
2560# Check that the precious variables saved in the cache have kept the same
2561# value.
2562ac_cache_corrupted=false
2563for ac_var in $ac_precious_vars; do
2564  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2565  eval ac_new_set=\$ac_env_${ac_var}_set
2566  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2567  eval ac_new_val=\$ac_env_${ac_var}_value
2568  case $ac_old_set,$ac_new_set in
2569    set,)
2570      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2571$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2572      ac_cache_corrupted=: ;;
2573    ,set)
2574      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2575$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2576      ac_cache_corrupted=: ;;
2577    ,);;
2578    *)
2579      if test "x$ac_old_val" != "x$ac_new_val"; then
2580	# differences in whitespace do not lead to failure.
2581	ac_old_val_w=`echo x $ac_old_val`
2582	ac_new_val_w=`echo x $ac_new_val`
2583	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2584	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2585$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2586	  ac_cache_corrupted=:
2587	else
2588	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2589$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2590	  eval $ac_var=\$ac_old_val
2591	fi
2592	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2593$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2594	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2595$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2596      fi;;
2597  esac
2598  # Pass precious variables to config.status.
2599  if test "$ac_new_set" = set; then
2600    case $ac_new_val in
2601    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2602    *) ac_arg=$ac_var=$ac_new_val ;;
2603    esac
2604    case " $ac_configure_args " in
2605      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2606      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2607    esac
2608  fi
2609done
2610if $ac_cache_corrupted; then
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2614$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2615  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2616fi
2617## -------------------- ##
2618## Main body of script. ##
2619## -------------------- ##
2620
2621ac_ext=c
2622ac_cpp='$CPP $CPPFLAGS'
2623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626
2627
2628ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2629
2630
2631$as_echo "#define UNIX 1" >>confdefs.h
2632
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2634$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2635set x ${MAKE-make}
2636ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2637if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2638  $as_echo_n "(cached) " >&6
2639else
2640  cat >conftest.make <<\_ACEOF
2641SHELL = /bin/sh
2642all:
2643	@echo '@@@%%%=$(MAKE)=@@@%%%'
2644_ACEOF
2645# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2646case `${MAKE-make} -f conftest.make 2>/dev/null` in
2647  *@@@%%%=?*=@@@%%%*)
2648    eval ac_cv_prog_make_${ac_make}_set=yes;;
2649  *)
2650    eval ac_cv_prog_make_${ac_make}_set=no;;
2651esac
2652rm -f conftest.make
2653fi
2654if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2656$as_echo "yes" >&6; }
2657  SET_MAKE=
2658else
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660$as_echo "no" >&6; }
2661  SET_MAKE="MAKE=${MAKE-make}"
2662fi
2663
2664
2665ac_ext=c
2666ac_cpp='$CPP $CPPFLAGS'
2667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670if test -n "$ac_tool_prefix"; then
2671  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2672set dummy ${ac_tool_prefix}gcc; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if ${ac_cv_prog_CC+:} false; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  if test -n "$CC"; then
2679  ac_cv_prog_CC="$CC" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684  IFS=$as_save_IFS
2685  test -z "$as_dir" && as_dir=.
2686    for ac_exec_ext in '' $ac_executable_extensions; do
2687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690    break 2
2691  fi
2692done
2693  done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698CC=$ac_cv_prog_CC
2699if test -n "$CC"; then
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2701$as_echo "$CC" >&6; }
2702else
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707
2708fi
2709if test -z "$ac_cv_prog_CC"; then
2710  ac_ct_CC=$CC
2711  # Extract the first word of "gcc", so it can be a program name with args.
2712set dummy gcc; ac_word=$2
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714$as_echo_n "checking for $ac_word... " >&6; }
2715if ${ac_cv_prog_ac_ct_CC+:} false; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  if test -n "$ac_ct_CC"; then
2719  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724  IFS=$as_save_IFS
2725  test -z "$as_dir" && as_dir=.
2726    for ac_exec_ext in '' $ac_executable_extensions; do
2727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728    ac_cv_prog_ac_ct_CC="gcc"
2729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730    break 2
2731  fi
2732done
2733  done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739if test -n "$ac_ct_CC"; then
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2741$as_echo "$ac_ct_CC" >&6; }
2742else
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747  if test "x$ac_ct_CC" = x; then
2748    CC=""
2749  else
2750    case $cross_compiling:$ac_tool_warned in
2751yes:)
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756    CC=$ac_ct_CC
2757  fi
2758else
2759  CC="$ac_cv_prog_CC"
2760fi
2761
2762if test -z "$CC"; then
2763          if test -n "$ac_tool_prefix"; then
2764    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}cc; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
2768if ${ac_cv_prog_CC+:} false; then :
2769  $as_echo_n "(cached) " >&6
2770else
2771  if test -n "$CC"; then
2772  ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777  IFS=$as_save_IFS
2778  test -z "$as_dir" && as_dir=.
2779    for ac_exec_ext in '' $ac_executable_extensions; do
2780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781    ac_cv_prog_CC="${ac_tool_prefix}cc"
2782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783    break 2
2784  fi
2785done
2786  done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794$as_echo "$CC" >&6; }
2795else
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
2799
2800
2801  fi
2802fi
2803if test -z "$CC"; then
2804  # Extract the first word of "cc", so it can be a program name with args.
2805set dummy cc; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if ${ac_cv_prog_CC+:} false; then :
2809  $as_echo_n "(cached) " >&6
2810else
2811  if test -n "$CC"; then
2812  ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814  ac_prog_rejected=no
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818  IFS=$as_save_IFS
2819  test -z "$as_dir" && as_dir=.
2820    for ac_exec_ext in '' $ac_executable_extensions; do
2821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2823       ac_prog_rejected=yes
2824       continue
2825     fi
2826    ac_cv_prog_CC="cc"
2827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828    break 2
2829  fi
2830done
2831  done
2832IFS=$as_save_IFS
2833
2834if test $ac_prog_rejected = yes; then
2835  # We found a bogon in the path, so make sure we never use it.
2836  set dummy $ac_cv_prog_CC
2837  shift
2838  if test $# != 0; then
2839    # We chose a different compiler from the bogus one.
2840    # However, it has the same basename, so the bogon will be chosen
2841    # first if we set CC to just the basename; use the full file name.
2842    shift
2843    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2844  fi
2845fi
2846fi
2847fi
2848CC=$ac_cv_prog_CC
2849if test -n "$CC"; then
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851$as_echo "$CC" >&6; }
2852else
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
2855fi
2856
2857
2858fi
2859if test -z "$CC"; then
2860  if test -n "$ac_tool_prefix"; then
2861  for ac_prog in cl.exe
2862  do
2863    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2864set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866$as_echo_n "checking for $ac_word... " >&6; }
2867if ${ac_cv_prog_CC+:} false; then :
2868  $as_echo_n "(cached) " >&6
2869else
2870  if test -n "$CC"; then
2871  ac_cv_prog_CC="$CC" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876  IFS=$as_save_IFS
2877  test -z "$as_dir" && as_dir=.
2878    for ac_exec_ext in '' $ac_executable_extensions; do
2879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882    break 2
2883  fi
2884done
2885  done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890CC=$ac_cv_prog_CC
2891if test -n "$CC"; then
2892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893$as_echo "$CC" >&6; }
2894else
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897fi
2898
2899
2900    test -n "$CC" && break
2901  done
2902fi
2903if test -z "$CC"; then
2904  ac_ct_CC=$CC
2905  for ac_prog in cl.exe
2906do
2907  # Extract the first word of "$ac_prog", so it can be a program name with args.
2908set dummy $ac_prog; ac_word=$2
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910$as_echo_n "checking for $ac_word... " >&6; }
2911if ${ac_cv_prog_ac_ct_CC+:} false; then :
2912  $as_echo_n "(cached) " >&6
2913else
2914  if test -n "$ac_ct_CC"; then
2915  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920  IFS=$as_save_IFS
2921  test -z "$as_dir" && as_dir=.
2922    for ac_exec_ext in '' $ac_executable_extensions; do
2923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924    ac_cv_prog_ac_ct_CC="$ac_prog"
2925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926    break 2
2927  fi
2928done
2929  done
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935if test -n "$ac_ct_CC"; then
2936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2937$as_echo "$ac_ct_CC" >&6; }
2938else
2939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940$as_echo "no" >&6; }
2941fi
2942
2943
2944  test -n "$ac_ct_CC" && break
2945done
2946
2947  if test "x$ac_ct_CC" = x; then
2948    CC=""
2949  else
2950    case $cross_compiling:$ac_tool_warned in
2951yes:)
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2954ac_tool_warned=yes ;;
2955esac
2956    CC=$ac_ct_CC
2957  fi
2958fi
2959
2960fi
2961
2962
2963test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965as_fn_error $? "no acceptable C compiler found in \$PATH
2966See \`config.log' for more details" "$LINENO" 5; }
2967
2968# Provide some information about the compiler.
2969$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2970set X $ac_compile
2971ac_compiler=$2
2972for ac_option in --version -v -V -qversion; do
2973  { { ac_try="$ac_compiler $ac_option >&5"
2974case "(($ac_try" in
2975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976  *) ac_try_echo=$ac_try;;
2977esac
2978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979$as_echo "$ac_try_echo"; } >&5
2980  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2981  ac_status=$?
2982  if test -s conftest.err; then
2983    sed '10a\
2984... rest of stderr output deleted ...
2985         10q' conftest.err >conftest.er1
2986    cat conftest.er1 >&5
2987  fi
2988  rm -f conftest.er1 conftest.err
2989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990  test $ac_status = 0; }
2991done
2992
2993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994/* end confdefs.h.  */
2995
2996int
2997main ()
2998{
2999
3000  ;
3001  return 0;
3002}
3003_ACEOF
3004ac_clean_files_save=$ac_clean_files
3005ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3006# Try to create an executable without -o first, disregard a.out.
3007# It will help us diagnose broken compilers, and finding out an intuition
3008# of exeext.
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3010$as_echo_n "checking whether the C compiler works... " >&6; }
3011ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3012
3013# The possible output files:
3014ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3015
3016ac_rmfiles=
3017for ac_file in $ac_files
3018do
3019  case $ac_file in
3020    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3021    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3022  esac
3023done
3024rm -f $ac_rmfiles
3025
3026if { { ac_try="$ac_link_default"
3027case "(($ac_try" in
3028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029  *) ac_try_echo=$ac_try;;
3030esac
3031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032$as_echo "$ac_try_echo"; } >&5
3033  (eval "$ac_link_default") 2>&5
3034  ac_status=$?
3035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036  test $ac_status = 0; }; then :
3037  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3038# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3039# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3040# so that the user can short-circuit this test for compilers unknown to
3041# Autoconf.
3042for ac_file in $ac_files ''
3043do
3044  test -f "$ac_file" || continue
3045  case $ac_file in
3046    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3047	;;
3048    [ab].out )
3049	# We found the default executable, but exeext='' is most
3050	# certainly right.
3051	break;;
3052    *.* )
3053	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3054	then :; else
3055	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3056	fi
3057	# We set ac_cv_exeext here because the later test for it is not
3058	# safe: cross compilers may not add the suffix if given an `-o'
3059	# argument, so we may need to know it at that point already.
3060	# Even if this section looks crufty: it has the advantage of
3061	# actually working.
3062	break;;
3063    * )
3064	break;;
3065  esac
3066done
3067test "$ac_cv_exeext" = no && ac_cv_exeext=
3068
3069else
3070  ac_file=''
3071fi
3072if test -z "$ac_file"; then :
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075$as_echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
3077
3078{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080as_fn_error 77 "C compiler cannot create executables
3081See \`config.log' for more details" "$LINENO" 5; }
3082else
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084$as_echo "yes" >&6; }
3085fi
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3087$as_echo_n "checking for C compiler default output file name... " >&6; }
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3089$as_echo "$ac_file" >&6; }
3090ac_exeext=$ac_cv_exeext
3091
3092rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3093ac_clean_files=$ac_clean_files_save
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3095$as_echo_n "checking for suffix of executables... " >&6; }
3096if { { ac_try="$ac_link"
3097case "(($ac_try" in
3098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099  *) ac_try_echo=$ac_try;;
3100esac
3101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102$as_echo "$ac_try_echo"; } >&5
3103  (eval "$ac_link") 2>&5
3104  ac_status=$?
3105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106  test $ac_status = 0; }; then :
3107  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3108# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3109# work properly (i.e., refer to `conftest.exe'), while it won't with
3110# `rm'.
3111for ac_file in conftest.exe conftest conftest.*; do
3112  test -f "$ac_file" || continue
3113  case $ac_file in
3114    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116	  break;;
3117    * ) break;;
3118  esac
3119done
3120else
3121  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3124See \`config.log' for more details" "$LINENO" 5; }
3125fi
3126rm -f conftest conftest$ac_cv_exeext
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3128$as_echo "$ac_cv_exeext" >&6; }
3129
3130rm -f conftest.$ac_ext
3131EXEEXT=$ac_cv_exeext
3132ac_exeext=$EXEEXT
3133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h.  */
3135#include <stdio.h>
3136int
3137main ()
3138{
3139FILE *f = fopen ("conftest.out", "w");
3140 return ferror (f) || fclose (f) != 0;
3141
3142  ;
3143  return 0;
3144}
3145_ACEOF
3146ac_clean_files="$ac_clean_files conftest.out"
3147# Check that the compiler produces executables we can run.  If not, either
3148# the compiler is broken, or we cross compile.
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3150$as_echo_n "checking whether we are cross compiling... " >&6; }
3151if test "$cross_compiling" != yes; then
3152  { { ac_try="$ac_link"
3153case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158$as_echo "$ac_try_echo"; } >&5
3159  (eval "$ac_link") 2>&5
3160  ac_status=$?
3161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162  test $ac_status = 0; }
3163  if { ac_try='./conftest$ac_cv_exeext'
3164  { { case "(($ac_try" in
3165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166  *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169$as_echo "$ac_try_echo"; } >&5
3170  (eval "$ac_try") 2>&5
3171  ac_status=$?
3172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173  test $ac_status = 0; }; }; then
3174    cross_compiling=no
3175  else
3176    if test "$cross_compiling" = maybe; then
3177	cross_compiling=yes
3178    else
3179	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181as_fn_error $? "cannot run C compiled programs.
3182If you meant to cross compile, use \`--host'.
3183See \`config.log' for more details" "$LINENO" 5; }
3184    fi
3185  fi
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3188$as_echo "$cross_compiling" >&6; }
3189
3190rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3191ac_clean_files=$ac_clean_files_save
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3193$as_echo_n "checking for suffix of object files... " >&6; }
3194if ${ac_cv_objext+:} false; then :
3195  $as_echo_n "(cached) " >&6
3196else
3197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h.  */
3199
3200int
3201main ()
3202{
3203
3204  ;
3205  return 0;
3206}
3207_ACEOF
3208rm -f conftest.o conftest.obj
3209if { { ac_try="$ac_compile"
3210case "(($ac_try" in
3211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212  *) ac_try_echo=$ac_try;;
3213esac
3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215$as_echo "$ac_try_echo"; } >&5
3216  (eval "$ac_compile") 2>&5
3217  ac_status=$?
3218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219  test $ac_status = 0; }; then :
3220  for ac_file in conftest.o conftest.obj conftest.*; do
3221  test -f "$ac_file" || continue;
3222  case $ac_file in
3223    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3224    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3225       break;;
3226  esac
3227done
3228else
3229  $as_echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234as_fn_error $? "cannot compute suffix of object files: cannot compile
3235See \`config.log' for more details" "$LINENO" 5; }
3236fi
3237rm -f conftest.$ac_cv_objext conftest.$ac_ext
3238fi
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3240$as_echo "$ac_cv_objext" >&6; }
3241OBJEXT=$ac_cv_objext
3242ac_objext=$OBJEXT
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3244$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3245if ${ac_cv_c_compiler_gnu+:} false; then :
3246  $as_echo_n "(cached) " >&6
3247else
3248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h.  */
3250
3251int
3252main ()
3253{
3254#ifndef __GNUC__
3255       choke me
3256#endif
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262if ac_fn_c_try_compile "$LINENO"; then :
3263  ac_compiler_gnu=yes
3264else
3265  ac_compiler_gnu=no
3266fi
3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268ac_cv_c_compiler_gnu=$ac_compiler_gnu
3269
3270fi
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3272$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3273if test $ac_compiler_gnu = yes; then
3274  GCC=yes
3275else
3276  GCC=
3277fi
3278ac_test_CFLAGS=${CFLAGS+set}
3279ac_save_CFLAGS=$CFLAGS
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3281$as_echo_n "checking whether $CC accepts -g... " >&6; }
3282if ${ac_cv_prog_cc_g+:} false; then :
3283  $as_echo_n "(cached) " >&6
3284else
3285  ac_save_c_werror_flag=$ac_c_werror_flag
3286   ac_c_werror_flag=yes
3287   ac_cv_prog_cc_g=no
3288   CFLAGS="-g"
3289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h.  */
3291
3292int
3293main ()
3294{
3295
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300if ac_fn_c_try_compile "$LINENO"; then :
3301  ac_cv_prog_cc_g=yes
3302else
3303  CFLAGS=""
3304      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h.  */
3306
3307int
3308main ()
3309{
3310
3311  ;
3312  return 0;
3313}
3314_ACEOF
3315if ac_fn_c_try_compile "$LINENO"; then :
3316
3317else
3318  ac_c_werror_flag=$ac_save_c_werror_flag
3319	 CFLAGS="-g"
3320	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321/* end confdefs.h.  */
3322
3323int
3324main ()
3325{
3326
3327  ;
3328  return 0;
3329}
3330_ACEOF
3331if ac_fn_c_try_compile "$LINENO"; then :
3332  ac_cv_prog_cc_g=yes
3333fi
3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335fi
3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337fi
3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339   ac_c_werror_flag=$ac_save_c_werror_flag
3340fi
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3342$as_echo "$ac_cv_prog_cc_g" >&6; }
3343if test "$ac_test_CFLAGS" = set; then
3344  CFLAGS=$ac_save_CFLAGS
3345elif test $ac_cv_prog_cc_g = yes; then
3346  if test "$GCC" = yes; then
3347    CFLAGS="-g -O2"
3348  else
3349    CFLAGS="-g"
3350  fi
3351else
3352  if test "$GCC" = yes; then
3353    CFLAGS="-O2"
3354  else
3355    CFLAGS=
3356  fi
3357fi
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3359$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3360if ${ac_cv_prog_cc_c89+:} false; then :
3361  $as_echo_n "(cached) " >&6
3362else
3363  ac_cv_prog_cc_c89=no
3364ac_save_CC=$CC
3365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h.  */
3367#include <stdarg.h>
3368#include <stdio.h>
3369struct stat;
3370/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3371struct buf { int x; };
3372FILE * (*rcsopen) (struct buf *, struct stat *, int);
3373static char *e (p, i)
3374     char **p;
3375     int i;
3376{
3377  return p[i];
3378}
3379static char *f (char * (*g) (char **, int), char **p, ...)
3380{
3381  char *s;
3382  va_list v;
3383  va_start (v,p);
3384  s = g (p, va_arg (v,int));
3385  va_end (v);
3386  return s;
3387}
3388
3389/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3390   function prototypes and stuff, but not '\xHH' hex character constants.
3391   These don't provoke an error unfortunately, instead are silently treated
3392   as 'x'.  The following induces an error, until -std is added to get
3393   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3394   array size at least.  It's necessary to write '\x00'==0 to get something
3395   that's true only with -std.  */
3396int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3397
3398/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3399   inside strings and character constants.  */
3400#define FOO(x) 'x'
3401int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3402
3403int test (int i, double x);
3404struct s1 {int (*f) (int a);};
3405struct s2 {int (*f) (double a);};
3406int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3407int argc;
3408char **argv;
3409int
3410main ()
3411{
3412return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3413  ;
3414  return 0;
3415}
3416_ACEOF
3417for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3418	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419do
3420  CC="$ac_save_CC $ac_arg"
3421  if ac_fn_c_try_compile "$LINENO"; then :
3422  ac_cv_prog_cc_c89=$ac_arg
3423fi
3424rm -f core conftest.err conftest.$ac_objext
3425  test "x$ac_cv_prog_cc_c89" != "xno" && break
3426done
3427rm -f conftest.$ac_ext
3428CC=$ac_save_CC
3429
3430fi
3431# AC_CACHE_VAL
3432case "x$ac_cv_prog_cc_c89" in
3433  x)
3434    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3435$as_echo "none needed" >&6; } ;;
3436  xno)
3437    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3438$as_echo "unsupported" >&6; } ;;
3439  *)
3440    CC="$CC $ac_cv_prog_cc_c89"
3441    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3442$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3443esac
3444if test "x$ac_cv_prog_cc_c89" != xno; then :
3445
3446fi
3447
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453		ac_ext=c
3454ac_cpp='$CPP $CPPFLAGS'
3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3459$as_echo_n "checking how to run the C preprocessor... " >&6; }
3460# On Suns, sometimes $CPP names a directory.
3461if test -n "$CPP" && test -d "$CPP"; then
3462  CPP=
3463fi
3464if test -z "$CPP"; then
3465  if ${ac_cv_prog_CPP+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468      # Double quotes because CPP needs to be expanded
3469    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3470    do
3471      ac_preproc_ok=false
3472for ac_c_preproc_warn_flag in '' yes
3473do
3474  # Use a header file that comes with gcc, so configuring glibc
3475  # with a fresh cross-compiler works.
3476  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477  # <limits.h> exists even on freestanding compilers.
3478  # On the NeXT, cc -E runs the code through the compiler's parser,
3479  # not just through cpp. "Syntax error" is here to catch this case.
3480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481/* end confdefs.h.  */
3482#ifdef __STDC__
3483# include <limits.h>
3484#else
3485# include <assert.h>
3486#endif
3487		     Syntax error
3488_ACEOF
3489if ac_fn_c_try_cpp "$LINENO"; then :
3490
3491else
3492  # Broken: fails on valid input.
3493continue
3494fi
3495rm -f conftest.err conftest.i conftest.$ac_ext
3496
3497  # OK, works on sane cases.  Now check whether nonexistent headers
3498  # can be detected and how.
3499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500/* end confdefs.h.  */
3501#include <ac_nonexistent.h>
3502_ACEOF
3503if ac_fn_c_try_cpp "$LINENO"; then :
3504  # Broken: success on invalid input.
3505continue
3506else
3507  # Passes both tests.
3508ac_preproc_ok=:
3509break
3510fi
3511rm -f conftest.err conftest.i conftest.$ac_ext
3512
3513done
3514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515rm -f conftest.i conftest.err conftest.$ac_ext
3516if $ac_preproc_ok; then :
3517  break
3518fi
3519
3520    done
3521    ac_cv_prog_CPP=$CPP
3522
3523fi
3524  CPP=$ac_cv_prog_CPP
3525else
3526  ac_cv_prog_CPP=$CPP
3527fi
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3529$as_echo "$CPP" >&6; }
3530ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533  # Use a header file that comes with gcc, so configuring glibc
3534  # with a fresh cross-compiler works.
3535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536  # <limits.h> exists even on freestanding compilers.
3537  # On the NeXT, cc -E runs the code through the compiler's parser,
3538  # not just through cpp. "Syntax error" is here to catch this case.
3539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541#ifdef __STDC__
3542# include <limits.h>
3543#else
3544# include <assert.h>
3545#endif
3546		     Syntax error
3547_ACEOF
3548if ac_fn_c_try_cpp "$LINENO"; then :
3549
3550else
3551  # Broken: fails on valid input.
3552continue
3553fi
3554rm -f conftest.err conftest.i conftest.$ac_ext
3555
3556  # OK, works on sane cases.  Now check whether nonexistent headers
3557  # can be detected and how.
3558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h.  */
3560#include <ac_nonexistent.h>
3561_ACEOF
3562if ac_fn_c_try_cpp "$LINENO"; then :
3563  # Broken: success on invalid input.
3564continue
3565else
3566  # Passes both tests.
3567ac_preproc_ok=:
3568break
3569fi
3570rm -f conftest.err conftest.i conftest.$ac_ext
3571
3572done
3573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574rm -f conftest.i conftest.err conftest.$ac_ext
3575if $ac_preproc_ok; then :
3576
3577else
3578  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3581See \`config.log' for more details" "$LINENO" 5; }
3582fi
3583
3584ac_ext=c
3585ac_cpp='$CPP $CPPFLAGS'
3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589
3590
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3592$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3593if ${ac_cv_path_GREP+:} false; then :
3594  $as_echo_n "(cached) " >&6
3595else
3596  if test -z "$GREP"; then
3597  ac_path_GREP_found=false
3598  # Loop through the user's path and test for each of PROGNAME-LIST
3599  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3601do
3602  IFS=$as_save_IFS
3603  test -z "$as_dir" && as_dir=.
3604    for ac_prog in grep ggrep; do
3605    for ac_exec_ext in '' $ac_executable_extensions; do
3606      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3607      as_fn_executable_p "$ac_path_GREP" || continue
3608# Check for GNU ac_path_GREP and select it if it is found.
3609  # Check for GNU $ac_path_GREP
3610case `"$ac_path_GREP" --version 2>&1` in
3611*GNU*)
3612  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3613*)
3614  ac_count=0
3615  $as_echo_n 0123456789 >"conftest.in"
3616  while :
3617  do
3618    cat "conftest.in" "conftest.in" >"conftest.tmp"
3619    mv "conftest.tmp" "conftest.in"
3620    cp "conftest.in" "conftest.nl"
3621    $as_echo 'GREP' >> "conftest.nl"
3622    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3623    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3624    as_fn_arith $ac_count + 1 && ac_count=$as_val
3625    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3626      # Best one so far, save it but keep looking for a better one
3627      ac_cv_path_GREP="$ac_path_GREP"
3628      ac_path_GREP_max=$ac_count
3629    fi
3630    # 10*(2^10) chars as input seems more than enough
3631    test $ac_count -gt 10 && break
3632  done
3633  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3634esac
3635
3636      $ac_path_GREP_found && break 3
3637    done
3638  done
3639  done
3640IFS=$as_save_IFS
3641  if test -z "$ac_cv_path_GREP"; then
3642    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3643  fi
3644else
3645  ac_cv_path_GREP=$GREP
3646fi
3647
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3650$as_echo "$ac_cv_path_GREP" >&6; }
3651 GREP="$ac_cv_path_GREP"
3652
3653
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3655$as_echo_n "checking for egrep... " >&6; }
3656if ${ac_cv_path_EGREP+:} false; then :
3657  $as_echo_n "(cached) " >&6
3658else
3659  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3660   then ac_cv_path_EGREP="$GREP -E"
3661   else
3662     if test -z "$EGREP"; then
3663  ac_path_EGREP_found=false
3664  # Loop through the user's path and test for each of PROGNAME-LIST
3665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3667do
3668  IFS=$as_save_IFS
3669  test -z "$as_dir" && as_dir=.
3670    for ac_prog in egrep; do
3671    for ac_exec_ext in '' $ac_executable_extensions; do
3672      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3673      as_fn_executable_p "$ac_path_EGREP" || continue
3674# Check for GNU ac_path_EGREP and select it if it is found.
3675  # Check for GNU $ac_path_EGREP
3676case `"$ac_path_EGREP" --version 2>&1` in
3677*GNU*)
3678  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3679*)
3680  ac_count=0
3681  $as_echo_n 0123456789 >"conftest.in"
3682  while :
3683  do
3684    cat "conftest.in" "conftest.in" >"conftest.tmp"
3685    mv "conftest.tmp" "conftest.in"
3686    cp "conftest.in" "conftest.nl"
3687    $as_echo 'EGREP' >> "conftest.nl"
3688    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690    as_fn_arith $ac_count + 1 && ac_count=$as_val
3691    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3692      # Best one so far, save it but keep looking for a better one
3693      ac_cv_path_EGREP="$ac_path_EGREP"
3694      ac_path_EGREP_max=$ac_count
3695    fi
3696    # 10*(2^10) chars as input seems more than enough
3697    test $ac_count -gt 10 && break
3698  done
3699  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700esac
3701
3702      $ac_path_EGREP_found && break 3
3703    done
3704  done
3705  done
3706IFS=$as_save_IFS
3707  if test -z "$ac_cv_path_EGREP"; then
3708    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3709  fi
3710else
3711  ac_cv_path_EGREP=$EGREP
3712fi
3713
3714   fi
3715fi
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3717$as_echo "$ac_cv_path_EGREP" >&6; }
3718 EGREP="$ac_cv_path_EGREP"
3719
3720
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723
3724_ACEOF
3725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726  $EGREP "" >/dev/null 2>&1; then :
3727
3728fi
3729rm -f conftest*
3730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3731$as_echo_n "checking for fgrep... " >&6; }
3732if ${ac_cv_path_FGREP+:} false; then :
3733  $as_echo_n "(cached) " >&6
3734else
3735  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3736   then ac_cv_path_FGREP="$GREP -F"
3737   else
3738     if test -z "$FGREP"; then
3739  ac_path_FGREP_found=false
3740  # Loop through the user's path and test for each of PROGNAME-LIST
3741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743do
3744  IFS=$as_save_IFS
3745  test -z "$as_dir" && as_dir=.
3746    for ac_prog in fgrep; do
3747    for ac_exec_ext in '' $ac_executable_extensions; do
3748      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3749      as_fn_executable_p "$ac_path_FGREP" || continue
3750# Check for GNU ac_path_FGREP and select it if it is found.
3751  # Check for GNU $ac_path_FGREP
3752case `"$ac_path_FGREP" --version 2>&1` in
3753*GNU*)
3754  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3755*)
3756  ac_count=0
3757  $as_echo_n 0123456789 >"conftest.in"
3758  while :
3759  do
3760    cat "conftest.in" "conftest.in" >"conftest.tmp"
3761    mv "conftest.tmp" "conftest.in"
3762    cp "conftest.in" "conftest.nl"
3763    $as_echo 'FGREP' >> "conftest.nl"
3764    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766    as_fn_arith $ac_count + 1 && ac_count=$as_val
3767    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3768      # Best one so far, save it but keep looking for a better one
3769      ac_cv_path_FGREP="$ac_path_FGREP"
3770      ac_path_FGREP_max=$ac_count
3771    fi
3772    # 10*(2^10) chars as input seems more than enough
3773    test $ac_count -gt 10 && break
3774  done
3775  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776esac
3777
3778      $ac_path_FGREP_found && break 3
3779    done
3780  done
3781  done
3782IFS=$as_save_IFS
3783  if test -z "$ac_cv_path_FGREP"; then
3784    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3785  fi
3786else
3787  ac_cv_path_FGREP=$FGREP
3788fi
3789
3790   fi
3791fi
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3793$as_echo "$ac_cv_path_FGREP" >&6; }
3794 FGREP="$ac_cv_path_FGREP"
3795
3796		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3797$as_echo_n "checking for library containing strerror... " >&6; }
3798if ${ac_cv_search_strerror+:} false; then :
3799  $as_echo_n "(cached) " >&6
3800else
3801  ac_func_search_save_LIBS=$LIBS
3802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h.  */
3804
3805/* Override any GCC internal prototype to avoid an error.
3806   Use char because int might match the return type of a GCC
3807   builtin and then its argument prototype would still apply.  */
3808#ifdef __cplusplus
3809extern "C"
3810#endif
3811char strerror ();
3812int
3813main ()
3814{
3815return strerror ();
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820for ac_lib in '' cposix; do
3821  if test -z "$ac_lib"; then
3822    ac_res="none required"
3823  else
3824    ac_res=-l$ac_lib
3825    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3826  fi
3827  if ac_fn_c_try_link "$LINENO"; then :
3828  ac_cv_search_strerror=$ac_res
3829fi
3830rm -f core conftest.err conftest.$ac_objext \
3831    conftest$ac_exeext
3832  if ${ac_cv_search_strerror+:} false; then :
3833  break
3834fi
3835done
3836if ${ac_cv_search_strerror+:} false; then :
3837
3838else
3839  ac_cv_search_strerror=no
3840fi
3841rm conftest.$ac_ext
3842LIBS=$ac_func_search_save_LIBS
3843fi
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3845$as_echo "$ac_cv_search_strerror" >&6; }
3846ac_res=$ac_cv_search_strerror
3847if test "$ac_res" != no; then :
3848  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3849
3850fi
3851		for ac_prog in gawk mawk nawk awk
3852do
3853  # Extract the first word of "$ac_prog", so it can be a program name with args.
3854set dummy $ac_prog; ac_word=$2
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856$as_echo_n "checking for $ac_word... " >&6; }
3857if ${ac_cv_prog_AWK+:} false; then :
3858  $as_echo_n "(cached) " >&6
3859else
3860  if test -n "$AWK"; then
3861  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866  IFS=$as_save_IFS
3867  test -z "$as_dir" && as_dir=.
3868    for ac_exec_ext in '' $ac_executable_extensions; do
3869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870    ac_cv_prog_AWK="$ac_prog"
3871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872    break 2
3873  fi
3874done
3875  done
3876IFS=$as_save_IFS
3877
3878fi
3879fi
3880AWK=$ac_cv_prog_AWK
3881if test -n "$AWK"; then
3882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3883$as_echo "$AWK" >&6; }
3884else
3885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886$as_echo "no" >&6; }
3887fi
3888
3889
3890  test -n "$AWK" && break
3891done
3892
3893# Extract the first word of "strip", so it can be a program name with args.
3894set dummy strip; ac_word=$2
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896$as_echo_n "checking for $ac_word... " >&6; }
3897if ${ac_cv_prog_STRIP+:} false; then :
3898  $as_echo_n "(cached) " >&6
3899else
3900  if test -n "$STRIP"; then
3901  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906  IFS=$as_save_IFS
3907  test -z "$as_dir" && as_dir=.
3908    for ac_exec_ext in '' $ac_executable_extensions; do
3909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910    ac_cv_prog_STRIP="strip"
3911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912    break 2
3913  fi
3914done
3915  done
3916IFS=$as_save_IFS
3917
3918  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3919fi
3920fi
3921STRIP=$ac_cv_prog_STRIP
3922if test -n "$STRIP"; then
3923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3924$as_echo "$STRIP" >&6; }
3925else
3926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927$as_echo "no" >&6; }
3928fi
3929
3930
3931
3932
3933
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3935$as_echo_n "checking for ANSI C header files... " >&6; }
3936if ${ac_cv_header_stdc+:} false; then :
3937  $as_echo_n "(cached) " >&6
3938else
3939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h.  */
3941#include <stdlib.h>
3942#include <stdarg.h>
3943#include <string.h>
3944#include <float.h>
3945
3946int
3947main ()
3948{
3949
3950  ;
3951  return 0;
3952}
3953_ACEOF
3954if ac_fn_c_try_compile "$LINENO"; then :
3955  ac_cv_header_stdc=yes
3956else
3957  ac_cv_header_stdc=no
3958fi
3959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960
3961if test $ac_cv_header_stdc = yes; then
3962  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h.  */
3965#include <string.h>
3966
3967_ACEOF
3968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3969  $EGREP "memchr" >/dev/null 2>&1; then :
3970
3971else
3972  ac_cv_header_stdc=no
3973fi
3974rm -f conftest*
3975
3976fi
3977
3978if test $ac_cv_header_stdc = yes; then
3979  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h.  */
3982#include <stdlib.h>
3983
3984_ACEOF
3985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3986  $EGREP "free" >/dev/null 2>&1; then :
3987
3988else
3989  ac_cv_header_stdc=no
3990fi
3991rm -f conftest*
3992
3993fi
3994
3995if test $ac_cv_header_stdc = yes; then
3996  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3997  if test "$cross_compiling" = yes; then :
3998  :
3999else
4000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001/* end confdefs.h.  */
4002#include <ctype.h>
4003#include <stdlib.h>
4004#if ((' ' & 0x0FF) == 0x020)
4005# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4006# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4007#else
4008# define ISLOWER(c) \
4009		   (('a' <= (c) && (c) <= 'i') \
4010		     || ('j' <= (c) && (c) <= 'r') \
4011		     || ('s' <= (c) && (c) <= 'z'))
4012# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4013#endif
4014
4015#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4016int
4017main ()
4018{
4019  int i;
4020  for (i = 0; i < 256; i++)
4021    if (XOR (islower (i), ISLOWER (i))
4022	|| toupper (i) != TOUPPER (i))
4023      return 2;
4024  return 0;
4025}
4026_ACEOF
4027if ac_fn_c_try_run "$LINENO"; then :
4028
4029else
4030  ac_cv_header_stdc=no
4031fi
4032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4033  conftest.$ac_objext conftest.beam conftest.$ac_ext
4034fi
4035
4036fi
4037fi
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4039$as_echo "$ac_cv_header_stdc" >&6; }
4040if test $ac_cv_header_stdc = yes; then
4041
4042$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4043
4044fi
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4047$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4048if ${ac_cv_header_sys_wait_h+:} false; then :
4049  $as_echo_n "(cached) " >&6
4050else
4051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052/* end confdefs.h.  */
4053#include <sys/types.h>
4054#include <sys/wait.h>
4055#ifndef WEXITSTATUS
4056# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4057#endif
4058#ifndef WIFEXITED
4059# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4060#endif
4061
4062int
4063main ()
4064{
4065  int s;
4066  wait (&s);
4067  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4068  ;
4069  return 0;
4070}
4071_ACEOF
4072if ac_fn_c_try_compile "$LINENO"; then :
4073  ac_cv_header_sys_wait_h=yes
4074else
4075  ac_cv_header_sys_wait_h=no
4076fi
4077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078fi
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4080$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4081if test $ac_cv_header_sys_wait_h = yes; then
4082
4083$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4084
4085fi
4086
4087
4088
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4090$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4091# Check whether --enable-fail_if_missing was given.
4092if test "${enable_fail_if_missing+set}" = set; then :
4093  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4094else
4095  fail_if_missing="no"
4096fi
4097
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4099$as_echo "$fail_if_missing" >&6; }
4100
4101if test -z "$CFLAGS"; then
4102  CFLAGS="-O"
4103  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4104fi
4105if test "$GCC" = yes; then
4106    gccversion=`$CC -dumpversion`
4107  if test "x$gccversion" = "x"; then
4108        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4109  fi
4110    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4111    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4112    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4113  else
4114    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4115      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4116      CFLAGS="$CFLAGS -fno-strength-reduce"
4117    fi
4118  fi
4119fi
4120
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4122$as_echo_n "checking for clang version... " >&6; }
4123CLANG_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'`
4124if test x"$CLANG_VERSION_STRING" != x"" ; then
4125  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4126  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4127  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4128  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4130$as_echo "$CLANG_VERSION" >&6; }
4131          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4132$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4133  if test "$CLANG_VERSION" -ge 500002075 ; then
4134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
4136    CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4137  else
4138    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4139$as_echo "yes" >&6; }
4140  fi
4141else
4142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4143$as_echo "N/A" >&6; }
4144fi
4145
4146CROSS_COMPILING=
4147if test "$cross_compiling" = yes; then
4148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4149$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4150  CROSS_COMPILING=1
4151fi
4152
4153
4154test "$GCC" = yes && CPP_MM=M;
4155
4156if test -f ./toolcheck; then
4157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4158$as_echo "$as_me: checking for buggy tools..." >&6;}
4159  sh ./toolcheck 1>&6
4160fi
4161
4162OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4163
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4165$as_echo_n "checking for BeOS... " >&6; }
4166case `uname` in
4167    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4168		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169$as_echo "yes" >&6; };;
4170    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171$as_echo "no" >&6; };;
4172esac
4173
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4175$as_echo_n "checking for QNX... " >&6; }
4176case `uname` in
4177    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4178		test -z "$with_x" && with_x=no
4179		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4180$as_echo "yes" >&6; };;
4181    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; };;
4183esac
4184
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4186$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4187if test "`(uname) 2>/dev/null`" = Darwin; then
4188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189$as_echo "yes" >&6; }
4190
4191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4192$as_echo_n "checking --disable-darwin argument... " >&6; }
4193  # Check whether --enable-darwin was given.
4194if test "${enable_darwin+set}" = set; then :
4195  enableval=$enable_darwin;
4196else
4197  enable_darwin="yes"
4198fi
4199
4200  if test "$enable_darwin" = "yes"; then
4201    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
4203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4204$as_echo_n "checking if Darwin files are there... " >&6; }
4205    if test -f os_macosx.m; then
4206      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4207$as_echo "yes" >&6; }
4208    else
4209      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4210$as_echo "no, Darwin support disabled" >&6; }
4211      enable_darwin=no
4212    fi
4213  else
4214    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4215$as_echo "yes, Darwin support excluded" >&6; }
4216  fi
4217
4218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4219$as_echo_n "checking --with-mac-arch argument... " >&6; }
4220
4221# Check whether --with-mac-arch was given.
4222if test "${with_mac_arch+set}" = set; then :
4223  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4224$as_echo "$MACARCH" >&6; }
4225else
4226  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4227$as_echo "defaulting to $MACARCH" >&6; }
4228fi
4229
4230
4231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4232$as_echo_n "checking --with-developer-dir argument... " >&6; }
4233
4234# Check whether --with-developer-dir was given.
4235if test "${with_developer_dir+set}" = set; then :
4236  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4237$as_echo "$DEVELOPER_DIR" >&6; }
4238else
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4240$as_echo "not present" >&6; }
4241fi
4242
4243
4244  if test "x$DEVELOPER_DIR" = "x"; then
4245    # Extract the first word of "xcode-select", so it can be a program name with args.
4246set dummy xcode-select; ac_word=$2
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248$as_echo_n "checking for $ac_word... " >&6; }
4249if ${ac_cv_path_XCODE_SELECT+:} false; then :
4250  $as_echo_n "(cached) " >&6
4251else
4252  case $XCODE_SELECT in
4253  [\\/]* | ?:[\\/]*)
4254  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4255  ;;
4256  *)
4257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258for as_dir in $PATH
4259do
4260  IFS=$as_save_IFS
4261  test -z "$as_dir" && as_dir=.
4262    for ac_exec_ext in '' $ac_executable_extensions; do
4263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266    break 2
4267  fi
4268done
4269  done
4270IFS=$as_save_IFS
4271
4272  ;;
4273esac
4274fi
4275XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4276if test -n "$XCODE_SELECT"; then
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4278$as_echo "$XCODE_SELECT" >&6; }
4279else
4280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281$as_echo "no" >&6; }
4282fi
4283
4284
4285    if test "x$XCODE_SELECT" != "x"; then
4286      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4287$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4288      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4289      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4290$as_echo "$DEVELOPER_DIR" >&6; }
4291    else
4292      DEVELOPER_DIR=/Developer
4293    fi
4294  fi
4295
4296  if test "x$MACARCH" = "xboth"; then
4297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4298$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4299                            save_cppflags="$CPPFLAGS"
4300    save_cflags="$CFLAGS"
4301    save_ldflags="$LDFLAGS"
4302    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4303    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h.  */
4305
4306int
4307main ()
4308{
4309
4310  ;
4311  return 0;
4312}
4313_ACEOF
4314if ac_fn_c_try_link "$LINENO"; then :
4315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4316$as_echo "found" >&6; }
4317else
4318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4319$as_echo "not found" >&6; }
4320	CFLAGS="$save_cflags"
4321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4322$as_echo_n "checking if Intel architecture is supported... " >&6; }
4323	CPPFLAGS="$CPPFLAGS -arch i386"
4324	LDFLAGS="$save_ldflags -arch i386"
4325	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326/* end confdefs.h.  */
4327
4328int
4329main ()
4330{
4331
4332  ;
4333  return 0;
4334}
4335_ACEOF
4336if ac_fn_c_try_link "$LINENO"; then :
4337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4338$as_echo "yes" >&6; }; MACARCH="intel"
4339else
4340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341$as_echo "no" >&6; }
4342		MACARCH="ppc"
4343		CPPFLAGS="$save_cppflags -arch ppc"
4344		LDFLAGS="$save_ldflags -arch ppc"
4345fi
4346rm -f core conftest.err conftest.$ac_objext \
4347    conftest$ac_exeext conftest.$ac_ext
4348fi
4349rm -f core conftest.err conftest.$ac_objext \
4350    conftest$ac_exeext conftest.$ac_ext
4351  elif test "x$MACARCH" = "xintel"; then
4352    CPPFLAGS="$CPPFLAGS -arch intel"
4353    LDFLAGS="$LDFLAGS -arch intel"
4354  elif test "x$MACARCH" = "xppc"; then
4355    CPPFLAGS="$CPPFLAGS -arch ppc"
4356    LDFLAGS="$LDFLAGS -arch ppc"
4357  fi
4358
4359  if test "$enable_darwin" = "yes"; then
4360    MACOSX=yes
4361    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4362    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4363            CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX"
4364
4365                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4366for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4367		  inttypes.h stdint.h unistd.h
4368do :
4369  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4371"
4372if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4373  cat >>confdefs.h <<_ACEOF
4374#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4375_ACEOF
4376
4377fi
4378
4379done
4380
4381
4382ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4383if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4384  CARBON=yes
4385fi
4386
4387
4388    if test "x$CARBON" = "xyes"; then
4389      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
4390	with_x=no
4391      fi
4392    fi
4393  fi
4394
4395        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4396    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4397  fi
4398
4399else
4400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401$as_echo "no" >&6; }
4402fi
4403
4404for ac_header in AvailabilityMacros.h
4405do :
4406  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4407if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4408  cat >>confdefs.h <<_ACEOF
4409#define HAVE_AVAILABILITYMACROS_H 1
4410_ACEOF
4411
4412fi
4413
4414done
4415
4416
4417
4418
4419
4420if test "$cross_compiling" = no; then
4421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4422$as_echo_n "checking --with-local-dir argument... " >&6; }
4423  have_local_include=''
4424  have_local_lib=''
4425
4426# Check whether --with-local-dir was given.
4427if test "${with_local_dir+set}" = set; then :
4428  withval=$with_local_dir;
4429    local_dir="$withval"
4430    case "$withval" in
4431    */*) ;;
4432    no)
4433      # avoid adding local dir to LDFLAGS and CPPFLAGS
4434      have_local_include=yes
4435      have_local_lib=yes
4436      ;;
4437    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4438    esac
4439	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4440$as_echo "$local_dir" >&6; }
4441
4442else
4443
4444    local_dir=/usr/local
4445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4446$as_echo "Defaulting to $local_dir" >&6; }
4447
4448fi
4449
4450  if test "$GCC" = yes -a "$local_dir" != no; then
4451    echo 'void f(){}' > conftest.c
4452        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4453    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4454    rm -f conftest.c conftest.o
4455  fi
4456  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4457    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4458    if test "$tt" = "$LDFLAGS"; then
4459      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4460    fi
4461  fi
4462  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4463    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4464    if test "$tt" = "$CPPFLAGS"; then
4465      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4466    fi
4467  fi
4468fi
4469
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4471$as_echo_n "checking --with-vim-name argument... " >&6; }
4472
4473# Check whether --with-vim-name was given.
4474if test "${with_vim_name+set}" = set; then :
4475  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4476$as_echo "$VIMNAME" >&6; }
4477else
4478  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4479$as_echo "Defaulting to $VIMNAME" >&6; }
4480fi
4481
4482
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4484$as_echo_n "checking --with-ex-name argument... " >&6; }
4485
4486# Check whether --with-ex-name was given.
4487if test "${with_ex_name+set}" = set; then :
4488  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4489$as_echo "$EXNAME" >&6; }
4490else
4491  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4492$as_echo "Defaulting to ex" >&6; }
4493fi
4494
4495
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4497$as_echo_n "checking --with-view-name argument... " >&6; }
4498
4499# Check whether --with-view-name was given.
4500if test "${with_view_name+set}" = set; then :
4501  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4502$as_echo "$VIEWNAME" >&6; }
4503else
4504  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4505$as_echo "Defaulting to view" >&6; }
4506fi
4507
4508
4509
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4511$as_echo_n "checking --with-global-runtime argument... " >&6; }
4512
4513# Check whether --with-global-runtime was given.
4514if test "${with_global_runtime+set}" = set; then :
4515  withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4516$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4517#define RUNTIME_GLOBAL "$withval"
4518_ACEOF
4519
4520else
4521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522$as_echo "no" >&6; }
4523fi
4524
4525
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4527$as_echo_n "checking --with-modified-by argument... " >&6; }
4528
4529# Check whether --with-modified-by was given.
4530if test "${with_modified_by+set}" = set; then :
4531  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4532$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4533#define MODIFIED_BY "$withval"
4534_ACEOF
4535
4536else
4537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538$as_echo "no" >&6; }
4539fi
4540
4541
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4543$as_echo_n "checking if character set is EBCDIC... " >&6; }
4544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h.  */
4546
4547int
4548main ()
4549{
4550 /* TryCompile function for CharSet.
4551   Treat any failure as ASCII for compatibility with existing art.
4552   Use compile-time rather than run-time tests for cross-compiler
4553   tolerance.  */
4554#if '0'!=240
4555make an error "Character set is not EBCDIC"
4556#endif
4557  ;
4558  return 0;
4559}
4560_ACEOF
4561if ac_fn_c_try_compile "$LINENO"; then :
4562   # TryCompile action if true
4563cf_cv_ebcdic=yes
4564else
4565   # TryCompile action if false
4566cf_cv_ebcdic=no
4567fi
4568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569# end of TryCompile ])
4570# end of CacheVal CvEbcdic
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4572$as_echo "$cf_cv_ebcdic" >&6; }
4573case "$cf_cv_ebcdic" in  #(vi
4574    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4575
4576		line_break='"\\n"'
4577		;;
4578    *)		line_break='"\\012"';;
4579esac
4580
4581
4582if test "$cf_cv_ebcdic" = "yes"; then
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4584$as_echo_n "checking for z/OS Unix... " >&6; }
4585case `uname` in
4586    OS/390)	zOSUnix="yes";
4587										if test "$CC" = "cc"; then
4588		  ccm="$_CC_CCMODE"
4589		  ccn="CC"
4590		else
4591		  if test "$CC" = "c89"; then
4592		    ccm="$_CC_C89MODE"
4593		    ccn="C89"
4594		  else
4595		    ccm=1
4596		  fi
4597		fi
4598		if test "$ccm" != "1"; then
4599		  echo ""
4600		  echo "------------------------------------------"
4601		  echo " On z/OS Unix, the environment variable"
4602		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4603		  echo " Do:"
4604		  echo "    export _CC_${ccn}MODE=1"
4605		  echo " and then call configure again."
4606		  echo "------------------------------------------"
4607		  exit 1
4608		fi
4609		# Set CFLAGS for configure process.
4610		# This will be reset later for config.mk.
4611		# Use haltonmsg to force error for missing H files.
4612		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
4613		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615$as_echo "yes" >&6; }
4616		;;
4617    *)		zOSUnix="no";
4618		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619$as_echo "no" >&6; }
4620		;;
4621esac
4622fi
4623
4624if test "$zOSUnix" = "yes"; then
4625    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
4626else
4627    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
4628fi
4629
4630
4631
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
4633$as_echo_n "checking --disable-smack argument... " >&6; }
4634# Check whether --enable-smack was given.
4635if test "${enable_smack+set}" = set; then :
4636  enableval=$enable_smack;
4637else
4638  enable_smack="yes"
4639fi
4640
4641if test "$enable_smack" = "yes"; then
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643$as_echo "no" >&6; }
4644  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
4645if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
4646  true
4647else
4648  enable_smack="no"
4649fi
4650
4651
4652else
4653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4654$as_echo "yes" >&6; }
4655fi
4656if test "$enable_smack" = "yes"; then
4657  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
4658if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
4659  true
4660else
4661  enable_smack="no"
4662fi
4663
4664
4665fi
4666if test "$enable_smack" = "yes"; then
4667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
4668$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
4669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670/* end confdefs.h.  */
4671#include <linux/xattr.h>
4672_ACEOF
4673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4674  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4676$as_echo "yes" >&6; }
4677else
4678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679$as_echo "no" >&6; }; enable_smack="no"
4680fi
4681rm -f conftest*
4682
4683fi
4684if test "$enable_smack" = "yes"; then
4685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
4686$as_echo_n "checking for setxattr in -lattr... " >&6; }
4687if ${ac_cv_lib_attr_setxattr+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  ac_check_lib_save_LIBS=$LIBS
4691LIBS="-lattr  $LIBS"
4692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h.  */
4694
4695/* Override any GCC internal prototype to avoid an error.
4696   Use char because int might match the return type of a GCC
4697   builtin and then its argument prototype would still apply.  */
4698#ifdef __cplusplus
4699extern "C"
4700#endif
4701char setxattr ();
4702int
4703main ()
4704{
4705return setxattr ();
4706  ;
4707  return 0;
4708}
4709_ACEOF
4710if ac_fn_c_try_link "$LINENO"; then :
4711  ac_cv_lib_attr_setxattr=yes
4712else
4713  ac_cv_lib_attr_setxattr=no
4714fi
4715rm -f core conftest.err conftest.$ac_objext \
4716    conftest$ac_exeext conftest.$ac_ext
4717LIBS=$ac_check_lib_save_LIBS
4718fi
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
4720$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
4721if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
4722  LIBS="$LIBS -lattr"
4723	   found_smack="yes"
4724	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
4725
4726fi
4727
4728fi
4729
4730if test "x$found_smack" = "x"; then
4731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
4732$as_echo_n "checking --disable-selinux argument... " >&6; }
4733  # Check whether --enable-selinux was given.
4734if test "${enable_selinux+set}" = set; then :
4735  enableval=$enable_selinux;
4736else
4737  enable_selinux="yes"
4738fi
4739
4740  if test "$enable_selinux" = "yes"; then
4741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742$as_echo "no" >&6; }
4743    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
4744$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4745if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
4746  $as_echo_n "(cached) " >&6
4747else
4748  ac_check_lib_save_LIBS=$LIBS
4749LIBS="-lselinux  $LIBS"
4750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751/* end confdefs.h.  */
4752
4753/* Override any GCC internal prototype to avoid an error.
4754   Use char because int might match the return type of a GCC
4755   builtin and then its argument prototype would still apply.  */
4756#ifdef __cplusplus
4757extern "C"
4758#endif
4759char is_selinux_enabled ();
4760int
4761main ()
4762{
4763return is_selinux_enabled ();
4764  ;
4765  return 0;
4766}
4767_ACEOF
4768if ac_fn_c_try_link "$LINENO"; then :
4769  ac_cv_lib_selinux_is_selinux_enabled=yes
4770else
4771  ac_cv_lib_selinux_is_selinux_enabled=no
4772fi
4773rm -f core conftest.err conftest.$ac_objext \
4774    conftest$ac_exeext conftest.$ac_ext
4775LIBS=$ac_check_lib_save_LIBS
4776fi
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4778$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4779if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
4780  LIBS="$LIBS -lselinux"
4781	     $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
4782
4783fi
4784
4785  else
4786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4787$as_echo "yes" >&6; }
4788  fi
4789fi
4790
4791
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
4793$as_echo_n "checking --with-features argument... " >&6; }
4794
4795# Check whether --with-features was given.
4796if test "${with_features+set}" = set; then :
4797  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
4798$as_echo "$features" >&6; }
4799else
4800  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
4801$as_echo "Defaulting to huge" >&6; }
4802fi
4803
4804
4805dovimdiff=""
4806dogvimdiff=""
4807case "$features" in
4808  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
4809 ;;
4810  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
4811 ;;
4812  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
4813 dovimdiff="installvimdiff";
4814			dogvimdiff="installgvimdiff" ;;
4815  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
4816 dovimdiff="installvimdiff";
4817			dogvimdiff="installgvimdiff" ;;
4818  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
4819 dovimdiff="installvimdiff";
4820			dogvimdiff="installgvimdiff" ;;
4821  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
4822$as_echo "Sorry, $features is not supported" >&6; } ;;
4823esac
4824
4825
4826
4827
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
4829$as_echo_n "checking --with-compiledby argument... " >&6; }
4830
4831# Check whether --with-compiledby was given.
4832if test "${with_compiledby+set}" = set; then :
4833  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4834$as_echo "$withval" >&6; }
4835else
4836  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837$as_echo "no" >&6; }
4838fi
4839
4840
4841
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
4843$as_echo_n "checking --disable-xsmp argument... " >&6; }
4844# Check whether --enable-xsmp was given.
4845if test "${enable_xsmp+set}" = set; then :
4846  enableval=$enable_xsmp;
4847else
4848  enable_xsmp="yes"
4849fi
4850
4851
4852if test "$enable_xsmp" = "yes"; then
4853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
4856$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4857  # Check whether --enable-xsmp-interact was given.
4858if test "${enable_xsmp_interact+set}" = set; then :
4859  enableval=$enable_xsmp_interact;
4860else
4861  enable_xsmp_interact="yes"
4862fi
4863
4864  if test "$enable_xsmp_interact" = "yes"; then
4865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866$as_echo "no" >&6; }
4867    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
4868
4869  else
4870    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871$as_echo "yes" >&6; }
4872  fi
4873else
4874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4875$as_echo "yes" >&6; }
4876fi
4877
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
4879$as_echo_n "checking --enable-luainterp argument... " >&6; }
4880# Check whether --enable-luainterp was given.
4881if test "${enable_luainterp+set}" = set; then :
4882  enableval=$enable_luainterp;
4883else
4884  enable_luainterp="no"
4885fi
4886
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
4888$as_echo "$enable_luainterp" >&6; }
4889
4890if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
4891  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
4892    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
4893  fi
4894
4895
4896
4897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
4898$as_echo_n "checking --with-lua-prefix argument... " >&6; }
4899
4900# Check whether --with-lua_prefix was given.
4901if test "${with_lua_prefix+set}" = set; then :
4902  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
4903$as_echo "$with_lua_prefix" >&6; }
4904else
4905  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906$as_echo "no" >&6; }
4907fi
4908
4909
4910  if test "X$with_lua_prefix" != "X"; then
4911       vi_cv_path_lua_pfx="$with_lua_prefix"
4912  else
4913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
4914$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
4915    if test "X$LUA_PREFIX" != "X"; then
4916	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
4917$as_echo "\"$LUA_PREFIX\"" >&6; }
4918	vi_cv_path_lua_pfx="$LUA_PREFIX"
4919    else
4920	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
4921$as_echo "not set, default to /usr" >&6; }
4922	vi_cv_path_lua_pfx="/usr"
4923    fi
4924  fi
4925
4926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
4927$as_echo_n "checking --with-luajit... " >&6; }
4928
4929# Check whether --with-luajit was given.
4930if test "${with_luajit+set}" = set; then :
4931  withval=$with_luajit; vi_cv_with_luajit="$withval"
4932else
4933  vi_cv_with_luajit="no"
4934fi
4935
4936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
4937$as_echo "$vi_cv_with_luajit" >&6; }
4938
4939  LUA_INC=
4940  if test "X$vi_cv_path_lua_pfx" != "X"; then
4941    if test "x$vi_cv_with_luajit" != "xno"; then
4942            # Extract the first word of "luajit", so it can be a program name with args.
4943set dummy luajit; ac_word=$2
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945$as_echo_n "checking for $ac_word... " >&6; }
4946if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949  case $vi_cv_path_luajit in
4950  [\\/]* | ?:[\\/]*)
4951  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
4952  ;;
4953  *)
4954  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957  IFS=$as_save_IFS
4958  test -z "$as_dir" && as_dir=.
4959    for ac_exec_ext in '' $ac_executable_extensions; do
4960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
4962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963    break 2
4964  fi
4965done
4966  done
4967IFS=$as_save_IFS
4968
4969  ;;
4970esac
4971fi
4972vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
4973if test -n "$vi_cv_path_luajit"; then
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
4975$as_echo "$vi_cv_path_luajit" >&6; }
4976else
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978$as_echo "no" >&6; }
4979fi
4980
4981
4982      if test "X$vi_cv_path_luajit" != "X"; then
4983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
4984$as_echo_n "checking LuaJIT version... " >&6; }
4985if ${vi_cv_version_luajit+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
4991$as_echo "$vi_cv_version_luajit" >&6; }
4992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
4993$as_echo_n "checking Lua version of LuaJIT... " >&6; }
4994if ${vi_cv_version_lua_luajit+:} false; then :
4995  $as_echo_n "(cached) " >&6
4996else
4997   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
4998fi
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5000$as_echo "$vi_cv_version_lua_luajit" >&6; }
5001	vi_cv_path_lua="$vi_cv_path_luajit"
5002	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5003      fi
5004    else
5005            # Extract the first word of "lua", so it can be a program name with args.
5006set dummy lua; ac_word=$2
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008$as_echo_n "checking for $ac_word... " >&6; }
5009if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5010  $as_echo_n "(cached) " >&6
5011else
5012  case $vi_cv_path_plain_lua in
5013  [\\/]* | ?:[\\/]*)
5014  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5015  ;;
5016  *)
5017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022    for ac_exec_ext in '' $ac_executable_extensions; do
5023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029  done
5030IFS=$as_save_IFS
5031
5032  ;;
5033esac
5034fi
5035vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5036if test -n "$vi_cv_path_plain_lua"; then
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5038$as_echo "$vi_cv_path_plain_lua" >&6; }
5039else
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
5042fi
5043
5044
5045      if test "X$vi_cv_path_plain_lua" != "X"; then
5046		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5047$as_echo_n "checking Lua version... " >&6; }
5048if ${vi_cv_version_plain_lua+:} false; then :
5049  $as_echo_n "(cached) " >&6
5050else
5051   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5052fi
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5054$as_echo "$vi_cv_version_plain_lua" >&6; }
5055      fi
5056      vi_cv_path_lua="$vi_cv_path_plain_lua"
5057      vi_cv_version_lua="$vi_cv_version_plain_lua"
5058    fi
5059    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5060      { $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
5061$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5062      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5063	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5064$as_echo "yes" >&6; }
5065	LUA_INC=/luajit-$vi_cv_version_luajit
5066      fi
5067    fi
5068    if test "X$LUA_INC" = "X"; then
5069      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5070$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5071      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5072	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5073$as_echo "yes" >&6; }
5074      else
5075	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076$as_echo "no" >&6; }
5077	{ $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
5078$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5079	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5080	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5081$as_echo "yes" >&6; }
5082	  LUA_INC=/lua$vi_cv_version_lua
5083	else
5084	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085$as_echo "no" >&6; }
5086	  vi_cv_path_lua_pfx=
5087	fi
5088      fi
5089    fi
5090  fi
5091
5092  if test "X$vi_cv_path_lua_pfx" != "X"; then
5093    if test "x$vi_cv_with_luajit" != "xno"; then
5094      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5095      if test "X$multiarch" != "X"; then
5096	lib_multiarch="lib/${multiarch}"
5097      else
5098	lib_multiarch="lib"
5099      fi
5100      if test "X$vi_cv_version_lua" = "X"; then
5101	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5102      else
5103	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5104      fi
5105    else
5106      if test "X$LUA_INC" != "X"; then
5107		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5108      else
5109	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5110      fi
5111    fi
5112    if test "$enable_luainterp" = "dynamic"; then
5113      lua_ok="yes"
5114    else
5115      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5116$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5117      libs_save=$LIBS
5118      LIBS="$LIBS $LUA_LIBS"
5119      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h.  */
5121
5122int
5123main ()
5124{
5125
5126  ;
5127  return 0;
5128}
5129_ACEOF
5130if ac_fn_c_try_link "$LINENO"; then :
5131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5132$as_echo "yes" >&6; }; lua_ok="yes"
5133else
5134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5136fi
5137rm -f core conftest.err conftest.$ac_objext \
5138    conftest$ac_exeext conftest.$ac_ext
5139      LIBS=$libs_save
5140    fi
5141    if test "x$lua_ok" = "xyes"; then
5142      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5143      LUA_SRC="if_lua.c"
5144      LUA_OBJ="objects/if_lua.o"
5145      LUA_PRO="if_lua.pro"
5146      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5147
5148    fi
5149    if test "$enable_luainterp" = "dynamic"; then
5150      if test "x$vi_cv_with_luajit" != "xno"; then
5151	luajit="jit"
5152      fi
5153      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5154	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5155      else
5156	if test "x$MACOSX" = "xyes"; then
5157	  ext="dylib"
5158	  indexes=""
5159	else
5160	  ext="so"
5161	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5162	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5163	  if test "X$multiarch" != "X"; then
5164	    lib_multiarch="lib/${multiarch}"
5165	  fi
5166	fi
5167			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5168$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5169	for subdir in "${lib_multiarch}" lib64 lib; do
5170	  if test -z "$subdir"; then
5171	    continue
5172	  fi
5173	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5174	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5175	    for i in $indexes ""; do
5176	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5177		sover2="$i"
5178		break 3
5179	      fi
5180	    done
5181	  done
5182	  sover=""
5183	done
5184	if test "X$sover" = "X"; then
5185	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
5187	  lua_ok="no"
5188	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5189	else
5190	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5191$as_echo "yes" >&6; }
5192	  lua_ok="yes"
5193	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5194	fi
5195      fi
5196      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5197
5198      LUA_LIBS=""
5199      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5200    fi
5201    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5202       test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5203       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5204            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5205    fi
5206  fi
5207  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5208    as_fn_error $? "could not configure lua" "$LINENO" 5
5209  fi
5210
5211
5212
5213
5214
5215fi
5216
5217
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5219$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5220# Check whether --enable-mzschemeinterp was given.
5221if test "${enable_mzschemeinterp+set}" = set; then :
5222  enableval=$enable_mzschemeinterp;
5223else
5224  enable_mzschemeinterp="no"
5225fi
5226
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5228$as_echo "$enable_mzschemeinterp" >&6; }
5229
5230if test "$enable_mzschemeinterp" = "yes"; then
5231
5232
5233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5234$as_echo_n "checking --with-plthome argument... " >&6; }
5235
5236# Check whether --with-plthome was given.
5237if test "${with_plthome+set}" = set; then :
5238  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5239$as_echo "$with_plthome" >&6; }
5240else
5241  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5242$as_echo "\"no\"" >&6; }
5243fi
5244
5245
5246  if test "X$with_plthome" != "X"; then
5247       vi_cv_path_mzscheme_pfx="$with_plthome"
5248       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5249  else
5250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5251$as_echo_n "checking PLTHOME environment var... " >&6; }
5252    if test "X$PLTHOME" != "X"; then
5253	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5254$as_echo "\"$PLTHOME\"" >&6; }
5255	vi_cv_path_mzscheme_pfx="$PLTHOME"
5256	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5257    else
5258	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5259$as_echo "not set" >&6; }
5260		# Extract the first word of "mzscheme", so it can be a program name with args.
5261set dummy mzscheme; ac_word=$2
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263$as_echo_n "checking for $ac_word... " >&6; }
5264if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  case $vi_cv_path_mzscheme in
5268  [\\/]* | ?:[\\/]*)
5269  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5270  ;;
5271  *)
5272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275  IFS=$as_save_IFS
5276  test -z "$as_dir" && as_dir=.
5277    for ac_exec_ext in '' $ac_executable_extensions; do
5278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281    break 2
5282  fi
5283done
5284  done
5285IFS=$as_save_IFS
5286
5287  ;;
5288esac
5289fi
5290vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5291if test -n "$vi_cv_path_mzscheme"; then
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5293$as_echo "$vi_cv_path_mzscheme" >&6; }
5294else
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296$as_echo "no" >&6; }
5297fi
5298
5299
5300
5301			if test "X$vi_cv_path_mzscheme" != "X"; then
5302	  lsout=`ls -l $vi_cv_path_mzscheme`
5303	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5304	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5305	  fi
5306	fi
5307
5308	if test "X$vi_cv_path_mzscheme" != "X"; then
5309	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5310$as_echo_n "checking MzScheme install prefix... " >&6; }
5311if ${vi_cv_path_mzscheme_pfx+:} false; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314  	    	    echo "(display (simplify-path		\
5315	       (build-path (call-with-values	\
5316		(lambda () (split-path (find-system-path (quote exec-file)))) \
5317		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5318	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5319		sed -e 's+/$++'`
5320fi
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5322$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5323	    rm -f mzdirs.scm
5324	fi
5325    fi
5326  fi
5327
5328  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5330$as_echo_n "checking for racket include directory... " >&6; }
5331    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5332    if test "X$SCHEME_INC" != "X"; then
5333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5334$as_echo "${SCHEME_INC}" >&6; }
5335    else
5336      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5337$as_echo "not found" >&6; }
5338      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5339$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5340      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5341	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5342	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5343$as_echo "yes" >&6; }
5344      else
5345	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346$as_echo "no" >&6; }
5347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5348$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5349	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5350	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351$as_echo "yes" >&6; }
5352	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5353	else
5354	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }
5356	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5357$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5358	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5359	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5360$as_echo "yes" >&6; }
5361	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5362	  else
5363	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364$as_echo "no" >&6; }
5365	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5366$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5367	    if test -f /usr/include/plt/scheme.h; then
5368	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5369$as_echo "yes" >&6; }
5370	      SCHEME_INC=/usr/include/plt
5371	    else
5372	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373$as_echo "no" >&6; }
5374	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5375$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5376	      if test -f /usr/include/racket/scheme.h; then
5377		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5378$as_echo "yes" >&6; }
5379		SCHEME_INC=/usr/include/racket
5380	      else
5381		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382$as_echo "no" >&6; }
5383		vi_cv_path_mzscheme_pfx=
5384	      fi
5385	    fi
5386	  fi
5387	fi
5388      fi
5389    fi
5390  fi
5391
5392  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5393
5394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5395$as_echo_n "checking for racket lib directory... " >&6; }
5396    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5397    if test "X$SCHEME_LIB" != "X"; then
5398      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5399$as_echo "${SCHEME_LIB}" >&6; }
5400    else
5401      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5402$as_echo "not found" >&6; }
5403    fi
5404
5405    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5406      if test "X$path" != "X"; then
5407	if test "x$MACOSX" = "xyes"; then
5408	  MZSCHEME_LIBS="-framework Racket"
5409	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5410	elif test -f "${path}/libmzscheme3m.a"; then
5411	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5412	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5413	elif test -f "${path}/libracket3m.a"; then
5414	  MZSCHEME_LIBS="${path}/libracket3m.a"
5415	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5416	elif test -f "${path}/libracket.a"; then
5417	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5418	elif test -f "${path}/libmzscheme.a"; then
5419	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5420	else
5421	  	  if test -f "${path}/libmzscheme3m.so"; then
5422	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5423	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5424	  elif test -f "${path}/libracket3m.so"; then
5425	    MZSCHEME_LIBS="-L${path} -lracket3m"
5426	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5427	  elif test -f "${path}/libracket.so"; then
5428	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5429	  else
5430	    	    if test "$path" != "$SCHEME_LIB"; then
5431	      continue
5432	    fi
5433	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5434	  fi
5435	  if test "$GCC" = yes; then
5436	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5437	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5438				   uname -r | grep '^5' >/dev/null; then
5439	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5440	  fi
5441	fi
5442      fi
5443      if test "X$MZSCHEME_LIBS" != "X"; then
5444	break
5445      fi
5446    done
5447
5448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5449$as_echo_n "checking if racket requires -pthread... " >&6; }
5450    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5451      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452$as_echo "yes" >&6; }
5453      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5454      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5455    else
5456      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457$as_echo "no" >&6; }
5458    fi
5459
5460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5461$as_echo_n "checking for racket config directory... " >&6; }
5462    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5463    if test "X$SCHEME_CONFIGDIR" != "X"; then
5464      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5465      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5466$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5467    else
5468      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5469$as_echo "not found" >&6; }
5470    fi
5471
5472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5473$as_echo_n "checking for racket collects directory... " >&6; }
5474    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))))'`
5475    if test "X$SCHEME_COLLECTS" = "X"; then
5476      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5477	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5478      else
5479	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5480	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5481	else
5482	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5483	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5484	  else
5485	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5486	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5487	    fi
5488	  fi
5489	fi
5490      fi
5491    fi
5492    if test "X$SCHEME_COLLECTS" != "X" ; then
5493      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5494$as_echo "${SCHEME_COLLECTS}" >&6; }
5495    else
5496      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5497$as_echo "not found" >&6; }
5498    fi
5499
5500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5501$as_echo_n "checking for mzscheme_base.c... " >&6; }
5502    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5503      MZSCHEME_EXTRA="mzscheme_base.c"
5504      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5505      MZSCHEME_MOD="++lib scheme/base"
5506    else
5507      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5508	MZSCHEME_EXTRA="mzscheme_base.c"
5509	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5510	MZSCHEME_MOD="++lib scheme/base"
5511      else
5512	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5513	  MZSCHEME_EXTRA="mzscheme_base.c"
5514	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5515	  MZSCHEME_MOD=""
5516	fi
5517      fi
5518    fi
5519    if test "X$MZSCHEME_EXTRA" != "X" ; then
5520            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5521      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5522$as_echo "needed" >&6; }
5523    else
5524      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5525$as_echo "not needed" >&6; }
5526    fi
5527
5528        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5529$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5530if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5531  $as_echo_n "(cached) " >&6
5532else
5533  ac_check_lib_save_LIBS=$LIBS
5534LIBS="-lffi  $LIBS"
5535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536/* end confdefs.h.  */
5537
5538/* Override any GCC internal prototype to avoid an error.
5539   Use char because int might match the return type of a GCC
5540   builtin and then its argument prototype would still apply.  */
5541#ifdef __cplusplus
5542extern "C"
5543#endif
5544char ffi_type_void ();
5545int
5546main ()
5547{
5548return ffi_type_void ();
5549  ;
5550  return 0;
5551}
5552_ACEOF
5553if ac_fn_c_try_link "$LINENO"; then :
5554  ac_cv_lib_ffi_ffi_type_void=yes
5555else
5556  ac_cv_lib_ffi_ffi_type_void=no
5557fi
5558rm -f core conftest.err conftest.$ac_objext \
5559    conftest$ac_exeext conftest.$ac_ext
5560LIBS=$ac_check_lib_save_LIBS
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5563$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5564if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5565  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5566fi
5567
5568
5569    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5570      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5571
5572        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5573$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5574    cflags_save=$CFLAGS
5575    libs_save=$LIBS
5576    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5577    LIBS="$LIBS $MZSCHEME_LIBS"
5578    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579/* end confdefs.h.  */
5580
5581int
5582main ()
5583{
5584
5585  ;
5586  return 0;
5587}
5588_ACEOF
5589if ac_fn_c_try_link "$LINENO"; then :
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5591$as_echo "yes" >&6; }; mzs_ok=yes
5592else
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5594$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5595fi
5596rm -f core conftest.err conftest.$ac_objext \
5597    conftest$ac_exeext conftest.$ac_ext
5598    CFLAGS=$cflags_save
5599    LIBS=$libs_save
5600    if test $mzs_ok = yes; then
5601      MZSCHEME_SRC="if_mzsch.c"
5602      MZSCHEME_OBJ="objects/if_mzsch.o"
5603      MZSCHEME_PRO="if_mzsch.pro"
5604      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
5605
5606    else
5607      MZSCHEME_CFLAGS=
5608      MZSCHEME_LIBS=
5609      MZSCHEME_EXTRA=
5610      MZSCHEME_MZC=
5611    fi
5612  fi
5613
5614
5615
5616
5617
5618
5619
5620fi
5621
5622
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
5624$as_echo_n "checking --enable-perlinterp argument... " >&6; }
5625# Check whether --enable-perlinterp was given.
5626if test "${enable_perlinterp+set}" = set; then :
5627  enableval=$enable_perlinterp;
5628else
5629  enable_perlinterp="no"
5630fi
5631
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
5633$as_echo "$enable_perlinterp" >&6; }
5634if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
5635  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5636    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
5637  fi
5638
5639  # Extract the first word of "perl", so it can be a program name with args.
5640set dummy perl; ac_word=$2
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
5643if ${ac_cv_path_vi_cv_path_perl+:} false; then :
5644  $as_echo_n "(cached) " >&6
5645else
5646  case $vi_cv_path_perl in
5647  [\\/]* | ?:[\\/]*)
5648  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
5649  ;;
5650  *)
5651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654  IFS=$as_save_IFS
5655  test -z "$as_dir" && as_dir=.
5656    for ac_exec_ext in '' $ac_executable_extensions; do
5657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
5659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660    break 2
5661  fi
5662done
5663  done
5664IFS=$as_save_IFS
5665
5666  ;;
5667esac
5668fi
5669vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
5670if test -n "$vi_cv_path_perl"; then
5671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
5672$as_echo "$vi_cv_path_perl" >&6; }
5673else
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
5676fi
5677
5678
5679  if test "X$vi_cv_path_perl" != "X"; then
5680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
5681$as_echo_n "checking Perl version... " >&6; }
5682    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
5683     eval `$vi_cv_path_perl -V:usethreads`
5684     eval `$vi_cv_path_perl -V:libperl`
5685     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
5686       badthreads=no
5687     else
5688       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
5689	 eval `$vi_cv_path_perl -V:use5005threads`
5690	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
5691	   badthreads=no
5692	 else
5693	   badthreads=yes
5694	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
5695$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
5696	 fi
5697       else
5698	 badthreads=yes
5699	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
5700$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
5701       fi
5702     fi
5703     if test $badthreads = no; then
5704      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
5705$as_echo "OK" >&6; }
5706      eval `$vi_cv_path_perl -V:shrpenv`
5707      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
5708	shrpenv=""
5709      fi
5710      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
5711
5712      vi_cv_perl_extutils=unknown_perl_extutils_path
5713      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
5714	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
5715	if test -f "$xsubpp_path"; then
5716	  vi_cv_perl_xsubpp="$xsubpp_path"
5717	fi
5718      done
5719
5720                        perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
5721		-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
5722		-e 's/-fdebug-prefix-map[^ ]*//g' \
5723		-e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=.//g'`
5724            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
5725		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
5726			-e 's/-bE:perl.exp//' -e 's/-lc //'`
5727                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
5728		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
5729
5730                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
5731$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
5732      cflags_save=$CFLAGS
5733      libs_save=$LIBS
5734      ldflags_save=$LDFLAGS
5735      CFLAGS="$CFLAGS $perlcppflags"
5736      LIBS="$LIBS $perllibs"
5737      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
5738      LDFLAGS="$perlldflags $LDFLAGS"
5739      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h.  */
5741
5742int
5743main ()
5744{
5745
5746  ;
5747  return 0;
5748}
5749_ACEOF
5750if ac_fn_c_try_link "$LINENO"; then :
5751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5752$as_echo "yes" >&6; }; perl_ok=yes
5753else
5754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
5755$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5756fi
5757rm -f core conftest.err conftest.$ac_objext \
5758    conftest$ac_exeext conftest.$ac_ext
5759      CFLAGS=$cflags_save
5760      LIBS=$libs_save
5761      LDFLAGS=$ldflags_save
5762      if test $perl_ok = yes; then
5763	if test "X$perlcppflags" != "X"; then
5764	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5765	fi
5766	if test "X$perlldflags" != "X"; then
5767	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
5768	    LDFLAGS="$perlldflags $LDFLAGS"
5769	  fi
5770	fi
5771	PERL_LIBS=$perllibs
5772	PERL_SRC="auto/if_perl.c if_perlsfio.c"
5773	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5774	PERL_PRO="if_perl.pro if_perlsfio.pro"
5775	$as_echo "#define FEAT_PERL 1" >>confdefs.h
5776
5777      fi
5778     fi
5779    else
5780      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5781$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5782    fi
5783  fi
5784
5785  if test "x$MACOSX" = "xyes"; then
5786        dir=/System/Library/Perl
5787    darwindir=$dir/darwin
5788    if test -d $darwindir; then
5789      PERL=/usr/bin/perl
5790    else
5791            dir=/System/Library/Perl/5.8.1
5792      darwindir=$dir/darwin-thread-multi-2level
5793      if test -d $darwindir; then
5794	PERL=/usr/bin/perl
5795      fi
5796    fi
5797    if test -n "$PERL"; then
5798      PERL_DIR="$dir"
5799      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5800      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5801      PERL_LIBS="-L$darwindir/CORE -lperl"
5802    fi
5803                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5804    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5805  fi
5806  if test "$enable_perlinterp" = "dynamic"; then
5807    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
5808      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
5809
5810      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
5811    fi
5812  fi
5813
5814  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
5815    as_fn_error $? "could not configure perl" "$LINENO" 5
5816  fi
5817fi
5818
5819
5820
5821
5822
5823
5824
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
5826$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5827# Check whether --enable-pythoninterp was given.
5828if test "${enable_pythoninterp+set}" = set; then :
5829  enableval=$enable_pythoninterp;
5830else
5831  enable_pythoninterp="no"
5832fi
5833
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
5835$as_echo "$enable_pythoninterp" >&6; }
5836if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
5837  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5838    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
5839  fi
5840
5841    for ac_prog in python2 python
5842do
5843  # Extract the first word of "$ac_prog", so it can be a program name with args.
5844set dummy $ac_prog; ac_word=$2
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846$as_echo_n "checking for $ac_word... " >&6; }
5847if ${ac_cv_path_vi_cv_path_python+:} false; then :
5848  $as_echo_n "(cached) " >&6
5849else
5850  case $vi_cv_path_python in
5851  [\\/]* | ?:[\\/]*)
5852  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5853  ;;
5854  *)
5855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858  IFS=$as_save_IFS
5859  test -z "$as_dir" && as_dir=.
5860    for ac_exec_ext in '' $ac_executable_extensions; do
5861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864    break 2
5865  fi
5866done
5867  done
5868IFS=$as_save_IFS
5869
5870  ;;
5871esac
5872fi
5873vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5874if test -n "$vi_cv_path_python"; then
5875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
5876$as_echo "$vi_cv_path_python" >&6; }
5877else
5878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879$as_echo "no" >&6; }
5880fi
5881
5882
5883  test -n "$vi_cv_path_python" && break
5884done
5885
5886  if test "X$vi_cv_path_python" != "X"; then
5887
5888        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
5889$as_echo_n "checking Python version... " >&6; }
5890if ${vi_cv_var_python_version+:} false; then :
5891  $as_echo_n "(cached) " >&6
5892else
5893  vi_cv_var_python_version=`
5894	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5895
5896fi
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
5898$as_echo "$vi_cv_var_python_version" >&6; }
5899
5900        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
5901$as_echo_n "checking Python is 2.3 or better... " >&6; }
5902    if ${vi_cv_path_python} -c \
5903	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
5904    then
5905      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
5906$as_echo "yep" >&6; }
5907
5908            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
5909$as_echo_n "checking Python's install prefix... " >&6; }
5910if ${vi_cv_path_python_pfx+:} false; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913   vi_cv_path_python_pfx=`
5914	    ${vi_cv_path_python} -c \
5915		"import sys; print sys.prefix"`
5916fi
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
5918$as_echo "$vi_cv_path_python_pfx" >&6; }
5919
5920            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
5921$as_echo_n "checking Python's execution prefix... " >&6; }
5922if ${vi_cv_path_python_epfx+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925   vi_cv_path_python_epfx=`
5926	    ${vi_cv_path_python} -c \
5927		"import sys; print sys.exec_prefix"`
5928fi
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
5930$as_echo "$vi_cv_path_python_epfx" >&6; }
5931
5932
5933      if ${vi_cv_path_pythonpath+:} false; then :
5934  $as_echo_n "(cached) " >&6
5935else
5936   vi_cv_path_pythonpath=`
5937	    unset PYTHONPATH;
5938	    ${vi_cv_path_python} -c \
5939		"import sys, string; print string.join(sys.path,':')"`
5940fi
5941
5942
5943
5944
5945# Check whether --with-python-config-dir was given.
5946if test "${with_python_config_dir+set}" = set; then :
5947  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5948fi
5949
5950
5951      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
5952$as_echo_n "checking Python's configuration directory... " >&6; }
5953if ${vi_cv_path_python_conf+:} false; then :
5954  $as_echo_n "(cached) " >&6
5955else
5956
5957	vi_cv_path_python_conf=
5958	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
5959	if test -d "$d" && test -f "$d/config.c"; then
5960	  vi_cv_path_python_conf="$d"
5961	else
5962	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5963	    for subdir in lib64 lib share; do
5964	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5965	      if test -d "$d" && test -f "$d/config.c"; then
5966		vi_cv_path_python_conf="$d"
5967	      fi
5968	    done
5969	  done
5970	fi
5971
5972fi
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
5974$as_echo "$vi_cv_path_python_conf" >&6; }
5975
5976      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5977
5978      if test "X$PYTHON_CONFDIR" = "X"; then
5979	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
5980$as_echo "can't find it!" >&6; }
5981      else
5982
5983			if ${vi_cv_path_python_plibs+:} false; then :
5984  $as_echo_n "(cached) " >&6
5985else
5986
5987	    pwd=`pwd`
5988	    tmp_mkf="$pwd/config-PyMake$$"
5989	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5990__:
5991	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
5992	@echo "python_LIBS='$(LIBS)'"
5993	@echo "python_SYSLIBS='$(SYSLIBS)'"
5994	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5995	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
5996	@echo "python_INSTSONAME='$(INSTSONAME)'"
5997	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
5998	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
5999	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
6000eof
6001	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6002	    rm -f -- "${tmp_mkf}"
6003	    if test "x$MACOSX" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6004		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6005	      vi_cv_path_python_plibs="-framework Python"
6006	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6007		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6008	      fi
6009	    else
6010	      if test "${vi_cv_var_python_version}" = "1.4"; then
6011		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
6012	      else
6013		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6014	      fi
6015	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6016	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6017		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6018	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6019	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6020		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6021		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6022	            	            		  fi
6023	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6024	        fi
6025	      fi
6026	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6027	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6028	    fi
6029
6030fi
6031
6032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6033$as_echo_n "checking Python's dll name... " >&6; }
6034if ${vi_cv_dll_name_python+:} false; then :
6035  $as_echo_n "(cached) " >&6
6036else
6037
6038	  if test "X$python_DLLLIBRARY" != "X"; then
6039	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6040	  else
6041	    vi_cv_dll_name_python="$python_INSTSONAME"
6042	  fi
6043
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6046$as_echo "$vi_cv_dll_name_python" >&6; }
6047
6048	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6049	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6050	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6051	else
6052	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6053	fi
6054	PYTHON_SRC="if_python.c"
6055	PYTHON_OBJ="objects/if_python.o"
6056	if test "${vi_cv_var_python_version}" = "1.4"; then
6057	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
6058	fi
6059    PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
6060
6061								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6062$as_echo_n "checking if -pthread should be used... " >&6; }
6063	threadsafe_flag=
6064	thread_lib=
6065	        if test "`(uname) 2>/dev/null`" != Darwin; then
6066	  test "$GCC" = yes && threadsafe_flag="-pthread"
6067	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6068	    threadsafe_flag="-D_THREAD_SAFE"
6069	    thread_lib="-pthread"
6070	  fi
6071	  if test "`(uname) 2>/dev/null`" = SunOS; then
6072	    threadsafe_flag="-pthreads"
6073	  fi
6074	fi
6075	libs_save_old=$LIBS
6076	if test -n "$threadsafe_flag"; then
6077	  cflags_save=$CFLAGS
6078	  CFLAGS="$CFLAGS $threadsafe_flag"
6079	  LIBS="$LIBS $thread_lib"
6080	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h.  */
6082
6083int
6084main ()
6085{
6086
6087  ;
6088  return 0;
6089}
6090_ACEOF
6091if ac_fn_c_try_link "$LINENO"; then :
6092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6093$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6094else
6095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096$as_echo "no" >&6; }; LIBS=$libs_save_old
6097
6098fi
6099rm -f core conftest.err conftest.$ac_objext \
6100    conftest$ac_exeext conftest.$ac_ext
6101	  CFLAGS=$cflags_save
6102	else
6103	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105	fi
6106
6107			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6108$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6109	cflags_save=$CFLAGS
6110	libs_save=$LIBS
6111	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6112	LIBS="$LIBS $PYTHON_LIBS"
6113	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h.  */
6115
6116int
6117main ()
6118{
6119
6120  ;
6121  return 0;
6122}
6123_ACEOF
6124if ac_fn_c_try_link "$LINENO"; then :
6125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6126$as_echo "yes" >&6; }; python_ok=yes
6127else
6128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6129$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6130fi
6131rm -f core conftest.err conftest.$ac_objext \
6132    conftest$ac_exeext conftest.$ac_ext
6133	CFLAGS=$cflags_save
6134	LIBS=$libs_save
6135	if test $python_ok = yes; then
6136	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6137
6138	else
6139	  LIBS=$libs_save_old
6140	  PYTHON_SRC=
6141	  PYTHON_OBJ=
6142	  PYTHON_LIBS=
6143	  PYTHON_CFLAGS=
6144	fi
6145      fi
6146    else
6147      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6148$as_echo "too old" >&6; }
6149    fi
6150  fi
6151
6152  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6153    as_fn_error $? "could not configure python" "$LINENO" 5
6154  fi
6155fi
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6166$as_echo_n "checking --enable-python3interp argument... " >&6; }
6167# Check whether --enable-python3interp was given.
6168if test "${enable_python3interp+set}" = set; then :
6169  enableval=$enable_python3interp;
6170else
6171  enable_python3interp="no"
6172fi
6173
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6175$as_echo "$enable_python3interp" >&6; }
6176if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6177  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6178    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6179  fi
6180
6181    for ac_prog in python3 python
6182do
6183  # Extract the first word of "$ac_prog", so it can be a program name with args.
6184set dummy $ac_prog; ac_word=$2
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186$as_echo_n "checking for $ac_word... " >&6; }
6187if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  case $vi_cv_path_python3 in
6191  [\\/]* | ?:[\\/]*)
6192  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6193  ;;
6194  *)
6195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
6197do
6198  IFS=$as_save_IFS
6199  test -z "$as_dir" && as_dir=.
6200    for ac_exec_ext in '' $ac_executable_extensions; do
6201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6202    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204    break 2
6205  fi
6206done
6207  done
6208IFS=$as_save_IFS
6209
6210  ;;
6211esac
6212fi
6213vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6214if test -n "$vi_cv_path_python3"; then
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6216$as_echo "$vi_cv_path_python3" >&6; }
6217else
6218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219$as_echo "no" >&6; }
6220fi
6221
6222
6223  test -n "$vi_cv_path_python3" && break
6224done
6225
6226  if test "X$vi_cv_path_python3" != "X"; then
6227
6228        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6229$as_echo_n "checking Python version... " >&6; }
6230if ${vi_cv_var_python3_version+:} false; then :
6231  $as_echo_n "(cached) " >&6
6232else
6233  vi_cv_var_python3_version=`
6234          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6235
6236fi
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6238$as_echo "$vi_cv_var_python3_version" >&6; }
6239
6240        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6241$as_echo_n "checking Python is 3.0 or better... " >&6; }
6242    if ${vi_cv_path_python3} -c \
6243      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6244    then
6245      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6246$as_echo "yep" >&6; }
6247
6248            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6249$as_echo_n "checking Python's abiflags... " >&6; }
6250if ${vi_cv_var_python3_abiflags+:} false; then :
6251  $as_echo_n "(cached) " >&6
6252else
6253
6254       vi_cv_var_python3_abiflags=
6255       if ${vi_cv_path_python3} -c \
6256           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6257       then
6258         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6259           "import sys; print(sys.abiflags)"`
6260       fi
6261fi
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6263$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6264
6265            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6266$as_echo_n "checking Python's install prefix... " >&6; }
6267if ${vi_cv_path_python3_pfx+:} false; then :
6268  $as_echo_n "(cached) " >&6
6269else
6270   vi_cv_path_python3_pfx=`
6271       ${vi_cv_path_python3} -c \
6272       "import sys; print(sys.prefix)"`
6273fi
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6275$as_echo "$vi_cv_path_python3_pfx" >&6; }
6276
6277            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6278$as_echo_n "checking Python's execution prefix... " >&6; }
6279if ${vi_cv_path_python3_epfx+:} false; then :
6280  $as_echo_n "(cached) " >&6
6281else
6282   vi_cv_path_python3_epfx=`
6283       ${vi_cv_path_python3} -c \
6284       "import sys; print(sys.exec_prefix)"`
6285fi
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6287$as_echo "$vi_cv_path_python3_epfx" >&6; }
6288
6289
6290      if ${vi_cv_path_python3path+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293   vi_cv_path_python3path=`
6294       unset PYTHONPATH;
6295       ${vi_cv_path_python3} -c \
6296       "import sys, string; print(':'.join(sys.path))"`
6297fi
6298
6299
6300
6301
6302# Check whether --with-python3-config-dir was given.
6303if test "${with_python3_config_dir+set}" = set; then :
6304  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"
6305fi
6306
6307
6308      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6309$as_echo_n "checking Python's configuration directory... " >&6; }
6310if ${vi_cv_path_python3_conf+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313
6314       vi_cv_path_python3_conf=
6315       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6316       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6317       if test -d "$d" && test -f "$d/config.c"; then
6318         vi_cv_path_python3_conf="$d"
6319       else
6320         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6321	   for subdir in lib64 lib share; do
6322	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6323	     if test -d "$d" && test -f "$d/config.c"; then
6324	       vi_cv_path_python3_conf="$d"
6325	     fi
6326	   done
6327         done
6328       fi
6329
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6332$as_echo "$vi_cv_path_python3_conf" >&6; }
6333
6334      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6335
6336      if test "X$PYTHON3_CONFDIR" = "X"; then
6337        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6338$as_echo "can't find it!" >&6; }
6339      else
6340
6341                        if ${vi_cv_path_python3_plibs+:} false; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344
6345            pwd=`pwd`
6346            tmp_mkf="$pwd/config-PyMake$$"
6347            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6348__:
6349	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6350	@echo "python3_LIBS='$(LIBS)'"
6351	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6352	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6353	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6354eof
6355	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6356	    rm -f -- "${tmp_mkf}"
6357	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6358	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6359	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6360	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6361
6362fi
6363
6364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6365$as_echo_n "checking Python3's dll name... " >&6; }
6366if ${vi_cv_dll_name_python3+:} false; then :
6367  $as_echo_n "(cached) " >&6
6368else
6369
6370	  if test "X$python3_DLLLIBRARY" != "X"; then
6371	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6372	  else
6373	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6374	  fi
6375
6376fi
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6378$as_echo "$vi_cv_dll_name_python3" >&6; }
6379
6380        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6381        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6382          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6383        else
6384          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -I${vi_cv_path_python3_epfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6385        fi
6386        PYTHON3_SRC="if_python3.c"
6387        PYTHON3_OBJ="objects/if_python3.o"
6388
6389                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6390$as_echo_n "checking if -pthread should be used... " >&6; }
6391        threadsafe_flag=
6392        thread_lib=
6393                if test "`(uname) 2>/dev/null`" != Darwin; then
6394          test "$GCC" = yes && threadsafe_flag="-pthread"
6395          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6396            threadsafe_flag="-D_THREAD_SAFE"
6397            thread_lib="-pthread"
6398          fi
6399          if test "`(uname) 2>/dev/null`" = SunOS; then
6400            threadsafe_flag="-pthreads"
6401          fi
6402        fi
6403        libs_save_old=$LIBS
6404        if test -n "$threadsafe_flag"; then
6405          cflags_save=$CFLAGS
6406          CFLAGS="$CFLAGS $threadsafe_flag"
6407          LIBS="$LIBS $thread_lib"
6408          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409/* end confdefs.h.  */
6410
6411int
6412main ()
6413{
6414
6415  ;
6416  return 0;
6417}
6418_ACEOF
6419if ac_fn_c_try_link "$LINENO"; then :
6420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6421$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6422else
6423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424$as_echo "no" >&6; }; LIBS=$libs_save_old
6425
6426fi
6427rm -f core conftest.err conftest.$ac_objext \
6428    conftest$ac_exeext conftest.$ac_ext
6429          CFLAGS=$cflags_save
6430        else
6431          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432$as_echo "no" >&6; }
6433        fi
6434
6435                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6436$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6437        cflags_save=$CFLAGS
6438        libs_save=$LIBS
6439        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6440        LIBS="$LIBS $PYTHON3_LIBS"
6441        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h.  */
6443
6444int
6445main ()
6446{
6447
6448  ;
6449  return 0;
6450}
6451_ACEOF
6452if ac_fn_c_try_link "$LINENO"; then :
6453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6454$as_echo "yes" >&6; }; python3_ok=yes
6455else
6456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6457$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6458fi
6459rm -f core conftest.err conftest.$ac_objext \
6460    conftest$ac_exeext conftest.$ac_ext
6461        CFLAGS=$cflags_save
6462        LIBS=$libs_save
6463        if test "$python3_ok" = yes; then
6464          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6465
6466        else
6467          LIBS=$libs_save_old
6468          PYTHON3_SRC=
6469          PYTHON3_OBJ=
6470          PYTHON3_LIBS=
6471          PYTHON3_CFLAGS=
6472        fi
6473      fi
6474    else
6475      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6476$as_echo "too old" >&6; }
6477    fi
6478  fi
6479  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6480    as_fn_error $? "could not configure python3" "$LINENO" 5
6481  fi
6482fi
6483
6484
6485
6486
6487
6488
6489
6490if test "$python_ok" = yes && test "$python3_ok" = yes; then
6491  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6492
6493  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6494
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6496$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6497  cflags_save=$CFLAGS
6498  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6499  libs_save=$LIBS
6500    LIBS="-ldl $LIBS"
6501  if test "$cross_compiling" = yes; then :
6502  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6504as_fn_error $? "cannot run test program while cross compiling
6505See \`config.log' for more details" "$LINENO" 5; }
6506else
6507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h.  */
6509
6510    #include <dlfcn.h>
6511    /* If this program fails, then RTLD_GLOBAL is needed.
6512     * RTLD_GLOBAL will be used and then it is not possible to
6513     * have both python versions enabled in the same vim instance.
6514     * Only the first python version used will be switched on.
6515     */
6516
6517    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6518    {
6519      int needed = 0;
6520      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6521      if (pylib != 0)
6522      {
6523          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6524          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6525          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6526          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6527          (*pfx)(prefix);
6528          (*init)();
6529          needed = (*simple)("import termios") == -1;
6530          (*final)();
6531          dlclose(pylib);
6532      }
6533      return !needed;
6534    }
6535
6536    int main(int argc, char** argv)
6537    {
6538      int not_needed = 0;
6539      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6540            not_needed = 1;
6541      return !not_needed;
6542    }
6543_ACEOF
6544if ac_fn_c_try_run "$LINENO"; then :
6545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6546$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6547
6548else
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550$as_echo "no" >&6; }
6551fi
6552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6553  conftest.$ac_objext conftest.beam conftest.$ac_ext
6554fi
6555
6556
6557  CFLAGS=$cflags_save
6558  LIBS=$libs_save
6559
6560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6561$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6562  cflags_save=$CFLAGS
6563  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6564  libs_save=$LIBS
6565    LIBS="-ldl $LIBS"
6566  if test "$cross_compiling" = yes; then :
6567  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6569as_fn_error $? "cannot run test program while cross compiling
6570See \`config.log' for more details" "$LINENO" 5; }
6571else
6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574
6575    #include <dlfcn.h>
6576    #include <wchar.h>
6577    /* If this program fails, then RTLD_GLOBAL is needed.
6578     * RTLD_GLOBAL will be used and then it is not possible to
6579     * have both python versions enabled in the same vim instance.
6580     * Only the first python version used will be switched on.
6581     */
6582
6583    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
6584    {
6585      int needed = 0;
6586      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6587      if (pylib != 0)
6588      {
6589          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
6590          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6591          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6592          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6593          (*pfx)(prefix);
6594          (*init)();
6595          needed = (*simple)("import termios") == -1;
6596          (*final)();
6597          dlclose(pylib);
6598      }
6599      return !needed;
6600    }
6601
6602    int main(int argc, char** argv)
6603    {
6604      int not_needed = 0;
6605      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
6606            not_needed = 1;
6607      return !not_needed;
6608    }
6609_ACEOF
6610if ac_fn_c_try_run "$LINENO"; then :
6611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6612$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
6613
6614else
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616$as_echo "no" >&6; }
6617fi
6618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6619  conftest.$ac_objext conftest.beam conftest.$ac_ext
6620fi
6621
6622
6623  CFLAGS=$cflags_save
6624  LIBS=$libs_save
6625
6626  PYTHON_SRC="if_python.c"
6627  PYTHON_OBJ="objects/if_python.o"
6628  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
6629  PYTHON_LIBS=
6630  PYTHON3_SRC="if_python3.c"
6631  PYTHON3_OBJ="objects/if_python3.o"
6632  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
6633  PYTHON3_LIBS=
6634elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
6635  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6636
6637  PYTHON_SRC="if_python.c"
6638  PYTHON_OBJ="objects/if_python.o"
6639  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
6640  PYTHON_LIBS=
6641elif test "$python_ok" = yes; then
6642      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
6643$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
6644  cflags_save=$CFLAGS
6645  libs_save=$LIBS
6646  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
6647  LIBS="$LIBS $PYTHON_LIBS"
6648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649/* end confdefs.h.  */
6650
6651int
6652main ()
6653{
6654
6655  ;
6656  return 0;
6657}
6658_ACEOF
6659if ac_fn_c_try_link "$LINENO"; then :
6660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6661$as_echo "yes" >&6; }; fpie_ok=yes
6662else
6663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664$as_echo "no" >&6; }; fpie_ok=no
6665fi
6666rm -f core conftest.err conftest.$ac_objext \
6667    conftest$ac_exeext conftest.$ac_ext
6668  CFLAGS=$cflags_save
6669  LIBS=$libs_save
6670  if test $fpie_ok = yes; then
6671    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
6672  fi
6673elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
6674  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6675
6676  PYTHON3_SRC="if_python3.c"
6677  PYTHON3_OBJ="objects/if_python3.o"
6678  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
6679  PYTHON3_LIBS=
6680elif test "$python3_ok" = yes; then
6681      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
6682$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
6683  cflags_save=$CFLAGS
6684  libs_save=$LIBS
6685  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
6686  LIBS="$LIBS $PYTHON3_LIBS"
6687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688/* end confdefs.h.  */
6689
6690int
6691main ()
6692{
6693
6694  ;
6695  return 0;
6696}
6697_ACEOF
6698if ac_fn_c_try_link "$LINENO"; then :
6699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6700$as_echo "yes" >&6; }; fpie_ok=yes
6701else
6702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703$as_echo "no" >&6; }; fpie_ok=no
6704fi
6705rm -f core conftest.err conftest.$ac_objext \
6706    conftest$ac_exeext conftest.$ac_ext
6707  CFLAGS=$cflags_save
6708  LIBS=$libs_save
6709  if test $fpie_ok = yes; then
6710    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
6711  fi
6712fi
6713
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
6715$as_echo_n "checking --enable-tclinterp argument... " >&6; }
6716# Check whether --enable-tclinterp was given.
6717if test "${enable_tclinterp+set}" = set; then :
6718  enableval=$enable_tclinterp;
6719else
6720  enable_tclinterp="no"
6721fi
6722
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
6724$as_echo "$enable_tclinterp" >&6; }
6725
6726if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
6727
6728    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
6729$as_echo_n "checking --with-tclsh argument... " >&6; }
6730
6731# Check whether --with-tclsh was given.
6732if test "${with_tclsh+set}" = set; then :
6733  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
6734$as_echo "$tclsh_name" >&6; }
6735else
6736  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737$as_echo "no" >&6; }
6738fi
6739
6740  # Extract the first word of "$tclsh_name", so it can be a program name with args.
6741set dummy $tclsh_name; ac_word=$2
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743$as_echo_n "checking for $ac_word... " >&6; }
6744if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  case $vi_cv_path_tcl in
6748  [\\/]* | ?:[\\/]*)
6749  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6750  ;;
6751  *)
6752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755  IFS=$as_save_IFS
6756  test -z "$as_dir" && as_dir=.
6757    for ac_exec_ext in '' $ac_executable_extensions; do
6758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761    break 2
6762  fi
6763done
6764  done
6765IFS=$as_save_IFS
6766
6767  ;;
6768esac
6769fi
6770vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6771if test -n "$vi_cv_path_tcl"; then
6772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6773$as_echo "$vi_cv_path_tcl" >&6; }
6774else
6775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776$as_echo "no" >&6; }
6777fi
6778
6779
6780
6781
6782    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
6783    tclsh_name="tclsh8.4"
6784    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6785set dummy $tclsh_name; ac_word=$2
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787$as_echo_n "checking for $ac_word... " >&6; }
6788if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6789  $as_echo_n "(cached) " >&6
6790else
6791  case $vi_cv_path_tcl in
6792  [\\/]* | ?:[\\/]*)
6793  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6794  ;;
6795  *)
6796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799  IFS=$as_save_IFS
6800  test -z "$as_dir" && as_dir=.
6801    for ac_exec_ext in '' $ac_executable_extensions; do
6802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805    break 2
6806  fi
6807done
6808  done
6809IFS=$as_save_IFS
6810
6811  ;;
6812esac
6813fi
6814vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6815if test -n "$vi_cv_path_tcl"; then
6816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6817$as_echo "$vi_cv_path_tcl" >&6; }
6818else
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
6821fi
6822
6823
6824  fi
6825  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
6826    tclsh_name="tclsh8.2"
6827    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6828set dummy $tclsh_name; ac_word=$2
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830$as_echo_n "checking for $ac_word... " >&6; }
6831if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6832  $as_echo_n "(cached) " >&6
6833else
6834  case $vi_cv_path_tcl in
6835  [\\/]* | ?:[\\/]*)
6836  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6837  ;;
6838  *)
6839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842  IFS=$as_save_IFS
6843  test -z "$as_dir" && as_dir=.
6844    for ac_exec_ext in '' $ac_executable_extensions; do
6845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848    break 2
6849  fi
6850done
6851  done
6852IFS=$as_save_IFS
6853
6854  ;;
6855esac
6856fi
6857vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6858if test -n "$vi_cv_path_tcl"; then
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6860$as_echo "$vi_cv_path_tcl" >&6; }
6861else
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863$as_echo "no" >&6; }
6864fi
6865
6866
6867  fi
6868  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
6869    tclsh_name="tclsh8.0"
6870    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6871set dummy $tclsh_name; ac_word=$2
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873$as_echo_n "checking for $ac_word... " >&6; }
6874if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6875  $as_echo_n "(cached) " >&6
6876else
6877  case $vi_cv_path_tcl in
6878  [\\/]* | ?:[\\/]*)
6879  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6880  ;;
6881  *)
6882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885  IFS=$as_save_IFS
6886  test -z "$as_dir" && as_dir=.
6887    for ac_exec_ext in '' $ac_executable_extensions; do
6888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891    break 2
6892  fi
6893done
6894  done
6895IFS=$as_save_IFS
6896
6897  ;;
6898esac
6899fi
6900vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6901if test -n "$vi_cv_path_tcl"; then
6902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6903$as_echo "$vi_cv_path_tcl" >&6; }
6904else
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906$as_echo "no" >&6; }
6907fi
6908
6909
6910  fi
6911    if test "X$vi_cv_path_tcl" = "X"; then
6912    tclsh_name="tclsh"
6913    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6914set dummy $tclsh_name; ac_word=$2
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916$as_echo_n "checking for $ac_word... " >&6; }
6917if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  case $vi_cv_path_tcl in
6921  [\\/]* | ?:[\\/]*)
6922  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6923  ;;
6924  *)
6925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926for as_dir in $PATH
6927do
6928  IFS=$as_save_IFS
6929  test -z "$as_dir" && as_dir=.
6930    for ac_exec_ext in '' $ac_executable_extensions; do
6931  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6932    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934    break 2
6935  fi
6936done
6937  done
6938IFS=$as_save_IFS
6939
6940  ;;
6941esac
6942fi
6943vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6944if test -n "$vi_cv_path_tcl"; then
6945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6946$as_echo "$vi_cv_path_tcl" >&6; }
6947else
6948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949$as_echo "no" >&6; }
6950fi
6951
6952
6953  fi
6954  if test "X$vi_cv_path_tcl" != "X"; then
6955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
6956$as_echo_n "checking Tcl version... " >&6; }
6957    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
6958      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
6959      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
6960$as_echo "$tclver - OK" >&6; };
6961      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 -`
6962      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
6963
6964      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
6965$as_echo_n "checking for location of Tcl include... " >&6; }
6966      if test "x$MACOSX" != "xyes"; then
6967	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
6968      else
6969		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
6970      fi
6971      TCL_INC=
6972      for try in $tclinc; do
6973	if test -f "$try/tcl.h"; then
6974	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
6975$as_echo "$try/tcl.h" >&6; }
6976	  TCL_INC=$try
6977	  break
6978	fi
6979      done
6980      if test -z "$TCL_INC"; then
6981	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6982$as_echo "<not found>" >&6; }
6983	SKIP_TCL=YES
6984      fi
6985      if test -z "$SKIP_TCL"; then
6986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
6987$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
6988	if test "x$MACOSX" != "xyes"; then
6989	  tclcnf=`echo $tclinc | sed s/include/lib/g`
6990	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
6991	else
6992	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
6993	fi
6994	for try in $tclcnf; do
6995	  if test -f "$try/tclConfig.sh"; then
6996	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
6997$as_echo "$try/tclConfig.sh" >&6; }
6998	    . "$try/tclConfig.sh"
6999	    	    if test "$enable_tclinterp" = "dynamic"; then
7000	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7001	    else
7002	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7003	    fi
7004	    	    	    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'`
7005	    break
7006	  fi
7007	done
7008	if test -z "$TCL_LIBS"; then
7009	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7010$as_echo "<not found>" >&6; }
7011	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7012$as_echo_n "checking for Tcl library by myself... " >&6; }
7013	  tcllib=`echo $tclinc | sed s/include/lib/g`
7014	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7015	  for ext in .so .a ; do
7016	    for ver in "" $tclver ; do
7017	      for try in $tcllib ; do
7018		trylib=tcl$ver$ext
7019		if test -f "$try/lib$trylib" ; then
7020		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7021$as_echo "$try/lib$trylib" >&6; }
7022		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7023		  if test "`(uname) 2>/dev/null`" = SunOS &&
7024					 uname -r | grep '^5' >/dev/null; then
7025		    TCL_LIBS="$TCL_LIBS -R $try"
7026		  fi
7027		  break 3
7028		fi
7029	      done
7030	    done
7031	  done
7032	  if test -z "$TCL_LIBS"; then
7033	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7034$as_echo "<not found>" >&6; }
7035	    SKIP_TCL=YES
7036	  fi
7037	fi
7038	if test -z "$SKIP_TCL"; then
7039	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7040
7041	  TCL_SRC=if_tcl.c
7042	  TCL_OBJ=objects/if_tcl.o
7043	  TCL_PRO=if_tcl.pro
7044	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7045	fi
7046      fi
7047    else
7048      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7049$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7050    fi
7051  fi
7052  if test "$enable_tclinterp" = "dynamic"; then
7053    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7054      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7055
7056      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7057    fi
7058  fi
7059  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7060    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7061  fi
7062fi
7063
7064
7065
7066
7067
7068
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7070$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7071# Check whether --enable-rubyinterp was given.
7072if test "${enable_rubyinterp+set}" = set; then :
7073  enableval=$enable_rubyinterp;
7074else
7075  enable_rubyinterp="no"
7076fi
7077
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7079$as_echo "$enable_rubyinterp" >&6; }
7080if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7081  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7082    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7083  fi
7084
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7086$as_echo_n "checking --with-ruby-command argument... " >&6; }
7087
7088
7089# Check whether --with-ruby-command was given.
7090if test "${with_ruby_command+set}" = set; then :
7091  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7092$as_echo "$RUBY_CMD" >&6; }
7093else
7094  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7095$as_echo "defaulting to $RUBY_CMD" >&6; }
7096fi
7097
7098  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7099set dummy $RUBY_CMD; ac_word=$2
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101$as_echo_n "checking for $ac_word... " >&6; }
7102if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  case $vi_cv_path_ruby in
7106  [\\/]* | ?:[\\/]*)
7107  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7108  ;;
7109  *)
7110  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113  IFS=$as_save_IFS
7114  test -z "$as_dir" && as_dir=.
7115    for ac_exec_ext in '' $ac_executable_extensions; do
7116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119    break 2
7120  fi
7121done
7122  done
7123IFS=$as_save_IFS
7124
7125  ;;
7126esac
7127fi
7128vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7129if test -n "$vi_cv_path_ruby"; then
7130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7131$as_echo "$vi_cv_path_ruby" >&6; }
7132else
7133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134$as_echo "no" >&6; }
7135fi
7136
7137
7138  if test "X$vi_cv_path_ruby" != "X"; then
7139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7140$as_echo_n "checking Ruby version... " >&6; }
7141    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7142      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7143$as_echo "OK" >&6; }
7144      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7145$as_echo_n "checking Ruby rbconfig... " >&6; }
7146      ruby_rbconfig="RbConfig"
7147      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7148	ruby_rbconfig="Config"
7149      fi
7150      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7151$as_echo "$ruby_rbconfig" >&6; }
7152      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7153$as_echo_n "checking Ruby header files... " >&6; }
7154      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7155      if test "X$rubyhdrdir" != "X"; then
7156	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7157$as_echo "$rubyhdrdir" >&6; }
7158	RUBY_CFLAGS="-I$rubyhdrdir"
7159        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7160        if test -d "$rubyarchdir"; then
7161          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7162        fi
7163        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7164	if test "X$rubyversion" = "X"; then
7165	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7166	fi
7167        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7168	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7169	if test "X$rubylibs" != "X"; then
7170	  RUBY_LIBS="$rubylibs"
7171	fi
7172	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7173	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7174	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7175	if test -f "$rubylibdir/$librubya"; then
7176	  librubyarg="$librubyarg"
7177	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7178	elif test "$librubyarg" = "libruby.a"; then
7179	  	  librubyarg="-lruby"
7180	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7181	fi
7182
7183	if test "X$librubyarg" != "X"; then
7184	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7185	fi
7186	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7187	if test "X$rubyldflags" != "X"; then
7188	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7189	  if test "X$rubyldflags" != "X"; then
7190	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7191	      LDFLAGS="$rubyldflags $LDFLAGS"
7192	    fi
7193	  fi
7194	fi
7195	RUBY_SRC="if_ruby.c"
7196	RUBY_OBJ="objects/if_ruby.o"
7197	RUBY_PRO="if_ruby.pro"
7198	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7199
7200	if test "$enable_rubyinterp" = "dynamic"; then
7201	  libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7202	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7203
7204	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
7205	  RUBY_LIBS=
7206	fi
7207      else
7208	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7209$as_echo "not found; disabling Ruby" >&6; }
7210      fi
7211    else
7212      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7213$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7214    fi
7215  fi
7216
7217  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7218    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7219  fi
7220fi
7221
7222
7223
7224
7225
7226
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7228$as_echo_n "checking --enable-cscope argument... " >&6; }
7229# Check whether --enable-cscope was given.
7230if test "${enable_cscope+set}" = set; then :
7231  enableval=$enable_cscope;
7232else
7233  enable_cscope="no"
7234fi
7235
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7237$as_echo "$enable_cscope" >&6; }
7238if test "$enable_cscope" = "yes"; then
7239  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7240
7241fi
7242
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
7244$as_echo_n "checking --enable-workshop argument... " >&6; }
7245# Check whether --enable-workshop was given.
7246if test "${enable_workshop+set}" = set; then :
7247  enableval=$enable_workshop;
7248else
7249  enable_workshop="no"
7250fi
7251
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
7253$as_echo "$enable_workshop" >&6; }
7254if test "$enable_workshop" = "yes"; then
7255  $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
7256
7257  WORKSHOP_SRC="workshop.c integration.c"
7258
7259  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
7260
7261  if test "${enable_gui-xxx}" = xxx; then
7262    enable_gui=motif
7263  fi
7264fi
7265
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7267$as_echo_n "checking --disable-netbeans argument... " >&6; }
7268# Check whether --enable-netbeans was given.
7269if test "${enable_netbeans+set}" = set; then :
7270  enableval=$enable_netbeans;
7271else
7272  enable_netbeans="yes"
7273fi
7274
7275if test "$enable_netbeans" = "yes"; then
7276  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7278$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7279    enable_netbeans="no"
7280  else
7281    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282$as_echo "no" >&6; }
7283  fi
7284else
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7286$as_echo "yes" >&6; }
7287fi
7288
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7290$as_echo_n "checking --disable-channel argument... " >&6; }
7291# Check whether --enable-channel was given.
7292if test "${enable_channel+set}" = set; then :
7293  enableval=$enable_channel;
7294else
7295  enable_channel="yes"
7296fi
7297
7298if test "$enable_channel" = "yes"; then
7299  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7300    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7301$as_echo "cannot use channels with tiny or small features" >&6; }
7302    enable_channel="no"
7303  else
7304    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305$as_echo "no" >&6; }
7306  fi
7307else
7308  if test "$enable_netbeans" = "yes"; then
7309    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7310$as_echo "yes, netbeans also disabled" >&6; }
7311    enable_netbeans="no"
7312  else
7313    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7314$as_echo "yes" >&6; }
7315  fi
7316fi
7317
7318if test "$enable_channel" = "yes"; then
7319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7320$as_echo_n "checking for socket in -lsocket... " >&6; }
7321if ${ac_cv_lib_socket_socket+:} false; then :
7322  $as_echo_n "(cached) " >&6
7323else
7324  ac_check_lib_save_LIBS=$LIBS
7325LIBS="-lsocket  $LIBS"
7326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327/* end confdefs.h.  */
7328
7329/* Override any GCC internal prototype to avoid an error.
7330   Use char because int might match the return type of a GCC
7331   builtin and then its argument prototype would still apply.  */
7332#ifdef __cplusplus
7333extern "C"
7334#endif
7335char socket ();
7336int
7337main ()
7338{
7339return socket ();
7340  ;
7341  return 0;
7342}
7343_ACEOF
7344if ac_fn_c_try_link "$LINENO"; then :
7345  ac_cv_lib_socket_socket=yes
7346else
7347  ac_cv_lib_socket_socket=no
7348fi
7349rm -f core conftest.err conftest.$ac_objext \
7350    conftest$ac_exeext conftest.$ac_ext
7351LIBS=$ac_check_lib_save_LIBS
7352fi
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7354$as_echo "$ac_cv_lib_socket_socket" >&6; }
7355if test "x$ac_cv_lib_socket_socket" = xyes; then :
7356  cat >>confdefs.h <<_ACEOF
7357#define HAVE_LIBSOCKET 1
7358_ACEOF
7359
7360  LIBS="-lsocket $LIBS"
7361
7362fi
7363
7364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7365$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7366if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7367  $as_echo_n "(cached) " >&6
7368else
7369  ac_check_lib_save_LIBS=$LIBS
7370LIBS="-lnsl  $LIBS"
7371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h.  */
7373
7374/* Override any GCC internal prototype to avoid an error.
7375   Use char because int might match the return type of a GCC
7376   builtin and then its argument prototype would still apply.  */
7377#ifdef __cplusplus
7378extern "C"
7379#endif
7380char gethostbyname ();
7381int
7382main ()
7383{
7384return gethostbyname ();
7385  ;
7386  return 0;
7387}
7388_ACEOF
7389if ac_fn_c_try_link "$LINENO"; then :
7390  ac_cv_lib_nsl_gethostbyname=yes
7391else
7392  ac_cv_lib_nsl_gethostbyname=no
7393fi
7394rm -f core conftest.err conftest.$ac_objext \
7395    conftest$ac_exeext conftest.$ac_ext
7396LIBS=$ac_check_lib_save_LIBS
7397fi
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7399$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7400if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7401  cat >>confdefs.h <<_ACEOF
7402#define HAVE_LIBNSL 1
7403_ACEOF
7404
7405  LIBS="-lnsl $LIBS"
7406
7407fi
7408
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5
7410$as_echo_n "checking whether compiling with process communication is possible... " >&6; }
7411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412/* end confdefs.h.  */
7413
7414#include <stdio.h>
7415#include <stdlib.h>
7416#include <stdarg.h>
7417#include <fcntl.h>
7418#include <netdb.h>
7419#include <netinet/in.h>
7420#include <errno.h>
7421#include <sys/types.h>
7422#include <sys/socket.h>
7423	/* Check bitfields */
7424	struct nbbuf {
7425	unsigned int  initDone:1;
7426	unsigned short signmaplen;
7427	};
7428
7429int
7430main ()
7431{
7432
7433		/* Check creating a socket. */
7434		struct sockaddr_in server;
7435		(void)socket(AF_INET, SOCK_STREAM, 0);
7436		(void)htons(100);
7437		(void)gethostbyname("microsoft.com");
7438		if (errno == ECONNREFUSED)
7439		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7440
7441  ;
7442  return 0;
7443}
7444_ACEOF
7445if ac_fn_c_try_link "$LINENO"; then :
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7447$as_echo "yes" >&6; }
7448else
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no"
7451fi
7452rm -f core conftest.err conftest.$ac_objext \
7453    conftest$ac_exeext conftest.$ac_ext
7454fi
7455if test "$enable_netbeans" = "yes"; then
7456  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7457
7458  NETBEANS_SRC="netbeans.c"
7459
7460  NETBEANS_OBJ="objects/netbeans.o"
7461
7462fi
7463if test "$enable_channel" = "yes"; then
7464  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
7465
7466  CHANNEL_SRC="channel.c"
7467
7468  CHANNEL_OBJ="objects/channel.o"
7469
7470fi
7471
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
7473$as_echo_n "checking --enable-terminal argument... " >&6; }
7474# Check whether --enable-terminal was given.
7475if test "${enable_terminal+set}" = set; then :
7476  enableval=$enable_terminal; enable_terminal="yes"
7477else
7478  enable_terminal="auto"
7479fi
7480
7481if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
7482  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7483    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
7484$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
7485    enable_terminal="no"
7486  else
7487    if test "$enable_terminal" = "auto"; then
7488      enable_terminal="yes"
7489      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
7490$as_echo "defaulting to yes" >&6; }
7491    else
7492      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7493$as_echo "yes" >&6; }
7494    fi
7495  fi
7496else
7497  if test "$enable_terminal" = "auto"; then
7498    enable_terminal="no"
7499    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
7500$as_echo "defaulting to no" >&6; }
7501  else
7502    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503$as_echo "no" >&6; }
7504  fi
7505fi
7506if test "$enable_terminal" = "yes"; then
7507  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
7508
7509  TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/screen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c"
7510
7511  TERM_OBJ="objects/term_encoding.o objects/term_keyboard.o objects/term_mouse.o objects/term_parser.o objects/term_pen.o objects/term_screen.o objects/term_state.o objects/term_unicode.o objects/term_vterm.o"
7512
7513fi
7514
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7516$as_echo_n "checking --enable-multibyte argument... " >&6; }
7517# Check whether --enable-multibyte was given.
7518if test "${enable_multibyte+set}" = set; then :
7519  enableval=$enable_multibyte;
7520else
7521  enable_multibyte="no"
7522fi
7523
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
7525$as_echo "$enable_multibyte" >&6; }
7526if test "$enable_multibyte" = "yes"; then
7527  $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
7528
7529fi
7530
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
7532$as_echo_n "checking --enable-hangulinput argument... " >&6; }
7533# Check whether --enable-hangulinput was given.
7534if test "${enable_hangulinput+set}" = set; then :
7535  enableval=$enable_hangulinput;
7536else
7537  enable_hangulinput="no"
7538fi
7539
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
7541$as_echo "$enable_hangulinput" >&6; }
7542
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
7544$as_echo_n "checking --enable-xim argument... " >&6; }
7545# Check whether --enable-xim was given.
7546if test "${enable_xim+set}" = set; then :
7547  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
7548$as_echo "$enable_xim" >&6; }
7549else
7550  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
7551$as_echo "defaulting to auto" >&6; }
7552fi
7553
7554
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
7556$as_echo_n "checking --enable-fontset argument... " >&6; }
7557# Check whether --enable-fontset was given.
7558if test "${enable_fontset+set}" = set; then :
7559  enableval=$enable_fontset;
7560else
7561  enable_fontset="no"
7562fi
7563
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
7565$as_echo "$enable_fontset" >&6; }
7566
7567test -z "$with_x" && with_x=yes
7568test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
7569if test "$with_x" = no; then
7570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
7571$as_echo "defaulting to: don't HAVE_X11" >&6; }
7572else
7573
7574  # Extract the first word of "xmkmf", so it can be a program name with args.
7575set dummy xmkmf; ac_word=$2
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577$as_echo_n "checking for $ac_word... " >&6; }
7578if ${ac_cv_path_xmkmfpath+:} false; then :
7579  $as_echo_n "(cached) " >&6
7580else
7581  case $xmkmfpath in
7582  [\\/]* | ?:[\\/]*)
7583  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
7584  ;;
7585  *)
7586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589  IFS=$as_save_IFS
7590  test -z "$as_dir" && as_dir=.
7591    for ac_exec_ext in '' $ac_executable_extensions; do
7592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
7594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595    break 2
7596  fi
7597done
7598  done
7599IFS=$as_save_IFS
7600
7601  ;;
7602esac
7603fi
7604xmkmfpath=$ac_cv_path_xmkmfpath
7605if test -n "$xmkmfpath"; then
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
7607$as_echo "$xmkmfpath" >&6; }
7608else
7609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610$as_echo "no" >&6; }
7611fi
7612
7613
7614
7615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7616$as_echo_n "checking for X... " >&6; }
7617
7618
7619# Check whether --with-x was given.
7620if test "${with_x+set}" = set; then :
7621  withval=$with_x;
7622fi
7623
7624# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7625if test "x$with_x" = xno; then
7626  # The user explicitly disabled X.
7627  have_x=disabled
7628else
7629  case $x_includes,$x_libraries in #(
7630    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7631    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7632  $as_echo_n "(cached) " >&6
7633else
7634  # One or both of the vars are not set, and there is no cached value.
7635ac_x_includes=no ac_x_libraries=no
7636rm -f -r conftest.dir
7637if mkdir conftest.dir; then
7638  cd conftest.dir
7639  cat >Imakefile <<'_ACEOF'
7640incroot:
7641	@echo incroot='${INCROOT}'
7642usrlibdir:
7643	@echo usrlibdir='${USRLIBDIR}'
7644libdir:
7645	@echo libdir='${LIBDIR}'
7646_ACEOF
7647  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7648    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7649    for ac_var in incroot usrlibdir libdir; do
7650      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7651    done
7652    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7653    for ac_extension in a so sl dylib la dll; do
7654      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7655	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7656	ac_im_usrlibdir=$ac_im_libdir; break
7657      fi
7658    done
7659    # Screen out bogus values from the imake configuration.  They are
7660    # bogus both because they are the default anyway, and because
7661    # using them would break gcc on systems where it needs fixed includes.
7662    case $ac_im_incroot in
7663	/usr/include) ac_x_includes= ;;
7664	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7665    esac
7666    case $ac_im_usrlibdir in
7667	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
7668	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7669    esac
7670  fi
7671  cd ..
7672  rm -f -r conftest.dir
7673fi
7674
7675# Standard set of common directories for X headers.
7676# Check X11 before X11Rn because it is often a symlink to the current release.
7677ac_x_header_dirs='
7678/usr/X11/include
7679/usr/X11R7/include
7680/usr/X11R6/include
7681/usr/X11R5/include
7682/usr/X11R4/include
7683
7684/usr/include/X11
7685/usr/include/X11R7
7686/usr/include/X11R6
7687/usr/include/X11R5
7688/usr/include/X11R4
7689
7690/usr/local/X11/include
7691/usr/local/X11R7/include
7692/usr/local/X11R6/include
7693/usr/local/X11R5/include
7694/usr/local/X11R4/include
7695
7696/usr/local/include/X11
7697/usr/local/include/X11R7
7698/usr/local/include/X11R6
7699/usr/local/include/X11R5
7700/usr/local/include/X11R4
7701
7702/usr/X386/include
7703/usr/x386/include
7704/usr/XFree86/include/X11
7705
7706/usr/include
7707/usr/local/include
7708/usr/unsupported/include
7709/usr/athena/include
7710/usr/local/x11r5/include
7711/usr/lpp/Xamples/include
7712
7713/usr/openwin/include
7714/usr/openwin/share/include'
7715
7716if test "$ac_x_includes" = no; then
7717  # Guess where to find include files, by looking for Xlib.h.
7718  # First, try using that file with no special directory specified.
7719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720/* end confdefs.h.  */
7721#include <X11/Xlib.h>
7722_ACEOF
7723if ac_fn_c_try_cpp "$LINENO"; then :
7724  # We can compile using X headers with no special include directory.
7725ac_x_includes=
7726else
7727  for ac_dir in $ac_x_header_dirs; do
7728  if test -r "$ac_dir/X11/Xlib.h"; then
7729    ac_x_includes=$ac_dir
7730    break
7731  fi
7732done
7733fi
7734rm -f conftest.err conftest.i conftest.$ac_ext
7735fi # $ac_x_includes = no
7736
7737if test "$ac_x_libraries" = no; then
7738  # Check for the libraries.
7739  # See if we find them without any special options.
7740  # Don't add to $LIBS permanently.
7741  ac_save_LIBS=$LIBS
7742  LIBS="-lX11 $LIBS"
7743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h.  */
7745#include <X11/Xlib.h>
7746int
7747main ()
7748{
7749XrmInitialize ()
7750  ;
7751  return 0;
7752}
7753_ACEOF
7754if ac_fn_c_try_link "$LINENO"; then :
7755  LIBS=$ac_save_LIBS
7756# We can link X programs with no special library path.
7757ac_x_libraries=
7758else
7759  LIBS=$ac_save_LIBS
7760for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7761do
7762  # Don't even attempt the hair of trying to link an X program!
7763  for ac_extension in a so sl dylib la dll; do
7764    if test -r "$ac_dir/libX11.$ac_extension"; then
7765      ac_x_libraries=$ac_dir
7766      break 2
7767    fi
7768  done
7769done
7770fi
7771rm -f core conftest.err conftest.$ac_objext \
7772    conftest$ac_exeext conftest.$ac_ext
7773fi # $ac_x_libraries = no
7774
7775case $ac_x_includes,$ac_x_libraries in #(
7776  no,* | *,no | *\'*)
7777    # Didn't find X, or a directory has "'" in its name.
7778    ac_cv_have_x="have_x=no";; #(
7779  *)
7780    # Record where we found X for the cache.
7781    ac_cv_have_x="have_x=yes\
7782	ac_x_includes='$ac_x_includes'\
7783	ac_x_libraries='$ac_x_libraries'"
7784esac
7785fi
7786;; #(
7787    *) have_x=yes;;
7788  esac
7789  eval "$ac_cv_have_x"
7790fi # $with_x != no
7791
7792if test "$have_x" != yes; then
7793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7794$as_echo "$have_x" >&6; }
7795  no_x=yes
7796else
7797  # If each of the values was on the command line, it overrides each guess.
7798  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7799  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7800  # Update the cache value to reflect the command line values.
7801  ac_cv_have_x="have_x=yes\
7802	ac_x_includes='$x_includes'\
7803	ac_x_libraries='$x_libraries'"
7804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7805$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7806fi
7807
7808if test "$no_x" = yes; then
7809  # Not all programs may use this symbol, but it does not hurt to define it.
7810
7811$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7812
7813  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7814else
7815  if test -n "$x_includes"; then
7816    X_CFLAGS="$X_CFLAGS -I$x_includes"
7817  fi
7818
7819  # It would also be nice to do this for all -L options, not just this one.
7820  if test -n "$x_libraries"; then
7821    X_LIBS="$X_LIBS -L$x_libraries"
7822    # For Solaris; some versions of Sun CC require a space after -R and
7823    # others require no space.  Words are not sufficient . . . .
7824    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7825$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7826    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7827    ac_xsave_c_werror_flag=$ac_c_werror_flag
7828    ac_c_werror_flag=yes
7829    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830/* end confdefs.h.  */
7831
7832int
7833main ()
7834{
7835
7836  ;
7837  return 0;
7838}
7839_ACEOF
7840if ac_fn_c_try_link "$LINENO"; then :
7841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842$as_echo "no" >&6; }
7843       X_LIBS="$X_LIBS -R$x_libraries"
7844else
7845  LIBS="$ac_xsave_LIBS -R $x_libraries"
7846       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847/* end confdefs.h.  */
7848
7849int
7850main ()
7851{
7852
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857if ac_fn_c_try_link "$LINENO"; then :
7858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7859$as_echo "yes" >&6; }
7860	  X_LIBS="$X_LIBS -R $x_libraries"
7861else
7862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7863$as_echo "neither works" >&6; }
7864fi
7865rm -f core conftest.err conftest.$ac_objext \
7866    conftest$ac_exeext conftest.$ac_ext
7867fi
7868rm -f core conftest.err conftest.$ac_objext \
7869    conftest$ac_exeext conftest.$ac_ext
7870    ac_c_werror_flag=$ac_xsave_c_werror_flag
7871    LIBS=$ac_xsave_LIBS
7872  fi
7873
7874  # Check for system-dependent libraries X programs must link with.
7875  # Do this before checking for the system-independent R6 libraries
7876  # (-lICE), since we may need -lsocket or whatever for X linking.
7877
7878  if test "$ISC" = yes; then
7879    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7880  else
7881    # Martyn Johnson says this is needed for Ultrix, if the X
7882    # libraries were built with DECnet support.  And Karl Berry says
7883    # the Alpha needs dnet_stub (dnet does not exist).
7884    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7885    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886/* end confdefs.h.  */
7887
7888/* Override any GCC internal prototype to avoid an error.
7889   Use char because int might match the return type of a GCC
7890   builtin and then its argument prototype would still apply.  */
7891#ifdef __cplusplus
7892extern "C"
7893#endif
7894char XOpenDisplay ();
7895int
7896main ()
7897{
7898return XOpenDisplay ();
7899  ;
7900  return 0;
7901}
7902_ACEOF
7903if ac_fn_c_try_link "$LINENO"; then :
7904
7905else
7906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7907$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7908if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7909  $as_echo_n "(cached) " >&6
7910else
7911  ac_check_lib_save_LIBS=$LIBS
7912LIBS="-ldnet  $LIBS"
7913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915
7916/* Override any GCC internal prototype to avoid an error.
7917   Use char because int might match the return type of a GCC
7918   builtin and then its argument prototype would still apply.  */
7919#ifdef __cplusplus
7920extern "C"
7921#endif
7922char dnet_ntoa ();
7923int
7924main ()
7925{
7926return dnet_ntoa ();
7927  ;
7928  return 0;
7929}
7930_ACEOF
7931if ac_fn_c_try_link "$LINENO"; then :
7932  ac_cv_lib_dnet_dnet_ntoa=yes
7933else
7934  ac_cv_lib_dnet_dnet_ntoa=no
7935fi
7936rm -f core conftest.err conftest.$ac_objext \
7937    conftest$ac_exeext conftest.$ac_ext
7938LIBS=$ac_check_lib_save_LIBS
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7941$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7942if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7943  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7944fi
7945
7946    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7947      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7948$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7949if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7950  $as_echo_n "(cached) " >&6
7951else
7952  ac_check_lib_save_LIBS=$LIBS
7953LIBS="-ldnet_stub  $LIBS"
7954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955/* end confdefs.h.  */
7956
7957/* Override any GCC internal prototype to avoid an error.
7958   Use char because int might match the return type of a GCC
7959   builtin and then its argument prototype would still apply.  */
7960#ifdef __cplusplus
7961extern "C"
7962#endif
7963char dnet_ntoa ();
7964int
7965main ()
7966{
7967return dnet_ntoa ();
7968  ;
7969  return 0;
7970}
7971_ACEOF
7972if ac_fn_c_try_link "$LINENO"; then :
7973  ac_cv_lib_dnet_stub_dnet_ntoa=yes
7974else
7975  ac_cv_lib_dnet_stub_dnet_ntoa=no
7976fi
7977rm -f core conftest.err conftest.$ac_objext \
7978    conftest$ac_exeext conftest.$ac_ext
7979LIBS=$ac_check_lib_save_LIBS
7980fi
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7982$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7983if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7984  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7985fi
7986
7987    fi
7988fi
7989rm -f core conftest.err conftest.$ac_objext \
7990    conftest$ac_exeext conftest.$ac_ext
7991    LIBS="$ac_xsave_LIBS"
7992
7993    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
7994    # to get the SysV transport functions.
7995    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7996    # needs -lnsl.
7997    # The nsl library prevents programs from opening the X display
7998    # on Irix 5.2, according to T.E. Dickey.
7999    # The functions gethostbyname, getservbyname, and inet_addr are
8000    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8001    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8002if test "x$ac_cv_func_gethostbyname" = xyes; then :
8003
8004fi
8005
8006    if test $ac_cv_func_gethostbyname = no; then
8007      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8008$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8009if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8010  $as_echo_n "(cached) " >&6
8011else
8012  ac_check_lib_save_LIBS=$LIBS
8013LIBS="-lnsl  $LIBS"
8014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015/* end confdefs.h.  */
8016
8017/* Override any GCC internal prototype to avoid an error.
8018   Use char because int might match the return type of a GCC
8019   builtin and then its argument prototype would still apply.  */
8020#ifdef __cplusplus
8021extern "C"
8022#endif
8023char gethostbyname ();
8024int
8025main ()
8026{
8027return gethostbyname ();
8028  ;
8029  return 0;
8030}
8031_ACEOF
8032if ac_fn_c_try_link "$LINENO"; then :
8033  ac_cv_lib_nsl_gethostbyname=yes
8034else
8035  ac_cv_lib_nsl_gethostbyname=no
8036fi
8037rm -f core conftest.err conftest.$ac_objext \
8038    conftest$ac_exeext conftest.$ac_ext
8039LIBS=$ac_check_lib_save_LIBS
8040fi
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8042$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8043if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8044  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8045fi
8046
8047      if test $ac_cv_lib_nsl_gethostbyname = no; then
8048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8049$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8050if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8051  $as_echo_n "(cached) " >&6
8052else
8053  ac_check_lib_save_LIBS=$LIBS
8054LIBS="-lbsd  $LIBS"
8055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h.  */
8057
8058/* Override any GCC internal prototype to avoid an error.
8059   Use char because int might match the return type of a GCC
8060   builtin and then its argument prototype would still apply.  */
8061#ifdef __cplusplus
8062extern "C"
8063#endif
8064char gethostbyname ();
8065int
8066main ()
8067{
8068return gethostbyname ();
8069  ;
8070  return 0;
8071}
8072_ACEOF
8073if ac_fn_c_try_link "$LINENO"; then :
8074  ac_cv_lib_bsd_gethostbyname=yes
8075else
8076  ac_cv_lib_bsd_gethostbyname=no
8077fi
8078rm -f core conftest.err conftest.$ac_objext \
8079    conftest$ac_exeext conftest.$ac_ext
8080LIBS=$ac_check_lib_save_LIBS
8081fi
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8083$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8084if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8085  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8086fi
8087
8088      fi
8089    fi
8090
8091    # [email protected] says without -lsocket,
8092    # socket/setsockopt and other routines are undefined under SCO ODT
8093    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8094    # on later versions), says Simon Leinen: it contains gethostby*
8095    # variants that don't use the name server (or something).  -lsocket
8096    # must be given before -lnsl if both are needed.  We assume that
8097    # if connect needs -lnsl, so does gethostbyname.
8098    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8099if test "x$ac_cv_func_connect" = xyes; then :
8100
8101fi
8102
8103    if test $ac_cv_func_connect = no; then
8104      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8105$as_echo_n "checking for connect in -lsocket... " >&6; }
8106if ${ac_cv_lib_socket_connect+:} false; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  ac_check_lib_save_LIBS=$LIBS
8110LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112/* end confdefs.h.  */
8113
8114/* Override any GCC internal prototype to avoid an error.
8115   Use char because int might match the return type of a GCC
8116   builtin and then its argument prototype would still apply.  */
8117#ifdef __cplusplus
8118extern "C"
8119#endif
8120char connect ();
8121int
8122main ()
8123{
8124return connect ();
8125  ;
8126  return 0;
8127}
8128_ACEOF
8129if ac_fn_c_try_link "$LINENO"; then :
8130  ac_cv_lib_socket_connect=yes
8131else
8132  ac_cv_lib_socket_connect=no
8133fi
8134rm -f core conftest.err conftest.$ac_objext \
8135    conftest$ac_exeext conftest.$ac_ext
8136LIBS=$ac_check_lib_save_LIBS
8137fi
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8139$as_echo "$ac_cv_lib_socket_connect" >&6; }
8140if test "x$ac_cv_lib_socket_connect" = xyes; then :
8141  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8142fi
8143
8144    fi
8145
8146    # Guillermo Gomez says -lposix is necessary on A/UX.
8147    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8148if test "x$ac_cv_func_remove" = xyes; then :
8149
8150fi
8151
8152    if test $ac_cv_func_remove = no; then
8153      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8154$as_echo_n "checking for remove in -lposix... " >&6; }
8155if ${ac_cv_lib_posix_remove+:} false; then :
8156  $as_echo_n "(cached) " >&6
8157else
8158  ac_check_lib_save_LIBS=$LIBS
8159LIBS="-lposix  $LIBS"
8160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161/* end confdefs.h.  */
8162
8163/* Override any GCC internal prototype to avoid an error.
8164   Use char because int might match the return type of a GCC
8165   builtin and then its argument prototype would still apply.  */
8166#ifdef __cplusplus
8167extern "C"
8168#endif
8169char remove ();
8170int
8171main ()
8172{
8173return remove ();
8174  ;
8175  return 0;
8176}
8177_ACEOF
8178if ac_fn_c_try_link "$LINENO"; then :
8179  ac_cv_lib_posix_remove=yes
8180else
8181  ac_cv_lib_posix_remove=no
8182fi
8183rm -f core conftest.err conftest.$ac_objext \
8184    conftest$ac_exeext conftest.$ac_ext
8185LIBS=$ac_check_lib_save_LIBS
8186fi
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8188$as_echo "$ac_cv_lib_posix_remove" >&6; }
8189if test "x$ac_cv_lib_posix_remove" = xyes; then :
8190  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8191fi
8192
8193    fi
8194
8195    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8196    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8197if test "x$ac_cv_func_shmat" = xyes; then :
8198
8199fi
8200
8201    if test $ac_cv_func_shmat = no; then
8202      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8203$as_echo_n "checking for shmat in -lipc... " >&6; }
8204if ${ac_cv_lib_ipc_shmat+:} false; then :
8205  $as_echo_n "(cached) " >&6
8206else
8207  ac_check_lib_save_LIBS=$LIBS
8208LIBS="-lipc  $LIBS"
8209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210/* end confdefs.h.  */
8211
8212/* Override any GCC internal prototype to avoid an error.
8213   Use char because int might match the return type of a GCC
8214   builtin and then its argument prototype would still apply.  */
8215#ifdef __cplusplus
8216extern "C"
8217#endif
8218char shmat ();
8219int
8220main ()
8221{
8222return shmat ();
8223  ;
8224  return 0;
8225}
8226_ACEOF
8227if ac_fn_c_try_link "$LINENO"; then :
8228  ac_cv_lib_ipc_shmat=yes
8229else
8230  ac_cv_lib_ipc_shmat=no
8231fi
8232rm -f core conftest.err conftest.$ac_objext \
8233    conftest$ac_exeext conftest.$ac_ext
8234LIBS=$ac_check_lib_save_LIBS
8235fi
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8237$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8238if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8239  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8240fi
8241
8242    fi
8243  fi
8244
8245  # Check for libraries that X11R6 Xt/Xaw programs need.
8246  ac_save_LDFLAGS=$LDFLAGS
8247  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8248  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8249  # check for ICE first), but we must link in the order -lSM -lICE or
8250  # we get undefined symbols.  So assume we have SM if we have ICE.
8251  # These have to be linked with before -lX11, unlike the other
8252  # libraries we check for below, so use a different variable.
8253  # John Interrante, Karl Berry
8254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8255$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8256if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8257  $as_echo_n "(cached) " >&6
8258else
8259  ac_check_lib_save_LIBS=$LIBS
8260LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262/* end confdefs.h.  */
8263
8264/* Override any GCC internal prototype to avoid an error.
8265   Use char because int might match the return type of a GCC
8266   builtin and then its argument prototype would still apply.  */
8267#ifdef __cplusplus
8268extern "C"
8269#endif
8270char IceConnectionNumber ();
8271int
8272main ()
8273{
8274return IceConnectionNumber ();
8275  ;
8276  return 0;
8277}
8278_ACEOF
8279if ac_fn_c_try_link "$LINENO"; then :
8280  ac_cv_lib_ICE_IceConnectionNumber=yes
8281else
8282  ac_cv_lib_ICE_IceConnectionNumber=no
8283fi
8284rm -f core conftest.err conftest.$ac_objext \
8285    conftest$ac_exeext conftest.$ac_ext
8286LIBS=$ac_check_lib_save_LIBS
8287fi
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8289$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8290if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8291  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8292fi
8293
8294  LDFLAGS=$ac_save_LDFLAGS
8295
8296fi
8297
8298
8299        if test "$zOSUnix" = "yes"; then
8300    CFLAGS="$CFLAGS -W c,dll"
8301    LDFLAGS="$LDFLAGS -W l,dll"
8302    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8303  fi
8304
8305
8306  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8307    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8309$as_echo "Corrected X libraries to $x_libraries" >&6; }
8310    X_LIBS="$X_LIBS -L$x_libraries"
8311    if test "`(uname) 2>/dev/null`" = SunOS &&
8312					 uname -r | grep '^5' >/dev/null; then
8313      X_LIBS="$X_LIBS -R $x_libraries"
8314    fi
8315  fi
8316
8317  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8318    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8320$as_echo "Corrected X includes to $x_includes" >&6; }
8321    X_CFLAGS="$X_CFLAGS -I$x_includes"
8322  fi
8323
8324    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8325    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8326    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8327
8328
8329        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8330$as_echo_n "checking if X11 header files can be found... " >&6; }
8331  cflags_save=$CFLAGS
8332  CFLAGS="$CFLAGS $X_CFLAGS"
8333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334/* end confdefs.h.  */
8335#include <X11/Xlib.h>
8336#include <X11/Intrinsic.h>
8337int
8338main ()
8339{
8340
8341  ;
8342  return 0;
8343}
8344_ACEOF
8345if ac_fn_c_try_compile "$LINENO"; then :
8346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8347$as_echo "yes" >&6; }
8348else
8349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350$as_echo "no" >&6; }; no_x=yes
8351fi
8352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353  CFLAGS=$cflags_save
8354
8355  if test "${no_x-no}" = yes; then
8356    with_x=no
8357  else
8358    $as_echo "#define HAVE_X11 1" >>confdefs.h
8359
8360    X_LIB="-lXt -lX11";
8361
8362
8363    ac_save_LDFLAGS="$LDFLAGS"
8364    LDFLAGS="-L$x_libraries $LDFLAGS"
8365
8366            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8367$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8368if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8369  $as_echo_n "(cached) " >&6
8370else
8371  ac_check_lib_save_LIBS=$LIBS
8372LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374/* end confdefs.h.  */
8375
8376/* Override any GCC internal prototype to avoid an error.
8377   Use char because int might match the return type of a GCC
8378   builtin and then its argument prototype would still apply.  */
8379#ifdef __cplusplus
8380extern "C"
8381#endif
8382char _XdmcpAuthDoIt ();
8383int
8384main ()
8385{
8386return _XdmcpAuthDoIt ();
8387  ;
8388  return 0;
8389}
8390_ACEOF
8391if ac_fn_c_try_link "$LINENO"; then :
8392  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8393else
8394  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8395fi
8396rm -f core conftest.err conftest.$ac_objext \
8397    conftest$ac_exeext conftest.$ac_ext
8398LIBS=$ac_check_lib_save_LIBS
8399fi
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8401$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8402if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8403  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8404fi
8405
8406
8407                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8408$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8409if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8410  $as_echo_n "(cached) " >&6
8411else
8412  ac_check_lib_save_LIBS=$LIBS
8413LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415/* end confdefs.h.  */
8416
8417/* Override any GCC internal prototype to avoid an error.
8418   Use char because int might match the return type of a GCC
8419   builtin and then its argument prototype would still apply.  */
8420#ifdef __cplusplus
8421extern "C"
8422#endif
8423char IceOpenConnection ();
8424int
8425main ()
8426{
8427return IceOpenConnection ();
8428  ;
8429  return 0;
8430}
8431_ACEOF
8432if ac_fn_c_try_link "$LINENO"; then :
8433  ac_cv_lib_ICE_IceOpenConnection=yes
8434else
8435  ac_cv_lib_ICE_IceOpenConnection=no
8436fi
8437rm -f core conftest.err conftest.$ac_objext \
8438    conftest$ac_exeext conftest.$ac_ext
8439LIBS=$ac_check_lib_save_LIBS
8440fi
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8442$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8443if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8444  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8445fi
8446
8447
8448        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8449    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8450$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8451if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8452  $as_echo_n "(cached) " >&6
8453else
8454  ac_check_lib_save_LIBS=$LIBS
8455LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h.  */
8458
8459/* Override any GCC internal prototype to avoid an error.
8460   Use char because int might match the return type of a GCC
8461   builtin and then its argument prototype would still apply.  */
8462#ifdef __cplusplus
8463extern "C"
8464#endif
8465char XpmCreatePixmapFromData ();
8466int
8467main ()
8468{
8469return XpmCreatePixmapFromData ();
8470  ;
8471  return 0;
8472}
8473_ACEOF
8474if ac_fn_c_try_link "$LINENO"; then :
8475  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8476else
8477  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8478fi
8479rm -f core conftest.err conftest.$ac_objext \
8480    conftest$ac_exeext conftest.$ac_ext
8481LIBS=$ac_check_lib_save_LIBS
8482fi
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8484$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8485if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8486  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8487fi
8488
8489
8490        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8491$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8492    cflags_save=$CFLAGS
8493        if test "$GCC" = yes; then
8494      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8495    else
8496      CFLAGS="$CFLAGS $X_CFLAGS"
8497    fi
8498    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h.  */
8500#include <X11/Xlib.h>
8501int
8502main ()
8503{
8504
8505  ;
8506  return 0;
8507}
8508_ACEOF
8509if ac_fn_c_try_compile "$LINENO"; then :
8510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511$as_echo "no" >&6; }
8512else
8513  CFLAGS="$CFLAGS -Wno-implicit-int"
8514	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516#include <X11/Xlib.h>
8517int
8518main ()
8519{
8520
8521  ;
8522  return 0;
8523}
8524_ACEOF
8525if ac_fn_c_try_compile "$LINENO"; then :
8526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8527$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8528else
8529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
8530$as_echo "test failed" >&6; }
8531
8532fi
8533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534
8535fi
8536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537    CFLAGS=$cflags_save
8538
8539    LDFLAGS="$ac_save_LDFLAGS"
8540
8541    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
8542$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8543    if ${ac_cv_small_wchar_t+:} false; then :
8544  $as_echo_n "(cached) " >&6
8545else
8546  if test "$cross_compiling" = yes; then :
8547  as_fn_error $? "failed to compile test program" "$LINENO" 5
8548else
8549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h.  */
8551
8552#include <X11/Xlib.h>
8553#if STDC_HEADERS
8554# include <stdlib.h>
8555# include <stddef.h>
8556#endif
8557		main()
8558		{
8559		  if (sizeof(wchar_t) <= 2)
8560		    exit(1);
8561		  exit(0);
8562		}
8563_ACEOF
8564if ac_fn_c_try_run "$LINENO"; then :
8565  ac_cv_small_wchar_t="no"
8566else
8567  ac_cv_small_wchar_t="yes"
8568fi
8569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8570  conftest.$ac_objext conftest.beam conftest.$ac_ext
8571fi
8572
8573fi
8574
8575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
8576$as_echo "$ac_cv_small_wchar_t" >&6; }
8577    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8578      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
8579
8580    fi
8581
8582  fi
8583fi
8584
8585test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8586
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
8588$as_echo_n "checking --enable-gui argument... " >&6; }
8589# Check whether --enable-gui was given.
8590if test "${enable_gui+set}" = set; then :
8591  enableval=$enable_gui;
8592else
8593  enable_gui="auto"
8594fi
8595
8596
8597enable_gui_canon=`echo "_$enable_gui" | \
8598	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8599
8600SKIP_GTK2=YES
8601SKIP_GTK3=YES
8602SKIP_GNOME=YES
8603SKIP_MOTIF=YES
8604SKIP_ATHENA=YES
8605SKIP_NEXTAW=YES
8606SKIP_PHOTON=YES
8607SKIP_CARBON=YES
8608GUITYPE=NONE
8609
8610if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8611  SKIP_PHOTON=
8612  case "$enable_gui_canon" in
8613    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8614$as_echo "no GUI support" >&6; }
8615		SKIP_PHOTON=YES ;;
8616    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8617$as_echo "yes - automatic GUI support" >&6; } ;;
8618    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
8619$as_echo "auto - automatic GUI support" >&6; } ;;
8620    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
8621$as_echo "Photon GUI support" >&6; } ;;
8622    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8623$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8624		SKIP_PHOTON=YES ;;
8625  esac
8626
8627elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8628  SKIP_CARBON=
8629  case "$enable_gui_canon" in
8630    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8631$as_echo "no GUI support" >&6; }
8632		SKIP_CARBON=YES ;;
8633    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8634$as_echo "yes - automatic GUI support" >&6; } ;;
8635    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
8636$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
8637		SKIP_CARBON=YES ;;
8638    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
8639$as_echo "Carbon GUI support" >&6; } ;;
8640    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8641$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8642		SKIP_CARBON=YES ;;
8643  esac
8644
8645else
8646
8647  case "$enable_gui_canon" in
8648    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8649$as_echo "no GUI support" >&6; } ;;
8650    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
8651$as_echo "yes/auto - automatic GUI support" >&6; }
8652		SKIP_GTK2=
8653		SKIP_GNOME=
8654		SKIP_MOTIF=
8655		SKIP_ATHENA=
8656		SKIP_NEXTAW=
8657		SKIP_CARBON=;;
8658    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
8659$as_echo "GTK+ 2.x GUI support" >&6; }
8660		SKIP_GTK2=;;
8661    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
8662$as_echo "GNOME 2.x GUI support" >&6; }
8663		SKIP_GNOME=
8664		SKIP_GTK2=;;
8665    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
8666$as_echo "GTK+ 3.x GUI support" >&6; }
8667		SKIP_GTK3=;;
8668    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
8669$as_echo "Motif GUI support" >&6; }
8670		SKIP_MOTIF=;;
8671    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
8672$as_echo "Athena GUI support" >&6; }
8673		SKIP_ATHENA=;;
8674    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
8675$as_echo "neXtaw GUI support" >&6; }
8676		SKIP_NEXTAW=;;
8677    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8678$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8679  esac
8680
8681fi
8682
8683if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8684				-a "$enable_gui_canon" != "gnome2"; then
8685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
8686$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8687  # Check whether --enable-gtk2-check was given.
8688if test "${enable_gtk2_check+set}" = set; then :
8689  enableval=$enable_gtk2_check;
8690else
8691  enable_gtk2_check="yes"
8692fi
8693
8694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
8695$as_echo "$enable_gtk2_check" >&6; }
8696  if test "x$enable_gtk2_check" = "xno"; then
8697    SKIP_GTK2=YES
8698    SKIP_GNOME=YES
8699  fi
8700fi
8701
8702if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
8703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
8704$as_echo_n "checking whether or not to look for GNOME... " >&6; }
8705  # Check whether --enable-gnome-check was given.
8706if test "${enable_gnome_check+set}" = set; then :
8707  enableval=$enable_gnome_check;
8708else
8709  enable_gnome_check="no"
8710fi
8711
8712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
8713$as_echo "$enable_gnome_check" >&6; }
8714  if test "x$enable_gnome_check" = "xno"; then
8715    SKIP_GNOME=YES
8716  fi
8717fi
8718
8719if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
8720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
8721$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
8722  # Check whether --enable-gtk3-check was given.
8723if test "${enable_gtk3_check+set}" = set; then :
8724  enableval=$enable_gtk3_check;
8725else
8726  enable_gtk3_check="yes"
8727fi
8728
8729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
8730$as_echo "$enable_gtk3_check" >&6; }
8731  if test "x$enable_gtk3_check" = "xno"; then
8732    SKIP_GTK3=YES
8733  fi
8734fi
8735
8736if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
8738$as_echo_n "checking whether or not to look for Motif... " >&6; }
8739  # Check whether --enable-motif-check was given.
8740if test "${enable_motif_check+set}" = set; then :
8741  enableval=$enable_motif_check;
8742else
8743  enable_motif_check="yes"
8744fi
8745
8746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
8747$as_echo "$enable_motif_check" >&6; }
8748  if test "x$enable_motif_check" = "xno"; then
8749    SKIP_MOTIF=YES
8750  fi
8751fi
8752
8753if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
8755$as_echo_n "checking whether or not to look for Athena... " >&6; }
8756  # Check whether --enable-athena-check was given.
8757if test "${enable_athena_check+set}" = set; then :
8758  enableval=$enable_athena_check;
8759else
8760  enable_athena_check="yes"
8761fi
8762
8763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
8764$as_echo "$enable_athena_check" >&6; }
8765  if test "x$enable_athena_check" = "xno"; then
8766    SKIP_ATHENA=YES
8767  fi
8768fi
8769
8770if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
8772$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8773  # Check whether --enable-nextaw-check was given.
8774if test "${enable_nextaw_check+set}" = set; then :
8775  enableval=$enable_nextaw_check;
8776else
8777  enable_nextaw_check="yes"
8778fi
8779
8780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
8781$as_echo "$enable_nextaw_check" >&6; };
8782  if test "x$enable_nextaw_check" = "xno"; then
8783    SKIP_NEXTAW=YES
8784  fi
8785fi
8786
8787if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
8789$as_echo_n "checking whether or not to look for Carbon... " >&6; }
8790  # Check whether --enable-carbon-check was given.
8791if test "${enable_carbon_check+set}" = set; then :
8792  enableval=$enable_carbon_check;
8793else
8794  enable_carbon_check="yes"
8795fi
8796
8797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
8798$as_echo "$enable_carbon_check" >&6; };
8799  if test "x$enable_carbon_check" = "xno"; then
8800    SKIP_CARBON=YES
8801  fi
8802fi
8803
8804
8805if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
8807$as_echo_n "checking for Carbon GUI... " >&6; }
8808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8809$as_echo "yes" >&6; };
8810  GUITYPE=CARBONGUI
8811  if test "$VIMNAME" = "vim"; then
8812    VIMNAME=Vim
8813  fi
8814
8815  if test "x$MACARCH" = "xboth"; then
8816    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
8817  else
8818    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
8819  fi
8820
8821    if test x$prefix = xNONE; then
8822    prefix=/Applications
8823  fi
8824
8825    datadir='${prefix}/Vim.app/Contents/Resources'
8826
8827    SKIP_GTK2=YES;
8828  SKIP_GNOME=YES;
8829  SKIP_MOTIF=YES;
8830  SKIP_ATHENA=YES;
8831  SKIP_NEXTAW=YES;
8832  SKIP_PHOTON=YES;
8833  SKIP_CARBON=YES
8834fi
8835
8836
8837
8838
8839
8840
8841
8842
8843if test -z "$SKIP_GTK2"; then
8844
8845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
8846$as_echo_n "checking --disable-gtktest argument... " >&6; }
8847  # Check whether --enable-gtktest was given.
8848if test "${enable_gtktest+set}" = set; then :
8849  enableval=$enable_gtktest;
8850else
8851  enable_gtktest=yes
8852fi
8853
8854  if test "x$enable_gtktest" = "xyes" ; then
8855    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
8856$as_echo "gtk test enabled" >&6; }
8857  else
8858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
8859$as_echo "gtk test disabled" >&6; }
8860  fi
8861
8862  if test "X$PKG_CONFIG" = "X"; then
8863    # Extract the first word of "pkg-config", so it can be a program name with args.
8864set dummy pkg-config; ac_word=$2
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866$as_echo_n "checking for $ac_word... " >&6; }
8867if ${ac_cv_path_PKG_CONFIG+:} false; then :
8868  $as_echo_n "(cached) " >&6
8869else
8870  case $PKG_CONFIG in
8871  [\\/]* | ?:[\\/]*)
8872  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8873  ;;
8874  *)
8875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876for as_dir in $PATH
8877do
8878  IFS=$as_save_IFS
8879  test -z "$as_dir" && as_dir=.
8880    for ac_exec_ext in '' $ac_executable_extensions; do
8881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8882    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8884    break 2
8885  fi
8886done
8887  done
8888IFS=$as_save_IFS
8889
8890  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8891  ;;
8892esac
8893fi
8894PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8895if test -n "$PKG_CONFIG"; then
8896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8897$as_echo "$PKG_CONFIG" >&6; }
8898else
8899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900$as_echo "no" >&6; }
8901fi
8902
8903
8904  fi
8905
8906  if test "x$PKG_CONFIG" != "xno"; then
8907
8908  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8909  {
8910    no_gtk=""
8911    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8912	  && $PKG_CONFIG --exists gtk+-2.0; then
8913    {
8914      min_gtk_version=2.2.0
8915      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
8916$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8917                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8918      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8919      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8920      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8921	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8922      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8923	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8924      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8925	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8926    }
8927    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8928	  && $PKG_CONFIG --exists gtk+-3.0; then
8929    {
8930      min_gtk_version=2.2.0
8931      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
8932$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8933
8934      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
8935      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
8936      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
8937      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
8938	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8939      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
8940	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8941      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
8942	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8943    }
8944    else
8945      no_gtk=yes
8946    fi
8947
8948    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8949    {
8950      ac_save_CFLAGS="$CFLAGS"
8951      ac_save_LIBS="$LIBS"
8952      CFLAGS="$CFLAGS $GTK_CFLAGS"
8953      LIBS="$LIBS $GTK_LIBS"
8954
8955                        rm -f conf.gtktest
8956      if test "$cross_compiling" = yes; then :
8957  echo $ac_n "cross compiling; assumed OK... $ac_c"
8958else
8959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960/* end confdefs.h.  */
8961
8962#include <gtk/gtk.h>
8963#include <stdio.h>
8964#if STDC_HEADERS
8965# include <stdlib.h>
8966# include <stddef.h>
8967#endif
8968
8969int
8970main ()
8971{
8972int major, minor, micro;
8973char *tmp_version;
8974
8975system ("touch conf.gtktest");
8976
8977/* HP/UX 9 (%@#!) writes to sscanf strings */
8978tmp_version = g_strdup("$min_gtk_version");
8979if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8980   printf("%s, bad version string\n", "$min_gtk_version");
8981   exit(1);
8982 }
8983
8984if ((gtk_major_version > major) ||
8985    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8986    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8987				     (gtk_micro_version >= micro)))
8988{
8989    return 0;
8990}
8991return 1;
8992}
8993
8994_ACEOF
8995if ac_fn_c_try_run "$LINENO"; then :
8996
8997else
8998  no_gtk=yes
8999fi
9000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9001  conftest.$ac_objext conftest.beam conftest.$ac_ext
9002fi
9003
9004      CFLAGS="$ac_save_CFLAGS"
9005      LIBS="$ac_save_LIBS"
9006    }
9007    fi
9008    if test "x$no_gtk" = x ; then
9009      if test "x$enable_gtktest" = "xyes"; then
9010	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9011$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9012      else
9013	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9014$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9015      fi
9016      GUI_LIB_LOC="$GTK_LIBDIR"
9017		 GTK_LIBNAME="$GTK_LIBS"
9018		GUI_INC_LOC="$GTK_CFLAGS"
9019    else
9020    {
9021      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022$as_echo "no" >&6; }
9023      GTK_CFLAGS=""
9024      GTK_LIBS=""
9025      :
9026    }
9027    fi
9028  }
9029  else
9030    GTK_CFLAGS=""
9031    GTK_LIBS=""
9032    :
9033  fi
9034
9035
9036  rm -f conf.gtktest
9037
9038    if test "x$GTK_CFLAGS" != "x"; then
9039      SKIP_GTK3=YES
9040      SKIP_ATHENA=YES
9041      SKIP_NEXTAW=YES
9042      SKIP_MOTIF=YES
9043      GUITYPE=GTK
9044
9045    fi
9046  fi
9047  if test "x$GUITYPE" = "xGTK"; then
9048                if test -z "$SKIP_GNOME"; then
9049    {
9050
9051
9052
9053
9054
9055
9056# Check whether --with-gnome-includes was given.
9057if test "${with_gnome_includes+set}" = set; then :
9058  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9059
9060fi
9061
9062
9063
9064# Check whether --with-gnome-libs was given.
9065if test "${with_gnome_libs+set}" = set; then :
9066  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9067
9068fi
9069
9070
9071
9072# Check whether --with-gnome was given.
9073if test "${with_gnome+set}" = set; then :
9074  withval=$with_gnome; if test x$withval = xyes; then
9075      want_gnome=yes
9076      have_gnome=yes
9077    else
9078      if test "x$withval" = xno; then
9079	want_gnome=no
9080      else
9081	want_gnome=yes
9082	LDFLAGS="$LDFLAGS -L$withval/lib"
9083	CFLAGS="$CFLAGS -I$withval/include"
9084	gnome_prefix=$withval/lib
9085      fi
9086    fi
9087else
9088  want_gnome=yes
9089fi
9090
9091
9092  if test "x$want_gnome" = xyes; then
9093  {
9094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9095$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9096    if $PKG_CONFIG --exists libgnomeui-2.0; then
9097      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9098$as_echo "yes" >&6; }
9099      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9100      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9101      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9102
9103                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9104$as_echo_n "checking for FreeBSD... " >&6; }
9105      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9106	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9107$as_echo "yes" >&6; }
9108	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9109	GNOME_LIBS="$GNOME_LIBS -pthread"
9110      else
9111	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112$as_echo "no" >&6; }
9113      fi
9114      have_gnome=yes
9115    else
9116      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9117$as_echo "not found" >&6; }
9118      if test "x" = xfail; then
9119	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9120      fi
9121    fi
9122  }
9123  fi
9124
9125      if test "x$have_gnome" = xyes ; then
9126	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9127
9128	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9129	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9130      fi
9131    }
9132    fi
9133  fi
9134fi
9135
9136
9137if test -z "$SKIP_GTK3"; then
9138
9139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9140$as_echo_n "checking --disable-gtktest argument... " >&6; }
9141  # Check whether --enable-gtktest was given.
9142if test "${enable_gtktest+set}" = set; then :
9143  enableval=$enable_gtktest;
9144else
9145  enable_gtktest=yes
9146fi
9147
9148  if test "x$enable_gtktest" = "xyes" ; then
9149    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9150$as_echo "gtk test enabled" >&6; }
9151  else
9152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9153$as_echo "gtk test disabled" >&6; }
9154  fi
9155
9156  if test "X$PKG_CONFIG" = "X"; then
9157    # Extract the first word of "pkg-config", so it can be a program name with args.
9158set dummy pkg-config; ac_word=$2
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9160$as_echo_n "checking for $ac_word... " >&6; }
9161if ${ac_cv_path_PKG_CONFIG+:} false; then :
9162  $as_echo_n "(cached) " >&6
9163else
9164  case $PKG_CONFIG in
9165  [\\/]* | ?:[\\/]*)
9166  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9167  ;;
9168  *)
9169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170for as_dir in $PATH
9171do
9172  IFS=$as_save_IFS
9173  test -z "$as_dir" && as_dir=.
9174    for ac_exec_ext in '' $ac_executable_extensions; do
9175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178    break 2
9179  fi
9180done
9181  done
9182IFS=$as_save_IFS
9183
9184  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9185  ;;
9186esac
9187fi
9188PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9189if test -n "$PKG_CONFIG"; then
9190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9191$as_echo "$PKG_CONFIG" >&6; }
9192else
9193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194$as_echo "no" >&6; }
9195fi
9196
9197
9198  fi
9199
9200  if test "x$PKG_CONFIG" != "xno"; then
9201
9202  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9203  {
9204    no_gtk=""
9205    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9206	  && $PKG_CONFIG --exists gtk+-2.0; then
9207    {
9208      min_gtk_version=3.0.0
9209      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9210$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9211                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9212      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9213      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9214      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9215	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9216      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9217	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9218      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9219	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9220    }
9221    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9222	  && $PKG_CONFIG --exists gtk+-3.0; then
9223    {
9224      min_gtk_version=3.0.0
9225      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9226$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9227
9228      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9229      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9230      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9231      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9232	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9233      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9234	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9235      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9236	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9237    }
9238    else
9239      no_gtk=yes
9240    fi
9241
9242    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9243    {
9244      ac_save_CFLAGS="$CFLAGS"
9245      ac_save_LIBS="$LIBS"
9246      CFLAGS="$CFLAGS $GTK_CFLAGS"
9247      LIBS="$LIBS $GTK_LIBS"
9248
9249                        rm -f conf.gtktest
9250      if test "$cross_compiling" = yes; then :
9251  echo $ac_n "cross compiling; assumed OK... $ac_c"
9252else
9253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254/* end confdefs.h.  */
9255
9256#include <gtk/gtk.h>
9257#include <stdio.h>
9258#if STDC_HEADERS
9259# include <stdlib.h>
9260# include <stddef.h>
9261#endif
9262
9263int
9264main ()
9265{
9266int major, minor, micro;
9267char *tmp_version;
9268
9269system ("touch conf.gtktest");
9270
9271/* HP/UX 9 (%@#!) writes to sscanf strings */
9272tmp_version = g_strdup("$min_gtk_version");
9273if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9274   printf("%s, bad version string\n", "$min_gtk_version");
9275   exit(1);
9276 }
9277
9278if ((gtk_major_version > major) ||
9279    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9280    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9281				     (gtk_micro_version >= micro)))
9282{
9283    return 0;
9284}
9285return 1;
9286}
9287
9288_ACEOF
9289if ac_fn_c_try_run "$LINENO"; then :
9290
9291else
9292  no_gtk=yes
9293fi
9294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9295  conftest.$ac_objext conftest.beam conftest.$ac_ext
9296fi
9297
9298      CFLAGS="$ac_save_CFLAGS"
9299      LIBS="$ac_save_LIBS"
9300    }
9301    fi
9302    if test "x$no_gtk" = x ; then
9303      if test "x$enable_gtktest" = "xyes"; then
9304	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9305$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9306      else
9307	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9308$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9309      fi
9310      GUI_LIB_LOC="$GTK_LIBDIR"
9311		 GTK_LIBNAME="$GTK_LIBS"
9312		GUI_INC_LOC="$GTK_CFLAGS"
9313    else
9314    {
9315      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316$as_echo "no" >&6; }
9317      GTK_CFLAGS=""
9318      GTK_LIBS=""
9319      :
9320    }
9321    fi
9322  }
9323  else
9324    GTK_CFLAGS=""
9325    GTK_LIBS=""
9326    :
9327  fi
9328
9329
9330  rm -f conf.gtktest
9331
9332    if test "x$GTK_CFLAGS" != "x"; then
9333      SKIP_GTK2=YES
9334      SKIP_GNOME=YES
9335      SKIP_ATHENA=YES
9336      SKIP_NEXTAW=YES
9337      SKIP_MOTIF=YES
9338      GUITYPE=GTK
9339
9340      $as_echo "#define USE_GTK3 1" >>confdefs.h
9341
9342    fi
9343  fi
9344fi
9345
9346if test "x$GUITYPE" = "xGTK"; then
9347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9348$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9349  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9350  if test "x$gdk_pixbuf_version" != x ; then
9351    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9352      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9353    if test "x$gdk_pixbuf_version_minor" != x -a \
9354	$gdk_pixbuf_version_minor -ge 31 ; then
9355      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
9356$as_echo "OK." >&6; }
9357      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
9358set dummy glib-compile-resources; ac_word=$2
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360$as_echo_n "checking for $ac_word... " >&6; }
9361if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
9362  $as_echo_n "(cached) " >&6
9363else
9364  case $GLIB_COMPILE_RESOURCES in
9365  [\\/]* | ?:[\\/]*)
9366  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
9367  ;;
9368  *)
9369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370for as_dir in $PATH
9371do
9372  IFS=$as_save_IFS
9373  test -z "$as_dir" && as_dir=.
9374    for ac_exec_ext in '' $ac_executable_extensions; do
9375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9376    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
9377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9378    break 2
9379  fi
9380done
9381  done
9382IFS=$as_save_IFS
9383
9384  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
9385  ;;
9386esac
9387fi
9388GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
9389if test -n "$GLIB_COMPILE_RESOURCES"; then
9390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
9391$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
9392else
9393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394$as_echo "no" >&6; }
9395fi
9396
9397
9398      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
9399$as_echo_n "checking glib-compile-resources... " >&6; }
9400      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
9401	GLIB_COMPILE_RESOURCES=""
9402	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
9403$as_echo "cannot be found in PATH." >&6; }
9404      else
9405	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
9406$as_echo "usable." >&6; }
9407	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
9408
9409	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
9410	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
9411      fi
9412    else
9413      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
9414$as_echo "not usable." >&6; }
9415    fi
9416  else
9417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
9418$as_echo "cannot obtain from pkg_config." >&6; }
9419  fi
9420
9421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
9422$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
9423  # Check whether --enable-icon_cache_update was given.
9424if test "${enable_icon_cache_update+set}" = set; then :
9425  enableval=$enable_icon_cache_update;
9426else
9427  enable_icon_cache_update="yes"
9428fi
9429
9430  if test "$enable_icon_cache_update" = "yes"; then
9431    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9432$as_echo "not set" >&6; }
9433    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
9434set dummy gtk-update-icon-cache; ac_word=$2
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9436$as_echo_n "checking for $ac_word... " >&6; }
9437if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
9438  $as_echo_n "(cached) " >&6
9439else
9440  case $GTK_UPDATE_ICON_CACHE in
9441  [\\/]* | ?:[\\/]*)
9442  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
9443  ;;
9444  *)
9445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446for as_dir in $PATH
9447do
9448  IFS=$as_save_IFS
9449  test -z "$as_dir" && as_dir=.
9450    for ac_exec_ext in '' $ac_executable_extensions; do
9451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9452    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
9453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9454    break 2
9455  fi
9456done
9457  done
9458IFS=$as_save_IFS
9459
9460  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
9461  ;;
9462esac
9463fi
9464GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
9465if test -n "$GTK_UPDATE_ICON_CACHE"; then
9466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
9467$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
9468else
9469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470$as_echo "no" >&6; }
9471fi
9472
9473
9474    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
9475      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
9476$as_echo "not found in PATH." >&6; }
9477    fi
9478  else
9479    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
9480$as_echo "update disabled" >&6; }
9481  fi
9482
9483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
9484$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
9485  # Check whether --enable-desktop_database_update was given.
9486if test "${enable_desktop_database_update+set}" = set; then :
9487  enableval=$enable_desktop_database_update;
9488else
9489  enable_desktop_database_update="yes"
9490fi
9491
9492  if test "$enable_desktop_database_update" = "yes"; then
9493    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9494$as_echo "not set" >&6; }
9495    # Extract the first word of "update-desktop-database", so it can be a program name with args.
9496set dummy update-desktop-database; ac_word=$2
9497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9498$as_echo_n "checking for $ac_word... " >&6; }
9499if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
9500  $as_echo_n "(cached) " >&6
9501else
9502  case $UPDATE_DESKTOP_DATABASE in
9503  [\\/]* | ?:[\\/]*)
9504  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
9505  ;;
9506  *)
9507  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510  IFS=$as_save_IFS
9511  test -z "$as_dir" && as_dir=.
9512    for ac_exec_ext in '' $ac_executable_extensions; do
9513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9514    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
9515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516    break 2
9517  fi
9518done
9519  done
9520IFS=$as_save_IFS
9521
9522  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
9523  ;;
9524esac
9525fi
9526UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
9527if test -n "$UPDATE_DESKTOP_DATABASE"; then
9528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
9529$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
9530else
9531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532$as_echo "no" >&6; }
9533fi
9534
9535
9536    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
9537      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
9538$as_echo "not found in PATH." >&6; }
9539    fi
9540  else
9541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
9542$as_echo "update disabled" >&6; }
9543  fi
9544fi
9545
9546
9547
9548
9549
9550
9551
9552if test -z "$SKIP_MOTIF"; then
9553  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"
9554    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9555
9556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
9557$as_echo_n "checking for location of Motif GUI includes... " >&6; }
9558  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9559  GUI_INC_LOC=
9560  for try in $gui_includes; do
9561    if test -f "$try/Xm/Xm.h"; then
9562      GUI_INC_LOC=$try
9563    fi
9564  done
9565  if test -n "$GUI_INC_LOC"; then
9566    if test "$GUI_INC_LOC" = /usr/include; then
9567      GUI_INC_LOC=
9568      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
9569$as_echo "in default path" >&6; }
9570    else
9571      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
9572$as_echo "$GUI_INC_LOC" >&6; }
9573    fi
9574  else
9575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
9576$as_echo "<not found>" >&6; }
9577    SKIP_MOTIF=YES
9578  fi
9579fi
9580
9581
9582if test -z "$SKIP_MOTIF"; then
9583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
9584$as_echo_n "checking --with-motif-lib argument... " >&6; }
9585
9586# Check whether --with-motif-lib was given.
9587if test "${with_motif_lib+set}" = set; then :
9588  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
9589fi
9590
9591
9592  if test -n "$MOTIF_LIBNAME"; then
9593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
9594$as_echo "$MOTIF_LIBNAME" >&6; }
9595    GUI_LIB_LOC=
9596  else
9597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598$as_echo "no" >&6; }
9599
9600        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9601
9602            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
9603$as_echo_n "checking for location of Motif GUI libs... " >&6; }
9604    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"
9605    GUI_LIB_LOC=
9606    for try in $gui_libs; do
9607      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9608	if test -f "$libtry"; then
9609	  GUI_LIB_LOC=$try
9610	fi
9611      done
9612    done
9613    if test -n "$GUI_LIB_LOC"; then
9614            if test "$GUI_LIB_LOC" = /usr/lib \
9615	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
9616	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
9617	GUI_LIB_LOC=
9618	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
9619$as_echo "in default path" >&6; }
9620      else
9621	if test -n "$GUI_LIB_LOC"; then
9622	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
9623$as_echo "$GUI_LIB_LOC" >&6; }
9624	  if test "`(uname) 2>/dev/null`" = SunOS &&
9625					 uname -r | grep '^5' >/dev/null; then
9626	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9627	  fi
9628	fi
9629      fi
9630      MOTIF_LIBNAME=-lXm
9631    else
9632      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
9633$as_echo "<not found>" >&6; }
9634      SKIP_MOTIF=YES
9635    fi
9636  fi
9637fi
9638
9639if test -z "$SKIP_MOTIF"; then
9640  SKIP_ATHENA=YES
9641  SKIP_NEXTAW=YES
9642  GUITYPE=MOTIF
9643
9644fi
9645
9646
9647GUI_X_LIBS=
9648
9649if test -z "$SKIP_ATHENA"; then
9650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
9651$as_echo_n "checking if Athena header files can be found... " >&6; }
9652  cflags_save=$CFLAGS
9653  CFLAGS="$CFLAGS $X_CFLAGS"
9654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655/* end confdefs.h.  */
9656
9657#include <X11/Intrinsic.h>
9658#include <X11/Xaw/Paned.h>
9659int
9660main ()
9661{
9662
9663  ;
9664  return 0;
9665}
9666_ACEOF
9667if ac_fn_c_try_compile "$LINENO"; then :
9668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9669$as_echo "yes" >&6; }
9670else
9671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672$as_echo "no" >&6; }; SKIP_ATHENA=YES
9673fi
9674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675  CFLAGS=$cflags_save
9676fi
9677
9678if test -z "$SKIP_ATHENA"; then
9679  GUITYPE=ATHENA
9680fi
9681
9682if test -z "$SKIP_NEXTAW"; then
9683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
9684$as_echo_n "checking if neXtaw header files can be found... " >&6; }
9685  cflags_save=$CFLAGS
9686  CFLAGS="$CFLAGS $X_CFLAGS"
9687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h.  */
9689
9690#include <X11/Intrinsic.h>
9691#include <X11/neXtaw/Paned.h>
9692int
9693main ()
9694{
9695
9696  ;
9697  return 0;
9698}
9699_ACEOF
9700if ac_fn_c_try_compile "$LINENO"; then :
9701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9702$as_echo "yes" >&6; }
9703else
9704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705$as_echo "no" >&6; }; SKIP_NEXTAW=YES
9706fi
9707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708  CFLAGS=$cflags_save
9709fi
9710
9711if test -z "$SKIP_NEXTAW"; then
9712  GUITYPE=NEXTAW
9713fi
9714
9715if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9716      if test -n "$GUI_INC_LOC"; then
9717    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9718  fi
9719  if test -n "$GUI_LIB_LOC"; then
9720    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9721  fi
9722
9723    ldflags_save=$LDFLAGS
9724  LDFLAGS="$X_LIBS $LDFLAGS"
9725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9726$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9727if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9728  $as_echo_n "(cached) " >&6
9729else
9730  ac_check_lib_save_LIBS=$LIBS
9731LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733/* end confdefs.h.  */
9734
9735/* Override any GCC internal prototype to avoid an error.
9736   Use char because int might match the return type of a GCC
9737   builtin and then its argument prototype would still apply.  */
9738#ifdef __cplusplus
9739extern "C"
9740#endif
9741char XShapeQueryExtension ();
9742int
9743main ()
9744{
9745return XShapeQueryExtension ();
9746  ;
9747  return 0;
9748}
9749_ACEOF
9750if ac_fn_c_try_link "$LINENO"; then :
9751  ac_cv_lib_Xext_XShapeQueryExtension=yes
9752else
9753  ac_cv_lib_Xext_XShapeQueryExtension=no
9754fi
9755rm -f core conftest.err conftest.$ac_objext \
9756    conftest$ac_exeext conftest.$ac_ext
9757LIBS=$ac_check_lib_save_LIBS
9758fi
9759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9760$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9761if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9762  GUI_X_LIBS="-lXext"
9763fi
9764
9765    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
9766$as_echo_n "checking for wslen in -lw... " >&6; }
9767if ${ac_cv_lib_w_wslen+:} false; then :
9768  $as_echo_n "(cached) " >&6
9769else
9770  ac_check_lib_save_LIBS=$LIBS
9771LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773/* end confdefs.h.  */
9774
9775/* Override any GCC internal prototype to avoid an error.
9776   Use char because int might match the return type of a GCC
9777   builtin and then its argument prototype would still apply.  */
9778#ifdef __cplusplus
9779extern "C"
9780#endif
9781char wslen ();
9782int
9783main ()
9784{
9785return wslen ();
9786  ;
9787  return 0;
9788}
9789_ACEOF
9790if ac_fn_c_try_link "$LINENO"; then :
9791  ac_cv_lib_w_wslen=yes
9792else
9793  ac_cv_lib_w_wslen=no
9794fi
9795rm -f core conftest.err conftest.$ac_objext \
9796    conftest$ac_exeext conftest.$ac_ext
9797LIBS=$ac_check_lib_save_LIBS
9798fi
9799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
9800$as_echo "$ac_cv_lib_w_wslen" >&6; }
9801if test "x$ac_cv_lib_w_wslen" = xyes; then :
9802  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9803fi
9804
9805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
9806$as_echo_n "checking for dlsym in -ldl... " >&6; }
9807if ${ac_cv_lib_dl_dlsym+:} false; then :
9808  $as_echo_n "(cached) " >&6
9809else
9810  ac_check_lib_save_LIBS=$LIBS
9811LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813/* end confdefs.h.  */
9814
9815/* Override any GCC internal prototype to avoid an error.
9816   Use char because int might match the return type of a GCC
9817   builtin and then its argument prototype would still apply.  */
9818#ifdef __cplusplus
9819extern "C"
9820#endif
9821char dlsym ();
9822int
9823main ()
9824{
9825return dlsym ();
9826  ;
9827  return 0;
9828}
9829_ACEOF
9830if ac_fn_c_try_link "$LINENO"; then :
9831  ac_cv_lib_dl_dlsym=yes
9832else
9833  ac_cv_lib_dl_dlsym=no
9834fi
9835rm -f core conftest.err conftest.$ac_objext \
9836    conftest$ac_exeext conftest.$ac_ext
9837LIBS=$ac_check_lib_save_LIBS
9838fi
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
9840$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9841if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
9842  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9843fi
9844
9845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
9846$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9847if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
9848  $as_echo_n "(cached) " >&6
9849else
9850  ac_check_lib_save_LIBS=$LIBS
9851LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853/* end confdefs.h.  */
9854
9855/* Override any GCC internal prototype to avoid an error.
9856   Use char because int might match the return type of a GCC
9857   builtin and then its argument prototype would still apply.  */
9858#ifdef __cplusplus
9859extern "C"
9860#endif
9861char XmuCreateStippledPixmap ();
9862int
9863main ()
9864{
9865return XmuCreateStippledPixmap ();
9866  ;
9867  return 0;
9868}
9869_ACEOF
9870if ac_fn_c_try_link "$LINENO"; then :
9871  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9872else
9873  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9874fi
9875rm -f core conftest.err conftest.$ac_objext \
9876    conftest$ac_exeext conftest.$ac_ext
9877LIBS=$ac_check_lib_save_LIBS
9878fi
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9880$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9881if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
9882  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9883fi
9884
9885  if test -z "$SKIP_MOTIF"; then
9886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
9887$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9888if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
9889  $as_echo_n "(cached) " >&6
9890else
9891  ac_check_lib_save_LIBS=$LIBS
9892LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894/* end confdefs.h.  */
9895
9896/* Override any GCC internal prototype to avoid an error.
9897   Use char because int might match the return type of a GCC
9898   builtin and then its argument prototype would still apply.  */
9899#ifdef __cplusplus
9900extern "C"
9901#endif
9902char XpEndJob ();
9903int
9904main ()
9905{
9906return XpEndJob ();
9907  ;
9908  return 0;
9909}
9910_ACEOF
9911if ac_fn_c_try_link "$LINENO"; then :
9912  ac_cv_lib_Xp_XpEndJob=yes
9913else
9914  ac_cv_lib_Xp_XpEndJob=no
9915fi
9916rm -f core conftest.err conftest.$ac_objext \
9917    conftest$ac_exeext conftest.$ac_ext
9918LIBS=$ac_check_lib_save_LIBS
9919fi
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
9921$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9922if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
9923  GUI_X_LIBS="-lXp $GUI_X_LIBS"
9924fi
9925
9926  fi
9927  LDFLAGS=$ldflags_save
9928
9929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
9930$as_echo_n "checking for extra X11 defines... " >&6; }
9931  NARROW_PROTO=
9932  rm -fr conftestdir
9933  if mkdir conftestdir; then
9934    cd conftestdir
9935    cat > Imakefile <<'EOF'
9936acfindx:
9937	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9938EOF
9939    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9940      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9941    fi
9942    cd ..
9943    rm -fr conftestdir
9944  fi
9945  if test -z "$NARROW_PROTO"; then
9946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947$as_echo "no" >&6; }
9948  else
9949    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
9950$as_echo "$NARROW_PROTO" >&6; }
9951  fi
9952
9953fi
9954
9955if test "$enable_xsmp" = "yes"; then
9956  cppflags_save=$CPPFLAGS
9957  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9958  for ac_header in X11/SM/SMlib.h
9959do :
9960  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
9961if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
9962  cat >>confdefs.h <<_ACEOF
9963#define HAVE_X11_SM_SMLIB_H 1
9964_ACEOF
9965
9966fi
9967
9968done
9969
9970  CPPFLAGS=$cppflags_save
9971fi
9972
9973
9974if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
9975    cppflags_save=$CPPFLAGS
9976  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9977  for ac_header in X11/xpm.h X11/Sunkeysym.h
9978do :
9979  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9980ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9981if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9982  cat >>confdefs.h <<_ACEOF
9983#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9984_ACEOF
9985
9986fi
9987
9988done
9989
9990
9991    if test ! "$enable_xim" = "no"; then
9992    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
9993$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9994    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995/* end confdefs.h.  */
9996#include <X11/Xlib.h>
9997_ACEOF
9998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9999  $EGREP "XIMText" >/dev/null 2>&1; then :
10000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10001$as_echo "yes" >&6; }
10002else
10003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10004$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10005fi
10006rm -f conftest*
10007
10008  fi
10009  CPPFLAGS=$cppflags_save
10010
10011    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10012		-a "x$GUITYPE" != "xNONE" ; then
10013    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10014$as_echo "X GUI selected; xim has been enabled" >&6; }
10015    enable_xim="yes"
10016  fi
10017fi
10018
10019if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10020  cppflags_save=$CPPFLAGS
10021  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10023$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025/* end confdefs.h.  */
10026
10027#include <X11/Intrinsic.h>
10028#include <X11/Xmu/Editres.h>
10029int
10030main ()
10031{
10032int i; i = 0;
10033  ;
10034  return 0;
10035}
10036_ACEOF
10037if ac_fn_c_try_compile "$LINENO"; then :
10038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10039$as_echo "yes" >&6; }
10040		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10041
10042else
10043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044$as_echo "no" >&6; }
10045fi
10046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047  CPPFLAGS=$cppflags_save
10048fi
10049
10050if test -z "$SKIP_MOTIF"; then
10051  cppflags_save=$CPPFLAGS
10052  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10053  if test "$zOSUnix" = "yes"; then
10054	xmheader="Xm/Xm.h"
10055  else
10056	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10057	   Xm/UnhighlightT.h Xm/Notebook.h"
10058  fi
10059  for ac_header in $xmheader
10060do :
10061  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10062ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10063if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10064  cat >>confdefs.h <<_ACEOF
10065#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10066_ACEOF
10067
10068fi
10069
10070done
10071
10072
10073  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10074        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10075$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10076    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077/* end confdefs.h.  */
10078#include <Xm/XpmP.h>
10079int
10080main ()
10081{
10082XpmAttributes_21 attr;
10083  ;
10084  return 0;
10085}
10086_ACEOF
10087if ac_fn_c_try_compile "$LINENO"; then :
10088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10089$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10090
10091else
10092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10094
10095
10096fi
10097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10098  else
10099    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10100
10101  fi
10102  CPPFLAGS=$cppflags_save
10103fi
10104
10105if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10107$as_echo "no GUI selected; xim has been disabled" >&6; }
10108  enable_xim="no"
10109fi
10110if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10112$as_echo "no GUI selected; fontset has been disabled" >&6; }
10113  enable_fontset="no"
10114fi
10115if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10117$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10118  enable_fontset="no"
10119fi
10120
10121if test -z "$SKIP_PHOTON"; then
10122  GUITYPE=PHOTONGUI
10123fi
10124
10125
10126
10127
10128
10129
10130if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10131  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10132fi
10133
10134if test "$enable_xim" = "yes"; then
10135  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10136
10137fi
10138if test "$enable_fontset" = "yes"; then
10139  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10140
10141fi
10142
10143
10144
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10146$as_echo_n "checking for /proc link to executable... " >&6; }
10147if test -L "/proc/self/exe"; then
10148    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10149$as_echo "/proc/self/exe" >&6; }
10150  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10151
10152elif test -L "/proc/self/path/a.out"; then
10153    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10154$as_echo "/proc/self/path/a.out" >&6; }
10155  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10156
10157elif test -L "/proc/curproc/file"; then
10158    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10159$as_echo "/proc/curproc/file" >&6; }
10160  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10161
10162else
10163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164$as_echo "no" >&6; }
10165fi
10166
10167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10168$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10169case `uname` in
10170    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10171$as_echo "yes" >&6; }
10172                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10173$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10174                if test "x$with_x" = "xno" ; then
10175                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10176                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10177$as_echo "yes" >&6; }
10178                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10179
10180                else
10181                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10182$as_echo "no - using X11" >&6; }
10183                fi ;;
10184
10185    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186$as_echo "no" >&6; };;
10187esac
10188
10189if test "$enable_hangulinput" = "yes"; then
10190  if test "x$GUITYPE" = "xNONE"; then
10191    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
10192$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10193    enable_hangulinput=no
10194  else
10195    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
10196
10197    HANGULIN_SRC=hangulin.c
10198
10199    HANGULIN_OBJ=objects/hangulin.o
10200
10201  fi
10202fi
10203
10204
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10206$as_echo_n "checking whether toupper is broken... " >&6; }
10207if ${vim_cv_toupper_broken+:} false; then :
10208  $as_echo_n "(cached) " >&6
10209else
10210
10211    if test "$cross_compiling" = yes; then :
10212
10213    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10214
10215else
10216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218
10219#include "confdefs.h"
10220#include <ctype.h>
10221#if STDC_HEADERS
10222# include <stdlib.h>
10223# include <stddef.h>
10224#endif
10225main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10226
10227_ACEOF
10228if ac_fn_c_try_run "$LINENO"; then :
10229
10230    vim_cv_toupper_broken=yes
10231
10232else
10233
10234    vim_cv_toupper_broken=no
10235
10236fi
10237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10238  conftest.$ac_objext conftest.beam conftest.$ac_ext
10239fi
10240
10241fi
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10243$as_echo "$vim_cv_toupper_broken" >&6; }
10244
10245if test "x$vim_cv_toupper_broken" = "xyes" ; then
10246  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10247
10248fi
10249
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10251$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h.  */
10254#include <stdio.h>
10255int
10256main ()
10257{
10258printf("(" __DATE__ " " __TIME__ ")");
10259  ;
10260  return 0;
10261}
10262_ACEOF
10263if ac_fn_c_try_compile "$LINENO"; then :
10264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10265$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10266
10267else
10268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269$as_echo "no" >&6; }
10270fi
10271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10272
10273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10274$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h.  */
10277#include <stdio.h>
10278int
10279main ()
10280{
10281int x __attribute__((unused));
10282  ;
10283  return 0;
10284}
10285_ACEOF
10286if ac_fn_c_try_compile "$LINENO"; then :
10287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10288$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10289
10290else
10291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292$as_echo "no" >&6; }
10293fi
10294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10295
10296ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10297if test "x$ac_cv_header_elf_h" = xyes; then :
10298  HAS_ELF=1
10299fi
10300
10301
10302if test "$HAS_ELF" = 1; then
10303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10304$as_echo_n "checking for main in -lelf... " >&6; }
10305if ${ac_cv_lib_elf_main+:} false; then :
10306  $as_echo_n "(cached) " >&6
10307else
10308  ac_check_lib_save_LIBS=$LIBS
10309LIBS="-lelf  $LIBS"
10310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311/* end confdefs.h.  */
10312
10313
10314int
10315main ()
10316{
10317return main ();
10318  ;
10319  return 0;
10320}
10321_ACEOF
10322if ac_fn_c_try_link "$LINENO"; then :
10323  ac_cv_lib_elf_main=yes
10324else
10325  ac_cv_lib_elf_main=no
10326fi
10327rm -f core conftest.err conftest.$ac_objext \
10328    conftest$ac_exeext conftest.$ac_ext
10329LIBS=$ac_check_lib_save_LIBS
10330fi
10331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10332$as_echo "$ac_cv_lib_elf_main" >&6; }
10333if test "x$ac_cv_lib_elf_main" = xyes; then :
10334  cat >>confdefs.h <<_ACEOF
10335#define HAVE_LIBELF 1
10336_ACEOF
10337
10338  LIBS="-lelf $LIBS"
10339
10340fi
10341
10342fi
10343
10344ac_header_dirent=no
10345for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10346  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10348$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10349if eval \${$as_ac_Header+:} false; then :
10350  $as_echo_n "(cached) " >&6
10351else
10352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353/* end confdefs.h.  */
10354#include <sys/types.h>
10355#include <$ac_hdr>
10356
10357int
10358main ()
10359{
10360if ((DIR *) 0)
10361return 0;
10362  ;
10363  return 0;
10364}
10365_ACEOF
10366if ac_fn_c_try_compile "$LINENO"; then :
10367  eval "$as_ac_Header=yes"
10368else
10369  eval "$as_ac_Header=no"
10370fi
10371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372fi
10373eval ac_res=\$$as_ac_Header
10374	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10375$as_echo "$ac_res" >&6; }
10376if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10377  cat >>confdefs.h <<_ACEOF
10378#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10379_ACEOF
10380
10381ac_header_dirent=$ac_hdr; break
10382fi
10383
10384done
10385# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10386if test $ac_header_dirent = dirent.h; then
10387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10388$as_echo_n "checking for library containing opendir... " >&6; }
10389if ${ac_cv_search_opendir+:} false; then :
10390  $as_echo_n "(cached) " >&6
10391else
10392  ac_func_search_save_LIBS=$LIBS
10393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h.  */
10395
10396/* Override any GCC internal prototype to avoid an error.
10397   Use char because int might match the return type of a GCC
10398   builtin and then its argument prototype would still apply.  */
10399#ifdef __cplusplus
10400extern "C"
10401#endif
10402char opendir ();
10403int
10404main ()
10405{
10406return opendir ();
10407  ;
10408  return 0;
10409}
10410_ACEOF
10411for ac_lib in '' dir; do
10412  if test -z "$ac_lib"; then
10413    ac_res="none required"
10414  else
10415    ac_res=-l$ac_lib
10416    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10417  fi
10418  if ac_fn_c_try_link "$LINENO"; then :
10419  ac_cv_search_opendir=$ac_res
10420fi
10421rm -f core conftest.err conftest.$ac_objext \
10422    conftest$ac_exeext
10423  if ${ac_cv_search_opendir+:} false; then :
10424  break
10425fi
10426done
10427if ${ac_cv_search_opendir+:} false; then :
10428
10429else
10430  ac_cv_search_opendir=no
10431fi
10432rm conftest.$ac_ext
10433LIBS=$ac_func_search_save_LIBS
10434fi
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10436$as_echo "$ac_cv_search_opendir" >&6; }
10437ac_res=$ac_cv_search_opendir
10438if test "$ac_res" != no; then :
10439  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10440
10441fi
10442
10443else
10444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10445$as_echo_n "checking for library containing opendir... " >&6; }
10446if ${ac_cv_search_opendir+:} false; then :
10447  $as_echo_n "(cached) " >&6
10448else
10449  ac_func_search_save_LIBS=$LIBS
10450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451/* end confdefs.h.  */
10452
10453/* Override any GCC internal prototype to avoid an error.
10454   Use char because int might match the return type of a GCC
10455   builtin and then its argument prototype would still apply.  */
10456#ifdef __cplusplus
10457extern "C"
10458#endif
10459char opendir ();
10460int
10461main ()
10462{
10463return opendir ();
10464  ;
10465  return 0;
10466}
10467_ACEOF
10468for ac_lib in '' x; do
10469  if test -z "$ac_lib"; then
10470    ac_res="none required"
10471  else
10472    ac_res=-l$ac_lib
10473    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10474  fi
10475  if ac_fn_c_try_link "$LINENO"; then :
10476  ac_cv_search_opendir=$ac_res
10477fi
10478rm -f core conftest.err conftest.$ac_objext \
10479    conftest$ac_exeext
10480  if ${ac_cv_search_opendir+:} false; then :
10481  break
10482fi
10483done
10484if ${ac_cv_search_opendir+:} false; then :
10485
10486else
10487  ac_cv_search_opendir=no
10488fi
10489rm conftest.$ac_ext
10490LIBS=$ac_func_search_save_LIBS
10491fi
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10493$as_echo "$ac_cv_search_opendir" >&6; }
10494ac_res=$ac_cv_search_opendir
10495if test "$ac_res" != no; then :
10496  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10497
10498fi
10499
10500fi
10501
10502
10503if test $ac_cv_header_sys_wait_h = no; then
10504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
10505$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507/* end confdefs.h.  */
10508#include <sys/wait.h>
10509int
10510main ()
10511{
10512union wait xx, yy; xx = yy
10513  ;
10514  return 0;
10515}
10516_ACEOF
10517if ac_fn_c_try_compile "$LINENO"; then :
10518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10519$as_echo "yes" >&6; }
10520			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
10521
10522			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
10523
10524else
10525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526$as_echo "no" >&6; }
10527fi
10528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10529fi
10530
10531for ac_header in stdint.h stdlib.h string.h \
10532	sys/select.h sys/utsname.h termcap.h fcntl.h \
10533	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
10534	termio.h iconv.h inttypes.h langinfo.h math.h \
10535	unistd.h stropts.h errno.h sys/resource.h \
10536	sys/systeminfo.h locale.h sys/stream.h termios.h \
10537	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
10538	utime.h sys/param.h libintl.h libgen.h \
10539	util/debug.h util/msg18n.h frame.h sys/acl.h \
10540	sys/access.h sys/sysinfo.h wchar.h wctype.h
10541do :
10542  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10543ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10544if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10545  cat >>confdefs.h <<_ACEOF
10546#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10547_ACEOF
10548
10549fi
10550
10551done
10552
10553
10554for ac_header in sys/ptem.h
10555do :
10556  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
10557#  include <sys/stream.h>
10558#endif
10559"
10560if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
10561  cat >>confdefs.h <<_ACEOF
10562#define HAVE_SYS_PTEM_H 1
10563_ACEOF
10564
10565fi
10566
10567done
10568
10569
10570for ac_header in sys/sysctl.h
10571do :
10572  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
10573#  include <sys/param.h>
10574#endif
10575"
10576if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
10577  cat >>confdefs.h <<_ACEOF
10578#define HAVE_SYS_SYSCTL_H 1
10579_ACEOF
10580
10581fi
10582
10583done
10584
10585
10586
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
10588$as_echo_n "checking for pthread_np.h... " >&6; }
10589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590/* end confdefs.h.  */
10591
10592#include <pthread.h>
10593#include <pthread_np.h>
10594int
10595main ()
10596{
10597int i; i = 0;
10598  ;
10599  return 0;
10600}
10601_ACEOF
10602if ac_fn_c_try_compile "$LINENO"; then :
10603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10604$as_echo "yes" >&6; }
10605		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
10606
10607else
10608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609$as_echo "no" >&6; }
10610fi
10611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10612
10613for ac_header in strings.h
10614do :
10615  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
10616if test "x$ac_cv_header_strings_h" = xyes; then :
10617  cat >>confdefs.h <<_ACEOF
10618#define HAVE_STRINGS_H 1
10619_ACEOF
10620
10621fi
10622
10623done
10624
10625if test "x$MACOSX" = "xyes"; then
10626    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
10627
10628else
10629
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
10631$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
10632cppflags_save=$CPPFLAGS
10633CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635/* end confdefs.h.  */
10636
10637#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10638# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
10639			/* but don't do it on AIX 5.1 (Uribarri) */
10640#endif
10641#ifdef HAVE_XM_XM_H
10642# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
10643#endif
10644#ifdef HAVE_STRING_H
10645# include <string.h>
10646#endif
10647#if defined(HAVE_STRINGS_H)
10648# include <strings.h>
10649#endif
10650
10651int
10652main ()
10653{
10654int i; i = 0;
10655  ;
10656  return 0;
10657}
10658_ACEOF
10659if ac_fn_c_try_compile "$LINENO"; then :
10660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10661$as_echo "yes" >&6; }
10662else
10663  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
10664
10665		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666$as_echo "no" >&6; }
10667fi
10668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10669CPPFLAGS=$cppflags_save
10670fi
10671
10672if test $ac_cv_c_compiler_gnu = yes; then
10673    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10674$as_echo_n "checking whether $CC needs -traditional... " >&6; }
10675if ${ac_cv_prog_gcc_traditional+:} false; then :
10676  $as_echo_n "(cached) " >&6
10677else
10678    ac_pattern="Autoconf.*'x'"
10679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680/* end confdefs.h.  */
10681#include <sgtty.h>
10682Autoconf TIOCGETP
10683_ACEOF
10684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10685  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10686  ac_cv_prog_gcc_traditional=yes
10687else
10688  ac_cv_prog_gcc_traditional=no
10689fi
10690rm -f conftest*
10691
10692
10693  if test $ac_cv_prog_gcc_traditional = no; then
10694    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695/* end confdefs.h.  */
10696#include <termio.h>
10697Autoconf TCGETA
10698_ACEOF
10699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10700  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10701  ac_cv_prog_gcc_traditional=yes
10702fi
10703rm -f conftest*
10704
10705  fi
10706fi
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10708$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10709  if test $ac_cv_prog_gcc_traditional = yes; then
10710    CC="$CC -traditional"
10711  fi
10712fi
10713
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10715$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10716if ${ac_cv_c_const+:} false; then :
10717  $as_echo_n "(cached) " >&6
10718else
10719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720/* end confdefs.h.  */
10721
10722int
10723main ()
10724{
10725
10726#ifndef __cplusplus
10727  /* Ultrix mips cc rejects this sort of thing.  */
10728  typedef int charset[2];
10729  const charset cs = { 0, 0 };
10730  /* SunOS 4.1.1 cc rejects this.  */
10731  char const *const *pcpcc;
10732  char **ppc;
10733  /* NEC SVR4.0.2 mips cc rejects this.  */
10734  struct point {int x, y;};
10735  static struct point const zero = {0,0};
10736  /* AIX XL C 1.02.0.0 rejects this.
10737     It does not let you subtract one const X* pointer from another in
10738     an arm of an if-expression whose if-part is not a constant
10739     expression */
10740  const char *g = "string";
10741  pcpcc = &g + (g ? g-g : 0);
10742  /* HPUX 7.0 cc rejects these. */
10743  ++pcpcc;
10744  ppc = (char**) pcpcc;
10745  pcpcc = (char const *const *) ppc;
10746  { /* SCO 3.2v4 cc rejects this sort of thing.  */
10747    char tx;
10748    char *t = &tx;
10749    char const *s = 0 ? (char *) 0 : (char const *) 0;
10750
10751    *t++ = 0;
10752    if (s) return 0;
10753  }
10754  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10755    int x[] = {25, 17};
10756    const int *foo = &x[0];
10757    ++foo;
10758  }
10759  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10760    typedef const int *iptr;
10761    iptr p = 0;
10762    ++p;
10763  }
10764  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10765       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10766    struct s { int j; const int *ap[3]; } bx;
10767    struct s *b = &bx; b->j = 5;
10768  }
10769  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10770    const int foo = 10;
10771    if (!foo) return 0;
10772  }
10773  return !cs[0] && !zero.x;
10774#endif
10775
10776  ;
10777  return 0;
10778}
10779_ACEOF
10780if ac_fn_c_try_compile "$LINENO"; then :
10781  ac_cv_c_const=yes
10782else
10783  ac_cv_c_const=no
10784fi
10785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786fi
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10788$as_echo "$ac_cv_c_const" >&6; }
10789if test $ac_cv_c_const = no; then
10790
10791$as_echo "#define const /**/" >>confdefs.h
10792
10793fi
10794
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
10796$as_echo_n "checking for working volatile... " >&6; }
10797if ${ac_cv_c_volatile+:} false; then :
10798  $as_echo_n "(cached) " >&6
10799else
10800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801/* end confdefs.h.  */
10802
10803int
10804main ()
10805{
10806
10807volatile int x;
10808int * volatile y = (int *) 0;
10809return !x && !y;
10810  ;
10811  return 0;
10812}
10813_ACEOF
10814if ac_fn_c_try_compile "$LINENO"; then :
10815  ac_cv_c_volatile=yes
10816else
10817  ac_cv_c_volatile=no
10818fi
10819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820fi
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
10822$as_echo "$ac_cv_c_volatile" >&6; }
10823if test $ac_cv_c_volatile = no; then
10824
10825$as_echo "#define volatile /**/" >>confdefs.h
10826
10827fi
10828
10829ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10830if test "x$ac_cv_type_mode_t" = xyes; then :
10831
10832else
10833
10834cat >>confdefs.h <<_ACEOF
10835#define mode_t int
10836_ACEOF
10837
10838fi
10839
10840ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10841if test "x$ac_cv_type_off_t" = xyes; then :
10842
10843else
10844
10845cat >>confdefs.h <<_ACEOF
10846#define off_t long int
10847_ACEOF
10848
10849fi
10850
10851ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10852if test "x$ac_cv_type_pid_t" = xyes; then :
10853
10854else
10855
10856cat >>confdefs.h <<_ACEOF
10857#define pid_t int
10858_ACEOF
10859
10860fi
10861
10862ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10863if test "x$ac_cv_type_size_t" = xyes; then :
10864
10865else
10866
10867cat >>confdefs.h <<_ACEOF
10868#define size_t unsigned int
10869_ACEOF
10870
10871fi
10872
10873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10874$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10875if ${ac_cv_type_uid_t+:} false; then :
10876  $as_echo_n "(cached) " >&6
10877else
10878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879/* end confdefs.h.  */
10880#include <sys/types.h>
10881
10882_ACEOF
10883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10884  $EGREP "uid_t" >/dev/null 2>&1; then :
10885  ac_cv_type_uid_t=yes
10886else
10887  ac_cv_type_uid_t=no
10888fi
10889rm -f conftest*
10890
10891fi
10892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10893$as_echo "$ac_cv_type_uid_t" >&6; }
10894if test $ac_cv_type_uid_t = no; then
10895
10896$as_echo "#define uid_t int" >>confdefs.h
10897
10898
10899$as_echo "#define gid_t int" >>confdefs.h
10900
10901fi
10902
10903ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
10904case $ac_cv_c_uint32_t in #(
10905  no|yes) ;; #(
10906  *)
10907
10908$as_echo "#define _UINT32_T 1" >>confdefs.h
10909
10910
10911cat >>confdefs.h <<_ACEOF
10912#define uint32_t $ac_cv_c_uint32_t
10913_ACEOF
10914;;
10915  esac
10916
10917
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10919$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10920if ${ac_cv_header_time+:} false; then :
10921  $as_echo_n "(cached) " >&6
10922else
10923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924/* end confdefs.h.  */
10925#include <sys/types.h>
10926#include <sys/time.h>
10927#include <time.h>
10928
10929int
10930main ()
10931{
10932if ((struct tm *) 0)
10933return 0;
10934  ;
10935  return 0;
10936}
10937_ACEOF
10938if ac_fn_c_try_compile "$LINENO"; then :
10939  ac_cv_header_time=yes
10940else
10941  ac_cv_header_time=no
10942fi
10943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10944fi
10945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10946$as_echo "$ac_cv_header_time" >&6; }
10947if test $ac_cv_header_time = yes; then
10948
10949$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10950
10951fi
10952
10953ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
10954if test "x$ac_cv_type_ino_t" = xyes; then :
10955
10956else
10957
10958cat >>confdefs.h <<_ACEOF
10959#define ino_t long
10960_ACEOF
10961
10962fi
10963
10964ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
10965if test "x$ac_cv_type_dev_t" = xyes; then :
10966
10967else
10968
10969cat >>confdefs.h <<_ACEOF
10970#define dev_t unsigned
10971_ACEOF
10972
10973fi
10974
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10976$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10977if ${ac_cv_c_bigendian+:} false; then :
10978  $as_echo_n "(cached) " >&6
10979else
10980  ac_cv_c_bigendian=unknown
10981    # See if we're dealing with a universal compiler.
10982    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983/* end confdefs.h.  */
10984#ifndef __APPLE_CC__
10985	       not a universal capable compiler
10986	     #endif
10987	     typedef int dummy;
10988
10989_ACEOF
10990if ac_fn_c_try_compile "$LINENO"; then :
10991
10992	# Check for potential -arch flags.  It is not universal unless
10993	# there are at least two -arch flags with different values.
10994	ac_arch=
10995	ac_prev=
10996	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10997	 if test -n "$ac_prev"; then
10998	   case $ac_word in
10999	     i?86 | x86_64 | ppc | ppc64)
11000	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11001		 ac_arch=$ac_word
11002	       else
11003		 ac_cv_c_bigendian=universal
11004		 break
11005	       fi
11006	       ;;
11007	   esac
11008	   ac_prev=
11009	 elif test "x$ac_word" = "x-arch"; then
11010	   ac_prev=arch
11011	 fi
11012       done
11013fi
11014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015    if test $ac_cv_c_bigendian = unknown; then
11016      # See if sys/param.h defines the BYTE_ORDER macro.
11017      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018/* end confdefs.h.  */
11019#include <sys/types.h>
11020	     #include <sys/param.h>
11021
11022int
11023main ()
11024{
11025#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11026		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11027		     && LITTLE_ENDIAN)
11028	      bogus endian macros
11029	     #endif
11030
11031  ;
11032  return 0;
11033}
11034_ACEOF
11035if ac_fn_c_try_compile "$LINENO"; then :
11036  # It does; now see whether it defined to BIG_ENDIAN or not.
11037	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038/* end confdefs.h.  */
11039#include <sys/types.h>
11040		#include <sys/param.h>
11041
11042int
11043main ()
11044{
11045#if BYTE_ORDER != BIG_ENDIAN
11046		 not big endian
11047		#endif
11048
11049  ;
11050  return 0;
11051}
11052_ACEOF
11053if ac_fn_c_try_compile "$LINENO"; then :
11054  ac_cv_c_bigendian=yes
11055else
11056  ac_cv_c_bigendian=no
11057fi
11058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11059fi
11060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061    fi
11062    if test $ac_cv_c_bigendian = unknown; then
11063      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11064      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065/* end confdefs.h.  */
11066#include <limits.h>
11067
11068int
11069main ()
11070{
11071#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11072	      bogus endian macros
11073	     #endif
11074
11075  ;
11076  return 0;
11077}
11078_ACEOF
11079if ac_fn_c_try_compile "$LINENO"; then :
11080  # It does; now see whether it defined to _BIG_ENDIAN or not.
11081	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082/* end confdefs.h.  */
11083#include <limits.h>
11084
11085int
11086main ()
11087{
11088#ifndef _BIG_ENDIAN
11089		 not big endian
11090		#endif
11091
11092  ;
11093  return 0;
11094}
11095_ACEOF
11096if ac_fn_c_try_compile "$LINENO"; then :
11097  ac_cv_c_bigendian=yes
11098else
11099  ac_cv_c_bigendian=no
11100fi
11101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102fi
11103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104    fi
11105    if test $ac_cv_c_bigendian = unknown; then
11106      # Compile a test program.
11107      if test "$cross_compiling" = yes; then :
11108  # Try to guess by grepping values from an object file.
11109	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110/* end confdefs.h.  */
11111short int ascii_mm[] =
11112		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11113		short int ascii_ii[] =
11114		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11115		int use_ascii (int i) {
11116		  return ascii_mm[i] + ascii_ii[i];
11117		}
11118		short int ebcdic_ii[] =
11119		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11120		short int ebcdic_mm[] =
11121		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11122		int use_ebcdic (int i) {
11123		  return ebcdic_mm[i] + ebcdic_ii[i];
11124		}
11125		extern int foo;
11126
11127int
11128main ()
11129{
11130return use_ascii (foo) == use_ebcdic (foo);
11131  ;
11132  return 0;
11133}
11134_ACEOF
11135if ac_fn_c_try_compile "$LINENO"; then :
11136  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11137	      ac_cv_c_bigendian=yes
11138	    fi
11139	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11140	      if test "$ac_cv_c_bigendian" = unknown; then
11141		ac_cv_c_bigendian=no
11142	      else
11143		# finding both strings is unlikely to happen, but who knows?
11144		ac_cv_c_bigendian=unknown
11145	      fi
11146	    fi
11147fi
11148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149else
11150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151/* end confdefs.h.  */
11152$ac_includes_default
11153int
11154main ()
11155{
11156
11157	     /* Are we little or big endian?  From Harbison&Steele.  */
11158	     union
11159	     {
11160	       long int l;
11161	       char c[sizeof (long int)];
11162	     } u;
11163	     u.l = 1;
11164	     return u.c[sizeof (long int) - 1] == 1;
11165
11166  ;
11167  return 0;
11168}
11169_ACEOF
11170if ac_fn_c_try_run "$LINENO"; then :
11171  ac_cv_c_bigendian=no
11172else
11173  ac_cv_c_bigendian=yes
11174fi
11175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11176  conftest.$ac_objext conftest.beam conftest.$ac_ext
11177fi
11178
11179    fi
11180fi
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11182$as_echo "$ac_cv_c_bigendian" >&6; }
11183 case $ac_cv_c_bigendian in #(
11184   yes)
11185     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11186;; #(
11187   no)
11188      ;; #(
11189   universal)
11190
11191$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11192
11193     ;; #(
11194   *)
11195     as_fn_error $? "unknown endianness
11196 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11197 esac
11198
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11200$as_echo_n "checking for inline... " >&6; }
11201if ${ac_cv_c_inline+:} false; then :
11202  $as_echo_n "(cached) " >&6
11203else
11204  ac_cv_c_inline=no
11205for ac_kw in inline __inline__ __inline; do
11206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207/* end confdefs.h.  */
11208#ifndef __cplusplus
11209typedef int foo_t;
11210static $ac_kw foo_t static_foo () {return 0; }
11211$ac_kw foo_t foo () {return 0; }
11212#endif
11213
11214_ACEOF
11215if ac_fn_c_try_compile "$LINENO"; then :
11216  ac_cv_c_inline=$ac_kw
11217fi
11218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219  test "$ac_cv_c_inline" != no && break
11220done
11221
11222fi
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11224$as_echo "$ac_cv_c_inline" >&6; }
11225
11226case $ac_cv_c_inline in
11227  inline | yes) ;;
11228  *)
11229    case $ac_cv_c_inline in
11230      no) ac_val=;;
11231      *) ac_val=$ac_cv_c_inline;;
11232    esac
11233    cat >>confdefs.h <<_ACEOF
11234#ifndef __cplusplus
11235#define inline $ac_val
11236#endif
11237_ACEOF
11238    ;;
11239esac
11240
11241
11242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11243$as_echo_n "checking for rlim_t... " >&6; }
11244if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11246$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11247else
11248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249/* end confdefs.h.  */
11250
11251#include <sys/types.h>
11252#if STDC_HEADERS
11253# include <stdlib.h>
11254# include <stddef.h>
11255#endif
11256#ifdef HAVE_SYS_RESOURCE_H
11257# include <sys/resource.h>
11258#endif
11259
11260_ACEOF
11261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11262  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11263  ac_cv_type_rlim_t=yes
11264else
11265  ac_cv_type_rlim_t=no
11266fi
11267rm -f conftest*
11268
11269	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11270$as_echo "$ac_cv_type_rlim_t" >&6; }
11271fi
11272if test $ac_cv_type_rlim_t = no; then
11273  cat >> confdefs.h <<\EOF
11274#define rlim_t unsigned long
11275EOF
11276fi
11277
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11279$as_echo_n "checking for stack_t... " >&6; }
11280if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11282$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11283else
11284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285/* end confdefs.h.  */
11286
11287#include <sys/types.h>
11288#if STDC_HEADERS
11289# include <stdlib.h>
11290# include <stddef.h>
11291#endif
11292#include <signal.h>
11293
11294_ACEOF
11295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11296  $EGREP "stack_t" >/dev/null 2>&1; then :
11297  ac_cv_type_stack_t=yes
11298else
11299  ac_cv_type_stack_t=no
11300fi
11301rm -f conftest*
11302
11303	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11304$as_echo "$ac_cv_type_stack_t" >&6; }
11305fi
11306if test $ac_cv_type_stack_t = no; then
11307  cat >> confdefs.h <<\EOF
11308#define stack_t struct sigaltstack
11309EOF
11310fi
11311
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11313$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315/* end confdefs.h.  */
11316
11317#include <sys/types.h>
11318#if STDC_HEADERS
11319# include <stdlib.h>
11320# include <stddef.h>
11321#endif
11322#include <signal.h>
11323#include "confdefs.h"
11324
11325int
11326main ()
11327{
11328stack_t sigstk; sigstk.ss_base = 0;
11329  ;
11330  return 0;
11331}
11332_ACEOF
11333if ac_fn_c_try_compile "$LINENO"; then :
11334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11335$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11336
11337else
11338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339$as_echo "no" >&6; }
11340fi
11341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11342
11343olibs="$LIBS"
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11345$as_echo_n "checking --with-tlib argument... " >&6; }
11346
11347# Check whether --with-tlib was given.
11348if test "${with_tlib+set}" = set; then :
11349  withval=$with_tlib;
11350fi
11351
11352if test -n "$with_tlib"; then
11353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11354$as_echo "$with_tlib" >&6; }
11355  LIBS="$LIBS -l$with_tlib"
11356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11357$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359/* end confdefs.h.  */
11360
11361int
11362main ()
11363{
11364
11365  ;
11366  return 0;
11367}
11368_ACEOF
11369if ac_fn_c_try_link "$LINENO"; then :
11370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
11371$as_echo "OK" >&6; }
11372else
11373  as_fn_error $? "FAILED" "$LINENO" 5
11374fi
11375rm -f core conftest.err conftest.$ac_objext \
11376    conftest$ac_exeext conftest.$ac_ext
11377    olibs="$LIBS"
11378else
11379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
11380$as_echo "empty: automatic terminal library selection" >&6; }
11381                case "`uname -s 2>/dev/null`" in
11382	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
11383	*)	tlibs="tinfo ncurses termlib termcap curses";;
11384  esac
11385  for libname in $tlibs; do
11386    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
11388$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
11389if eval \${$as_ac_Lib+:} false; then :
11390  $as_echo_n "(cached) " >&6
11391else
11392  ac_check_lib_save_LIBS=$LIBS
11393LIBS="-l${libname}  $LIBS"
11394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395/* end confdefs.h.  */
11396
11397/* Override any GCC internal prototype to avoid an error.
11398   Use char because int might match the return type of a GCC
11399   builtin and then its argument prototype would still apply.  */
11400#ifdef __cplusplus
11401extern "C"
11402#endif
11403char tgetent ();
11404int
11405main ()
11406{
11407return tgetent ();
11408  ;
11409  return 0;
11410}
11411_ACEOF
11412if ac_fn_c_try_link "$LINENO"; then :
11413  eval "$as_ac_Lib=yes"
11414else
11415  eval "$as_ac_Lib=no"
11416fi
11417rm -f core conftest.err conftest.$ac_objext \
11418    conftest$ac_exeext conftest.$ac_ext
11419LIBS=$ac_check_lib_save_LIBS
11420fi
11421eval ac_res=\$$as_ac_Lib
11422	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11423$as_echo "$ac_res" >&6; }
11424if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11425  cat >>confdefs.h <<_ACEOF
11426#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11427_ACEOF
11428
11429  LIBS="-l${libname} $LIBS"
11430
11431fi
11432
11433    if test "x$olibs" != "x$LIBS"; then
11434                        if test "$cross_compiling" = yes; then :
11435  res="FAIL"
11436else
11437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438/* end confdefs.h.  */
11439
11440#ifdef HAVE_TERMCAP_H
11441# include <termcap.h>
11442#endif
11443#if STDC_HEADERS
11444# include <stdlib.h>
11445# include <stddef.h>
11446#endif
11447main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11448_ACEOF
11449if ac_fn_c_try_run "$LINENO"; then :
11450  res="OK"
11451else
11452  res="FAIL"
11453fi
11454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11455  conftest.$ac_objext conftest.beam conftest.$ac_ext
11456fi
11457
11458      if test "$res" = "OK"; then
11459	break
11460      fi
11461      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
11462$as_echo "$libname library is not usable" >&6; }
11463      LIBS="$olibs"
11464    fi
11465  done
11466  if test "x$olibs" = "x$LIBS"; then
11467    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
11468$as_echo "no terminal library found" >&6; }
11469  fi
11470fi
11471
11472if test "x$olibs" = "x$LIBS"; then
11473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
11474$as_echo_n "checking for tgetent()... " >&6; }
11475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476/* end confdefs.h.  */
11477
11478int
11479main ()
11480{
11481char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11482  ;
11483  return 0;
11484}
11485_ACEOF
11486if ac_fn_c_try_link "$LINENO"; then :
11487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11488$as_echo "yes" >&6; }
11489else
11490  as_fn_error $? "NOT FOUND!
11491      You need to install a terminal library; for example ncurses.
11492      Or specify the name of the library with --with-tlib." "$LINENO" 5
11493fi
11494rm -f core conftest.err conftest.$ac_objext \
11495    conftest$ac_exeext conftest.$ac_ext
11496fi
11497
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
11499$as_echo_n "checking whether we talk terminfo... " >&6; }
11500if ${vim_cv_terminfo+:} false; then :
11501  $as_echo_n "(cached) " >&6
11502else
11503
11504    if test "$cross_compiling" = yes; then :
11505
11506      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
11507
11508else
11509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510/* end confdefs.h.  */
11511
11512#include "confdefs.h"
11513#ifdef HAVE_TERMCAP_H
11514# include <termcap.h>
11515#endif
11516#ifdef HAVE_STRING_H
11517# include <string.h>
11518#endif
11519#if STDC_HEADERS
11520# include <stdlib.h>
11521# include <stddef.h>
11522#endif
11523main()
11524{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11525
11526_ACEOF
11527if ac_fn_c_try_run "$LINENO"; then :
11528
11529      vim_cv_terminfo=no
11530
11531else
11532
11533      vim_cv_terminfo=yes
11534
11535fi
11536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11537  conftest.$ac_objext conftest.beam conftest.$ac_ext
11538fi
11539
11540
11541fi
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
11543$as_echo "$vim_cv_terminfo" >&6; }
11544
11545if test "x$vim_cv_terminfo" = "xyes" ; then
11546  $as_echo "#define TERMINFO 1" >>confdefs.h
11547
11548fi
11549
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
11551$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
11552if ${vim_cv_tgent+:} false; then :
11553  $as_echo_n "(cached) " >&6
11554else
11555
11556    if test "$cross_compiling" = yes; then :
11557
11558      as_fn_error $? "failed to compile test program." "$LINENO" 5
11559
11560else
11561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562/* end confdefs.h.  */
11563
11564#include "confdefs.h"
11565#ifdef HAVE_TERMCAP_H
11566# include <termcap.h>
11567#endif
11568#if STDC_HEADERS
11569# include <stdlib.h>
11570# include <stddef.h>
11571#endif
11572main()
11573{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
11574
11575_ACEOF
11576if ac_fn_c_try_run "$LINENO"; then :
11577
11578      vim_cv_tgent=zero
11579
11580else
11581
11582      vim_cv_tgent=non-zero
11583
11584fi
11585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11586  conftest.$ac_objext conftest.beam conftest.$ac_ext
11587fi
11588
11589
11590fi
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5
11592$as_echo "$vim_cv_tgent" >&6; }
11593
11594if test "x$vim_cv_tgent" = "xzero" ; then
11595  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
11596
11597fi
11598
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
11600$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
11601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602/* end confdefs.h.  */
11603
11604#ifdef HAVE_TERMCAP_H
11605# include <termcap.h>
11606#endif
11607
11608int
11609main ()
11610{
11611ospeed = 20000
11612  ;
11613  return 0;
11614}
11615_ACEOF
11616if ac_fn_c_try_link "$LINENO"; then :
11617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11618$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
11619
11620else
11621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622$as_echo "no" >&6; }
11623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
11624$as_echo_n "checking whether ospeed can be extern... " >&6; }
11625	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626/* end confdefs.h.  */
11627
11628#ifdef HAVE_TERMCAP_H
11629# include <termcap.h>
11630#endif
11631extern short ospeed;
11632
11633int
11634main ()
11635{
11636ospeed = 20000
11637  ;
11638  return 0;
11639}
11640_ACEOF
11641if ac_fn_c_try_link "$LINENO"; then :
11642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11643$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
11644
11645else
11646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647$as_echo "no" >&6; }
11648fi
11649rm -f core conftest.err conftest.$ac_objext \
11650    conftest$ac_exeext conftest.$ac_ext
11651
11652fi
11653rm -f core conftest.err conftest.$ac_objext \
11654    conftest$ac_exeext conftest.$ac_ext
11655
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
11657$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
11658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659/* end confdefs.h.  */
11660
11661#ifdef HAVE_TERMCAP_H
11662# include <termcap.h>
11663#endif
11664
11665int
11666main ()
11667{
11668if (UP == 0 && BC == 0) PC = 1
11669  ;
11670  return 0;
11671}
11672_ACEOF
11673if ac_fn_c_try_link "$LINENO"; then :
11674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11675$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
11676
11677else
11678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679$as_echo "no" >&6; }
11680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
11681$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
11682	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683/* end confdefs.h.  */
11684
11685#ifdef HAVE_TERMCAP_H
11686# include <termcap.h>
11687#endif
11688extern char *UP, *BC, PC;
11689
11690int
11691main ()
11692{
11693if (UP == 0 && BC == 0) PC = 1
11694  ;
11695  return 0;
11696}
11697_ACEOF
11698if ac_fn_c_try_link "$LINENO"; then :
11699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11700$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
11701
11702else
11703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704$as_echo "no" >&6; }
11705fi
11706rm -f core conftest.err conftest.$ac_objext \
11707    conftest$ac_exeext conftest.$ac_ext
11708
11709fi
11710rm -f core conftest.err conftest.$ac_objext \
11711    conftest$ac_exeext conftest.$ac_ext
11712
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
11714$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
11715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716/* end confdefs.h.  */
11717
11718#ifdef HAVE_TERMCAP_H
11719# include <termcap.h>
11720#endif
11721
11722int
11723main ()
11724{
11725extern int xx(); tputs("test", 1, (outfuntype)xx)
11726  ;
11727  return 0;
11728}
11729_ACEOF
11730if ac_fn_c_try_compile "$LINENO"; then :
11731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11732$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
11733
11734else
11735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
11737fi
11738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
11741$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
11742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743/* end confdefs.h.  */
11744
11745#include <sys/types.h>
11746#include <sys/time.h>
11747#include <sys/select.h>
11748int
11749main ()
11750{
11751
11752  ;
11753  return 0;
11754}
11755_ACEOF
11756if ac_fn_c_try_compile "$LINENO"; then :
11757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758$as_echo "yes" >&6; }
11759			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
11760
11761else
11762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
11764fi
11765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11766
11767
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
11769$as_echo_n "checking for /dev/ptc... " >&6; }
11770if test -r /dev/ptc; then
11771  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
11772
11773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11774$as_echo "yes" >&6; }
11775else
11776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777$as_echo "no" >&6; }
11778fi
11779
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
11781$as_echo_n "checking for SVR4 ptys... " >&6; }
11782if test -c /dev/ptmx ; then
11783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784/* end confdefs.h.  */
11785
11786int
11787main ()
11788{
11789ptsname(0);grantpt(0);unlockpt(0);
11790  ;
11791  return 0;
11792}
11793_ACEOF
11794if ac_fn_c_try_link "$LINENO"; then :
11795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11796$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
11797
11798else
11799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800$as_echo "no" >&6; }
11801fi
11802rm -f core conftest.err conftest.$ac_objext \
11803    conftest$ac_exeext conftest.$ac_ext
11804else
11805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806$as_echo "no" >&6; }
11807fi
11808
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
11810$as_echo_n "checking for ptyranges... " >&6; }
11811if test -d /dev/ptym ; then
11812  pdir='/dev/ptym'
11813else
11814  pdir='/dev'
11815fi
11816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817/* end confdefs.h.  */
11818#ifdef M_UNIX
11819   yes;
11820#endif
11821
11822_ACEOF
11823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11824  $EGREP "yes" >/dev/null 2>&1; then :
11825  ptys=`echo /dev/ptyp??`
11826else
11827  ptys=`echo $pdir/pty??`
11828fi
11829rm -f conftest*
11830
11831if test "$ptys" != "$pdir/pty??" ; then
11832  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
11833  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
11834  cat >>confdefs.h <<_ACEOF
11835#define PTYRANGE0 "$p0"
11836_ACEOF
11837
11838  cat >>confdefs.h <<_ACEOF
11839#define PTYRANGE1 "$p1"
11840_ACEOF
11841
11842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
11843$as_echo "$p0 / $p1" >&6; }
11844else
11845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
11846$as_echo "don't know" >&6; }
11847fi
11848
11849rm -f conftest_grp
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
11851$as_echo_n "checking default tty permissions/group... " >&6; }
11852if ${vim_cv_tty_group+:} false; then :
11853  $as_echo_n "(cached) " >&6
11854else
11855
11856    if test "$cross_compiling" = yes; then :
11857
11858      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
11859
11860else
11861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862/* end confdefs.h.  */
11863
11864#include "confdefs.h"
11865#include <sys/types.h>
11866#if STDC_HEADERS
11867# include <stdlib.h>
11868# include <stddef.h>
11869#endif
11870#ifdef HAVE_UNISTD_H
11871#include <unistd.h>
11872#endif
11873#include <sys/stat.h>
11874#include <stdio.h>
11875main()
11876{
11877  struct stat sb;
11878  char *x,*ttyname();
11879  int om, m;
11880  FILE *fp;
11881
11882  if (!(x = ttyname(0))) exit(1);
11883  if (stat(x, &sb)) exit(1);
11884  om = sb.st_mode;
11885  if (om & 002) exit(0);
11886  m = system("mesg y");
11887  if (m == -1 || m == 127) exit(1);
11888  if (stat(x, &sb)) exit(1);
11889  m = sb.st_mode;
11890  if (chmod(x, om)) exit(1);
11891  if (m & 002) exit(0);
11892  if (sb.st_gid == getgid()) exit(1);
11893  if (!(fp=fopen("conftest_grp", "w")))
11894    exit(1);
11895  fprintf(fp, "%d\n", sb.st_gid);
11896  fclose(fp);
11897  exit(0);
11898}
11899
11900_ACEOF
11901if ac_fn_c_try_run "$LINENO"; then :
11902
11903      if test -f conftest_grp; then
11904	vim_cv_tty_group=`cat conftest_grp`
11905	if test "x$vim_cv_tty_mode" = "x" ; then
11906	  vim_cv_tty_mode=0620
11907	fi
11908	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
11909$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
11910      else
11911	vim_cv_tty_group=world
11912	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
11913$as_echo "ptys are world accessible" >&6; }
11914      fi
11915
11916else
11917
11918      vim_cv_tty_group=world
11919      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
11920$as_echo "can't determine - assume ptys are world accessible" >&6; }
11921
11922fi
11923rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11924  conftest.$ac_objext conftest.beam conftest.$ac_ext
11925fi
11926
11927
11928fi
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
11930$as_echo "$vim_cv_tty_group" >&6; }
11931rm -f conftest_grp
11932
11933if test "x$vim_cv_tty_group" != "xworld" ; then
11934  cat >>confdefs.h <<_ACEOF
11935#define PTYGROUP $vim_cv_tty_group
11936_ACEOF
11937
11938  if test "x$vim_cv_tty_mode" = "x" ; then
11939    as_fn_error $? "It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (probably 0620)" "$LINENO" 5
11940  else
11941    $as_echo "#define PTYMODE 0620" >>confdefs.h
11942
11943  fi
11944fi
11945
11946
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11948$as_echo_n "checking return type of signal handlers... " >&6; }
11949if ${ac_cv_type_signal+:} false; then :
11950  $as_echo_n "(cached) " >&6
11951else
11952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953/* end confdefs.h.  */
11954#include <sys/types.h>
11955#include <signal.h>
11956
11957int
11958main ()
11959{
11960return *(signal (0, 0)) (0) == 1;
11961  ;
11962  return 0;
11963}
11964_ACEOF
11965if ac_fn_c_try_compile "$LINENO"; then :
11966  ac_cv_type_signal=int
11967else
11968  ac_cv_type_signal=void
11969fi
11970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11973$as_echo "$ac_cv_type_signal" >&6; }
11974
11975cat >>confdefs.h <<_ACEOF
11976#define RETSIGTYPE $ac_cv_type_signal
11977_ACEOF
11978
11979
11980
11981if test $ac_cv_type_signal = void; then
11982  $as_echo "#define SIGRETURN return" >>confdefs.h
11983
11984else
11985  $as_echo "#define SIGRETURN return 0" >>confdefs.h
11986
11987fi
11988
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
11990$as_echo_n "checking for struct sigcontext... " >&6; }
11991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992/* end confdefs.h.  */
11993
11994#include <signal.h>
11995test_sig()
11996{
11997    struct sigcontext *scont;
11998    scont = (struct sigcontext *)0;
11999    return 1;
12000}
12001int
12002main ()
12003{
12004
12005  ;
12006  return 0;
12007}
12008_ACEOF
12009if ac_fn_c_try_compile "$LINENO"; then :
12010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12011$as_echo "yes" >&6; }
12012		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12013
12014else
12015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016$as_echo "no" >&6; }
12017fi
12018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12021$as_echo_n "checking getcwd implementation is broken... " >&6; }
12022if ${vim_cv_getcwd_broken+:} false; then :
12023  $as_echo_n "(cached) " >&6
12024else
12025
12026    if test "$cross_compiling" = yes; then :
12027
12028      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12029
12030else
12031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032/* end confdefs.h.  */
12033
12034#include "confdefs.h"
12035#ifdef HAVE_UNISTD_H
12036#include <unistd.h>
12037#endif
12038char *dagger[] = { "IFS=pwd", 0 };
12039main()
12040{
12041  char buffer[500];
12042  extern char **environ;
12043  environ = dagger;
12044  return getcwd(buffer, 500) ? 0 : 1;
12045}
12046
12047_ACEOF
12048if ac_fn_c_try_run "$LINENO"; then :
12049
12050      vim_cv_getcwd_broken=no
12051
12052else
12053
12054      vim_cv_getcwd_broken=yes
12055
12056fi
12057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12058  conftest.$ac_objext conftest.beam conftest.$ac_ext
12059fi
12060
12061
12062fi
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12064$as_echo "$vim_cv_getcwd_broken" >&6; }
12065
12066if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12067  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12068
12069fi
12070
12071for ac_func in fchdir fchown fsync getcwd getpseudotty \
12072	getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \
12073	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12074	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12075	sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
12076	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12077	usleep utime utimes
12078do :
12079  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12080ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12081if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12082  cat >>confdefs.h <<_ACEOF
12083#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12084_ACEOF
12085
12086fi
12087done
12088
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12090$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12091if ${ac_cv_sys_largefile_source+:} false; then :
12092  $as_echo_n "(cached) " >&6
12093else
12094  while :; do
12095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096/* end confdefs.h.  */
12097#include <sys/types.h> /* for off_t */
12098     #include <stdio.h>
12099int
12100main ()
12101{
12102int (*fp) (FILE *, off_t, int) = fseeko;
12103     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12104  ;
12105  return 0;
12106}
12107_ACEOF
12108if ac_fn_c_try_link "$LINENO"; then :
12109  ac_cv_sys_largefile_source=no; break
12110fi
12111rm -f core conftest.err conftest.$ac_objext \
12112    conftest$ac_exeext conftest.$ac_ext
12113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h.  */
12115#define _LARGEFILE_SOURCE 1
12116#include <sys/types.h> /* for off_t */
12117     #include <stdio.h>
12118int
12119main ()
12120{
12121int (*fp) (FILE *, off_t, int) = fseeko;
12122     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12123  ;
12124  return 0;
12125}
12126_ACEOF
12127if ac_fn_c_try_link "$LINENO"; then :
12128  ac_cv_sys_largefile_source=1; break
12129fi
12130rm -f core conftest.err conftest.$ac_objext \
12131    conftest$ac_exeext conftest.$ac_ext
12132  ac_cv_sys_largefile_source=unknown
12133  break
12134done
12135fi
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12137$as_echo "$ac_cv_sys_largefile_source" >&6; }
12138case $ac_cv_sys_largefile_source in #(
12139  no | unknown) ;;
12140  *)
12141cat >>confdefs.h <<_ACEOF
12142#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12143_ACEOF
12144;;
12145esac
12146rm -rf conftest*
12147
12148# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12149# in glibc 2.1.3, but that breaks too many other things.
12150# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12151if test $ac_cv_sys_largefile_source != unknown; then
12152
12153$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12154
12155fi
12156
12157
12158# Check whether --enable-largefile was given.
12159if test "${enable_largefile+set}" = set; then :
12160  enableval=$enable_largefile;
12161fi
12162
12163if test "$enable_largefile" != no; then
12164
12165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12166$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12167if ${ac_cv_sys_largefile_CC+:} false; then :
12168  $as_echo_n "(cached) " >&6
12169else
12170  ac_cv_sys_largefile_CC=no
12171     if test "$GCC" != yes; then
12172       ac_save_CC=$CC
12173       while :; do
12174	 # IRIX 6.2 and later do not support large files by default,
12175	 # so use the C compiler's -n32 option if that helps.
12176	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177/* end confdefs.h.  */
12178#include <sys/types.h>
12179 /* Check that off_t can represent 2**63 - 1 correctly.
12180    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12181    since some C++ compilers masquerading as C compilers
12182    incorrectly reject 9223372036854775807.  */
12183#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12184  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12185		       && LARGE_OFF_T % 2147483647 == 1)
12186		      ? 1 : -1];
12187int
12188main ()
12189{
12190
12191  ;
12192  return 0;
12193}
12194_ACEOF
12195	 if ac_fn_c_try_compile "$LINENO"; then :
12196  break
12197fi
12198rm -f core conftest.err conftest.$ac_objext
12199	 CC="$CC -n32"
12200	 if ac_fn_c_try_compile "$LINENO"; then :
12201  ac_cv_sys_largefile_CC=' -n32'; break
12202fi
12203rm -f core conftest.err conftest.$ac_objext
12204	 break
12205       done
12206       CC=$ac_save_CC
12207       rm -f conftest.$ac_ext
12208    fi
12209fi
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12211$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12212  if test "$ac_cv_sys_largefile_CC" != no; then
12213    CC=$CC$ac_cv_sys_largefile_CC
12214  fi
12215
12216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12217$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12218if ${ac_cv_sys_file_offset_bits+:} false; then :
12219  $as_echo_n "(cached) " >&6
12220else
12221  while :; do
12222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223/* end confdefs.h.  */
12224#include <sys/types.h>
12225 /* Check that off_t can represent 2**63 - 1 correctly.
12226    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12227    since some C++ compilers masquerading as C compilers
12228    incorrectly reject 9223372036854775807.  */
12229#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12230  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12231		       && LARGE_OFF_T % 2147483647 == 1)
12232		      ? 1 : -1];
12233int
12234main ()
12235{
12236
12237  ;
12238  return 0;
12239}
12240_ACEOF
12241if ac_fn_c_try_compile "$LINENO"; then :
12242  ac_cv_sys_file_offset_bits=no; break
12243fi
12244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246/* end confdefs.h.  */
12247#define _FILE_OFFSET_BITS 64
12248#include <sys/types.h>
12249 /* Check that off_t can represent 2**63 - 1 correctly.
12250    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12251    since some C++ compilers masquerading as C compilers
12252    incorrectly reject 9223372036854775807.  */
12253#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12254  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12255		       && LARGE_OFF_T % 2147483647 == 1)
12256		      ? 1 : -1];
12257int
12258main ()
12259{
12260
12261  ;
12262  return 0;
12263}
12264_ACEOF
12265if ac_fn_c_try_compile "$LINENO"; then :
12266  ac_cv_sys_file_offset_bits=64; break
12267fi
12268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269  ac_cv_sys_file_offset_bits=unknown
12270  break
12271done
12272fi
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12274$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12275case $ac_cv_sys_file_offset_bits in #(
12276  no | unknown) ;;
12277  *)
12278cat >>confdefs.h <<_ACEOF
12279#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12280_ACEOF
12281;;
12282esac
12283rm -rf conftest*
12284  if test $ac_cv_sys_file_offset_bits = unknown; then
12285    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12286$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12287if ${ac_cv_sys_large_files+:} false; then :
12288  $as_echo_n "(cached) " >&6
12289else
12290  while :; do
12291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292/* end confdefs.h.  */
12293#include <sys/types.h>
12294 /* Check that off_t can represent 2**63 - 1 correctly.
12295    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12296    since some C++ compilers masquerading as C compilers
12297    incorrectly reject 9223372036854775807.  */
12298#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12299  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12300		       && LARGE_OFF_T % 2147483647 == 1)
12301		      ? 1 : -1];
12302int
12303main ()
12304{
12305
12306  ;
12307  return 0;
12308}
12309_ACEOF
12310if ac_fn_c_try_compile "$LINENO"; then :
12311  ac_cv_sys_large_files=no; break
12312fi
12313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315/* end confdefs.h.  */
12316#define _LARGE_FILES 1
12317#include <sys/types.h>
12318 /* Check that off_t can represent 2**63 - 1 correctly.
12319    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12320    since some C++ compilers masquerading as C compilers
12321    incorrectly reject 9223372036854775807.  */
12322#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12323  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12324		       && LARGE_OFF_T % 2147483647 == 1)
12325		      ? 1 : -1];
12326int
12327main ()
12328{
12329
12330  ;
12331  return 0;
12332}
12333_ACEOF
12334if ac_fn_c_try_compile "$LINENO"; then :
12335  ac_cv_sys_large_files=1; break
12336fi
12337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338  ac_cv_sys_large_files=unknown
12339  break
12340done
12341fi
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12343$as_echo "$ac_cv_sys_large_files" >&6; }
12344case $ac_cv_sys_large_files in #(
12345  no | unknown) ;;
12346  *)
12347cat >>confdefs.h <<_ACEOF
12348#define _LARGE_FILES $ac_cv_sys_large_files
12349_ACEOF
12350;;
12351esac
12352rm -rf conftest*
12353  fi
12354
12355
12356fi
12357
12358
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
12360$as_echo_n "checking for st_blksize... " >&6; }
12361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362/* end confdefs.h.  */
12363#include <sys/types.h>
12364#include <sys/stat.h>
12365int
12366main ()
12367{
12368	struct stat st;
12369	int n;
12370
12371	stat("/", &st);
12372	n = (int)st.st_blksize;
12373  ;
12374  return 0;
12375}
12376_ACEOF
12377if ac_fn_c_try_compile "$LINENO"; then :
12378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12379$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
12380
12381else
12382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383$as_echo "no" >&6; }
12384fi
12385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386
12387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
12388$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
12389if ${vim_cv_stat_ignores_slash+:} false; then :
12390  $as_echo_n "(cached) " >&6
12391else
12392
12393    if test "$cross_compiling" = yes; then :
12394
12395      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
12396
12397else
12398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399/* end confdefs.h.  */
12400
12401#include "confdefs.h"
12402#if STDC_HEADERS
12403# include <stdlib.h>
12404# include <stddef.h>
12405#endif
12406#include <sys/types.h>
12407#include <sys/stat.h>
12408main() {struct stat st;  exit(stat("configure/", &st) != 0); }
12409
12410_ACEOF
12411if ac_fn_c_try_run "$LINENO"; then :
12412
12413      vim_cv_stat_ignores_slash=yes
12414
12415else
12416
12417      vim_cv_stat_ignores_slash=no
12418
12419fi
12420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12421  conftest.$ac_objext conftest.beam conftest.$ac_ext
12422fi
12423
12424
12425fi
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
12427$as_echo "$vim_cv_stat_ignores_slash" >&6; }
12428
12429if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
12430  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
12431
12432fi
12433
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
12435$as_echo_n "checking for iconv_open()... " >&6; }
12436save_LIBS="$LIBS"
12437LIBS="$LIBS -liconv"
12438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439/* end confdefs.h.  */
12440
12441#ifdef HAVE_ICONV_H
12442# include <iconv.h>
12443#endif
12444
12445int
12446main ()
12447{
12448iconv_open("fr", "to");
12449  ;
12450  return 0;
12451}
12452_ACEOF
12453if ac_fn_c_try_link "$LINENO"; then :
12454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
12455$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12456
12457else
12458  LIBS="$save_LIBS"
12459    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460/* end confdefs.h.  */
12461
12462#ifdef HAVE_ICONV_H
12463# include <iconv.h>
12464#endif
12465
12466int
12467main ()
12468{
12469iconv_open("fr", "to");
12470  ;
12471  return 0;
12472}
12473_ACEOF
12474if ac_fn_c_try_link "$LINENO"; then :
12475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12476$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12477
12478else
12479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480$as_echo "no" >&6; }
12481fi
12482rm -f core conftest.err conftest.$ac_objext \
12483    conftest$ac_exeext conftest.$ac_ext
12484fi
12485rm -f core conftest.err conftest.$ac_objext \
12486    conftest$ac_exeext conftest.$ac_ext
12487
12488
12489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
12490$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
12491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492/* end confdefs.h.  */
12493
12494#ifdef HAVE_LANGINFO_H
12495# include <langinfo.h>
12496#endif
12497
12498int
12499main ()
12500{
12501char *cs = nl_langinfo(CODESET);
12502  ;
12503  return 0;
12504}
12505_ACEOF
12506if ac_fn_c_try_link "$LINENO"; then :
12507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12508$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
12509
12510else
12511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512$as_echo "no" >&6; }
12513fi
12514rm -f core conftest.err conftest.$ac_objext \
12515    conftest$ac_exeext conftest.$ac_ext
12516
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
12518$as_echo_n "checking for strtod in -lm... " >&6; }
12519if ${ac_cv_lib_m_strtod+:} false; then :
12520  $as_echo_n "(cached) " >&6
12521else
12522  ac_check_lib_save_LIBS=$LIBS
12523LIBS="-lm  $LIBS"
12524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525/* end confdefs.h.  */
12526
12527/* Override any GCC internal prototype to avoid an error.
12528   Use char because int might match the return type of a GCC
12529   builtin and then its argument prototype would still apply.  */
12530#ifdef __cplusplus
12531extern "C"
12532#endif
12533char strtod ();
12534int
12535main ()
12536{
12537return strtod ();
12538  ;
12539  return 0;
12540}
12541_ACEOF
12542if ac_fn_c_try_link "$LINENO"; then :
12543  ac_cv_lib_m_strtod=yes
12544else
12545  ac_cv_lib_m_strtod=no
12546fi
12547rm -f core conftest.err conftest.$ac_objext \
12548    conftest$ac_exeext conftest.$ac_ext
12549LIBS=$ac_check_lib_save_LIBS
12550fi
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
12552$as_echo "$ac_cv_lib_m_strtod" >&6; }
12553if test "x$ac_cv_lib_m_strtod" = xyes; then :
12554  cat >>confdefs.h <<_ACEOF
12555#define HAVE_LIBM 1
12556_ACEOF
12557
12558  LIBS="-lm $LIBS"
12559
12560fi
12561
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
12563$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
12564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565/* end confdefs.h.  */
12566
12567#ifdef HAVE_MATH_H
12568# include <math.h>
12569#endif
12570#if STDC_HEADERS
12571# include <stdlib.h>
12572# include <stddef.h>
12573#endif
12574
12575int
12576main ()
12577{
12578char *s; double d;
12579    d = strtod("1.1", &s);
12580    d = fabs(1.11);
12581    d = ceil(1.11);
12582    d = floor(1.11);
12583    d = log10(1.11);
12584    d = pow(1.11, 2.22);
12585    d = sqrt(1.11);
12586    d = sin(1.11);
12587    d = cos(1.11);
12588    d = atan(1.11);
12589
12590  ;
12591  return 0;
12592}
12593_ACEOF
12594if ac_fn_c_try_link "$LINENO"; then :
12595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12596$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
12597
12598else
12599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600$as_echo "no" >&6; }
12601fi
12602rm -f core conftest.err conftest.$ac_objext \
12603    conftest$ac_exeext conftest.$ac_ext
12604
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
12606$as_echo_n "checking for isinf()... " >&6; }
12607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608/* end confdefs.h.  */
12609
12610#ifdef HAVE_MATH_H
12611# include <math.h>
12612#endif
12613#if STDC_HEADERS
12614# include <stdlib.h>
12615# include <stddef.h>
12616#endif
12617
12618int
12619main ()
12620{
12621int r = isinf(1.11);
12622  ;
12623  return 0;
12624}
12625_ACEOF
12626if ac_fn_c_try_link "$LINENO"; then :
12627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12628$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
12629
12630else
12631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632$as_echo "no" >&6; }
12633fi
12634rm -f core conftest.err conftest.$ac_objext \
12635    conftest$ac_exeext conftest.$ac_ext
12636
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
12638$as_echo_n "checking for isnan()... " >&6; }
12639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640/* end confdefs.h.  */
12641
12642#ifdef HAVE_MATH_H
12643# include <math.h>
12644#endif
12645#if STDC_HEADERS
12646# include <stdlib.h>
12647# include <stddef.h>
12648#endif
12649
12650int
12651main ()
12652{
12653int r = isnan(1.11);
12654  ;
12655  return 0;
12656}
12657_ACEOF
12658if ac_fn_c_try_link "$LINENO"; then :
12659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12660$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12661
12662else
12663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664$as_echo "no" >&6; }
12665fi
12666rm -f core conftest.err conftest.$ac_objext \
12667    conftest$ac_exeext conftest.$ac_ext
12668
12669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
12670$as_echo_n "checking --disable-acl argument... " >&6; }
12671# Check whether --enable-acl was given.
12672if test "${enable_acl+set}" = set; then :
12673  enableval=$enable_acl;
12674else
12675  enable_acl="yes"
12676fi
12677
12678if test "$enable_acl" = "yes"; then
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680$as_echo "no" >&6; }
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
12682$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
12683if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
12684  $as_echo_n "(cached) " >&6
12685else
12686  ac_check_lib_save_LIBS=$LIBS
12687LIBS="-lposix1e  $LIBS"
12688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689/* end confdefs.h.  */
12690
12691/* Override any GCC internal prototype to avoid an error.
12692   Use char because int might match the return type of a GCC
12693   builtin and then its argument prototype would still apply.  */
12694#ifdef __cplusplus
12695extern "C"
12696#endif
12697char acl_get_file ();
12698int
12699main ()
12700{
12701return acl_get_file ();
12702  ;
12703  return 0;
12704}
12705_ACEOF
12706if ac_fn_c_try_link "$LINENO"; then :
12707  ac_cv_lib_posix1e_acl_get_file=yes
12708else
12709  ac_cv_lib_posix1e_acl_get_file=no
12710fi
12711rm -f core conftest.err conftest.$ac_objext \
12712    conftest$ac_exeext conftest.$ac_ext
12713LIBS=$ac_check_lib_save_LIBS
12714fi
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
12716$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
12717if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
12718  LIBS="$LIBS -lposix1e"
12719else
12720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
12721$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
12722if ${ac_cv_lib_acl_acl_get_file+:} false; then :
12723  $as_echo_n "(cached) " >&6
12724else
12725  ac_check_lib_save_LIBS=$LIBS
12726LIBS="-lacl  $LIBS"
12727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728/* end confdefs.h.  */
12729
12730/* Override any GCC internal prototype to avoid an error.
12731   Use char because int might match the return type of a GCC
12732   builtin and then its argument prototype would still apply.  */
12733#ifdef __cplusplus
12734extern "C"
12735#endif
12736char acl_get_file ();
12737int
12738main ()
12739{
12740return acl_get_file ();
12741  ;
12742  return 0;
12743}
12744_ACEOF
12745if ac_fn_c_try_link "$LINENO"; then :
12746  ac_cv_lib_acl_acl_get_file=yes
12747else
12748  ac_cv_lib_acl_acl_get_file=no
12749fi
12750rm -f core conftest.err conftest.$ac_objext \
12751    conftest$ac_exeext conftest.$ac_ext
12752LIBS=$ac_check_lib_save_LIBS
12753fi
12754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
12755$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
12756if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
12757  LIBS="$LIBS -lacl"
12758		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
12759$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
12760if ${ac_cv_lib_attr_fgetxattr+:} false; then :
12761  $as_echo_n "(cached) " >&6
12762else
12763  ac_check_lib_save_LIBS=$LIBS
12764LIBS="-lattr  $LIBS"
12765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766/* end confdefs.h.  */
12767
12768/* Override any GCC internal prototype to avoid an error.
12769   Use char because int might match the return type of a GCC
12770   builtin and then its argument prototype would still apply.  */
12771#ifdef __cplusplus
12772extern "C"
12773#endif
12774char fgetxattr ();
12775int
12776main ()
12777{
12778return fgetxattr ();
12779  ;
12780  return 0;
12781}
12782_ACEOF
12783if ac_fn_c_try_link "$LINENO"; then :
12784  ac_cv_lib_attr_fgetxattr=yes
12785else
12786  ac_cv_lib_attr_fgetxattr=no
12787fi
12788rm -f core conftest.err conftest.$ac_objext \
12789    conftest$ac_exeext conftest.$ac_ext
12790LIBS=$ac_check_lib_save_LIBS
12791fi
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
12793$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
12794if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
12795  LIBS="$LIBS -lattr"
12796fi
12797
12798fi
12799
12800fi
12801
12802
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
12804$as_echo_n "checking for POSIX ACL support... " >&6; }
12805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806/* end confdefs.h.  */
12807
12808#include <sys/types.h>
12809#ifdef HAVE_SYS_ACL_H
12810# include <sys/acl.h>
12811#endif
12812acl_t acl;
12813int
12814main ()
12815{
12816acl = acl_get_file("foo", ACL_TYPE_ACCESS);
12817	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
12818	acl_free(acl);
12819  ;
12820  return 0;
12821}
12822_ACEOF
12823if ac_fn_c_try_link "$LINENO"; then :
12824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12825$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
12826
12827else
12828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829$as_echo "no" >&6; }
12830fi
12831rm -f core conftest.err conftest.$ac_objext \
12832    conftest$ac_exeext conftest.$ac_ext
12833
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
12835$as_echo_n "checking for acl_get in -lsec... " >&6; }
12836if ${ac_cv_lib_sec_acl_get+:} false; then :
12837  $as_echo_n "(cached) " >&6
12838else
12839  ac_check_lib_save_LIBS=$LIBS
12840LIBS="-lsec  $LIBS"
12841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842/* end confdefs.h.  */
12843
12844/* Override any GCC internal prototype to avoid an error.
12845   Use char because int might match the return type of a GCC
12846   builtin and then its argument prototype would still apply.  */
12847#ifdef __cplusplus
12848extern "C"
12849#endif
12850char acl_get ();
12851int
12852main ()
12853{
12854return acl_get ();
12855  ;
12856  return 0;
12857}
12858_ACEOF
12859if ac_fn_c_try_link "$LINENO"; then :
12860  ac_cv_lib_sec_acl_get=yes
12861else
12862  ac_cv_lib_sec_acl_get=no
12863fi
12864rm -f core conftest.err conftest.$ac_objext \
12865    conftest$ac_exeext conftest.$ac_ext
12866LIBS=$ac_check_lib_save_LIBS
12867fi
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
12869$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
12870if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
12871  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
12872
12873else
12874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
12875$as_echo_n "checking for Solaris ACL support... " >&6; }
12876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877/* end confdefs.h.  */
12878
12879#ifdef HAVE_SYS_ACL_H
12880# include <sys/acl.h>
12881#endif
12882int
12883main ()
12884{
12885acl("foo", GETACLCNT, 0, NULL);
12886
12887  ;
12888  return 0;
12889}
12890_ACEOF
12891if ac_fn_c_try_link "$LINENO"; then :
12892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12893$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
12894
12895else
12896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897$as_echo "no" >&6; }
12898fi
12899rm -f core conftest.err conftest.$ac_objext \
12900    conftest$ac_exeext conftest.$ac_ext
12901fi
12902
12903
12904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
12905$as_echo_n "checking for AIX ACL support... " >&6; }
12906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907/* end confdefs.h.  */
12908
12909#if STDC_HEADERS
12910# include <stdlib.h>
12911# include <stddef.h>
12912#endif
12913#ifdef HAVE_SYS_ACL_H
12914# include <sys/acl.h>
12915#endif
12916#ifdef HAVE_SYS_ACCESS_H
12917# include <sys/access.h>
12918#endif
12919#define _ALL_SOURCE
12920
12921#include <sys/stat.h>
12922
12923int aclsize;
12924struct acl *aclent;
12925int
12926main ()
12927{
12928aclsize = sizeof(struct acl);
12929	aclent = (void *)malloc(aclsize);
12930	statacl("foo", STX_NORMAL, aclent, aclsize);
12931
12932  ;
12933  return 0;
12934}
12935_ACEOF
12936if ac_fn_c_try_link "$LINENO"; then :
12937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12938$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
12939
12940else
12941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942$as_echo "no" >&6; }
12943fi
12944rm -f core conftest.err conftest.$ac_objext \
12945    conftest$ac_exeext conftest.$ac_ext
12946else
12947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12948$as_echo "yes" >&6; }
12949fi
12950
12951if test "x$GTK_CFLAGS" != "x"; then
12952    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
12953$as_echo_n "checking for pango_shape_full... " >&6; }
12954  ac_save_CFLAGS="$CFLAGS"
12955  ac_save_LIBS="$LIBS"
12956  CFLAGS="$CFLAGS $GTK_CFLAGS"
12957  LIBS="$LIBS $GTK_LIBS"
12958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959/* end confdefs.h.  */
12960#include <gtk/gtk.h>
12961int
12962main ()
12963{
12964 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
12965  ;
12966  return 0;
12967}
12968_ACEOF
12969if ac_fn_c_try_link "$LINENO"; then :
12970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
12972
12973else
12974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975$as_echo "no" >&6; }
12976fi
12977rm -f core conftest.err conftest.$ac_objext \
12978    conftest$ac_exeext conftest.$ac_ext
12979  CFLAGS="$ac_save_CFLAGS"
12980  LIBS="$ac_save_LIBS"
12981fi
12982
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
12984$as_echo_n "checking --disable-gpm argument... " >&6; }
12985# Check whether --enable-gpm was given.
12986if test "${enable_gpm+set}" = set; then :
12987  enableval=$enable_gpm;
12988else
12989  enable_gpm="yes"
12990fi
12991
12992
12993if test "$enable_gpm" = "yes"; then
12994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12995$as_echo "no" >&6; }
12996    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
12997$as_echo_n "checking for gpm... " >&6; }
12998if ${vi_cv_have_gpm+:} false; then :
12999  $as_echo_n "(cached) " >&6
13000else
13001  olibs="$LIBS" ; LIBS="-lgpm"
13002	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003/* end confdefs.h.  */
13004#include <gpm.h>
13005	    #include <linux/keyboard.h>
13006int
13007main ()
13008{
13009Gpm_GetLibVersion(NULL);
13010  ;
13011  return 0;
13012}
13013_ACEOF
13014if ac_fn_c_try_link "$LINENO"; then :
13015  	    	    vi_cv_have_gpm=yes
13016else
13017  vi_cv_have_gpm=no
13018fi
13019rm -f core conftest.err conftest.$ac_objext \
13020    conftest$ac_exeext conftest.$ac_ext
13021	LIBS="$olibs"
13022
13023fi
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13025$as_echo "$vi_cv_have_gpm" >&6; }
13026  if test $vi_cv_have_gpm = yes; then
13027    LIBS="$LIBS -lgpm"
13028    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13029
13030  fi
13031else
13032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13033$as_echo "yes" >&6; }
13034fi
13035
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13037$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13038# Check whether --enable-sysmouse was given.
13039if test "${enable_sysmouse+set}" = set; then :
13040  enableval=$enable_sysmouse;
13041else
13042  enable_sysmouse="yes"
13043fi
13044
13045
13046if test "$enable_sysmouse" = "yes"; then
13047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048$as_echo "no" >&6; }
13049        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13050$as_echo_n "checking for sysmouse... " >&6; }
13051if ${vi_cv_have_sysmouse+:} false; then :
13052  $as_echo_n "(cached) " >&6
13053else
13054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055/* end confdefs.h.  */
13056#include <sys/consio.h>
13057	     #include <signal.h>
13058	     #include <sys/fbio.h>
13059int
13060main ()
13061{
13062struct mouse_info   mouse;
13063	     mouse.operation = MOUSE_MODE;
13064	     mouse.operation = MOUSE_SHOW;
13065	     mouse.u.mode.mode = 0;
13066	     mouse.u.mode.signal = SIGUSR2;
13067  ;
13068  return 0;
13069}
13070_ACEOF
13071if ac_fn_c_try_link "$LINENO"; then :
13072  vi_cv_have_sysmouse=yes
13073else
13074  vi_cv_have_sysmouse=no
13075fi
13076rm -f core conftest.err conftest.$ac_objext \
13077    conftest$ac_exeext conftest.$ac_ext
13078
13079fi
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13081$as_echo "$vi_cv_have_sysmouse" >&6; }
13082  if test $vi_cv_have_sysmouse = yes; then
13083    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13084
13085  fi
13086else
13087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13088$as_echo "yes" >&6; }
13089fi
13090
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13092$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094/* end confdefs.h.  */
13095#if HAVE_FCNTL_H
13096# include <fcntl.h>
13097#endif
13098int
13099main ()
13100{
13101	int flag = FD_CLOEXEC;
13102  ;
13103  return 0;
13104}
13105_ACEOF
13106if ac_fn_c_try_compile "$LINENO"; then :
13107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13108$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13109
13110else
13111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13112$as_echo "not usable" >&6; }
13113fi
13114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13115
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13117$as_echo_n "checking for rename... " >&6; }
13118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119/* end confdefs.h.  */
13120#include <stdio.h>
13121int
13122main ()
13123{
13124rename("this", "that")
13125  ;
13126  return 0;
13127}
13128_ACEOF
13129if ac_fn_c_try_link "$LINENO"; then :
13130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13131$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13132
13133else
13134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135$as_echo "no" >&6; }
13136fi
13137rm -f core conftest.err conftest.$ac_objext \
13138    conftest$ac_exeext conftest.$ac_ext
13139
13140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13141$as_echo_n "checking for sysctl... " >&6; }
13142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143/* end confdefs.h.  */
13144#include <sys/types.h>
13145#include <sys/sysctl.h>
13146int
13147main ()
13148{
13149	int mib[2], r;
13150	size_t len;
13151
13152	mib[0] = CTL_HW;
13153	mib[1] = HW_USERMEM;
13154	len = sizeof(r);
13155	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13156
13157  ;
13158  return 0;
13159}
13160_ACEOF
13161if ac_fn_c_try_compile "$LINENO"; then :
13162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13163$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13164
13165else
13166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13167$as_echo "not usable" >&6; }
13168fi
13169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13172$as_echo_n "checking for sysinfo... " >&6; }
13173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174/* end confdefs.h.  */
13175#include <sys/types.h>
13176#include <sys/sysinfo.h>
13177int
13178main ()
13179{
13180	struct sysinfo sinfo;
13181	int t;
13182
13183	(void)sysinfo(&sinfo);
13184	t = sinfo.totalram;
13185
13186  ;
13187  return 0;
13188}
13189_ACEOF
13190if ac_fn_c_try_compile "$LINENO"; then :
13191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13192$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13193
13194else
13195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13196$as_echo "not usable" >&6; }
13197fi
13198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13201$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203/* end confdefs.h.  */
13204#include <sys/types.h>
13205#include <sys/sysinfo.h>
13206int
13207main ()
13208{
13209	struct sysinfo sinfo;
13210	sinfo.mem_unit = 1;
13211
13212  ;
13213  return 0;
13214}
13215_ACEOF
13216if ac_fn_c_try_compile "$LINENO"; then :
13217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13218$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13219
13220else
13221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222$as_echo "no" >&6; }
13223fi
13224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13227$as_echo_n "checking for sysconf... " >&6; }
13228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229/* end confdefs.h.  */
13230#include <unistd.h>
13231int
13232main ()
13233{
13234	(void)sysconf(_SC_PAGESIZE);
13235	(void)sysconf(_SC_PHYS_PAGES);
13236
13237  ;
13238  return 0;
13239}
13240_ACEOF
13241if ac_fn_c_try_compile "$LINENO"; then :
13242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13243$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13244
13245else
13246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13247$as_echo "not usable" >&6; }
13248fi
13249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250
13251# The cast to long int works around a bug in the HP C Compiler
13252# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13253# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13254# This bug is HP SR number 8606223364.
13255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13256$as_echo_n "checking size of int... " >&6; }
13257if ${ac_cv_sizeof_int+:} false; then :
13258  $as_echo_n "(cached) " >&6
13259else
13260  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13261
13262else
13263  if test "$ac_cv_type_int" = yes; then
13264     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13266as_fn_error 77 "cannot compute sizeof (int)
13267See \`config.log' for more details" "$LINENO" 5; }
13268   else
13269     ac_cv_sizeof_int=0
13270   fi
13271fi
13272
13273fi
13274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13275$as_echo "$ac_cv_sizeof_int" >&6; }
13276
13277
13278
13279cat >>confdefs.h <<_ACEOF
13280#define SIZEOF_INT $ac_cv_sizeof_int
13281_ACEOF
13282
13283
13284# The cast to long int works around a bug in the HP C Compiler
13285# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13286# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13287# This bug is HP SR number 8606223364.
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13289$as_echo_n "checking size of long... " >&6; }
13290if ${ac_cv_sizeof_long+:} false; then :
13291  $as_echo_n "(cached) " >&6
13292else
13293  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13294
13295else
13296  if test "$ac_cv_type_long" = yes; then
13297     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13299as_fn_error 77 "cannot compute sizeof (long)
13300See \`config.log' for more details" "$LINENO" 5; }
13301   else
13302     ac_cv_sizeof_long=0
13303   fi
13304fi
13305
13306fi
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13308$as_echo "$ac_cv_sizeof_long" >&6; }
13309
13310
13311
13312cat >>confdefs.h <<_ACEOF
13313#define SIZEOF_LONG $ac_cv_sizeof_long
13314_ACEOF
13315
13316
13317# The cast to long int works around a bug in the HP C Compiler
13318# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13319# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13320# This bug is HP SR number 8606223364.
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
13322$as_echo_n "checking size of time_t... " >&6; }
13323if ${ac_cv_sizeof_time_t+:} false; then :
13324  $as_echo_n "(cached) " >&6
13325else
13326  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
13327
13328else
13329  if test "$ac_cv_type_time_t" = yes; then
13330     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13332as_fn_error 77 "cannot compute sizeof (time_t)
13333See \`config.log' for more details" "$LINENO" 5; }
13334   else
13335     ac_cv_sizeof_time_t=0
13336   fi
13337fi
13338
13339fi
13340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
13341$as_echo "$ac_cv_sizeof_time_t" >&6; }
13342
13343
13344
13345cat >>confdefs.h <<_ACEOF
13346#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13347_ACEOF
13348
13349
13350# The cast to long int works around a bug in the HP C Compiler
13351# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13352# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13353# This bug is HP SR number 8606223364.
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
13355$as_echo_n "checking size of off_t... " >&6; }
13356if ${ac_cv_sizeof_off_t+:} false; then :
13357  $as_echo_n "(cached) " >&6
13358else
13359  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
13360
13361else
13362  if test "$ac_cv_type_off_t" = yes; then
13363     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13365as_fn_error 77 "cannot compute sizeof (off_t)
13366See \`config.log' for more details" "$LINENO" 5; }
13367   else
13368     ac_cv_sizeof_off_t=0
13369   fi
13370fi
13371
13372fi
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
13374$as_echo "$ac_cv_sizeof_off_t" >&6; }
13375
13376
13377
13378cat >>confdefs.h <<_ACEOF
13379#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13380_ACEOF
13381
13382
13383
13384cat >>confdefs.h <<_ACEOF
13385#define VIM_SIZEOF_INT $ac_cv_sizeof_int
13386_ACEOF
13387
13388cat >>confdefs.h <<_ACEOF
13389#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
13390_ACEOF
13391
13392
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
13394$as_echo_n "checking uint32_t is 32 bits... " >&6; }
13395if test "$cross_compiling" = yes; then :
13396  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
13397$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
13398else
13399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400/* end confdefs.h.  */
13401
13402#ifdef HAVE_STDINT_H
13403# include <stdint.h>
13404#endif
13405#ifdef HAVE_INTTYPES_H
13406# include <inttypes.h>
13407#endif
13408main() {
13409  uint32_t nr1 = (uint32_t)-1;
13410  uint32_t nr2 = (uint32_t)0xffffffffUL;
13411  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
13412  exit(0);
13413}
13414_ACEOF
13415if ac_fn_c_try_run "$LINENO"; then :
13416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13417$as_echo "ok" >&6; }
13418else
13419  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
13420fi
13421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13422  conftest.$ac_objext conftest.beam conftest.$ac_ext
13423fi
13424
13425
13426
13427bcopy_test_prog='
13428#include "confdefs.h"
13429#ifdef HAVE_STRING_H
13430# include <string.h>
13431#endif
13432#if STDC_HEADERS
13433# include <stdlib.h>
13434# include <stddef.h>
13435#endif
13436main() {
13437  char buf[10];
13438  strcpy(buf, "abcdefghi");
13439  mch_memmove(buf, buf + 2, 3);
13440  if (strncmp(buf, "ababcf", 6))
13441    exit(1);
13442  strcpy(buf, "abcdefghi");
13443  mch_memmove(buf + 2, buf, 3);
13444  if (strncmp(buf, "cdedef", 6))
13445    exit(1);
13446  exit(0); /* libc version works properly.  */
13447}'
13448
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
13450$as_echo_n "checking whether memmove handles overlaps... " >&6; }
13451if ${vim_cv_memmove_handles_overlap+:} false; then :
13452  $as_echo_n "(cached) " >&6
13453else
13454
13455    if test "$cross_compiling" = yes; then :
13456
13457	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
13458
13459else
13460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461/* end confdefs.h.  */
13462#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
13463_ACEOF
13464if ac_fn_c_try_run "$LINENO"; then :
13465
13466	vim_cv_memmove_handles_overlap=yes
13467
13468else
13469
13470	vim_cv_memmove_handles_overlap=no
13471
13472fi
13473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13474  conftest.$ac_objext conftest.beam conftest.$ac_ext
13475fi
13476
13477
13478fi
13479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
13480$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
13481
13482if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
13483  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
13484
13485else
13486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
13487$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
13488if ${vim_cv_bcopy_handles_overlap+:} false; then :
13489  $as_echo_n "(cached) " >&6
13490else
13491
13492      if test "$cross_compiling" = yes; then :
13493
13494	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
13495
13496else
13497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498/* end confdefs.h.  */
13499#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
13500_ACEOF
13501if ac_fn_c_try_run "$LINENO"; then :
13502
13503	vim_cv_bcopy_handles_overlap=yes
13504
13505else
13506
13507	vim_cv_bcopy_handles_overlap=no
13508
13509fi
13510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13511  conftest.$ac_objext conftest.beam conftest.$ac_ext
13512fi
13513
13514
13515fi
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
13517$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
13518
13519  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
13520    $as_echo "#define USEBCOPY 1" >>confdefs.h
13521
13522  else
13523    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
13524$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
13525if ${vim_cv_memcpy_handles_overlap+:} false; then :
13526  $as_echo_n "(cached) " >&6
13527else
13528
13529	if test "$cross_compiling" = yes; then :
13530
13531	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
13532
13533else
13534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535/* end confdefs.h.  */
13536#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
13537_ACEOF
13538if ac_fn_c_try_run "$LINENO"; then :
13539
13540	    vim_cv_memcpy_handles_overlap=yes
13541
13542else
13543
13544	    vim_cv_memcpy_handles_overlap=no
13545
13546fi
13547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13548  conftest.$ac_objext conftest.beam conftest.$ac_ext
13549fi
13550
13551
13552fi
13553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
13554$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
13555
13556    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
13557      $as_echo "#define USEMEMCPY 1" >>confdefs.h
13558
13559    fi
13560  fi
13561fi
13562
13563
13564if test "x$with_x" = "xyes"; then
13565  cflags_save=$CFLAGS
13566  libs_save=$LIBS
13567  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
13568  CFLAGS="$CFLAGS $X_CFLAGS"
13569
13570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
13571$as_echo_n "checking whether X_LOCALE needed... " >&6; }
13572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573/* end confdefs.h.  */
13574#include <X11/Xlocale.h>
13575int
13576main ()
13577{
13578
13579  ;
13580  return 0;
13581}
13582_ACEOF
13583if ac_fn_c_try_compile "$LINENO"; then :
13584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585/* end confdefs.h.  */
13586
13587/* Override any GCC internal prototype to avoid an error.
13588   Use char because int might match the return type of a GCC
13589   builtin and then its argument prototype would still apply.  */
13590#ifdef __cplusplus
13591extern "C"
13592#endif
13593char _Xsetlocale ();
13594int
13595main ()
13596{
13597return _Xsetlocale ();
13598  ;
13599  return 0;
13600}
13601_ACEOF
13602if ac_fn_c_try_link "$LINENO"; then :
13603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13604$as_echo "yes" >&6; }
13605	      $as_echo "#define X_LOCALE 1" >>confdefs.h
13606
13607else
13608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609$as_echo "no" >&6; }
13610fi
13611rm -f core conftest.err conftest.$ac_objext \
13612    conftest$ac_exeext conftest.$ac_ext
13613else
13614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615$as_echo "no" >&6; }
13616fi
13617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618
13619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
13620$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
13621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622/* end confdefs.h.  */
13623
13624/* Override any GCC internal prototype to avoid an error.
13625   Use char because int might match the return type of a GCC
13626   builtin and then its argument prototype would still apply.  */
13627#ifdef __cplusplus
13628extern "C"
13629#endif
13630char Xutf8SetWMProperties ();
13631int
13632main ()
13633{
13634return Xutf8SetWMProperties ();
13635  ;
13636  return 0;
13637}
13638_ACEOF
13639if ac_fn_c_try_link "$LINENO"; then :
13640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13641$as_echo "yes" >&6; }
13642	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
13643
13644else
13645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13646$as_echo "no" >&6; }
13647fi
13648rm -f core conftest.err conftest.$ac_objext \
13649    conftest$ac_exeext conftest.$ac_ext
13650
13651  CFLAGS=$cflags_save
13652  LIBS=$libs_save
13653fi
13654
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
13656$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
13657if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
13658  $as_echo_n "(cached) " >&6
13659else
13660  ac_check_lib_save_LIBS=$LIBS
13661LIBS="-lxpg4  $LIBS"
13662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663/* end confdefs.h.  */
13664
13665/* Override any GCC internal prototype to avoid an error.
13666   Use char because int might match the return type of a GCC
13667   builtin and then its argument prototype would still apply.  */
13668#ifdef __cplusplus
13669extern "C"
13670#endif
13671char _xpg4_setrunelocale ();
13672int
13673main ()
13674{
13675return _xpg4_setrunelocale ();
13676  ;
13677  return 0;
13678}
13679_ACEOF
13680if ac_fn_c_try_link "$LINENO"; then :
13681  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
13682else
13683  ac_cv_lib_xpg4__xpg4_setrunelocale=no
13684fi
13685rm -f core conftest.err conftest.$ac_objext \
13686    conftest$ac_exeext conftest.$ac_ext
13687LIBS=$ac_check_lib_save_LIBS
13688fi
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
13690$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
13691if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
13692  LIBS="$LIBS -lxpg4"
13693fi
13694
13695
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
13697$as_echo_n "checking how to create tags... " >&6; }
13698test -f tags && mv tags tags.save
13699if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
13700  TAGPRG="ctags -I INIT+ --fields=+S"
13701elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
13702  TAGPRG="exctags -I INIT+ --fields=+S"
13703elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
13704  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
13705else
13706  TAGPRG="ctags"
13707  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
13708  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
13709  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
13710  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
13711  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
13712  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
13713  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
13714fi
13715test -f tags.save && mv tags.save tags
13716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
13717$as_echo "$TAGPRG" >&6; }
13718
13719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
13720$as_echo_n "checking how to run man with a section nr... " >&6; }
13721MANDEF="man"
13722(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
13724$as_echo "$MANDEF" >&6; }
13725if test "$MANDEF" = "man -s"; then
13726  $as_echo "#define USEMAN_S 1" >>confdefs.h
13727
13728fi
13729
13730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
13731$as_echo_n "checking --disable-nls argument... " >&6; }
13732# Check whether --enable-nls was given.
13733if test "${enable_nls+set}" = set; then :
13734  enableval=$enable_nls;
13735else
13736  enable_nls="yes"
13737fi
13738
13739
13740if test "$enable_nls" = "yes"; then
13741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742$as_echo "no" >&6; }
13743
13744  INSTALL_LANGS=install-languages
13745
13746  INSTALL_TOOL_LANGS=install-tool-languages
13747
13748
13749  # Extract the first word of "msgfmt", so it can be a program name with args.
13750set dummy msgfmt; ac_word=$2
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752$as_echo_n "checking for $ac_word... " >&6; }
13753if ${ac_cv_prog_MSGFMT+:} false; then :
13754  $as_echo_n "(cached) " >&6
13755else
13756  if test -n "$MSGFMT"; then
13757  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
13758else
13759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760for as_dir in $PATH
13761do
13762  IFS=$as_save_IFS
13763  test -z "$as_dir" && as_dir=.
13764    for ac_exec_ext in '' $ac_executable_extensions; do
13765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13766    ac_cv_prog_MSGFMT="msgfmt"
13767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13768    break 2
13769  fi
13770done
13771  done
13772IFS=$as_save_IFS
13773
13774fi
13775fi
13776MSGFMT=$ac_cv_prog_MSGFMT
13777if test -n "$MSGFMT"; then
13778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13779$as_echo "$MSGFMT" >&6; }
13780else
13781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782$as_echo "no" >&6; }
13783fi
13784
13785
13786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
13787$as_echo_n "checking for NLS... " >&6; }
13788  if test -f po/Makefile; then
13789    have_gettext="no"
13790    if test -n "$MSGFMT"; then
13791      olibs=$LIBS
13792      LIBS=""
13793      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794/* end confdefs.h.  */
13795#include <libintl.h>
13796int
13797main ()
13798{
13799gettext("Test");
13800  ;
13801  return 0;
13802}
13803_ACEOF
13804if ac_fn_c_try_link "$LINENO"; then :
13805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
13806$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
13807else
13808  LIBS="-lintl"
13809	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810/* end confdefs.h.  */
13811#include <libintl.h>
13812int
13813main ()
13814{
13815gettext("Test");
13816  ;
13817  return 0;
13818}
13819_ACEOF
13820if ac_fn_c_try_link "$LINENO"; then :
13821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
13822$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
13823	      LIBS="$olibs -lintl"
13824else
13825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
13826$as_echo "gettext() doesn't work" >&6; };
13827	      LIBS=$olibs
13828fi
13829rm -f core conftest.err conftest.$ac_objext \
13830    conftest$ac_exeext conftest.$ac_ext
13831fi
13832rm -f core conftest.err conftest.$ac_objext \
13833    conftest$ac_exeext conftest.$ac_ext
13834    else
13835      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
13836$as_echo "msgfmt not found - disabled" >&6; };
13837    fi
13838    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
13839      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13840
13841      MAKEMO=yes
13842
13843            for ac_func in bind_textdomain_codeset
13844do :
13845  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13846if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
13847  cat >>confdefs.h <<_ACEOF
13848#define HAVE_BIND_TEXTDOMAIN_CODESET 1
13849_ACEOF
13850
13851fi
13852done
13853
13854            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
13855$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
13856      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857/* end confdefs.h.  */
13858#include <libintl.h>
13859		extern int _nl_msg_cat_cntr;
13860int
13861main ()
13862{
13863++_nl_msg_cat_cntr;
13864  ;
13865  return 0;
13866}
13867_ACEOF
13868if ac_fn_c_try_link "$LINENO"; then :
13869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13870$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
13871
13872else
13873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13874$as_echo "no" >&6; }
13875fi
13876rm -f core conftest.err conftest.$ac_objext \
13877    conftest$ac_exeext conftest.$ac_ext
13878    fi
13879  else
13880    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
13881$as_echo "no \"po/Makefile\" - disabled" >&6; };
13882  fi
13883else
13884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13885$as_echo "yes" >&6; }
13886fi
13887
13888ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13889if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13890  DLL=dlfcn.h
13891else
13892  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13893if test "x$ac_cv_header_dl_h" = xyes; then :
13894  DLL=dl.h
13895fi
13896
13897
13898fi
13899
13900
13901if test x${DLL} = xdlfcn.h; then
13902
13903$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
13904
13905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
13906$as_echo_n "checking for dlopen()... " >&6; }
13907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908/* end confdefs.h.  */
13909
13910int
13911main ()
13912{
13913
13914		extern void* dlopen();
13915		dlopen();
13916
13917  ;
13918  return 0;
13919}
13920_ACEOF
13921if ac_fn_c_try_link "$LINENO"; then :
13922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13923$as_echo "yes" >&6; };
13924
13925$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13926
13927else
13928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929$as_echo "no" >&6; };
13930	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
13931$as_echo_n "checking for dlopen() in -ldl... " >&6; }
13932	      olibs=$LIBS
13933	      LIBS="$LIBS -ldl"
13934	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935/* end confdefs.h.  */
13936
13937int
13938main ()
13939{
13940
13941				extern void* dlopen();
13942				dlopen();
13943
13944  ;
13945  return 0;
13946}
13947_ACEOF
13948if ac_fn_c_try_link "$LINENO"; then :
13949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13950$as_echo "yes" >&6; };
13951
13952$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13953
13954else
13955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13956$as_echo "no" >&6; };
13957			  LIBS=$olibs
13958fi
13959rm -f core conftest.err conftest.$ac_objext \
13960    conftest$ac_exeext conftest.$ac_ext
13961fi
13962rm -f core conftest.err conftest.$ac_objext \
13963    conftest$ac_exeext conftest.$ac_ext
13964      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
13965$as_echo_n "checking for dlsym()... " >&6; }
13966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967/* end confdefs.h.  */
13968
13969int
13970main ()
13971{
13972
13973		extern void* dlsym();
13974		dlsym();
13975
13976  ;
13977  return 0;
13978}
13979_ACEOF
13980if ac_fn_c_try_link "$LINENO"; then :
13981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13982$as_echo "yes" >&6; };
13983
13984$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
13985
13986else
13987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13988$as_echo "no" >&6; };
13989	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
13990$as_echo_n "checking for dlsym() in -ldl... " >&6; }
13991	      olibs=$LIBS
13992	      LIBS="$LIBS -ldl"
13993	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994/* end confdefs.h.  */
13995
13996int
13997main ()
13998{
13999
14000				extern void* dlsym();
14001				dlsym();
14002
14003  ;
14004  return 0;
14005}
14006_ACEOF
14007if ac_fn_c_try_link "$LINENO"; then :
14008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14009$as_echo "yes" >&6; };
14010
14011$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14012
14013else
14014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14015$as_echo "no" >&6; };
14016			  LIBS=$olibs
14017fi
14018rm -f core conftest.err conftest.$ac_objext \
14019    conftest$ac_exeext conftest.$ac_ext
14020fi
14021rm -f core conftest.err conftest.$ac_objext \
14022    conftest$ac_exeext conftest.$ac_ext
14023elif test x${DLL} = xdl.h; then
14024
14025$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14026
14027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14028$as_echo_n "checking for shl_load()... " >&6; }
14029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030/* end confdefs.h.  */
14031
14032int
14033main ()
14034{
14035
14036		extern void* shl_load();
14037		shl_load();
14038
14039  ;
14040  return 0;
14041}
14042_ACEOF
14043if ac_fn_c_try_link "$LINENO"; then :
14044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14045$as_echo "yes" >&6; };
14046
14047$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14048
14049else
14050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051$as_echo "no" >&6; };
14052	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14053$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14054	  olibs=$LIBS
14055	  LIBS="$LIBS -ldld"
14056	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057/* end confdefs.h.  */
14058
14059int
14060main ()
14061{
14062
14063			extern void* shl_load();
14064			shl_load();
14065
14066  ;
14067  return 0;
14068}
14069_ACEOF
14070if ac_fn_c_try_link "$LINENO"; then :
14071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14072$as_echo "yes" >&6; };
14073
14074$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14075
14076else
14077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14078$as_echo "no" >&6; };
14079		  LIBS=$olibs
14080fi
14081rm -f core conftest.err conftest.$ac_objext \
14082    conftest$ac_exeext conftest.$ac_ext
14083fi
14084rm -f core conftest.err conftest.$ac_objext \
14085    conftest$ac_exeext conftest.$ac_ext
14086fi
14087for ac_header in setjmp.h
14088do :
14089  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14090if test "x$ac_cv_header_setjmp_h" = xyes; then :
14091  cat >>confdefs.h <<_ACEOF
14092#define HAVE_SETJMP_H 1
14093_ACEOF
14094
14095fi
14096
14097done
14098
14099
14100if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
14101    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14102    LIBS=`echo $LIBS | sed s/-ldl//`
14103    PERL_LIBS="$PERL_LIBS -ldl"
14104  fi
14105fi
14106
14107if test "x$MACOSX" = "xyes"; then
14108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5
14109$as_echo_n "checking whether we need -framework Cocoa... " >&6; }
14110      if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then
14111    LIBS=$"$LIBS -framework Cocoa"
14112    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14113$as_echo "yes" >&6; }
14114  else
14115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14116$as_echo "no" >&6; }
14117  fi
14118        if test "x$features" = "xtiny"; then
14119    OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14120    OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14121  fi
14122fi
14123if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14124  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14125fi
14126
14127DEPEND_CFLAGS_FILTER=
14128if test "$GCC" = yes; then
14129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14130$as_echo_n "checking for GCC 3 or later... " >&6; }
14131  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
14132  if test "$gccmajor" -gt "2"; then
14133    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14135$as_echo "yes" >&6; }
14136  else
14137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138$as_echo "no" >&6; }
14139  fi
14140          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14141$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14142  if test "$gccmajor" -gt "3"; then
14143    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/'`
14144    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14145$as_echo "yes" >&6; }
14146  else
14147    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148$as_echo "no" >&6; }
14149  fi
14150fi
14151
14152
14153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14154$as_echo_n "checking linker --as-needed support... " >&6; }
14155LINK_AS_NEEDED=
14156# Check if linker supports --as-needed and --no-as-needed options
14157if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14158  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14159  LINK_AS_NEEDED=yes
14160fi
14161if test "$LINK_AS_NEEDED" = yes; then
14162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14163$as_echo "yes" >&6; }
14164else
14165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166$as_echo "no" >&6; }
14167fi
14168
14169
14170# IBM z/OS reset CFLAGS for config.mk
14171if test "$zOSUnix" = "yes"; then
14172	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14173fi
14174
14175ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14176
14177cat >confcache <<\_ACEOF
14178# This file is a shell script that caches the results of configure
14179# tests run on this system so they can be shared between configure
14180# scripts and configure runs, see configure's option --config-cache.
14181# It is not useful on other systems.  If it contains results you don't
14182# want to keep, you may remove or edit it.
14183#
14184# config.status only pays attention to the cache file if you give it
14185# the --recheck option to rerun configure.
14186#
14187# `ac_cv_env_foo' variables (set or unset) will be overridden when
14188# loading this file, other *unset* `ac_cv_foo' will be assigned the
14189# following values.
14190
14191_ACEOF
14192
14193# The following way of writing the cache mishandles newlines in values,
14194# but we know of no workaround that is simple, portable, and efficient.
14195# So, we kill variables containing newlines.
14196# Ultrix sh set writes to stderr and can't be redirected directly,
14197# and sets the high bit in the cache file unless we assign to the vars.
14198(
14199  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14200    eval ac_val=\$$ac_var
14201    case $ac_val in #(
14202    *${as_nl}*)
14203      case $ac_var in #(
14204      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14205$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14206      esac
14207      case $ac_var in #(
14208      _ | IFS | as_nl) ;; #(
14209      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14210      *) { eval $ac_var=; unset $ac_var;} ;;
14211      esac ;;
14212    esac
14213  done
14214
14215  (set) 2>&1 |
14216    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14217    *${as_nl}ac_space=\ *)
14218      # `set' does not quote correctly, so add quotes: double-quote
14219      # substitution turns \\\\ into \\, and sed turns \\ into \.
14220      sed -n \
14221	"s/'/'\\\\''/g;
14222	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14223      ;; #(
14224    *)
14225      # `set' quotes correctly as required by POSIX, so do not add quotes.
14226      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14227      ;;
14228    esac |
14229    sort
14230) |
14231  sed '
14232     /^ac_cv_env_/b end
14233     t clear
14234     :clear
14235     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14236     t end
14237     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14238     :end' >>confcache
14239if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14240  if test -w "$cache_file"; then
14241    if test "x$cache_file" != "x/dev/null"; then
14242      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14243$as_echo "$as_me: updating cache $cache_file" >&6;}
14244      if test ! -f "$cache_file" || test -h "$cache_file"; then
14245	cat confcache >"$cache_file"
14246      else
14247        case $cache_file in #(
14248        */* | ?:*)
14249	  mv -f confcache "$cache_file"$$ &&
14250	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14251        *)
14252	  mv -f confcache "$cache_file" ;;
14253	esac
14254      fi
14255    fi
14256  else
14257    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14258$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14259  fi
14260fi
14261rm -f confcache
14262
14263test "x$prefix" = xNONE && prefix=$ac_default_prefix
14264# Let make expand exec_prefix.
14265test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14266
14267DEFS=-DHAVE_CONFIG_H
14268
14269ac_libobjs=
14270ac_ltlibobjs=
14271U=
14272for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14273  # 1. Remove the extension, and $U if already installed.
14274  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14275  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14276  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14277  #    will be set to the directory where LIBOBJS objects are built.
14278  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14279  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14280done
14281LIBOBJS=$ac_libobjs
14282
14283LTLIBOBJS=$ac_ltlibobjs
14284
14285
14286
14287
14288: "${CONFIG_STATUS=./config.status}"
14289ac_write_fail=0
14290ac_clean_files_save=$ac_clean_files
14291ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14292{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14293$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14294as_write_fail=0
14295cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14296#! $SHELL
14297# Generated by $as_me.
14298# Run this file to recreate the current configuration.
14299# Compiler output produced by configure, useful for debugging
14300# configure, is in config.log if it exists.
14301
14302debug=false
14303ac_cs_recheck=false
14304ac_cs_silent=false
14305
14306SHELL=\${CONFIG_SHELL-$SHELL}
14307export SHELL
14308_ASEOF
14309cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14310## -------------------- ##
14311## M4sh Initialization. ##
14312## -------------------- ##
14313
14314# Be more Bourne compatible
14315DUALCASE=1; export DUALCASE # for MKS sh
14316if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14317  emulate sh
14318  NULLCMD=:
14319  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14320  # is contrary to our usage.  Disable this feature.
14321  alias -g '${1+"$@"}'='"$@"'
14322  setopt NO_GLOB_SUBST
14323else
14324  case `(set -o) 2>/dev/null` in #(
14325  *posix*) :
14326    set -o posix ;; #(
14327  *) :
14328     ;;
14329esac
14330fi
14331
14332
14333as_nl='
14334'
14335export as_nl
14336# Printing a long string crashes Solaris 7 /usr/bin/printf.
14337as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14338as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14339as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14340# Prefer a ksh shell builtin over an external printf program on Solaris,
14341# but without wasting forks for bash or zsh.
14342if test -z "$BASH_VERSION$ZSH_VERSION" \
14343    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14344  as_echo='print -r --'
14345  as_echo_n='print -rn --'
14346elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14347  as_echo='printf %s\n'
14348  as_echo_n='printf %s'
14349else
14350  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14351    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14352    as_echo_n='/usr/ucb/echo -n'
14353  else
14354    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14355    as_echo_n_body='eval
14356      arg=$1;
14357      case $arg in #(
14358      *"$as_nl"*)
14359	expr "X$arg" : "X\\(.*\\)$as_nl";
14360	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14361      esac;
14362      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14363    '
14364    export as_echo_n_body
14365    as_echo_n='sh -c $as_echo_n_body as_echo'
14366  fi
14367  export as_echo_body
14368  as_echo='sh -c $as_echo_body as_echo'
14369fi
14370
14371# The user is always right.
14372if test "${PATH_SEPARATOR+set}" != set; then
14373  PATH_SEPARATOR=:
14374  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14375    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14376      PATH_SEPARATOR=';'
14377  }
14378fi
14379
14380
14381# IFS
14382# We need space, tab and new line, in precisely that order.  Quoting is
14383# there to prevent editors from complaining about space-tab.
14384# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14385# splitting by setting IFS to empty value.)
14386IFS=" ""	$as_nl"
14387
14388# Find who we are.  Look in the path if we contain no directory separator.
14389as_myself=
14390case $0 in #((
14391  *[\\/]* ) as_myself=$0 ;;
14392  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393for as_dir in $PATH
14394do
14395  IFS=$as_save_IFS
14396  test -z "$as_dir" && as_dir=.
14397    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14398  done
14399IFS=$as_save_IFS
14400
14401     ;;
14402esac
14403# We did not find ourselves, most probably we were run as `sh COMMAND'
14404# in which case we are not to be found in the path.
14405if test "x$as_myself" = x; then
14406  as_myself=$0
14407fi
14408if test ! -f "$as_myself"; then
14409  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14410  exit 1
14411fi
14412
14413# Unset variables that we do not need and which cause bugs (e.g. in
14414# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14415# suppresses any "Segmentation fault" message there.  '((' could
14416# trigger a bug in pdksh 5.2.14.
14417for as_var in BASH_ENV ENV MAIL MAILPATH
14418do eval test x\${$as_var+set} = xset \
14419  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14420done
14421PS1='$ '
14422PS2='> '
14423PS4='+ '
14424
14425# NLS nuisances.
14426LC_ALL=C
14427export LC_ALL
14428LANGUAGE=C
14429export LANGUAGE
14430
14431# CDPATH.
14432(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14433
14434
14435# as_fn_error STATUS ERROR [LINENO LOG_FD]
14436# ----------------------------------------
14437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14439# script with STATUS, using 1 if that was 0.
14440as_fn_error ()
14441{
14442  as_status=$1; test $as_status -eq 0 && as_status=1
14443  if test "$4"; then
14444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14445    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14446  fi
14447  $as_echo "$as_me: error: $2" >&2
14448  as_fn_exit $as_status
14449} # as_fn_error
14450
14451
14452# as_fn_set_status STATUS
14453# -----------------------
14454# Set $? to STATUS, without forking.
14455as_fn_set_status ()
14456{
14457  return $1
14458} # as_fn_set_status
14459
14460# as_fn_exit STATUS
14461# -----------------
14462# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14463as_fn_exit ()
14464{
14465  set +e
14466  as_fn_set_status $1
14467  exit $1
14468} # as_fn_exit
14469
14470# as_fn_unset VAR
14471# ---------------
14472# Portably unset VAR.
14473as_fn_unset ()
14474{
14475  { eval $1=; unset $1;}
14476}
14477as_unset=as_fn_unset
14478# as_fn_append VAR VALUE
14479# ----------------------
14480# Append the text in VALUE to the end of the definition contained in VAR. Take
14481# advantage of any shell optimizations that allow amortized linear growth over
14482# repeated appends, instead of the typical quadratic growth present in naive
14483# implementations.
14484if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14485  eval 'as_fn_append ()
14486  {
14487    eval $1+=\$2
14488  }'
14489else
14490  as_fn_append ()
14491  {
14492    eval $1=\$$1\$2
14493  }
14494fi # as_fn_append
14495
14496# as_fn_arith ARG...
14497# ------------------
14498# Perform arithmetic evaluation on the ARGs, and store the result in the
14499# global $as_val. Take advantage of shells that can avoid forks. The arguments
14500# must be portable across $(()) and expr.
14501if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14502  eval 'as_fn_arith ()
14503  {
14504    as_val=$(( $* ))
14505  }'
14506else
14507  as_fn_arith ()
14508  {
14509    as_val=`expr "$@" || test $? -eq 1`
14510  }
14511fi # as_fn_arith
14512
14513
14514if expr a : '\(a\)' >/dev/null 2>&1 &&
14515   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14516  as_expr=expr
14517else
14518  as_expr=false
14519fi
14520
14521if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14522  as_basename=basename
14523else
14524  as_basename=false
14525fi
14526
14527if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14528  as_dirname=dirname
14529else
14530  as_dirname=false
14531fi
14532
14533as_me=`$as_basename -- "$0" ||
14534$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14535	 X"$0" : 'X\(//\)$' \| \
14536	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14537$as_echo X/"$0" |
14538    sed '/^.*\/\([^/][^/]*\)\/*$/{
14539	    s//\1/
14540	    q
14541	  }
14542	  /^X\/\(\/\/\)$/{
14543	    s//\1/
14544	    q
14545	  }
14546	  /^X\/\(\/\).*/{
14547	    s//\1/
14548	    q
14549	  }
14550	  s/.*/./; q'`
14551
14552# Avoid depending upon Character Ranges.
14553as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14554as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14555as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14556as_cr_digits='0123456789'
14557as_cr_alnum=$as_cr_Letters$as_cr_digits
14558
14559ECHO_C= ECHO_N= ECHO_T=
14560case `echo -n x` in #(((((
14561-n*)
14562  case `echo 'xy\c'` in
14563  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14564  xy)  ECHO_C='\c';;
14565  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14566       ECHO_T='	';;
14567  esac;;
14568*)
14569  ECHO_N='-n';;
14570esac
14571
14572rm -f conf$$ conf$$.exe conf$$.file
14573if test -d conf$$.dir; then
14574  rm -f conf$$.dir/conf$$.file
14575else
14576  rm -f conf$$.dir
14577  mkdir conf$$.dir 2>/dev/null
14578fi
14579if (echo >conf$$.file) 2>/dev/null; then
14580  if ln -s conf$$.file conf$$ 2>/dev/null; then
14581    as_ln_s='ln -s'
14582    # ... but there are two gotchas:
14583    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14584    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14585    # In both cases, we have to default to `cp -pR'.
14586    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14587      as_ln_s='cp -pR'
14588  elif ln conf$$.file conf$$ 2>/dev/null; then
14589    as_ln_s=ln
14590  else
14591    as_ln_s='cp -pR'
14592  fi
14593else
14594  as_ln_s='cp -pR'
14595fi
14596rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14597rmdir conf$$.dir 2>/dev/null
14598
14599
14600# as_fn_mkdir_p
14601# -------------
14602# Create "$as_dir" as a directory, including parents if necessary.
14603as_fn_mkdir_p ()
14604{
14605
14606  case $as_dir in #(
14607  -*) as_dir=./$as_dir;;
14608  esac
14609  test -d "$as_dir" || eval $as_mkdir_p || {
14610    as_dirs=
14611    while :; do
14612      case $as_dir in #(
14613      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14614      *) as_qdir=$as_dir;;
14615      esac
14616      as_dirs="'$as_qdir' $as_dirs"
14617      as_dir=`$as_dirname -- "$as_dir" ||
14618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14619	 X"$as_dir" : 'X\(//\)[^/]' \| \
14620	 X"$as_dir" : 'X\(//\)$' \| \
14621	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14622$as_echo X"$as_dir" |
14623    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14624	    s//\1/
14625	    q
14626	  }
14627	  /^X\(\/\/\)[^/].*/{
14628	    s//\1/
14629	    q
14630	  }
14631	  /^X\(\/\/\)$/{
14632	    s//\1/
14633	    q
14634	  }
14635	  /^X\(\/\).*/{
14636	    s//\1/
14637	    q
14638	  }
14639	  s/.*/./; q'`
14640      test -d "$as_dir" && break
14641    done
14642    test -z "$as_dirs" || eval "mkdir $as_dirs"
14643  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14644
14645
14646} # as_fn_mkdir_p
14647if mkdir -p . 2>/dev/null; then
14648  as_mkdir_p='mkdir -p "$as_dir"'
14649else
14650  test -d ./-p && rmdir ./-p
14651  as_mkdir_p=false
14652fi
14653
14654
14655# as_fn_executable_p FILE
14656# -----------------------
14657# Test if FILE is an executable regular file.
14658as_fn_executable_p ()
14659{
14660  test -f "$1" && test -x "$1"
14661} # as_fn_executable_p
14662as_test_x='test -x'
14663as_executable_p=as_fn_executable_p
14664
14665# Sed expression to map a string onto a valid CPP name.
14666as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14667
14668# Sed expression to map a string onto a valid variable name.
14669as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14670
14671
14672exec 6>&1
14673## ----------------------------------- ##
14674## Main body of $CONFIG_STATUS script. ##
14675## ----------------------------------- ##
14676_ASEOF
14677test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14678
14679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14680# Save the log message, to keep $0 and so on meaningful, and to
14681# report actual input values of CONFIG_FILES etc. instead of their
14682# values after options handling.
14683ac_log="
14684This file was extended by $as_me, which was
14685generated by GNU Autoconf 2.69.  Invocation command line was
14686
14687  CONFIG_FILES    = $CONFIG_FILES
14688  CONFIG_HEADERS  = $CONFIG_HEADERS
14689  CONFIG_LINKS    = $CONFIG_LINKS
14690  CONFIG_COMMANDS = $CONFIG_COMMANDS
14691  $ $0 $@
14692
14693on `(hostname || uname -n) 2>/dev/null | sed 1q`
14694"
14695
14696_ACEOF
14697
14698case $ac_config_files in *"
14699"*) set x $ac_config_files; shift; ac_config_files=$*;;
14700esac
14701
14702case $ac_config_headers in *"
14703"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14704esac
14705
14706
14707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14708# Files that config.status was made for.
14709config_files="$ac_config_files"
14710config_headers="$ac_config_headers"
14711
14712_ACEOF
14713
14714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14715ac_cs_usage="\
14716\`$as_me' instantiates files and other configuration actions
14717from templates according to the current configuration.  Unless the files
14718and actions are specified as TAGs, all are instantiated by default.
14719
14720Usage: $0 [OPTION]... [TAG]...
14721
14722  -h, --help       print this help, then exit
14723  -V, --version    print version number and configuration settings, then exit
14724      --config     print configuration, then exit
14725  -q, --quiet, --silent
14726                   do not print progress messages
14727  -d, --debug      don't remove temporary files
14728      --recheck    update $as_me by reconfiguring in the same conditions
14729      --file=FILE[:TEMPLATE]
14730                   instantiate the configuration file FILE
14731      --header=FILE[:TEMPLATE]
14732                   instantiate the configuration header FILE
14733
14734Configuration files:
14735$config_files
14736
14737Configuration headers:
14738$config_headers
14739
14740Report bugs to the package provider."
14741
14742_ACEOF
14743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14744ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14745ac_cs_version="\\
14746config.status
14747configured by $0, generated by GNU Autoconf 2.69,
14748  with options \\"\$ac_cs_config\\"
14749
14750Copyright (C) 2012 Free Software Foundation, Inc.
14751This config.status script is free software; the Free Software Foundation
14752gives unlimited permission to copy, distribute and modify it."
14753
14754ac_pwd='$ac_pwd'
14755srcdir='$srcdir'
14756AWK='$AWK'
14757test -n "\$AWK" || AWK=awk
14758_ACEOF
14759
14760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14761# The default lists apply if the user does not specify any file.
14762ac_need_defaults=:
14763while test $# != 0
14764do
14765  case $1 in
14766  --*=?*)
14767    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14768    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14769    ac_shift=:
14770    ;;
14771  --*=)
14772    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14773    ac_optarg=
14774    ac_shift=:
14775    ;;
14776  *)
14777    ac_option=$1
14778    ac_optarg=$2
14779    ac_shift=shift
14780    ;;
14781  esac
14782
14783  case $ac_option in
14784  # Handling of the options.
14785  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14786    ac_cs_recheck=: ;;
14787  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14788    $as_echo "$ac_cs_version"; exit ;;
14789  --config | --confi | --conf | --con | --co | --c )
14790    $as_echo "$ac_cs_config"; exit ;;
14791  --debug | --debu | --deb | --de | --d | -d )
14792    debug=: ;;
14793  --file | --fil | --fi | --f )
14794    $ac_shift
14795    case $ac_optarg in
14796    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14797    '') as_fn_error $? "missing file argument" ;;
14798    esac
14799    as_fn_append CONFIG_FILES " '$ac_optarg'"
14800    ac_need_defaults=false;;
14801  --header | --heade | --head | --hea )
14802    $ac_shift
14803    case $ac_optarg in
14804    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14805    esac
14806    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14807    ac_need_defaults=false;;
14808  --he | --h)
14809    # Conflict between --help and --header
14810    as_fn_error $? "ambiguous option: \`$1'
14811Try \`$0 --help' for more information.";;
14812  --help | --hel | -h )
14813    $as_echo "$ac_cs_usage"; exit ;;
14814  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14815  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14816    ac_cs_silent=: ;;
14817
14818  # This is an error.
14819  -*) as_fn_error $? "unrecognized option: \`$1'
14820Try \`$0 --help' for more information." ;;
14821
14822  *) as_fn_append ac_config_targets " $1"
14823     ac_need_defaults=false ;;
14824
14825  esac
14826  shift
14827done
14828
14829ac_configure_extra_args=
14830
14831if $ac_cs_silent; then
14832  exec 6>/dev/null
14833  ac_configure_extra_args="$ac_configure_extra_args --silent"
14834fi
14835
14836_ACEOF
14837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14838if \$ac_cs_recheck; then
14839  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14840  shift
14841  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14842  CONFIG_SHELL='$SHELL'
14843  export CONFIG_SHELL
14844  exec "\$@"
14845fi
14846
14847_ACEOF
14848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14849exec 5>>auto/config.log
14850{
14851  echo
14852  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14853## Running $as_me. ##
14854_ASBOX
14855  $as_echo "$ac_log"
14856} >&5
14857
14858_ACEOF
14859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14860_ACEOF
14861
14862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14863
14864# Handling of arguments.
14865for ac_config_target in $ac_config_targets
14866do
14867  case $ac_config_target in
14868    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
14869    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
14870
14871  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14872  esac
14873done
14874
14875
14876# If the user did not use the arguments to specify the items to instantiate,
14877# then the envvar interface is used.  Set only those that are not.
14878# We use the long form for the default assignment because of an extremely
14879# bizarre bug on SunOS 4.1.3.
14880if $ac_need_defaults; then
14881  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14882  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14883fi
14884
14885# Have a temporary directory for convenience.  Make it in the build tree
14886# simply because there is no reason against having it here, and in addition,
14887# creating and moving files from /tmp can sometimes cause problems.
14888# Hook for its removal unless debugging.
14889# Note that there is a small window in which the directory will not be cleaned:
14890# after its creation but before its name has been assigned to `$tmp'.
14891$debug ||
14892{
14893  tmp= ac_tmp=
14894  trap 'exit_status=$?
14895  : "${ac_tmp:=$tmp}"
14896  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14897' 0
14898  trap 'as_fn_exit 1' 1 2 13 15
14899}
14900# Create a (secure) tmp directory for tmp files.
14901
14902{
14903  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14904  test -d "$tmp"
14905}  ||
14906{
14907  tmp=./conf$$-$RANDOM
14908  (umask 077 && mkdir "$tmp")
14909} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14910ac_tmp=$tmp
14911
14912# Set up the scripts for CONFIG_FILES section.
14913# No need to generate them if there are no CONFIG_FILES.
14914# This happens for instance with `./config.status config.h'.
14915if test -n "$CONFIG_FILES"; then
14916
14917
14918ac_cr=`echo X | tr X '\015'`
14919# On cygwin, bash can eat \r inside `` if the user requested igncr.
14920# But we know of no other shell where ac_cr would be empty at this
14921# point, so we can use a bashism as a fallback.
14922if test "x$ac_cr" = x; then
14923  eval ac_cr=\$\'\\r\'
14924fi
14925ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14926if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14927  ac_cs_awk_cr='\\r'
14928else
14929  ac_cs_awk_cr=$ac_cr
14930fi
14931
14932echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14933_ACEOF
14934
14935
14936{
14937  echo "cat >conf$$subs.awk <<_ACEOF" &&
14938  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14939  echo "_ACEOF"
14940} >conf$$subs.sh ||
14941  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14942ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14943ac_delim='%!_!# '
14944for ac_last_try in false false false false false :; do
14945  . ./conf$$subs.sh ||
14946    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14947
14948  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14949  if test $ac_delim_n = $ac_delim_num; then
14950    break
14951  elif $ac_last_try; then
14952    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14953  else
14954    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14955  fi
14956done
14957rm -f conf$$subs.sh
14958
14959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14960cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14961_ACEOF
14962sed -n '
14963h
14964s/^/S["/; s/!.*/"]=/
14965p
14966g
14967s/^[^!]*!//
14968:repl
14969t repl
14970s/'"$ac_delim"'$//
14971t delim
14972:nl
14973h
14974s/\(.\{148\}\)..*/\1/
14975t more1
14976s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14977p
14978n
14979b repl
14980:more1
14981s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14982p
14983g
14984s/.\{148\}//
14985t nl
14986:delim
14987h
14988s/\(.\{148\}\)..*/\1/
14989t more2
14990s/["\\]/\\&/g; s/^/"/; s/$/"/
14991p
14992b
14993:more2
14994s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14995p
14996g
14997s/.\{148\}//
14998t delim
14999' <conf$$subs.awk | sed '
15000/^[^""]/{
15001  N
15002  s/\n//
15003}
15004' >>$CONFIG_STATUS || ac_write_fail=1
15005rm -f conf$$subs.awk
15006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15007_ACAWK
15008cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15009  for (key in S) S_is_set[key] = 1
15010  FS = ""
15011
15012}
15013{
15014  line = $ 0
15015  nfields = split(line, field, "@")
15016  substed = 0
15017  len = length(field[1])
15018  for (i = 2; i < nfields; i++) {
15019    key = field[i]
15020    keylen = length(key)
15021    if (S_is_set[key]) {
15022      value = S[key]
15023      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15024      len += length(value) + length(field[++i])
15025      substed = 1
15026    } else
15027      len += 1 + keylen
15028  }
15029
15030  print line
15031}
15032
15033_ACAWK
15034_ACEOF
15035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15036if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15037  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15038else
15039  cat
15040fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15041  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15042_ACEOF
15043
15044# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15045# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15046# trailing colons and then remove the whole line if VPATH becomes empty
15047# (actually we leave an empty line to preserve line numbers).
15048if test "x$srcdir" = x.; then
15049  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15050h
15051s///
15052s/^/:/
15053s/[	 ]*$/:/
15054s/:\$(srcdir):/:/g
15055s/:\${srcdir}:/:/g
15056s/:@srcdir@:/:/g
15057s/^:*//
15058s/:*$//
15059x
15060s/\(=[	 ]*\).*/\1/
15061G
15062s/\n//
15063s/^[^=]*=[	 ]*$//
15064}'
15065fi
15066
15067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15068fi # test -n "$CONFIG_FILES"
15069
15070# Set up the scripts for CONFIG_HEADERS section.
15071# No need to generate them if there are no CONFIG_HEADERS.
15072# This happens for instance with `./config.status Makefile'.
15073if test -n "$CONFIG_HEADERS"; then
15074cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15075BEGIN {
15076_ACEOF
15077
15078# Transform confdefs.h into an awk script `defines.awk', embedded as
15079# here-document in config.status, that substitutes the proper values into
15080# config.h.in to produce config.h.
15081
15082# Create a delimiter string that does not exist in confdefs.h, to ease
15083# handling of long lines.
15084ac_delim='%!_!# '
15085for ac_last_try in false false :; do
15086  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15087  if test -z "$ac_tt"; then
15088    break
15089  elif $ac_last_try; then
15090    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15091  else
15092    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15093  fi
15094done
15095
15096# For the awk script, D is an array of macro values keyed by name,
15097# likewise P contains macro parameters if any.  Preserve backslash
15098# newline sequences.
15099
15100ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15101sed -n '
15102s/.\{148\}/&'"$ac_delim"'/g
15103t rset
15104:rset
15105s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15106t def
15107d
15108:def
15109s/\\$//
15110t bsnl
15111s/["\\]/\\&/g
15112s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15113D["\1"]=" \3"/p
15114s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15115d
15116:bsnl
15117s/["\\]/\\&/g
15118s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15119D["\1"]=" \3\\\\\\n"\\/p
15120t cont
15121s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15122t cont
15123d
15124:cont
15125n
15126s/.\{148\}/&'"$ac_delim"'/g
15127t clear
15128:clear
15129s/\\$//
15130t bsnlc
15131s/["\\]/\\&/g; s/^/"/; s/$/"/p
15132d
15133:bsnlc
15134s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15135b cont
15136' <confdefs.h | sed '
15137s/'"$ac_delim"'/"\\\
15138"/g' >>$CONFIG_STATUS || ac_write_fail=1
15139
15140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15141  for (key in D) D_is_set[key] = 1
15142  FS = ""
15143}
15144/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15145  line = \$ 0
15146  split(line, arg, " ")
15147  if (arg[1] == "#") {
15148    defundef = arg[2]
15149    mac1 = arg[3]
15150  } else {
15151    defundef = substr(arg[1], 2)
15152    mac1 = arg[2]
15153  }
15154  split(mac1, mac2, "(") #)
15155  macro = mac2[1]
15156  prefix = substr(line, 1, index(line, defundef) - 1)
15157  if (D_is_set[macro]) {
15158    # Preserve the white space surrounding the "#".
15159    print prefix "define", macro P[macro] D[macro]
15160    next
15161  } else {
15162    # Replace #undef with comments.  This is necessary, for example,
15163    # in the case of _POSIX_SOURCE, which is predefined and required
15164    # on some systems where configure will not decide to define it.
15165    if (defundef == "undef") {
15166      print "/*", prefix defundef, macro, "*/"
15167      next
15168    }
15169  }
15170}
15171{ print }
15172_ACAWK
15173_ACEOF
15174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15175  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15176fi # test -n "$CONFIG_HEADERS"
15177
15178
15179eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15180shift
15181for ac_tag
15182do
15183  case $ac_tag in
15184  :[FHLC]) ac_mode=$ac_tag; continue;;
15185  esac
15186  case $ac_mode$ac_tag in
15187  :[FHL]*:*);;
15188  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15189  :[FH]-) ac_tag=-:-;;
15190  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15191  esac
15192  ac_save_IFS=$IFS
15193  IFS=:
15194  set x $ac_tag
15195  IFS=$ac_save_IFS
15196  shift
15197  ac_file=$1
15198  shift
15199
15200  case $ac_mode in
15201  :L) ac_source=$1;;
15202  :[FH])
15203    ac_file_inputs=
15204    for ac_f
15205    do
15206      case $ac_f in
15207      -) ac_f="$ac_tmp/stdin";;
15208      *) # Look for the file first in the build tree, then in the source tree
15209	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15210	 # because $ac_f cannot contain `:'.
15211	 test -f "$ac_f" ||
15212	   case $ac_f in
15213	   [\\/$]*) false;;
15214	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15215	   esac ||
15216	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15217      esac
15218      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15219      as_fn_append ac_file_inputs " '$ac_f'"
15220    done
15221
15222    # Let's still pretend it is `configure' which instantiates (i.e., don't
15223    # use $as_me), people would be surprised to read:
15224    #    /* config.h.  Generated by config.status.  */
15225    configure_input='Generated from '`
15226	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15227	`' by configure.'
15228    if test x"$ac_file" != x-; then
15229      configure_input="$ac_file.  $configure_input"
15230      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15231$as_echo "$as_me: creating $ac_file" >&6;}
15232    fi
15233    # Neutralize special characters interpreted by sed in replacement strings.
15234    case $configure_input in #(
15235    *\&* | *\|* | *\\* )
15236       ac_sed_conf_input=`$as_echo "$configure_input" |
15237       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15238    *) ac_sed_conf_input=$configure_input;;
15239    esac
15240
15241    case $ac_tag in
15242    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15243      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15244    esac
15245    ;;
15246  esac
15247
15248  ac_dir=`$as_dirname -- "$ac_file" ||
15249$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15250	 X"$ac_file" : 'X\(//\)[^/]' \| \
15251	 X"$ac_file" : 'X\(//\)$' \| \
15252	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15253$as_echo X"$ac_file" |
15254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15255	    s//\1/
15256	    q
15257	  }
15258	  /^X\(\/\/\)[^/].*/{
15259	    s//\1/
15260	    q
15261	  }
15262	  /^X\(\/\/\)$/{
15263	    s//\1/
15264	    q
15265	  }
15266	  /^X\(\/\).*/{
15267	    s//\1/
15268	    q
15269	  }
15270	  s/.*/./; q'`
15271  as_dir="$ac_dir"; as_fn_mkdir_p
15272  ac_builddir=.
15273
15274case "$ac_dir" in
15275.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15276*)
15277  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15278  # A ".." for each directory in $ac_dir_suffix.
15279  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15280  case $ac_top_builddir_sub in
15281  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15282  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15283  esac ;;
15284esac
15285ac_abs_top_builddir=$ac_pwd
15286ac_abs_builddir=$ac_pwd$ac_dir_suffix
15287# for backward compatibility:
15288ac_top_builddir=$ac_top_build_prefix
15289
15290case $srcdir in
15291  .)  # We are building in place.
15292    ac_srcdir=.
15293    ac_top_srcdir=$ac_top_builddir_sub
15294    ac_abs_top_srcdir=$ac_pwd ;;
15295  [\\/]* | ?:[\\/]* )  # Absolute name.
15296    ac_srcdir=$srcdir$ac_dir_suffix;
15297    ac_top_srcdir=$srcdir
15298    ac_abs_top_srcdir=$srcdir ;;
15299  *) # Relative name.
15300    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15301    ac_top_srcdir=$ac_top_build_prefix$srcdir
15302    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15303esac
15304ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15305
15306
15307  case $ac_mode in
15308  :F)
15309  #
15310  # CONFIG_FILE
15311  #
15312
15313_ACEOF
15314
15315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15316# If the template does not know about datarootdir, expand it.
15317# FIXME: This hack should be removed a few years after 2.60.
15318ac_datarootdir_hack=; ac_datarootdir_seen=
15319ac_sed_dataroot='
15320/datarootdir/ {
15321  p
15322  q
15323}
15324/@datadir@/p
15325/@docdir@/p
15326/@infodir@/p
15327/@localedir@/p
15328/@mandir@/p'
15329case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15330*datarootdir*) ac_datarootdir_seen=yes;;
15331*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15332  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15333$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15334_ACEOF
15335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15336  ac_datarootdir_hack='
15337  s&@datadir@&$datadir&g
15338  s&@docdir@&$docdir&g
15339  s&@infodir@&$infodir&g
15340  s&@localedir@&$localedir&g
15341  s&@mandir@&$mandir&g
15342  s&\\\${datarootdir}&$datarootdir&g' ;;
15343esac
15344_ACEOF
15345
15346# Neutralize VPATH when `$srcdir' = `.'.
15347# Shell code in configure.ac might set extrasub.
15348# FIXME: do we really want to maintain this feature?
15349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15350ac_sed_extra="$ac_vpsub
15351$extrasub
15352_ACEOF
15353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15354:t
15355/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15356s|@configure_input@|$ac_sed_conf_input|;t t
15357s&@top_builddir@&$ac_top_builddir_sub&;t t
15358s&@top_build_prefix@&$ac_top_build_prefix&;t t
15359s&@srcdir@&$ac_srcdir&;t t
15360s&@abs_srcdir@&$ac_abs_srcdir&;t t
15361s&@top_srcdir@&$ac_top_srcdir&;t t
15362s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15363s&@builddir@&$ac_builddir&;t t
15364s&@abs_builddir@&$ac_abs_builddir&;t t
15365s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15366$ac_datarootdir_hack
15367"
15368eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15369  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15370
15371test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15372  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15373  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15374      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15375  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15376which seems to be undefined.  Please make sure it is defined" >&5
15377$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15378which seems to be undefined.  Please make sure it is defined" >&2;}
15379
15380  rm -f "$ac_tmp/stdin"
15381  case $ac_file in
15382  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15383  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15384  esac \
15385  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15386 ;;
15387  :H)
15388  #
15389  # CONFIG_HEADER
15390  #
15391  if test x"$ac_file" != x-; then
15392    {
15393      $as_echo "/* $configure_input  */" \
15394      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15395    } >"$ac_tmp/config.h" \
15396      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15397    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15398      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15399$as_echo "$as_me: $ac_file is unchanged" >&6;}
15400    else
15401      rm -f "$ac_file"
15402      mv "$ac_tmp/config.h" "$ac_file" \
15403	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15404    fi
15405  else
15406    $as_echo "/* $configure_input  */" \
15407      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15408      || as_fn_error $? "could not create -" "$LINENO" 5
15409  fi
15410 ;;
15411
15412
15413  esac
15414
15415done # for ac_tag
15416
15417
15418as_fn_exit 0
15419_ACEOF
15420ac_clean_files=$ac_clean_files_save
15421
15422test $ac_write_fail = 0 ||
15423  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15424
15425
15426# configure is writing to config.log, and then calls config.status.
15427# config.status does its own redirection, appending to config.log.
15428# Unfortunately, on DOS this fails, as config.log is still kept open
15429# by configure, so config.status won't be able to write to it; its
15430# output is simply discarded.  So we exec the FD to /dev/null,
15431# effectively closing config.log, so it can be properly (re)opened and
15432# appended to by config.status.  When coming back to configure, we
15433# need to make the FD available again.
15434if test "$no_create" != yes; then
15435  ac_cs_success=:
15436  ac_config_status_args=
15437  test "$silent" = yes &&
15438    ac_config_status_args="$ac_config_status_args --quiet"
15439  exec 5>/dev/null
15440  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15441  exec 5>>auto/config.log
15442  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15443  # would make configure fail if this is the last instruction.
15444  $ac_cs_success || as_fn_exit 1
15445fi
15446if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15447  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15448$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15449fi
15450
15451
15452