xref: /vim-8.2.3635/src/auto/configure (revision 91e15e13)
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
639GNOME_INCLUDEDIR
640GNOME_LIBDIR
641GNOME_LIBS
642GTK_LIBNAME
643GTK_LIBS
644GTK_CFLAGS
645PKG_CONFIG
646X_LIB
647X_EXTRA_LIBS
648X_LIBS
649X_PRE_LIBS
650X_CFLAGS
651XMKMF
652xmkmfpath
653SNIFF_OBJ
654SNIFF_SRC
655NETBEANS_OBJ
656NETBEANS_SRC
657WORKSHOP_OBJ
658WORKSHOP_SRC
659RUBY_LIBS
660RUBY_CFLAGS
661RUBY_PRO
662RUBY_OBJ
663RUBY_SRC
664vi_cv_path_ruby
665TCL_LIBS
666TCL_CFLAGS
667TCL_PRO
668TCL_OBJ
669TCL_SRC
670vi_cv_path_tcl
671PYTHON3_OBJ
672PYTHON3_SRC
673PYTHON3_CFLAGS
674PYTHON3_LIBS
675PYTHON3_CONFDIR
676vi_cv_path_python3
677PYTHON_OBJ
678PYTHON_SRC
679PYTHON_CFLAGS
680PYTHON_GETPATH_CFLAGS
681PYTHON_LIBS
682PYTHON_CONFDIR
683vi_cv_path_python
684PERL_LIBS
685PERL_CFLAGS
686PERL_PRO
687PERL_OBJ
688PERL_SRC
689shrpenv
690vi_cv_perl_xsubpp
691vi_cv_perllib
692vi_cv_path_perl
693MZSCHEME_MZC
694MZSCHEME_EXTRA
695MZSCHEME_CFLAGS
696MZSCHEME_LIBS
697MZSCHEME_PRO
698MZSCHEME_OBJ
699MZSCHEME_SRC
700vi_cv_path_mzscheme
701LUA_CFLAGS
702LUA_LIBS
703LUA_PRO
704LUA_OBJ
705LUA_SRC
706vi_cv_path_plain_lua
707vi_cv_path_luajit
708vi_cv_path_lua
709compiledby
710dogvimdiff
711dovimdiff
712QUOTESED
713line_break
714VIEWNAME
715EXNAME
716VIMNAME
717OS_EXTRA_OBJ
718OS_EXTRA_SRC
719XCODE_SELECT
720CPP_MM
721STRIP
722AWK
723FGREP
724EGREP
725GREP
726CPP
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734SET_MAKE
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
773ac_subst_files=''
774ac_user_opts='
775enable_option_checking
776enable_fail_if_missing
777enable_darwin
778with_mac_arch
779with_developer_dir
780with_local_dir
781with_vim_name
782with_ex_name
783with_view_name
784with_global_runtime
785with_modified_by
786enable_smack
787enable_selinux
788with_features
789with_compiledby
790enable_xsmp
791enable_xsmp_interact
792enable_luainterp
793with_lua_prefix
794with_luajit
795enable_mzschemeinterp
796with_plthome
797enable_perlinterp
798enable_pythoninterp
799with_python_config_dir
800enable_python3interp
801with_python3_config_dir
802enable_tclinterp
803with_tclsh
804enable_rubyinterp
805with_ruby_command
806enable_cscope
807enable_workshop
808enable_netbeans
809enable_sniff
810enable_multibyte
811enable_hangulinput
812enable_xim
813enable_fontset
814with_x
815enable_gui
816enable_gtk2_check
817enable_gnome_check
818enable_motif_check
819enable_athena_check
820enable_nextaw_check
821enable_carbon_check
822enable_gtktest
823with_gnome_includes
824with_gnome_libs
825with_gnome
826with_motif_lib
827with_tlib
828enable_largefile
829enable_acl
830enable_gpm
831enable_sysmouse
832enable_nls
833'
834      ac_precious_vars='build_alias
835host_alias
836target_alias
837CC
838CFLAGS
839LDFLAGS
840LIBS
841CPPFLAGS
842CPP
843XMKMF'
844
845
846# Initialize some variables set by options.
847ac_init_help=
848ac_init_version=false
849ac_unrecognized_opts=
850ac_unrecognized_sep=
851# The variables have the same names as the options, with
852# dashes changed to underlines.
853cache_file=/dev/null
854exec_prefix=NONE
855no_create=
856no_recursion=
857prefix=NONE
858program_prefix=NONE
859program_suffix=NONE
860program_transform_name=s,x,x,
861silent=
862site=
863srcdir=
864verbose=
865x_includes=NONE
866x_libraries=NONE
867
868# Installation directory options.
869# These are left unexpanded so users can "make install exec_prefix=/foo"
870# and all the variables that are supposed to be based on exec_prefix
871# by default will actually change.
872# Use braces instead of parens because sh, perl, etc. also accept them.
873# (The list follows the same order as the GNU Coding Standards.)
874bindir='${exec_prefix}/bin'
875sbindir='${exec_prefix}/sbin'
876libexecdir='${exec_prefix}/libexec'
877datarootdir='${prefix}/share'
878datadir='${datarootdir}'
879sysconfdir='${prefix}/etc'
880sharedstatedir='${prefix}/com'
881localstatedir='${prefix}/var'
882includedir='${prefix}/include'
883oldincludedir='/usr/include'
884docdir='${datarootdir}/doc/${PACKAGE}'
885infodir='${datarootdir}/info'
886htmldir='${docdir}'
887dvidir='${docdir}'
888pdfdir='${docdir}'
889psdir='${docdir}'
890libdir='${exec_prefix}/lib'
891localedir='${datarootdir}/locale'
892mandir='${datarootdir}/man'
893
894ac_prev=
895ac_dashdash=
896for ac_option
897do
898  # If the previous option needs an argument, assign it.
899  if test -n "$ac_prev"; then
900    eval $ac_prev=\$ac_option
901    ac_prev=
902    continue
903  fi
904
905  case $ac_option in
906  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907  *=)   ac_optarg= ;;
908  *)    ac_optarg=yes ;;
909  esac
910
911  # Accept the important Cygnus configure options, so we can diagnose typos.
912
913  case $ac_dashdash$ac_option in
914  --)
915    ac_dashdash=yes ;;
916
917  -bindir | --bindir | --bindi | --bind | --bin | --bi)
918    ac_prev=bindir ;;
919  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920    bindir=$ac_optarg ;;
921
922  -build | --build | --buil | --bui | --bu)
923    ac_prev=build_alias ;;
924  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925    build_alias=$ac_optarg ;;
926
927  -cache-file | --cache-file | --cache-fil | --cache-fi \
928  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929    ac_prev=cache_file ;;
930  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932    cache_file=$ac_optarg ;;
933
934  --config-cache | -C)
935    cache_file=config.cache ;;
936
937  -datadir | --datadir | --datadi | --datad)
938    ac_prev=datadir ;;
939  -datadir=* | --datadir=* | --datadi=* | --datad=*)
940    datadir=$ac_optarg ;;
941
942  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943  | --dataroo | --dataro | --datar)
944    ac_prev=datarootdir ;;
945  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947    datarootdir=$ac_optarg ;;
948
949  -disable-* | --disable-*)
950    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951    # Reject names that are not valid shell variable names.
952    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953      as_fn_error $? "invalid feature name: $ac_useropt"
954    ac_useropt_orig=$ac_useropt
955    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956    case $ac_user_opts in
957      *"
958"enable_$ac_useropt"
959"*) ;;
960      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961	 ac_unrecognized_sep=', ';;
962    esac
963    eval enable_$ac_useropt=no ;;
964
965  -docdir | --docdir | --docdi | --doc | --do)
966    ac_prev=docdir ;;
967  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968    docdir=$ac_optarg ;;
969
970  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971    ac_prev=dvidir ;;
972  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973    dvidir=$ac_optarg ;;
974
975  -enable-* | --enable-*)
976    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977    # Reject names that are not valid shell variable names.
978    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979      as_fn_error $? "invalid feature name: $ac_useropt"
980    ac_useropt_orig=$ac_useropt
981    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982    case $ac_user_opts in
983      *"
984"enable_$ac_useropt"
985"*) ;;
986      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987	 ac_unrecognized_sep=', ';;
988    esac
989    eval enable_$ac_useropt=\$ac_optarg ;;
990
991  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993  | --exec | --exe | --ex)
994    ac_prev=exec_prefix ;;
995  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997  | --exec=* | --exe=* | --ex=*)
998    exec_prefix=$ac_optarg ;;
999
1000  -gas | --gas | --ga | --g)
1001    # Obsolete; use --with-gas.
1002    with_gas=yes ;;
1003
1004  -help | --help | --hel | --he | -h)
1005    ac_init_help=long ;;
1006  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007    ac_init_help=recursive ;;
1008  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009    ac_init_help=short ;;
1010
1011  -host | --host | --hos | --ho)
1012    ac_prev=host_alias ;;
1013  -host=* | --host=* | --hos=* | --ho=*)
1014    host_alias=$ac_optarg ;;
1015
1016  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017    ac_prev=htmldir ;;
1018  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019  | --ht=*)
1020    htmldir=$ac_optarg ;;
1021
1022  -includedir | --includedir | --includedi | --included | --include \
1023  | --includ | --inclu | --incl | --inc)
1024    ac_prev=includedir ;;
1025  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026  | --includ=* | --inclu=* | --incl=* | --inc=*)
1027    includedir=$ac_optarg ;;
1028
1029  -infodir | --infodir | --infodi | --infod | --info | --inf)
1030    ac_prev=infodir ;;
1031  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032    infodir=$ac_optarg ;;
1033
1034  -libdir | --libdir | --libdi | --libd)
1035    ac_prev=libdir ;;
1036  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037    libdir=$ac_optarg ;;
1038
1039  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040  | --libexe | --libex | --libe)
1041    ac_prev=libexecdir ;;
1042  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043  | --libexe=* | --libex=* | --libe=*)
1044    libexecdir=$ac_optarg ;;
1045
1046  -localedir | --localedir | --localedi | --localed | --locale)
1047    ac_prev=localedir ;;
1048  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049    localedir=$ac_optarg ;;
1050
1051  -localstatedir | --localstatedir | --localstatedi | --localstated \
1052  | --localstate | --localstat | --localsta | --localst | --locals)
1053    ac_prev=localstatedir ;;
1054  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056    localstatedir=$ac_optarg ;;
1057
1058  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059    ac_prev=mandir ;;
1060  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061    mandir=$ac_optarg ;;
1062
1063  -nfp | --nfp | --nf)
1064    # Obsolete; use --without-fp.
1065    with_fp=no ;;
1066
1067  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068  | --no-cr | --no-c | -n)
1069    no_create=yes ;;
1070
1071  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073    no_recursion=yes ;;
1074
1075  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077  | --oldin | --oldi | --old | --ol | --o)
1078    ac_prev=oldincludedir ;;
1079  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082    oldincludedir=$ac_optarg ;;
1083
1084  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085    ac_prev=prefix ;;
1086  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087    prefix=$ac_optarg ;;
1088
1089  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090  | --program-pre | --program-pr | --program-p)
1091    ac_prev=program_prefix ;;
1092  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094    program_prefix=$ac_optarg ;;
1095
1096  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097  | --program-suf | --program-su | --program-s)
1098    ac_prev=program_suffix ;;
1099  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101    program_suffix=$ac_optarg ;;
1102
1103  -program-transform-name | --program-transform-name \
1104  | --program-transform-nam | --program-transform-na \
1105  | --program-transform-n | --program-transform- \
1106  | --program-transform | --program-transfor \
1107  | --program-transfo | --program-transf \
1108  | --program-trans | --program-tran \
1109  | --progr-tra | --program-tr | --program-t)
1110    ac_prev=program_transform_name ;;
1111  -program-transform-name=* | --program-transform-name=* \
1112  | --program-transform-nam=* | --program-transform-na=* \
1113  | --program-transform-n=* | --program-transform-=* \
1114  | --program-transform=* | --program-transfor=* \
1115  | --program-transfo=* | --program-transf=* \
1116  | --program-trans=* | --program-tran=* \
1117  | --progr-tra=* | --program-tr=* | --program-t=*)
1118    program_transform_name=$ac_optarg ;;
1119
1120  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121    ac_prev=pdfdir ;;
1122  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123    pdfdir=$ac_optarg ;;
1124
1125  -psdir | --psdir | --psdi | --psd | --ps)
1126    ac_prev=psdir ;;
1127  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128    psdir=$ac_optarg ;;
1129
1130  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131  | -silent | --silent | --silen | --sile | --sil)
1132    silent=yes ;;
1133
1134  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135    ac_prev=sbindir ;;
1136  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137  | --sbi=* | --sb=*)
1138    sbindir=$ac_optarg ;;
1139
1140  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142  | --sharedst | --shareds | --shared | --share | --shar \
1143  | --sha | --sh)
1144    ac_prev=sharedstatedir ;;
1145  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148  | --sha=* | --sh=*)
1149    sharedstatedir=$ac_optarg ;;
1150
1151  -site | --site | --sit)
1152    ac_prev=site ;;
1153  -site=* | --site=* | --sit=*)
1154    site=$ac_optarg ;;
1155
1156  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157    ac_prev=srcdir ;;
1158  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159    srcdir=$ac_optarg ;;
1160
1161  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162  | --syscon | --sysco | --sysc | --sys | --sy)
1163    ac_prev=sysconfdir ;;
1164  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166    sysconfdir=$ac_optarg ;;
1167
1168  -target | --target | --targe | --targ | --tar | --ta | --t)
1169    ac_prev=target_alias ;;
1170  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171    target_alias=$ac_optarg ;;
1172
1173  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174    verbose=yes ;;
1175
1176  -version | --version | --versio | --versi | --vers | -V)
1177    ac_init_version=: ;;
1178
1179  -with-* | --with-*)
1180    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181    # Reject names that are not valid shell variable names.
1182    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183      as_fn_error $? "invalid package name: $ac_useropt"
1184    ac_useropt_orig=$ac_useropt
1185    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186    case $ac_user_opts in
1187      *"
1188"with_$ac_useropt"
1189"*) ;;
1190      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191	 ac_unrecognized_sep=', ';;
1192    esac
1193    eval with_$ac_useropt=\$ac_optarg ;;
1194
1195  -without-* | --without-*)
1196    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197    # Reject names that are not valid shell variable names.
1198    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199      as_fn_error $? "invalid package name: $ac_useropt"
1200    ac_useropt_orig=$ac_useropt
1201    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202    case $ac_user_opts in
1203      *"
1204"with_$ac_useropt"
1205"*) ;;
1206      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207	 ac_unrecognized_sep=', ';;
1208    esac
1209    eval with_$ac_useropt=no ;;
1210
1211  --x)
1212    # Obsolete; use --with-x.
1213    with_x=yes ;;
1214
1215  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216  | --x-incl | --x-inc | --x-in | --x-i)
1217    ac_prev=x_includes ;;
1218  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220    x_includes=$ac_optarg ;;
1221
1222  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224    ac_prev=x_libraries ;;
1225  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227    x_libraries=$ac_optarg ;;
1228
1229  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230Try \`$0 --help' for more information"
1231    ;;
1232
1233  *=*)
1234    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235    # Reject names that are not valid shell variable names.
1236    case $ac_envvar in #(
1237      '' | [0-9]* | *[!_$as_cr_alnum]* )
1238      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239    esac
1240    eval $ac_envvar=\$ac_optarg
1241    export $ac_envvar ;;
1242
1243  *)
1244    # FIXME: should be removed in autoconf 3.0.
1245    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249    ;;
1250
1251  esac
1252done
1253
1254if test -n "$ac_prev"; then
1255  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256  as_fn_error $? "missing argument to $ac_option"
1257fi
1258
1259if test -n "$ac_unrecognized_opts"; then
1260  case $enable_option_checking in
1261    no) ;;
1262    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264  esac
1265fi
1266
1267# Check all directory arguments for consistency.
1268for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269		datadir sysconfdir sharedstatedir localstatedir includedir \
1270		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271		libdir localedir mandir
1272do
1273  eval ac_val=\$$ac_var
1274  # Remove trailing slashes.
1275  case $ac_val in
1276    */ )
1277      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278      eval $ac_var=\$ac_val;;
1279  esac
1280  # Be sure to have absolute directory names.
1281  case $ac_val in
1282    [\\/$]* | ?:[\\/]* )  continue;;
1283    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284  esac
1285  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286done
1287
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
1294
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297  if test "x$build_alias" = x; then
1298    cross_compiling=maybe
1299  elif test "x$build_alias" != "x$host_alias"; then
1300    cross_compiling=yes
1301  fi
1302fi
1303
1304ac_tool_prefix=
1305test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307test "$silent" = yes && exec 6>/dev/null
1308
1309
1310ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311ac_ls_di=`ls -di .` &&
1312ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313  as_fn_error $? "working directory cannot be determined"
1314test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315  as_fn_error $? "pwd does not report name of working directory"
1316
1317
1318# Find the source files, if location was not specified.
1319if test -z "$srcdir"; then
1320  ac_srcdir_defaulted=yes
1321  # Try the directory containing this script, then the parent directory.
1322  ac_confdir=`$as_dirname -- "$as_myself" ||
1323$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324	 X"$as_myself" : 'X\(//\)[^/]' \| \
1325	 X"$as_myself" : 'X\(//\)$' \| \
1326	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327$as_echo X"$as_myself" |
1328    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329	    s//\1/
1330	    q
1331	  }
1332	  /^X\(\/\/\)[^/].*/{
1333	    s//\1/
1334	    q
1335	  }
1336	  /^X\(\/\/\)$/{
1337	    s//\1/
1338	    q
1339	  }
1340	  /^X\(\/\).*/{
1341	    s//\1/
1342	    q
1343	  }
1344	  s/.*/./; q'`
1345  srcdir=$ac_confdir
1346  if test ! -r "$srcdir/$ac_unique_file"; then
1347    srcdir=..
1348  fi
1349else
1350  ac_srcdir_defaulted=no
1351fi
1352if test ! -r "$srcdir/$ac_unique_file"; then
1353  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355fi
1356ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357ac_abs_confdir=`(
1358	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359	pwd)`
1360# When building in place, set srcdir=.
1361if test "$ac_abs_confdir" = "$ac_pwd"; then
1362  srcdir=.
1363fi
1364# Remove unnecessary trailing slashes from srcdir.
1365# Double slashes in file names in object file debugging info
1366# mess up M-x gdb in Emacs.
1367case $srcdir in
1368*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369esac
1370for ac_var in $ac_precious_vars; do
1371  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372  eval ac_env_${ac_var}_value=\$${ac_var}
1373  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375done
1376
1377#
1378# Report the --help message.
1379#
1380if test "$ac_init_help" = "long"; then
1381  # Omit some internal or obsolete options to make the list less imposing.
1382  # This message is too long to be a string in the A/UX 3.1 sh.
1383  cat <<_ACEOF
1384\`configure' configures this package to adapt to many kinds of systems.
1385
1386Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389VAR=VALUE.  See below for descriptions of some of the useful variables.
1390
1391Defaults for the options are specified in brackets.
1392
1393Configuration:
1394  -h, --help              display this help and exit
1395      --help=short        display options specific to this package
1396      --help=recursive    display the short help of all the included packages
1397  -V, --version           display version information and exit
1398  -q, --quiet, --silent   do not print \`checking ...' messages
1399      --cache-file=FILE   cache test results in FILE [disabled]
1400  -C, --config-cache      alias for \`--cache-file=config.cache'
1401  -n, --no-create         do not create output files
1402      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1403
1404Installation directories:
1405  --prefix=PREFIX         install architecture-independent files in PREFIX
1406                          [$ac_default_prefix]
1407  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1408                          [PREFIX]
1409
1410By default, \`make install' will install all the files in
1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1412an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413for instance \`--prefix=\$HOME'.
1414
1415For better control, use the options below.
1416
1417Fine tuning of the installation directories:
1418  --bindir=DIR            user executables [EPREFIX/bin]
1419  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1420  --libexecdir=DIR        program executables [EPREFIX/libexec]
1421  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1422  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1423  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1424  --libdir=DIR            object code libraries [EPREFIX/lib]
1425  --includedir=DIR        C header files [PREFIX/include]
1426  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1427  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1428  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1429  --infodir=DIR           info documentation [DATAROOTDIR/info]
1430  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1431  --mandir=DIR            man documentation [DATAROOTDIR/man]
1432  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1433  --htmldir=DIR           html documentation [DOCDIR]
1434  --dvidir=DIR            dvi documentation [DOCDIR]
1435  --pdfdir=DIR            pdf documentation [DOCDIR]
1436  --psdir=DIR             ps documentation [DOCDIR]
1437_ACEOF
1438
1439  cat <<\_ACEOF
1440
1441X features:
1442  --x-includes=DIR    X include files are in DIR
1443  --x-libraries=DIR   X library files are in DIR
1444_ACEOF
1445fi
1446
1447if test -n "$ac_init_help"; then
1448
1449  cat <<\_ACEOF
1450
1451Optional Features:
1452  --disable-option-checking  ignore unrecognized --enable/--with options
1453  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455  --enable-fail-if-missing    Fail if dependencies on additional features
1456     specified on the command line are missing.
1457  --disable-darwin        Disable Darwin (Mac OS X) support.
1458  --disable-smack	  Do not check for Smack support.
1459  --disable-selinux	  Do not check for SELinux support.
1460  --disable-xsmp          Disable XSMP session management
1461  --disable-xsmp-interact Disable XSMP interaction
1462  --enable-luainterp=OPTS     Include Lua interpreter.  default=no OPTS=no/yes/dynamic
1463  --enable-mzschemeinterp   Include MzScheme interpreter.
1464  --enable-perlinterp=OPTS     Include Perl interpreter.  default=no OPTS=no/yes/dynamic
1465  --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
1466  --enable-python3interp=OPTS   Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1467  --enable-tclinterp      Include Tcl interpreter.
1468  --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
1469  --enable-cscope         Include cscope interface.
1470  --enable-workshop       Include Sun Visual Workshop support.
1471  --disable-netbeans      Disable NetBeans integration support.
1472  --enable-sniff          Include Sniff interface.
1473  --enable-multibyte      Include multibyte editing support.
1474  --enable-hangulinput    Include Hangul input support.
1475  --enable-xim            Include XIM input support.
1476  --enable-fontset        Include X fontset output support.
1477  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon
1478  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1479  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1480  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1481  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1482  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1483  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1484  --disable-gtktest       Do not try to compile and run a test GTK program
1485  --disable-largefile     omit support for large files
1486  --disable-acl           Don't check for ACL support.
1487  --disable-gpm           Don't use gpm (Linux mouse daemon).
1488  --disable-sysmouse    Don't use sysmouse (mouse in *BSD console).
1489  --disable-nls           Don't support NLS (gettext()).
1490
1491Optional Packages:
1492  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1493  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1494  --with-mac-arch=ARCH    current, intel, ppc or both
1495  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1496  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1497  --without-local-dir     do not search /usr/local for local libraries.
1498  --with-vim-name=NAME    what to call the Vim executable
1499  --with-ex-name=NAME     what to call the Ex executable
1500  --with-view-name=NAME   what to call the View executable
1501  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1502  --with-modified-by=NAME       name of who modified a release version
1503  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
1504  --with-compiledby=NAME  name to show in :version message
1505  --with-lua-prefix=PFX   Prefix where Lua is installed.
1506  --with-luajit           Link with LuaJIT instead of Lua.
1507  --with-plthome=PLTHOME   Use PLTHOME.
1508  --with-python-config-dir=PATH  Python's config directory
1509  --with-python3-config-dir=PATH  Python's config directory
1510  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1511  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1512  --with-x                use the X Window System
1513  --with-gnome-includes=DIR Specify location of GNOME headers
1514  --with-gnome-libs=DIR   Specify location of GNOME libs
1515  --with-gnome            Specify prefix for GNOME files
1516  --with-motif-lib=STRING   Library for Motif
1517  --with-tlib=library     terminal library to be used
1518
1519Some influential environment variables:
1520  CC          C compiler command
1521  CFLAGS      C compiler flags
1522  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523              nonstandard directory <lib dir>
1524  LIBS        libraries to pass to the linker, e.g. -l<library>
1525  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526              you have headers in a nonstandard directory <include dir>
1527  CPP         C preprocessor
1528  XMKMF       Path to xmkmf, Makefile generator for X Window System
1529
1530Use these variables to override the choices made by `configure' or to help
1531it to find libraries and programs with nonstandard names/locations.
1532
1533Report bugs to the package provider.
1534_ACEOF
1535ac_status=$?
1536fi
1537
1538if test "$ac_init_help" = "recursive"; then
1539  # If there are subdirs, report their specific --help.
1540  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541    test -d "$ac_dir" ||
1542      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543      continue
1544    ac_builddir=.
1545
1546case "$ac_dir" in
1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548*)
1549  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550  # A ".." for each directory in $ac_dir_suffix.
1551  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552  case $ac_top_builddir_sub in
1553  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555  esac ;;
1556esac
1557ac_abs_top_builddir=$ac_pwd
1558ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559# for backward compatibility:
1560ac_top_builddir=$ac_top_build_prefix
1561
1562case $srcdir in
1563  .)  # We are building in place.
1564    ac_srcdir=.
1565    ac_top_srcdir=$ac_top_builddir_sub
1566    ac_abs_top_srcdir=$ac_pwd ;;
1567  [\\/]* | ?:[\\/]* )  # Absolute name.
1568    ac_srcdir=$srcdir$ac_dir_suffix;
1569    ac_top_srcdir=$srcdir
1570    ac_abs_top_srcdir=$srcdir ;;
1571  *) # Relative name.
1572    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573    ac_top_srcdir=$ac_top_build_prefix$srcdir
1574    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575esac
1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578    cd "$ac_dir" || { ac_status=$?; continue; }
1579    # Check for guested configure.
1580    if test -f "$ac_srcdir/configure.gnu"; then
1581      echo &&
1582      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583    elif test -f "$ac_srcdir/configure"; then
1584      echo &&
1585      $SHELL "$ac_srcdir/configure" --help=recursive
1586    else
1587      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588    fi || ac_status=$?
1589    cd "$ac_pwd" || { ac_status=$?; break; }
1590  done
1591fi
1592
1593test -n "$ac_init_help" && exit $ac_status
1594if $ac_init_version; then
1595  cat <<\_ACEOF
1596configure
1597generated by GNU Autoconf 2.69
1598
1599Copyright (C) 2012 Free Software Foundation, Inc.
1600This configure script is free software; the Free Software Foundation
1601gives unlimited permission to copy, distribute and modify it.
1602_ACEOF
1603  exit
1604fi
1605
1606## ------------------------ ##
1607## Autoconf initialization. ##
1608## ------------------------ ##
1609
1610# ac_fn_c_try_compile LINENO
1611# --------------------------
1612# Try to compile conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_compile ()
1614{
1615  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616  rm -f conftest.$ac_objext
1617  if { { ac_try="$ac_compile"
1618case "(($ac_try" in
1619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620  *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624  (eval "$ac_compile") 2>conftest.err
1625  ac_status=$?
1626  if test -s conftest.err; then
1627    grep -v '^ *+' conftest.err >conftest.er1
1628    cat conftest.er1 >&5
1629    mv -f conftest.er1 conftest.err
1630  fi
1631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632  test $ac_status = 0; } && {
1633	 test -z "$ac_c_werror_flag" ||
1634	 test ! -s conftest.err
1635       } && test -s conftest.$ac_objext; then :
1636  ac_retval=0
1637else
1638  $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641	ac_retval=1
1642fi
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_compile
1647
1648# ac_fn_c_try_cpp LINENO
1649# ----------------------
1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_cpp ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  if { { ac_try="$ac_cpp conftest.$ac_ext"
1655case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662  ac_status=$?
1663  if test -s conftest.err; then
1664    grep -v '^ *+' conftest.err >conftest.er1
1665    cat conftest.er1 >&5
1666    mv -f conftest.er1 conftest.err
1667  fi
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } > conftest.i && {
1670	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       }; then :
1673  ac_retval=0
1674else
1675  $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678    ac_retval=1
1679fi
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681  as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_cpp
1684
1685# ac_fn_c_try_link LINENO
1686# -----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_link ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  rm -f conftest.$ac_objext conftest$ac_exeext
1692  if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_link") 2>conftest.err
1700  ac_status=$?
1701  if test -s conftest.err; then
1702    grep -v '^ *+' conftest.err >conftest.er1
1703    cat conftest.er1 >&5
1704    mv -f conftest.er1 conftest.err
1705  fi
1706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; } && {
1708	 test -z "$ac_c_werror_flag" ||
1709	 test ! -s conftest.err
1710       } && test -s conftest$ac_exeext && {
1711	 test "$cross_compiling" = yes ||
1712	 test -x conftest$ac_exeext
1713       }; then :
1714  ac_retval=0
1715else
1716  $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719	ac_retval=1
1720fi
1721  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723  # interfere with the next link command; also delete a directory that is
1724  # left behind by Apple's compiler.  We do this before executing the actions.
1725  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727  as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_link
1730
1731# ac_fn_c_try_run LINENO
1732# ----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734# that executables *can* be run.
1735ac_fn_c_try_run ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741  *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745  (eval "$ac_link") 2>&5
1746  ac_status=$?
1747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749  { { case "(($ac_try" in
1750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751  *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755  (eval "$ac_try") 2>&5
1756  ac_status=$?
1757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758  test $ac_status = 0; }; }; then :
1759  ac_retval=0
1760else
1761  $as_echo "$as_me: program exited with status $ac_status" >&5
1762       $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765       ac_retval=$ac_status
1766fi
1767  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769  as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_run
1772
1773# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774# -------------------------------------------------------
1775# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776# the include files in INCLUDES and setting the cache variable VAR
1777# accordingly.
1778ac_fn_c_check_header_mongrel ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  if eval \${$3+:} false; then :
1782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if eval \${$3+:} false; then :
1785  $as_echo_n "(cached) " >&6
1786fi
1787eval ac_res=\$$3
1788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790else
1791  # Is the header compilable?
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793$as_echo_n "checking $2 usability... " >&6; }
1794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h.  */
1796$4
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800  ac_header_compiler=yes
1801else
1802  ac_header_compiler=no
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806$as_echo "$ac_header_compiler" >&6; }
1807
1808# Is the header present?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810$as_echo_n "checking $2 presence... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_cpp "$LINENO"; then :
1816  ac_header_preproc=yes
1817else
1818  ac_header_preproc=no
1819fi
1820rm -f conftest.err conftest.i conftest.$ac_ext
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822$as_echo "$ac_header_preproc" >&6; }
1823
1824# So?  What about this header?
1825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826  yes:no: )
1827    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831    ;;
1832  no:yes:* )
1833    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1836$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1837    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1840$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843    ;;
1844esac
1845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
1847if eval \${$3+:} false; then :
1848  $as_echo_n "(cached) " >&6
1849else
1850  eval "$3=\$ac_header_compiler"
1851fi
1852eval ac_res=\$$3
1853	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855fi
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858} # ac_fn_c_check_header_mongrel
1859
1860# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1861# -------------------------------------------------------
1862# Tests whether HEADER exists and can be compiled using the include files in
1863# INCLUDES, setting the cache variable VAR accordingly.
1864ac_fn_c_check_header_compile ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874$4
1875#include <$2>
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878  eval "$3=yes"
1879else
1880  eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883fi
1884eval ac_res=\$$3
1885	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889} # ac_fn_c_check_header_compile
1890
1891# ac_fn_c_check_func LINENO FUNC VAR
1892# ----------------------------------
1893# Tests whether FUNC exists, setting the cache variable VAR accordingly
1894ac_fn_c_check_func ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898$as_echo_n "checking for $2... " >&6; }
1899if eval \${$3+:} false; then :
1900  $as_echo_n "(cached) " >&6
1901else
1902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h.  */
1904/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1905   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1906#define $2 innocuous_$2
1907
1908/* System header to define __stub macros and hopefully few prototypes,
1909    which can conflict with char $2 (); below.
1910    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1911    <limits.h> exists even on freestanding compilers.  */
1912
1913#ifdef __STDC__
1914# include <limits.h>
1915#else
1916# include <assert.h>
1917#endif
1918
1919#undef $2
1920
1921/* Override any GCC internal prototype to avoid an error.
1922   Use char because int might match the return type of a GCC
1923   builtin and then its argument prototype would still apply.  */
1924#ifdef __cplusplus
1925extern "C"
1926#endif
1927char $2 ();
1928/* The GNU C library defines this for functions which it implements
1929    to always fail with ENOSYS.  Some functions are actually named
1930    something starting with __ and the normal name is an alias.  */
1931#if defined __stub_$2 || defined __stub___$2
1932choke me
1933#endif
1934
1935int
1936main ()
1937{
1938return $2 ();
1939  ;
1940  return 0;
1941}
1942_ACEOF
1943if ac_fn_c_try_link "$LINENO"; then :
1944  eval "$3=yes"
1945else
1946  eval "$3=no"
1947fi
1948rm -f core conftest.err conftest.$ac_objext \
1949    conftest$ac_exeext conftest.$ac_ext
1950fi
1951eval ac_res=\$$3
1952	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953$as_echo "$ac_res" >&6; }
1954  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955
1956} # ac_fn_c_check_func
1957
1958# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1959# -------------------------------------------
1960# Tests whether TYPE exists after having included INCLUDES, setting cache
1961# variable VAR accordingly.
1962ac_fn_c_check_type ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966$as_echo_n "checking for $2... " >&6; }
1967if eval \${$3+:} false; then :
1968  $as_echo_n "(cached) " >&6
1969else
1970  eval "$3=no"
1971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h.  */
1973$4
1974int
1975main ()
1976{
1977if (sizeof ($2))
1978	 return 0;
1979  ;
1980  return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986$4
1987int
1988main ()
1989{
1990if (sizeof (($2)))
1991	    return 0;
1992  ;
1993  return 0;
1994}
1995_ACEOF
1996if ac_fn_c_try_compile "$LINENO"; then :
1997
1998else
1999  eval "$3=yes"
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005eval ac_res=\$$3
2006	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010} # ac_fn_c_check_type
2011
2012# ac_fn_c_find_uintX_t LINENO BITS VAR
2013# ------------------------------------
2014# Finds an unsigned integer type with width BITS, setting cache variable VAR
2015# accordingly.
2016ac_fn_c_find_uintX_t ()
2017{
2018  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2020$as_echo_n "checking for uint$2_t... " >&6; }
2021if eval \${$3+:} false; then :
2022  $as_echo_n "(cached) " >&6
2023else
2024  eval "$3=no"
2025     # Order is important - never check a type that is potentially smaller
2026     # than half of the expected target width.
2027     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2028	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2029       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h.  */
2031$ac_includes_default
2032int
2033main ()
2034{
2035static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2036test_array [0] = 0;
2037return test_array [0];
2038
2039  ;
2040  return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044  case $ac_type in #(
2045  uint$2_t) :
2046    eval "$3=yes" ;; #(
2047  *) :
2048    eval "$3=\$ac_type" ;;
2049esac
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052       if eval test \"x\$"$3"\" = x"no"; then :
2053
2054else
2055  break
2056fi
2057     done
2058fi
2059eval ac_res=\$$3
2060	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063
2064} # ac_fn_c_find_uintX_t
2065
2066# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067# --------------------------------------------
2068# Tries to find the compile-time value of EXPR in a program that includes
2069# INCLUDES, setting VAR accordingly. Returns whether the value could be
2070# computed
2071ac_fn_c_compute_int ()
2072{
2073  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074  if test "$cross_compiling" = yes; then
2075    # Depending upon the size, compute the lo and hi bounds.
2076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h.  */
2078$4
2079int
2080main ()
2081{
2082static int test_array [1 - 2 * !(($2) >= 0)];
2083test_array [0] = 0;
2084return test_array [0];
2085
2086  ;
2087  return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091  ac_lo=0 ac_mid=0
2092  while :; do
2093    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094/* end confdefs.h.  */
2095$4
2096int
2097main ()
2098{
2099static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2100test_array [0] = 0;
2101return test_array [0];
2102
2103  ;
2104  return 0;
2105}
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108  ac_hi=$ac_mid; break
2109else
2110  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2111			if test $ac_lo -le $ac_mid; then
2112			  ac_lo= ac_hi=
2113			  break
2114			fi
2115			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118  done
2119else
2120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h.  */
2122$4
2123int
2124main ()
2125{
2126static int test_array [1 - 2 * !(($2) < 0)];
2127test_array [0] = 0;
2128return test_array [0];
2129
2130  ;
2131  return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"; then :
2135  ac_hi=-1 ac_mid=-1
2136  while :; do
2137    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h.  */
2139$4
2140int
2141main ()
2142{
2143static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2144test_array [0] = 0;
2145return test_array [0];
2146
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152  ac_lo=$ac_mid; break
2153else
2154  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2155			if test $ac_mid -le $ac_hi; then
2156			  ac_lo= ac_hi=
2157			  break
2158			fi
2159			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162  done
2163else
2164  ac_lo= ac_hi=
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169# Binary search between lo and hi bounds.
2170while test "x$ac_lo" != "x$ac_hi"; do
2171  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h.  */
2174$4
2175int
2176main ()
2177{
2178static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179test_array [0] = 0;
2180return test_array [0];
2181
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187  ac_hi=$ac_mid
2188else
2189  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192done
2193case $ac_lo in #((
2194?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2195'') ac_retval=1 ;;
2196esac
2197  else
2198    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h.  */
2200$4
2201static long int longval () { return $2; }
2202static unsigned long int ulongval () { return $2; }
2203#include <stdio.h>
2204#include <stdlib.h>
2205int
2206main ()
2207{
2208
2209  FILE *f = fopen ("conftest.val", "w");
2210  if (! f)
2211    return 1;
2212  if (($2) < 0)
2213    {
2214      long int i = longval ();
2215      if (i != ($2))
2216	return 1;
2217      fprintf (f, "%ld", i);
2218    }
2219  else
2220    {
2221      unsigned long int i = ulongval ();
2222      if (i != ($2))
2223	return 1;
2224      fprintf (f, "%lu", i);
2225    }
2226  /* Do not output a trailing newline, as this causes \r\n confusion
2227     on some platforms.  */
2228  return ferror (f) || fclose (f) != 0;
2229
2230  ;
2231  return 0;
2232}
2233_ACEOF
2234if ac_fn_c_try_run "$LINENO"; then :
2235  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2236else
2237  ac_retval=1
2238fi
2239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2240  conftest.$ac_objext conftest.beam conftest.$ac_ext
2241rm -f conftest.val
2242
2243  fi
2244  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245  as_fn_set_status $ac_retval
2246
2247} # ac_fn_c_compute_int
2248cat >auto/config.log <<_ACEOF
2249This file contains any messages produced by compilers while
2250running configure, to aid debugging if configure makes a mistake.
2251
2252It was created by $as_me, which was
2253generated by GNU Autoconf 2.69.  Invocation command line was
2254
2255  $ $0 $@
2256
2257_ACEOF
2258exec 5>>auto/config.log
2259{
2260cat <<_ASUNAME
2261## --------- ##
2262## Platform. ##
2263## --------- ##
2264
2265hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2266uname -m = `(uname -m) 2>/dev/null || echo unknown`
2267uname -r = `(uname -r) 2>/dev/null || echo unknown`
2268uname -s = `(uname -s) 2>/dev/null || echo unknown`
2269uname -v = `(uname -v) 2>/dev/null || echo unknown`
2270
2271/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2272/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2273
2274/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2275/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2276/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2277/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2278/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2279/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2280/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2281
2282_ASUNAME
2283
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287  IFS=$as_save_IFS
2288  test -z "$as_dir" && as_dir=.
2289    $as_echo "PATH: $as_dir"
2290  done
2291IFS=$as_save_IFS
2292
2293} >&5
2294
2295cat >&5 <<_ACEOF
2296
2297
2298## ----------- ##
2299## Core tests. ##
2300## ----------- ##
2301
2302_ACEOF
2303
2304
2305# Keep a trace of the command line.
2306# Strip out --no-create and --no-recursion so they do not pile up.
2307# Strip out --silent because we don't want to record it for future runs.
2308# Also quote any args containing shell meta-characters.
2309# Make two passes to allow for proper duplicate-argument suppression.
2310ac_configure_args=
2311ac_configure_args0=
2312ac_configure_args1=
2313ac_must_keep_next=false
2314for ac_pass in 1 2
2315do
2316  for ac_arg
2317  do
2318    case $ac_arg in
2319    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2320    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2321    | -silent | --silent | --silen | --sile | --sil)
2322      continue ;;
2323    *\'*)
2324      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2325    esac
2326    case $ac_pass in
2327    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2328    2)
2329      as_fn_append ac_configure_args1 " '$ac_arg'"
2330      if test $ac_must_keep_next = true; then
2331	ac_must_keep_next=false # Got value, back to normal.
2332      else
2333	case $ac_arg in
2334	  *=* | --config-cache | -C | -disable-* | --disable-* \
2335	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2336	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2337	  | -with-* | --with-* | -without-* | --without-* | --x)
2338	    case "$ac_configure_args0 " in
2339	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2340	    esac
2341	    ;;
2342	  -* ) ac_must_keep_next=true ;;
2343	esac
2344      fi
2345      as_fn_append ac_configure_args " '$ac_arg'"
2346      ;;
2347    esac
2348  done
2349done
2350{ ac_configure_args0=; unset ac_configure_args0;}
2351{ ac_configure_args1=; unset ac_configure_args1;}
2352
2353# When interrupted or exit'd, cleanup temporary files, and complete
2354# config.log.  We remove comments because anyway the quotes in there
2355# would cause problems or look ugly.
2356# WARNING: Use '\'' to represent an apostrophe within the trap.
2357# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2358trap 'exit_status=$?
2359  # Save into config.log some information that might help in debugging.
2360  {
2361    echo
2362
2363    $as_echo "## ---------------- ##
2364## Cache variables. ##
2365## ---------------- ##"
2366    echo
2367    # The following way of writing the cache mishandles newlines in values,
2368(
2369  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2370    eval ac_val=\$$ac_var
2371    case $ac_val in #(
2372    *${as_nl}*)
2373      case $ac_var in #(
2374      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2375$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2376      esac
2377      case $ac_var in #(
2378      _ | IFS | as_nl) ;; #(
2379      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2380      *) { eval $ac_var=; unset $ac_var;} ;;
2381      esac ;;
2382    esac
2383  done
2384  (set) 2>&1 |
2385    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2386    *${as_nl}ac_space=\ *)
2387      sed -n \
2388	"s/'\''/'\''\\\\'\'''\''/g;
2389	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2390      ;; #(
2391    *)
2392      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2393      ;;
2394    esac |
2395    sort
2396)
2397    echo
2398
2399    $as_echo "## ----------------- ##
2400## Output variables. ##
2401## ----------------- ##"
2402    echo
2403    for ac_var in $ac_subst_vars
2404    do
2405      eval ac_val=\$$ac_var
2406      case $ac_val in
2407      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2408      esac
2409      $as_echo "$ac_var='\''$ac_val'\''"
2410    done | sort
2411    echo
2412
2413    if test -n "$ac_subst_files"; then
2414      $as_echo "## ------------------- ##
2415## File substitutions. ##
2416## ------------------- ##"
2417      echo
2418      for ac_var in $ac_subst_files
2419      do
2420	eval ac_val=\$$ac_var
2421	case $ac_val in
2422	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423	esac
2424	$as_echo "$ac_var='\''$ac_val'\''"
2425      done | sort
2426      echo
2427    fi
2428
2429    if test -s confdefs.h; then
2430      $as_echo "## ----------- ##
2431## confdefs.h. ##
2432## ----------- ##"
2433      echo
2434      cat confdefs.h
2435      echo
2436    fi
2437    test "$ac_signal" != 0 &&
2438      $as_echo "$as_me: caught signal $ac_signal"
2439    $as_echo "$as_me: exit $exit_status"
2440  } >&5
2441  rm -f core *.core core.conftest.* &&
2442    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2443    exit $exit_status
2444' 0
2445for ac_signal in 1 2 13 15; do
2446  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2447done
2448ac_signal=0
2449
2450# confdefs.h avoids OS command line length limits that DEFS can exceed.
2451rm -f -r conftest* confdefs.h
2452
2453$as_echo "/* confdefs.h */" > confdefs.h
2454
2455# Predefined preprocessor variables.
2456
2457cat >>confdefs.h <<_ACEOF
2458#define PACKAGE_NAME "$PACKAGE_NAME"
2459_ACEOF
2460
2461cat >>confdefs.h <<_ACEOF
2462#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2463_ACEOF
2464
2465cat >>confdefs.h <<_ACEOF
2466#define PACKAGE_VERSION "$PACKAGE_VERSION"
2467_ACEOF
2468
2469cat >>confdefs.h <<_ACEOF
2470#define PACKAGE_STRING "$PACKAGE_STRING"
2471_ACEOF
2472
2473cat >>confdefs.h <<_ACEOF
2474#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2475_ACEOF
2476
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_URL "$PACKAGE_URL"
2479_ACEOF
2480
2481
2482# Let the site file select an alternate cache file if it wants to.
2483# Prefer an explicitly selected file to automatically selected ones.
2484ac_site_file1=NONE
2485ac_site_file2=NONE
2486if test -n "$CONFIG_SITE"; then
2487  # We do not want a PATH search for config.site.
2488  case $CONFIG_SITE in #((
2489    -*)  ac_site_file1=./$CONFIG_SITE;;
2490    */*) ac_site_file1=$CONFIG_SITE;;
2491    *)   ac_site_file1=./$CONFIG_SITE;;
2492  esac
2493elif test "x$prefix" != xNONE; then
2494  ac_site_file1=$prefix/share/config.site
2495  ac_site_file2=$prefix/etc/config.site
2496else
2497  ac_site_file1=$ac_default_prefix/share/config.site
2498  ac_site_file2=$ac_default_prefix/etc/config.site
2499fi
2500for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2501do
2502  test "x$ac_site_file" = xNONE && continue
2503  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2504    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2505$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2506    sed 's/^/| /' "$ac_site_file" >&5
2507    . "$ac_site_file" \
2508      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510as_fn_error $? "failed to load site script $ac_site_file
2511See \`config.log' for more details" "$LINENO" 5; }
2512  fi
2513done
2514
2515if test -r "$cache_file"; then
2516  # Some versions of bash will fail to source /dev/null (special files
2517  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2518  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2519    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2520$as_echo "$as_me: loading cache $cache_file" >&6;}
2521    case $cache_file in
2522      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2523      *)                      . "./$cache_file";;
2524    esac
2525  fi
2526else
2527  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2528$as_echo "$as_me: creating cache $cache_file" >&6;}
2529  >$cache_file
2530fi
2531
2532# Check that the precious variables saved in the cache have kept the same
2533# value.
2534ac_cache_corrupted=false
2535for ac_var in $ac_precious_vars; do
2536  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2537  eval ac_new_set=\$ac_env_${ac_var}_set
2538  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2539  eval ac_new_val=\$ac_env_${ac_var}_value
2540  case $ac_old_set,$ac_new_set in
2541    set,)
2542      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2543$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2544      ac_cache_corrupted=: ;;
2545    ,set)
2546      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2547$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2548      ac_cache_corrupted=: ;;
2549    ,);;
2550    *)
2551      if test "x$ac_old_val" != "x$ac_new_val"; then
2552	# differences in whitespace do not lead to failure.
2553	ac_old_val_w=`echo x $ac_old_val`
2554	ac_new_val_w=`echo x $ac_new_val`
2555	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2556	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2557$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2558	  ac_cache_corrupted=:
2559	else
2560	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2561$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2562	  eval $ac_var=\$ac_old_val
2563	fi
2564	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2565$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2566	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2567$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2568      fi;;
2569  esac
2570  # Pass precious variables to config.status.
2571  if test "$ac_new_set" = set; then
2572    case $ac_new_val in
2573    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2574    *) ac_arg=$ac_var=$ac_new_val ;;
2575    esac
2576    case " $ac_configure_args " in
2577      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2578      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2579    esac
2580  fi
2581done
2582if $ac_cache_corrupted; then
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2586$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2587  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2588fi
2589## -------------------- ##
2590## Main body of script. ##
2591## -------------------- ##
2592
2593ac_ext=c
2594ac_cpp='$CPP $CPPFLAGS'
2595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598
2599
2600ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2601
2602
2603$as_echo "#define UNIX 1" >>confdefs.h
2604
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2606$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2607set x ${MAKE-make}
2608ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2609if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2610  $as_echo_n "(cached) " >&6
2611else
2612  cat >conftest.make <<\_ACEOF
2613SHELL = /bin/sh
2614all:
2615	@echo '@@@%%%=$(MAKE)=@@@%%%'
2616_ACEOF
2617# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2618case `${MAKE-make} -f conftest.make 2>/dev/null` in
2619  *@@@%%%=?*=@@@%%%*)
2620    eval ac_cv_prog_make_${ac_make}_set=yes;;
2621  *)
2622    eval ac_cv_prog_make_${ac_make}_set=no;;
2623esac
2624rm -f conftest.make
2625fi
2626if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628$as_echo "yes" >&6; }
2629  SET_MAKE=
2630else
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632$as_echo "no" >&6; }
2633  SET_MAKE="MAKE=${MAKE-make}"
2634fi
2635
2636
2637ac_ext=c
2638ac_cpp='$CPP $CPPFLAGS'
2639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642if test -n "$ac_tool_prefix"; then
2643  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2644set dummy ${ac_tool_prefix}gcc; ac_word=$2
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646$as_echo_n "checking for $ac_word... " >&6; }
2647if ${ac_cv_prog_CC+:} false; then :
2648  $as_echo_n "(cached) " >&6
2649else
2650  if test -n "$CC"; then
2651  ac_cv_prog_CC="$CC" # Let the user override the test.
2652else
2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656  IFS=$as_save_IFS
2657  test -z "$as_dir" && as_dir=.
2658    for ac_exec_ext in '' $ac_executable_extensions; do
2659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662    break 2
2663  fi
2664done
2665  done
2666IFS=$as_save_IFS
2667
2668fi
2669fi
2670CC=$ac_cv_prog_CC
2671if test -n "$CC"; then
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673$as_echo "$CC" >&6; }
2674else
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676$as_echo "no" >&6; }
2677fi
2678
2679
2680fi
2681if test -z "$ac_cv_prog_CC"; then
2682  ac_ct_CC=$CC
2683  # Extract the first word of "gcc", so it can be a program name with args.
2684set dummy gcc; ac_word=$2
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686$as_echo_n "checking for $ac_word... " >&6; }
2687if ${ac_cv_prog_ac_ct_CC+:} false; then :
2688  $as_echo_n "(cached) " >&6
2689else
2690  if test -n "$ac_ct_CC"; then
2691  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692else
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696  IFS=$as_save_IFS
2697  test -z "$as_dir" && as_dir=.
2698    for ac_exec_ext in '' $ac_executable_extensions; do
2699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700    ac_cv_prog_ac_ct_CC="gcc"
2701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702    break 2
2703  fi
2704done
2705  done
2706IFS=$as_save_IFS
2707
2708fi
2709fi
2710ac_ct_CC=$ac_cv_prog_ac_ct_CC
2711if test -n "$ac_ct_CC"; then
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2713$as_echo "$ac_ct_CC" >&6; }
2714else
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717fi
2718
2719  if test "x$ac_ct_CC" = x; then
2720    CC=""
2721  else
2722    case $cross_compiling:$ac_tool_warned in
2723yes:)
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726ac_tool_warned=yes ;;
2727esac
2728    CC=$ac_ct_CC
2729  fi
2730else
2731  CC="$ac_cv_prog_CC"
2732fi
2733
2734if test -z "$CC"; then
2735          if test -n "$ac_tool_prefix"; then
2736    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2737set dummy ${ac_tool_prefix}cc; ac_word=$2
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739$as_echo_n "checking for $ac_word... " >&6; }
2740if ${ac_cv_prog_CC+:} false; then :
2741  $as_echo_n "(cached) " >&6
2742else
2743  if test -n "$CC"; then
2744  ac_cv_prog_CC="$CC" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751    for ac_exec_ext in '' $ac_executable_extensions; do
2752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753    ac_cv_prog_CC="${ac_tool_prefix}cc"
2754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755    break 2
2756  fi
2757done
2758  done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763CC=$ac_cv_prog_CC
2764if test -n "$CC"; then
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766$as_echo "$CC" >&6; }
2767else
2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769$as_echo "no" >&6; }
2770fi
2771
2772
2773  fi
2774fi
2775if test -z "$CC"; then
2776  # Extract the first word of "cc", so it can be a program name with args.
2777set dummy cc; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if ${ac_cv_prog_CC+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  if test -n "$CC"; then
2784  ac_cv_prog_CC="$CC" # Let the user override the test.
2785else
2786  ac_prog_rejected=no
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792    for ac_exec_ext in '' $ac_executable_extensions; do
2793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2795       ac_prog_rejected=yes
2796       continue
2797     fi
2798    ac_cv_prog_CC="cc"
2799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800    break 2
2801  fi
2802done
2803  done
2804IFS=$as_save_IFS
2805
2806if test $ac_prog_rejected = yes; then
2807  # We found a bogon in the path, so make sure we never use it.
2808  set dummy $ac_cv_prog_CC
2809  shift
2810  if test $# != 0; then
2811    # We chose a different compiler from the bogus one.
2812    # However, it has the same basename, so the bogon will be chosen
2813    # first if we set CC to just the basename; use the full file name.
2814    shift
2815    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2816  fi
2817fi
2818fi
2819fi
2820CC=$ac_cv_prog_CC
2821if test -n "$CC"; then
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823$as_echo "$CC" >&6; }
2824else
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829
2830fi
2831if test -z "$CC"; then
2832  if test -n "$ac_tool_prefix"; then
2833  for ac_prog in cl.exe
2834  do
2835    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2836set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838$as_echo_n "checking for $ac_word... " >&6; }
2839if ${ac_cv_prog_CC+:} false; then :
2840  $as_echo_n "(cached) " >&6
2841else
2842  if test -n "$CC"; then
2843  ac_cv_prog_CC="$CC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848  IFS=$as_save_IFS
2849  test -z "$as_dir" && as_dir=.
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857  done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865$as_echo "$CC" >&6; }
2866else
2867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868$as_echo "no" >&6; }
2869fi
2870
2871
2872    test -n "$CC" && break
2873  done
2874fi
2875if test -z "$CC"; then
2876  ac_ct_CC=$CC
2877  for ac_prog in cl.exe
2878do
2879  # Extract the first word of "$ac_prog", so it can be a program name with args.
2880set dummy $ac_prog; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if test -n "$ac_ct_CC"; then
2887  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894    for ac_exec_ext in '' $ac_executable_extensions; do
2895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896    ac_cv_prog_ac_ct_CC="$ac_prog"
2897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898    break 2
2899  fi
2900done
2901  done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907if test -n "$ac_ct_CC"; then
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909$as_echo "$ac_ct_CC" >&6; }
2910else
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
2914
2915
2916  test -n "$ac_ct_CC" && break
2917done
2918
2919  if test "x$ac_ct_CC" = x; then
2920    CC=""
2921  else
2922    case $cross_compiling:$ac_tool_warned in
2923yes:)
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2926ac_tool_warned=yes ;;
2927esac
2928    CC=$ac_ct_CC
2929  fi
2930fi
2931
2932fi
2933
2934
2935test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937as_fn_error $? "no acceptable C compiler found in \$PATH
2938See \`config.log' for more details" "$LINENO" 5; }
2939
2940# Provide some information about the compiler.
2941$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2942set X $ac_compile
2943ac_compiler=$2
2944for ac_option in --version -v -V -qversion; do
2945  { { ac_try="$ac_compiler $ac_option >&5"
2946case "(($ac_try" in
2947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948  *) ac_try_echo=$ac_try;;
2949esac
2950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951$as_echo "$ac_try_echo"; } >&5
2952  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2953  ac_status=$?
2954  if test -s conftest.err; then
2955    sed '10a\
2956... rest of stderr output deleted ...
2957         10q' conftest.err >conftest.er1
2958    cat conftest.er1 >&5
2959  fi
2960  rm -f conftest.er1 conftest.err
2961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962  test $ac_status = 0; }
2963done
2964
2965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966/* end confdefs.h.  */
2967
2968int
2969main ()
2970{
2971
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976ac_clean_files_save=$ac_clean_files
2977ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2978# Try to create an executable without -o first, disregard a.out.
2979# It will help us diagnose broken compilers, and finding out an intuition
2980# of exeext.
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2982$as_echo_n "checking whether the C compiler works... " >&6; }
2983ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2984
2985# The possible output files:
2986ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2987
2988ac_rmfiles=
2989for ac_file in $ac_files
2990do
2991  case $ac_file in
2992    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2993    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2994  esac
2995done
2996rm -f $ac_rmfiles
2997
2998if { { ac_try="$ac_link_default"
2999case "(($ac_try" in
3000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001  *) ac_try_echo=$ac_try;;
3002esac
3003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004$as_echo "$ac_try_echo"; } >&5
3005  (eval "$ac_link_default") 2>&5
3006  ac_status=$?
3007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008  test $ac_status = 0; }; then :
3009  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3010# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3011# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3012# so that the user can short-circuit this test for compilers unknown to
3013# Autoconf.
3014for ac_file in $ac_files ''
3015do
3016  test -f "$ac_file" || continue
3017  case $ac_file in
3018    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3019	;;
3020    [ab].out )
3021	# We found the default executable, but exeext='' is most
3022	# certainly right.
3023	break;;
3024    *.* )
3025	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3026	then :; else
3027	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028	fi
3029	# We set ac_cv_exeext here because the later test for it is not
3030	# safe: cross compilers may not add the suffix if given an `-o'
3031	# argument, so we may need to know it at that point already.
3032	# Even if this section looks crufty: it has the advantage of
3033	# actually working.
3034	break;;
3035    * )
3036	break;;
3037  esac
3038done
3039test "$ac_cv_exeext" = no && ac_cv_exeext=
3040
3041else
3042  ac_file=''
3043fi
3044if test -z "$ac_file"; then :
3045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046$as_echo "no" >&6; }
3047$as_echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052as_fn_error 77 "C compiler cannot create executables
3053See \`config.log' for more details" "$LINENO" 5; }
3054else
3055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3056$as_echo "yes" >&6; }
3057fi
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3059$as_echo_n "checking for C compiler default output file name... " >&6; }
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3061$as_echo "$ac_file" >&6; }
3062ac_exeext=$ac_cv_exeext
3063
3064rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3065ac_clean_files=$ac_clean_files_save
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3067$as_echo_n "checking for suffix of executables... " >&6; }
3068if { { ac_try="$ac_link"
3069case "(($ac_try" in
3070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071  *) ac_try_echo=$ac_try;;
3072esac
3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074$as_echo "$ac_try_echo"; } >&5
3075  (eval "$ac_link") 2>&5
3076  ac_status=$?
3077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078  test $ac_status = 0; }; then :
3079  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3080# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3081# work properly (i.e., refer to `conftest.exe'), while it won't with
3082# `rm'.
3083for ac_file in conftest.exe conftest conftest.*; do
3084  test -f "$ac_file" || continue
3085  case $ac_file in
3086    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088	  break;;
3089    * ) break;;
3090  esac
3091done
3092else
3093  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3096See \`config.log' for more details" "$LINENO" 5; }
3097fi
3098rm -f conftest conftest$ac_cv_exeext
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3100$as_echo "$ac_cv_exeext" >&6; }
3101
3102rm -f conftest.$ac_ext
3103EXEEXT=$ac_cv_exeext
3104ac_exeext=$EXEEXT
3105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h.  */
3107#include <stdio.h>
3108int
3109main ()
3110{
3111FILE *f = fopen ("conftest.out", "w");
3112 return ferror (f) || fclose (f) != 0;
3113
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118ac_clean_files="$ac_clean_files conftest.out"
3119# Check that the compiler produces executables we can run.  If not, either
3120# the compiler is broken, or we cross compile.
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3122$as_echo_n "checking whether we are cross compiling... " >&6; }
3123if test "$cross_compiling" != yes; then
3124  { { ac_try="$ac_link"
3125case "(($ac_try" in
3126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127  *) ac_try_echo=$ac_try;;
3128esac
3129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130$as_echo "$ac_try_echo"; } >&5
3131  (eval "$ac_link") 2>&5
3132  ac_status=$?
3133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134  test $ac_status = 0; }
3135  if { ac_try='./conftest$ac_cv_exeext'
3136  { { case "(($ac_try" in
3137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138  *) ac_try_echo=$ac_try;;
3139esac
3140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141$as_echo "$ac_try_echo"; } >&5
3142  (eval "$ac_try") 2>&5
3143  ac_status=$?
3144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145  test $ac_status = 0; }; }; then
3146    cross_compiling=no
3147  else
3148    if test "$cross_compiling" = maybe; then
3149	cross_compiling=yes
3150    else
3151	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153as_fn_error $? "cannot run C compiled programs.
3154If you meant to cross compile, use \`--host'.
3155See \`config.log' for more details" "$LINENO" 5; }
3156    fi
3157  fi
3158fi
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3160$as_echo "$cross_compiling" >&6; }
3161
3162rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3163ac_clean_files=$ac_clean_files_save
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3165$as_echo_n "checking for suffix of object files... " >&6; }
3166if ${ac_cv_objext+:} false; then :
3167  $as_echo_n "(cached) " >&6
3168else
3169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h.  */
3171
3172int
3173main ()
3174{
3175
3176  ;
3177  return 0;
3178}
3179_ACEOF
3180rm -f conftest.o conftest.obj
3181if { { ac_try="$ac_compile"
3182case "(($ac_try" in
3183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184  *) ac_try_echo=$ac_try;;
3185esac
3186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187$as_echo "$ac_try_echo"; } >&5
3188  (eval "$ac_compile") 2>&5
3189  ac_status=$?
3190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191  test $ac_status = 0; }; then :
3192  for ac_file in conftest.o conftest.obj conftest.*; do
3193  test -f "$ac_file" || continue;
3194  case $ac_file in
3195    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3196    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3197       break;;
3198  esac
3199done
3200else
3201  $as_echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206as_fn_error $? "cannot compute suffix of object files: cannot compile
3207See \`config.log' for more details" "$LINENO" 5; }
3208fi
3209rm -f conftest.$ac_cv_objext conftest.$ac_ext
3210fi
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3212$as_echo "$ac_cv_objext" >&6; }
3213OBJEXT=$ac_cv_objext
3214ac_objext=$OBJEXT
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3216$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3217if ${ac_cv_c_compiler_gnu+:} false; then :
3218  $as_echo_n "(cached) " >&6
3219else
3220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221/* end confdefs.h.  */
3222
3223int
3224main ()
3225{
3226#ifndef __GNUC__
3227       choke me
3228#endif
3229
3230  ;
3231  return 0;
3232}
3233_ACEOF
3234if ac_fn_c_try_compile "$LINENO"; then :
3235  ac_compiler_gnu=yes
3236else
3237  ac_compiler_gnu=no
3238fi
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240ac_cv_c_compiler_gnu=$ac_compiler_gnu
3241
3242fi
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3244$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3245if test $ac_compiler_gnu = yes; then
3246  GCC=yes
3247else
3248  GCC=
3249fi
3250ac_test_CFLAGS=${CFLAGS+set}
3251ac_save_CFLAGS=$CFLAGS
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3253$as_echo_n "checking whether $CC accepts -g... " >&6; }
3254if ${ac_cv_prog_cc_g+:} false; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  ac_save_c_werror_flag=$ac_c_werror_flag
3258   ac_c_werror_flag=yes
3259   ac_cv_prog_cc_g=no
3260   CFLAGS="-g"
3261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h.  */
3263
3264int
3265main ()
3266{
3267
3268  ;
3269  return 0;
3270}
3271_ACEOF
3272if ac_fn_c_try_compile "$LINENO"; then :
3273  ac_cv_prog_cc_g=yes
3274else
3275  CFLAGS=""
3276      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277/* end confdefs.h.  */
3278
3279int
3280main ()
3281{
3282
3283  ;
3284  return 0;
3285}
3286_ACEOF
3287if ac_fn_c_try_compile "$LINENO"; then :
3288
3289else
3290  ac_c_werror_flag=$ac_save_c_werror_flag
3291	 CFLAGS="-g"
3292	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h.  */
3294
3295int
3296main ()
3297{
3298
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303if ac_fn_c_try_compile "$LINENO"; then :
3304  ac_cv_prog_cc_g=yes
3305fi
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307fi
3308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309fi
3310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311   ac_c_werror_flag=$ac_save_c_werror_flag
3312fi
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3314$as_echo "$ac_cv_prog_cc_g" >&6; }
3315if test "$ac_test_CFLAGS" = set; then
3316  CFLAGS=$ac_save_CFLAGS
3317elif test $ac_cv_prog_cc_g = yes; then
3318  if test "$GCC" = yes; then
3319    CFLAGS="-g -O2"
3320  else
3321    CFLAGS="-g"
3322  fi
3323else
3324  if test "$GCC" = yes; then
3325    CFLAGS="-O2"
3326  else
3327    CFLAGS=
3328  fi
3329fi
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3331$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3332if ${ac_cv_prog_cc_c89+:} false; then :
3333  $as_echo_n "(cached) " >&6
3334else
3335  ac_cv_prog_cc_c89=no
3336ac_save_CC=$CC
3337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338/* end confdefs.h.  */
3339#include <stdarg.h>
3340#include <stdio.h>
3341struct stat;
3342/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3343struct buf { int x; };
3344FILE * (*rcsopen) (struct buf *, struct stat *, int);
3345static char *e (p, i)
3346     char **p;
3347     int i;
3348{
3349  return p[i];
3350}
3351static char *f (char * (*g) (char **, int), char **p, ...)
3352{
3353  char *s;
3354  va_list v;
3355  va_start (v,p);
3356  s = g (p, va_arg (v,int));
3357  va_end (v);
3358  return s;
3359}
3360
3361/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3362   function prototypes and stuff, but not '\xHH' hex character constants.
3363   These don't provoke an error unfortunately, instead are silently treated
3364   as 'x'.  The following induces an error, until -std is added to get
3365   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3366   array size at least.  It's necessary to write '\x00'==0 to get something
3367   that's true only with -std.  */
3368int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3369
3370/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3371   inside strings and character constants.  */
3372#define FOO(x) 'x'
3373int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3374
3375int test (int i, double x);
3376struct s1 {int (*f) (int a);};
3377struct s2 {int (*f) (double a);};
3378int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3379int argc;
3380char **argv;
3381int
3382main ()
3383{
3384return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3385  ;
3386  return 0;
3387}
3388_ACEOF
3389for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3390	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3391do
3392  CC="$ac_save_CC $ac_arg"
3393  if ac_fn_c_try_compile "$LINENO"; then :
3394  ac_cv_prog_cc_c89=$ac_arg
3395fi
3396rm -f core conftest.err conftest.$ac_objext
3397  test "x$ac_cv_prog_cc_c89" != "xno" && break
3398done
3399rm -f conftest.$ac_ext
3400CC=$ac_save_CC
3401
3402fi
3403# AC_CACHE_VAL
3404case "x$ac_cv_prog_cc_c89" in
3405  x)
3406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3407$as_echo "none needed" >&6; } ;;
3408  xno)
3409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3410$as_echo "unsupported" >&6; } ;;
3411  *)
3412    CC="$CC $ac_cv_prog_cc_c89"
3413    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3414$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3415esac
3416if test "x$ac_cv_prog_cc_c89" != xno; then :
3417
3418fi
3419
3420ac_ext=c
3421ac_cpp='$CPP $CPPFLAGS'
3422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425	ac_ext=c
3426ac_cpp='$CPP $CPPFLAGS'
3427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3431$as_echo_n "checking how to run the C preprocessor... " >&6; }
3432# On Suns, sometimes $CPP names a directory.
3433if test -n "$CPP" && test -d "$CPP"; then
3434  CPP=
3435fi
3436if test -z "$CPP"; then
3437  if ${ac_cv_prog_CPP+:} false; then :
3438  $as_echo_n "(cached) " >&6
3439else
3440      # Double quotes because CPP needs to be expanded
3441    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3442    do
3443      ac_preproc_ok=false
3444for ac_c_preproc_warn_flag in '' yes
3445do
3446  # Use a header file that comes with gcc, so configuring glibc
3447  # with a fresh cross-compiler works.
3448  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3449  # <limits.h> exists even on freestanding compilers.
3450  # On the NeXT, cc -E runs the code through the compiler's parser,
3451  # not just through cpp. "Syntax error" is here to catch this case.
3452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h.  */
3454#ifdef __STDC__
3455# include <limits.h>
3456#else
3457# include <assert.h>
3458#endif
3459		     Syntax error
3460_ACEOF
3461if ac_fn_c_try_cpp "$LINENO"; then :
3462
3463else
3464  # Broken: fails on valid input.
3465continue
3466fi
3467rm -f conftest.err conftest.i conftest.$ac_ext
3468
3469  # OK, works on sane cases.  Now check whether nonexistent headers
3470  # can be detected and how.
3471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h.  */
3473#include <ac_nonexistent.h>
3474_ACEOF
3475if ac_fn_c_try_cpp "$LINENO"; then :
3476  # Broken: success on invalid input.
3477continue
3478else
3479  # Passes both tests.
3480ac_preproc_ok=:
3481break
3482fi
3483rm -f conftest.err conftest.i conftest.$ac_ext
3484
3485done
3486# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3487rm -f conftest.i conftest.err conftest.$ac_ext
3488if $ac_preproc_ok; then :
3489  break
3490fi
3491
3492    done
3493    ac_cv_prog_CPP=$CPP
3494
3495fi
3496  CPP=$ac_cv_prog_CPP
3497else
3498  ac_cv_prog_CPP=$CPP
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3501$as_echo "$CPP" >&6; }
3502ac_preproc_ok=false
3503for ac_c_preproc_warn_flag in '' yes
3504do
3505  # Use a header file that comes with gcc, so configuring glibc
3506  # with a fresh cross-compiler works.
3507  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3508  # <limits.h> exists even on freestanding compilers.
3509  # On the NeXT, cc -E runs the code through the compiler's parser,
3510  # not just through cpp. "Syntax error" is here to catch this case.
3511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512/* end confdefs.h.  */
3513#ifdef __STDC__
3514# include <limits.h>
3515#else
3516# include <assert.h>
3517#endif
3518		     Syntax error
3519_ACEOF
3520if ac_fn_c_try_cpp "$LINENO"; then :
3521
3522else
3523  # Broken: fails on valid input.
3524continue
3525fi
3526rm -f conftest.err conftest.i conftest.$ac_ext
3527
3528  # OK, works on sane cases.  Now check whether nonexistent headers
3529  # can be detected and how.
3530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h.  */
3532#include <ac_nonexistent.h>
3533_ACEOF
3534if ac_fn_c_try_cpp "$LINENO"; then :
3535  # Broken: success on invalid input.
3536continue
3537else
3538  # Passes both tests.
3539ac_preproc_ok=:
3540break
3541fi
3542rm -f conftest.err conftest.i conftest.$ac_ext
3543
3544done
3545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546rm -f conftest.i conftest.err conftest.$ac_ext
3547if $ac_preproc_ok; then :
3548
3549else
3550  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3553See \`config.log' for more details" "$LINENO" 5; }
3554fi
3555
3556ac_ext=c
3557ac_cpp='$CPP $CPPFLAGS'
3558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561
3562
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3564$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3565if ${ac_cv_path_GREP+:} false; then :
3566  $as_echo_n "(cached) " >&6
3567else
3568  if test -z "$GREP"; then
3569  ac_path_GREP_found=false
3570  # Loop through the user's path and test for each of PROGNAME-LIST
3571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3573do
3574  IFS=$as_save_IFS
3575  test -z "$as_dir" && as_dir=.
3576    for ac_prog in grep ggrep; do
3577    for ac_exec_ext in '' $ac_executable_extensions; do
3578      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3579      as_fn_executable_p "$ac_path_GREP" || continue
3580# Check for GNU ac_path_GREP and select it if it is found.
3581  # Check for GNU $ac_path_GREP
3582case `"$ac_path_GREP" --version 2>&1` in
3583*GNU*)
3584  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3585*)
3586  ac_count=0
3587  $as_echo_n 0123456789 >"conftest.in"
3588  while :
3589  do
3590    cat "conftest.in" "conftest.in" >"conftest.tmp"
3591    mv "conftest.tmp" "conftest.in"
3592    cp "conftest.in" "conftest.nl"
3593    $as_echo 'GREP' >> "conftest.nl"
3594    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3595    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3596    as_fn_arith $ac_count + 1 && ac_count=$as_val
3597    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3598      # Best one so far, save it but keep looking for a better one
3599      ac_cv_path_GREP="$ac_path_GREP"
3600      ac_path_GREP_max=$ac_count
3601    fi
3602    # 10*(2^10) chars as input seems more than enough
3603    test $ac_count -gt 10 && break
3604  done
3605  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3606esac
3607
3608      $ac_path_GREP_found && break 3
3609    done
3610  done
3611  done
3612IFS=$as_save_IFS
3613  if test -z "$ac_cv_path_GREP"; then
3614    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3615  fi
3616else
3617  ac_cv_path_GREP=$GREP
3618fi
3619
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3622$as_echo "$ac_cv_path_GREP" >&6; }
3623 GREP="$ac_cv_path_GREP"
3624
3625
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3627$as_echo_n "checking for egrep... " >&6; }
3628if ${ac_cv_path_EGREP+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3632   then ac_cv_path_EGREP="$GREP -E"
3633   else
3634     if test -z "$EGREP"; then
3635  ac_path_EGREP_found=false
3636  # Loop through the user's path and test for each of PROGNAME-LIST
3637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3639do
3640  IFS=$as_save_IFS
3641  test -z "$as_dir" && as_dir=.
3642    for ac_prog in egrep; do
3643    for ac_exec_ext in '' $ac_executable_extensions; do
3644      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3645      as_fn_executable_p "$ac_path_EGREP" || continue
3646# Check for GNU ac_path_EGREP and select it if it is found.
3647  # Check for GNU $ac_path_EGREP
3648case `"$ac_path_EGREP" --version 2>&1` in
3649*GNU*)
3650  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3651*)
3652  ac_count=0
3653  $as_echo_n 0123456789 >"conftest.in"
3654  while :
3655  do
3656    cat "conftest.in" "conftest.in" >"conftest.tmp"
3657    mv "conftest.tmp" "conftest.in"
3658    cp "conftest.in" "conftest.nl"
3659    $as_echo 'EGREP' >> "conftest.nl"
3660    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3661    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3662    as_fn_arith $ac_count + 1 && ac_count=$as_val
3663    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3664      # Best one so far, save it but keep looking for a better one
3665      ac_cv_path_EGREP="$ac_path_EGREP"
3666      ac_path_EGREP_max=$ac_count
3667    fi
3668    # 10*(2^10) chars as input seems more than enough
3669    test $ac_count -gt 10 && break
3670  done
3671  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3672esac
3673
3674      $ac_path_EGREP_found && break 3
3675    done
3676  done
3677  done
3678IFS=$as_save_IFS
3679  if test -z "$ac_cv_path_EGREP"; then
3680    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3681  fi
3682else
3683  ac_cv_path_EGREP=$EGREP
3684fi
3685
3686   fi
3687fi
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3689$as_echo "$ac_cv_path_EGREP" >&6; }
3690 EGREP="$ac_cv_path_EGREP"
3691
3692
3693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h.  */
3695
3696_ACEOF
3697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3698  $EGREP "" >/dev/null 2>&1; then :
3699
3700fi
3701rm -f conftest*
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3703$as_echo_n "checking for fgrep... " >&6; }
3704if ${ac_cv_path_FGREP+:} false; then :
3705  $as_echo_n "(cached) " >&6
3706else
3707  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3708   then ac_cv_path_FGREP="$GREP -F"
3709   else
3710     if test -z "$FGREP"; then
3711  ac_path_FGREP_found=false
3712  # Loop through the user's path and test for each of PROGNAME-LIST
3713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715do
3716  IFS=$as_save_IFS
3717  test -z "$as_dir" && as_dir=.
3718    for ac_prog in fgrep; do
3719    for ac_exec_ext in '' $ac_executable_extensions; do
3720      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3721      as_fn_executable_p "$ac_path_FGREP" || continue
3722# Check for GNU ac_path_FGREP and select it if it is found.
3723  # Check for GNU $ac_path_FGREP
3724case `"$ac_path_FGREP" --version 2>&1` in
3725*GNU*)
3726  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3727*)
3728  ac_count=0
3729  $as_echo_n 0123456789 >"conftest.in"
3730  while :
3731  do
3732    cat "conftest.in" "conftest.in" >"conftest.tmp"
3733    mv "conftest.tmp" "conftest.in"
3734    cp "conftest.in" "conftest.nl"
3735    $as_echo 'FGREP' >> "conftest.nl"
3736    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3737    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3738    as_fn_arith $ac_count + 1 && ac_count=$as_val
3739    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3740      # Best one so far, save it but keep looking for a better one
3741      ac_cv_path_FGREP="$ac_path_FGREP"
3742      ac_path_FGREP_max=$ac_count
3743    fi
3744    # 10*(2^10) chars as input seems more than enough
3745    test $ac_count -gt 10 && break
3746  done
3747  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3748esac
3749
3750      $ac_path_FGREP_found && break 3
3751    done
3752  done
3753  done
3754IFS=$as_save_IFS
3755  if test -z "$ac_cv_path_FGREP"; then
3756    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3757  fi
3758else
3759  ac_cv_path_FGREP=$FGREP
3760fi
3761
3762   fi
3763fi
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3765$as_echo "$ac_cv_path_FGREP" >&6; }
3766 FGREP="$ac_cv_path_FGREP"
3767
3768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3769$as_echo_n "checking for library containing strerror... " >&6; }
3770if ${ac_cv_search_strerror+:} false; then :
3771  $as_echo_n "(cached) " >&6
3772else
3773  ac_func_search_save_LIBS=$LIBS
3774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776
3777/* Override any GCC internal prototype to avoid an error.
3778   Use char because int might match the return type of a GCC
3779   builtin and then its argument prototype would still apply.  */
3780#ifdef __cplusplus
3781extern "C"
3782#endif
3783char strerror ();
3784int
3785main ()
3786{
3787return strerror ();
3788  ;
3789  return 0;
3790}
3791_ACEOF
3792for ac_lib in '' cposix; do
3793  if test -z "$ac_lib"; then
3794    ac_res="none required"
3795  else
3796    ac_res=-l$ac_lib
3797    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3798  fi
3799  if ac_fn_c_try_link "$LINENO"; then :
3800  ac_cv_search_strerror=$ac_res
3801fi
3802rm -f core conftest.err conftest.$ac_objext \
3803    conftest$ac_exeext
3804  if ${ac_cv_search_strerror+:} false; then :
3805  break
3806fi
3807done
3808if ${ac_cv_search_strerror+:} false; then :
3809
3810else
3811  ac_cv_search_strerror=no
3812fi
3813rm conftest.$ac_ext
3814LIBS=$ac_func_search_save_LIBS
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3817$as_echo "$ac_cv_search_strerror" >&6; }
3818ac_res=$ac_cv_search_strerror
3819if test "$ac_res" != no; then :
3820  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3821
3822fi
3823	for ac_prog in gawk mawk nawk awk
3824do
3825  # Extract the first word of "$ac_prog", so it can be a program name with args.
3826set dummy $ac_prog; ac_word=$2
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
3829if ${ac_cv_prog_AWK+:} false; then :
3830  $as_echo_n "(cached) " >&6
3831else
3832  if test -n "$AWK"; then
3833  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3834else
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838  IFS=$as_save_IFS
3839  test -z "$as_dir" && as_dir=.
3840    for ac_exec_ext in '' $ac_executable_extensions; do
3841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842    ac_cv_prog_AWK="$ac_prog"
3843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844    break 2
3845  fi
3846done
3847  done
3848IFS=$as_save_IFS
3849
3850fi
3851fi
3852AWK=$ac_cv_prog_AWK
3853if test -n "$AWK"; then
3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3855$as_echo "$AWK" >&6; }
3856else
3857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
3859fi
3860
3861
3862  test -n "$AWK" && break
3863done
3864
3865# Extract the first word of "strip", so it can be a program name with args.
3866set dummy strip; ac_word=$2
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868$as_echo_n "checking for $ac_word... " >&6; }
3869if ${ac_cv_prog_STRIP+:} false; then :
3870  $as_echo_n "(cached) " >&6
3871else
3872  if test -n "$STRIP"; then
3873  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3874else
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878  IFS=$as_save_IFS
3879  test -z "$as_dir" && as_dir=.
3880    for ac_exec_ext in '' $ac_executable_extensions; do
3881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882    ac_cv_prog_STRIP="strip"
3883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884    break 2
3885  fi
3886done
3887  done
3888IFS=$as_save_IFS
3889
3890  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3891fi
3892fi
3893STRIP=$ac_cv_prog_STRIP
3894if test -n "$STRIP"; then
3895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3896$as_echo "$STRIP" >&6; }
3897else
3898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899$as_echo "no" >&6; }
3900fi
3901
3902
3903
3904
3905
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3907$as_echo_n "checking for ANSI C header files... " >&6; }
3908if ${ac_cv_header_stdc+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h.  */
3913#include <stdlib.h>
3914#include <stdarg.h>
3915#include <string.h>
3916#include <float.h>
3917
3918int
3919main ()
3920{
3921
3922  ;
3923  return 0;
3924}
3925_ACEOF
3926if ac_fn_c_try_compile "$LINENO"; then :
3927  ac_cv_header_stdc=yes
3928else
3929  ac_cv_header_stdc=no
3930fi
3931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932
3933if test $ac_cv_header_stdc = yes; then
3934  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h.  */
3937#include <string.h>
3938
3939_ACEOF
3940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941  $EGREP "memchr" >/dev/null 2>&1; then :
3942
3943else
3944  ac_cv_header_stdc=no
3945fi
3946rm -f conftest*
3947
3948fi
3949
3950if test $ac_cv_header_stdc = yes; then
3951  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h.  */
3954#include <stdlib.h>
3955
3956_ACEOF
3957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3958  $EGREP "free" >/dev/null 2>&1; then :
3959
3960else
3961  ac_cv_header_stdc=no
3962fi
3963rm -f conftest*
3964
3965fi
3966
3967if test $ac_cv_header_stdc = yes; then
3968  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3969  if test "$cross_compiling" = yes; then :
3970  :
3971else
3972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973/* end confdefs.h.  */
3974#include <ctype.h>
3975#include <stdlib.h>
3976#if ((' ' & 0x0FF) == 0x020)
3977# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3978# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3979#else
3980# define ISLOWER(c) \
3981		   (('a' <= (c) && (c) <= 'i') \
3982		     || ('j' <= (c) && (c) <= 'r') \
3983		     || ('s' <= (c) && (c) <= 'z'))
3984# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3985#endif
3986
3987#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3988int
3989main ()
3990{
3991  int i;
3992  for (i = 0; i < 256; i++)
3993    if (XOR (islower (i), ISLOWER (i))
3994	|| toupper (i) != TOUPPER (i))
3995      return 2;
3996  return 0;
3997}
3998_ACEOF
3999if ac_fn_c_try_run "$LINENO"; then :
4000
4001else
4002  ac_cv_header_stdc=no
4003fi
4004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4005  conftest.$ac_objext conftest.beam conftest.$ac_ext
4006fi
4007
4008fi
4009fi
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4011$as_echo "$ac_cv_header_stdc" >&6; }
4012if test $ac_cv_header_stdc = yes; then
4013
4014$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4015
4016fi
4017
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4019$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4020if ${ac_cv_header_sys_wait_h+:} false; then :
4021  $as_echo_n "(cached) " >&6
4022else
4023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024/* end confdefs.h.  */
4025#include <sys/types.h>
4026#include <sys/wait.h>
4027#ifndef WEXITSTATUS
4028# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4029#endif
4030#ifndef WIFEXITED
4031# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4032#endif
4033
4034int
4035main ()
4036{
4037  int s;
4038  wait (&s);
4039  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4040  ;
4041  return 0;
4042}
4043_ACEOF
4044if ac_fn_c_try_compile "$LINENO"; then :
4045  ac_cv_header_sys_wait_h=yes
4046else
4047  ac_cv_header_sys_wait_h=no
4048fi
4049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4052$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4053if test $ac_cv_header_sys_wait_h = yes; then
4054
4055$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4056
4057fi
4058
4059
4060
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4062$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4063# Check whether --enable-fail_if_missing was given.
4064if test "${enable_fail_if_missing+set}" = set; then :
4065  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4066else
4067  fail_if_missing="no"
4068fi
4069
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4071$as_echo "$fail_if_missing" >&6; }
4072
4073if test -z "$CFLAGS"; then
4074  CFLAGS="-O"
4075  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4076fi
4077if test "$GCC" = yes; then
4078    gccversion=`$CC -dumpversion`
4079  if test "x$gccversion" = "x"; then
4080        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4081  fi
4082    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4083    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4084    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4085  else
4086    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4087      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4088      CFLAGS="$CFLAGS -fno-strength-reduce"
4089    fi
4090  fi
4091fi
4092
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent clang version" >&5
4094$as_echo_n "checking for recent clang version... " >&6; }
4095CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed  -n -e 's/^.*clang.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'`
4096if test x"$CLANG_VERSION_STRING" != x"" ; then
4097  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4098  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4099  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4100  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4102$as_echo "$CLANG_VERSION" >&6; }
4103          if test "$CLANG_VERSION" -ge 500002075 ; then
4104    CFLAGS=`echo "$CFLAGS" | sed -n -e 's/-fno-strength-reduce/ /p'`
4105  fi
4106else
4107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108$as_echo "no" >&6; }
4109fi
4110
4111if test "$cross_compiling" = yes; then
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4113$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4114fi
4115
4116test "$GCC" = yes && CPP_MM=M;
4117
4118if test -f ./toolcheck; then
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4120$as_echo "$as_me: checking for buggy tools..." >&6;}
4121  sh ./toolcheck 1>&6
4122fi
4123
4124OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4125
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4127$as_echo_n "checking for BeOS... " >&6; }
4128case `uname` in
4129    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4130		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4131$as_echo "yes" >&6; };;
4132    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133$as_echo "no" >&6; };;
4134esac
4135
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4137$as_echo_n "checking for QNX... " >&6; }
4138case `uname` in
4139    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4140		test -z "$with_x" && with_x=no
4141		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4142$as_echo "yes" >&6; };;
4143    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144$as_echo "no" >&6; };;
4145esac
4146
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4148$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4149if test "`(uname) 2>/dev/null`" = Darwin; then
4150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4151$as_echo "yes" >&6; }
4152
4153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4154$as_echo_n "checking --disable-darwin argument... " >&6; }
4155  # Check whether --enable-darwin was given.
4156if test "${enable_darwin+set}" = set; then :
4157  enableval=$enable_darwin;
4158else
4159  enable_darwin="yes"
4160fi
4161
4162  if test "$enable_darwin" = "yes"; then
4163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164$as_echo "no" >&6; }
4165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4166$as_echo_n "checking if Darwin files are there... " >&6; }
4167    if test -f os_macosx.m; then
4168      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169$as_echo "yes" >&6; }
4170    else
4171      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4172$as_echo "no, Darwin support disabled" >&6; }
4173      enable_darwin=no
4174    fi
4175  else
4176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4177$as_echo "yes, Darwin support excluded" >&6; }
4178  fi
4179
4180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4181$as_echo_n "checking --with-mac-arch argument... " >&6; }
4182
4183# Check whether --with-mac-arch was given.
4184if test "${with_mac_arch+set}" = set; then :
4185  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4186$as_echo "$MACARCH" >&6; }
4187else
4188  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4189$as_echo "defaulting to $MACARCH" >&6; }
4190fi
4191
4192
4193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4194$as_echo_n "checking --with-developer-dir argument... " >&6; }
4195
4196# Check whether --with-developer-dir was given.
4197if test "${with_developer_dir+set}" = set; then :
4198  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4199$as_echo "$DEVELOPER_DIR" >&6; }
4200else
4201  DEVELOPER_DIR=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4202$as_echo "not present" >&6; }
4203fi
4204
4205
4206  if test "x$DEVELOPER_DIR" = "x"; then
4207    # Extract the first word of "xcode-select", so it can be a program name with args.
4208set dummy xcode-select; ac_word=$2
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210$as_echo_n "checking for $ac_word... " >&6; }
4211if ${ac_cv_path_XCODE_SELECT+:} false; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  case $XCODE_SELECT in
4215  [\\/]* | ?:[\\/]*)
4216  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4217  ;;
4218  *)
4219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH
4221do
4222  IFS=$as_save_IFS
4223  test -z "$as_dir" && as_dir=.
4224    for ac_exec_ext in '' $ac_executable_extensions; do
4225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228    break 2
4229  fi
4230done
4231  done
4232IFS=$as_save_IFS
4233
4234  ;;
4235esac
4236fi
4237XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4238if test -n "$XCODE_SELECT"; then
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4240$as_echo "$XCODE_SELECT" >&6; }
4241else
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243$as_echo "no" >&6; }
4244fi
4245
4246
4247    if test "x$XCODE_SELECT" != "x"; then
4248      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4249$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4250      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4251      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4252$as_echo "$DEVELOPER_DIR" >&6; }
4253    else
4254      DEVELOPER_DIR=/Developer
4255    fi
4256  fi
4257
4258  if test "x$MACARCH" = "xboth"; then
4259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4260$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4261                            save_cppflags="$CPPFLAGS"
4262    save_cflags="$CFLAGS"
4263    save_ldflags="$LDFLAGS"
4264    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266/* end confdefs.h.  */
4267
4268int
4269main ()
4270{
4271
4272  ;
4273  return 0;
4274}
4275_ACEOF
4276if ac_fn_c_try_link "$LINENO"; then :
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4278$as_echo "found" >&6; }
4279else
4280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4281$as_echo "not found" >&6; }
4282	CFLAGS="$save_cflags"
4283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4284$as_echo_n "checking if Intel architecture is supported... " >&6; }
4285	CPPFLAGS="$CPPFLAGS -arch i386"
4286	LDFLAGS="$save_ldflags -arch i386"
4287	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h.  */
4289
4290int
4291main ()
4292{
4293
4294  ;
4295  return 0;
4296}
4297_ACEOF
4298if ac_fn_c_try_link "$LINENO"; then :
4299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4300$as_echo "yes" >&6; }; MACARCH="intel"
4301else
4302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303$as_echo "no" >&6; }
4304		MACARCH="ppc"
4305		CPPFLAGS="$save_cppflags -arch ppc"
4306		LDFLAGS="$save_ldflags -arch ppc"
4307fi
4308rm -f core conftest.err conftest.$ac_objext \
4309    conftest$ac_exeext conftest.$ac_ext
4310fi
4311rm -f core conftest.err conftest.$ac_objext \
4312    conftest$ac_exeext conftest.$ac_ext
4313  elif test "x$MACARCH" = "xintel"; then
4314    CPPFLAGS="$CPPFLAGS -arch intel"
4315    LDFLAGS="$LDFLAGS -arch intel"
4316  elif test "x$MACARCH" = "xppc"; then
4317    CPPFLAGS="$CPPFLAGS -arch ppc"
4318    LDFLAGS="$LDFLAGS -arch ppc"
4319  fi
4320
4321  if test "$enable_darwin" = "yes"; then
4322    MACOSX=yes
4323    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4324    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4325            CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX"
4326
4327                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4328for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4329		  inttypes.h stdint.h unistd.h
4330do :
4331  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4332ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4333"
4334if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4335  cat >>confdefs.h <<_ACEOF
4336#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4337_ACEOF
4338
4339fi
4340
4341done
4342
4343
4344ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4345if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4346  CARBON=yes
4347fi
4348
4349
4350    if test "x$CARBON" = "xyes"; then
4351      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2; then
4352	with_x=no
4353      fi
4354    fi
4355  fi
4356
4357        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4358    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4359  fi
4360
4361else
4362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363$as_echo "no" >&6; }
4364fi
4365
4366for ac_header in AvailabilityMacros.h
4367do :
4368  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4369if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4370  cat >>confdefs.h <<_ACEOF
4371#define HAVE_AVAILABILITYMACROS_H 1
4372_ACEOF
4373
4374fi
4375
4376done
4377
4378
4379
4380
4381
4382if test "$cross_compiling" = no; then
4383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4384$as_echo_n "checking --with-local-dir argument... " >&6; }
4385  have_local_include=''
4386  have_local_lib=''
4387
4388# Check whether --with-local-dir was given.
4389if test "${with_local_dir+set}" = set; then :
4390  withval=$with_local_dir;
4391    local_dir="$withval"
4392    case "$withval" in
4393    */*) ;;
4394    no)
4395      # avoid adding local dir to LDFLAGS and CPPFLAGS
4396      have_local_include=yes
4397      have_local_lib=yes
4398      ;;
4399    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4400    esac
4401	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4402$as_echo "$local_dir" >&6; }
4403
4404else
4405
4406    local_dir=/usr/local
4407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4408$as_echo "Defaulting to $local_dir" >&6; }
4409
4410fi
4411
4412  if test "$GCC" = yes -a "$local_dir" != no; then
4413    echo 'void f(){}' > conftest.c
4414        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4415    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4416    rm -f conftest.c conftest.o
4417  fi
4418  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4419    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4420    if test "$tt" = "$LDFLAGS"; then
4421      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4422    fi
4423  fi
4424  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4425    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4426    if test "$tt" = "$CPPFLAGS"; then
4427      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4428    fi
4429  fi
4430fi
4431
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4433$as_echo_n "checking --with-vim-name argument... " >&6; }
4434
4435# Check whether --with-vim-name was given.
4436if test "${with_vim_name+set}" = set; then :
4437  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4438$as_echo "$VIMNAME" >&6; }
4439else
4440  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4441$as_echo "Defaulting to $VIMNAME" >&6; }
4442fi
4443
4444
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4446$as_echo_n "checking --with-ex-name argument... " >&6; }
4447
4448# Check whether --with-ex-name was given.
4449if test "${with_ex_name+set}" = set; then :
4450  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4451$as_echo "$EXNAME" >&6; }
4452else
4453  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4454$as_echo "Defaulting to ex" >&6; }
4455fi
4456
4457
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4459$as_echo_n "checking --with-view-name argument... " >&6; }
4460
4461# Check whether --with-view-name was given.
4462if test "${with_view_name+set}" = set; then :
4463  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4464$as_echo "$VIEWNAME" >&6; }
4465else
4466  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4467$as_echo "Defaulting to view" >&6; }
4468fi
4469
4470
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4473$as_echo_n "checking --with-global-runtime argument... " >&6; }
4474
4475# Check whether --with-global-runtime was given.
4476if test "${with_global_runtime+set}" = set; then :
4477  withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4478$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4479#define RUNTIME_GLOBAL "$withval"
4480_ACEOF
4481
4482else
4483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
4486
4487
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4489$as_echo_n "checking --with-modified-by argument... " >&6; }
4490
4491# Check whether --with-modified-by was given.
4492if test "${with_modified_by+set}" = set; then :
4493  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4494$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4495#define MODIFIED_BY "$withval"
4496_ACEOF
4497
4498else
4499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500$as_echo "no" >&6; }
4501fi
4502
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4505$as_echo_n "checking if character set is EBCDIC... " >&6; }
4506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507/* end confdefs.h.  */
4508
4509int
4510main ()
4511{
4512 /* TryCompile function for CharSet.
4513   Treat any failure as ASCII for compatibility with existing art.
4514   Use compile-time rather than run-time tests for cross-compiler
4515   tolerance.  */
4516#if '0'!=240
4517make an error "Character set is not EBCDIC"
4518#endif
4519  ;
4520  return 0;
4521}
4522_ACEOF
4523if ac_fn_c_try_compile "$LINENO"; then :
4524   # TryCompile action if true
4525cf_cv_ebcdic=yes
4526else
4527   # TryCompile action if false
4528cf_cv_ebcdic=no
4529fi
4530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531# end of TryCompile ])
4532# end of CacheVal CvEbcdic
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4534$as_echo "$cf_cv_ebcdic" >&6; }
4535case "$cf_cv_ebcdic" in  #(vi
4536    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4537
4538		line_break='"\\n"'
4539		;;
4540    *)		line_break='"\\012"';;
4541esac
4542
4543
4544if test "$cf_cv_ebcdic" = "yes"; then
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4546$as_echo_n "checking for z/OS Unix... " >&6; }
4547case `uname` in
4548    OS/390)	zOSUnix="yes";
4549										if test "$CC" = "cc"; then
4550		  ccm="$_CC_CCMODE"
4551		  ccn="CC"
4552		else
4553		  if test "$CC" = "c89"; then
4554		    ccm="$_CC_C89MODE"
4555		    ccn="C89"
4556		  else
4557		    ccm=1
4558		  fi
4559		fi
4560		if test "$ccm" != "1"; then
4561		  echo ""
4562		  echo "------------------------------------------"
4563		  echo " On z/OS Unix, the environment variable"
4564		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4565		  echo " Do:"
4566		  echo "    export _CC_${ccn}MODE=1"
4567		  echo " and then call configure again."
4568		  echo "------------------------------------------"
4569		  exit 1
4570		fi
4571		# Set CFLAGS for configure process.
4572		# This will be reset later for config.mk.
4573		# Use haltonmsg to force error for missing H files.
4574		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
4575		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4576		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4577$as_echo "yes" >&6; }
4578		;;
4579    *)		zOSUnix="no";
4580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582		;;
4583esac
4584fi
4585
4586if test "$zOSUnix" = "yes"; then
4587    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
4588else
4589    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
4590fi
4591
4592
4593
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
4595$as_echo_n "checking --disable-smack argument... " >&6; }
4596# Check whether --enable-smack was given.
4597if test "${enable_smack+set}" = set; then :
4598  enableval=$enable_smack;
4599else
4600  enable_smack="yes"
4601fi
4602
4603if test "$enable_smack" = "yes"; then
4604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605$as_echo "no" >&6; }
4606  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
4607if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
4608  true
4609else
4610  enable_smack="no"
4611fi
4612
4613
4614else
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4616$as_echo "yes" >&6; }
4617fi
4618if test "$enable_smack" = "yes"; then
4619  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
4620if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
4621  true
4622else
4623  enable_smack="no"
4624fi
4625
4626
4627fi
4628if test "$enable_smack" = "yes"; then
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
4630$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
4631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h.  */
4633#include <linux/xattr.h>
4634_ACEOF
4635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
4637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4638$as_echo "yes" >&6; }
4639else
4640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641$as_echo "no" >&6; }; enable_smack="no"
4642fi
4643rm -f conftest*
4644
4645fi
4646if test "$enable_smack" = "yes"; then
4647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
4648$as_echo_n "checking for setxattr in -lattr... " >&6; }
4649if ${ac_cv_lib_attr_setxattr+:} false; then :
4650  $as_echo_n "(cached) " >&6
4651else
4652  ac_check_lib_save_LIBS=$LIBS
4653LIBS="-lattr  $LIBS"
4654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h.  */
4656
4657/* Override any GCC internal prototype to avoid an error.
4658   Use char because int might match the return type of a GCC
4659   builtin and then its argument prototype would still apply.  */
4660#ifdef __cplusplus
4661extern "C"
4662#endif
4663char setxattr ();
4664int
4665main ()
4666{
4667return setxattr ();
4668  ;
4669  return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_link "$LINENO"; then :
4673  ac_cv_lib_attr_setxattr=yes
4674else
4675  ac_cv_lib_attr_setxattr=no
4676fi
4677rm -f core conftest.err conftest.$ac_objext \
4678    conftest$ac_exeext conftest.$ac_ext
4679LIBS=$ac_check_lib_save_LIBS
4680fi
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
4682$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
4683if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
4684  LIBS="$LIBS -lattr"
4685	   found_smack="yes"
4686	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
4687
4688fi
4689
4690fi
4691
4692if test "x$found_smack" = "x"; then
4693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
4694$as_echo_n "checking --disable-selinux argument... " >&6; }
4695  # Check whether --enable-selinux was given.
4696if test "${enable_selinux+set}" = set; then :
4697  enableval=$enable_selinux;
4698else
4699  enable_selinux="yes"
4700fi
4701
4702  if test "$enable_selinux" = "yes"; then
4703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704$as_echo "no" >&6; }
4705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
4706$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4707if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
4708  $as_echo_n "(cached) " >&6
4709else
4710  ac_check_lib_save_LIBS=$LIBS
4711LIBS="-lselinux  $LIBS"
4712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713/* end confdefs.h.  */
4714
4715/* Override any GCC internal prototype to avoid an error.
4716   Use char because int might match the return type of a GCC
4717   builtin and then its argument prototype would still apply.  */
4718#ifdef __cplusplus
4719extern "C"
4720#endif
4721char is_selinux_enabled ();
4722int
4723main ()
4724{
4725return is_selinux_enabled ();
4726  ;
4727  return 0;
4728}
4729_ACEOF
4730if ac_fn_c_try_link "$LINENO"; then :
4731  ac_cv_lib_selinux_is_selinux_enabled=yes
4732else
4733  ac_cv_lib_selinux_is_selinux_enabled=no
4734fi
4735rm -f core conftest.err conftest.$ac_objext \
4736    conftest$ac_exeext conftest.$ac_ext
4737LIBS=$ac_check_lib_save_LIBS
4738fi
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4740$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4741if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
4742  LIBS="$LIBS -lselinux"
4743	     $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
4744
4745fi
4746
4747  else
4748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4749$as_echo "yes" >&6; }
4750  fi
4751fi
4752
4753
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
4755$as_echo_n "checking --with-features argument... " >&6; }
4756
4757# Check whether --with-features was given.
4758if test "${with_features+set}" = set; then :
4759  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
4760$as_echo "$features" >&6; }
4761else
4762  features="normal"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to normal" >&5
4763$as_echo "Defaulting to normal" >&6; }
4764fi
4765
4766
4767dovimdiff=""
4768dogvimdiff=""
4769case "$features" in
4770  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
4771 ;;
4772  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
4773 ;;
4774  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
4775 dovimdiff="installvimdiff";
4776			dogvimdiff="installgvimdiff" ;;
4777  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
4778 dovimdiff="installvimdiff";
4779			dogvimdiff="installgvimdiff" ;;
4780  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
4781 dovimdiff="installvimdiff";
4782			dogvimdiff="installgvimdiff" ;;
4783  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
4784$as_echo "Sorry, $features is not supported" >&6; } ;;
4785esac
4786
4787
4788
4789
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
4791$as_echo_n "checking --with-compiledby argument... " >&6; }
4792
4793# Check whether --with-compiledby was given.
4794if test "${with_compiledby+set}" = set; then :
4795  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4796$as_echo "$withval" >&6; }
4797else
4798  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799$as_echo "no" >&6; }
4800fi
4801
4802
4803
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
4805$as_echo_n "checking --disable-xsmp argument... " >&6; }
4806# Check whether --enable-xsmp was given.
4807if test "${enable_xsmp+set}" = set; then :
4808  enableval=$enable_xsmp;
4809else
4810  enable_xsmp="yes"
4811fi
4812
4813
4814if test "$enable_xsmp" = "yes"; then
4815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816$as_echo "no" >&6; }
4817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
4818$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4819  # Check whether --enable-xsmp-interact was given.
4820if test "${enable_xsmp_interact+set}" = set; then :
4821  enableval=$enable_xsmp_interact;
4822else
4823  enable_xsmp_interact="yes"
4824fi
4825
4826  if test "$enable_xsmp_interact" = "yes"; then
4827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828$as_echo "no" >&6; }
4829    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
4830
4831  else
4832    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4833$as_echo "yes" >&6; }
4834  fi
4835else
4836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4837$as_echo "yes" >&6; }
4838fi
4839
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
4841$as_echo_n "checking --enable-luainterp argument... " >&6; }
4842# Check whether --enable-luainterp was given.
4843if test "${enable_luainterp+set}" = set; then :
4844  enableval=$enable_luainterp;
4845else
4846  enable_luainterp="no"
4847fi
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
4850$as_echo "$enable_luainterp" >&6; }
4851
4852if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
4853
4854
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
4856$as_echo_n "checking --with-lua-prefix argument... " >&6; }
4857
4858# Check whether --with-lua_prefix was given.
4859if test "${with_lua_prefix+set}" = set; then :
4860  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
4861$as_echo "$with_lua_prefix" >&6; }
4862else
4863  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864$as_echo "no" >&6; }
4865fi
4866
4867
4868  if test "X$with_lua_prefix" != "X"; then
4869       vi_cv_path_lua_pfx="$with_lua_prefix"
4870  else
4871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
4872$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
4873    if test "X$LUA_PREFIX" != "X"; then
4874	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
4875$as_echo "\"$LUA_PREFIX\"" >&6; }
4876	vi_cv_path_lua_pfx="$LUA_PREFIX"
4877    else
4878	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
4879$as_echo "not set, default to /usr" >&6; }
4880	vi_cv_path_lua_pfx="/usr"
4881    fi
4882  fi
4883
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
4885$as_echo_n "checking --with-luajit... " >&6; }
4886
4887# Check whether --with-luajit was given.
4888if test "${with_luajit+set}" = set; then :
4889  withval=$with_luajit; vi_cv_with_luajit="$withval"
4890else
4891  vi_cv_with_luajit="no"
4892fi
4893
4894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
4895$as_echo "$vi_cv_with_luajit" >&6; }
4896
4897  LUA_INC=
4898  if test "X$vi_cv_path_lua_pfx" != "X"; then
4899    if test "x$vi_cv_with_luajit" != "xno"; then
4900            # Extract the first word of "luajit", so it can be a program name with args.
4901set dummy luajit; ac_word=$2
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903$as_echo_n "checking for $ac_word... " >&6; }
4904if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907  case $vi_cv_path_luajit in
4908  [\\/]* | ?:[\\/]*)
4909  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
4910  ;;
4911  *)
4912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915  IFS=$as_save_IFS
4916  test -z "$as_dir" && as_dir=.
4917    for ac_exec_ext in '' $ac_executable_extensions; do
4918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
4920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921    break 2
4922  fi
4923done
4924  done
4925IFS=$as_save_IFS
4926
4927  ;;
4928esac
4929fi
4930vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
4931if test -n "$vi_cv_path_luajit"; then
4932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
4933$as_echo "$vi_cv_path_luajit" >&6; }
4934else
4935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936$as_echo "no" >&6; }
4937fi
4938
4939
4940      if test "X$vi_cv_path_luajit" != "X"; then
4941		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
4942$as_echo_n "checking LuaJIT version... " >&6; }
4943if ${vi_cv_version_luajit+:} false; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
4947fi
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
4949$as_echo "$vi_cv_version_luajit" >&6; }
4950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
4951$as_echo_n "checking Lua version of LuaJIT... " >&6; }
4952if ${vi_cv_version_lua_luajit+:} false; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
4958$as_echo "$vi_cv_version_lua_luajit" >&6; }
4959	vi_cv_path_lua="$vi_cv_path_luajit"
4960	vi_cv_version_lua="$vi_cv_version_lua_luajit"
4961      fi
4962    else
4963            # Extract the first word of "lua", so it can be a program name with args.
4964set dummy lua; ac_word=$2
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966$as_echo_n "checking for $ac_word... " >&6; }
4967if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
4968  $as_echo_n "(cached) " >&6
4969else
4970  case $vi_cv_path_plain_lua in
4971  [\\/]* | ?:[\\/]*)
4972  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
4973  ;;
4974  *)
4975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978  IFS=$as_save_IFS
4979  test -z "$as_dir" && as_dir=.
4980    for ac_exec_ext in '' $ac_executable_extensions; do
4981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
4983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984    break 2
4985  fi
4986done
4987  done
4988IFS=$as_save_IFS
4989
4990  ;;
4991esac
4992fi
4993vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
4994if test -n "$vi_cv_path_plain_lua"; then
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
4996$as_echo "$vi_cv_path_plain_lua" >&6; }
4997else
4998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000fi
5001
5002
5003      if test "X$vi_cv_path_plain_lua" != "X"; then
5004		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5005$as_echo_n "checking Lua version... " >&6; }
5006if ${vi_cv_version_plain_lua+:} false; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5012$as_echo "$vi_cv_version_plain_lua" >&6; }
5013      fi
5014      vi_cv_path_lua="$vi_cv_path_plain_lua"
5015      vi_cv_version_lua="$vi_cv_version_plain_lua"
5016    fi
5017    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5018      { $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
5019$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5020      if test -f $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h; then
5021	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5022$as_echo "yes" >&6; }
5023	LUA_INC=/luajit-$vi_cv_version_luajit
5024      fi
5025    fi
5026    if test "X$LUA_INC" = "X"; then
5027      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5028$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5029      if test -f $vi_cv_path_lua_pfx/include/lua.h; then
5030	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5031$as_echo "yes" >&6; }
5032      else
5033	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
5035	{ $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
5036$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5037	if test -f $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h; then
5038	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5039$as_echo "yes" >&6; }
5040	  LUA_INC=/lua$vi_cv_version_lua
5041	else
5042	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043$as_echo "no" >&6; }
5044	  vi_cv_path_lua_pfx=
5045	fi
5046      fi
5047    fi
5048  fi
5049
5050  if test "X$vi_cv_path_lua_pfx" != "X"; then
5051    if test "x$vi_cv_with_luajit" != "xno"; then
5052      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5053      if test "X$multiarch" != "X"; then
5054	lib_multiarch="lib/${multiarch}"
5055      else
5056	lib_multiarch="lib"
5057      fi
5058      if test "X$vi_cv_version_lua" = "X"; then
5059	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5060      else
5061	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5062      fi
5063    else
5064      if test "X$LUA_INC" != "X"; then
5065		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5066      else
5067	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5068      fi
5069    fi
5070    if test "$enable_luainterp" = "dynamic"; then
5071      lua_ok="yes"
5072    else
5073      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5074$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5075      libs_save=$LIBS
5076      LIBS="$LIBS $LUA_LIBS"
5077      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078/* end confdefs.h.  */
5079
5080int
5081main ()
5082{
5083
5084  ;
5085  return 0;
5086}
5087_ACEOF
5088if ac_fn_c_try_link "$LINENO"; then :
5089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5090$as_echo "yes" >&6; }; lua_ok="yes"
5091else
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5094fi
5095rm -f core conftest.err conftest.$ac_objext \
5096    conftest$ac_exeext conftest.$ac_ext
5097      LIBS=$libs_save
5098    fi
5099    if test "x$lua_ok" = "xyes"; then
5100      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5101      LUA_SRC="if_lua.c"
5102      LUA_OBJ="objects/if_lua.o"
5103      LUA_PRO="if_lua.pro"
5104      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5105
5106    fi
5107    if test "$enable_luainterp" = "dynamic"; then
5108      if test "x$vi_cv_with_luajit" != "xno"; then
5109	luajit="jit"
5110      fi
5111      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5112	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5113      else
5114	if test "x$MACOSX" = "xyes"; then
5115	  ext="dylib"
5116	  indexes=""
5117	else
5118	  ext="so"
5119	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5120	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5121	  if test "X$multiarch" != "X"; then
5122	    lib_multiarch="lib/${multiarch}"
5123	  fi
5124	fi
5125			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5126$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5127	for subdir in "${lib_multiarch}" lib64 lib; do
5128	  if test -z "$subdir"; then
5129	    continue
5130	  fi
5131	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5132	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5133	    for i in $indexes ""; do
5134	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5135		sover2="$i"
5136		break 3
5137	      fi
5138	    done
5139	  done
5140	  sover=""
5141	done
5142	if test "X$sover" = "X"; then
5143	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
5145	  lua_ok="no"
5146	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5147	else
5148	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5149$as_echo "yes" >&6; }
5150	  lua_ok="yes"
5151	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5152	fi
5153      fi
5154      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5155
5156      LUA_LIBS=""
5157      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5158    fi
5159    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5160       test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5161       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5162            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5163    fi
5164  fi
5165  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5166    as_fn_error $? "could not configure lua" "$LINENO" 5
5167  fi
5168
5169
5170
5171
5172
5173fi
5174
5175
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5177$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5178# Check whether --enable-mzschemeinterp was given.
5179if test "${enable_mzschemeinterp+set}" = set; then :
5180  enableval=$enable_mzschemeinterp;
5181else
5182  enable_mzschemeinterp="no"
5183fi
5184
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5186$as_echo "$enable_mzschemeinterp" >&6; }
5187
5188if test "$enable_mzschemeinterp" = "yes"; then
5189
5190
5191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5192$as_echo_n "checking --with-plthome argument... " >&6; }
5193
5194# Check whether --with-plthome was given.
5195if test "${with_plthome+set}" = set; then :
5196  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5197$as_echo "$with_plthome" >&6; }
5198else
5199  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5200$as_echo "\"no\"" >&6; }
5201fi
5202
5203
5204  if test "X$with_plthome" != "X"; then
5205       vi_cv_path_mzscheme_pfx="$with_plthome"
5206  else
5207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5208$as_echo_n "checking PLTHOME environment var... " >&6; }
5209    if test "X$PLTHOME" != "X"; then
5210	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5211$as_echo "\"$PLTHOME\"" >&6; }
5212	vi_cv_path_mzscheme_pfx="$PLTHOME"
5213    else
5214	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5215$as_echo "not set" >&6; }
5216		# Extract the first word of "mzscheme", so it can be a program name with args.
5217set dummy mzscheme; ac_word=$2
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; }
5220if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  case $vi_cv_path_mzscheme in
5224  [\\/]* | ?:[\\/]*)
5225  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5226  ;;
5227  *)
5228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231  IFS=$as_save_IFS
5232  test -z "$as_dir" && as_dir=.
5233    for ac_exec_ext in '' $ac_executable_extensions; do
5234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237    break 2
5238  fi
5239done
5240  done
5241IFS=$as_save_IFS
5242
5243  ;;
5244esac
5245fi
5246vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5247if test -n "$vi_cv_path_mzscheme"; then
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5249$as_echo "$vi_cv_path_mzscheme" >&6; }
5250else
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252$as_echo "no" >&6; }
5253fi
5254
5255
5256
5257			if test "X$vi_cv_path_mzscheme" != "X"; then
5258	  lsout=`ls -l $vi_cv_path_mzscheme`
5259	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5260	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5261	  fi
5262	fi
5263
5264	if test "X$vi_cv_path_mzscheme" != "X"; then
5265	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5266$as_echo_n "checking MzScheme install prefix... " >&6; }
5267if ${vi_cv_path_mzscheme_pfx+:} false; then :
5268  $as_echo_n "(cached) " >&6
5269else
5270  	    	    echo "(display (simplify-path		\
5271	       (build-path (call-with-values	\
5272		(lambda () (split-path (find-system-path (quote exec-file)))) \
5273		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5274	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5275		sed -e 's+/$++'`
5276fi
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5278$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5279	    rm -f mzdirs.scm
5280	fi
5281    fi
5282  fi
5283
5284  SCHEME_INC=
5285  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5287$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5288    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
5289      SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5290      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291$as_echo "yes" >&6; }
5292    else
5293      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294$as_echo "no" >&6; }
5295      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5296$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5297      if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
5298	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299$as_echo "yes" >&6; }
5300	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5301      else
5302	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }
5304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5305$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5306	if test -f $vi_cv_path_mzscheme_pfx/include/racket/scheme.h; then
5307	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5308$as_echo "yes" >&6; }
5309	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5310	else
5311	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312$as_echo "no" >&6; }
5313	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5314$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5315	  if test -f /usr/include/plt/scheme.h; then
5316	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5317$as_echo "yes" >&6; }
5318	    SCHEME_INC=/usr/include/plt
5319	  else
5320	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }
5322	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5323$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5324	    if test -f /usr/include/racket/scheme.h; then
5325	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326$as_echo "yes" >&6; }
5327	      SCHEME_INC=/usr/include/racket
5328	    else
5329	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330$as_echo "no" >&6; }
5331	      vi_cv_path_mzscheme_pfx=
5332	    fi
5333	  fi
5334	fi
5335      fi
5336    fi
5337  fi
5338
5339  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5340    if test "x$MACOSX" = "xyes"; then
5341      MZSCHEME_LIBS="-framework Racket"
5342      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5343    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
5344      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
5345      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5346    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"; then
5347      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"
5348      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5349    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.a"; then
5350      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
5351    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"; then
5352      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
5353    else
5354            if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
5355        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
5356	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5357      elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.so"; then
5358        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket3m"
5359	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5360      elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.so"; then
5361        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket -lmzgc"
5362      else
5363        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
5364      fi
5365      if test "$GCC" = yes; then
5366			MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
5367      elif test "`(uname) 2>/dev/null`" = SunOS &&
5368			       uname -r | grep '^5' >/dev/null; then
5369	MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
5370      fi
5371    fi
5372
5373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5374$as_echo_n "checking for racket collects directory... " >&6; }
5375    if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
5376      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5377    else
5378      if test -d $vi_cv_path_mzscheme_pfx/lib/racket/collects; then
5379	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5380      else
5381	if test -d $vi_cv_path_mzscheme_pfx/share/racket/collects; then
5382	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5383	else
5384	  if test -d $vi_cv_path_mzscheme_pfx/collects; then
5385	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5386	  fi
5387	fi
5388      fi
5389    fi
5390    if test "X$SCHEME_COLLECTS" != "X" ; then
5391      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5392$as_echo "${SCHEME_COLLECTS}" >&6; }
5393    else
5394      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5395$as_echo "not found" >&6; }
5396    fi
5397
5398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5399$as_echo_n "checking for mzscheme_base.c... " >&6; }
5400    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5401      MZSCHEME_EXTRA="mzscheme_base.c"
5402      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5403      MZSCHEME_MOD="++lib scheme/base"
5404    else
5405      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5406	MZSCHEME_EXTRA="mzscheme_base.c"
5407	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5408	MZSCHEME_MOD="++lib scheme/base"
5409      else
5410	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5411	  MZSCHEME_EXTRA="mzscheme_base.c"
5412	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5413	  MZSCHEME_MOD=""
5414	fi
5415      fi
5416    fi
5417    if test "X$MZSCHEME_EXTRA" != "X" ; then
5418            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5419      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5420      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5421$as_echo "needed" >&6; }
5422    else
5423      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5424$as_echo "not needed" >&6; }
5425    fi
5426
5427        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5428$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5429if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  ac_check_lib_save_LIBS=$LIBS
5433LIBS="-lffi  $LIBS"
5434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h.  */
5436
5437/* Override any GCC internal prototype to avoid an error.
5438   Use char because int might match the return type of a GCC
5439   builtin and then its argument prototype would still apply.  */
5440#ifdef __cplusplus
5441extern "C"
5442#endif
5443char ffi_type_void ();
5444int
5445main ()
5446{
5447return ffi_type_void ();
5448  ;
5449  return 0;
5450}
5451_ACEOF
5452if ac_fn_c_try_link "$LINENO"; then :
5453  ac_cv_lib_ffi_ffi_type_void=yes
5454else
5455  ac_cv_lib_ffi_ffi_type_void=no
5456fi
5457rm -f core conftest.err conftest.$ac_objext \
5458    conftest$ac_exeext conftest.$ac_ext
5459LIBS=$ac_check_lib_save_LIBS
5460fi
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5462$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5463if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5464  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5465fi
5466
5467
5468    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5469      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5470
5471        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5472$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5473    cflags_save=$CFLAGS
5474    libs_save=$LIBS
5475    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5476    LIBS="$LIBS $MZSCHEME_LIBS"
5477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478/* end confdefs.h.  */
5479
5480int
5481main ()
5482{
5483
5484  ;
5485  return 0;
5486}
5487_ACEOF
5488if ac_fn_c_try_link "$LINENO"; then :
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5490$as_echo "yes" >&6; }; mzs_ok=yes
5491else
5492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5493$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5494fi
5495rm -f core conftest.err conftest.$ac_objext \
5496    conftest$ac_exeext conftest.$ac_ext
5497    CFLAGS=$cflags_save
5498    LIBS=$libs_save
5499    if test $mzs_ok = yes; then
5500      MZSCHEME_SRC="if_mzsch.c"
5501      MZSCHEME_OBJ="objects/if_mzsch.o"
5502      MZSCHEME_PRO="if_mzsch.pro"
5503      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
5504
5505    else
5506      MZSCHEME_CFLAGS=
5507      MZSCHEME_LIBS=
5508      MZSCHEME_EXTRA=
5509      MZSCHEME_MZC=
5510    fi
5511  fi
5512
5513
5514
5515
5516
5517
5518
5519fi
5520
5521
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
5523$as_echo_n "checking --enable-perlinterp argument... " >&6; }
5524# Check whether --enable-perlinterp was given.
5525if test "${enable_perlinterp+set}" = set; then :
5526  enableval=$enable_perlinterp;
5527else
5528  enable_perlinterp="no"
5529fi
5530
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
5532$as_echo "$enable_perlinterp" >&6; }
5533if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
5534
5535  # Extract the first word of "perl", so it can be a program name with args.
5536set dummy perl; ac_word=$2
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
5539if ${ac_cv_path_vi_cv_path_perl+:} false; then :
5540  $as_echo_n "(cached) " >&6
5541else
5542  case $vi_cv_path_perl in
5543  [\\/]* | ?:[\\/]*)
5544  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
5545  ;;
5546  *)
5547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550  IFS=$as_save_IFS
5551  test -z "$as_dir" && as_dir=.
5552    for ac_exec_ext in '' $ac_executable_extensions; do
5553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
5555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556    break 2
5557  fi
5558done
5559  done
5560IFS=$as_save_IFS
5561
5562  ;;
5563esac
5564fi
5565vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
5566if test -n "$vi_cv_path_perl"; then
5567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
5568$as_echo "$vi_cv_path_perl" >&6; }
5569else
5570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571$as_echo "no" >&6; }
5572fi
5573
5574
5575  if test "X$vi_cv_path_perl" != "X"; then
5576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
5577$as_echo_n "checking Perl version... " >&6; }
5578    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
5579     eval `$vi_cv_path_perl -V:usethreads`
5580     eval `$vi_cv_path_perl -V:libperl`
5581     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
5582       badthreads=no
5583     else
5584       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
5585	 eval `$vi_cv_path_perl -V:use5005threads`
5586	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
5587	   badthreads=no
5588	 else
5589	   badthreads=yes
5590	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
5591$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
5592	 fi
5593       else
5594	 badthreads=yes
5595	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
5596$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
5597       fi
5598     fi
5599     if test $badthreads = no; then
5600      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
5601$as_echo "OK" >&6; }
5602      eval `$vi_cv_path_perl -V:shrpenv`
5603      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
5604	shrpenv=""
5605      fi
5606      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
5607
5608      vi_cv_perl_extutils=unknown_perl_extutils_path
5609      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
5610	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
5611	if test -f "$xsubpp_path"; then
5612	  vi_cv_perl_xsubpp="$xsubpp_path"
5613	fi
5614      done
5615
5616            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
5617	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
5618            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
5619		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
5620			-e 's/-bE:perl.exp//' -e 's/-lc //'`
5621                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
5622		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
5623
5624                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
5625$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
5626      cflags_save=$CFLAGS
5627      libs_save=$LIBS
5628      ldflags_save=$LDFLAGS
5629      CFLAGS="$CFLAGS $perlcppflags"
5630      LIBS="$LIBS $perllibs"
5631      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
5632      LDFLAGS="$perlldflags $LDFLAGS"
5633      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h.  */
5635
5636int
5637main ()
5638{
5639
5640  ;
5641  return 0;
5642}
5643_ACEOF
5644if ac_fn_c_try_link "$LINENO"; then :
5645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646$as_echo "yes" >&6; }; perl_ok=yes
5647else
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
5649$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5650fi
5651rm -f core conftest.err conftest.$ac_objext \
5652    conftest$ac_exeext conftest.$ac_ext
5653      CFLAGS=$cflags_save
5654      LIBS=$libs_save
5655      LDFLAGS=$ldflags_save
5656      if test $perl_ok = yes; then
5657	if test "X$perlcppflags" != "X"; then
5658	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5659	fi
5660	if test "X$perlldflags" != "X"; then
5661	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
5662	    LDFLAGS="$perlldflags $LDFLAGS"
5663	  fi
5664	fi
5665	PERL_LIBS=$perllibs
5666	PERL_SRC="auto/if_perl.c if_perlsfio.c"
5667	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5668	PERL_PRO="if_perl.pro if_perlsfio.pro"
5669	$as_echo "#define FEAT_PERL 1" >>confdefs.h
5670
5671      fi
5672     fi
5673    else
5674      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5675$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5676    fi
5677  fi
5678
5679  if test "x$MACOSX" = "xyes"; then
5680        dir=/System/Library/Perl
5681    darwindir=$dir/darwin
5682    if test -d $darwindir; then
5683      PERL=/usr/bin/perl
5684    else
5685            dir=/System/Library/Perl/5.8.1
5686      darwindir=$dir/darwin-thread-multi-2level
5687      if test -d $darwindir; then
5688	PERL=/usr/bin/perl
5689      fi
5690    fi
5691    if test -n "$PERL"; then
5692      PERL_DIR="$dir"
5693      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5694      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5695      PERL_LIBS="-L$darwindir/CORE -lperl"
5696    fi
5697                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5698    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5699  fi
5700  if test "$enable_perlinterp" = "dynamic"; then
5701    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
5702      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
5703
5704      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
5705    fi
5706  fi
5707
5708  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
5709    as_fn_error $? "could not configure perl" "$LINENO" 5
5710  fi
5711fi
5712
5713
5714
5715
5716
5717
5718
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
5720$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5721# Check whether --enable-pythoninterp was given.
5722if test "${enable_pythoninterp+set}" = set; then :
5723  enableval=$enable_pythoninterp;
5724else
5725  enable_pythoninterp="no"
5726fi
5727
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
5729$as_echo "$enable_pythoninterp" >&6; }
5730if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
5731    for ac_prog in python2 python
5732do
5733  # Extract the first word of "$ac_prog", so it can be a program name with args.
5734set dummy $ac_prog; ac_word=$2
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736$as_echo_n "checking for $ac_word... " >&6; }
5737if ${ac_cv_path_vi_cv_path_python+:} false; then :
5738  $as_echo_n "(cached) " >&6
5739else
5740  case $vi_cv_path_python in
5741  [\\/]* | ?:[\\/]*)
5742  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5743  ;;
5744  *)
5745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748  IFS=$as_save_IFS
5749  test -z "$as_dir" && as_dir=.
5750    for ac_exec_ext in '' $ac_executable_extensions; do
5751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754    break 2
5755  fi
5756done
5757  done
5758IFS=$as_save_IFS
5759
5760  ;;
5761esac
5762fi
5763vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5764if test -n "$vi_cv_path_python"; then
5765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
5766$as_echo "$vi_cv_path_python" >&6; }
5767else
5768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769$as_echo "no" >&6; }
5770fi
5771
5772
5773  test -n "$vi_cv_path_python" && break
5774done
5775
5776  if test "X$vi_cv_path_python" != "X"; then
5777
5778        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
5779$as_echo_n "checking Python version... " >&6; }
5780if ${vi_cv_var_python_version+:} false; then :
5781  $as_echo_n "(cached) " >&6
5782else
5783  vi_cv_var_python_version=`
5784	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5785
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
5788$as_echo "$vi_cv_var_python_version" >&6; }
5789
5790        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
5791$as_echo_n "checking Python is 2.3 or better... " >&6; }
5792    if ${vi_cv_path_python} -c \
5793	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
5794    then
5795      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
5796$as_echo "yep" >&6; }
5797
5798            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
5799$as_echo_n "checking Python's install prefix... " >&6; }
5800if ${vi_cv_path_python_pfx+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803   vi_cv_path_python_pfx=`
5804	    ${vi_cv_path_python} -c \
5805		"import sys; print sys.prefix"`
5806fi
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
5808$as_echo "$vi_cv_path_python_pfx" >&6; }
5809
5810            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
5811$as_echo_n "checking Python's execution prefix... " >&6; }
5812if ${vi_cv_path_python_epfx+:} false; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815   vi_cv_path_python_epfx=`
5816	    ${vi_cv_path_python} -c \
5817		"import sys; print sys.exec_prefix"`
5818fi
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
5820$as_echo "$vi_cv_path_python_epfx" >&6; }
5821
5822
5823      if ${vi_cv_path_pythonpath+:} false; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826   vi_cv_path_pythonpath=`
5827	    unset PYTHONPATH;
5828	    ${vi_cv_path_python} -c \
5829		"import sys, string; print string.join(sys.path,':')"`
5830fi
5831
5832
5833
5834
5835# Check whether --with-python-config-dir was given.
5836if test "${with_python_config_dir+set}" = set; then :
5837  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5838fi
5839
5840
5841      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
5842$as_echo_n "checking Python's configuration directory... " >&6; }
5843if ${vi_cv_path_python_conf+:} false; then :
5844  $as_echo_n "(cached) " >&6
5845else
5846
5847	vi_cv_path_python_conf=
5848	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
5849	if test -d "$d" && test -f "$d/config.c"; then
5850	  vi_cv_path_python_conf="$d"
5851	else
5852	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5853	    for subdir in lib64 lib share; do
5854	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5855	      if test -d "$d" && test -f "$d/config.c"; then
5856		vi_cv_path_python_conf="$d"
5857	      fi
5858	    done
5859	  done
5860	fi
5861
5862fi
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
5864$as_echo "$vi_cv_path_python_conf" >&6; }
5865
5866      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5867
5868      if test "X$PYTHON_CONFDIR" = "X"; then
5869	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
5870$as_echo "can't find it!" >&6; }
5871      else
5872
5873			if ${vi_cv_path_python_plibs+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876
5877	    pwd=`pwd`
5878	    tmp_mkf="$pwd/config-PyMake$$"
5879	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5880__:
5881	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
5882	@echo "python_LIBS='$(LIBS)'"
5883	@echo "python_SYSLIBS='$(SYSLIBS)'"
5884	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5885	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
5886	@echo "python_INSTSONAME='$(INSTSONAME)'"
5887eof
5888	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5889	    rm -f -- "${tmp_mkf}"
5890	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5891		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5892	      vi_cv_path_python_plibs="-framework Python"
5893	    else
5894	      if test "${vi_cv_var_python_version}" = "1.4"; then
5895		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5896	      else
5897		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5898	      fi
5899	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5900	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5901	    fi
5902
5903fi
5904
5905	if ${vi_cv_dll_name_python+:} false; then :
5906  $as_echo_n "(cached) " >&6
5907else
5908
5909	  if test "X$python_DLLLIBRARY" != "X"; then
5910	    vi_cv_dll_name_python="$python_DLLLIBRARY"
5911	  else
5912	    vi_cv_dll_name_python="$python_INSTSONAME"
5913	  fi
5914
5915fi
5916
5917
5918	PYTHON_LIBS="${vi_cv_path_python_plibs}"
5919	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5920	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
5921	else
5922	  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}\"'"
5923	fi
5924	PYTHON_SRC="if_python.c"
5925	PYTHON_OBJ="objects/if_python.o"
5926	if test "${vi_cv_var_python_version}" = "1.4"; then
5927	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5928	fi
5929    PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5930
5931								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
5932$as_echo_n "checking if -pthread should be used... " >&6; }
5933	threadsafe_flag=
5934	thread_lib=
5935	        if test "`(uname) 2>/dev/null`" != Darwin; then
5936	  test "$GCC" = yes && threadsafe_flag="-pthread"
5937	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
5938	    threadsafe_flag="-D_THREAD_SAFE"
5939	    thread_lib="-pthread"
5940	  fi
5941	  if test "`(uname) 2>/dev/null`" = SunOS; then
5942	    threadsafe_flag="-pthreads"
5943	  fi
5944	fi
5945	libs_save_old=$LIBS
5946	if test -n "$threadsafe_flag"; then
5947	  cflags_save=$CFLAGS
5948	  CFLAGS="$CFLAGS $threadsafe_flag"
5949	  LIBS="$LIBS $thread_lib"
5950	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h.  */
5952
5953int
5954main ()
5955{
5956
5957  ;
5958  return 0;
5959}
5960_ACEOF
5961if ac_fn_c_try_link "$LINENO"; then :
5962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5963$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5964else
5965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966$as_echo "no" >&6; }; LIBS=$libs_save_old
5967
5968fi
5969rm -f core conftest.err conftest.$ac_objext \
5970    conftest$ac_exeext conftest.$ac_ext
5971	  CFLAGS=$cflags_save
5972	else
5973	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974$as_echo "no" >&6; }
5975	fi
5976
5977			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
5978$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5979	cflags_save=$CFLAGS
5980	libs_save=$LIBS
5981	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5982	LIBS="$LIBS $PYTHON_LIBS"
5983	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* end confdefs.h.  */
5985
5986int
5987main ()
5988{
5989
5990  ;
5991  return 0;
5992}
5993_ACEOF
5994if ac_fn_c_try_link "$LINENO"; then :
5995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5996$as_echo "yes" >&6; }; python_ok=yes
5997else
5998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
5999$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6000fi
6001rm -f core conftest.err conftest.$ac_objext \
6002    conftest$ac_exeext conftest.$ac_ext
6003	CFLAGS=$cflags_save
6004	LIBS=$libs_save
6005	if test $python_ok = yes; then
6006	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6007
6008	else
6009	  LIBS=$libs_save_old
6010	  PYTHON_SRC=
6011	  PYTHON_OBJ=
6012	  PYTHON_LIBS=
6013	  PYTHON_CFLAGS=
6014	fi
6015      fi
6016    else
6017      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6018$as_echo "too old" >&6; }
6019    fi
6020  fi
6021
6022  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6023    as_fn_error $? "could not configure python" "$LINENO" 5
6024  fi
6025fi
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6036$as_echo_n "checking --enable-python3interp argument... " >&6; }
6037# Check whether --enable-python3interp was given.
6038if test "${enable_python3interp+set}" = set; then :
6039  enableval=$enable_python3interp;
6040else
6041  enable_python3interp="no"
6042fi
6043
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6045$as_echo "$enable_python3interp" >&6; }
6046if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6047    for ac_prog in python3 python
6048do
6049  # Extract the first word of "$ac_prog", so it can be a program name with args.
6050set dummy $ac_prog; ac_word=$2
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
6053if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6054  $as_echo_n "(cached) " >&6
6055else
6056  case $vi_cv_path_python3 in
6057  [\\/]* | ?:[\\/]*)
6058  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6059  ;;
6060  *)
6061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064  IFS=$as_save_IFS
6065  test -z "$as_dir" && as_dir=.
6066    for ac_exec_ext in '' $ac_executable_extensions; do
6067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070    break 2
6071  fi
6072done
6073  done
6074IFS=$as_save_IFS
6075
6076  ;;
6077esac
6078fi
6079vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6080if test -n "$vi_cv_path_python3"; then
6081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6082$as_echo "$vi_cv_path_python3" >&6; }
6083else
6084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085$as_echo "no" >&6; }
6086fi
6087
6088
6089  test -n "$vi_cv_path_python3" && break
6090done
6091
6092  if test "X$vi_cv_path_python3" != "X"; then
6093
6094        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6095$as_echo_n "checking Python version... " >&6; }
6096if ${vi_cv_var_python3_version+:} false; then :
6097  $as_echo_n "(cached) " >&6
6098else
6099  vi_cv_var_python3_version=`
6100          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6101
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6104$as_echo "$vi_cv_var_python3_version" >&6; }
6105
6106        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6107$as_echo_n "checking Python is 3.0 or better... " >&6; }
6108    if ${vi_cv_path_python3} -c \
6109      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6110    then
6111      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6112$as_echo "yep" >&6; }
6113
6114            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6115$as_echo_n "checking Python's abiflags... " >&6; }
6116if ${vi_cv_var_python3_abiflags+:} false; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119
6120       vi_cv_var_python3_abiflags=
6121       if ${vi_cv_path_python3} -c \
6122           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6123       then
6124         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6125           "import sys; print(sys.abiflags)"`
6126       fi
6127fi
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6129$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6130
6131            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6132$as_echo_n "checking Python's install prefix... " >&6; }
6133if ${vi_cv_path_python3_pfx+:} false; then :
6134  $as_echo_n "(cached) " >&6
6135else
6136   vi_cv_path_python3_pfx=`
6137       ${vi_cv_path_python3} -c \
6138       "import sys; print(sys.prefix)"`
6139fi
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6141$as_echo "$vi_cv_path_python3_pfx" >&6; }
6142
6143            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6144$as_echo_n "checking Python's execution prefix... " >&6; }
6145if ${vi_cv_path_python3_epfx+:} false; then :
6146  $as_echo_n "(cached) " >&6
6147else
6148   vi_cv_path_python3_epfx=`
6149       ${vi_cv_path_python3} -c \
6150       "import sys; print(sys.exec_prefix)"`
6151fi
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6153$as_echo "$vi_cv_path_python3_epfx" >&6; }
6154
6155
6156      if ${vi_cv_path_python3path+:} false; then :
6157  $as_echo_n "(cached) " >&6
6158else
6159   vi_cv_path_python3path=`
6160       unset PYTHONPATH;
6161       ${vi_cv_path_python3} -c \
6162       "import sys, string; print(':'.join(sys.path))"`
6163fi
6164
6165
6166
6167
6168# Check whether --with-python3-config-dir was given.
6169if test "${with_python3_config_dir+set}" = set; then :
6170  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"
6171fi
6172
6173
6174      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6175$as_echo_n "checking Python's configuration directory... " >&6; }
6176if ${vi_cv_path_python3_conf+:} false; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179
6180       vi_cv_path_python3_conf=
6181       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6182       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6183       if test -d "$d" && test -f "$d/config.c"; then
6184         vi_cv_path_python3_conf="$d"
6185       else
6186         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6187	   for subdir in lib64 lib share; do
6188	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6189	     if test -d "$d" && test -f "$d/config.c"; then
6190	       vi_cv_path_python3_conf="$d"
6191	     fi
6192	   done
6193         done
6194       fi
6195
6196fi
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6198$as_echo "$vi_cv_path_python3_conf" >&6; }
6199
6200      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6201
6202      if test "X$PYTHON3_CONFDIR" = "X"; then
6203        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6204$as_echo "can't find it!" >&6; }
6205      else
6206
6207                        if ${vi_cv_path_python3_plibs+:} false; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210
6211            pwd=`pwd`
6212            tmp_mkf="$pwd/config-PyMake$$"
6213            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6214__:
6215	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6216	@echo "python3_LIBS='$(LIBS)'"
6217	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6218	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6219	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6220eof
6221	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6222	    rm -f -- "${tmp_mkf}"
6223	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6224	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6225	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6226	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6227
6228fi
6229
6230	if ${vi_cv_dll_name_python3+:} false; then :
6231  $as_echo_n "(cached) " >&6
6232else
6233
6234	  if test "X$python3_DLLLIBRARY" != "X"; then
6235	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6236	  else
6237	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6238	  fi
6239
6240fi
6241
6242
6243        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6244        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6245          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}\"'"
6246        else
6247          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}\"'"
6248        fi
6249        PYTHON3_SRC="if_python3.c"
6250        PYTHON3_OBJ="objects/if_python3.o"
6251
6252                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6253$as_echo_n "checking if -pthread should be used... " >&6; }
6254        threadsafe_flag=
6255        thread_lib=
6256                if test "`(uname) 2>/dev/null`" != Darwin; then
6257          test "$GCC" = yes && threadsafe_flag="-pthread"
6258          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6259            threadsafe_flag="-D_THREAD_SAFE"
6260            thread_lib="-pthread"
6261          fi
6262          if test "`(uname) 2>/dev/null`" = SunOS; then
6263            threadsafe_flag="-pthreads"
6264          fi
6265        fi
6266        libs_save_old=$LIBS
6267        if test -n "$threadsafe_flag"; then
6268          cflags_save=$CFLAGS
6269          CFLAGS="$CFLAGS $threadsafe_flag"
6270          LIBS="$LIBS $thread_lib"
6271          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273
6274int
6275main ()
6276{
6277
6278  ;
6279  return 0;
6280}
6281_ACEOF
6282if ac_fn_c_try_link "$LINENO"; then :
6283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6284$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6285else
6286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287$as_echo "no" >&6; }; LIBS=$libs_save_old
6288
6289fi
6290rm -f core conftest.err conftest.$ac_objext \
6291    conftest$ac_exeext conftest.$ac_ext
6292          CFLAGS=$cflags_save
6293        else
6294          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295$as_echo "no" >&6; }
6296        fi
6297
6298                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6299$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6300        cflags_save=$CFLAGS
6301        libs_save=$LIBS
6302        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6303        LIBS="$LIBS $PYTHON3_LIBS"
6304        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305/* end confdefs.h.  */
6306
6307int
6308main ()
6309{
6310
6311  ;
6312  return 0;
6313}
6314_ACEOF
6315if ac_fn_c_try_link "$LINENO"; then :
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6317$as_echo "yes" >&6; }; python3_ok=yes
6318else
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6320$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6321fi
6322rm -f core conftest.err conftest.$ac_objext \
6323    conftest$ac_exeext conftest.$ac_ext
6324        CFLAGS=$cflags_save
6325        LIBS=$libs_save
6326        if test "$python3_ok" = yes; then
6327          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6328
6329        else
6330          LIBS=$libs_save_old
6331          PYTHON3_SRC=
6332          PYTHON3_OBJ=
6333          PYTHON3_LIBS=
6334          PYTHON3_CFLAGS=
6335        fi
6336      fi
6337    else
6338      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6339$as_echo "too old" >&6; }
6340    fi
6341  fi
6342  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6343    as_fn_error $? "could not configure python3" "$LINENO" 5
6344  fi
6345fi
6346
6347
6348
6349
6350
6351
6352
6353if test "$python_ok" = yes && test "$python3_ok" = yes; then
6354  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6355
6356  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6357
6358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6359$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6360  cflags_save=$CFLAGS
6361  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6362  ldflags_save=$LDFLAGS
6363    LDFLAGS="-ldl $LDFLAGS"
6364  if test "$cross_compiling" = yes; then :
6365  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6367as_fn_error $? "cannot run test program while cross compiling
6368See \`config.log' for more details" "$LINENO" 5; }
6369else
6370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371/* end confdefs.h.  */
6372
6373    #include <dlfcn.h>
6374    /* If this program fails, then RTLD_GLOBAL is needed.
6375     * RTLD_GLOBAL will be used and then it is not possible to
6376     * have both python versions enabled in the same vim instance.
6377     * Only the first python version used will be switched on.
6378     */
6379
6380    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6381    {
6382      int needed = 0;
6383      void* pylib = dlopen(python_instsoname, RTLD_LAZY);
6384      if (pylib != 0)
6385      {
6386          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6387          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6388          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6389          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6390          (*pfx)(prefix);
6391          (*init)();
6392          needed = (*simple)("import termios") == -1;
6393          (*final)();
6394          dlclose(pylib);
6395      }
6396      return !needed;
6397    }
6398
6399    int main(int argc, char** argv)
6400    {
6401      int not_needed = 0;
6402      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6403            not_needed = 1;
6404      return !not_needed;
6405    }
6406_ACEOF
6407if ac_fn_c_try_run "$LINENO"; then :
6408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6409$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6410
6411else
6412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413$as_echo "no" >&6; }
6414fi
6415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6416  conftest.$ac_objext conftest.beam conftest.$ac_ext
6417fi
6418
6419
6420  CFLAGS=$cflags_save
6421  LDFLAGS=$ldflags_save
6422
6423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6424$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6425  cflags_save=$CFLAGS
6426  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6427  ldflags_save=$LDFLAGS
6428    LDFLAGS="-ldl $LDFLAGS"
6429  if test "$cross_compiling" = yes; then :
6430  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432as_fn_error $? "cannot run test program while cross compiling
6433See \`config.log' for more details" "$LINENO" 5; }
6434else
6435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436/* end confdefs.h.  */
6437
6438    #include <dlfcn.h>
6439    #include <wchar.h>
6440    /* If this program fails, then RTLD_GLOBAL is needed.
6441     * RTLD_GLOBAL will be used and then it is not possible to
6442     * have both python versions enabled in the same vim instance.
6443     * Only the first python version used will be switched on.
6444     */
6445
6446    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
6447    {
6448      int needed = 0;
6449      void* pylib = dlopen(python_instsoname, RTLD_LAZY);
6450      if (pylib != 0)
6451      {
6452          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
6453          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6454          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6455          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6456          (*pfx)(prefix);
6457          (*init)();
6458          needed = (*simple)("import termios") == -1;
6459          (*final)();
6460          dlclose(pylib);
6461      }
6462      return !needed;
6463    }
6464
6465    int main(int argc, char** argv)
6466    {
6467      int not_needed = 0;
6468      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
6469            not_needed = 1;
6470      return !not_needed;
6471    }
6472_ACEOF
6473if ac_fn_c_try_run "$LINENO"; then :
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6475$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
6476
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6482  conftest.$ac_objext conftest.beam conftest.$ac_ext
6483fi
6484
6485
6486  CFLAGS=$cflags_save
6487  LDFLAGS=$ldflags_save
6488
6489  PYTHON_SRC="if_python.c"
6490  PYTHON_OBJ="objects/if_python.o"
6491  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
6492  PYTHON_LIBS=
6493  PYTHON3_SRC="if_python3.c"
6494  PYTHON3_OBJ="objects/if_python3.o"
6495  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
6496  PYTHON3_LIBS=
6497elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
6498  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6499
6500  PYTHON_SRC="if_python.c"
6501  PYTHON_OBJ="objects/if_python.o"
6502  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
6503  PYTHON_LIBS=
6504elif test "$python_ok" = yes; then
6505      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
6506$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
6507  cflags_save=$CFLAGS
6508  libs_save=$LIBS
6509  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
6510  LIBS="$LIBS $PYTHON_LIBS"
6511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513
6514int
6515main ()
6516{
6517
6518  ;
6519  return 0;
6520}
6521_ACEOF
6522if ac_fn_c_try_link "$LINENO"; then :
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6524$as_echo "yes" >&6; }; fpie_ok=yes
6525else
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }; fpie_ok=no
6528fi
6529rm -f core conftest.err conftest.$ac_objext \
6530    conftest$ac_exeext conftest.$ac_ext
6531  CFLAGS=$cflags_save
6532  LIBS=$libs_save
6533  if test $fpie_ok = yes; then
6534    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
6535  fi
6536elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
6537  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6538
6539  PYTHON3_SRC="if_python3.c"
6540  PYTHON3_OBJ="objects/if_python3.o"
6541  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
6542  PYTHON3_LIBS=
6543elif test "$python3_ok" = yes; then
6544      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
6545$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
6546  cflags_save=$CFLAGS
6547  libs_save=$LIBS
6548  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
6549  LIBS="$LIBS $PYTHON3_LIBS"
6550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551/* end confdefs.h.  */
6552
6553int
6554main ()
6555{
6556
6557  ;
6558  return 0;
6559}
6560_ACEOF
6561if ac_fn_c_try_link "$LINENO"; then :
6562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563$as_echo "yes" >&6; }; fpie_ok=yes
6564else
6565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566$as_echo "no" >&6; }; fpie_ok=no
6567fi
6568rm -f core conftest.err conftest.$ac_objext \
6569    conftest$ac_exeext conftest.$ac_ext
6570  CFLAGS=$cflags_save
6571  LIBS=$libs_save
6572  if test $fpie_ok = yes; then
6573    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
6574  fi
6575fi
6576
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
6578$as_echo_n "checking --enable-tclinterp argument... " >&6; }
6579# Check whether --enable-tclinterp was given.
6580if test "${enable_tclinterp+set}" = set; then :
6581  enableval=$enable_tclinterp;
6582else
6583  enable_tclinterp="no"
6584fi
6585
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
6587$as_echo "$enable_tclinterp" >&6; }
6588
6589if test "$enable_tclinterp" = "yes"; then
6590
6591    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
6592$as_echo_n "checking --with-tclsh argument... " >&6; }
6593
6594# Check whether --with-tclsh was given.
6595if test "${with_tclsh+set}" = set; then :
6596  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
6597$as_echo "$tclsh_name" >&6; }
6598else
6599  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600$as_echo "no" >&6; }
6601fi
6602
6603  # Extract the first word of "$tclsh_name", so it can be a program name with args.
6604set dummy $tclsh_name; ac_word=$2
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606$as_echo_n "checking for $ac_word... " >&6; }
6607if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6608  $as_echo_n "(cached) " >&6
6609else
6610  case $vi_cv_path_tcl in
6611  [\\/]* | ?:[\\/]*)
6612  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6613  ;;
6614  *)
6615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618  IFS=$as_save_IFS
6619  test -z "$as_dir" && as_dir=.
6620    for ac_exec_ext in '' $ac_executable_extensions; do
6621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624    break 2
6625  fi
6626done
6627  done
6628IFS=$as_save_IFS
6629
6630  ;;
6631esac
6632fi
6633vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6634if test -n "$vi_cv_path_tcl"; then
6635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6636$as_echo "$vi_cv_path_tcl" >&6; }
6637else
6638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639$as_echo "no" >&6; }
6640fi
6641
6642
6643
6644
6645    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
6646    tclsh_name="tclsh8.4"
6647    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6648set dummy $tclsh_name; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  case $vi_cv_path_tcl in
6655  [\\/]* | ?:[\\/]*)
6656  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6657  ;;
6658  *)
6659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  test -z "$as_dir" && as_dir=.
6664    for ac_exec_ext in '' $ac_executable_extensions; do
6665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668    break 2
6669  fi
6670done
6671  done
6672IFS=$as_save_IFS
6673
6674  ;;
6675esac
6676fi
6677vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6678if test -n "$vi_cv_path_tcl"; then
6679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6680$as_echo "$vi_cv_path_tcl" >&6; }
6681else
6682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683$as_echo "no" >&6; }
6684fi
6685
6686
6687  fi
6688  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
6689    tclsh_name="tclsh8.2"
6690    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6691set dummy $tclsh_name; ac_word=$2
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693$as_echo_n "checking for $ac_word... " >&6; }
6694if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6695  $as_echo_n "(cached) " >&6
6696else
6697  case $vi_cv_path_tcl in
6698  [\\/]* | ?:[\\/]*)
6699  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6700  ;;
6701  *)
6702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  test -z "$as_dir" && as_dir=.
6707    for ac_exec_ext in '' $ac_executable_extensions; do
6708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711    break 2
6712  fi
6713done
6714  done
6715IFS=$as_save_IFS
6716
6717  ;;
6718esac
6719fi
6720vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6721if test -n "$vi_cv_path_tcl"; then
6722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6723$as_echo "$vi_cv_path_tcl" >&6; }
6724else
6725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726$as_echo "no" >&6; }
6727fi
6728
6729
6730  fi
6731  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
6732    tclsh_name="tclsh8.0"
6733    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6734set dummy $tclsh_name; ac_word=$2
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736$as_echo_n "checking for $ac_word... " >&6; }
6737if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6738  $as_echo_n "(cached) " >&6
6739else
6740  case $vi_cv_path_tcl in
6741  [\\/]* | ?:[\\/]*)
6742  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6743  ;;
6744  *)
6745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748  IFS=$as_save_IFS
6749  test -z "$as_dir" && as_dir=.
6750    for ac_exec_ext in '' $ac_executable_extensions; do
6751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754    break 2
6755  fi
6756done
6757  done
6758IFS=$as_save_IFS
6759
6760  ;;
6761esac
6762fi
6763vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6764if test -n "$vi_cv_path_tcl"; then
6765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6766$as_echo "$vi_cv_path_tcl" >&6; }
6767else
6768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769$as_echo "no" >&6; }
6770fi
6771
6772
6773  fi
6774    if test "X$vi_cv_path_tcl" = "X"; then
6775    tclsh_name="tclsh"
6776    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6777set dummy $tclsh_name; ac_word=$2
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779$as_echo_n "checking for $ac_word... " >&6; }
6780if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6781  $as_echo_n "(cached) " >&6
6782else
6783  case $vi_cv_path_tcl in
6784  [\\/]* | ?:[\\/]*)
6785  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6786  ;;
6787  *)
6788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791  IFS=$as_save_IFS
6792  test -z "$as_dir" && as_dir=.
6793    for ac_exec_ext in '' $ac_executable_extensions; do
6794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797    break 2
6798  fi
6799done
6800  done
6801IFS=$as_save_IFS
6802
6803  ;;
6804esac
6805fi
6806vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6807if test -n "$vi_cv_path_tcl"; then
6808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6809$as_echo "$vi_cv_path_tcl" >&6; }
6810else
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812$as_echo "no" >&6; }
6813fi
6814
6815
6816  fi
6817  if test "X$vi_cv_path_tcl" != "X"; then
6818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
6819$as_echo_n "checking Tcl version... " >&6; }
6820    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
6821      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
6822      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
6823$as_echo "$tclver - OK" >&6; };
6824      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 -`
6825
6826      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
6827$as_echo_n "checking for location of Tcl include... " >&6; }
6828      if test "x$MACOSX" != "xyes"; then
6829	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
6830      else
6831		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
6832      fi
6833      TCL_INC=
6834      for try in $tclinc; do
6835	if test -f "$try/tcl.h"; then
6836	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
6837$as_echo "$try/tcl.h" >&6; }
6838	  TCL_INC=$try
6839	  break
6840	fi
6841      done
6842      if test -z "$TCL_INC"; then
6843	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6844$as_echo "<not found>" >&6; }
6845	SKIP_TCL=YES
6846      fi
6847      if test -z "$SKIP_TCL"; then
6848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
6849$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
6850	if test "x$MACOSX" != "xyes"; then
6851	  tclcnf=`echo $tclinc | sed s/include/lib/g`
6852	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
6853	else
6854	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
6855	fi
6856	for try in $tclcnf; do
6857	  if test -f $try/tclConfig.sh; then
6858	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
6859$as_echo "$try/tclConfig.sh" >&6; }
6860	    . $try/tclConfig.sh
6861	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
6862	    	    	    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'`
6863	    break
6864	  fi
6865	done
6866	if test -z "$TCL_LIBS"; then
6867	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6868$as_echo "<not found>" >&6; }
6869	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
6870$as_echo_n "checking for Tcl library by myself... " >&6; }
6871	  tcllib=`echo $tclinc | sed s/include/lib/g`
6872	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
6873	  for ext in .so .a ; do
6874	    for ver in "" $tclver ; do
6875	      for try in $tcllib ; do
6876		trylib=tcl$ver$ext
6877		if test -f $try/lib$trylib ; then
6878		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
6879$as_echo "$try/lib$trylib" >&6; }
6880		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
6881		  if test "`(uname) 2>/dev/null`" = SunOS &&
6882					 uname -r | grep '^5' >/dev/null; then
6883		    TCL_LIBS="$TCL_LIBS -R $try"
6884		  fi
6885		  break 3
6886		fi
6887	      done
6888	    done
6889	  done
6890	  if test -z "$TCL_LIBS"; then
6891	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6892$as_echo "<not found>" >&6; }
6893	    SKIP_TCL=YES
6894	  fi
6895	fi
6896	if test -z "$SKIP_TCL"; then
6897	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
6898
6899	  TCL_SRC=if_tcl.c
6900	  TCL_OBJ=objects/if_tcl.o
6901	  TCL_PRO=if_tcl.pro
6902	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
6903	fi
6904      fi
6905    else
6906      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
6907$as_echo "too old; need Tcl version 8.0 or later" >&6; }
6908    fi
6909  fi
6910  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
6911    as_fn_error $? "could not configure Tcl" "$LINENO" 5
6912  fi
6913fi
6914
6915
6916
6917
6918
6919
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
6921$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
6922# Check whether --enable-rubyinterp was given.
6923if test "${enable_rubyinterp+set}" = set; then :
6924  enableval=$enable_rubyinterp;
6925else
6926  enable_rubyinterp="no"
6927fi
6928
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
6930$as_echo "$enable_rubyinterp" >&6; }
6931if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
6932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
6933$as_echo_n "checking --with-ruby-command argument... " >&6; }
6934
6935
6936# Check whether --with-ruby-command was given.
6937if test "${with_ruby_command+set}" = set; then :
6938  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
6939$as_echo "$RUBY_CMD" >&6; }
6940else
6941  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
6942$as_echo "defaulting to $RUBY_CMD" >&6; }
6943fi
6944
6945  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
6946set dummy $RUBY_CMD; ac_word=$2
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948$as_echo_n "checking for $ac_word... " >&6; }
6949if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
6950  $as_echo_n "(cached) " >&6
6951else
6952  case $vi_cv_path_ruby in
6953  [\\/]* | ?:[\\/]*)
6954  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
6955  ;;
6956  *)
6957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960  IFS=$as_save_IFS
6961  test -z "$as_dir" && as_dir=.
6962    for ac_exec_ext in '' $ac_executable_extensions; do
6963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
6965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966    break 2
6967  fi
6968done
6969  done
6970IFS=$as_save_IFS
6971
6972  ;;
6973esac
6974fi
6975vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
6976if test -n "$vi_cv_path_ruby"; then
6977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
6978$as_echo "$vi_cv_path_ruby" >&6; }
6979else
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981$as_echo "no" >&6; }
6982fi
6983
6984
6985  if test "X$vi_cv_path_ruby" != "X"; then
6986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
6987$as_echo_n "checking Ruby version... " >&6; }
6988    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
6989      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6990$as_echo "OK" >&6; }
6991      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
6992$as_echo_n "checking Ruby rbconfig... " >&6; }
6993      ruby_rbconfig="RbConfig"
6994      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
6995	ruby_rbconfig="Config"
6996      fi
6997      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
6998$as_echo "$ruby_rbconfig" >&6; }
6999      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7000$as_echo_n "checking Ruby header files... " >&6; }
7001      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7002      if test "X$rubyhdrdir" != "X"; then
7003	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7004$as_echo "$rubyhdrdir" >&6; }
7005	RUBY_CFLAGS="-I$rubyhdrdir"
7006        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7007        if test -d "$rubyarchdir"; then
7008          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7009        fi
7010        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7011	if test "X$rubyversion" = "X"; then
7012	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7013	fi
7014        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7015	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7016	if test "X$rubylibs" != "X"; then
7017	  RUBY_LIBS="$rubylibs"
7018	fi
7019	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7020	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7021	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7022	if test -f "$rubylibdir/$librubya"; then
7023	  librubyarg="$librubyarg"
7024	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7025	elif test "$librubyarg" = "libruby.a"; then
7026	  	  librubyarg="-lruby"
7027	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7028	fi
7029
7030	if test "X$librubyarg" != "X"; then
7031	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7032	fi
7033	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7034	if test "X$rubyldflags" != "X"; then
7035	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7036	  if test "X$rubyldflags" != "X"; then
7037	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7038	      LDFLAGS="$rubyldflags $LDFLAGS"
7039	    fi
7040	  fi
7041	fi
7042	RUBY_SRC="if_ruby.c"
7043	RUBY_OBJ="objects/if_ruby.o"
7044	RUBY_PRO="if_ruby.pro"
7045	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7046
7047	if test "$enable_rubyinterp" = "dynamic"; then
7048	  libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7049	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7050
7051	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
7052	  RUBY_LIBS=
7053	fi
7054      else
7055	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7056$as_echo "not found; disabling Ruby" >&6; }
7057      fi
7058    else
7059      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7060$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7061    fi
7062  fi
7063
7064  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7065    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7066  fi
7067fi
7068
7069
7070
7071
7072
7073
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7075$as_echo_n "checking --enable-cscope argument... " >&6; }
7076# Check whether --enable-cscope was given.
7077if test "${enable_cscope+set}" = set; then :
7078  enableval=$enable_cscope;
7079else
7080  enable_cscope="no"
7081fi
7082
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7084$as_echo "$enable_cscope" >&6; }
7085if test "$enable_cscope" = "yes"; then
7086  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7087
7088fi
7089
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
7091$as_echo_n "checking --enable-workshop argument... " >&6; }
7092# Check whether --enable-workshop was given.
7093if test "${enable_workshop+set}" = set; then :
7094  enableval=$enable_workshop;
7095else
7096  enable_workshop="no"
7097fi
7098
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
7100$as_echo "$enable_workshop" >&6; }
7101if test "$enable_workshop" = "yes"; then
7102  $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
7103
7104  WORKSHOP_SRC="workshop.c integration.c"
7105
7106  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
7107
7108  if test "${enable_gui-xxx}" = xxx; then
7109    enable_gui=motif
7110  fi
7111fi
7112
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7114$as_echo_n "checking --disable-netbeans argument... " >&6; }
7115# Check whether --enable-netbeans was given.
7116if test "${enable_netbeans+set}" = set; then :
7117  enableval=$enable_netbeans;
7118else
7119  enable_netbeans="yes"
7120fi
7121
7122if test "$enable_netbeans" = "yes"; then
7123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124$as_echo "no" >&6; }
7125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7126$as_echo_n "checking for socket in -lsocket... " >&6; }
7127if ${ac_cv_lib_socket_socket+:} false; then :
7128  $as_echo_n "(cached) " >&6
7129else
7130  ac_check_lib_save_LIBS=$LIBS
7131LIBS="-lsocket  $LIBS"
7132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134
7135/* Override any GCC internal prototype to avoid an error.
7136   Use char because int might match the return type of a GCC
7137   builtin and then its argument prototype would still apply.  */
7138#ifdef __cplusplus
7139extern "C"
7140#endif
7141char socket ();
7142int
7143main ()
7144{
7145return socket ();
7146  ;
7147  return 0;
7148}
7149_ACEOF
7150if ac_fn_c_try_link "$LINENO"; then :
7151  ac_cv_lib_socket_socket=yes
7152else
7153  ac_cv_lib_socket_socket=no
7154fi
7155rm -f core conftest.err conftest.$ac_objext \
7156    conftest$ac_exeext conftest.$ac_ext
7157LIBS=$ac_check_lib_save_LIBS
7158fi
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7160$as_echo "$ac_cv_lib_socket_socket" >&6; }
7161if test "x$ac_cv_lib_socket_socket" = xyes; then :
7162  cat >>confdefs.h <<_ACEOF
7163#define HAVE_LIBSOCKET 1
7164_ACEOF
7165
7166  LIBS="-lsocket $LIBS"
7167
7168fi
7169
7170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7171$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7172if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7173  $as_echo_n "(cached) " >&6
7174else
7175  ac_check_lib_save_LIBS=$LIBS
7176LIBS="-lnsl  $LIBS"
7177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178/* end confdefs.h.  */
7179
7180/* Override any GCC internal prototype to avoid an error.
7181   Use char because int might match the return type of a GCC
7182   builtin and then its argument prototype would still apply.  */
7183#ifdef __cplusplus
7184extern "C"
7185#endif
7186char gethostbyname ();
7187int
7188main ()
7189{
7190return gethostbyname ();
7191  ;
7192  return 0;
7193}
7194_ACEOF
7195if ac_fn_c_try_link "$LINENO"; then :
7196  ac_cv_lib_nsl_gethostbyname=yes
7197else
7198  ac_cv_lib_nsl_gethostbyname=no
7199fi
7200rm -f core conftest.err conftest.$ac_objext \
7201    conftest$ac_exeext conftest.$ac_ext
7202LIBS=$ac_check_lib_save_LIBS
7203fi
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7205$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7206if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7207  cat >>confdefs.h <<_ACEOF
7208#define HAVE_LIBNSL 1
7209_ACEOF
7210
7211  LIBS="-lnsl $LIBS"
7212
7213fi
7214
7215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling netbeans integration is possible" >&5
7216$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
7217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218/* end confdefs.h.  */
7219
7220#include <stdio.h>
7221#include <stdlib.h>
7222#include <stdarg.h>
7223#include <fcntl.h>
7224#include <netdb.h>
7225#include <netinet/in.h>
7226#include <errno.h>
7227#include <sys/types.h>
7228#include <sys/socket.h>
7229	/* Check bitfields */
7230	struct nbbuf {
7231	unsigned int  initDone:1;
7232	ushort signmaplen;
7233	};
7234
7235int
7236main ()
7237{
7238
7239		/* Check creating a socket. */
7240		struct sockaddr_in server;
7241		(void)socket(AF_INET, SOCK_STREAM, 0);
7242		(void)htons(100);
7243		(void)gethostbyname("microsoft.com");
7244		if (errno == ECONNREFUSED)
7245		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7246
7247  ;
7248  return 0;
7249}
7250_ACEOF
7251if ac_fn_c_try_link "$LINENO"; then :
7252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7253$as_echo "yes" >&6; }
7254else
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256$as_echo "no" >&6; }; enable_netbeans="no"
7257fi
7258rm -f core conftest.err conftest.$ac_objext \
7259    conftest$ac_exeext conftest.$ac_ext
7260else
7261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7262$as_echo "yes" >&6; }
7263fi
7264if test "$enable_netbeans" = "yes"; then
7265  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7266
7267  NETBEANS_SRC="netbeans.c"
7268
7269  NETBEANS_OBJ="objects/netbeans.o"
7270
7271fi
7272
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5
7274$as_echo_n "checking --enable-sniff argument... " >&6; }
7275# Check whether --enable-sniff was given.
7276if test "${enable_sniff+set}" = set; then :
7277  enableval=$enable_sniff;
7278else
7279  enable_sniff="no"
7280fi
7281
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sniff" >&5
7283$as_echo "$enable_sniff" >&6; }
7284if test "$enable_sniff" = "yes"; then
7285  $as_echo "#define FEAT_SNIFF 1" >>confdefs.h
7286
7287  SNIFF_SRC="if_sniff.c"
7288
7289  SNIFF_OBJ="objects/if_sniff.o"
7290
7291fi
7292
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7294$as_echo_n "checking --enable-multibyte argument... " >&6; }
7295# Check whether --enable-multibyte was given.
7296if test "${enable_multibyte+set}" = set; then :
7297  enableval=$enable_multibyte;
7298else
7299  enable_multibyte="no"
7300fi
7301
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
7303$as_echo "$enable_multibyte" >&6; }
7304if test "$enable_multibyte" = "yes"; then
7305  $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
7306
7307fi
7308
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
7310$as_echo_n "checking --enable-hangulinput argument... " >&6; }
7311# Check whether --enable-hangulinput was given.
7312if test "${enable_hangulinput+set}" = set; then :
7313  enableval=$enable_hangulinput;
7314else
7315  enable_hangulinput="no"
7316fi
7317
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
7319$as_echo "$enable_hangulinput" >&6; }
7320
7321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
7322$as_echo_n "checking --enable-xim argument... " >&6; }
7323# Check whether --enable-xim was given.
7324if test "${enable_xim+set}" = set; then :
7325  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
7326$as_echo "$enable_xim" >&6; }
7327else
7328  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
7329$as_echo "defaulting to auto" >&6; }
7330fi
7331
7332
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
7334$as_echo_n "checking --enable-fontset argument... " >&6; }
7335# Check whether --enable-fontset was given.
7336if test "${enable_fontset+set}" = set; then :
7337  enableval=$enable_fontset;
7338else
7339  enable_fontset="no"
7340fi
7341
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
7343$as_echo "$enable_fontset" >&6; }
7344
7345test -z "$with_x" && with_x=yes
7346test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
7347if test "$with_x" = no; then
7348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
7349$as_echo "defaulting to: don't HAVE_X11" >&6; }
7350else
7351
7352  # Extract the first word of "xmkmf", so it can be a program name with args.
7353set dummy xmkmf; ac_word=$2
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355$as_echo_n "checking for $ac_word... " >&6; }
7356if ${ac_cv_path_xmkmfpath+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  case $xmkmfpath in
7360  [\\/]* | ?:[\\/]*)
7361  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
7362  ;;
7363  *)
7364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367  IFS=$as_save_IFS
7368  test -z "$as_dir" && as_dir=.
7369    for ac_exec_ext in '' $ac_executable_extensions; do
7370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
7372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373    break 2
7374  fi
7375done
7376  done
7377IFS=$as_save_IFS
7378
7379  ;;
7380esac
7381fi
7382xmkmfpath=$ac_cv_path_xmkmfpath
7383if test -n "$xmkmfpath"; then
7384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
7385$as_echo "$xmkmfpath" >&6; }
7386else
7387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388$as_echo "no" >&6; }
7389fi
7390
7391
7392
7393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7394$as_echo_n "checking for X... " >&6; }
7395
7396
7397# Check whether --with-x was given.
7398if test "${with_x+set}" = set; then :
7399  withval=$with_x;
7400fi
7401
7402# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7403if test "x$with_x" = xno; then
7404  # The user explicitly disabled X.
7405  have_x=disabled
7406else
7407  case $x_includes,$x_libraries in #(
7408    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7409    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7410  $as_echo_n "(cached) " >&6
7411else
7412  # One or both of the vars are not set, and there is no cached value.
7413ac_x_includes=no ac_x_libraries=no
7414rm -f -r conftest.dir
7415if mkdir conftest.dir; then
7416  cd conftest.dir
7417  cat >Imakefile <<'_ACEOF'
7418incroot:
7419	@echo incroot='${INCROOT}'
7420usrlibdir:
7421	@echo usrlibdir='${USRLIBDIR}'
7422libdir:
7423	@echo libdir='${LIBDIR}'
7424_ACEOF
7425  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7426    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7427    for ac_var in incroot usrlibdir libdir; do
7428      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7429    done
7430    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7431    for ac_extension in a so sl dylib la dll; do
7432      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7433	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7434	ac_im_usrlibdir=$ac_im_libdir; break
7435      fi
7436    done
7437    # Screen out bogus values from the imake configuration.  They are
7438    # bogus both because they are the default anyway, and because
7439    # using them would break gcc on systems where it needs fixed includes.
7440    case $ac_im_incroot in
7441	/usr/include) ac_x_includes= ;;
7442	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7443    esac
7444    case $ac_im_usrlibdir in
7445	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
7446	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7447    esac
7448  fi
7449  cd ..
7450  rm -f -r conftest.dir
7451fi
7452
7453# Standard set of common directories for X headers.
7454# Check X11 before X11Rn because it is often a symlink to the current release.
7455ac_x_header_dirs='
7456/usr/X11/include
7457/usr/X11R7/include
7458/usr/X11R6/include
7459/usr/X11R5/include
7460/usr/X11R4/include
7461
7462/usr/include/X11
7463/usr/include/X11R7
7464/usr/include/X11R6
7465/usr/include/X11R5
7466/usr/include/X11R4
7467
7468/usr/local/X11/include
7469/usr/local/X11R7/include
7470/usr/local/X11R6/include
7471/usr/local/X11R5/include
7472/usr/local/X11R4/include
7473
7474/usr/local/include/X11
7475/usr/local/include/X11R7
7476/usr/local/include/X11R6
7477/usr/local/include/X11R5
7478/usr/local/include/X11R4
7479
7480/usr/X386/include
7481/usr/x386/include
7482/usr/XFree86/include/X11
7483
7484/usr/include
7485/usr/local/include
7486/usr/unsupported/include
7487/usr/athena/include
7488/usr/local/x11r5/include
7489/usr/lpp/Xamples/include
7490
7491/usr/openwin/include
7492/usr/openwin/share/include'
7493
7494if test "$ac_x_includes" = no; then
7495  # Guess where to find include files, by looking for Xlib.h.
7496  # First, try using that file with no special directory specified.
7497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498/* end confdefs.h.  */
7499#include <X11/Xlib.h>
7500_ACEOF
7501if ac_fn_c_try_cpp "$LINENO"; then :
7502  # We can compile using X headers with no special include directory.
7503ac_x_includes=
7504else
7505  for ac_dir in $ac_x_header_dirs; do
7506  if test -r "$ac_dir/X11/Xlib.h"; then
7507    ac_x_includes=$ac_dir
7508    break
7509  fi
7510done
7511fi
7512rm -f conftest.err conftest.i conftest.$ac_ext
7513fi # $ac_x_includes = no
7514
7515if test "$ac_x_libraries" = no; then
7516  # Check for the libraries.
7517  # See if we find them without any special options.
7518  # Don't add to $LIBS permanently.
7519  ac_save_LIBS=$LIBS
7520  LIBS="-lX11 $LIBS"
7521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522/* end confdefs.h.  */
7523#include <X11/Xlib.h>
7524int
7525main ()
7526{
7527XrmInitialize ()
7528  ;
7529  return 0;
7530}
7531_ACEOF
7532if ac_fn_c_try_link "$LINENO"; then :
7533  LIBS=$ac_save_LIBS
7534# We can link X programs with no special library path.
7535ac_x_libraries=
7536else
7537  LIBS=$ac_save_LIBS
7538for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7539do
7540  # Don't even attempt the hair of trying to link an X program!
7541  for ac_extension in a so sl dylib la dll; do
7542    if test -r "$ac_dir/libX11.$ac_extension"; then
7543      ac_x_libraries=$ac_dir
7544      break 2
7545    fi
7546  done
7547done
7548fi
7549rm -f core conftest.err conftest.$ac_objext \
7550    conftest$ac_exeext conftest.$ac_ext
7551fi # $ac_x_libraries = no
7552
7553case $ac_x_includes,$ac_x_libraries in #(
7554  no,* | *,no | *\'*)
7555    # Didn't find X, or a directory has "'" in its name.
7556    ac_cv_have_x="have_x=no";; #(
7557  *)
7558    # Record where we found X for the cache.
7559    ac_cv_have_x="have_x=yes\
7560	ac_x_includes='$ac_x_includes'\
7561	ac_x_libraries='$ac_x_libraries'"
7562esac
7563fi
7564;; #(
7565    *) have_x=yes;;
7566  esac
7567  eval "$ac_cv_have_x"
7568fi # $with_x != no
7569
7570if test "$have_x" != yes; then
7571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7572$as_echo "$have_x" >&6; }
7573  no_x=yes
7574else
7575  # If each of the values was on the command line, it overrides each guess.
7576  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7577  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7578  # Update the cache value to reflect the command line values.
7579  ac_cv_have_x="have_x=yes\
7580	ac_x_includes='$x_includes'\
7581	ac_x_libraries='$x_libraries'"
7582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7583$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7584fi
7585
7586if test "$no_x" = yes; then
7587  # Not all programs may use this symbol, but it does not hurt to define it.
7588
7589$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7590
7591  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7592else
7593  if test -n "$x_includes"; then
7594    X_CFLAGS="$X_CFLAGS -I$x_includes"
7595  fi
7596
7597  # It would also be nice to do this for all -L options, not just this one.
7598  if test -n "$x_libraries"; then
7599    X_LIBS="$X_LIBS -L$x_libraries"
7600    # For Solaris; some versions of Sun CC require a space after -R and
7601    # others require no space.  Words are not sufficient . . . .
7602    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7603$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7604    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7605    ac_xsave_c_werror_flag=$ac_c_werror_flag
7606    ac_c_werror_flag=yes
7607    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h.  */
7609
7610int
7611main ()
7612{
7613
7614  ;
7615  return 0;
7616}
7617_ACEOF
7618if ac_fn_c_try_link "$LINENO"; then :
7619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620$as_echo "no" >&6; }
7621       X_LIBS="$X_LIBS -R$x_libraries"
7622else
7623  LIBS="$ac_xsave_LIBS -R $x_libraries"
7624       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625/* end confdefs.h.  */
7626
7627int
7628main ()
7629{
7630
7631  ;
7632  return 0;
7633}
7634_ACEOF
7635if ac_fn_c_try_link "$LINENO"; then :
7636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7637$as_echo "yes" >&6; }
7638	  X_LIBS="$X_LIBS -R $x_libraries"
7639else
7640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7641$as_echo "neither works" >&6; }
7642fi
7643rm -f core conftest.err conftest.$ac_objext \
7644    conftest$ac_exeext conftest.$ac_ext
7645fi
7646rm -f core conftest.err conftest.$ac_objext \
7647    conftest$ac_exeext conftest.$ac_ext
7648    ac_c_werror_flag=$ac_xsave_c_werror_flag
7649    LIBS=$ac_xsave_LIBS
7650  fi
7651
7652  # Check for system-dependent libraries X programs must link with.
7653  # Do this before checking for the system-independent R6 libraries
7654  # (-lICE), since we may need -lsocket or whatever for X linking.
7655
7656  if test "$ISC" = yes; then
7657    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7658  else
7659    # Martyn Johnson says this is needed for Ultrix, if the X
7660    # libraries were built with DECnet support.  And Karl Berry says
7661    # the Alpha needs dnet_stub (dnet does not exist).
7662    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7663    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h.  */
7665
7666/* Override any GCC internal prototype to avoid an error.
7667   Use char because int might match the return type of a GCC
7668   builtin and then its argument prototype would still apply.  */
7669#ifdef __cplusplus
7670extern "C"
7671#endif
7672char XOpenDisplay ();
7673int
7674main ()
7675{
7676return XOpenDisplay ();
7677  ;
7678  return 0;
7679}
7680_ACEOF
7681if ac_fn_c_try_link "$LINENO"; then :
7682
7683else
7684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7685$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7686if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7687  $as_echo_n "(cached) " >&6
7688else
7689  ac_check_lib_save_LIBS=$LIBS
7690LIBS="-ldnet  $LIBS"
7691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692/* end confdefs.h.  */
7693
7694/* Override any GCC internal prototype to avoid an error.
7695   Use char because int might match the return type of a GCC
7696   builtin and then its argument prototype would still apply.  */
7697#ifdef __cplusplus
7698extern "C"
7699#endif
7700char dnet_ntoa ();
7701int
7702main ()
7703{
7704return dnet_ntoa ();
7705  ;
7706  return 0;
7707}
7708_ACEOF
7709if ac_fn_c_try_link "$LINENO"; then :
7710  ac_cv_lib_dnet_dnet_ntoa=yes
7711else
7712  ac_cv_lib_dnet_dnet_ntoa=no
7713fi
7714rm -f core conftest.err conftest.$ac_objext \
7715    conftest$ac_exeext conftest.$ac_ext
7716LIBS=$ac_check_lib_save_LIBS
7717fi
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7719$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7720if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7721  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7722fi
7723
7724    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7725      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7726$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7727if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7728  $as_echo_n "(cached) " >&6
7729else
7730  ac_check_lib_save_LIBS=$LIBS
7731LIBS="-ldnet_stub  $LIBS"
7732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733/* end confdefs.h.  */
7734
7735/* Override any GCC internal prototype to avoid an error.
7736   Use char because int might match the return type of a GCC
7737   builtin and then its argument prototype would still apply.  */
7738#ifdef __cplusplus
7739extern "C"
7740#endif
7741char dnet_ntoa ();
7742int
7743main ()
7744{
7745return dnet_ntoa ();
7746  ;
7747  return 0;
7748}
7749_ACEOF
7750if ac_fn_c_try_link "$LINENO"; then :
7751  ac_cv_lib_dnet_stub_dnet_ntoa=yes
7752else
7753  ac_cv_lib_dnet_stub_dnet_ntoa=no
7754fi
7755rm -f core conftest.err conftest.$ac_objext \
7756    conftest$ac_exeext conftest.$ac_ext
7757LIBS=$ac_check_lib_save_LIBS
7758fi
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7760$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7761if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7762  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7763fi
7764
7765    fi
7766fi
7767rm -f core conftest.err conftest.$ac_objext \
7768    conftest$ac_exeext conftest.$ac_ext
7769    LIBS="$ac_xsave_LIBS"
7770
7771    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
7772    # to get the SysV transport functions.
7773    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7774    # needs -lnsl.
7775    # The nsl library prevents programs from opening the X display
7776    # on Irix 5.2, according to T.E. Dickey.
7777    # The functions gethostbyname, getservbyname, and inet_addr are
7778    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7779    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7780if test "x$ac_cv_func_gethostbyname" = xyes; then :
7781
7782fi
7783
7784    if test $ac_cv_func_gethostbyname = no; then
7785      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7786$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7787if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  ac_check_lib_save_LIBS=$LIBS
7791LIBS="-lnsl  $LIBS"
7792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793/* end confdefs.h.  */
7794
7795/* Override any GCC internal prototype to avoid an error.
7796   Use char because int might match the return type of a GCC
7797   builtin and then its argument prototype would still apply.  */
7798#ifdef __cplusplus
7799extern "C"
7800#endif
7801char gethostbyname ();
7802int
7803main ()
7804{
7805return gethostbyname ();
7806  ;
7807  return 0;
7808}
7809_ACEOF
7810if ac_fn_c_try_link "$LINENO"; then :
7811  ac_cv_lib_nsl_gethostbyname=yes
7812else
7813  ac_cv_lib_nsl_gethostbyname=no
7814fi
7815rm -f core conftest.err conftest.$ac_objext \
7816    conftest$ac_exeext conftest.$ac_ext
7817LIBS=$ac_check_lib_save_LIBS
7818fi
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7820$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7821if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7822  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7823fi
7824
7825      if test $ac_cv_lib_nsl_gethostbyname = no; then
7826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7827$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7828if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7829  $as_echo_n "(cached) " >&6
7830else
7831  ac_check_lib_save_LIBS=$LIBS
7832LIBS="-lbsd  $LIBS"
7833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834/* end confdefs.h.  */
7835
7836/* Override any GCC internal prototype to avoid an error.
7837   Use char because int might match the return type of a GCC
7838   builtin and then its argument prototype would still apply.  */
7839#ifdef __cplusplus
7840extern "C"
7841#endif
7842char gethostbyname ();
7843int
7844main ()
7845{
7846return gethostbyname ();
7847  ;
7848  return 0;
7849}
7850_ACEOF
7851if ac_fn_c_try_link "$LINENO"; then :
7852  ac_cv_lib_bsd_gethostbyname=yes
7853else
7854  ac_cv_lib_bsd_gethostbyname=no
7855fi
7856rm -f core conftest.err conftest.$ac_objext \
7857    conftest$ac_exeext conftest.$ac_ext
7858LIBS=$ac_check_lib_save_LIBS
7859fi
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7861$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7862if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7863  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7864fi
7865
7866      fi
7867    fi
7868
7869    # [email protected] says without -lsocket,
7870    # socket/setsockopt and other routines are undefined under SCO ODT
7871    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7872    # on later versions), says Simon Leinen: it contains gethostby*
7873    # variants that don't use the name server (or something).  -lsocket
7874    # must be given before -lnsl if both are needed.  We assume that
7875    # if connect needs -lnsl, so does gethostbyname.
7876    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7877if test "x$ac_cv_func_connect" = xyes; then :
7878
7879fi
7880
7881    if test $ac_cv_func_connect = no; then
7882      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7883$as_echo_n "checking for connect in -lsocket... " >&6; }
7884if ${ac_cv_lib_socket_connect+:} false; then :
7885  $as_echo_n "(cached) " >&6
7886else
7887  ac_check_lib_save_LIBS=$LIBS
7888LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h.  */
7891
7892/* Override any GCC internal prototype to avoid an error.
7893   Use char because int might match the return type of a GCC
7894   builtin and then its argument prototype would still apply.  */
7895#ifdef __cplusplus
7896extern "C"
7897#endif
7898char connect ();
7899int
7900main ()
7901{
7902return connect ();
7903  ;
7904  return 0;
7905}
7906_ACEOF
7907if ac_fn_c_try_link "$LINENO"; then :
7908  ac_cv_lib_socket_connect=yes
7909else
7910  ac_cv_lib_socket_connect=no
7911fi
7912rm -f core conftest.err conftest.$ac_objext \
7913    conftest$ac_exeext conftest.$ac_ext
7914LIBS=$ac_check_lib_save_LIBS
7915fi
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7917$as_echo "$ac_cv_lib_socket_connect" >&6; }
7918if test "x$ac_cv_lib_socket_connect" = xyes; then :
7919  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7920fi
7921
7922    fi
7923
7924    # Guillermo Gomez says -lposix is necessary on A/UX.
7925    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7926if test "x$ac_cv_func_remove" = xyes; then :
7927
7928fi
7929
7930    if test $ac_cv_func_remove = no; then
7931      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7932$as_echo_n "checking for remove in -lposix... " >&6; }
7933if ${ac_cv_lib_posix_remove+:} false; then :
7934  $as_echo_n "(cached) " >&6
7935else
7936  ac_check_lib_save_LIBS=$LIBS
7937LIBS="-lposix  $LIBS"
7938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939/* end confdefs.h.  */
7940
7941/* Override any GCC internal prototype to avoid an error.
7942   Use char because int might match the return type of a GCC
7943   builtin and then its argument prototype would still apply.  */
7944#ifdef __cplusplus
7945extern "C"
7946#endif
7947char remove ();
7948int
7949main ()
7950{
7951return remove ();
7952  ;
7953  return 0;
7954}
7955_ACEOF
7956if ac_fn_c_try_link "$LINENO"; then :
7957  ac_cv_lib_posix_remove=yes
7958else
7959  ac_cv_lib_posix_remove=no
7960fi
7961rm -f core conftest.err conftest.$ac_objext \
7962    conftest$ac_exeext conftest.$ac_ext
7963LIBS=$ac_check_lib_save_LIBS
7964fi
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7966$as_echo "$ac_cv_lib_posix_remove" >&6; }
7967if test "x$ac_cv_lib_posix_remove" = xyes; then :
7968  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7969fi
7970
7971    fi
7972
7973    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7974    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7975if test "x$ac_cv_func_shmat" = xyes; then :
7976
7977fi
7978
7979    if test $ac_cv_func_shmat = no; then
7980      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7981$as_echo_n "checking for shmat in -lipc... " >&6; }
7982if ${ac_cv_lib_ipc_shmat+:} false; then :
7983  $as_echo_n "(cached) " >&6
7984else
7985  ac_check_lib_save_LIBS=$LIBS
7986LIBS="-lipc  $LIBS"
7987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988/* end confdefs.h.  */
7989
7990/* Override any GCC internal prototype to avoid an error.
7991   Use char because int might match the return type of a GCC
7992   builtin and then its argument prototype would still apply.  */
7993#ifdef __cplusplus
7994extern "C"
7995#endif
7996char shmat ();
7997int
7998main ()
7999{
8000return shmat ();
8001  ;
8002  return 0;
8003}
8004_ACEOF
8005if ac_fn_c_try_link "$LINENO"; then :
8006  ac_cv_lib_ipc_shmat=yes
8007else
8008  ac_cv_lib_ipc_shmat=no
8009fi
8010rm -f core conftest.err conftest.$ac_objext \
8011    conftest$ac_exeext conftest.$ac_ext
8012LIBS=$ac_check_lib_save_LIBS
8013fi
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8015$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8016if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8017  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8018fi
8019
8020    fi
8021  fi
8022
8023  # Check for libraries that X11R6 Xt/Xaw programs need.
8024  ac_save_LDFLAGS=$LDFLAGS
8025  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8026  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8027  # check for ICE first), but we must link in the order -lSM -lICE or
8028  # we get undefined symbols.  So assume we have SM if we have ICE.
8029  # These have to be linked with before -lX11, unlike the other
8030  # libraries we check for below, so use a different variable.
8031  # John Interrante, Karl Berry
8032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8033$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8034if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8035  $as_echo_n "(cached) " >&6
8036else
8037  ac_check_lib_save_LIBS=$LIBS
8038LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040/* end confdefs.h.  */
8041
8042/* Override any GCC internal prototype to avoid an error.
8043   Use char because int might match the return type of a GCC
8044   builtin and then its argument prototype would still apply.  */
8045#ifdef __cplusplus
8046extern "C"
8047#endif
8048char IceConnectionNumber ();
8049int
8050main ()
8051{
8052return IceConnectionNumber ();
8053  ;
8054  return 0;
8055}
8056_ACEOF
8057if ac_fn_c_try_link "$LINENO"; then :
8058  ac_cv_lib_ICE_IceConnectionNumber=yes
8059else
8060  ac_cv_lib_ICE_IceConnectionNumber=no
8061fi
8062rm -f core conftest.err conftest.$ac_objext \
8063    conftest$ac_exeext conftest.$ac_ext
8064LIBS=$ac_check_lib_save_LIBS
8065fi
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8067$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8068if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8069  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8070fi
8071
8072  LDFLAGS=$ac_save_LDFLAGS
8073
8074fi
8075
8076
8077        if test "$zOSUnix" = "yes"; then
8078    CFLAGS="$CFLAGS -W c,dll"
8079    LDFLAGS="$LDFLAGS -W l,dll"
8080    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8081  fi
8082
8083
8084  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8085    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8086    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8087$as_echo "Corrected X libraries to $x_libraries" >&6; }
8088    X_LIBS="$X_LIBS -L$x_libraries"
8089    if test "`(uname) 2>/dev/null`" = SunOS &&
8090					 uname -r | grep '^5' >/dev/null; then
8091      X_LIBS="$X_LIBS -R $x_libraries"
8092    fi
8093  fi
8094
8095  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8096    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8098$as_echo "Corrected X includes to $x_includes" >&6; }
8099    X_CFLAGS="$X_CFLAGS -I$x_includes"
8100  fi
8101
8102    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8103    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8104    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8105
8106
8107        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8108$as_echo_n "checking if X11 header files can be found... " >&6; }
8109  cflags_save=$CFLAGS
8110  CFLAGS="$CFLAGS $X_CFLAGS"
8111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112/* end confdefs.h.  */
8113#include <X11/Xlib.h>
8114#include <X11/Intrinsic.h>
8115int
8116main ()
8117{
8118
8119  ;
8120  return 0;
8121}
8122_ACEOF
8123if ac_fn_c_try_compile "$LINENO"; then :
8124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8125$as_echo "yes" >&6; }
8126else
8127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128$as_echo "no" >&6; }; no_x=yes
8129fi
8130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131  CFLAGS=$cflags_save
8132
8133  if test "${no_x-no}" = yes; then
8134    with_x=no
8135  else
8136    $as_echo "#define HAVE_X11 1" >>confdefs.h
8137
8138    X_LIB="-lXt -lX11";
8139
8140
8141    ac_save_LDFLAGS="$LDFLAGS"
8142    LDFLAGS="-L$x_libraries $LDFLAGS"
8143
8144            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8145$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8146if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8147  $as_echo_n "(cached) " >&6
8148else
8149  ac_check_lib_save_LIBS=$LIBS
8150LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152/* end confdefs.h.  */
8153
8154/* Override any GCC internal prototype to avoid an error.
8155   Use char because int might match the return type of a GCC
8156   builtin and then its argument prototype would still apply.  */
8157#ifdef __cplusplus
8158extern "C"
8159#endif
8160char _XdmcpAuthDoIt ();
8161int
8162main ()
8163{
8164return _XdmcpAuthDoIt ();
8165  ;
8166  return 0;
8167}
8168_ACEOF
8169if ac_fn_c_try_link "$LINENO"; then :
8170  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8171else
8172  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8173fi
8174rm -f core conftest.err conftest.$ac_objext \
8175    conftest$ac_exeext conftest.$ac_ext
8176LIBS=$ac_check_lib_save_LIBS
8177fi
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8179$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8180if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8181  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8182fi
8183
8184
8185                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8186$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8187if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8188  $as_echo_n "(cached) " >&6
8189else
8190  ac_check_lib_save_LIBS=$LIBS
8191LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193/* end confdefs.h.  */
8194
8195/* Override any GCC internal prototype to avoid an error.
8196   Use char because int might match the return type of a GCC
8197   builtin and then its argument prototype would still apply.  */
8198#ifdef __cplusplus
8199extern "C"
8200#endif
8201char IceOpenConnection ();
8202int
8203main ()
8204{
8205return IceOpenConnection ();
8206  ;
8207  return 0;
8208}
8209_ACEOF
8210if ac_fn_c_try_link "$LINENO"; then :
8211  ac_cv_lib_ICE_IceOpenConnection=yes
8212else
8213  ac_cv_lib_ICE_IceOpenConnection=no
8214fi
8215rm -f core conftest.err conftest.$ac_objext \
8216    conftest$ac_exeext conftest.$ac_ext
8217LIBS=$ac_check_lib_save_LIBS
8218fi
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8220$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8221if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8222  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8223fi
8224
8225
8226        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8228$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8229if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8230  $as_echo_n "(cached) " >&6
8231else
8232  ac_check_lib_save_LIBS=$LIBS
8233LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h.  */
8236
8237/* Override any GCC internal prototype to avoid an error.
8238   Use char because int might match the return type of a GCC
8239   builtin and then its argument prototype would still apply.  */
8240#ifdef __cplusplus
8241extern "C"
8242#endif
8243char XpmCreatePixmapFromData ();
8244int
8245main ()
8246{
8247return XpmCreatePixmapFromData ();
8248  ;
8249  return 0;
8250}
8251_ACEOF
8252if ac_fn_c_try_link "$LINENO"; then :
8253  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8254else
8255  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8256fi
8257rm -f core conftest.err conftest.$ac_objext \
8258    conftest$ac_exeext conftest.$ac_ext
8259LIBS=$ac_check_lib_save_LIBS
8260fi
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8262$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8263if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8264  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8265fi
8266
8267
8268        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8269$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8270    cflags_save=$CFLAGS
8271        if test "$GCC" = yes; then
8272      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8273    else
8274      CFLAGS="$CFLAGS $X_CFLAGS"
8275    fi
8276    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h.  */
8278#include <X11/Xlib.h>
8279int
8280main ()
8281{
8282
8283  ;
8284  return 0;
8285}
8286_ACEOF
8287if ac_fn_c_try_compile "$LINENO"; then :
8288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289$as_echo "no" >&6; }
8290else
8291  CFLAGS="$CFLAGS -Wno-implicit-int"
8292	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293/* end confdefs.h.  */
8294#include <X11/Xlib.h>
8295int
8296main ()
8297{
8298
8299  ;
8300  return 0;
8301}
8302_ACEOF
8303if ac_fn_c_try_compile "$LINENO"; then :
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8305$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8306else
8307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
8308$as_echo "test failed" >&6; }
8309
8310fi
8311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312
8313fi
8314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315    CFLAGS=$cflags_save
8316
8317    LDFLAGS="$ac_save_LDFLAGS"
8318
8319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
8320$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8321    if ${ac_cv_small_wchar_t+:} false; then :
8322  $as_echo_n "(cached) " >&6
8323else
8324  if test "$cross_compiling" = yes; then :
8325  as_fn_error $? "failed to compile test program" "$LINENO" 5
8326else
8327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328/* end confdefs.h.  */
8329
8330#include <X11/Xlib.h>
8331#if STDC_HEADERS
8332# include <stdlib.h>
8333# include <stddef.h>
8334#endif
8335		main()
8336		{
8337		  if (sizeof(wchar_t) <= 2)
8338		    exit(1);
8339		  exit(0);
8340		}
8341_ACEOF
8342if ac_fn_c_try_run "$LINENO"; then :
8343  ac_cv_small_wchar_t="no"
8344else
8345  ac_cv_small_wchar_t="yes"
8346fi
8347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8348  conftest.$ac_objext conftest.beam conftest.$ac_ext
8349fi
8350
8351fi
8352
8353    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
8354$as_echo "$ac_cv_small_wchar_t" >&6; }
8355    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8356      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
8357
8358    fi
8359
8360  fi
8361fi
8362
8363test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8364
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
8366$as_echo_n "checking --enable-gui argument... " >&6; }
8367# Check whether --enable-gui was given.
8368if test "${enable_gui+set}" = set; then :
8369  enableval=$enable_gui;
8370else
8371  enable_gui="auto"
8372fi
8373
8374
8375enable_gui_canon=`echo "_$enable_gui" | \
8376	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8377
8378SKIP_GTK2=YES
8379SKIP_GNOME=YES
8380SKIP_MOTIF=YES
8381SKIP_ATHENA=YES
8382SKIP_NEXTAW=YES
8383SKIP_PHOTON=YES
8384SKIP_CARBON=YES
8385GUITYPE=NONE
8386
8387if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8388  SKIP_PHOTON=
8389  case "$enable_gui_canon" in
8390    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8391$as_echo "no GUI support" >&6; }
8392		SKIP_PHOTON=YES ;;
8393    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8394$as_echo "yes - automatic GUI support" >&6; } ;;
8395    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
8396$as_echo "auto - automatic GUI support" >&6; } ;;
8397    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
8398$as_echo "Photon GUI support" >&6; } ;;
8399    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8400$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8401		SKIP_PHOTON=YES ;;
8402  esac
8403
8404elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8405  SKIP_CARBON=
8406  case "$enable_gui_canon" in
8407    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8408$as_echo "no GUI support" >&6; }
8409		SKIP_CARBON=YES ;;
8410    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8411$as_echo "yes - automatic GUI support" >&6; } ;;
8412    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
8413$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
8414		SKIP_CARBON=YES ;;
8415    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
8416$as_echo "Carbon GUI support" >&6; } ;;
8417    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8418$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8419		SKIP_CARBON=YES ;;
8420  esac
8421
8422else
8423
8424  case "$enable_gui_canon" in
8425    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8426$as_echo "no GUI support" >&6; } ;;
8427    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
8428$as_echo "yes/auto - automatic GUI support" >&6; }
8429		SKIP_GTK2=
8430		SKIP_GNOME=
8431		SKIP_MOTIF=
8432		SKIP_ATHENA=
8433		SKIP_NEXTAW=
8434		SKIP_CARBON=;;
8435    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
8436$as_echo "GTK+ 2.x GUI support" >&6; }
8437		SKIP_GTK2=;;
8438    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
8439$as_echo "GNOME 2.x GUI support" >&6; }
8440		SKIP_GNOME=
8441		SKIP_GTK2=;;
8442    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
8443$as_echo "Motif GUI support" >&6; }
8444		SKIP_MOTIF=;;
8445    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
8446$as_echo "Athena GUI support" >&6; }
8447		SKIP_ATHENA=;;
8448    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
8449$as_echo "neXtaw GUI support" >&6; }
8450		SKIP_NEXTAW=;;
8451    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8452$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8453  esac
8454
8455fi
8456
8457if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8458				-a "$enable_gui_canon" != "gnome2"; then
8459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
8460$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8461  # Check whether --enable-gtk2-check was given.
8462if test "${enable_gtk2_check+set}" = set; then :
8463  enableval=$enable_gtk2_check;
8464else
8465  enable_gtk2_check="yes"
8466fi
8467
8468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
8469$as_echo "$enable_gtk2_check" >&6; }
8470  if test "x$enable_gtk2_check" = "xno"; then
8471    SKIP_GTK2=YES
8472    SKIP_GNOME=YES
8473  fi
8474fi
8475
8476if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
8477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
8478$as_echo_n "checking whether or not to look for GNOME... " >&6; }
8479  # Check whether --enable-gnome-check was given.
8480if test "${enable_gnome_check+set}" = set; then :
8481  enableval=$enable_gnome_check;
8482else
8483  enable_gnome_check="no"
8484fi
8485
8486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
8487$as_echo "$enable_gnome_check" >&6; }
8488  if test "x$enable_gnome_check" = "xno"; then
8489    SKIP_GNOME=YES
8490  fi
8491fi
8492
8493if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
8495$as_echo_n "checking whether or not to look for Motif... " >&6; }
8496  # Check whether --enable-motif-check was given.
8497if test "${enable_motif_check+set}" = set; then :
8498  enableval=$enable_motif_check;
8499else
8500  enable_motif_check="yes"
8501fi
8502
8503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
8504$as_echo "$enable_motif_check" >&6; }
8505  if test "x$enable_motif_check" = "xno"; then
8506    SKIP_MOTIF=YES
8507  fi
8508fi
8509
8510if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
8512$as_echo_n "checking whether or not to look for Athena... " >&6; }
8513  # Check whether --enable-athena-check was given.
8514if test "${enable_athena_check+set}" = set; then :
8515  enableval=$enable_athena_check;
8516else
8517  enable_athena_check="yes"
8518fi
8519
8520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
8521$as_echo "$enable_athena_check" >&6; }
8522  if test "x$enable_athena_check" = "xno"; then
8523    SKIP_ATHENA=YES
8524  fi
8525fi
8526
8527if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
8529$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8530  # Check whether --enable-nextaw-check was given.
8531if test "${enable_nextaw_check+set}" = set; then :
8532  enableval=$enable_nextaw_check;
8533else
8534  enable_nextaw_check="yes"
8535fi
8536
8537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
8538$as_echo "$enable_nextaw_check" >&6; };
8539  if test "x$enable_nextaw_check" = "xno"; then
8540    SKIP_NEXTAW=YES
8541  fi
8542fi
8543
8544if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
8546$as_echo_n "checking whether or not to look for Carbon... " >&6; }
8547  # Check whether --enable-carbon-check was given.
8548if test "${enable_carbon_check+set}" = set; then :
8549  enableval=$enable_carbon_check;
8550else
8551  enable_carbon_check="yes"
8552fi
8553
8554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
8555$as_echo "$enable_carbon_check" >&6; };
8556  if test "x$enable_carbon_check" = "xno"; then
8557    SKIP_CARBON=YES
8558  fi
8559fi
8560
8561
8562if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
8564$as_echo_n "checking for Carbon GUI... " >&6; }
8565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8566$as_echo "yes" >&6; };
8567  GUITYPE=CARBONGUI
8568  if test "$VIMNAME" = "vim"; then
8569    VIMNAME=Vim
8570  fi
8571
8572  if test "x$MACARCH" = "xboth"; then
8573    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
8574  else
8575    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
8576  fi
8577
8578    if test x$prefix = xNONE; then
8579    prefix=/Applications
8580  fi
8581
8582    datadir='${prefix}/Vim.app/Contents/Resources'
8583
8584    SKIP_GTK2=YES;
8585  SKIP_GNOME=YES;
8586  SKIP_MOTIF=YES;
8587  SKIP_ATHENA=YES;
8588  SKIP_NEXTAW=YES;
8589  SKIP_PHOTON=YES;
8590  SKIP_CARBON=YES
8591fi
8592
8593
8594
8595
8596
8597
8598
8599
8600if test -z "$SKIP_GTK2"; then
8601
8602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
8603$as_echo_n "checking --disable-gtktest argument... " >&6; }
8604  # Check whether --enable-gtktest was given.
8605if test "${enable_gtktest+set}" = set; then :
8606  enableval=$enable_gtktest;
8607else
8608  enable_gtktest=yes
8609fi
8610
8611  if test "x$enable_gtktest" = "xyes" ; then
8612    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
8613$as_echo "gtk test enabled" >&6; }
8614  else
8615    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
8616$as_echo "gtk test disabled" >&6; }
8617  fi
8618
8619  if test "X$PKG_CONFIG" = "X"; then
8620    # Extract the first word of "pkg-config", so it can be a program name with args.
8621set dummy pkg-config; ac_word=$2
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623$as_echo_n "checking for $ac_word... " >&6; }
8624if ${ac_cv_path_PKG_CONFIG+:} false; then :
8625  $as_echo_n "(cached) " >&6
8626else
8627  case $PKG_CONFIG in
8628  [\\/]* | ?:[\\/]*)
8629  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8630  ;;
8631  *)
8632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633for as_dir in $PATH
8634do
8635  IFS=$as_save_IFS
8636  test -z "$as_dir" && as_dir=.
8637    for ac_exec_ext in '' $ac_executable_extensions; do
8638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8639    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8641    break 2
8642  fi
8643done
8644  done
8645IFS=$as_save_IFS
8646
8647  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8648  ;;
8649esac
8650fi
8651PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8652if test -n "$PKG_CONFIG"; then
8653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8654$as_echo "$PKG_CONFIG" >&6; }
8655else
8656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657$as_echo "no" >&6; }
8658fi
8659
8660
8661  fi
8662
8663  if test "x$PKG_CONFIG" != "xno"; then
8664
8665  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8666  {
8667    min_gtk_version=2.2.0
8668    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
8669$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8670    no_gtk=""
8671    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8672	  && $PKG_CONFIG --exists gtk+-2.0; then
8673    {
8674                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8675      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8676      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8677      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8678	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8679      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8680	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8681      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8682	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8683    }
8684    else
8685      no_gtk=yes
8686    fi
8687
8688    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8689    {
8690      ac_save_CFLAGS="$CFLAGS"
8691      ac_save_LIBS="$LIBS"
8692      CFLAGS="$CFLAGS $GTK_CFLAGS"
8693      LIBS="$LIBS $GTK_LIBS"
8694
8695                        rm -f conf.gtktest
8696      if test "$cross_compiling" = yes; then :
8697  echo $ac_n "cross compiling; assumed OK... $ac_c"
8698else
8699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700/* end confdefs.h.  */
8701
8702#include <gtk/gtk.h>
8703#include <stdio.h>
8704#if STDC_HEADERS
8705# include <stdlib.h>
8706# include <stddef.h>
8707#endif
8708
8709int
8710main ()
8711{
8712int major, minor, micro;
8713char *tmp_version;
8714
8715system ("touch conf.gtktest");
8716
8717/* HP/UX 9 (%@#!) writes to sscanf strings */
8718tmp_version = g_strdup("$min_gtk_version");
8719if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8720   printf("%s, bad version string\n", "$min_gtk_version");
8721   exit(1);
8722 }
8723
8724if ((gtk_major_version > major) ||
8725    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8726    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8727				     (gtk_micro_version >= micro)))
8728{
8729    return 0;
8730}
8731return 1;
8732}
8733
8734_ACEOF
8735if ac_fn_c_try_run "$LINENO"; then :
8736
8737else
8738  no_gtk=yes
8739fi
8740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8741  conftest.$ac_objext conftest.beam conftest.$ac_ext
8742fi
8743
8744      CFLAGS="$ac_save_CFLAGS"
8745      LIBS="$ac_save_LIBS"
8746    }
8747    fi
8748    if test "x$no_gtk" = x ; then
8749      if test "x$enable_gtktest" = "xyes"; then
8750	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8751$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8752      else
8753	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8754$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8755      fi
8756      GUI_LIB_LOC="$GTK_LIBDIR"
8757		 GTK_LIBNAME="$GTK_LIBS"
8758		GUI_INC_LOC="$GTK_CFLAGS"
8759    else
8760    {
8761      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762$as_echo "no" >&6; }
8763      GTK_CFLAGS=""
8764      GTK_LIBS=""
8765      :
8766    }
8767    fi
8768  }
8769  else
8770    GTK_CFLAGS=""
8771    GTK_LIBS=""
8772    :
8773  fi
8774
8775
8776  rm -f conf.gtktest
8777
8778    if test "x$GTK_CFLAGS" != "x"; then
8779      SKIP_ATHENA=YES
8780      SKIP_NEXTAW=YES
8781      SKIP_MOTIF=YES
8782      GUITYPE=GTK
8783
8784    fi
8785  fi
8786  if test "x$GUITYPE" = "xGTK"; then
8787    if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8788	|| test "0$gtk_minor_version" -ge 2; then
8789      $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h
8790
8791    fi
8792                if test -z "$SKIP_GNOME"; then
8793    {
8794
8795
8796
8797
8798
8799
8800# Check whether --with-gnome-includes was given.
8801if test "${with_gnome_includes+set}" = set; then :
8802  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8803
8804fi
8805
8806
8807
8808# Check whether --with-gnome-libs was given.
8809if test "${with_gnome_libs+set}" = set; then :
8810  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8811
8812fi
8813
8814
8815
8816# Check whether --with-gnome was given.
8817if test "${with_gnome+set}" = set; then :
8818  withval=$with_gnome; if test x$withval = xyes; then
8819      want_gnome=yes
8820      have_gnome=yes
8821    else
8822      if test "x$withval" = xno; then
8823	want_gnome=no
8824      else
8825	want_gnome=yes
8826	LDFLAGS="$LDFLAGS -L$withval/lib"
8827	CFLAGS="$CFLAGS -I$withval/include"
8828	gnome_prefix=$withval/lib
8829      fi
8830    fi
8831else
8832  want_gnome=yes
8833fi
8834
8835
8836  if test "x$want_gnome" = xyes; then
8837  {
8838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
8839$as_echo_n "checking for libgnomeui-2.0... " >&6; }
8840    if $PKG_CONFIG --exists libgnomeui-2.0; then
8841      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8842$as_echo "yes" >&6; }
8843      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8844      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8845      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8846
8847                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
8848$as_echo_n "checking for FreeBSD... " >&6; }
8849      if test "`(uname) 2>/dev/null`" = FreeBSD; then
8850	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8851$as_echo "yes" >&6; }
8852	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8853	GNOME_LIBS="$GNOME_LIBS -pthread"
8854      else
8855	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856$as_echo "no" >&6; }
8857      fi
8858      have_gnome=yes
8859    else
8860      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8861$as_echo "not found" >&6; }
8862      if test "x" = xfail; then
8863	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
8864      fi
8865    fi
8866  }
8867  fi
8868
8869      if test "x$have_gnome" = xyes ; then
8870	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
8871
8872	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8873	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8874      fi
8875    }
8876    fi
8877  fi
8878fi
8879
8880
8881if test -z "$SKIP_MOTIF"; then
8882  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"
8883    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8884
8885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
8886$as_echo_n "checking for location of Motif GUI includes... " >&6; }
8887  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8888  GUI_INC_LOC=
8889  for try in $gui_includes; do
8890    if test -f "$try/Xm/Xm.h"; then
8891      GUI_INC_LOC=$try
8892    fi
8893  done
8894  if test -n "$GUI_INC_LOC"; then
8895    if test "$GUI_INC_LOC" = /usr/include; then
8896      GUI_INC_LOC=
8897      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
8898$as_echo "in default path" >&6; }
8899    else
8900      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
8901$as_echo "$GUI_INC_LOC" >&6; }
8902    fi
8903  else
8904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
8905$as_echo "<not found>" >&6; }
8906    SKIP_MOTIF=YES
8907  fi
8908fi
8909
8910
8911if test -z "$SKIP_MOTIF"; then
8912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
8913$as_echo_n "checking --with-motif-lib argument... " >&6; }
8914
8915# Check whether --with-motif-lib was given.
8916if test "${with_motif_lib+set}" = set; then :
8917  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
8918fi
8919
8920
8921  if test -n "$MOTIF_LIBNAME"; then
8922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
8923$as_echo "$MOTIF_LIBNAME" >&6; }
8924    GUI_LIB_LOC=
8925  else
8926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927$as_echo "no" >&6; }
8928
8929        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8930
8931            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
8932$as_echo_n "checking for location of Motif GUI libs... " >&6; }
8933    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"
8934    GUI_LIB_LOC=
8935    for try in $gui_libs; do
8936      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
8937	if test -f "$libtry"; then
8938	  GUI_LIB_LOC=$try
8939	fi
8940      done
8941    done
8942    if test -n "$GUI_LIB_LOC"; then
8943            if test "$GUI_LIB_LOC" = /usr/lib \
8944	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
8945	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
8946	GUI_LIB_LOC=
8947	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
8948$as_echo "in default path" >&6; }
8949      else
8950	if test -n "$GUI_LIB_LOC"; then
8951	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
8952$as_echo "$GUI_LIB_LOC" >&6; }
8953	  if test "`(uname) 2>/dev/null`" = SunOS &&
8954					 uname -r | grep '^5' >/dev/null; then
8955	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8956	  fi
8957	fi
8958      fi
8959      MOTIF_LIBNAME=-lXm
8960    else
8961      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
8962$as_echo "<not found>" >&6; }
8963      SKIP_MOTIF=YES
8964    fi
8965  fi
8966fi
8967
8968if test -z "$SKIP_MOTIF"; then
8969  SKIP_ATHENA=YES
8970  SKIP_NEXTAW=YES
8971  GUITYPE=MOTIF
8972
8973fi
8974
8975
8976GUI_X_LIBS=
8977
8978if test -z "$SKIP_ATHENA"; then
8979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
8980$as_echo_n "checking if Athena header files can be found... " >&6; }
8981  cflags_save=$CFLAGS
8982  CFLAGS="$CFLAGS $X_CFLAGS"
8983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984/* end confdefs.h.  */
8985
8986#include <X11/Intrinsic.h>
8987#include <X11/Xaw/Paned.h>
8988int
8989main ()
8990{
8991
8992  ;
8993  return 0;
8994}
8995_ACEOF
8996if ac_fn_c_try_compile "$LINENO"; then :
8997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8998$as_echo "yes" >&6; }
8999else
9000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001$as_echo "no" >&6; }; SKIP_ATHENA=YES
9002fi
9003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004  CFLAGS=$cflags_save
9005fi
9006
9007if test -z "$SKIP_ATHENA"; then
9008  GUITYPE=ATHENA
9009fi
9010
9011if test -z "$SKIP_NEXTAW"; then
9012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
9013$as_echo_n "checking if neXtaw header files can be found... " >&6; }
9014  cflags_save=$CFLAGS
9015  CFLAGS="$CFLAGS $X_CFLAGS"
9016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017/* end confdefs.h.  */
9018
9019#include <X11/Intrinsic.h>
9020#include <X11/neXtaw/Paned.h>
9021int
9022main ()
9023{
9024
9025  ;
9026  return 0;
9027}
9028_ACEOF
9029if ac_fn_c_try_compile "$LINENO"; then :
9030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9031$as_echo "yes" >&6; }
9032else
9033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034$as_echo "no" >&6; }; SKIP_NEXTAW=YES
9035fi
9036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037  CFLAGS=$cflags_save
9038fi
9039
9040if test -z "$SKIP_NEXTAW"; then
9041  GUITYPE=NEXTAW
9042fi
9043
9044if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9045      if test -n "$GUI_INC_LOC"; then
9046    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9047  fi
9048  if test -n "$GUI_LIB_LOC"; then
9049    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9050  fi
9051
9052    ldflags_save=$LDFLAGS
9053  LDFLAGS="$X_LIBS $LDFLAGS"
9054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9055$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9056if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9057  $as_echo_n "(cached) " >&6
9058else
9059  ac_check_lib_save_LIBS=$LIBS
9060LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062/* end confdefs.h.  */
9063
9064/* Override any GCC internal prototype to avoid an error.
9065   Use char because int might match the return type of a GCC
9066   builtin and then its argument prototype would still apply.  */
9067#ifdef __cplusplus
9068extern "C"
9069#endif
9070char XShapeQueryExtension ();
9071int
9072main ()
9073{
9074return XShapeQueryExtension ();
9075  ;
9076  return 0;
9077}
9078_ACEOF
9079if ac_fn_c_try_link "$LINENO"; then :
9080  ac_cv_lib_Xext_XShapeQueryExtension=yes
9081else
9082  ac_cv_lib_Xext_XShapeQueryExtension=no
9083fi
9084rm -f core conftest.err conftest.$ac_objext \
9085    conftest$ac_exeext conftest.$ac_ext
9086LIBS=$ac_check_lib_save_LIBS
9087fi
9088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9089$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9090if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9091  GUI_X_LIBS="-lXext"
9092fi
9093
9094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
9095$as_echo_n "checking for wslen in -lw... " >&6; }
9096if ${ac_cv_lib_w_wslen+:} false; then :
9097  $as_echo_n "(cached) " >&6
9098else
9099  ac_check_lib_save_LIBS=$LIBS
9100LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102/* end confdefs.h.  */
9103
9104/* Override any GCC internal prototype to avoid an error.
9105   Use char because int might match the return type of a GCC
9106   builtin and then its argument prototype would still apply.  */
9107#ifdef __cplusplus
9108extern "C"
9109#endif
9110char wslen ();
9111int
9112main ()
9113{
9114return wslen ();
9115  ;
9116  return 0;
9117}
9118_ACEOF
9119if ac_fn_c_try_link "$LINENO"; then :
9120  ac_cv_lib_w_wslen=yes
9121else
9122  ac_cv_lib_w_wslen=no
9123fi
9124rm -f core conftest.err conftest.$ac_objext \
9125    conftest$ac_exeext conftest.$ac_ext
9126LIBS=$ac_check_lib_save_LIBS
9127fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
9129$as_echo "$ac_cv_lib_w_wslen" >&6; }
9130if test "x$ac_cv_lib_w_wslen" = xyes; then :
9131  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9132fi
9133
9134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
9135$as_echo_n "checking for dlsym in -ldl... " >&6; }
9136if ${ac_cv_lib_dl_dlsym+:} false; then :
9137  $as_echo_n "(cached) " >&6
9138else
9139  ac_check_lib_save_LIBS=$LIBS
9140LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142/* end confdefs.h.  */
9143
9144/* Override any GCC internal prototype to avoid an error.
9145   Use char because int might match the return type of a GCC
9146   builtin and then its argument prototype would still apply.  */
9147#ifdef __cplusplus
9148extern "C"
9149#endif
9150char dlsym ();
9151int
9152main ()
9153{
9154return dlsym ();
9155  ;
9156  return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_link "$LINENO"; then :
9160  ac_cv_lib_dl_dlsym=yes
9161else
9162  ac_cv_lib_dl_dlsym=no
9163fi
9164rm -f core conftest.err conftest.$ac_objext \
9165    conftest$ac_exeext conftest.$ac_ext
9166LIBS=$ac_check_lib_save_LIBS
9167fi
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
9169$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9170if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
9171  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9172fi
9173
9174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
9175$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9176if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
9177  $as_echo_n "(cached) " >&6
9178else
9179  ac_check_lib_save_LIBS=$LIBS
9180LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182/* end confdefs.h.  */
9183
9184/* Override any GCC internal prototype to avoid an error.
9185   Use char because int might match the return type of a GCC
9186   builtin and then its argument prototype would still apply.  */
9187#ifdef __cplusplus
9188extern "C"
9189#endif
9190char XmuCreateStippledPixmap ();
9191int
9192main ()
9193{
9194return XmuCreateStippledPixmap ();
9195  ;
9196  return 0;
9197}
9198_ACEOF
9199if ac_fn_c_try_link "$LINENO"; then :
9200  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9201else
9202  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9203fi
9204rm -f core conftest.err conftest.$ac_objext \
9205    conftest$ac_exeext conftest.$ac_ext
9206LIBS=$ac_check_lib_save_LIBS
9207fi
9208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9209$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9210if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
9211  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9212fi
9213
9214  if test -z "$SKIP_MOTIF"; then
9215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
9216$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9217if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
9218  $as_echo_n "(cached) " >&6
9219else
9220  ac_check_lib_save_LIBS=$LIBS
9221LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223/* end confdefs.h.  */
9224
9225/* Override any GCC internal prototype to avoid an error.
9226   Use char because int might match the return type of a GCC
9227   builtin and then its argument prototype would still apply.  */
9228#ifdef __cplusplus
9229extern "C"
9230#endif
9231char XpEndJob ();
9232int
9233main ()
9234{
9235return XpEndJob ();
9236  ;
9237  return 0;
9238}
9239_ACEOF
9240if ac_fn_c_try_link "$LINENO"; then :
9241  ac_cv_lib_Xp_XpEndJob=yes
9242else
9243  ac_cv_lib_Xp_XpEndJob=no
9244fi
9245rm -f core conftest.err conftest.$ac_objext \
9246    conftest$ac_exeext conftest.$ac_ext
9247LIBS=$ac_check_lib_save_LIBS
9248fi
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
9250$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9251if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
9252  GUI_X_LIBS="-lXp $GUI_X_LIBS"
9253fi
9254
9255  fi
9256  LDFLAGS=$ldflags_save
9257
9258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
9259$as_echo_n "checking for extra X11 defines... " >&6; }
9260  NARROW_PROTO=
9261  rm -fr conftestdir
9262  if mkdir conftestdir; then
9263    cd conftestdir
9264    cat > Imakefile <<'EOF'
9265acfindx:
9266	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9267EOF
9268    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9269      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9270    fi
9271    cd ..
9272    rm -fr conftestdir
9273  fi
9274  if test -z "$NARROW_PROTO"; then
9275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276$as_echo "no" >&6; }
9277  else
9278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
9279$as_echo "$NARROW_PROTO" >&6; }
9280  fi
9281
9282fi
9283
9284if test "$enable_xsmp" = "yes"; then
9285  cppflags_save=$CPPFLAGS
9286  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9287  for ac_header in X11/SM/SMlib.h
9288do :
9289  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
9290if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
9291  cat >>confdefs.h <<_ACEOF
9292#define HAVE_X11_SM_SMLIB_H 1
9293_ACEOF
9294
9295fi
9296
9297done
9298
9299  CPPFLAGS=$cppflags_save
9300fi
9301
9302
9303if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2"; then
9304    cppflags_save=$CPPFLAGS
9305  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9306  for ac_header in X11/xpm.h X11/Sunkeysym.h
9307do :
9308  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9309ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9310if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9311  cat >>confdefs.h <<_ACEOF
9312#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9313_ACEOF
9314
9315fi
9316
9317done
9318
9319
9320    if test ! "$enable_xim" = "no"; then
9321    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
9322$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9323    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324/* end confdefs.h.  */
9325#include <X11/Xlib.h>
9326_ACEOF
9327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9328  $EGREP "XIMText" >/dev/null 2>&1; then :
9329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9330$as_echo "yes" >&6; }
9331else
9332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
9333$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
9334fi
9335rm -f conftest*
9336
9337  fi
9338  CPPFLAGS=$cppflags_save
9339
9340    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9341		-a "x$GUITYPE" != "xNONE" ; then
9342    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
9343$as_echo "X GUI selected; xim has been enabled" >&6; }
9344    enable_xim="yes"
9345  fi
9346fi
9347
9348if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9349  cppflags_save=$CPPFLAGS
9350  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
9352$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
9353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h.  */
9355
9356#include <X11/Intrinsic.h>
9357#include <X11/Xmu/Editres.h>
9358int
9359main ()
9360{
9361int i; i = 0;
9362  ;
9363  return 0;
9364}
9365_ACEOF
9366if ac_fn_c_try_compile "$LINENO"; then :
9367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9368$as_echo "yes" >&6; }
9369		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
9370
9371else
9372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373$as_echo "no" >&6; }
9374fi
9375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376  CPPFLAGS=$cppflags_save
9377fi
9378
9379if test -z "$SKIP_MOTIF"; then
9380  cppflags_save=$CPPFLAGS
9381  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9382  if test "$zOSUnix" = "yes"; then
9383	xmheader="Xm/Xm.h"
9384  else
9385	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
9386	   Xm/UnhighlightT.h Xm/Notebook.h"
9387  fi
9388  for ac_header in $xmheader
9389do :
9390  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9391ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9392if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9393  cat >>confdefs.h <<_ACEOF
9394#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9395_ACEOF
9396
9397fi
9398
9399done
9400
9401
9402  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
9403        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9404$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
9405    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406/* end confdefs.h.  */
9407#include <Xm/XpmP.h>
9408int
9409main ()
9410{
9411XpmAttributes_21 attr;
9412  ;
9413  return 0;
9414}
9415_ACEOF
9416if ac_fn_c_try_compile "$LINENO"; then :
9417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9418$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
9419
9420else
9421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
9423
9424
9425fi
9426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9427  else
9428    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
9429
9430  fi
9431  CPPFLAGS=$cppflags_save
9432fi
9433
9434if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
9435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
9436$as_echo "no GUI selected; xim has been disabled" >&6; }
9437  enable_xim="no"
9438fi
9439if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
9440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
9441$as_echo "no GUI selected; fontset has been disabled" >&6; }
9442  enable_fontset="no"
9443fi
9444if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
9445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9446$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
9447  enable_fontset="no"
9448fi
9449
9450if test -z "$SKIP_PHOTON"; then
9451  GUITYPE=PHOTONGUI
9452fi
9453
9454
9455
9456
9457
9458
9459if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
9460  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
9461fi
9462
9463if test "$enable_xim" = "yes"; then
9464  $as_echo "#define FEAT_XIM 1" >>confdefs.h
9465
9466fi
9467if test "$enable_fontset" = "yes"; then
9468  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
9469
9470fi
9471
9472
9473
9474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN environment" >&5
9475$as_echo_n "checking for CYGWIN environment... " >&6; }
9476case `uname` in
9477    CYGWIN*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9478$as_echo "yes" >&6; }
9479                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
9480$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
9481                if test "x$with_x" = "xno" ; then
9482                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
9483                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9484$as_echo "yes" >&6; }
9485                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
9486
9487                else
9488                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
9489$as_echo "no - using X11" >&6; }
9490                fi ;;
9491
9492    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493$as_echo "no" >&6; };;
9494esac
9495
9496if test "$enable_hangulinput" = "yes"; then
9497  if test "x$GUITYPE" = "xNONE"; then
9498    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
9499$as_echo "no GUI selected; hangul input has been disabled" >&6; }
9500    enable_hangulinput=no
9501  else
9502    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
9503
9504    HANGULIN_SRC=hangulin.c
9505
9506    HANGULIN_OBJ=objects/hangulin.o
9507
9508  fi
9509fi
9510
9511
9512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
9513$as_echo_n "checking whether toupper is broken... " >&6; }
9514if ${vim_cv_toupper_broken+:} false; then :
9515  $as_echo_n "(cached) " >&6
9516else
9517
9518    if test "$cross_compiling" = yes; then :
9519
9520    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
9521
9522else
9523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524/* end confdefs.h.  */
9525
9526#include "confdefs.h"
9527#include <ctype.h>
9528#if STDC_HEADERS
9529# include <stdlib.h>
9530# include <stddef.h>
9531#endif
9532main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
9533
9534_ACEOF
9535if ac_fn_c_try_run "$LINENO"; then :
9536
9537    vim_cv_toupper_broken=yes
9538
9539else
9540
9541    vim_cv_toupper_broken=no
9542
9543fi
9544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9545  conftest.$ac_objext conftest.beam conftest.$ac_ext
9546fi
9547
9548fi
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
9550$as_echo "$vim_cv_toupper_broken" >&6; }
9551
9552if test "x$vim_cv_toupper_broken" = "xyes" ; then
9553  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
9554
9555fi
9556
9557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
9558$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
9559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560/* end confdefs.h.  */
9561#include <stdio.h>
9562int
9563main ()
9564{
9565printf("(" __DATE__ " " __TIME__ ")");
9566  ;
9567  return 0;
9568}
9569_ACEOF
9570if ac_fn_c_try_compile "$LINENO"; then :
9571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9572$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
9573
9574else
9575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576$as_echo "no" >&6; }
9577fi
9578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
9581$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
9582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583/* end confdefs.h.  */
9584#include <stdio.h>
9585int
9586main ()
9587{
9588int x __attribute__((unused));
9589  ;
9590  return 0;
9591}
9592_ACEOF
9593if ac_fn_c_try_compile "$LINENO"; then :
9594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9595$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
9596
9597else
9598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599$as_echo "no" >&6; }
9600fi
9601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602
9603ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
9604if test "x$ac_cv_header_elf_h" = xyes; then :
9605  HAS_ELF=1
9606fi
9607
9608
9609if test "$HAS_ELF" = 1; then
9610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
9611$as_echo_n "checking for main in -lelf... " >&6; }
9612if ${ac_cv_lib_elf_main+:} false; then :
9613  $as_echo_n "(cached) " >&6
9614else
9615  ac_check_lib_save_LIBS=$LIBS
9616LIBS="-lelf  $LIBS"
9617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618/* end confdefs.h.  */
9619
9620
9621int
9622main ()
9623{
9624return main ();
9625  ;
9626  return 0;
9627}
9628_ACEOF
9629if ac_fn_c_try_link "$LINENO"; then :
9630  ac_cv_lib_elf_main=yes
9631else
9632  ac_cv_lib_elf_main=no
9633fi
9634rm -f core conftest.err conftest.$ac_objext \
9635    conftest$ac_exeext conftest.$ac_ext
9636LIBS=$ac_check_lib_save_LIBS
9637fi
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
9639$as_echo "$ac_cv_lib_elf_main" >&6; }
9640if test "x$ac_cv_lib_elf_main" = xyes; then :
9641  cat >>confdefs.h <<_ACEOF
9642#define HAVE_LIBELF 1
9643_ACEOF
9644
9645  LIBS="-lelf $LIBS"
9646
9647fi
9648
9649fi
9650
9651ac_header_dirent=no
9652for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9653  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9655$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9656if eval \${$as_ac_Header+:} false; then :
9657  $as_echo_n "(cached) " >&6
9658else
9659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661#include <sys/types.h>
9662#include <$ac_hdr>
9663
9664int
9665main ()
9666{
9667if ((DIR *) 0)
9668return 0;
9669  ;
9670  return 0;
9671}
9672_ACEOF
9673if ac_fn_c_try_compile "$LINENO"; then :
9674  eval "$as_ac_Header=yes"
9675else
9676  eval "$as_ac_Header=no"
9677fi
9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679fi
9680eval ac_res=\$$as_ac_Header
9681	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9682$as_echo "$ac_res" >&6; }
9683if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9684  cat >>confdefs.h <<_ACEOF
9685#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9686_ACEOF
9687
9688ac_header_dirent=$ac_hdr; break
9689fi
9690
9691done
9692# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9693if test $ac_header_dirent = dirent.h; then
9694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9695$as_echo_n "checking for library containing opendir... " >&6; }
9696if ${ac_cv_search_opendir+:} false; then :
9697  $as_echo_n "(cached) " >&6
9698else
9699  ac_func_search_save_LIBS=$LIBS
9700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701/* end confdefs.h.  */
9702
9703/* Override any GCC internal prototype to avoid an error.
9704   Use char because int might match the return type of a GCC
9705   builtin and then its argument prototype would still apply.  */
9706#ifdef __cplusplus
9707extern "C"
9708#endif
9709char opendir ();
9710int
9711main ()
9712{
9713return opendir ();
9714  ;
9715  return 0;
9716}
9717_ACEOF
9718for ac_lib in '' dir; do
9719  if test -z "$ac_lib"; then
9720    ac_res="none required"
9721  else
9722    ac_res=-l$ac_lib
9723    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9724  fi
9725  if ac_fn_c_try_link "$LINENO"; then :
9726  ac_cv_search_opendir=$ac_res
9727fi
9728rm -f core conftest.err conftest.$ac_objext \
9729    conftest$ac_exeext
9730  if ${ac_cv_search_opendir+:} false; then :
9731  break
9732fi
9733done
9734if ${ac_cv_search_opendir+:} false; then :
9735
9736else
9737  ac_cv_search_opendir=no
9738fi
9739rm conftest.$ac_ext
9740LIBS=$ac_func_search_save_LIBS
9741fi
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9743$as_echo "$ac_cv_search_opendir" >&6; }
9744ac_res=$ac_cv_search_opendir
9745if test "$ac_res" != no; then :
9746  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9747
9748fi
9749
9750else
9751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9752$as_echo_n "checking for library containing opendir... " >&6; }
9753if ${ac_cv_search_opendir+:} false; then :
9754  $as_echo_n "(cached) " >&6
9755else
9756  ac_func_search_save_LIBS=$LIBS
9757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758/* end confdefs.h.  */
9759
9760/* Override any GCC internal prototype to avoid an error.
9761   Use char because int might match the return type of a GCC
9762   builtin and then its argument prototype would still apply.  */
9763#ifdef __cplusplus
9764extern "C"
9765#endif
9766char opendir ();
9767int
9768main ()
9769{
9770return opendir ();
9771  ;
9772  return 0;
9773}
9774_ACEOF
9775for ac_lib in '' x; do
9776  if test -z "$ac_lib"; then
9777    ac_res="none required"
9778  else
9779    ac_res=-l$ac_lib
9780    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9781  fi
9782  if ac_fn_c_try_link "$LINENO"; then :
9783  ac_cv_search_opendir=$ac_res
9784fi
9785rm -f core conftest.err conftest.$ac_objext \
9786    conftest$ac_exeext
9787  if ${ac_cv_search_opendir+:} false; then :
9788  break
9789fi
9790done
9791if ${ac_cv_search_opendir+:} false; then :
9792
9793else
9794  ac_cv_search_opendir=no
9795fi
9796rm conftest.$ac_ext
9797LIBS=$ac_func_search_save_LIBS
9798fi
9799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9800$as_echo "$ac_cv_search_opendir" >&6; }
9801ac_res=$ac_cv_search_opendir
9802if test "$ac_res" != no; then :
9803  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9804
9805fi
9806
9807fi
9808
9809
9810if test $ac_cv_header_sys_wait_h = no; then
9811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
9812$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
9813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h.  */
9815#include <sys/wait.h>
9816int
9817main ()
9818{
9819union wait xx, yy; xx = yy
9820  ;
9821  return 0;
9822}
9823_ACEOF
9824if ac_fn_c_try_compile "$LINENO"; then :
9825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9826$as_echo "yes" >&6; }
9827			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9828
9829			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
9830
9831else
9832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833$as_echo "no" >&6; }
9834fi
9835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9836fi
9837
9838for ac_header in stdarg.h stdint.h stdlib.h string.h \
9839	sys/select.h sys/utsname.h termcap.h fcntl.h \
9840	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
9841	termio.h iconv.h inttypes.h langinfo.h math.h \
9842	unistd.h stropts.h errno.h sys/resource.h \
9843	sys/systeminfo.h locale.h sys/stream.h termios.h \
9844	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
9845	utime.h sys/param.h libintl.h libgen.h \
9846	util/debug.h util/msg18n.h frame.h sys/acl.h \
9847	sys/access.h sys/sysinfo.h wchar.h wctype.h
9848do :
9849  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9850ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9851if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9852  cat >>confdefs.h <<_ACEOF
9853#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9854_ACEOF
9855
9856fi
9857
9858done
9859
9860
9861for ac_header in sys/ptem.h
9862do :
9863  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
9864#  include <sys/stream.h>
9865#endif
9866"
9867if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
9868  cat >>confdefs.h <<_ACEOF
9869#define HAVE_SYS_PTEM_H 1
9870_ACEOF
9871
9872fi
9873
9874done
9875
9876
9877for ac_header in sys/sysctl.h
9878do :
9879  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
9880#  include <sys/param.h>
9881#endif
9882"
9883if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
9884  cat >>confdefs.h <<_ACEOF
9885#define HAVE_SYS_SYSCTL_H 1
9886_ACEOF
9887
9888fi
9889
9890done
9891
9892
9893
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
9895$as_echo_n "checking for pthread_np.h... " >&6; }
9896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897/* end confdefs.h.  */
9898
9899#include <pthread.h>
9900#include <pthread_np.h>
9901int
9902main ()
9903{
9904int i; i = 0;
9905  ;
9906  return 0;
9907}
9908_ACEOF
9909if ac_fn_c_try_compile "$LINENO"; then :
9910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9911$as_echo "yes" >&6; }
9912		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
9913
9914else
9915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916$as_echo "no" >&6; }
9917fi
9918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919
9920for ac_header in strings.h
9921do :
9922  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
9923if test "x$ac_cv_header_strings_h" = xyes; then :
9924  cat >>confdefs.h <<_ACEOF
9925#define HAVE_STRINGS_H 1
9926_ACEOF
9927
9928fi
9929
9930done
9931
9932if test "x$MACOSX" = "xyes"; then
9933    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
9934
9935else
9936
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
9938$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
9939cppflags_save=$CPPFLAGS
9940CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942/* end confdefs.h.  */
9943
9944#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
9945# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
9946			/* but don't do it on AIX 5.1 (Uribarri) */
9947#endif
9948#ifdef HAVE_XM_XM_H
9949# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
9950#endif
9951#ifdef HAVE_STRING_H
9952# include <string.h>
9953#endif
9954#if defined(HAVE_STRINGS_H)
9955# include <strings.h>
9956#endif
9957
9958int
9959main ()
9960{
9961int i; i = 0;
9962  ;
9963  return 0;
9964}
9965_ACEOF
9966if ac_fn_c_try_compile "$LINENO"; then :
9967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9968$as_echo "yes" >&6; }
9969else
9970  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
9971
9972		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973$as_echo "no" >&6; }
9974fi
9975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9976CPPFLAGS=$cppflags_save
9977fi
9978
9979if test $ac_cv_c_compiler_gnu = yes; then
9980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
9981$as_echo_n "checking whether $CC needs -traditional... " >&6; }
9982if ${ac_cv_prog_gcc_traditional+:} false; then :
9983  $as_echo_n "(cached) " >&6
9984else
9985    ac_pattern="Autoconf.*'x'"
9986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h.  */
9988#include <sgtty.h>
9989Autoconf TIOCGETP
9990_ACEOF
9991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9992  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
9993  ac_cv_prog_gcc_traditional=yes
9994else
9995  ac_cv_prog_gcc_traditional=no
9996fi
9997rm -f conftest*
9998
9999
10000  if test $ac_cv_prog_gcc_traditional = no; then
10001    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002/* end confdefs.h.  */
10003#include <termio.h>
10004Autoconf TCGETA
10005_ACEOF
10006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10007  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10008  ac_cv_prog_gcc_traditional=yes
10009fi
10010rm -f conftest*
10011
10012  fi
10013fi
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10015$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10016  if test $ac_cv_prog_gcc_traditional = yes; then
10017    CC="$CC -traditional"
10018  fi
10019fi
10020
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10022$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10023if ${ac_cv_c_const+:} false; then :
10024  $as_echo_n "(cached) " >&6
10025else
10026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027/* end confdefs.h.  */
10028
10029int
10030main ()
10031{
10032
10033#ifndef __cplusplus
10034  /* Ultrix mips cc rejects this sort of thing.  */
10035  typedef int charset[2];
10036  const charset cs = { 0, 0 };
10037  /* SunOS 4.1.1 cc rejects this.  */
10038  char const *const *pcpcc;
10039  char **ppc;
10040  /* NEC SVR4.0.2 mips cc rejects this.  */
10041  struct point {int x, y;};
10042  static struct point const zero = {0,0};
10043  /* AIX XL C 1.02.0.0 rejects this.
10044     It does not let you subtract one const X* pointer from another in
10045     an arm of an if-expression whose if-part is not a constant
10046     expression */
10047  const char *g = "string";
10048  pcpcc = &g + (g ? g-g : 0);
10049  /* HPUX 7.0 cc rejects these. */
10050  ++pcpcc;
10051  ppc = (char**) pcpcc;
10052  pcpcc = (char const *const *) ppc;
10053  { /* SCO 3.2v4 cc rejects this sort of thing.  */
10054    char tx;
10055    char *t = &tx;
10056    char const *s = 0 ? (char *) 0 : (char const *) 0;
10057
10058    *t++ = 0;
10059    if (s) return 0;
10060  }
10061  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10062    int x[] = {25, 17};
10063    const int *foo = &x[0];
10064    ++foo;
10065  }
10066  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10067    typedef const int *iptr;
10068    iptr p = 0;
10069    ++p;
10070  }
10071  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10072       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10073    struct s { int j; const int *ap[3]; } bx;
10074    struct s *b = &bx; b->j = 5;
10075  }
10076  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10077    const int foo = 10;
10078    if (!foo) return 0;
10079  }
10080  return !cs[0] && !zero.x;
10081#endif
10082
10083  ;
10084  return 0;
10085}
10086_ACEOF
10087if ac_fn_c_try_compile "$LINENO"; then :
10088  ac_cv_c_const=yes
10089else
10090  ac_cv_c_const=no
10091fi
10092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10093fi
10094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10095$as_echo "$ac_cv_c_const" >&6; }
10096if test $ac_cv_c_const = no; then
10097
10098$as_echo "#define const /**/" >>confdefs.h
10099
10100fi
10101
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
10103$as_echo_n "checking for working volatile... " >&6; }
10104if ${ac_cv_c_volatile+:} false; then :
10105  $as_echo_n "(cached) " >&6
10106else
10107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h.  */
10109
10110int
10111main ()
10112{
10113
10114volatile int x;
10115int * volatile y = (int *) 0;
10116return !x && !y;
10117  ;
10118  return 0;
10119}
10120_ACEOF
10121if ac_fn_c_try_compile "$LINENO"; then :
10122  ac_cv_c_volatile=yes
10123else
10124  ac_cv_c_volatile=no
10125fi
10126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127fi
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
10129$as_echo "$ac_cv_c_volatile" >&6; }
10130if test $ac_cv_c_volatile = no; then
10131
10132$as_echo "#define volatile /**/" >>confdefs.h
10133
10134fi
10135
10136ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10137if test "x$ac_cv_type_mode_t" = xyes; then :
10138
10139else
10140
10141cat >>confdefs.h <<_ACEOF
10142#define mode_t int
10143_ACEOF
10144
10145fi
10146
10147ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10148if test "x$ac_cv_type_off_t" = xyes; then :
10149
10150else
10151
10152cat >>confdefs.h <<_ACEOF
10153#define off_t long int
10154_ACEOF
10155
10156fi
10157
10158ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10159if test "x$ac_cv_type_pid_t" = xyes; then :
10160
10161else
10162
10163cat >>confdefs.h <<_ACEOF
10164#define pid_t int
10165_ACEOF
10166
10167fi
10168
10169ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10170if test "x$ac_cv_type_size_t" = xyes; then :
10171
10172else
10173
10174cat >>confdefs.h <<_ACEOF
10175#define size_t unsigned int
10176_ACEOF
10177
10178fi
10179
10180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10181$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10182if ${ac_cv_type_uid_t+:} false; then :
10183  $as_echo_n "(cached) " >&6
10184else
10185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h.  */
10187#include <sys/types.h>
10188
10189_ACEOF
10190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10191  $EGREP "uid_t" >/dev/null 2>&1; then :
10192  ac_cv_type_uid_t=yes
10193else
10194  ac_cv_type_uid_t=no
10195fi
10196rm -f conftest*
10197
10198fi
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10200$as_echo "$ac_cv_type_uid_t" >&6; }
10201if test $ac_cv_type_uid_t = no; then
10202
10203$as_echo "#define uid_t int" >>confdefs.h
10204
10205
10206$as_echo "#define gid_t int" >>confdefs.h
10207
10208fi
10209
10210ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
10211case $ac_cv_c_uint32_t in #(
10212  no|yes) ;; #(
10213  *)
10214
10215$as_echo "#define _UINT32_T 1" >>confdefs.h
10216
10217
10218cat >>confdefs.h <<_ACEOF
10219#define uint32_t $ac_cv_c_uint32_t
10220_ACEOF
10221;;
10222  esac
10223
10224
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10226$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10227if ${ac_cv_header_time+:} false; then :
10228  $as_echo_n "(cached) " >&6
10229else
10230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231/* end confdefs.h.  */
10232#include <sys/types.h>
10233#include <sys/time.h>
10234#include <time.h>
10235
10236int
10237main ()
10238{
10239if ((struct tm *) 0)
10240return 0;
10241  ;
10242  return 0;
10243}
10244_ACEOF
10245if ac_fn_c_try_compile "$LINENO"; then :
10246  ac_cv_header_time=yes
10247else
10248  ac_cv_header_time=no
10249fi
10250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10251fi
10252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10253$as_echo "$ac_cv_header_time" >&6; }
10254if test $ac_cv_header_time = yes; then
10255
10256$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10257
10258fi
10259
10260ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
10261if test "x$ac_cv_type_ino_t" = xyes; then :
10262
10263else
10264
10265cat >>confdefs.h <<_ACEOF
10266#define ino_t long
10267_ACEOF
10268
10269fi
10270
10271ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
10272if test "x$ac_cv_type_dev_t" = xyes; then :
10273
10274else
10275
10276cat >>confdefs.h <<_ACEOF
10277#define dev_t unsigned
10278_ACEOF
10279
10280fi
10281
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10283$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10284if ${ac_cv_c_bigendian+:} false; then :
10285  $as_echo_n "(cached) " >&6
10286else
10287  ac_cv_c_bigendian=unknown
10288    # See if we're dealing with a universal compiler.
10289    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290/* end confdefs.h.  */
10291#ifndef __APPLE_CC__
10292	       not a universal capable compiler
10293	     #endif
10294	     typedef int dummy;
10295
10296_ACEOF
10297if ac_fn_c_try_compile "$LINENO"; then :
10298
10299	# Check for potential -arch flags.  It is not universal unless
10300	# there are at least two -arch flags with different values.
10301	ac_arch=
10302	ac_prev=
10303	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10304	 if test -n "$ac_prev"; then
10305	   case $ac_word in
10306	     i?86 | x86_64 | ppc | ppc64)
10307	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10308		 ac_arch=$ac_word
10309	       else
10310		 ac_cv_c_bigendian=universal
10311		 break
10312	       fi
10313	       ;;
10314	   esac
10315	   ac_prev=
10316	 elif test "x$ac_word" = "x-arch"; then
10317	   ac_prev=arch
10318	 fi
10319       done
10320fi
10321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10322    if test $ac_cv_c_bigendian = unknown; then
10323      # See if sys/param.h defines the BYTE_ORDER macro.
10324      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325/* end confdefs.h.  */
10326#include <sys/types.h>
10327	     #include <sys/param.h>
10328
10329int
10330main ()
10331{
10332#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10333		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10334		     && LITTLE_ENDIAN)
10335	      bogus endian macros
10336	     #endif
10337
10338  ;
10339  return 0;
10340}
10341_ACEOF
10342if ac_fn_c_try_compile "$LINENO"; then :
10343  # It does; now see whether it defined to BIG_ENDIAN or not.
10344	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345/* end confdefs.h.  */
10346#include <sys/types.h>
10347		#include <sys/param.h>
10348
10349int
10350main ()
10351{
10352#if BYTE_ORDER != BIG_ENDIAN
10353		 not big endian
10354		#endif
10355
10356  ;
10357  return 0;
10358}
10359_ACEOF
10360if ac_fn_c_try_compile "$LINENO"; then :
10361  ac_cv_c_bigendian=yes
10362else
10363  ac_cv_c_bigendian=no
10364fi
10365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10366fi
10367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10368    fi
10369    if test $ac_cv_c_bigendian = unknown; then
10370      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10371      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372/* end confdefs.h.  */
10373#include <limits.h>
10374
10375int
10376main ()
10377{
10378#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10379	      bogus endian macros
10380	     #endif
10381
10382  ;
10383  return 0;
10384}
10385_ACEOF
10386if ac_fn_c_try_compile "$LINENO"; then :
10387  # It does; now see whether it defined to _BIG_ENDIAN or not.
10388	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h.  */
10390#include <limits.h>
10391
10392int
10393main ()
10394{
10395#ifndef _BIG_ENDIAN
10396		 not big endian
10397		#endif
10398
10399  ;
10400  return 0;
10401}
10402_ACEOF
10403if ac_fn_c_try_compile "$LINENO"; then :
10404  ac_cv_c_bigendian=yes
10405else
10406  ac_cv_c_bigendian=no
10407fi
10408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10409fi
10410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411    fi
10412    if test $ac_cv_c_bigendian = unknown; then
10413      # Compile a test program.
10414      if test "$cross_compiling" = yes; then :
10415  # Try to guess by grepping values from an object file.
10416	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417/* end confdefs.h.  */
10418short int ascii_mm[] =
10419		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10420		short int ascii_ii[] =
10421		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10422		int use_ascii (int i) {
10423		  return ascii_mm[i] + ascii_ii[i];
10424		}
10425		short int ebcdic_ii[] =
10426		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10427		short int ebcdic_mm[] =
10428		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10429		int use_ebcdic (int i) {
10430		  return ebcdic_mm[i] + ebcdic_ii[i];
10431		}
10432		extern int foo;
10433
10434int
10435main ()
10436{
10437return use_ascii (foo) == use_ebcdic (foo);
10438  ;
10439  return 0;
10440}
10441_ACEOF
10442if ac_fn_c_try_compile "$LINENO"; then :
10443  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10444	      ac_cv_c_bigendian=yes
10445	    fi
10446	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10447	      if test "$ac_cv_c_bigendian" = unknown; then
10448		ac_cv_c_bigendian=no
10449	      else
10450		# finding both strings is unlikely to happen, but who knows?
10451		ac_cv_c_bigendian=unknown
10452	      fi
10453	    fi
10454fi
10455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456else
10457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458/* end confdefs.h.  */
10459$ac_includes_default
10460int
10461main ()
10462{
10463
10464	     /* Are we little or big endian?  From Harbison&Steele.  */
10465	     union
10466	     {
10467	       long int l;
10468	       char c[sizeof (long int)];
10469	     } u;
10470	     u.l = 1;
10471	     return u.c[sizeof (long int) - 1] == 1;
10472
10473  ;
10474  return 0;
10475}
10476_ACEOF
10477if ac_fn_c_try_run "$LINENO"; then :
10478  ac_cv_c_bigendian=no
10479else
10480  ac_cv_c_bigendian=yes
10481fi
10482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10483  conftest.$ac_objext conftest.beam conftest.$ac_ext
10484fi
10485
10486    fi
10487fi
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10489$as_echo "$ac_cv_c_bigendian" >&6; }
10490 case $ac_cv_c_bigendian in #(
10491   yes)
10492     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10493;; #(
10494   no)
10495      ;; #(
10496   universal)
10497
10498$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10499
10500     ;; #(
10501   *)
10502     as_fn_error $? "unknown endianness
10503 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10504 esac
10505
10506
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
10508$as_echo_n "checking for rlim_t... " >&6; }
10509if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
10510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
10511$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
10512else
10513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h.  */
10515
10516#include <sys/types.h>
10517#if STDC_HEADERS
10518# include <stdlib.h>
10519# include <stddef.h>
10520#endif
10521#ifdef HAVE_SYS_RESOURCE_H
10522# include <sys/resource.h>
10523#endif
10524
10525_ACEOF
10526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10527  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10528  ac_cv_type_rlim_t=yes
10529else
10530  ac_cv_type_rlim_t=no
10531fi
10532rm -f conftest*
10533
10534	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
10535$as_echo "$ac_cv_type_rlim_t" >&6; }
10536fi
10537if test $ac_cv_type_rlim_t = no; then
10538  cat >> confdefs.h <<\EOF
10539#define rlim_t unsigned long
10540EOF
10541fi
10542
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
10544$as_echo_n "checking for stack_t... " >&6; }
10545if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
10546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
10547$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
10548else
10549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550/* end confdefs.h.  */
10551
10552#include <sys/types.h>
10553#if STDC_HEADERS
10554# include <stdlib.h>
10555# include <stddef.h>
10556#endif
10557#include <signal.h>
10558
10559_ACEOF
10560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10561  $EGREP "stack_t" >/dev/null 2>&1; then :
10562  ac_cv_type_stack_t=yes
10563else
10564  ac_cv_type_stack_t=no
10565fi
10566rm -f conftest*
10567
10568	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
10569$as_echo "$ac_cv_type_stack_t" >&6; }
10570fi
10571if test $ac_cv_type_stack_t = no; then
10572  cat >> confdefs.h <<\EOF
10573#define stack_t struct sigaltstack
10574EOF
10575fi
10576
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
10578$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
10579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580/* end confdefs.h.  */
10581
10582#include <sys/types.h>
10583#if STDC_HEADERS
10584# include <stdlib.h>
10585# include <stddef.h>
10586#endif
10587#include <signal.h>
10588#include "confdefs.h"
10589
10590int
10591main ()
10592{
10593stack_t sigstk; sigstk.ss_base = 0;
10594  ;
10595  return 0;
10596}
10597_ACEOF
10598if ac_fn_c_try_compile "$LINENO"; then :
10599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10600$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
10601
10602else
10603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604$as_echo "no" >&6; }
10605fi
10606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607
10608olibs="$LIBS"
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
10610$as_echo_n "checking --with-tlib argument... " >&6; }
10611
10612# Check whether --with-tlib was given.
10613if test "${with_tlib+set}" = set; then :
10614  withval=$with_tlib;
10615fi
10616
10617if test -n "$with_tlib"; then
10618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
10619$as_echo "$with_tlib" >&6; }
10620  LIBS="$LIBS -l$with_tlib"
10621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
10622$as_echo_n "checking for linking with $with_tlib library... " >&6; }
10623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624/* end confdefs.h.  */
10625
10626int
10627main ()
10628{
10629
10630  ;
10631  return 0;
10632}
10633_ACEOF
10634if ac_fn_c_try_link "$LINENO"; then :
10635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
10636$as_echo "OK" >&6; }
10637else
10638  as_fn_error $? "FAILED" "$LINENO" 5
10639fi
10640rm -f core conftest.err conftest.$ac_objext \
10641    conftest$ac_exeext conftest.$ac_ext
10642    olibs="$LIBS"
10643else
10644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
10645$as_echo "empty: automatic terminal library selection" >&6; }
10646                case "`uname -s 2>/dev/null`" in
10647	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
10648	*)	tlibs="tinfo ncurses termlib termcap curses";;
10649  esac
10650  for libname in $tlibs; do
10651    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
10653$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
10654if eval \${$as_ac_Lib+:} false; then :
10655  $as_echo_n "(cached) " >&6
10656else
10657  ac_check_lib_save_LIBS=$LIBS
10658LIBS="-l${libname}  $LIBS"
10659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660/* end confdefs.h.  */
10661
10662/* Override any GCC internal prototype to avoid an error.
10663   Use char because int might match the return type of a GCC
10664   builtin and then its argument prototype would still apply.  */
10665#ifdef __cplusplus
10666extern "C"
10667#endif
10668char tgetent ();
10669int
10670main ()
10671{
10672return tgetent ();
10673  ;
10674  return 0;
10675}
10676_ACEOF
10677if ac_fn_c_try_link "$LINENO"; then :
10678  eval "$as_ac_Lib=yes"
10679else
10680  eval "$as_ac_Lib=no"
10681fi
10682rm -f core conftest.err conftest.$ac_objext \
10683    conftest$ac_exeext conftest.$ac_ext
10684LIBS=$ac_check_lib_save_LIBS
10685fi
10686eval ac_res=\$$as_ac_Lib
10687	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10688$as_echo "$ac_res" >&6; }
10689if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10690  cat >>confdefs.h <<_ACEOF
10691#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
10692_ACEOF
10693
10694  LIBS="-l${libname} $LIBS"
10695
10696fi
10697
10698    if test "x$olibs" != "x$LIBS"; then
10699                        if test "$cross_compiling" = yes; then :
10700  res="FAIL"
10701else
10702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703/* end confdefs.h.  */
10704
10705#ifdef HAVE_TERMCAP_H
10706# include <termcap.h>
10707#endif
10708#if STDC_HEADERS
10709# include <stdlib.h>
10710# include <stddef.h>
10711#endif
10712main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
10713_ACEOF
10714if ac_fn_c_try_run "$LINENO"; then :
10715  res="OK"
10716else
10717  res="FAIL"
10718fi
10719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10720  conftest.$ac_objext conftest.beam conftest.$ac_ext
10721fi
10722
10723      if test "$res" = "OK"; then
10724	break
10725      fi
10726      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
10727$as_echo "$libname library is not usable" >&6; }
10728      LIBS="$olibs"
10729    fi
10730  done
10731  if test "x$olibs" = "x$LIBS"; then
10732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
10733$as_echo "no terminal library found" >&6; }
10734  fi
10735fi
10736
10737if test "x$olibs" = "x$LIBS"; then
10738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
10739$as_echo_n "checking for tgetent()... " >&6; }
10740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741/* end confdefs.h.  */
10742
10743int
10744main ()
10745{
10746char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
10747  ;
10748  return 0;
10749}
10750_ACEOF
10751if ac_fn_c_try_link "$LINENO"; then :
10752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10753$as_echo "yes" >&6; }
10754else
10755  as_fn_error $? "NOT FOUND!
10756      You need to install a terminal library; for example ncurses.
10757      Or specify the name of the library with --with-tlib." "$LINENO" 5
10758fi
10759rm -f core conftest.err conftest.$ac_objext \
10760    conftest$ac_exeext conftest.$ac_ext
10761fi
10762
10763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
10764$as_echo_n "checking whether we talk terminfo... " >&6; }
10765if ${vim_cv_terminfo+:} false; then :
10766  $as_echo_n "(cached) " >&6
10767else
10768
10769    if test "$cross_compiling" = yes; then :
10770
10771      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
10772
10773else
10774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775/* end confdefs.h.  */
10776
10777#include "confdefs.h"
10778#ifdef HAVE_TERMCAP_H
10779# include <termcap.h>
10780#endif
10781#ifdef HAVE_STRING_H
10782# include <string.h>
10783#endif
10784#if STDC_HEADERS
10785# include <stdlib.h>
10786# include <stddef.h>
10787#endif
10788main()
10789{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
10790
10791_ACEOF
10792if ac_fn_c_try_run "$LINENO"; then :
10793
10794      vim_cv_terminfo=no
10795
10796else
10797
10798      vim_cv_terminfo=yes
10799
10800fi
10801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10802  conftest.$ac_objext conftest.beam conftest.$ac_ext
10803fi
10804
10805
10806fi
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
10808$as_echo "$vim_cv_terminfo" >&6; }
10809
10810if test "x$vim_cv_terminfo" = "xyes" ; then
10811  $as_echo "#define TERMINFO 1" >>confdefs.h
10812
10813fi
10814
10815if test "x$olibs" != "x$LIBS"; then
10816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
10817$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
10818if ${vim_cv_tgent+:} false; then :
10819  $as_echo_n "(cached) " >&6
10820else
10821
10822      if test "$cross_compiling" = yes; then :
10823
10824	as_fn_error $? "failed to compile test program." "$LINENO" 5
10825
10826else
10827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828/* end confdefs.h.  */
10829
10830#include "confdefs.h"
10831#ifdef HAVE_TERMCAP_H
10832# include <termcap.h>
10833#endif
10834#if STDC_HEADERS
10835# include <stdlib.h>
10836# include <stddef.h>
10837#endif
10838main()
10839{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
10840
10841_ACEOF
10842if ac_fn_c_try_run "$LINENO"; then :
10843
10844	vim_cv_tgent=zero
10845
10846else
10847
10848	vim_cv_tgent=non-zero
10849
10850fi
10851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10852  conftest.$ac_objext conftest.beam conftest.$ac_ext
10853fi
10854
10855
10856fi
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5
10858$as_echo "$vim_cv_tgent" >&6; }
10859
10860  if test "x$vim_cv_tgent" = "xzero" ; then
10861    $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
10862
10863  fi
10864fi
10865
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
10867$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
10868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869/* end confdefs.h.  */
10870
10871#ifdef HAVE_TERMCAP_H
10872# include <termcap.h>
10873#endif
10874
10875int
10876main ()
10877{
10878ospeed = 20000
10879  ;
10880  return 0;
10881}
10882_ACEOF
10883if ac_fn_c_try_link "$LINENO"; then :
10884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10885$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
10886
10887else
10888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889$as_echo "no" >&6; }
10890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
10891$as_echo_n "checking whether ospeed can be extern... " >&6; }
10892	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893/* end confdefs.h.  */
10894
10895#ifdef HAVE_TERMCAP_H
10896# include <termcap.h>
10897#endif
10898extern short ospeed;
10899
10900int
10901main ()
10902{
10903ospeed = 20000
10904  ;
10905  return 0;
10906}
10907_ACEOF
10908if ac_fn_c_try_link "$LINENO"; then :
10909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10910$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
10911
10912else
10913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914$as_echo "no" >&6; }
10915fi
10916rm -f core conftest.err conftest.$ac_objext \
10917    conftest$ac_exeext conftest.$ac_ext
10918
10919fi
10920rm -f core conftest.err conftest.$ac_objext \
10921    conftest$ac_exeext conftest.$ac_ext
10922
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
10924$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
10925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926/* end confdefs.h.  */
10927
10928#ifdef HAVE_TERMCAP_H
10929# include <termcap.h>
10930#endif
10931
10932int
10933main ()
10934{
10935if (UP == 0 && BC == 0) PC = 1
10936  ;
10937  return 0;
10938}
10939_ACEOF
10940if ac_fn_c_try_link "$LINENO"; then :
10941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10942$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
10943
10944else
10945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946$as_echo "no" >&6; }
10947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
10948$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
10949	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950/* end confdefs.h.  */
10951
10952#ifdef HAVE_TERMCAP_H
10953# include <termcap.h>
10954#endif
10955extern char *UP, *BC, PC;
10956
10957int
10958main ()
10959{
10960if (UP == 0 && BC == 0) PC = 1
10961  ;
10962  return 0;
10963}
10964_ACEOF
10965if ac_fn_c_try_link "$LINENO"; then :
10966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10967$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
10968
10969else
10970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
10972fi
10973rm -f core conftest.err conftest.$ac_objext \
10974    conftest$ac_exeext conftest.$ac_ext
10975
10976fi
10977rm -f core conftest.err conftest.$ac_objext \
10978    conftest$ac_exeext conftest.$ac_ext
10979
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
10981$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
10982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983/* end confdefs.h.  */
10984
10985#ifdef HAVE_TERMCAP_H
10986# include <termcap.h>
10987#endif
10988
10989int
10990main ()
10991{
10992extern int xx(); tputs("test", 1, (outfuntype)xx)
10993  ;
10994  return 0;
10995}
10996_ACEOF
10997if ac_fn_c_try_compile "$LINENO"; then :
10998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10999$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
11000
11001else
11002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003$as_echo "no" >&6; }
11004fi
11005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006
11007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
11008$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
11009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010/* end confdefs.h.  */
11011
11012#include <sys/types.h>
11013#include <sys/time.h>
11014#include <sys/select.h>
11015int
11016main ()
11017{
11018
11019  ;
11020  return 0;
11021}
11022_ACEOF
11023if ac_fn_c_try_compile "$LINENO"; then :
11024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11025$as_echo "yes" >&6; }
11026			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
11027
11028else
11029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030$as_echo "no" >&6; }
11031fi
11032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033
11034
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
11036$as_echo_n "checking for /dev/ptc... " >&6; }
11037if test -r /dev/ptc; then
11038  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
11039
11040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11041$as_echo "yes" >&6; }
11042else
11043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044$as_echo "no" >&6; }
11045fi
11046
11047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
11048$as_echo_n "checking for SVR4 ptys... " >&6; }
11049if test -c /dev/ptmx ; then
11050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051/* end confdefs.h.  */
11052
11053int
11054main ()
11055{
11056ptsname(0);grantpt(0);unlockpt(0);
11057  ;
11058  return 0;
11059}
11060_ACEOF
11061if ac_fn_c_try_link "$LINENO"; then :
11062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11063$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
11064
11065else
11066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067$as_echo "no" >&6; }
11068fi
11069rm -f core conftest.err conftest.$ac_objext \
11070    conftest$ac_exeext conftest.$ac_ext
11071else
11072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073$as_echo "no" >&6; }
11074fi
11075
11076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
11077$as_echo_n "checking for ptyranges... " >&6; }
11078if test -d /dev/ptym ; then
11079  pdir='/dev/ptym'
11080else
11081  pdir='/dev'
11082fi
11083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084/* end confdefs.h.  */
11085#ifdef M_UNIX
11086   yes;
11087#endif
11088
11089_ACEOF
11090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11091  $EGREP "yes" >/dev/null 2>&1; then :
11092  ptys=`echo /dev/ptyp??`
11093else
11094  ptys=`echo $pdir/pty??`
11095fi
11096rm -f conftest*
11097
11098if test "$ptys" != "$pdir/pty??" ; then
11099  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
11100  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
11101  cat >>confdefs.h <<_ACEOF
11102#define PTYRANGE0 "$p0"
11103_ACEOF
11104
11105  cat >>confdefs.h <<_ACEOF
11106#define PTYRANGE1 "$p1"
11107_ACEOF
11108
11109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
11110$as_echo "$p0 / $p1" >&6; }
11111else
11112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
11113$as_echo "don't know" >&6; }
11114fi
11115
11116rm -f conftest_grp
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
11118$as_echo_n "checking default tty permissions/group... " >&6; }
11119if ${vim_cv_tty_group+:} false; then :
11120  $as_echo_n "(cached) " >&6
11121else
11122
11123    if test "$cross_compiling" = yes; then :
11124
11125      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
11126
11127else
11128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129/* end confdefs.h.  */
11130
11131#include "confdefs.h"
11132#include <sys/types.h>
11133#if STDC_HEADERS
11134# include <stdlib.h>
11135# include <stddef.h>
11136#endif
11137#ifdef HAVE_UNISTD_H
11138#include <unistd.h>
11139#endif
11140#include <sys/stat.h>
11141#include <stdio.h>
11142main()
11143{
11144  struct stat sb;
11145  char *x,*ttyname();
11146  int om, m;
11147  FILE *fp;
11148
11149  if (!(x = ttyname(0))) exit(1);
11150  if (stat(x, &sb)) exit(1);
11151  om = sb.st_mode;
11152  if (om & 002) exit(0);
11153  m = system("mesg y");
11154  if (m == -1 || m == 127) exit(1);
11155  if (stat(x, &sb)) exit(1);
11156  m = sb.st_mode;
11157  if (chmod(x, om)) exit(1);
11158  if (m & 002) exit(0);
11159  if (sb.st_gid == getgid()) exit(1);
11160  if (!(fp=fopen("conftest_grp", "w")))
11161    exit(1);
11162  fprintf(fp, "%d\n", sb.st_gid);
11163  fclose(fp);
11164  exit(0);
11165}
11166
11167_ACEOF
11168if ac_fn_c_try_run "$LINENO"; then :
11169
11170      if test -f conftest_grp; then
11171	vim_cv_tty_group=`cat conftest_grp`
11172	if test "x$vim_cv_tty_mode" = "x" ; then
11173	  vim_cv_tty_mode=0620
11174	fi
11175	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
11176$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
11177      else
11178	vim_cv_tty_group=world
11179	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
11180$as_echo "ptys are world accessible" >&6; }
11181      fi
11182
11183else
11184
11185      vim_cv_tty_group=world
11186      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
11187$as_echo "can't determine - assume ptys are world accessible" >&6; }
11188
11189fi
11190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11191  conftest.$ac_objext conftest.beam conftest.$ac_ext
11192fi
11193
11194
11195fi
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
11197$as_echo "$vim_cv_tty_group" >&6; }
11198rm -f conftest_grp
11199
11200if test "x$vim_cv_tty_group" != "xworld" ; then
11201  cat >>confdefs.h <<_ACEOF
11202#define PTYGROUP $vim_cv_tty_group
11203_ACEOF
11204
11205  if test "x$vim_cv_tty_mode" = "x" ; then
11206    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
11207  else
11208    $as_echo "#define PTYMODE 0620" >>confdefs.h
11209
11210  fi
11211fi
11212
11213
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11215$as_echo_n "checking return type of signal handlers... " >&6; }
11216if ${ac_cv_type_signal+:} false; then :
11217  $as_echo_n "(cached) " >&6
11218else
11219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220/* end confdefs.h.  */
11221#include <sys/types.h>
11222#include <signal.h>
11223
11224int
11225main ()
11226{
11227return *(signal (0, 0)) (0) == 1;
11228  ;
11229  return 0;
11230}
11231_ACEOF
11232if ac_fn_c_try_compile "$LINENO"; then :
11233  ac_cv_type_signal=int
11234else
11235  ac_cv_type_signal=void
11236fi
11237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238fi
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11240$as_echo "$ac_cv_type_signal" >&6; }
11241
11242cat >>confdefs.h <<_ACEOF
11243#define RETSIGTYPE $ac_cv_type_signal
11244_ACEOF
11245
11246
11247
11248if test $ac_cv_type_signal = void; then
11249  $as_echo "#define SIGRETURN return" >>confdefs.h
11250
11251else
11252  $as_echo "#define SIGRETURN return 0" >>confdefs.h
11253
11254fi
11255
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
11257$as_echo_n "checking for struct sigcontext... " >&6; }
11258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259/* end confdefs.h.  */
11260
11261#include <signal.h>
11262test_sig()
11263{
11264    struct sigcontext *scont;
11265    scont = (struct sigcontext *)0;
11266    return 1;
11267}
11268int
11269main ()
11270{
11271
11272  ;
11273  return 0;
11274}
11275_ACEOF
11276if ac_fn_c_try_compile "$LINENO"; then :
11277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11278$as_echo "yes" >&6; }
11279		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
11280
11281else
11282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283$as_echo "no" >&6; }
11284fi
11285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11286
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
11288$as_echo_n "checking getcwd implementation is broken... " >&6; }
11289if ${vim_cv_getcwd_broken+:} false; then :
11290  $as_echo_n "(cached) " >&6
11291else
11292
11293    if test "$cross_compiling" = yes; then :
11294
11295      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
11296
11297else
11298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299/* end confdefs.h.  */
11300
11301#include "confdefs.h"
11302#ifdef HAVE_UNISTD_H
11303#include <unistd.h>
11304#endif
11305char *dagger[] = { "IFS=pwd", 0 };
11306main()
11307{
11308  char buffer[500];
11309  extern char **environ;
11310  environ = dagger;
11311  return getcwd(buffer, 500) ? 0 : 1;
11312}
11313
11314_ACEOF
11315if ac_fn_c_try_run "$LINENO"; then :
11316
11317      vim_cv_getcwd_broken=no
11318
11319else
11320
11321      vim_cv_getcwd_broken=yes
11322
11323fi
11324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11325  conftest.$ac_objext conftest.beam conftest.$ac_ext
11326fi
11327
11328
11329fi
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
11331$as_echo "$vim_cv_getcwd_broken" >&6; }
11332
11333if test "x$vim_cv_getcwd_broken" = "xyes" ; then
11334  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
11335
11336fi
11337
11338for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
11339	getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
11340	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
11341	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
11342	sigvec strcasecmp strerror strftime stricmp strncasecmp \
11343	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
11344	usleep utime utimes
11345do :
11346  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11347ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11348if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11349  cat >>confdefs.h <<_ACEOF
11350#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11351_ACEOF
11352
11353fi
11354done
11355
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11357$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11358if ${ac_cv_sys_largefile_source+:} false; then :
11359  $as_echo_n "(cached) " >&6
11360else
11361  while :; do
11362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363/* end confdefs.h.  */
11364#include <sys/types.h> /* for off_t */
11365     #include <stdio.h>
11366int
11367main ()
11368{
11369int (*fp) (FILE *, off_t, int) = fseeko;
11370     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11371  ;
11372  return 0;
11373}
11374_ACEOF
11375if ac_fn_c_try_link "$LINENO"; then :
11376  ac_cv_sys_largefile_source=no; break
11377fi
11378rm -f core conftest.err conftest.$ac_objext \
11379    conftest$ac_exeext conftest.$ac_ext
11380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381/* end confdefs.h.  */
11382#define _LARGEFILE_SOURCE 1
11383#include <sys/types.h> /* for off_t */
11384     #include <stdio.h>
11385int
11386main ()
11387{
11388int (*fp) (FILE *, off_t, int) = fseeko;
11389     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11390  ;
11391  return 0;
11392}
11393_ACEOF
11394if ac_fn_c_try_link "$LINENO"; then :
11395  ac_cv_sys_largefile_source=1; break
11396fi
11397rm -f core conftest.err conftest.$ac_objext \
11398    conftest$ac_exeext conftest.$ac_ext
11399  ac_cv_sys_largefile_source=unknown
11400  break
11401done
11402fi
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11404$as_echo "$ac_cv_sys_largefile_source" >&6; }
11405case $ac_cv_sys_largefile_source in #(
11406  no | unknown) ;;
11407  *)
11408cat >>confdefs.h <<_ACEOF
11409#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11410_ACEOF
11411;;
11412esac
11413rm -rf conftest*
11414
11415# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11416# in glibc 2.1.3, but that breaks too many other things.
11417# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11418if test $ac_cv_sys_largefile_source != unknown; then
11419
11420$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11421
11422fi
11423
11424
11425# Check whether --enable-largefile was given.
11426if test "${enable_largefile+set}" = set; then :
11427  enableval=$enable_largefile;
11428fi
11429
11430if test "$enable_largefile" != no; then
11431
11432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11433$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11434if ${ac_cv_sys_largefile_CC+:} false; then :
11435  $as_echo_n "(cached) " >&6
11436else
11437  ac_cv_sys_largefile_CC=no
11438     if test "$GCC" != yes; then
11439       ac_save_CC=$CC
11440       while :; do
11441	 # IRIX 6.2 and later do not support large files by default,
11442	 # so use the C compiler's -n32 option if that helps.
11443	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444/* end confdefs.h.  */
11445#include <sys/types.h>
11446 /* Check that off_t can represent 2**63 - 1 correctly.
11447    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11448    since some C++ compilers masquerading as C compilers
11449    incorrectly reject 9223372036854775807.  */
11450#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11451  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11452		       && LARGE_OFF_T % 2147483647 == 1)
11453		      ? 1 : -1];
11454int
11455main ()
11456{
11457
11458  ;
11459  return 0;
11460}
11461_ACEOF
11462	 if ac_fn_c_try_compile "$LINENO"; then :
11463  break
11464fi
11465rm -f core conftest.err conftest.$ac_objext
11466	 CC="$CC -n32"
11467	 if ac_fn_c_try_compile "$LINENO"; then :
11468  ac_cv_sys_largefile_CC=' -n32'; break
11469fi
11470rm -f core conftest.err conftest.$ac_objext
11471	 break
11472       done
11473       CC=$ac_save_CC
11474       rm -f conftest.$ac_ext
11475    fi
11476fi
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11478$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11479  if test "$ac_cv_sys_largefile_CC" != no; then
11480    CC=$CC$ac_cv_sys_largefile_CC
11481  fi
11482
11483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11484$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11485if ${ac_cv_sys_file_offset_bits+:} false; then :
11486  $as_echo_n "(cached) " >&6
11487else
11488  while :; do
11489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490/* end confdefs.h.  */
11491#include <sys/types.h>
11492 /* Check that off_t can represent 2**63 - 1 correctly.
11493    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11494    since some C++ compilers masquerading as C compilers
11495    incorrectly reject 9223372036854775807.  */
11496#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11497  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11498		       && LARGE_OFF_T % 2147483647 == 1)
11499		      ? 1 : -1];
11500int
11501main ()
11502{
11503
11504  ;
11505  return 0;
11506}
11507_ACEOF
11508if ac_fn_c_try_compile "$LINENO"; then :
11509  ac_cv_sys_file_offset_bits=no; break
11510fi
11511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513/* end confdefs.h.  */
11514#define _FILE_OFFSET_BITS 64
11515#include <sys/types.h>
11516 /* Check that off_t can represent 2**63 - 1 correctly.
11517    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11518    since some C++ compilers masquerading as C compilers
11519    incorrectly reject 9223372036854775807.  */
11520#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11521  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11522		       && LARGE_OFF_T % 2147483647 == 1)
11523		      ? 1 : -1];
11524int
11525main ()
11526{
11527
11528  ;
11529  return 0;
11530}
11531_ACEOF
11532if ac_fn_c_try_compile "$LINENO"; then :
11533  ac_cv_sys_file_offset_bits=64; break
11534fi
11535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536  ac_cv_sys_file_offset_bits=unknown
11537  break
11538done
11539fi
11540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11541$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11542case $ac_cv_sys_file_offset_bits in #(
11543  no | unknown) ;;
11544  *)
11545cat >>confdefs.h <<_ACEOF
11546#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11547_ACEOF
11548;;
11549esac
11550rm -rf conftest*
11551  if test $ac_cv_sys_file_offset_bits = unknown; then
11552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11553$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11554if ${ac_cv_sys_large_files+:} false; then :
11555  $as_echo_n "(cached) " >&6
11556else
11557  while :; do
11558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559/* end confdefs.h.  */
11560#include <sys/types.h>
11561 /* Check that off_t can represent 2**63 - 1 correctly.
11562    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11563    since some C++ compilers masquerading as C compilers
11564    incorrectly reject 9223372036854775807.  */
11565#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11566  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11567		       && LARGE_OFF_T % 2147483647 == 1)
11568		      ? 1 : -1];
11569int
11570main ()
11571{
11572
11573  ;
11574  return 0;
11575}
11576_ACEOF
11577if ac_fn_c_try_compile "$LINENO"; then :
11578  ac_cv_sys_large_files=no; break
11579fi
11580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582/* end confdefs.h.  */
11583#define _LARGE_FILES 1
11584#include <sys/types.h>
11585 /* Check that off_t can represent 2**63 - 1 correctly.
11586    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11587    since some C++ compilers masquerading as C compilers
11588    incorrectly reject 9223372036854775807.  */
11589#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11590  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11591		       && LARGE_OFF_T % 2147483647 == 1)
11592		      ? 1 : -1];
11593int
11594main ()
11595{
11596
11597  ;
11598  return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_compile "$LINENO"; then :
11602  ac_cv_sys_large_files=1; break
11603fi
11604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605  ac_cv_sys_large_files=unknown
11606  break
11607done
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11610$as_echo "$ac_cv_sys_large_files" >&6; }
11611case $ac_cv_sys_large_files in #(
11612  no | unknown) ;;
11613  *)
11614cat >>confdefs.h <<_ACEOF
11615#define _LARGE_FILES $ac_cv_sys_large_files
11616_ACEOF
11617;;
11618esac
11619rm -rf conftest*
11620  fi
11621
11622
11623fi
11624
11625
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
11627$as_echo_n "checking for st_blksize... " >&6; }
11628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629/* end confdefs.h.  */
11630#include <sys/types.h>
11631#include <sys/stat.h>
11632int
11633main ()
11634{
11635	struct stat st;
11636	int n;
11637
11638	stat("/", &st);
11639	n = (int)st.st_blksize;
11640  ;
11641  return 0;
11642}
11643_ACEOF
11644if ac_fn_c_try_compile "$LINENO"; then :
11645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11646$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
11647
11648else
11649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650$as_echo "no" >&6; }
11651fi
11652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
11655$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
11656if ${vim_cv_stat_ignores_slash+:} false; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659
11660    if test "$cross_compiling" = yes; then :
11661
11662      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
11663
11664else
11665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666/* end confdefs.h.  */
11667
11668#include "confdefs.h"
11669#if STDC_HEADERS
11670# include <stdlib.h>
11671# include <stddef.h>
11672#endif
11673#include <sys/types.h>
11674#include <sys/stat.h>
11675main() {struct stat st;  exit(stat("configure/", &st) != 0); }
11676
11677_ACEOF
11678if ac_fn_c_try_run "$LINENO"; then :
11679
11680      vim_cv_stat_ignores_slash=yes
11681
11682else
11683
11684      vim_cv_stat_ignores_slash=no
11685
11686fi
11687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11688  conftest.$ac_objext conftest.beam conftest.$ac_ext
11689fi
11690
11691
11692fi
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
11694$as_echo "$vim_cv_stat_ignores_slash" >&6; }
11695
11696if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
11697  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
11698
11699fi
11700
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
11702$as_echo_n "checking for iconv_open()... " >&6; }
11703save_LIBS="$LIBS"
11704LIBS="$LIBS -liconv"
11705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706/* end confdefs.h.  */
11707
11708#ifdef HAVE_ICONV_H
11709# include <iconv.h>
11710#endif
11711
11712int
11713main ()
11714{
11715iconv_open("fr", "to");
11716  ;
11717  return 0;
11718}
11719_ACEOF
11720if ac_fn_c_try_link "$LINENO"; then :
11721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
11722$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11723
11724else
11725  LIBS="$save_LIBS"
11726    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727/* end confdefs.h.  */
11728
11729#ifdef HAVE_ICONV_H
11730# include <iconv.h>
11731#endif
11732
11733int
11734main ()
11735{
11736iconv_open("fr", "to");
11737  ;
11738  return 0;
11739}
11740_ACEOF
11741if ac_fn_c_try_link "$LINENO"; then :
11742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11744
11745else
11746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747$as_echo "no" >&6; }
11748fi
11749rm -f core conftest.err conftest.$ac_objext \
11750    conftest$ac_exeext conftest.$ac_ext
11751fi
11752rm -f core conftest.err conftest.$ac_objext \
11753    conftest$ac_exeext conftest.$ac_ext
11754
11755
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
11757$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
11758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759/* end confdefs.h.  */
11760
11761#ifdef HAVE_LANGINFO_H
11762# include <langinfo.h>
11763#endif
11764
11765int
11766main ()
11767{
11768char *cs = nl_langinfo(CODESET);
11769  ;
11770  return 0;
11771}
11772_ACEOF
11773if ac_fn_c_try_link "$LINENO"; then :
11774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11775$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
11776
11777else
11778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779$as_echo "no" >&6; }
11780fi
11781rm -f core conftest.err conftest.$ac_objext \
11782    conftest$ac_exeext conftest.$ac_ext
11783
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
11785$as_echo_n "checking for strtod in -lm... " >&6; }
11786if ${ac_cv_lib_m_strtod+:} false; then :
11787  $as_echo_n "(cached) " >&6
11788else
11789  ac_check_lib_save_LIBS=$LIBS
11790LIBS="-lm  $LIBS"
11791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792/* end confdefs.h.  */
11793
11794/* Override any GCC internal prototype to avoid an error.
11795   Use char because int might match the return type of a GCC
11796   builtin and then its argument prototype would still apply.  */
11797#ifdef __cplusplus
11798extern "C"
11799#endif
11800char strtod ();
11801int
11802main ()
11803{
11804return strtod ();
11805  ;
11806  return 0;
11807}
11808_ACEOF
11809if ac_fn_c_try_link "$LINENO"; then :
11810  ac_cv_lib_m_strtod=yes
11811else
11812  ac_cv_lib_m_strtod=no
11813fi
11814rm -f core conftest.err conftest.$ac_objext \
11815    conftest$ac_exeext conftest.$ac_ext
11816LIBS=$ac_check_lib_save_LIBS
11817fi
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
11819$as_echo "$ac_cv_lib_m_strtod" >&6; }
11820if test "x$ac_cv_lib_m_strtod" = xyes; then :
11821  cat >>confdefs.h <<_ACEOF
11822#define HAVE_LIBM 1
11823_ACEOF
11824
11825  LIBS="-lm $LIBS"
11826
11827fi
11828
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
11830$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
11831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832/* end confdefs.h.  */
11833
11834#ifdef HAVE_MATH_H
11835# include <math.h>
11836#endif
11837#if STDC_HEADERS
11838# include <stdlib.h>
11839# include <stddef.h>
11840#endif
11841
11842int
11843main ()
11844{
11845char *s; double d;
11846    d = strtod("1.1", &s);
11847    d = fabs(1.11);
11848    d = ceil(1.11);
11849    d = floor(1.11);
11850    d = log10(1.11);
11851    d = pow(1.11, 2.22);
11852    d = sqrt(1.11);
11853    d = sin(1.11);
11854    d = cos(1.11);
11855    d = atan(1.11);
11856
11857  ;
11858  return 0;
11859}
11860_ACEOF
11861if ac_fn_c_try_link "$LINENO"; then :
11862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
11864
11865else
11866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867$as_echo "no" >&6; }
11868fi
11869rm -f core conftest.err conftest.$ac_objext \
11870    conftest$ac_exeext conftest.$ac_ext
11871
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
11873$as_echo_n "checking --disable-acl argument... " >&6; }
11874# Check whether --enable-acl was given.
11875if test "${enable_acl+set}" = set; then :
11876  enableval=$enable_acl;
11877else
11878  enable_acl="yes"
11879fi
11880
11881if test "$enable_acl" = "yes"; then
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883$as_echo "no" >&6; }
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
11885$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
11886if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
11887  $as_echo_n "(cached) " >&6
11888else
11889  ac_check_lib_save_LIBS=$LIBS
11890LIBS="-lposix1e  $LIBS"
11891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892/* end confdefs.h.  */
11893
11894/* Override any GCC internal prototype to avoid an error.
11895   Use char because int might match the return type of a GCC
11896   builtin and then its argument prototype would still apply.  */
11897#ifdef __cplusplus
11898extern "C"
11899#endif
11900char acl_get_file ();
11901int
11902main ()
11903{
11904return acl_get_file ();
11905  ;
11906  return 0;
11907}
11908_ACEOF
11909if ac_fn_c_try_link "$LINENO"; then :
11910  ac_cv_lib_posix1e_acl_get_file=yes
11911else
11912  ac_cv_lib_posix1e_acl_get_file=no
11913fi
11914rm -f core conftest.err conftest.$ac_objext \
11915    conftest$ac_exeext conftest.$ac_ext
11916LIBS=$ac_check_lib_save_LIBS
11917fi
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
11919$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
11920if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
11921  LIBS="$LIBS -lposix1e"
11922else
11923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
11924$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
11925if ${ac_cv_lib_acl_acl_get_file+:} false; then :
11926  $as_echo_n "(cached) " >&6
11927else
11928  ac_check_lib_save_LIBS=$LIBS
11929LIBS="-lacl  $LIBS"
11930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931/* end confdefs.h.  */
11932
11933/* Override any GCC internal prototype to avoid an error.
11934   Use char because int might match the return type of a GCC
11935   builtin and then its argument prototype would still apply.  */
11936#ifdef __cplusplus
11937extern "C"
11938#endif
11939char acl_get_file ();
11940int
11941main ()
11942{
11943return acl_get_file ();
11944  ;
11945  return 0;
11946}
11947_ACEOF
11948if ac_fn_c_try_link "$LINENO"; then :
11949  ac_cv_lib_acl_acl_get_file=yes
11950else
11951  ac_cv_lib_acl_acl_get_file=no
11952fi
11953rm -f core conftest.err conftest.$ac_objext \
11954    conftest$ac_exeext conftest.$ac_ext
11955LIBS=$ac_check_lib_save_LIBS
11956fi
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
11958$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
11959if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
11960  LIBS="$LIBS -lacl"
11961		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
11962$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
11963if ${ac_cv_lib_attr_fgetxattr+:} false; then :
11964  $as_echo_n "(cached) " >&6
11965else
11966  ac_check_lib_save_LIBS=$LIBS
11967LIBS="-lattr  $LIBS"
11968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969/* end confdefs.h.  */
11970
11971/* Override any GCC internal prototype to avoid an error.
11972   Use char because int might match the return type of a GCC
11973   builtin and then its argument prototype would still apply.  */
11974#ifdef __cplusplus
11975extern "C"
11976#endif
11977char fgetxattr ();
11978int
11979main ()
11980{
11981return fgetxattr ();
11982  ;
11983  return 0;
11984}
11985_ACEOF
11986if ac_fn_c_try_link "$LINENO"; then :
11987  ac_cv_lib_attr_fgetxattr=yes
11988else
11989  ac_cv_lib_attr_fgetxattr=no
11990fi
11991rm -f core conftest.err conftest.$ac_objext \
11992    conftest$ac_exeext conftest.$ac_ext
11993LIBS=$ac_check_lib_save_LIBS
11994fi
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
11996$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
11997if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
11998  LIBS="$LIBS -lattr"
11999fi
12000
12001fi
12002
12003fi
12004
12005
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
12007$as_echo_n "checking for POSIX ACL support... " >&6; }
12008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009/* end confdefs.h.  */
12010
12011#include <sys/types.h>
12012#ifdef HAVE_SYS_ACL_H
12013# include <sys/acl.h>
12014#endif
12015acl_t acl;
12016int
12017main ()
12018{
12019acl = acl_get_file("foo", ACL_TYPE_ACCESS);
12020	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
12021	acl_free(acl);
12022  ;
12023  return 0;
12024}
12025_ACEOF
12026if ac_fn_c_try_link "$LINENO"; then :
12027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12028$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
12029
12030else
12031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032$as_echo "no" >&6; }
12033fi
12034rm -f core conftest.err conftest.$ac_objext \
12035    conftest$ac_exeext conftest.$ac_ext
12036
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
12038$as_echo_n "checking for acl_get in -lsec... " >&6; }
12039if ${ac_cv_lib_sec_acl_get+:} false; then :
12040  $as_echo_n "(cached) " >&6
12041else
12042  ac_check_lib_save_LIBS=$LIBS
12043LIBS="-lsec  $LIBS"
12044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045/* end confdefs.h.  */
12046
12047/* Override any GCC internal prototype to avoid an error.
12048   Use char because int might match the return type of a GCC
12049   builtin and then its argument prototype would still apply.  */
12050#ifdef __cplusplus
12051extern "C"
12052#endif
12053char acl_get ();
12054int
12055main ()
12056{
12057return acl_get ();
12058  ;
12059  return 0;
12060}
12061_ACEOF
12062if ac_fn_c_try_link "$LINENO"; then :
12063  ac_cv_lib_sec_acl_get=yes
12064else
12065  ac_cv_lib_sec_acl_get=no
12066fi
12067rm -f core conftest.err conftest.$ac_objext \
12068    conftest$ac_exeext conftest.$ac_ext
12069LIBS=$ac_check_lib_save_LIBS
12070fi
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
12072$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
12073if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
12074  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
12075
12076else
12077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
12078$as_echo_n "checking for Solaris ACL support... " >&6; }
12079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080/* end confdefs.h.  */
12081
12082#ifdef HAVE_SYS_ACL_H
12083# include <sys/acl.h>
12084#endif
12085int
12086main ()
12087{
12088acl("foo", GETACLCNT, 0, NULL);
12089
12090  ;
12091  return 0;
12092}
12093_ACEOF
12094if ac_fn_c_try_link "$LINENO"; then :
12095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12096$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
12097
12098else
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100$as_echo "no" >&6; }
12101fi
12102rm -f core conftest.err conftest.$ac_objext \
12103    conftest$ac_exeext conftest.$ac_ext
12104fi
12105
12106
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
12108$as_echo_n "checking for AIX ACL support... " >&6; }
12109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110/* end confdefs.h.  */
12111
12112#if STDC_HEADERS
12113# include <stdlib.h>
12114# include <stddef.h>
12115#endif
12116#ifdef HAVE_SYS_ACL_H
12117# include <sys/acl.h>
12118#endif
12119#ifdef HAVE_SYS_ACCESS_H
12120# include <sys/access.h>
12121#endif
12122#define _ALL_SOURCE
12123
12124#include <sys/stat.h>
12125
12126int aclsize;
12127struct acl *aclent;
12128int
12129main ()
12130{
12131aclsize = sizeof(struct acl);
12132	aclent = (void *)malloc(aclsize);
12133	statacl("foo", STX_NORMAL, aclent, aclsize);
12134
12135  ;
12136  return 0;
12137}
12138_ACEOF
12139if ac_fn_c_try_link "$LINENO"; then :
12140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12141$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
12142
12143else
12144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145$as_echo "no" >&6; }
12146fi
12147rm -f core conftest.err conftest.$ac_objext \
12148    conftest$ac_exeext conftest.$ac_ext
12149else
12150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12151$as_echo "yes" >&6; }
12152fi
12153
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
12155$as_echo_n "checking --disable-gpm argument... " >&6; }
12156# Check whether --enable-gpm was given.
12157if test "${enable_gpm+set}" = set; then :
12158  enableval=$enable_gpm;
12159else
12160  enable_gpm="yes"
12161fi
12162
12163
12164if test "$enable_gpm" = "yes"; then
12165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166$as_echo "no" >&6; }
12167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
12168$as_echo_n "checking for gpm... " >&6; }
12169if ${vi_cv_have_gpm+:} false; then :
12170  $as_echo_n "(cached) " >&6
12171else
12172  olibs="$LIBS" ; LIBS="-lgpm"
12173	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174/* end confdefs.h.  */
12175#include <gpm.h>
12176	    #include <linux/keyboard.h>
12177int
12178main ()
12179{
12180Gpm_GetLibVersion(NULL);
12181  ;
12182  return 0;
12183}
12184_ACEOF
12185if ac_fn_c_try_link "$LINENO"; then :
12186  	    	    vi_cv_have_gpm=yes
12187else
12188  vi_cv_have_gpm=no
12189fi
12190rm -f core conftest.err conftest.$ac_objext \
12191    conftest$ac_exeext conftest.$ac_ext
12192	LIBS="$olibs"
12193
12194fi
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
12196$as_echo "$vi_cv_have_gpm" >&6; }
12197  if test $vi_cv_have_gpm = yes; then
12198    LIBS="$LIBS -lgpm"
12199    $as_echo "#define HAVE_GPM 1" >>confdefs.h
12200
12201  fi
12202else
12203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12204$as_echo "yes" >&6; }
12205fi
12206
12207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
12208$as_echo_n "checking --disable-sysmouse argument... " >&6; }
12209# Check whether --enable-sysmouse was given.
12210if test "${enable_sysmouse+set}" = set; then :
12211  enableval=$enable_sysmouse;
12212else
12213  enable_sysmouse="yes"
12214fi
12215
12216
12217if test "$enable_sysmouse" = "yes"; then
12218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219$as_echo "no" >&6; }
12220        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
12221$as_echo_n "checking for sysmouse... " >&6; }
12222if ${vi_cv_have_sysmouse+:} false; then :
12223  $as_echo_n "(cached) " >&6
12224else
12225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226/* end confdefs.h.  */
12227#include <sys/consio.h>
12228	     #include <signal.h>
12229	     #include <sys/fbio.h>
12230int
12231main ()
12232{
12233struct mouse_info   mouse;
12234	     mouse.operation = MOUSE_MODE;
12235	     mouse.operation = MOUSE_SHOW;
12236	     mouse.u.mode.mode = 0;
12237	     mouse.u.mode.signal = SIGUSR2;
12238  ;
12239  return 0;
12240}
12241_ACEOF
12242if ac_fn_c_try_link "$LINENO"; then :
12243  vi_cv_have_sysmouse=yes
12244else
12245  vi_cv_have_sysmouse=no
12246fi
12247rm -f core conftest.err conftest.$ac_objext \
12248    conftest$ac_exeext conftest.$ac_ext
12249
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
12252$as_echo "$vi_cv_have_sysmouse" >&6; }
12253  if test $vi_cv_have_sysmouse = yes; then
12254    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
12255
12256  fi
12257else
12258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12259$as_echo "yes" >&6; }
12260fi
12261
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
12263$as_echo_n "checking for FD_CLOEXEC... " >&6; }
12264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265/* end confdefs.h.  */
12266#if HAVE_FCNTL_H
12267# include <fcntl.h>
12268#endif
12269int
12270main ()
12271{
12272	int flag = FD_CLOEXEC;
12273  ;
12274  return 0;
12275}
12276_ACEOF
12277if ac_fn_c_try_compile "$LINENO"; then :
12278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12279$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
12280
12281else
12282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
12283$as_echo "not usable" >&6; }
12284fi
12285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12286
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
12288$as_echo_n "checking for rename... " >&6; }
12289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290/* end confdefs.h.  */
12291#include <stdio.h>
12292int
12293main ()
12294{
12295rename("this", "that")
12296  ;
12297  return 0;
12298}
12299_ACEOF
12300if ac_fn_c_try_link "$LINENO"; then :
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
12303
12304else
12305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
12307fi
12308rm -f core conftest.err conftest.$ac_objext \
12309    conftest$ac_exeext conftest.$ac_ext
12310
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
12312$as_echo_n "checking for sysctl... " >&6; }
12313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314/* end confdefs.h.  */
12315#include <sys/types.h>
12316#include <sys/sysctl.h>
12317int
12318main ()
12319{
12320	int mib[2], r;
12321	size_t len;
12322
12323	mib[0] = CTL_HW;
12324	mib[1] = HW_USERMEM;
12325	len = sizeof(r);
12326	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
12327
12328  ;
12329  return 0;
12330}
12331_ACEOF
12332if ac_fn_c_try_compile "$LINENO"; then :
12333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12334$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
12335
12336else
12337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
12338$as_echo "not usable" >&6; }
12339fi
12340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12341
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
12343$as_echo_n "checking for sysinfo... " >&6; }
12344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345/* end confdefs.h.  */
12346#include <sys/types.h>
12347#include <sys/sysinfo.h>
12348int
12349main ()
12350{
12351	struct sysinfo sinfo;
12352	int t;
12353
12354	(void)sysinfo(&sinfo);
12355	t = sinfo.totalram;
12356
12357  ;
12358  return 0;
12359}
12360_ACEOF
12361if ac_fn_c_try_compile "$LINENO"; then :
12362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12363$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
12364
12365else
12366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
12367$as_echo "not usable" >&6; }
12368fi
12369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370
12371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
12372$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
12373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374/* end confdefs.h.  */
12375#include <sys/types.h>
12376#include <sys/sysinfo.h>
12377int
12378main ()
12379{
12380	struct sysinfo sinfo;
12381	sinfo.mem_unit = 1;
12382
12383  ;
12384  return 0;
12385}
12386_ACEOF
12387if ac_fn_c_try_compile "$LINENO"; then :
12388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
12390
12391else
12392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393$as_echo "no" >&6; }
12394fi
12395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12396
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
12398$as_echo_n "checking for sysconf... " >&6; }
12399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400/* end confdefs.h.  */
12401#include <unistd.h>
12402int
12403main ()
12404{
12405	(void)sysconf(_SC_PAGESIZE);
12406	(void)sysconf(_SC_PHYS_PAGES);
12407
12408  ;
12409  return 0;
12410}
12411_ACEOF
12412if ac_fn_c_try_compile "$LINENO"; then :
12413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
12415
12416else
12417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
12418$as_echo "not usable" >&6; }
12419fi
12420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12421
12422# The cast to long int works around a bug in the HP C Compiler
12423# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12424# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12425# This bug is HP SR number 8606223364.
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12427$as_echo_n "checking size of int... " >&6; }
12428if ${ac_cv_sizeof_int+:} false; then :
12429  $as_echo_n "(cached) " >&6
12430else
12431  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12432
12433else
12434  if test "$ac_cv_type_int" = yes; then
12435     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12437as_fn_error 77 "cannot compute sizeof (int)
12438See \`config.log' for more details" "$LINENO" 5; }
12439   else
12440     ac_cv_sizeof_int=0
12441   fi
12442fi
12443
12444fi
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12446$as_echo "$ac_cv_sizeof_int" >&6; }
12447
12448
12449
12450cat >>confdefs.h <<_ACEOF
12451#define SIZEOF_INT $ac_cv_sizeof_int
12452_ACEOF
12453
12454
12455# The cast to long int works around a bug in the HP C Compiler
12456# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12457# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12458# This bug is HP SR number 8606223364.
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12460$as_echo_n "checking size of long... " >&6; }
12461if ${ac_cv_sizeof_long+:} false; then :
12462  $as_echo_n "(cached) " >&6
12463else
12464  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12465
12466else
12467  if test "$ac_cv_type_long" = yes; then
12468     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12470as_fn_error 77 "cannot compute sizeof (long)
12471See \`config.log' for more details" "$LINENO" 5; }
12472   else
12473     ac_cv_sizeof_long=0
12474   fi
12475fi
12476
12477fi
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12479$as_echo "$ac_cv_sizeof_long" >&6; }
12480
12481
12482
12483cat >>confdefs.h <<_ACEOF
12484#define SIZEOF_LONG $ac_cv_sizeof_long
12485_ACEOF
12486
12487
12488# The cast to long int works around a bug in the HP C Compiler
12489# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12490# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12491# This bug is HP SR number 8606223364.
12492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12493$as_echo_n "checking size of time_t... " >&6; }
12494if ${ac_cv_sizeof_time_t+:} false; then :
12495  $as_echo_n "(cached) " >&6
12496else
12497  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12498
12499else
12500  if test "$ac_cv_type_time_t" = yes; then
12501     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12503as_fn_error 77 "cannot compute sizeof (time_t)
12504See \`config.log' for more details" "$LINENO" 5; }
12505   else
12506     ac_cv_sizeof_time_t=0
12507   fi
12508fi
12509
12510fi
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12512$as_echo "$ac_cv_sizeof_time_t" >&6; }
12513
12514
12515
12516cat >>confdefs.h <<_ACEOF
12517#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12518_ACEOF
12519
12520
12521# The cast to long int works around a bug in the HP C Compiler
12522# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12523# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12524# This bug is HP SR number 8606223364.
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12526$as_echo_n "checking size of off_t... " >&6; }
12527if ${ac_cv_sizeof_off_t+:} false; then :
12528  $as_echo_n "(cached) " >&6
12529else
12530  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12531
12532else
12533  if test "$ac_cv_type_off_t" = yes; then
12534     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12536as_fn_error 77 "cannot compute sizeof (off_t)
12537See \`config.log' for more details" "$LINENO" 5; }
12538   else
12539     ac_cv_sizeof_off_t=0
12540   fi
12541fi
12542
12543fi
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12545$as_echo "$ac_cv_sizeof_off_t" >&6; }
12546
12547
12548
12549cat >>confdefs.h <<_ACEOF
12550#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12551_ACEOF
12552
12553
12554
12555cat >>confdefs.h <<_ACEOF
12556#define VIM_SIZEOF_INT $ac_cv_sizeof_int
12557_ACEOF
12558
12559cat >>confdefs.h <<_ACEOF
12560#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
12561_ACEOF
12562
12563
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
12565$as_echo_n "checking uint32_t is 32 bits... " >&6; }
12566if test "$cross_compiling" = yes; then :
12567  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
12568$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
12569else
12570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h.  */
12572
12573#ifdef HAVE_STDINT_H
12574# include <stdint.h>
12575#endif
12576#ifdef HAVE_INTTYPES_H
12577# include <inttypes.h>
12578#endif
12579main() {
12580  uint32_t nr1 = (uint32_t)-1;
12581  uint32_t nr2 = (uint32_t)0xffffffffUL;
12582  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
12583  exit(0);
12584}
12585_ACEOF
12586if ac_fn_c_try_run "$LINENO"; then :
12587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12588$as_echo "ok" >&6; }
12589else
12590  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
12591fi
12592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12593  conftest.$ac_objext conftest.beam conftest.$ac_ext
12594fi
12595
12596
12597
12598bcopy_test_prog='
12599#include "confdefs.h"
12600#ifdef HAVE_STRING_H
12601# include <string.h>
12602#endif
12603#if STDC_HEADERS
12604# include <stdlib.h>
12605# include <stddef.h>
12606#endif
12607main() {
12608  char buf[10];
12609  strcpy(buf, "abcdefghi");
12610  mch_memmove(buf, buf + 2, 3);
12611  if (strncmp(buf, "ababcf", 6))
12612    exit(1);
12613  strcpy(buf, "abcdefghi");
12614  mch_memmove(buf + 2, buf, 3);
12615  if (strncmp(buf, "cdedef", 6))
12616    exit(1);
12617  exit(0); /* libc version works properly.  */
12618}'
12619
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
12621$as_echo_n "checking whether memmove handles overlaps... " >&6; }
12622if ${vim_cv_memmove_handles_overlap+:} false; then :
12623  $as_echo_n "(cached) " >&6
12624else
12625
12626    if test "$cross_compiling" = yes; then :
12627
12628	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
12629
12630else
12631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632/* end confdefs.h.  */
12633#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
12634_ACEOF
12635if ac_fn_c_try_run "$LINENO"; then :
12636
12637	vim_cv_memmove_handles_overlap=yes
12638
12639else
12640
12641	vim_cv_memmove_handles_overlap=no
12642
12643fi
12644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12645  conftest.$ac_objext conftest.beam conftest.$ac_ext
12646fi
12647
12648
12649fi
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
12651$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
12652
12653if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
12654  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
12655
12656else
12657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
12658$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
12659if ${vim_cv_bcopy_handles_overlap+:} false; then :
12660  $as_echo_n "(cached) " >&6
12661else
12662
12663      if test "$cross_compiling" = yes; then :
12664
12665	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
12666
12667else
12668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669/* end confdefs.h.  */
12670#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
12671_ACEOF
12672if ac_fn_c_try_run "$LINENO"; then :
12673
12674	vim_cv_bcopy_handles_overlap=yes
12675
12676else
12677
12678	vim_cv_bcopy_handles_overlap=no
12679
12680fi
12681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12682  conftest.$ac_objext conftest.beam conftest.$ac_ext
12683fi
12684
12685
12686fi
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
12688$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
12689
12690  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
12691    $as_echo "#define USEBCOPY 1" >>confdefs.h
12692
12693  else
12694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
12695$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
12696if ${vim_cv_memcpy_handles_overlap+:} false; then :
12697  $as_echo_n "(cached) " >&6
12698else
12699
12700	if test "$cross_compiling" = yes; then :
12701
12702	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
12703
12704else
12705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706/* end confdefs.h.  */
12707#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
12708_ACEOF
12709if ac_fn_c_try_run "$LINENO"; then :
12710
12711	    vim_cv_memcpy_handles_overlap=yes
12712
12713else
12714
12715	    vim_cv_memcpy_handles_overlap=no
12716
12717fi
12718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12719  conftest.$ac_objext conftest.beam conftest.$ac_ext
12720fi
12721
12722
12723fi
12724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
12725$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
12726
12727    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
12728      $as_echo "#define USEMEMCPY 1" >>confdefs.h
12729
12730    fi
12731  fi
12732fi
12733
12734
12735
12736if test "$enable_multibyte" = "yes"; then
12737  cflags_save=$CFLAGS
12738  ldflags_save=$LDFLAGS
12739  if test "x$x_includes" != "xNONE" ; then
12740    CFLAGS="$CFLAGS -I$x_includes"
12741    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
12742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
12743$as_echo_n "checking whether X_LOCALE needed... " >&6; }
12744    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745/* end confdefs.h.  */
12746#include <X11/Xlocale.h>
12747int
12748main ()
12749{
12750
12751  ;
12752  return 0;
12753}
12754_ACEOF
12755if ac_fn_c_try_compile "$LINENO"; then :
12756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757/* end confdefs.h.  */
12758
12759/* Override any GCC internal prototype to avoid an error.
12760   Use char because int might match the return type of a GCC
12761   builtin and then its argument prototype would still apply.  */
12762#ifdef __cplusplus
12763extern "C"
12764#endif
12765char _Xsetlocale ();
12766int
12767main ()
12768{
12769return _Xsetlocale ();
12770  ;
12771  return 0;
12772}
12773_ACEOF
12774if ac_fn_c_try_link "$LINENO"; then :
12775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12776$as_echo "yes" >&6; }
12777		$as_echo "#define X_LOCALE 1" >>confdefs.h
12778
12779else
12780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781$as_echo "no" >&6; }
12782fi
12783rm -f core conftest.err conftest.$ac_objext \
12784    conftest$ac_exeext conftest.$ac_ext
12785else
12786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787$as_echo "no" >&6; }
12788fi
12789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12790  fi
12791  CFLAGS=$cflags_save
12792  LDFLAGS=$ldflags_save
12793fi
12794
12795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
12796$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
12797if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
12798  $as_echo_n "(cached) " >&6
12799else
12800  ac_check_lib_save_LIBS=$LIBS
12801LIBS="-lxpg4  $LIBS"
12802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803/* end confdefs.h.  */
12804
12805/* Override any GCC internal prototype to avoid an error.
12806   Use char because int might match the return type of a GCC
12807   builtin and then its argument prototype would still apply.  */
12808#ifdef __cplusplus
12809extern "C"
12810#endif
12811char _xpg4_setrunelocale ();
12812int
12813main ()
12814{
12815return _xpg4_setrunelocale ();
12816  ;
12817  return 0;
12818}
12819_ACEOF
12820if ac_fn_c_try_link "$LINENO"; then :
12821  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
12822else
12823  ac_cv_lib_xpg4__xpg4_setrunelocale=no
12824fi
12825rm -f core conftest.err conftest.$ac_objext \
12826    conftest$ac_exeext conftest.$ac_ext
12827LIBS=$ac_check_lib_save_LIBS
12828fi
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
12830$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
12831if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
12832  LIBS="$LIBS -lxpg4"
12833fi
12834
12835
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
12837$as_echo_n "checking how to create tags... " >&6; }
12838test -f tags && mv tags tags.save
12839if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
12840  TAGPRG="ctags -I INIT+ --fields=+S"
12841elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
12842  TAGPRG="exctags -I INIT+ --fields=+S"
12843elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
12844  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
12845else
12846  TAGPRG="ctags"
12847  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
12848  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
12849  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
12850  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
12851  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
12852  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
12853  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
12854fi
12855test -f tags.save && mv tags.save tags
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
12857$as_echo "$TAGPRG" >&6; }
12858
12859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
12860$as_echo_n "checking how to run man with a section nr... " >&6; }
12861MANDEF="man"
12862(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
12863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
12864$as_echo "$MANDEF" >&6; }
12865if test "$MANDEF" = "man -s"; then
12866  $as_echo "#define USEMAN_S 1" >>confdefs.h
12867
12868fi
12869
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
12871$as_echo_n "checking --disable-nls argument... " >&6; }
12872# Check whether --enable-nls was given.
12873if test "${enable_nls+set}" = set; then :
12874  enableval=$enable_nls;
12875else
12876  enable_nls="yes"
12877fi
12878
12879
12880if test "$enable_nls" = "yes"; then
12881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882$as_echo "no" >&6; }
12883
12884  INSTALL_LANGS=install-languages
12885
12886  INSTALL_TOOL_LANGS=install-tool-languages
12887
12888
12889  # Extract the first word of "msgfmt", so it can be a program name with args.
12890set dummy msgfmt; ac_word=$2
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12892$as_echo_n "checking for $ac_word... " >&6; }
12893if ${ac_cv_prog_MSGFMT+:} false; then :
12894  $as_echo_n "(cached) " >&6
12895else
12896  if test -n "$MSGFMT"; then
12897  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
12898else
12899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900for as_dir in $PATH
12901do
12902  IFS=$as_save_IFS
12903  test -z "$as_dir" && as_dir=.
12904    for ac_exec_ext in '' $ac_executable_extensions; do
12905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12906    ac_cv_prog_MSGFMT="msgfmt"
12907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908    break 2
12909  fi
12910done
12911  done
12912IFS=$as_save_IFS
12913
12914fi
12915fi
12916MSGFMT=$ac_cv_prog_MSGFMT
12917if test -n "$MSGFMT"; then
12918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12919$as_echo "$MSGFMT" >&6; }
12920else
12921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922$as_echo "no" >&6; }
12923fi
12924
12925
12926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
12927$as_echo_n "checking for NLS... " >&6; }
12928  if test -f po/Makefile; then
12929    have_gettext="no"
12930    if test -n "$MSGFMT"; then
12931      olibs=$LIBS
12932      LIBS=""
12933      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934/* end confdefs.h.  */
12935#include <libintl.h>
12936int
12937main ()
12938{
12939gettext("Test");
12940  ;
12941  return 0;
12942}
12943_ACEOF
12944if ac_fn_c_try_link "$LINENO"; then :
12945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
12946$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
12947else
12948  LIBS="-lintl"
12949	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950/* end confdefs.h.  */
12951#include <libintl.h>
12952int
12953main ()
12954{
12955gettext("Test");
12956  ;
12957  return 0;
12958}
12959_ACEOF
12960if ac_fn_c_try_link "$LINENO"; then :
12961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
12962$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
12963	      LIBS="$olibs -lintl"
12964else
12965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
12966$as_echo "gettext() doesn't work" >&6; };
12967	      LIBS=$olibs
12968fi
12969rm -f core conftest.err conftest.$ac_objext \
12970    conftest$ac_exeext conftest.$ac_ext
12971fi
12972rm -f core conftest.err conftest.$ac_objext \
12973    conftest$ac_exeext conftest.$ac_ext
12974    else
12975      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
12976$as_echo "msgfmt not found - disabled" >&6; };
12977    fi
12978    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
12979      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12980
12981      MAKEMO=yes
12982
12983            for ac_func in bind_textdomain_codeset
12984do :
12985  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12986if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
12987  cat >>confdefs.h <<_ACEOF
12988#define HAVE_BIND_TEXTDOMAIN_CODESET 1
12989_ACEOF
12990
12991fi
12992done
12993
12994            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
12995$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
12996      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997/* end confdefs.h.  */
12998#include <libintl.h>
12999		extern int _nl_msg_cat_cntr;
13000int
13001main ()
13002{
13003++_nl_msg_cat_cntr;
13004  ;
13005  return 0;
13006}
13007_ACEOF
13008if ac_fn_c_try_link "$LINENO"; then :
13009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13010$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
13011
13012else
13013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014$as_echo "no" >&6; }
13015fi
13016rm -f core conftest.err conftest.$ac_objext \
13017    conftest$ac_exeext conftest.$ac_ext
13018    fi
13019  else
13020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
13021$as_echo "no \"po/Makefile\" - disabled" >&6; };
13022  fi
13023else
13024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13025$as_echo "yes" >&6; }
13026fi
13027
13028ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13029if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13030  DLL=dlfcn.h
13031else
13032  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13033if test "x$ac_cv_header_dl_h" = xyes; then :
13034  DLL=dl.h
13035fi
13036
13037
13038fi
13039
13040
13041if test x${DLL} = xdlfcn.h; then
13042
13043$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
13044
13045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
13046$as_echo_n "checking for dlopen()... " >&6; }
13047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048/* end confdefs.h.  */
13049
13050int
13051main ()
13052{
13053
13054		extern void* dlopen();
13055		dlopen();
13056
13057  ;
13058  return 0;
13059}
13060_ACEOF
13061if ac_fn_c_try_link "$LINENO"; then :
13062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13063$as_echo "yes" >&6; };
13064
13065$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13066
13067else
13068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069$as_echo "no" >&6; };
13070	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
13071$as_echo_n "checking for dlopen() in -ldl... " >&6; }
13072	      olibs=$LIBS
13073	      LIBS="$LIBS -ldl"
13074	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075/* end confdefs.h.  */
13076
13077int
13078main ()
13079{
13080
13081				extern void* dlopen();
13082				dlopen();
13083
13084  ;
13085  return 0;
13086}
13087_ACEOF
13088if ac_fn_c_try_link "$LINENO"; then :
13089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13090$as_echo "yes" >&6; };
13091
13092$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13093
13094else
13095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096$as_echo "no" >&6; };
13097			  LIBS=$olibs
13098fi
13099rm -f core conftest.err conftest.$ac_objext \
13100    conftest$ac_exeext conftest.$ac_ext
13101fi
13102rm -f core conftest.err conftest.$ac_objext \
13103    conftest$ac_exeext conftest.$ac_ext
13104      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
13105$as_echo_n "checking for dlsym()... " >&6; }
13106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107/* end confdefs.h.  */
13108
13109int
13110main ()
13111{
13112
13113		extern void* dlsym();
13114		dlsym();
13115
13116  ;
13117  return 0;
13118}
13119_ACEOF
13120if ac_fn_c_try_link "$LINENO"; then :
13121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13122$as_echo "yes" >&6; };
13123
13124$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
13125
13126else
13127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128$as_echo "no" >&6; };
13129	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
13130$as_echo_n "checking for dlsym() in -ldl... " >&6; }
13131	      olibs=$LIBS
13132	      LIBS="$LIBS -ldl"
13133	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134/* end confdefs.h.  */
13135
13136int
13137main ()
13138{
13139
13140				extern void* dlsym();
13141				dlsym();
13142
13143  ;
13144  return 0;
13145}
13146_ACEOF
13147if ac_fn_c_try_link "$LINENO"; then :
13148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13149$as_echo "yes" >&6; };
13150
13151$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
13152
13153else
13154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155$as_echo "no" >&6; };
13156			  LIBS=$olibs
13157fi
13158rm -f core conftest.err conftest.$ac_objext \
13159    conftest$ac_exeext conftest.$ac_ext
13160fi
13161rm -f core conftest.err conftest.$ac_objext \
13162    conftest$ac_exeext conftest.$ac_ext
13163elif test x${DLL} = xdl.h; then
13164
13165$as_echo "#define HAVE_DL_H 1" >>confdefs.h
13166
13167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
13168$as_echo_n "checking for shl_load()... " >&6; }
13169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170/* end confdefs.h.  */
13171
13172int
13173main ()
13174{
13175
13176		extern void* shl_load();
13177		shl_load();
13178
13179  ;
13180  return 0;
13181}
13182_ACEOF
13183if ac_fn_c_try_link "$LINENO"; then :
13184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185$as_echo "yes" >&6; };
13186
13187$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13188
13189else
13190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191$as_echo "no" >&6; };
13192	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
13193$as_echo_n "checking for shl_load() in -ldld... " >&6; }
13194	  olibs=$LIBS
13195	  LIBS="$LIBS -ldld"
13196	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197/* end confdefs.h.  */
13198
13199int
13200main ()
13201{
13202
13203			extern void* shl_load();
13204			shl_load();
13205
13206  ;
13207  return 0;
13208}
13209_ACEOF
13210if ac_fn_c_try_link "$LINENO"; then :
13211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13212$as_echo "yes" >&6; };
13213
13214$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13215
13216else
13217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218$as_echo "no" >&6; };
13219		  LIBS=$olibs
13220fi
13221rm -f core conftest.err conftest.$ac_objext \
13222    conftest$ac_exeext conftest.$ac_ext
13223fi
13224rm -f core conftest.err conftest.$ac_objext \
13225    conftest$ac_exeext conftest.$ac_ext
13226fi
13227for ac_header in setjmp.h
13228do :
13229  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
13230if test "x$ac_cv_header_setjmp_h" = xyes; then :
13231  cat >>confdefs.h <<_ACEOF
13232#define HAVE_SETJMP_H 1
13233_ACEOF
13234
13235fi
13236
13237done
13238
13239
13240if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
13241    if echo $LIBS | grep -e '-ldl' >/dev/null; then
13242    LIBS=`echo $LIBS | sed s/-ldl//`
13243    PERL_LIBS="$PERL_LIBS -ldl"
13244  fi
13245fi
13246
13247if test "x$MACOSX" = "xyes"; then
13248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5
13249$as_echo_n "checking whether we need -framework Cocoa... " >&6; }
13250      if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then
13251    LIBS=$"$LIBS -framework Cocoa"
13252    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13253$as_echo "yes" >&6; }
13254  else
13255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256$as_echo "no" >&6; }
13257  fi
13258        if test "x$features" = "xtiny"; then
13259    OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
13260    OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
13261  fi
13262fi
13263if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
13264  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
13265fi
13266
13267DEPEND_CFLAGS_FILTER=
13268if test "$GCC" = yes; then
13269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
13270$as_echo_n "checking for GCC 3 or later... " >&6; }
13271  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
13272  if test "$gccmajor" -gt "2"; then
13273    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
13274    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13275$as_echo "yes" >&6; }
13276  else
13277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278$as_echo "no" >&6; }
13279  fi
13280          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
13281$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
13282  if test "$gccmajor" -gt "3"; then
13283    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/'`
13284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13285$as_echo "yes" >&6; }
13286  else
13287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288$as_echo "no" >&6; }
13289  fi
13290fi
13291
13292
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
13294$as_echo_n "checking linker --as-needed support... " >&6; }
13295LINK_AS_NEEDED=
13296# Check if linker supports --as-needed and --no-as-needed options
13297if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
13298  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
13299  LINK_AS_NEEDED=yes
13300fi
13301if test "$LINK_AS_NEEDED" = yes; then
13302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13303$as_echo "yes" >&6; }
13304else
13305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306$as_echo "no" >&6; }
13307fi
13308
13309
13310# IBM z/OS reset CFLAGS for config.mk
13311if test "$zOSUnix" = "yes"; then
13312	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
13313fi
13314
13315ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
13316
13317cat >confcache <<\_ACEOF
13318# This file is a shell script that caches the results of configure
13319# tests run on this system so they can be shared between configure
13320# scripts and configure runs, see configure's option --config-cache.
13321# It is not useful on other systems.  If it contains results you don't
13322# want to keep, you may remove or edit it.
13323#
13324# config.status only pays attention to the cache file if you give it
13325# the --recheck option to rerun configure.
13326#
13327# `ac_cv_env_foo' variables (set or unset) will be overridden when
13328# loading this file, other *unset* `ac_cv_foo' will be assigned the
13329# following values.
13330
13331_ACEOF
13332
13333# The following way of writing the cache mishandles newlines in values,
13334# but we know of no workaround that is simple, portable, and efficient.
13335# So, we kill variables containing newlines.
13336# Ultrix sh set writes to stderr and can't be redirected directly,
13337# and sets the high bit in the cache file unless we assign to the vars.
13338(
13339  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13340    eval ac_val=\$$ac_var
13341    case $ac_val in #(
13342    *${as_nl}*)
13343      case $ac_var in #(
13344      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13345$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13346      esac
13347      case $ac_var in #(
13348      _ | IFS | as_nl) ;; #(
13349      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13350      *) { eval $ac_var=; unset $ac_var;} ;;
13351      esac ;;
13352    esac
13353  done
13354
13355  (set) 2>&1 |
13356    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13357    *${as_nl}ac_space=\ *)
13358      # `set' does not quote correctly, so add quotes: double-quote
13359      # substitution turns \\\\ into \\, and sed turns \\ into \.
13360      sed -n \
13361	"s/'/'\\\\''/g;
13362	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13363      ;; #(
13364    *)
13365      # `set' quotes correctly as required by POSIX, so do not add quotes.
13366      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13367      ;;
13368    esac |
13369    sort
13370) |
13371  sed '
13372     /^ac_cv_env_/b end
13373     t clear
13374     :clear
13375     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13376     t end
13377     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13378     :end' >>confcache
13379if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13380  if test -w "$cache_file"; then
13381    if test "x$cache_file" != "x/dev/null"; then
13382      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13383$as_echo "$as_me: updating cache $cache_file" >&6;}
13384      if test ! -f "$cache_file" || test -h "$cache_file"; then
13385	cat confcache >"$cache_file"
13386      else
13387        case $cache_file in #(
13388        */* | ?:*)
13389	  mv -f confcache "$cache_file"$$ &&
13390	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13391        *)
13392	  mv -f confcache "$cache_file" ;;
13393	esac
13394      fi
13395    fi
13396  else
13397    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13398$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13399  fi
13400fi
13401rm -f confcache
13402
13403test "x$prefix" = xNONE && prefix=$ac_default_prefix
13404# Let make expand exec_prefix.
13405test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13406
13407DEFS=-DHAVE_CONFIG_H
13408
13409ac_libobjs=
13410ac_ltlibobjs=
13411U=
13412for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13413  # 1. Remove the extension, and $U if already installed.
13414  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13415  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13416  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13417  #    will be set to the directory where LIBOBJS objects are built.
13418  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13419  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13420done
13421LIBOBJS=$ac_libobjs
13422
13423LTLIBOBJS=$ac_ltlibobjs
13424
13425
13426
13427
13428: "${CONFIG_STATUS=./config.status}"
13429ac_write_fail=0
13430ac_clean_files_save=$ac_clean_files
13431ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13433$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13434as_write_fail=0
13435cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13436#! $SHELL
13437# Generated by $as_me.
13438# Run this file to recreate the current configuration.
13439# Compiler output produced by configure, useful for debugging
13440# configure, is in config.log if it exists.
13441
13442debug=false
13443ac_cs_recheck=false
13444ac_cs_silent=false
13445
13446SHELL=\${CONFIG_SHELL-$SHELL}
13447export SHELL
13448_ASEOF
13449cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13450## -------------------- ##
13451## M4sh Initialization. ##
13452## -------------------- ##
13453
13454# Be more Bourne compatible
13455DUALCASE=1; export DUALCASE # for MKS sh
13456if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13457  emulate sh
13458  NULLCMD=:
13459  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13460  # is contrary to our usage.  Disable this feature.
13461  alias -g '${1+"$@"}'='"$@"'
13462  setopt NO_GLOB_SUBST
13463else
13464  case `(set -o) 2>/dev/null` in #(
13465  *posix*) :
13466    set -o posix ;; #(
13467  *) :
13468     ;;
13469esac
13470fi
13471
13472
13473as_nl='
13474'
13475export as_nl
13476# Printing a long string crashes Solaris 7 /usr/bin/printf.
13477as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13478as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13479as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13480# Prefer a ksh shell builtin over an external printf program on Solaris,
13481# but without wasting forks for bash or zsh.
13482if test -z "$BASH_VERSION$ZSH_VERSION" \
13483    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13484  as_echo='print -r --'
13485  as_echo_n='print -rn --'
13486elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13487  as_echo='printf %s\n'
13488  as_echo_n='printf %s'
13489else
13490  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13491    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13492    as_echo_n='/usr/ucb/echo -n'
13493  else
13494    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13495    as_echo_n_body='eval
13496      arg=$1;
13497      case $arg in #(
13498      *"$as_nl"*)
13499	expr "X$arg" : "X\\(.*\\)$as_nl";
13500	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13501      esac;
13502      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13503    '
13504    export as_echo_n_body
13505    as_echo_n='sh -c $as_echo_n_body as_echo'
13506  fi
13507  export as_echo_body
13508  as_echo='sh -c $as_echo_body as_echo'
13509fi
13510
13511# The user is always right.
13512if test "${PATH_SEPARATOR+set}" != set; then
13513  PATH_SEPARATOR=:
13514  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13515    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13516      PATH_SEPARATOR=';'
13517  }
13518fi
13519
13520
13521# IFS
13522# We need space, tab and new line, in precisely that order.  Quoting is
13523# there to prevent editors from complaining about space-tab.
13524# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13525# splitting by setting IFS to empty value.)
13526IFS=" ""	$as_nl"
13527
13528# Find who we are.  Look in the path if we contain no directory separator.
13529as_myself=
13530case $0 in #((
13531  *[\\/]* ) as_myself=$0 ;;
13532  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533for as_dir in $PATH
13534do
13535  IFS=$as_save_IFS
13536  test -z "$as_dir" && as_dir=.
13537    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13538  done
13539IFS=$as_save_IFS
13540
13541     ;;
13542esac
13543# We did not find ourselves, most probably we were run as `sh COMMAND'
13544# in which case we are not to be found in the path.
13545if test "x$as_myself" = x; then
13546  as_myself=$0
13547fi
13548if test ! -f "$as_myself"; then
13549  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13550  exit 1
13551fi
13552
13553# Unset variables that we do not need and which cause bugs (e.g. in
13554# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13555# suppresses any "Segmentation fault" message there.  '((' could
13556# trigger a bug in pdksh 5.2.14.
13557for as_var in BASH_ENV ENV MAIL MAILPATH
13558do eval test x\${$as_var+set} = xset \
13559  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13560done
13561PS1='$ '
13562PS2='> '
13563PS4='+ '
13564
13565# NLS nuisances.
13566LC_ALL=C
13567export LC_ALL
13568LANGUAGE=C
13569export LANGUAGE
13570
13571# CDPATH.
13572(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13573
13574
13575# as_fn_error STATUS ERROR [LINENO LOG_FD]
13576# ----------------------------------------
13577# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13578# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13579# script with STATUS, using 1 if that was 0.
13580as_fn_error ()
13581{
13582  as_status=$1; test $as_status -eq 0 && as_status=1
13583  if test "$4"; then
13584    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13585    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13586  fi
13587  $as_echo "$as_me: error: $2" >&2
13588  as_fn_exit $as_status
13589} # as_fn_error
13590
13591
13592# as_fn_set_status STATUS
13593# -----------------------
13594# Set $? to STATUS, without forking.
13595as_fn_set_status ()
13596{
13597  return $1
13598} # as_fn_set_status
13599
13600# as_fn_exit STATUS
13601# -----------------
13602# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13603as_fn_exit ()
13604{
13605  set +e
13606  as_fn_set_status $1
13607  exit $1
13608} # as_fn_exit
13609
13610# as_fn_unset VAR
13611# ---------------
13612# Portably unset VAR.
13613as_fn_unset ()
13614{
13615  { eval $1=; unset $1;}
13616}
13617as_unset=as_fn_unset
13618# as_fn_append VAR VALUE
13619# ----------------------
13620# Append the text in VALUE to the end of the definition contained in VAR. Take
13621# advantage of any shell optimizations that allow amortized linear growth over
13622# repeated appends, instead of the typical quadratic growth present in naive
13623# implementations.
13624if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13625  eval 'as_fn_append ()
13626  {
13627    eval $1+=\$2
13628  }'
13629else
13630  as_fn_append ()
13631  {
13632    eval $1=\$$1\$2
13633  }
13634fi # as_fn_append
13635
13636# as_fn_arith ARG...
13637# ------------------
13638# Perform arithmetic evaluation on the ARGs, and store the result in the
13639# global $as_val. Take advantage of shells that can avoid forks. The arguments
13640# must be portable across $(()) and expr.
13641if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13642  eval 'as_fn_arith ()
13643  {
13644    as_val=$(( $* ))
13645  }'
13646else
13647  as_fn_arith ()
13648  {
13649    as_val=`expr "$@" || test $? -eq 1`
13650  }
13651fi # as_fn_arith
13652
13653
13654if expr a : '\(a\)' >/dev/null 2>&1 &&
13655   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13656  as_expr=expr
13657else
13658  as_expr=false
13659fi
13660
13661if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13662  as_basename=basename
13663else
13664  as_basename=false
13665fi
13666
13667if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13668  as_dirname=dirname
13669else
13670  as_dirname=false
13671fi
13672
13673as_me=`$as_basename -- "$0" ||
13674$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13675	 X"$0" : 'X\(//\)$' \| \
13676	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13677$as_echo X/"$0" |
13678    sed '/^.*\/\([^/][^/]*\)\/*$/{
13679	    s//\1/
13680	    q
13681	  }
13682	  /^X\/\(\/\/\)$/{
13683	    s//\1/
13684	    q
13685	  }
13686	  /^X\/\(\/\).*/{
13687	    s//\1/
13688	    q
13689	  }
13690	  s/.*/./; q'`
13691
13692# Avoid depending upon Character Ranges.
13693as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13694as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13695as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13696as_cr_digits='0123456789'
13697as_cr_alnum=$as_cr_Letters$as_cr_digits
13698
13699ECHO_C= ECHO_N= ECHO_T=
13700case `echo -n x` in #(((((
13701-n*)
13702  case `echo 'xy\c'` in
13703  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13704  xy)  ECHO_C='\c';;
13705  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13706       ECHO_T='	';;
13707  esac;;
13708*)
13709  ECHO_N='-n';;
13710esac
13711
13712rm -f conf$$ conf$$.exe conf$$.file
13713if test -d conf$$.dir; then
13714  rm -f conf$$.dir/conf$$.file
13715else
13716  rm -f conf$$.dir
13717  mkdir conf$$.dir 2>/dev/null
13718fi
13719if (echo >conf$$.file) 2>/dev/null; then
13720  if ln -s conf$$.file conf$$ 2>/dev/null; then
13721    as_ln_s='ln -s'
13722    # ... but there are two gotchas:
13723    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13724    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13725    # In both cases, we have to default to `cp -pR'.
13726    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13727      as_ln_s='cp -pR'
13728  elif ln conf$$.file conf$$ 2>/dev/null; then
13729    as_ln_s=ln
13730  else
13731    as_ln_s='cp -pR'
13732  fi
13733else
13734  as_ln_s='cp -pR'
13735fi
13736rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13737rmdir conf$$.dir 2>/dev/null
13738
13739
13740# as_fn_mkdir_p
13741# -------------
13742# Create "$as_dir" as a directory, including parents if necessary.
13743as_fn_mkdir_p ()
13744{
13745
13746  case $as_dir in #(
13747  -*) as_dir=./$as_dir;;
13748  esac
13749  test -d "$as_dir" || eval $as_mkdir_p || {
13750    as_dirs=
13751    while :; do
13752      case $as_dir in #(
13753      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13754      *) as_qdir=$as_dir;;
13755      esac
13756      as_dirs="'$as_qdir' $as_dirs"
13757      as_dir=`$as_dirname -- "$as_dir" ||
13758$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13759	 X"$as_dir" : 'X\(//\)[^/]' \| \
13760	 X"$as_dir" : 'X\(//\)$' \| \
13761	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13762$as_echo X"$as_dir" |
13763    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13764	    s//\1/
13765	    q
13766	  }
13767	  /^X\(\/\/\)[^/].*/{
13768	    s//\1/
13769	    q
13770	  }
13771	  /^X\(\/\/\)$/{
13772	    s//\1/
13773	    q
13774	  }
13775	  /^X\(\/\).*/{
13776	    s//\1/
13777	    q
13778	  }
13779	  s/.*/./; q'`
13780      test -d "$as_dir" && break
13781    done
13782    test -z "$as_dirs" || eval "mkdir $as_dirs"
13783  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13784
13785
13786} # as_fn_mkdir_p
13787if mkdir -p . 2>/dev/null; then
13788  as_mkdir_p='mkdir -p "$as_dir"'
13789else
13790  test -d ./-p && rmdir ./-p
13791  as_mkdir_p=false
13792fi
13793
13794
13795# as_fn_executable_p FILE
13796# -----------------------
13797# Test if FILE is an executable regular file.
13798as_fn_executable_p ()
13799{
13800  test -f "$1" && test -x "$1"
13801} # as_fn_executable_p
13802as_test_x='test -x'
13803as_executable_p=as_fn_executable_p
13804
13805# Sed expression to map a string onto a valid CPP name.
13806as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13807
13808# Sed expression to map a string onto a valid variable name.
13809as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13810
13811
13812exec 6>&1
13813## ----------------------------------- ##
13814## Main body of $CONFIG_STATUS script. ##
13815## ----------------------------------- ##
13816_ASEOF
13817test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13818
13819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13820# Save the log message, to keep $0 and so on meaningful, and to
13821# report actual input values of CONFIG_FILES etc. instead of their
13822# values after options handling.
13823ac_log="
13824This file was extended by $as_me, which was
13825generated by GNU Autoconf 2.69.  Invocation command line was
13826
13827  CONFIG_FILES    = $CONFIG_FILES
13828  CONFIG_HEADERS  = $CONFIG_HEADERS
13829  CONFIG_LINKS    = $CONFIG_LINKS
13830  CONFIG_COMMANDS = $CONFIG_COMMANDS
13831  $ $0 $@
13832
13833on `(hostname || uname -n) 2>/dev/null | sed 1q`
13834"
13835
13836_ACEOF
13837
13838case $ac_config_files in *"
13839"*) set x $ac_config_files; shift; ac_config_files=$*;;
13840esac
13841
13842case $ac_config_headers in *"
13843"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13844esac
13845
13846
13847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13848# Files that config.status was made for.
13849config_files="$ac_config_files"
13850config_headers="$ac_config_headers"
13851
13852_ACEOF
13853
13854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13855ac_cs_usage="\
13856\`$as_me' instantiates files and other configuration actions
13857from templates according to the current configuration.  Unless the files
13858and actions are specified as TAGs, all are instantiated by default.
13859
13860Usage: $0 [OPTION]... [TAG]...
13861
13862  -h, --help       print this help, then exit
13863  -V, --version    print version number and configuration settings, then exit
13864      --config     print configuration, then exit
13865  -q, --quiet, --silent
13866                   do not print progress messages
13867  -d, --debug      don't remove temporary files
13868      --recheck    update $as_me by reconfiguring in the same conditions
13869      --file=FILE[:TEMPLATE]
13870                   instantiate the configuration file FILE
13871      --header=FILE[:TEMPLATE]
13872                   instantiate the configuration header FILE
13873
13874Configuration files:
13875$config_files
13876
13877Configuration headers:
13878$config_headers
13879
13880Report bugs to the package provider."
13881
13882_ACEOF
13883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13884ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13885ac_cs_version="\\
13886config.status
13887configured by $0, generated by GNU Autoconf 2.69,
13888  with options \\"\$ac_cs_config\\"
13889
13890Copyright (C) 2012 Free Software Foundation, Inc.
13891This config.status script is free software; the Free Software Foundation
13892gives unlimited permission to copy, distribute and modify it."
13893
13894ac_pwd='$ac_pwd'
13895srcdir='$srcdir'
13896AWK='$AWK'
13897test -n "\$AWK" || AWK=awk
13898_ACEOF
13899
13900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13901# The default lists apply if the user does not specify any file.
13902ac_need_defaults=:
13903while test $# != 0
13904do
13905  case $1 in
13906  --*=?*)
13907    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13908    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13909    ac_shift=:
13910    ;;
13911  --*=)
13912    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13913    ac_optarg=
13914    ac_shift=:
13915    ;;
13916  *)
13917    ac_option=$1
13918    ac_optarg=$2
13919    ac_shift=shift
13920    ;;
13921  esac
13922
13923  case $ac_option in
13924  # Handling of the options.
13925  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13926    ac_cs_recheck=: ;;
13927  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13928    $as_echo "$ac_cs_version"; exit ;;
13929  --config | --confi | --conf | --con | --co | --c )
13930    $as_echo "$ac_cs_config"; exit ;;
13931  --debug | --debu | --deb | --de | --d | -d )
13932    debug=: ;;
13933  --file | --fil | --fi | --f )
13934    $ac_shift
13935    case $ac_optarg in
13936    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13937    '') as_fn_error $? "missing file argument" ;;
13938    esac
13939    as_fn_append CONFIG_FILES " '$ac_optarg'"
13940    ac_need_defaults=false;;
13941  --header | --heade | --head | --hea )
13942    $ac_shift
13943    case $ac_optarg in
13944    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13945    esac
13946    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13947    ac_need_defaults=false;;
13948  --he | --h)
13949    # Conflict between --help and --header
13950    as_fn_error $? "ambiguous option: \`$1'
13951Try \`$0 --help' for more information.";;
13952  --help | --hel | -h )
13953    $as_echo "$ac_cs_usage"; exit ;;
13954  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13955  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13956    ac_cs_silent=: ;;
13957
13958  # This is an error.
13959  -*) as_fn_error $? "unrecognized option: \`$1'
13960Try \`$0 --help' for more information." ;;
13961
13962  *) as_fn_append ac_config_targets " $1"
13963     ac_need_defaults=false ;;
13964
13965  esac
13966  shift
13967done
13968
13969ac_configure_extra_args=
13970
13971if $ac_cs_silent; then
13972  exec 6>/dev/null
13973  ac_configure_extra_args="$ac_configure_extra_args --silent"
13974fi
13975
13976_ACEOF
13977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13978if \$ac_cs_recheck; then
13979  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13980  shift
13981  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13982  CONFIG_SHELL='$SHELL'
13983  export CONFIG_SHELL
13984  exec "\$@"
13985fi
13986
13987_ACEOF
13988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13989exec 5>>auto/config.log
13990{
13991  echo
13992  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13993## Running $as_me. ##
13994_ASBOX
13995  $as_echo "$ac_log"
13996} >&5
13997
13998_ACEOF
13999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14000_ACEOF
14001
14002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14003
14004# Handling of arguments.
14005for ac_config_target in $ac_config_targets
14006do
14007  case $ac_config_target in
14008    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
14009    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
14010
14011  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14012  esac
14013done
14014
14015
14016# If the user did not use the arguments to specify the items to instantiate,
14017# then the envvar interface is used.  Set only those that are not.
14018# We use the long form for the default assignment because of an extremely
14019# bizarre bug on SunOS 4.1.3.
14020if $ac_need_defaults; then
14021  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14022  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14023fi
14024
14025# Have a temporary directory for convenience.  Make it in the build tree
14026# simply because there is no reason against having it here, and in addition,
14027# creating and moving files from /tmp can sometimes cause problems.
14028# Hook for its removal unless debugging.
14029# Note that there is a small window in which the directory will not be cleaned:
14030# after its creation but before its name has been assigned to `$tmp'.
14031$debug ||
14032{
14033  tmp= ac_tmp=
14034  trap 'exit_status=$?
14035  : "${ac_tmp:=$tmp}"
14036  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14037' 0
14038  trap 'as_fn_exit 1' 1 2 13 15
14039}
14040# Create a (secure) tmp directory for tmp files.
14041
14042{
14043  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14044  test -d "$tmp"
14045}  ||
14046{
14047  tmp=./conf$$-$RANDOM
14048  (umask 077 && mkdir "$tmp")
14049} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14050ac_tmp=$tmp
14051
14052# Set up the scripts for CONFIG_FILES section.
14053# No need to generate them if there are no CONFIG_FILES.
14054# This happens for instance with `./config.status config.h'.
14055if test -n "$CONFIG_FILES"; then
14056
14057
14058ac_cr=`echo X | tr X '\015'`
14059# On cygwin, bash can eat \r inside `` if the user requested igncr.
14060# But we know of no other shell where ac_cr would be empty at this
14061# point, so we can use a bashism as a fallback.
14062if test "x$ac_cr" = x; then
14063  eval ac_cr=\$\'\\r\'
14064fi
14065ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14066if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14067  ac_cs_awk_cr='\\r'
14068else
14069  ac_cs_awk_cr=$ac_cr
14070fi
14071
14072echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14073_ACEOF
14074
14075
14076{
14077  echo "cat >conf$$subs.awk <<_ACEOF" &&
14078  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14079  echo "_ACEOF"
14080} >conf$$subs.sh ||
14081  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14082ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14083ac_delim='%!_!# '
14084for ac_last_try in false false false false false :; do
14085  . ./conf$$subs.sh ||
14086    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14087
14088  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14089  if test $ac_delim_n = $ac_delim_num; then
14090    break
14091  elif $ac_last_try; then
14092    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14093  else
14094    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14095  fi
14096done
14097rm -f conf$$subs.sh
14098
14099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14100cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14101_ACEOF
14102sed -n '
14103h
14104s/^/S["/; s/!.*/"]=/
14105p
14106g
14107s/^[^!]*!//
14108:repl
14109t repl
14110s/'"$ac_delim"'$//
14111t delim
14112:nl
14113h
14114s/\(.\{148\}\)..*/\1/
14115t more1
14116s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14117p
14118n
14119b repl
14120:more1
14121s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14122p
14123g
14124s/.\{148\}//
14125t nl
14126:delim
14127h
14128s/\(.\{148\}\)..*/\1/
14129t more2
14130s/["\\]/\\&/g; s/^/"/; s/$/"/
14131p
14132b
14133:more2
14134s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14135p
14136g
14137s/.\{148\}//
14138t delim
14139' <conf$$subs.awk | sed '
14140/^[^""]/{
14141  N
14142  s/\n//
14143}
14144' >>$CONFIG_STATUS || ac_write_fail=1
14145rm -f conf$$subs.awk
14146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14147_ACAWK
14148cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14149  for (key in S) S_is_set[key] = 1
14150  FS = ""
14151
14152}
14153{
14154  line = $ 0
14155  nfields = split(line, field, "@")
14156  substed = 0
14157  len = length(field[1])
14158  for (i = 2; i < nfields; i++) {
14159    key = field[i]
14160    keylen = length(key)
14161    if (S_is_set[key]) {
14162      value = S[key]
14163      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14164      len += length(value) + length(field[++i])
14165      substed = 1
14166    } else
14167      len += 1 + keylen
14168  }
14169
14170  print line
14171}
14172
14173_ACAWK
14174_ACEOF
14175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14176if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14177  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14178else
14179  cat
14180fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14181  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14182_ACEOF
14183
14184# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14185# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14186# trailing colons and then remove the whole line if VPATH becomes empty
14187# (actually we leave an empty line to preserve line numbers).
14188if test "x$srcdir" = x.; then
14189  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14190h
14191s///
14192s/^/:/
14193s/[	 ]*$/:/
14194s/:\$(srcdir):/:/g
14195s/:\${srcdir}:/:/g
14196s/:@srcdir@:/:/g
14197s/^:*//
14198s/:*$//
14199x
14200s/\(=[	 ]*\).*/\1/
14201G
14202s/\n//
14203s/^[^=]*=[	 ]*$//
14204}'
14205fi
14206
14207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14208fi # test -n "$CONFIG_FILES"
14209
14210# Set up the scripts for CONFIG_HEADERS section.
14211# No need to generate them if there are no CONFIG_HEADERS.
14212# This happens for instance with `./config.status Makefile'.
14213if test -n "$CONFIG_HEADERS"; then
14214cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14215BEGIN {
14216_ACEOF
14217
14218# Transform confdefs.h into an awk script `defines.awk', embedded as
14219# here-document in config.status, that substitutes the proper values into
14220# config.h.in to produce config.h.
14221
14222# Create a delimiter string that does not exist in confdefs.h, to ease
14223# handling of long lines.
14224ac_delim='%!_!# '
14225for ac_last_try in false false :; do
14226  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14227  if test -z "$ac_tt"; then
14228    break
14229  elif $ac_last_try; then
14230    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14231  else
14232    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14233  fi
14234done
14235
14236# For the awk script, D is an array of macro values keyed by name,
14237# likewise P contains macro parameters if any.  Preserve backslash
14238# newline sequences.
14239
14240ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14241sed -n '
14242s/.\{148\}/&'"$ac_delim"'/g
14243t rset
14244:rset
14245s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14246t def
14247d
14248:def
14249s/\\$//
14250t bsnl
14251s/["\\]/\\&/g
14252s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14253D["\1"]=" \3"/p
14254s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14255d
14256:bsnl
14257s/["\\]/\\&/g
14258s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14259D["\1"]=" \3\\\\\\n"\\/p
14260t cont
14261s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14262t cont
14263d
14264:cont
14265n
14266s/.\{148\}/&'"$ac_delim"'/g
14267t clear
14268:clear
14269s/\\$//
14270t bsnlc
14271s/["\\]/\\&/g; s/^/"/; s/$/"/p
14272d
14273:bsnlc
14274s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14275b cont
14276' <confdefs.h | sed '
14277s/'"$ac_delim"'/"\\\
14278"/g' >>$CONFIG_STATUS || ac_write_fail=1
14279
14280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14281  for (key in D) D_is_set[key] = 1
14282  FS = ""
14283}
14284/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14285  line = \$ 0
14286  split(line, arg, " ")
14287  if (arg[1] == "#") {
14288    defundef = arg[2]
14289    mac1 = arg[3]
14290  } else {
14291    defundef = substr(arg[1], 2)
14292    mac1 = arg[2]
14293  }
14294  split(mac1, mac2, "(") #)
14295  macro = mac2[1]
14296  prefix = substr(line, 1, index(line, defundef) - 1)
14297  if (D_is_set[macro]) {
14298    # Preserve the white space surrounding the "#".
14299    print prefix "define", macro P[macro] D[macro]
14300    next
14301  } else {
14302    # Replace #undef with comments.  This is necessary, for example,
14303    # in the case of _POSIX_SOURCE, which is predefined and required
14304    # on some systems where configure will not decide to define it.
14305    if (defundef == "undef") {
14306      print "/*", prefix defundef, macro, "*/"
14307      next
14308    }
14309  }
14310}
14311{ print }
14312_ACAWK
14313_ACEOF
14314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14315  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14316fi # test -n "$CONFIG_HEADERS"
14317
14318
14319eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
14320shift
14321for ac_tag
14322do
14323  case $ac_tag in
14324  :[FHLC]) ac_mode=$ac_tag; continue;;
14325  esac
14326  case $ac_mode$ac_tag in
14327  :[FHL]*:*);;
14328  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14329  :[FH]-) ac_tag=-:-;;
14330  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14331  esac
14332  ac_save_IFS=$IFS
14333  IFS=:
14334  set x $ac_tag
14335  IFS=$ac_save_IFS
14336  shift
14337  ac_file=$1
14338  shift
14339
14340  case $ac_mode in
14341  :L) ac_source=$1;;
14342  :[FH])
14343    ac_file_inputs=
14344    for ac_f
14345    do
14346      case $ac_f in
14347      -) ac_f="$ac_tmp/stdin";;
14348      *) # Look for the file first in the build tree, then in the source tree
14349	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14350	 # because $ac_f cannot contain `:'.
14351	 test -f "$ac_f" ||
14352	   case $ac_f in
14353	   [\\/$]*) false;;
14354	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14355	   esac ||
14356	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14357      esac
14358      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14359      as_fn_append ac_file_inputs " '$ac_f'"
14360    done
14361
14362    # Let's still pretend it is `configure' which instantiates (i.e., don't
14363    # use $as_me), people would be surprised to read:
14364    #    /* config.h.  Generated by config.status.  */
14365    configure_input='Generated from '`
14366	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14367	`' by configure.'
14368    if test x"$ac_file" != x-; then
14369      configure_input="$ac_file.  $configure_input"
14370      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14371$as_echo "$as_me: creating $ac_file" >&6;}
14372    fi
14373    # Neutralize special characters interpreted by sed in replacement strings.
14374    case $configure_input in #(
14375    *\&* | *\|* | *\\* )
14376       ac_sed_conf_input=`$as_echo "$configure_input" |
14377       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14378    *) ac_sed_conf_input=$configure_input;;
14379    esac
14380
14381    case $ac_tag in
14382    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14383      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14384    esac
14385    ;;
14386  esac
14387
14388  ac_dir=`$as_dirname -- "$ac_file" ||
14389$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14390	 X"$ac_file" : 'X\(//\)[^/]' \| \
14391	 X"$ac_file" : 'X\(//\)$' \| \
14392	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14393$as_echo X"$ac_file" |
14394    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14395	    s//\1/
14396	    q
14397	  }
14398	  /^X\(\/\/\)[^/].*/{
14399	    s//\1/
14400	    q
14401	  }
14402	  /^X\(\/\/\)$/{
14403	    s//\1/
14404	    q
14405	  }
14406	  /^X\(\/\).*/{
14407	    s//\1/
14408	    q
14409	  }
14410	  s/.*/./; q'`
14411  as_dir="$ac_dir"; as_fn_mkdir_p
14412  ac_builddir=.
14413
14414case "$ac_dir" in
14415.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14416*)
14417  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14418  # A ".." for each directory in $ac_dir_suffix.
14419  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14420  case $ac_top_builddir_sub in
14421  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14422  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14423  esac ;;
14424esac
14425ac_abs_top_builddir=$ac_pwd
14426ac_abs_builddir=$ac_pwd$ac_dir_suffix
14427# for backward compatibility:
14428ac_top_builddir=$ac_top_build_prefix
14429
14430case $srcdir in
14431  .)  # We are building in place.
14432    ac_srcdir=.
14433    ac_top_srcdir=$ac_top_builddir_sub
14434    ac_abs_top_srcdir=$ac_pwd ;;
14435  [\\/]* | ?:[\\/]* )  # Absolute name.
14436    ac_srcdir=$srcdir$ac_dir_suffix;
14437    ac_top_srcdir=$srcdir
14438    ac_abs_top_srcdir=$srcdir ;;
14439  *) # Relative name.
14440    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14441    ac_top_srcdir=$ac_top_build_prefix$srcdir
14442    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14443esac
14444ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14445
14446
14447  case $ac_mode in
14448  :F)
14449  #
14450  # CONFIG_FILE
14451  #
14452
14453_ACEOF
14454
14455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14456# If the template does not know about datarootdir, expand it.
14457# FIXME: This hack should be removed a few years after 2.60.
14458ac_datarootdir_hack=; ac_datarootdir_seen=
14459ac_sed_dataroot='
14460/datarootdir/ {
14461  p
14462  q
14463}
14464/@datadir@/p
14465/@docdir@/p
14466/@infodir@/p
14467/@localedir@/p
14468/@mandir@/p'
14469case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14470*datarootdir*) ac_datarootdir_seen=yes;;
14471*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14472  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14473$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14474_ACEOF
14475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14476  ac_datarootdir_hack='
14477  s&@datadir@&$datadir&g
14478  s&@docdir@&$docdir&g
14479  s&@infodir@&$infodir&g
14480  s&@localedir@&$localedir&g
14481  s&@mandir@&$mandir&g
14482  s&\\\${datarootdir}&$datarootdir&g' ;;
14483esac
14484_ACEOF
14485
14486# Neutralize VPATH when `$srcdir' = `.'.
14487# Shell code in configure.ac might set extrasub.
14488# FIXME: do we really want to maintain this feature?
14489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14490ac_sed_extra="$ac_vpsub
14491$extrasub
14492_ACEOF
14493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14494:t
14495/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14496s|@configure_input@|$ac_sed_conf_input|;t t
14497s&@top_builddir@&$ac_top_builddir_sub&;t t
14498s&@top_build_prefix@&$ac_top_build_prefix&;t t
14499s&@srcdir@&$ac_srcdir&;t t
14500s&@abs_srcdir@&$ac_abs_srcdir&;t t
14501s&@top_srcdir@&$ac_top_srcdir&;t t
14502s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14503s&@builddir@&$ac_builddir&;t t
14504s&@abs_builddir@&$ac_abs_builddir&;t t
14505s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14506$ac_datarootdir_hack
14507"
14508eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14509  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14510
14511test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14512  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14513  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14514      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14515  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14516which seems to be undefined.  Please make sure it is defined" >&5
14517$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14518which seems to be undefined.  Please make sure it is defined" >&2;}
14519
14520  rm -f "$ac_tmp/stdin"
14521  case $ac_file in
14522  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14523  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14524  esac \
14525  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14526 ;;
14527  :H)
14528  #
14529  # CONFIG_HEADER
14530  #
14531  if test x"$ac_file" != x-; then
14532    {
14533      $as_echo "/* $configure_input  */" \
14534      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14535    } >"$ac_tmp/config.h" \
14536      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14537    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14538      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14539$as_echo "$as_me: $ac_file is unchanged" >&6;}
14540    else
14541      rm -f "$ac_file"
14542      mv "$ac_tmp/config.h" "$ac_file" \
14543	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14544    fi
14545  else
14546    $as_echo "/* $configure_input  */" \
14547      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14548      || as_fn_error $? "could not create -" "$LINENO" 5
14549  fi
14550 ;;
14551
14552
14553  esac
14554
14555done # for ac_tag
14556
14557
14558as_fn_exit 0
14559_ACEOF
14560ac_clean_files=$ac_clean_files_save
14561
14562test $ac_write_fail = 0 ||
14563  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14564
14565
14566# configure is writing to config.log, and then calls config.status.
14567# config.status does its own redirection, appending to config.log.
14568# Unfortunately, on DOS this fails, as config.log is still kept open
14569# by configure, so config.status won't be able to write to it; its
14570# output is simply discarded.  So we exec the FD to /dev/null,
14571# effectively closing config.log, so it can be properly (re)opened and
14572# appended to by config.status.  When coming back to configure, we
14573# need to make the FD available again.
14574if test "$no_create" != yes; then
14575  ac_cs_success=:
14576  ac_config_status_args=
14577  test "$silent" = yes &&
14578    ac_config_status_args="$ac_config_status_args --quiet"
14579  exec 5>/dev/null
14580  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14581  exec 5>>auto/config.log
14582  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14583  # would make configure fail if this is the last instruction.
14584  $ac_cs_success || as_fn_exit 1
14585fi
14586if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14587  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14588$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14589fi
14590
14591
14592