xref: /vim-8.2.3635/src/auto/configure (revision 4c05fa08)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell [email protected] about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="vim.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624LINK_AS_NEEDED
625DEPEND_CFLAGS_FILTER
626MAKEMO
627MSGFMT
628INSTALL_TOOL_LANGS
629INSTALL_LANGS
630TAGPRG
631HANGULIN_OBJ
632HANGULIN_SRC
633GUI_X_LIBS
634GUITYPE
635GUI_LIB_LOC
636GUI_INC_LOC
637NARROW_PROTO
638MOTIF_LIBNAME
639GRESOURCE_OBJ
640GRESOURCE_SRC
641UPDATE_DESKTOP_DATABASE
642GTK_UPDATE_ICON_CACHE
643GLIB_COMPILE_RESOURCES
644GNOME_INCLUDEDIR
645GNOME_LIBDIR
646GNOME_LIBS
647GTK_LIBNAME
648GTK_LIBS
649GTK_CFLAGS
650PKG_CONFIG
651X_LIB
652X_EXTRA_LIBS
653X_LIBS
654X_PRE_LIBS
655X_CFLAGS
656XMKMF
657xmkmfpath
658TERM_OBJ
659TERM_SRC
660CHANNEL_OBJ
661CHANNEL_SRC
662NETBEANS_OBJ
663NETBEANS_SRC
664WORKSHOP_OBJ
665WORKSHOP_SRC
666RUBY_LIBS
667RUBY_CFLAGS
668RUBY_PRO
669RUBY_OBJ
670RUBY_SRC
671vi_cv_path_ruby
672TCL_LIBS
673TCL_CFLAGS
674TCL_PRO
675TCL_OBJ
676TCL_SRC
677vi_cv_path_tcl
678PYTHON3_OBJ
679PYTHON3_SRC
680PYTHON3_CFLAGS
681PYTHON3_LIBS
682vi_cv_path_python3
683PYTHON_OBJ
684PYTHON_SRC
685PYTHON_CFLAGS
686PYTHON_LIBS
687vi_cv_path_python
688PERL_LIBS
689PERL_CFLAGS
690PERL_PRO
691PERL_OBJ
692PERL_SRC
693shrpenv
694vi_cv_perl_xsubpp
695vi_cv_perllib
696vi_cv_path_perl
697MZSCHEME_MZC
698MZSCHEME_EXTRA
699MZSCHEME_CFLAGS
700MZSCHEME_LIBS
701MZSCHEME_PRO
702MZSCHEME_OBJ
703MZSCHEME_SRC
704vi_cv_path_mzscheme
705LUA_CFLAGS
706LUA_LIBS
707LUA_PRO
708LUA_OBJ
709LUA_SRC
710vi_cv_path_plain_lua
711vi_cv_path_luajit
712vi_cv_path_lua
713compiledby
714dogvimdiff
715dovimdiff
716QUOTESED
717line_break
718VIEWNAME
719EXNAME
720VIMNAME
721OS_EXTRA_OBJ
722OS_EXTRA_SRC
723XCODE_SELECT
724CPP_MM
725CROSS_COMPILING
726STRIP
727AWK
728FGREP
729EGREP
730GREP
731CPP
732OBJEXT
733EXEEXT
734ac_ct_CC
735CPPFLAGS
736LDFLAGS
737CFLAGS
738CC
739SET_MAKE
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759runstatedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_fail_if_missing
783enable_darwin
784with_mac_arch
785with_developer_dir
786with_local_dir
787with_vim_name
788with_ex_name
789with_view_name
790with_global_runtime
791with_modified_by
792enable_smack
793enable_selinux
794with_features
795with_compiledby
796enable_xsmp
797enable_xsmp_interact
798enable_luainterp
799with_lua_prefix
800with_luajit
801enable_mzschemeinterp
802with_plthome
803enable_perlinterp
804enable_pythoninterp
805with_python_command
806with_python_config_dir
807enable_python3interp
808with_python3_command
809with_python3_config_dir
810enable_tclinterp
811with_tclsh
812enable_rubyinterp
813with_ruby_command
814enable_cscope
815enable_workshop
816enable_netbeans
817enable_channel
818enable_terminal
819enable_autoservername
820enable_multibyte
821enable_rightleft
822enable_arabic
823enable_farsi
824enable_hangulinput
825enable_xim
826enable_fontset
827with_x
828enable_gui
829enable_gtk2_check
830enable_gnome_check
831enable_gtk3_check
832enable_motif_check
833enable_athena_check
834enable_nextaw_check
835enable_carbon_check
836enable_gtktest
837with_gnome_includes
838with_gnome_libs
839with_gnome
840enable_icon_cache_update
841enable_desktop_database_update
842with_motif_lib
843with_tlib
844enable_largefile
845enable_acl
846enable_gpm
847enable_sysmouse
848enable_nls
849'
850      ac_precious_vars='build_alias
851host_alias
852target_alias
853CC
854CFLAGS
855LDFLAGS
856LIBS
857CPPFLAGS
858CPP
859XMKMF'
860
861
862# Initialize some variables set by options.
863ac_init_help=
864ac_init_version=false
865ac_unrecognized_opts=
866ac_unrecognized_sep=
867# The variables have the same names as the options, with
868# dashes changed to underlines.
869cache_file=/dev/null
870exec_prefix=NONE
871no_create=
872no_recursion=
873prefix=NONE
874program_prefix=NONE
875program_suffix=NONE
876program_transform_name=s,x,x,
877silent=
878site=
879srcdir=
880verbose=
881x_includes=NONE
882x_libraries=NONE
883
884# Installation directory options.
885# These are left unexpanded so users can "make install exec_prefix=/foo"
886# and all the variables that are supposed to be based on exec_prefix
887# by default will actually change.
888# Use braces instead of parens because sh, perl, etc. also accept them.
889# (The list follows the same order as the GNU Coding Standards.)
890bindir='${exec_prefix}/bin'
891sbindir='${exec_prefix}/sbin'
892libexecdir='${exec_prefix}/libexec'
893datarootdir='${prefix}/share'
894datadir='${datarootdir}'
895sysconfdir='${prefix}/etc'
896sharedstatedir='${prefix}/com'
897localstatedir='${prefix}/var'
898runstatedir='${localstatedir}/run'
899includedir='${prefix}/include'
900oldincludedir='/usr/include'
901docdir='${datarootdir}/doc/${PACKAGE}'
902infodir='${datarootdir}/info'
903htmldir='${docdir}'
904dvidir='${docdir}'
905pdfdir='${docdir}'
906psdir='${docdir}'
907libdir='${exec_prefix}/lib'
908localedir='${datarootdir}/locale'
909mandir='${datarootdir}/man'
910
911ac_prev=
912ac_dashdash=
913for ac_option
914do
915  # If the previous option needs an argument, assign it.
916  if test -n "$ac_prev"; then
917    eval $ac_prev=\$ac_option
918    ac_prev=
919    continue
920  fi
921
922  case $ac_option in
923  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924  *=)   ac_optarg= ;;
925  *)    ac_optarg=yes ;;
926  esac
927
928  # Accept the important Cygnus configure options, so we can diagnose typos.
929
930  case $ac_dashdash$ac_option in
931  --)
932    ac_dashdash=yes ;;
933
934  -bindir | --bindir | --bindi | --bind | --bin | --bi)
935    ac_prev=bindir ;;
936  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937    bindir=$ac_optarg ;;
938
939  -build | --build | --buil | --bui | --bu)
940    ac_prev=build_alias ;;
941  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942    build_alias=$ac_optarg ;;
943
944  -cache-file | --cache-file | --cache-fil | --cache-fi \
945  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946    ac_prev=cache_file ;;
947  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949    cache_file=$ac_optarg ;;
950
951  --config-cache | -C)
952    cache_file=config.cache ;;
953
954  -datadir | --datadir | --datadi | --datad)
955    ac_prev=datadir ;;
956  -datadir=* | --datadir=* | --datadi=* | --datad=*)
957    datadir=$ac_optarg ;;
958
959  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960  | --dataroo | --dataro | --datar)
961    ac_prev=datarootdir ;;
962  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964    datarootdir=$ac_optarg ;;
965
966  -disable-* | --disable-*)
967    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968    # Reject names that are not valid shell variable names.
969    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970      as_fn_error $? "invalid feature name: $ac_useropt"
971    ac_useropt_orig=$ac_useropt
972    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973    case $ac_user_opts in
974      *"
975"enable_$ac_useropt"
976"*) ;;
977      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978	 ac_unrecognized_sep=', ';;
979    esac
980    eval enable_$ac_useropt=no ;;
981
982  -docdir | --docdir | --docdi | --doc | --do)
983    ac_prev=docdir ;;
984  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985    docdir=$ac_optarg ;;
986
987  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988    ac_prev=dvidir ;;
989  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990    dvidir=$ac_optarg ;;
991
992  -enable-* | --enable-*)
993    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994    # Reject names that are not valid shell variable names.
995    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996      as_fn_error $? "invalid feature name: $ac_useropt"
997    ac_useropt_orig=$ac_useropt
998    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999    case $ac_user_opts in
1000      *"
1001"enable_$ac_useropt"
1002"*) ;;
1003      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004	 ac_unrecognized_sep=', ';;
1005    esac
1006    eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010  | --exec | --exe | --ex)
1011    ac_prev=exec_prefix ;;
1012  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014  | --exec=* | --exe=* | --ex=*)
1015    exec_prefix=$ac_optarg ;;
1016
1017  -gas | --gas | --ga | --g)
1018    # Obsolete; use --with-gas.
1019    with_gas=yes ;;
1020
1021  -help | --help | --hel | --he | -h)
1022    ac_init_help=long ;;
1023  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024    ac_init_help=recursive ;;
1025  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026    ac_init_help=short ;;
1027
1028  -host | --host | --hos | --ho)
1029    ac_prev=host_alias ;;
1030  -host=* | --host=* | --hos=* | --ho=*)
1031    host_alias=$ac_optarg ;;
1032
1033  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034    ac_prev=htmldir ;;
1035  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036  | --ht=*)
1037    htmldir=$ac_optarg ;;
1038
1039  -includedir | --includedir | --includedi | --included | --include \
1040  | --includ | --inclu | --incl | --inc)
1041    ac_prev=includedir ;;
1042  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043  | --includ=* | --inclu=* | --incl=* | --inc=*)
1044    includedir=$ac_optarg ;;
1045
1046  -infodir | --infodir | --infodi | --infod | --info | --inf)
1047    ac_prev=infodir ;;
1048  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049    infodir=$ac_optarg ;;
1050
1051  -libdir | --libdir | --libdi | --libd)
1052    ac_prev=libdir ;;
1053  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054    libdir=$ac_optarg ;;
1055
1056  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057  | --libexe | --libex | --libe)
1058    ac_prev=libexecdir ;;
1059  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060  | --libexe=* | --libex=* | --libe=*)
1061    libexecdir=$ac_optarg ;;
1062
1063  -localedir | --localedir | --localedi | --localed | --locale)
1064    ac_prev=localedir ;;
1065  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066    localedir=$ac_optarg ;;
1067
1068  -localstatedir | --localstatedir | --localstatedi | --localstated \
1069  | --localstate | --localstat | --localsta | --localst | --locals)
1070    ac_prev=localstatedir ;;
1071  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073    localstatedir=$ac_optarg ;;
1074
1075  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076    ac_prev=mandir ;;
1077  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078    mandir=$ac_optarg ;;
1079
1080  -nfp | --nfp | --nf)
1081    # Obsolete; use --without-fp.
1082    with_fp=no ;;
1083
1084  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085  | --no-cr | --no-c | -n)
1086    no_create=yes ;;
1087
1088  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090    no_recursion=yes ;;
1091
1092  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094  | --oldin | --oldi | --old | --ol | --o)
1095    ac_prev=oldincludedir ;;
1096  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099    oldincludedir=$ac_optarg ;;
1100
1101  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102    ac_prev=prefix ;;
1103  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104    prefix=$ac_optarg ;;
1105
1106  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107  | --program-pre | --program-pr | --program-p)
1108    ac_prev=program_prefix ;;
1109  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111    program_prefix=$ac_optarg ;;
1112
1113  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114  | --program-suf | --program-su | --program-s)
1115    ac_prev=program_suffix ;;
1116  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118    program_suffix=$ac_optarg ;;
1119
1120  -program-transform-name | --program-transform-name \
1121  | --program-transform-nam | --program-transform-na \
1122  | --program-transform-n | --program-transform- \
1123  | --program-transform | --program-transfor \
1124  | --program-transfo | --program-transf \
1125  | --program-trans | --program-tran \
1126  | --progr-tra | --program-tr | --program-t)
1127    ac_prev=program_transform_name ;;
1128  -program-transform-name=* | --program-transform-name=* \
1129  | --program-transform-nam=* | --program-transform-na=* \
1130  | --program-transform-n=* | --program-transform-=* \
1131  | --program-transform=* | --program-transfor=* \
1132  | --program-transfo=* | --program-transf=* \
1133  | --program-trans=* | --program-tran=* \
1134  | --progr-tra=* | --program-tr=* | --program-t=*)
1135    program_transform_name=$ac_optarg ;;
1136
1137  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138    ac_prev=pdfdir ;;
1139  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140    pdfdir=$ac_optarg ;;
1141
1142  -psdir | --psdir | --psdi | --psd | --ps)
1143    ac_prev=psdir ;;
1144  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145    psdir=$ac_optarg ;;
1146
1147  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148  | -silent | --silent | --silen | --sile | --sil)
1149    silent=yes ;;
1150
1151  -runstatedir | --runstatedir | --runstatedi | --runstated \
1152  | --runstate | --runstat | --runsta | --runst | --runs \
1153  | --run | --ru | --r)
1154    ac_prev=runstatedir ;;
1155  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1156  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1157  | --run=* | --ru=* | --r=*)
1158    runstatedir=$ac_optarg ;;
1159
1160  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161    ac_prev=sbindir ;;
1162  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163  | --sbi=* | --sb=*)
1164    sbindir=$ac_optarg ;;
1165
1166  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168  | --sharedst | --shareds | --shared | --share | --shar \
1169  | --sha | --sh)
1170    ac_prev=sharedstatedir ;;
1171  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174  | --sha=* | --sh=*)
1175    sharedstatedir=$ac_optarg ;;
1176
1177  -site | --site | --sit)
1178    ac_prev=site ;;
1179  -site=* | --site=* | --sit=*)
1180    site=$ac_optarg ;;
1181
1182  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183    ac_prev=srcdir ;;
1184  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185    srcdir=$ac_optarg ;;
1186
1187  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188  | --syscon | --sysco | --sysc | --sys | --sy)
1189    ac_prev=sysconfdir ;;
1190  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192    sysconfdir=$ac_optarg ;;
1193
1194  -target | --target | --targe | --targ | --tar | --ta | --t)
1195    ac_prev=target_alias ;;
1196  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197    target_alias=$ac_optarg ;;
1198
1199  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200    verbose=yes ;;
1201
1202  -version | --version | --versio | --versi | --vers | -V)
1203    ac_init_version=: ;;
1204
1205  -with-* | --with-*)
1206    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207    # Reject names that are not valid shell variable names.
1208    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209      as_fn_error $? "invalid package name: $ac_useropt"
1210    ac_useropt_orig=$ac_useropt
1211    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212    case $ac_user_opts in
1213      *"
1214"with_$ac_useropt"
1215"*) ;;
1216      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217	 ac_unrecognized_sep=', ';;
1218    esac
1219    eval with_$ac_useropt=\$ac_optarg ;;
1220
1221  -without-* | --without-*)
1222    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223    # Reject names that are not valid shell variable names.
1224    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225      as_fn_error $? "invalid package name: $ac_useropt"
1226    ac_useropt_orig=$ac_useropt
1227    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228    case $ac_user_opts in
1229      *"
1230"with_$ac_useropt"
1231"*) ;;
1232      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233	 ac_unrecognized_sep=', ';;
1234    esac
1235    eval with_$ac_useropt=no ;;
1236
1237  --x)
1238    # Obsolete; use --with-x.
1239    with_x=yes ;;
1240
1241  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242  | --x-incl | --x-inc | --x-in | --x-i)
1243    ac_prev=x_includes ;;
1244  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246    x_includes=$ac_optarg ;;
1247
1248  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250    ac_prev=x_libraries ;;
1251  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253    x_libraries=$ac_optarg ;;
1254
1255  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256Try \`$0 --help' for more information"
1257    ;;
1258
1259  *=*)
1260    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261    # Reject names that are not valid shell variable names.
1262    case $ac_envvar in #(
1263      '' | [0-9]* | *[!_$as_cr_alnum]* )
1264      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1265    esac
1266    eval $ac_envvar=\$ac_optarg
1267    export $ac_envvar ;;
1268
1269  *)
1270    # FIXME: should be removed in autoconf 3.0.
1271    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1275    ;;
1276
1277  esac
1278done
1279
1280if test -n "$ac_prev"; then
1281  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282  as_fn_error $? "missing argument to $ac_option"
1283fi
1284
1285if test -n "$ac_unrecognized_opts"; then
1286  case $enable_option_checking in
1287    no) ;;
1288    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1289    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290  esac
1291fi
1292
1293# Check all directory arguments for consistency.
1294for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295		datadir sysconfdir sharedstatedir localstatedir includedir \
1296		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297		libdir localedir mandir runstatedir
1298do
1299  eval ac_val=\$$ac_var
1300  # Remove trailing slashes.
1301  case $ac_val in
1302    */ )
1303      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304      eval $ac_var=\$ac_val;;
1305  esac
1306  # Be sure to have absolute directory names.
1307  case $ac_val in
1308    [\\/$]* | ?:[\\/]* )  continue;;
1309    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310  esac
1311  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1312done
1313
1314# There might be people who depend on the old broken behavior: `$host'
1315# used to hold the argument of --host etc.
1316# FIXME: To remove some day.
1317build=$build_alias
1318host=$host_alias
1319target=$target_alias
1320
1321# FIXME: To remove some day.
1322if test "x$host_alias" != x; then
1323  if test "x$build_alias" = x; then
1324    cross_compiling=maybe
1325  elif test "x$build_alias" != "x$host_alias"; then
1326    cross_compiling=yes
1327  fi
1328fi
1329
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
1334
1335
1336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339  as_fn_error $? "working directory cannot be determined"
1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341  as_fn_error $? "pwd does not report name of working directory"
1342
1343
1344# Find the source files, if location was not specified.
1345if test -z "$srcdir"; then
1346  ac_srcdir_defaulted=yes
1347  # Try the directory containing this script, then the parent directory.
1348  ac_confdir=`$as_dirname -- "$as_myself" ||
1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350	 X"$as_myself" : 'X\(//\)[^/]' \| \
1351	 X"$as_myself" : 'X\(//\)$' \| \
1352	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353$as_echo X"$as_myself" |
1354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\/\)[^/].*/{
1359	    s//\1/
1360	    q
1361	  }
1362	  /^X\(\/\/\)$/{
1363	    s//\1/
1364	    q
1365	  }
1366	  /^X\(\/\).*/{
1367	    s//\1/
1368	    q
1369	  }
1370	  s/.*/./; q'`
1371  srcdir=$ac_confdir
1372  if test ! -r "$srcdir/$ac_unique_file"; then
1373    srcdir=..
1374  fi
1375else
1376  ac_srcdir_defaulted=no
1377fi
1378if test ! -r "$srcdir/$ac_unique_file"; then
1379  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
1384	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1385	pwd)`
1386# When building in place, set srcdir=.
1387if test "$ac_abs_confdir" = "$ac_pwd"; then
1388  srcdir=.
1389fi
1390# Remove unnecessary trailing slashes from srcdir.
1391# Double slashes in file names in object file debugging info
1392# mess up M-x gdb in Emacs.
1393case $srcdir in
1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395esac
1396for ac_var in $ac_precious_vars; do
1397  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398  eval ac_env_${ac_var}_value=\$${ac_var}
1399  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401done
1402
1403#
1404# Report the --help message.
1405#
1406if test "$ac_init_help" = "long"; then
1407  # Omit some internal or obsolete options to make the list less imposing.
1408  # This message is too long to be a string in the A/UX 3.1 sh.
1409  cat <<_ACEOF
1410\`configure' configures this package to adapt to many kinds of systems.
1411
1412Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415VAR=VALUE.  See below for descriptions of some of the useful variables.
1416
1417Defaults for the options are specified in brackets.
1418
1419Configuration:
1420  -h, --help              display this help and exit
1421      --help=short        display options specific to this package
1422      --help=recursive    display the short help of all the included packages
1423  -V, --version           display version information and exit
1424  -q, --quiet, --silent   do not print \`checking ...' messages
1425      --cache-file=FILE   cache test results in FILE [disabled]
1426  -C, --config-cache      alias for \`--cache-file=config.cache'
1427  -n, --no-create         do not create output files
1428      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1429
1430Installation directories:
1431  --prefix=PREFIX         install architecture-independent files in PREFIX
1432                          [$ac_default_prefix]
1433  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1434                          [PREFIX]
1435
1436By default, \`make install' will install all the files in
1437\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1438an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439for instance \`--prefix=\$HOME'.
1440
1441For better control, use the options below.
1442
1443Fine tuning of the installation directories:
1444  --bindir=DIR            user executables [EPREFIX/bin]
1445  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1446  --libexecdir=DIR        program executables [EPREFIX/libexec]
1447  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1448  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1449  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1450  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1451  --libdir=DIR            object code libraries [EPREFIX/lib]
1452  --includedir=DIR        C header files [PREFIX/include]
1453  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1454  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1455  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1456  --infodir=DIR           info documentation [DATAROOTDIR/info]
1457  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1458  --mandir=DIR            man documentation [DATAROOTDIR/man]
1459  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1460  --htmldir=DIR           html documentation [DOCDIR]
1461  --dvidir=DIR            dvi documentation [DOCDIR]
1462  --pdfdir=DIR            pdf documentation [DOCDIR]
1463  --psdir=DIR             ps documentation [DOCDIR]
1464_ACEOF
1465
1466  cat <<\_ACEOF
1467
1468X features:
1469  --x-includes=DIR    X include files are in DIR
1470  --x-libraries=DIR   X library files are in DIR
1471_ACEOF
1472fi
1473
1474if test -n "$ac_init_help"; then
1475
1476  cat <<\_ACEOF
1477
1478Optional Features:
1479  --disable-option-checking  ignore unrecognized --enable/--with options
1480  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482  --enable-fail-if-missing    Fail if dependencies on additional features
1483     specified on the command line are missing.
1484  --disable-darwin        Disable Darwin (Mac OS X) support.
1485  --disable-smack	  Do not check for Smack support.
1486  --disable-selinux	  Do not check for SELinux support.
1487  --disable-xsmp          Disable XSMP session management
1488  --disable-xsmp-interact Disable XSMP interaction
1489  --enable-luainterp=OPTS      Include Lua interpreter.  default=no OPTS=no/yes/dynamic
1490  --enable-mzschemeinterp      Include MzScheme interpreter.
1491  --enable-perlinterp=OPTS     Include Perl interpreter.  default=no OPTS=no/yes/dynamic
1492  --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
1493  --enable-python3interp=OPTS  Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1494  --enable-tclinterp=OPTS      Include Tcl interpreter. default=no OPTS=no/yes/dynamic
1495  --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
1496  --enable-cscope         Include cscope interface.
1497  --enable-workshop       Include Sun Visual Workshop support.
1498  --disable-netbeans      Disable NetBeans integration support.
1499  --disable-channel       Disable process communication support.
1500  --enable-terminal       Enable terminal emulation support.
1501  --enable-autoservername Automatically define servername at vim startup.
1502  --enable-multibyte      Include multibyte editing support.
1503  --disable-rightleft     Do not include Right-to-Left language support.
1504  --disable-arabic        Do not include Arabic language support.
1505  --disable-farsi         Do not include Farsi language support.
1506  --enable-hangulinput    Include Hangul input support.
1507  --enable-xim            Include XIM input support.
1508  --enable-fontset        Include X fontset output support.
1509  --enable-gui=OPTS       X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon
1510  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1511  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1512  --enable-gtk3-check     If auto-select GUI, check for GTK+ 3 default=yes
1513  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1514  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1515  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1516  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1517  --disable-gtktest       Do not try to compile and run a test GTK program
1518  --disable-icon-cache-update        update disabled
1519  --disable-desktop-database-update  update disabled
1520  --disable-largefile     omit support for large files
1521  --disable-acl           No check for ACL support.
1522  --disable-gpm           Don't use gpm (Linux mouse daemon).
1523  --disable-sysmouse      Don't use sysmouse (mouse in *BSD console).
1524  --disable-nls           Don't support NLS (gettext()).
1525
1526Optional Packages:
1527  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1528  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1529  --with-mac-arch=ARCH    current, intel, ppc or both
1530  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1531  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1532  --without-local-dir     do not search /usr/local for local libraries.
1533  --with-vim-name=NAME    what to call the Vim executable
1534  --with-ex-name=NAME     what to call the Ex executable
1535  --with-view-name=NAME   what to call the View executable
1536  --with-global-runtime=DIR    global runtime directory in 'runtimepath', comma-separated for multiple directories
1537  --with-modified-by=NAME       name of who modified a release version
1538  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)
1539  --with-compiledby=NAME  name to show in :version message
1540  --with-lua-prefix=PFX   Prefix where Lua is installed.
1541  --with-luajit           Link with LuaJIT instead of Lua.
1542  --with-plthome=PLTHOME   Use PLTHOME.
1543  --with-python-command=NAME  name of the Python 2 command (default: python2 or python)
1544  --with-python-config-dir=PATH  Python's config directory (deprecated)
1545  --with-python3-command=NAME  name of the Python 3 command (default: python3 or python)
1546  --with-python3-config-dir=PATH  Python's config directory (deprecated)
1547  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1548  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1549  --with-x                use the X Window System
1550  --with-gnome-includes=DIR Specify location of GNOME headers
1551  --with-gnome-libs=DIR   Specify location of GNOME libs
1552  --with-gnome            Specify prefix for GNOME files
1553  --with-motif-lib=STRING Library for Motif
1554  --with-tlib=library     terminal library to be used
1555
1556Some influential environment variables:
1557  CC          C compiler command
1558  CFLAGS      C compiler flags
1559  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1560              nonstandard directory <lib dir>
1561  LIBS        libraries to pass to the linker, e.g. -l<library>
1562  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1563              you have headers in a nonstandard directory <include dir>
1564  CPP         C preprocessor
1565  XMKMF       Path to xmkmf, Makefile generator for X Window System
1566
1567Use these variables to override the choices made by `configure' or to help
1568it to find libraries and programs with nonstandard names/locations.
1569
1570Report bugs to the package provider.
1571_ACEOF
1572ac_status=$?
1573fi
1574
1575if test "$ac_init_help" = "recursive"; then
1576  # If there are subdirs, report their specific --help.
1577  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578    test -d "$ac_dir" ||
1579      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1580      continue
1581    ac_builddir=.
1582
1583case "$ac_dir" in
1584.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585*)
1586  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1587  # A ".." for each directory in $ac_dir_suffix.
1588  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1589  case $ac_top_builddir_sub in
1590  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592  esac ;;
1593esac
1594ac_abs_top_builddir=$ac_pwd
1595ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596# for backward compatibility:
1597ac_top_builddir=$ac_top_build_prefix
1598
1599case $srcdir in
1600  .)  # We are building in place.
1601    ac_srcdir=.
1602    ac_top_srcdir=$ac_top_builddir_sub
1603    ac_abs_top_srcdir=$ac_pwd ;;
1604  [\\/]* | ?:[\\/]* )  # Absolute name.
1605    ac_srcdir=$srcdir$ac_dir_suffix;
1606    ac_top_srcdir=$srcdir
1607    ac_abs_top_srcdir=$srcdir ;;
1608  *) # Relative name.
1609    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610    ac_top_srcdir=$ac_top_build_prefix$srcdir
1611    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612esac
1613ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614
1615    cd "$ac_dir" || { ac_status=$?; continue; }
1616    # Check for guested configure.
1617    if test -f "$ac_srcdir/configure.gnu"; then
1618      echo &&
1619      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620    elif test -f "$ac_srcdir/configure"; then
1621      echo &&
1622      $SHELL "$ac_srcdir/configure" --help=recursive
1623    else
1624      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625    fi || ac_status=$?
1626    cd "$ac_pwd" || { ac_status=$?; break; }
1627  done
1628fi
1629
1630test -n "$ac_init_help" && exit $ac_status
1631if $ac_init_version; then
1632  cat <<\_ACEOF
1633configure
1634generated by GNU Autoconf 2.69
1635
1636Copyright (C) 2012 Free Software Foundation, Inc.
1637This configure script is free software; the Free Software Foundation
1638gives unlimited permission to copy, distribute and modify it.
1639_ACEOF
1640  exit
1641fi
1642
1643## ------------------------ ##
1644## Autoconf initialization. ##
1645## ------------------------ ##
1646
1647# ac_fn_c_try_compile LINENO
1648# --------------------------
1649# Try to compile conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_compile ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  rm -f conftest.$ac_objext
1654  if { { ac_try="$ac_compile"
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_compile") 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; } && {
1670	 test -z "$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       } && test -s conftest.$ac_objext; 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_compile
1684
1685# ac_fn_c_try_cpp LINENO
1686# ----------------------
1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_cpp ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if { { ac_try="$ac_cpp conftest.$ac_ext"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699  ac_status=$?
1700  if test -s conftest.err; then
1701    grep -v '^ *+' conftest.err >conftest.er1
1702    cat conftest.er1 >&5
1703    mv -f conftest.er1 conftest.err
1704  fi
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } > conftest.i && {
1707	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708	 test ! -s conftest.err
1709       }; then :
1710  ac_retval=0
1711else
1712  $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715    ac_retval=1
1716fi
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_cpp
1721
1722# ac_fn_c_try_link LINENO
1723# -----------------------
1724# Try to link conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_c_try_link ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  rm -f conftest.$ac_objext conftest$ac_exeext
1729  if { { ac_try="$ac_link"
1730case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_link") 2>conftest.err
1737  ac_status=$?
1738  if test -s conftest.err; then
1739    grep -v '^ *+' conftest.err >conftest.er1
1740    cat conftest.er1 >&5
1741    mv -f conftest.er1 conftest.err
1742  fi
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; } && {
1745	 test -z "$ac_c_werror_flag" ||
1746	 test ! -s conftest.err
1747       } && test -s conftest$ac_exeext && {
1748	 test "$cross_compiling" = yes ||
1749	 test -x conftest$ac_exeext
1750       }; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756	ac_retval=1
1757fi
1758  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760  # interfere with the next link command; also delete a directory that is
1761  # left behind by Apple's compiler.  We do this before executing the actions.
1762  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764  as_fn_set_status $ac_retval
1765
1766} # ac_fn_c_try_link
1767
1768# ac_fn_c_try_run LINENO
1769# ----------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771# that executables *can* be run.
1772ac_fn_c_try_run ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782  (eval "$ac_link") 2>&5
1783  ac_status=$?
1784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786  { { case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792  (eval "$ac_try") 2>&5
1793  ac_status=$?
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; }; }; then :
1796  ac_retval=0
1797else
1798  $as_echo "$as_me: program exited with status $ac_status" >&5
1799       $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802       ac_retval=$ac_status
1803fi
1804  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806  as_fn_set_status $ac_retval
1807
1808} # ac_fn_c_try_run
1809
1810# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811# -------------------------------------------------------
1812# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813# the include files in INCLUDES and setting the cache variable VAR
1814# accordingly.
1815ac_fn_c_check_header_mongrel ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  if eval \${$3+:} false; then :
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822  $as_echo_n "(cached) " >&6
1823fi
1824eval ac_res=\$$3
1825	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827else
1828  # Is the header compilable?
1829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830$as_echo_n "checking $2 usability... " >&6; }
1831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833$4
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_compile "$LINENO"; then :
1837  ac_header_compiler=yes
1838else
1839  ac_header_compiler=no
1840fi
1841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843$as_echo "$ac_header_compiler" >&6; }
1844
1845# Is the header present?
1846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847$as_echo_n "checking $2 presence... " >&6; }
1848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850#include <$2>
1851_ACEOF
1852if ac_fn_c_try_cpp "$LINENO"; then :
1853  ac_header_preproc=yes
1854else
1855  ac_header_preproc=no
1856fi
1857rm -f conftest.err conftest.i conftest.$ac_ext
1858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859$as_echo "$ac_header_preproc" >&6; }
1860
1861# So?  What about this header?
1862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863  yes:no: )
1864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868    ;;
1869  no:yes:* )
1870    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1873$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1877$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880    ;;
1881esac
1882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if eval \${$3+:} false; then :
1885  $as_echo_n "(cached) " >&6
1886else
1887  eval "$3=\$ac_header_compiler"
1888fi
1889eval ac_res=\$$3
1890	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
1892fi
1893  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895} # ac_fn_c_check_header_mongrel
1896
1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898# -------------------------------------------------------
1899# Tests whether HEADER exists and can be compiled using the include files in
1900# INCLUDES, setting the cache variable VAR accordingly.
1901ac_fn_c_check_header_compile ()
1902{
1903  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval \${$3+:} false; then :
1907  $as_echo_n "(cached) " >&6
1908else
1909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911$4
1912#include <$2>
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915  eval "$3=yes"
1916else
1917  eval "$3=no"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_header_compile
1927
1928# ac_fn_c_check_func LINENO FUNC VAR
1929# ----------------------------------
1930# Tests whether FUNC exists, setting the cache variable VAR accordingly
1931ac_fn_c_check_func ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
1936if eval \${$3+:} false; then :
1937  $as_echo_n "(cached) " >&6
1938else
1939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h.  */
1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1943#define $2 innocuous_$2
1944
1945/* System header to define __stub macros and hopefully few prototypes,
1946    which can conflict with char $2 (); below.
1947    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948    <limits.h> exists even on freestanding compilers.  */
1949
1950#ifdef __STDC__
1951# include <limits.h>
1952#else
1953# include <assert.h>
1954#endif
1955
1956#undef $2
1957
1958/* Override any GCC internal prototype to avoid an error.
1959   Use char because int might match the return type of a GCC
1960   builtin and then its argument prototype would still apply.  */
1961#ifdef __cplusplus
1962extern "C"
1963#endif
1964char $2 ();
1965/* The GNU C library defines this for functions which it implements
1966    to always fail with ENOSYS.  Some functions are actually named
1967    something starting with __ and the normal name is an alias.  */
1968#if defined __stub_$2 || defined __stub___$2
1969choke me
1970#endif
1971
1972int
1973main ()
1974{
1975return $2 ();
1976  ;
1977  return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_link "$LINENO"; then :
1981  eval "$3=yes"
1982else
1983  eval "$3=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext \
1986    conftest$ac_exeext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993} # ac_fn_c_check_func
1994
1995# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996# -------------------------------------------
1997# Tests whether TYPE exists after having included INCLUDES, setting cache
1998# variable VAR accordingly.
1999ac_fn_c_check_type ()
2000{
2001  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if eval \${$3+:} false; then :
2005  $as_echo_n "(cached) " >&6
2006else
2007  eval "$3=no"
2008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h.  */
2010$4
2011int
2012main ()
2013{
2014if (sizeof ($2))
2015	 return 0;
2016  ;
2017  return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024int
2025main ()
2026{
2027if (sizeof (($2)))
2028	    return 0;
2029  ;
2030  return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"; then :
2034
2035else
2036  eval "$3=yes"
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042eval ac_res=\$$3
2043	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047} # ac_fn_c_check_type
2048
2049# ac_fn_c_find_uintX_t LINENO BITS VAR
2050# ------------------------------------
2051# Finds an unsigned integer type with width BITS, setting cache variable VAR
2052# accordingly.
2053ac_fn_c_find_uintX_t ()
2054{
2055  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2057$as_echo_n "checking for uint$2_t... " >&6; }
2058if eval \${$3+:} false; then :
2059  $as_echo_n "(cached) " >&6
2060else
2061  eval "$3=no"
2062     # Order is important - never check a type that is potentially smaller
2063     # than half of the expected target width.
2064     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2065	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h.  */
2068$ac_includes_default
2069int
2070main ()
2071{
2072static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2073test_array [0] = 0;
2074return test_array [0];
2075
2076  ;
2077  return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081  case $ac_type in #(
2082  uint$2_t) :
2083    eval "$3=yes" ;; #(
2084  *) :
2085    eval "$3=\$ac_type" ;;
2086esac
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089       if eval test \"x\$"$3"\" = x"no"; then :
2090
2091else
2092  break
2093fi
2094     done
2095fi
2096eval ac_res=\$$3
2097	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098$as_echo "$ac_res" >&6; }
2099  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100
2101} # ac_fn_c_find_uintX_t
2102
2103# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2104# --------------------------------------------
2105# Tries to find the compile-time value of EXPR in a program that includes
2106# INCLUDES, setting VAR accordingly. Returns whether the value could be
2107# computed
2108ac_fn_c_compute_int ()
2109{
2110  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111  if test "$cross_compiling" = yes; then
2112    # Depending upon the size, compute the lo and hi bounds.
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h.  */
2115$4
2116int
2117main ()
2118{
2119static int test_array [1 - 2 * !(($2) >= 0)];
2120test_array [0] = 0;
2121return test_array [0];
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128  ac_lo=0 ac_mid=0
2129  while :; do
2130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h.  */
2132$4
2133int
2134main ()
2135{
2136static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2137test_array [0] = 0;
2138return test_array [0];
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  ac_hi=$ac_mid; break
2146else
2147  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2148			if test $ac_lo -le $ac_mid; then
2149			  ac_lo= ac_hi=
2150			  break
2151			fi
2152			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155  done
2156else
2157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h.  */
2159$4
2160int
2161main ()
2162{
2163static int test_array [1 - 2 * !(($2) < 0)];
2164test_array [0] = 0;
2165return test_array [0];
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171if ac_fn_c_try_compile "$LINENO"; then :
2172  ac_hi=-1 ac_mid=-1
2173  while :; do
2174    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h.  */
2176$4
2177int
2178main ()
2179{
2180static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2181test_array [0] = 0;
2182return test_array [0];
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188if ac_fn_c_try_compile "$LINENO"; then :
2189  ac_lo=$ac_mid; break
2190else
2191  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2192			if test $ac_mid -le $ac_hi; then
2193			  ac_lo= ac_hi=
2194			  break
2195			fi
2196			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199  done
2200else
2201  ac_lo= ac_hi=
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206# Binary search between lo and hi bounds.
2207while test "x$ac_lo" != "x$ac_hi"; do
2208  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210/* end confdefs.h.  */
2211$4
2212int
2213main ()
2214{
2215static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2216test_array [0] = 0;
2217return test_array [0];
2218
2219  ;
2220  return 0;
2221}
2222_ACEOF
2223if ac_fn_c_try_compile "$LINENO"; then :
2224  ac_hi=$ac_mid
2225else
2226  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229done
2230case $ac_lo in #((
2231?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2232'') ac_retval=1 ;;
2233esac
2234  else
2235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$4
2238static long int longval () { return $2; }
2239static unsigned long int ulongval () { return $2; }
2240#include <stdio.h>
2241#include <stdlib.h>
2242int
2243main ()
2244{
2245
2246  FILE *f = fopen ("conftest.val", "w");
2247  if (! f)
2248    return 1;
2249  if (($2) < 0)
2250    {
2251      long int i = longval ();
2252      if (i != ($2))
2253	return 1;
2254      fprintf (f, "%ld", i);
2255    }
2256  else
2257    {
2258      unsigned long int i = ulongval ();
2259      if (i != ($2))
2260	return 1;
2261      fprintf (f, "%lu", i);
2262    }
2263  /* Do not output a trailing newline, as this causes \r\n confusion
2264     on some platforms.  */
2265  return ferror (f) || fclose (f) != 0;
2266
2267  ;
2268  return 0;
2269}
2270_ACEOF
2271if ac_fn_c_try_run "$LINENO"; then :
2272  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2273else
2274  ac_retval=1
2275fi
2276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2277  conftest.$ac_objext conftest.beam conftest.$ac_ext
2278rm -f conftest.val
2279
2280  fi
2281  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282  as_fn_set_status $ac_retval
2283
2284} # ac_fn_c_compute_int
2285cat >auto/config.log <<_ACEOF
2286This file contains any messages produced by compilers while
2287running configure, to aid debugging if configure makes a mistake.
2288
2289It was created by $as_me, which was
2290generated by GNU Autoconf 2.69.  Invocation command line was
2291
2292  $ $0 $@
2293
2294_ACEOF
2295exec 5>>auto/config.log
2296{
2297cat <<_ASUNAME
2298## --------- ##
2299## Platform. ##
2300## --------- ##
2301
2302hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2303uname -m = `(uname -m) 2>/dev/null || echo unknown`
2304uname -r = `(uname -r) 2>/dev/null || echo unknown`
2305uname -s = `(uname -s) 2>/dev/null || echo unknown`
2306uname -v = `(uname -v) 2>/dev/null || echo unknown`
2307
2308/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2309/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2310
2311/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2312/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2313/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2314/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2315/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2316/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2317/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2318
2319_ASUNAME
2320
2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324  IFS=$as_save_IFS
2325  test -z "$as_dir" && as_dir=.
2326    $as_echo "PATH: $as_dir"
2327  done
2328IFS=$as_save_IFS
2329
2330} >&5
2331
2332cat >&5 <<_ACEOF
2333
2334
2335## ----------- ##
2336## Core tests. ##
2337## ----------- ##
2338
2339_ACEOF
2340
2341
2342# Keep a trace of the command line.
2343# Strip out --no-create and --no-recursion so they do not pile up.
2344# Strip out --silent because we don't want to record it for future runs.
2345# Also quote any args containing shell meta-characters.
2346# Make two passes to allow for proper duplicate-argument suppression.
2347ac_configure_args=
2348ac_configure_args0=
2349ac_configure_args1=
2350ac_must_keep_next=false
2351for ac_pass in 1 2
2352do
2353  for ac_arg
2354  do
2355    case $ac_arg in
2356    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2357    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2358    | -silent | --silent | --silen | --sile | --sil)
2359      continue ;;
2360    *\'*)
2361      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2362    esac
2363    case $ac_pass in
2364    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2365    2)
2366      as_fn_append ac_configure_args1 " '$ac_arg'"
2367      if test $ac_must_keep_next = true; then
2368	ac_must_keep_next=false # Got value, back to normal.
2369      else
2370	case $ac_arg in
2371	  *=* | --config-cache | -C | -disable-* | --disable-* \
2372	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2373	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2374	  | -with-* | --with-* | -without-* | --without-* | --x)
2375	    case "$ac_configure_args0 " in
2376	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2377	    esac
2378	    ;;
2379	  -* ) ac_must_keep_next=true ;;
2380	esac
2381      fi
2382      as_fn_append ac_configure_args " '$ac_arg'"
2383      ;;
2384    esac
2385  done
2386done
2387{ ac_configure_args0=; unset ac_configure_args0;}
2388{ ac_configure_args1=; unset ac_configure_args1;}
2389
2390# When interrupted or exit'd, cleanup temporary files, and complete
2391# config.log.  We remove comments because anyway the quotes in there
2392# would cause problems or look ugly.
2393# WARNING: Use '\'' to represent an apostrophe within the trap.
2394# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2395trap 'exit_status=$?
2396  # Save into config.log some information that might help in debugging.
2397  {
2398    echo
2399
2400    $as_echo "## ---------------- ##
2401## Cache variables. ##
2402## ---------------- ##"
2403    echo
2404    # The following way of writing the cache mishandles newlines in values,
2405(
2406  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2407    eval ac_val=\$$ac_var
2408    case $ac_val in #(
2409    *${as_nl}*)
2410      case $ac_var in #(
2411      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2412$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2413      esac
2414      case $ac_var in #(
2415      _ | IFS | as_nl) ;; #(
2416      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2417      *) { eval $ac_var=; unset $ac_var;} ;;
2418      esac ;;
2419    esac
2420  done
2421  (set) 2>&1 |
2422    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2423    *${as_nl}ac_space=\ *)
2424      sed -n \
2425	"s/'\''/'\''\\\\'\'''\''/g;
2426	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2427      ;; #(
2428    *)
2429      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2430      ;;
2431    esac |
2432    sort
2433)
2434    echo
2435
2436    $as_echo "## ----------------- ##
2437## Output variables. ##
2438## ----------------- ##"
2439    echo
2440    for ac_var in $ac_subst_vars
2441    do
2442      eval ac_val=\$$ac_var
2443      case $ac_val in
2444      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2445      esac
2446      $as_echo "$ac_var='\''$ac_val'\''"
2447    done | sort
2448    echo
2449
2450    if test -n "$ac_subst_files"; then
2451      $as_echo "## ------------------- ##
2452## File substitutions. ##
2453## ------------------- ##"
2454      echo
2455      for ac_var in $ac_subst_files
2456      do
2457	eval ac_val=\$$ac_var
2458	case $ac_val in
2459	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460	esac
2461	$as_echo "$ac_var='\''$ac_val'\''"
2462      done | sort
2463      echo
2464    fi
2465
2466    if test -s confdefs.h; then
2467      $as_echo "## ----------- ##
2468## confdefs.h. ##
2469## ----------- ##"
2470      echo
2471      cat confdefs.h
2472      echo
2473    fi
2474    test "$ac_signal" != 0 &&
2475      $as_echo "$as_me: caught signal $ac_signal"
2476    $as_echo "$as_me: exit $exit_status"
2477  } >&5
2478  rm -f core *.core core.conftest.* &&
2479    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2480    exit $exit_status
2481' 0
2482for ac_signal in 1 2 13 15; do
2483  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2484done
2485ac_signal=0
2486
2487# confdefs.h avoids OS command line length limits that DEFS can exceed.
2488rm -f -r conftest* confdefs.h
2489
2490$as_echo "/* confdefs.h */" > confdefs.h
2491
2492# Predefined preprocessor variables.
2493
2494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_NAME "$PACKAGE_NAME"
2496_ACEOF
2497
2498cat >>confdefs.h <<_ACEOF
2499#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2500_ACEOF
2501
2502cat >>confdefs.h <<_ACEOF
2503#define PACKAGE_VERSION "$PACKAGE_VERSION"
2504_ACEOF
2505
2506cat >>confdefs.h <<_ACEOF
2507#define PACKAGE_STRING "$PACKAGE_STRING"
2508_ACEOF
2509
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2512_ACEOF
2513
2514cat >>confdefs.h <<_ACEOF
2515#define PACKAGE_URL "$PACKAGE_URL"
2516_ACEOF
2517
2518
2519# Let the site file select an alternate cache file if it wants to.
2520# Prefer an explicitly selected file to automatically selected ones.
2521ac_site_file1=NONE
2522ac_site_file2=NONE
2523if test -n "$CONFIG_SITE"; then
2524  # We do not want a PATH search for config.site.
2525  case $CONFIG_SITE in #((
2526    -*)  ac_site_file1=./$CONFIG_SITE;;
2527    */*) ac_site_file1=$CONFIG_SITE;;
2528    *)   ac_site_file1=./$CONFIG_SITE;;
2529  esac
2530elif test "x$prefix" != xNONE; then
2531  ac_site_file1=$prefix/share/config.site
2532  ac_site_file2=$prefix/etc/config.site
2533else
2534  ac_site_file1=$ac_default_prefix/share/config.site
2535  ac_site_file2=$ac_default_prefix/etc/config.site
2536fi
2537for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2538do
2539  test "x$ac_site_file" = xNONE && continue
2540  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2541    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2542$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2543    sed 's/^/| /' "$ac_site_file" >&5
2544    . "$ac_site_file" \
2545      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547as_fn_error $? "failed to load site script $ac_site_file
2548See \`config.log' for more details" "$LINENO" 5; }
2549  fi
2550done
2551
2552if test -r "$cache_file"; then
2553  # Some versions of bash will fail to source /dev/null (special files
2554  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2555  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2556    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2557$as_echo "$as_me: loading cache $cache_file" >&6;}
2558    case $cache_file in
2559      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2560      *)                      . "./$cache_file";;
2561    esac
2562  fi
2563else
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2565$as_echo "$as_me: creating cache $cache_file" >&6;}
2566  >$cache_file
2567fi
2568
2569# Check that the precious variables saved in the cache have kept the same
2570# value.
2571ac_cache_corrupted=false
2572for ac_var in $ac_precious_vars; do
2573  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2574  eval ac_new_set=\$ac_env_${ac_var}_set
2575  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2576  eval ac_new_val=\$ac_env_${ac_var}_value
2577  case $ac_old_set,$ac_new_set in
2578    set,)
2579      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2580$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2581      ac_cache_corrupted=: ;;
2582    ,set)
2583      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2584$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2585      ac_cache_corrupted=: ;;
2586    ,);;
2587    *)
2588      if test "x$ac_old_val" != "x$ac_new_val"; then
2589	# differences in whitespace do not lead to failure.
2590	ac_old_val_w=`echo x $ac_old_val`
2591	ac_new_val_w=`echo x $ac_new_val`
2592	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2593	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2594$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2595	  ac_cache_corrupted=:
2596	else
2597	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2598$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2599	  eval $ac_var=\$ac_old_val
2600	fi
2601	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2602$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2603	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2604$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2605      fi;;
2606  esac
2607  # Pass precious variables to config.status.
2608  if test "$ac_new_set" = set; then
2609    case $ac_new_val in
2610    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2611    *) ac_arg=$ac_var=$ac_new_val ;;
2612    esac
2613    case " $ac_configure_args " in
2614      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2615      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2616    esac
2617  fi
2618done
2619if $ac_cache_corrupted; then
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2623$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2624  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2625fi
2626## -------------------- ##
2627## Main body of script. ##
2628## -------------------- ##
2629
2630ac_ext=c
2631ac_cpp='$CPP $CPPFLAGS'
2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635
2636
2637ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2638
2639
2640$as_echo "#define UNIX 1" >>confdefs.h
2641
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2644set x ${MAKE-make}
2645ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  cat >conftest.make <<\_ACEOF
2650SHELL = /bin/sh
2651all:
2652	@echo '@@@%%%=$(MAKE)=@@@%%%'
2653_ACEOF
2654# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2655case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656  *@@@%%%=?*=@@@%%%*)
2657    eval ac_cv_prog_make_${ac_make}_set=yes;;
2658  *)
2659    eval ac_cv_prog_make_${ac_make}_set=no;;
2660esac
2661rm -f conftest.make
2662fi
2663if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665$as_echo "yes" >&6; }
2666  SET_MAKE=
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670  SET_MAKE="MAKE=${MAKE-make}"
2671fi
2672
2673
2674ac_ext=c
2675ac_cpp='$CPP $CPPFLAGS'
2676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679if test -n "$ac_tool_prefix"; then
2680  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2681set dummy ${ac_tool_prefix}gcc; ac_word=$2
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
2684if ${ac_cv_prog_CC+:} false; then :
2685  $as_echo_n "(cached) " >&6
2686else
2687  if test -n "$CC"; then
2688  ac_cv_prog_CC="$CC" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693  IFS=$as_save_IFS
2694  test -z "$as_dir" && as_dir=.
2695    for ac_exec_ext in '' $ac_executable_extensions; do
2696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699    break 2
2700  fi
2701done
2702  done
2703IFS=$as_save_IFS
2704
2705fi
2706fi
2707CC=$ac_cv_prog_CC
2708if test -n "$CC"; then
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710$as_echo "$CC" >&6; }
2711else
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713$as_echo "no" >&6; }
2714fi
2715
2716
2717fi
2718if test -z "$ac_cv_prog_CC"; then
2719  ac_ct_CC=$CC
2720  # Extract the first word of "gcc", so it can be a program name with args.
2721set dummy gcc; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
2724if ${ac_cv_prog_ac_ct_CC+:} false; then :
2725  $as_echo_n "(cached) " >&6
2726else
2727  if test -n "$ac_ct_CC"; then
2728  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733  IFS=$as_save_IFS
2734  test -z "$as_dir" && as_dir=.
2735    for ac_exec_ext in '' $ac_executable_extensions; do
2736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737    ac_cv_prog_ac_ct_CC="gcc"
2738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739    break 2
2740  fi
2741done
2742  done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748if test -n "$ac_ct_CC"; then
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750$as_echo "$ac_ct_CC" >&6; }
2751else
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
2754fi
2755
2756  if test "x$ac_ct_CC" = x; then
2757    CC=""
2758  else
2759    case $cross_compiling:$ac_tool_warned in
2760yes:)
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763ac_tool_warned=yes ;;
2764esac
2765    CC=$ac_ct_CC
2766  fi
2767else
2768  CC="$ac_cv_prog_CC"
2769fi
2770
2771if test -z "$CC"; then
2772          if test -n "$ac_tool_prefix"; then
2773    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774set dummy ${ac_tool_prefix}cc; ac_word=$2
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if ${ac_cv_prog_CC+:} false; then :
2778  $as_echo_n "(cached) " >&6
2779else
2780  if test -n "$CC"; then
2781  ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786  IFS=$as_save_IFS
2787  test -z "$as_dir" && as_dir=.
2788    for ac_exec_ext in '' $ac_executable_extensions; do
2789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790    ac_cv_prog_CC="${ac_tool_prefix}cc"
2791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792    break 2
2793  fi
2794done
2795  done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803$as_echo "$CC" >&6; }
2804else
2805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810  fi
2811fi
2812if test -z "$CC"; then
2813  # Extract the first word of "cc", so it can be a program name with args.
2814set dummy cc; ac_word=$2
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816$as_echo_n "checking for $ac_word... " >&6; }
2817if ${ac_cv_prog_CC+:} false; then :
2818  $as_echo_n "(cached) " >&6
2819else
2820  if test -n "$CC"; then
2821  ac_cv_prog_CC="$CC" # Let the user override the test.
2822else
2823  ac_prog_rejected=no
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827  IFS=$as_save_IFS
2828  test -z "$as_dir" && as_dir=.
2829    for ac_exec_ext in '' $ac_executable_extensions; do
2830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832       ac_prog_rejected=yes
2833       continue
2834     fi
2835    ac_cv_prog_CC="cc"
2836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840  done
2841IFS=$as_save_IFS
2842
2843if test $ac_prog_rejected = yes; then
2844  # We found a bogon in the path, so make sure we never use it.
2845  set dummy $ac_cv_prog_CC
2846  shift
2847  if test $# != 0; then
2848    # We chose a different compiler from the bogus one.
2849    # However, it has the same basename, so the bogon will be chosen
2850    # first if we set CC to just the basename; use the full file name.
2851    shift
2852    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2853  fi
2854fi
2855fi
2856fi
2857CC=$ac_cv_prog_CC
2858if test -n "$CC"; then
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860$as_echo "$CC" >&6; }
2861else
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866
2867fi
2868if test -z "$CC"; then
2869  if test -n "$ac_tool_prefix"; then
2870  for ac_prog in cl.exe
2871  do
2872    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2873set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if ${ac_cv_prog_CC+:} false; then :
2877  $as_echo_n "(cached) " >&6
2878else
2879  if test -n "$CC"; then
2880  ac_cv_prog_CC="$CC" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887    for ac_exec_ext in '' $ac_executable_extensions; do
2888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891    break 2
2892  fi
2893done
2894  done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899CC=$ac_cv_prog_CC
2900if test -n "$CC"; then
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902$as_echo "$CC" >&6; }
2903else
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908
2909    test -n "$CC" && break
2910  done
2911fi
2912if test -z "$CC"; then
2913  ac_ct_CC=$CC
2914  for ac_prog in cl.exe
2915do
2916  # Extract the first word of "$ac_prog", so it can be a program name with args.
2917set dummy $ac_prog; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
2920if ${ac_cv_prog_ac_ct_CC+:} false; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  if test -n "$ac_ct_CC"; then
2924  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929  IFS=$as_save_IFS
2930  test -z "$as_dir" && as_dir=.
2931    for ac_exec_ext in '' $ac_executable_extensions; do
2932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933    ac_cv_prog_ac_ct_CC="$ac_prog"
2934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935    break 2
2936  fi
2937done
2938  done
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944if test -n "$ac_ct_CC"; then
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2946$as_echo "$ac_ct_CC" >&6; }
2947else
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950fi
2951
2952
2953  test -n "$ac_ct_CC" && break
2954done
2955
2956  if test "x$ac_ct_CC" = x; then
2957    CC=""
2958  else
2959    case $cross_compiling:$ac_tool_warned in
2960yes:)
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963ac_tool_warned=yes ;;
2964esac
2965    CC=$ac_ct_CC
2966  fi
2967fi
2968
2969fi
2970
2971
2972test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974as_fn_error $? "no acceptable C compiler found in \$PATH
2975See \`config.log' for more details" "$LINENO" 5; }
2976
2977# Provide some information about the compiler.
2978$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2979set X $ac_compile
2980ac_compiler=$2
2981for ac_option in --version -v -V -qversion; do
2982  { { ac_try="$ac_compiler $ac_option >&5"
2983case "(($ac_try" in
2984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985  *) ac_try_echo=$ac_try;;
2986esac
2987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988$as_echo "$ac_try_echo"; } >&5
2989  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2990  ac_status=$?
2991  if test -s conftest.err; then
2992    sed '10a\
2993... rest of stderr output deleted ...
2994         10q' conftest.err >conftest.er1
2995    cat conftest.er1 >&5
2996  fi
2997  rm -f conftest.er1 conftest.err
2998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999  test $ac_status = 0; }
3000done
3001
3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003/* end confdefs.h.  */
3004
3005int
3006main ()
3007{
3008
3009  ;
3010  return 0;
3011}
3012_ACEOF
3013ac_clean_files_save=$ac_clean_files
3014ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3015# Try to create an executable without -o first, disregard a.out.
3016# It will help us diagnose broken compilers, and finding out an intuition
3017# of exeext.
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3019$as_echo_n "checking whether the C compiler works... " >&6; }
3020ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3021
3022# The possible output files:
3023ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3024
3025ac_rmfiles=
3026for ac_file in $ac_files
3027do
3028  case $ac_file in
3029    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3030    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3031  esac
3032done
3033rm -f $ac_rmfiles
3034
3035if { { ac_try="$ac_link_default"
3036case "(($ac_try" in
3037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038  *) ac_try_echo=$ac_try;;
3039esac
3040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041$as_echo "$ac_try_echo"; } >&5
3042  (eval "$ac_link_default") 2>&5
3043  ac_status=$?
3044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045  test $ac_status = 0; }; then :
3046  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3047# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3048# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3049# so that the user can short-circuit this test for compilers unknown to
3050# Autoconf.
3051for ac_file in $ac_files ''
3052do
3053  test -f "$ac_file" || continue
3054  case $ac_file in
3055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3056	;;
3057    [ab].out )
3058	# We found the default executable, but exeext='' is most
3059	# certainly right.
3060	break;;
3061    *.* )
3062	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3063	then :; else
3064	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065	fi
3066	# We set ac_cv_exeext here because the later test for it is not
3067	# safe: cross compilers may not add the suffix if given an `-o'
3068	# argument, so we may need to know it at that point already.
3069	# Even if this section looks crufty: it has the advantage of
3070	# actually working.
3071	break;;
3072    * )
3073	break;;
3074  esac
3075done
3076test "$ac_cv_exeext" = no && ac_cv_exeext=
3077
3078else
3079  ac_file=''
3080fi
3081if test -z "$ac_file"; then :
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083$as_echo "no" >&6; }
3084$as_echo "$as_me: failed program was:" >&5
3085sed 's/^/| /' conftest.$ac_ext >&5
3086
3087{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089as_fn_error 77 "C compiler cannot create executables
3090See \`config.log' for more details" "$LINENO" 5; }
3091else
3092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093$as_echo "yes" >&6; }
3094fi
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3096$as_echo_n "checking for C compiler default output file name... " >&6; }
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3098$as_echo "$ac_file" >&6; }
3099ac_exeext=$ac_cv_exeext
3100
3101rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3102ac_clean_files=$ac_clean_files_save
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3104$as_echo_n "checking for suffix of executables... " >&6; }
3105if { { ac_try="$ac_link"
3106case "(($ac_try" in
3107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108  *) ac_try_echo=$ac_try;;
3109esac
3110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111$as_echo "$ac_try_echo"; } >&5
3112  (eval "$ac_link") 2>&5
3113  ac_status=$?
3114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115  test $ac_status = 0; }; then :
3116  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3117# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3118# work properly (i.e., refer to `conftest.exe'), while it won't with
3119# `rm'.
3120for ac_file in conftest.exe conftest conftest.*; do
3121  test -f "$ac_file" || continue
3122  case $ac_file in
3123    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3124    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125	  break;;
3126    * ) break;;
3127  esac
3128done
3129else
3130  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3133See \`config.log' for more details" "$LINENO" 5; }
3134fi
3135rm -f conftest conftest$ac_cv_exeext
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3137$as_echo "$ac_cv_exeext" >&6; }
3138
3139rm -f conftest.$ac_ext
3140EXEEXT=$ac_cv_exeext
3141ac_exeext=$EXEEXT
3142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h.  */
3144#include <stdio.h>
3145int
3146main ()
3147{
3148FILE *f = fopen ("conftest.out", "w");
3149 return ferror (f) || fclose (f) != 0;
3150
3151  ;
3152  return 0;
3153}
3154_ACEOF
3155ac_clean_files="$ac_clean_files conftest.out"
3156# Check that the compiler produces executables we can run.  If not, either
3157# the compiler is broken, or we cross compile.
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3159$as_echo_n "checking whether we are cross compiling... " >&6; }
3160if test "$cross_compiling" != yes; then
3161  { { ac_try="$ac_link"
3162case "(($ac_try" in
3163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164  *) ac_try_echo=$ac_try;;
3165esac
3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167$as_echo "$ac_try_echo"; } >&5
3168  (eval "$ac_link") 2>&5
3169  ac_status=$?
3170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171  test $ac_status = 0; }
3172  if { ac_try='./conftest$ac_cv_exeext'
3173  { { case "(($ac_try" in
3174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175  *) ac_try_echo=$ac_try;;
3176esac
3177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178$as_echo "$ac_try_echo"; } >&5
3179  (eval "$ac_try") 2>&5
3180  ac_status=$?
3181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182  test $ac_status = 0; }; }; then
3183    cross_compiling=no
3184  else
3185    if test "$cross_compiling" = maybe; then
3186	cross_compiling=yes
3187    else
3188	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190as_fn_error $? "cannot run C compiled programs.
3191If you meant to cross compile, use \`--host'.
3192See \`config.log' for more details" "$LINENO" 5; }
3193    fi
3194  fi
3195fi
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3197$as_echo "$cross_compiling" >&6; }
3198
3199rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3200ac_clean_files=$ac_clean_files_save
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3202$as_echo_n "checking for suffix of object files... " >&6; }
3203if ${ac_cv_objext+:} false; then :
3204  $as_echo_n "(cached) " >&6
3205else
3206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217rm -f conftest.o conftest.obj
3218if { { ac_try="$ac_compile"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_compile") 2>&5
3226  ac_status=$?
3227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228  test $ac_status = 0; }; then :
3229  for ac_file in conftest.o conftest.obj conftest.*; do
3230  test -f "$ac_file" || continue;
3231  case $ac_file in
3232    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3233    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234       break;;
3235  esac
3236done
3237else
3238  $as_echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error $? "cannot compute suffix of object files: cannot compile
3244See \`config.log' for more details" "$LINENO" 5; }
3245fi
3246rm -f conftest.$ac_cv_objext conftest.$ac_ext
3247fi
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3249$as_echo "$ac_cv_objext" >&6; }
3250OBJEXT=$ac_cv_objext
3251ac_objext=$OBJEXT
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3253$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3254if ${ac_cv_c_compiler_gnu+:} false; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h.  */
3259
3260int
3261main ()
3262{
3263#ifndef __GNUC__
3264       choke me
3265#endif
3266
3267  ;
3268  return 0;
3269}
3270_ACEOF
3271if ac_fn_c_try_compile "$LINENO"; then :
3272  ac_compiler_gnu=yes
3273else
3274  ac_compiler_gnu=no
3275fi
3276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277ac_cv_c_compiler_gnu=$ac_compiler_gnu
3278
3279fi
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3281$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3282if test $ac_compiler_gnu = yes; then
3283  GCC=yes
3284else
3285  GCC=
3286fi
3287ac_test_CFLAGS=${CFLAGS+set}
3288ac_save_CFLAGS=$CFLAGS
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3290$as_echo_n "checking whether $CC accepts -g... " >&6; }
3291if ${ac_cv_prog_cc_g+:} false; then :
3292  $as_echo_n "(cached) " >&6
3293else
3294  ac_save_c_werror_flag=$ac_c_werror_flag
3295   ac_c_werror_flag=yes
3296   ac_cv_prog_cc_g=no
3297   CFLAGS="-g"
3298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299/* end confdefs.h.  */
3300
3301int
3302main ()
3303{
3304
3305  ;
3306  return 0;
3307}
3308_ACEOF
3309if ac_fn_c_try_compile "$LINENO"; then :
3310  ac_cv_prog_cc_g=yes
3311else
3312  CFLAGS=""
3313      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h.  */
3315
3316int
3317main ()
3318{
3319
3320  ;
3321  return 0;
3322}
3323_ACEOF
3324if ac_fn_c_try_compile "$LINENO"; then :
3325
3326else
3327  ac_c_werror_flag=$ac_save_c_werror_flag
3328	 CFLAGS="-g"
3329	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330/* end confdefs.h.  */
3331
3332int
3333main ()
3334{
3335
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340if ac_fn_c_try_compile "$LINENO"; then :
3341  ac_cv_prog_cc_g=yes
3342fi
3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344fi
3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346fi
3347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348   ac_c_werror_flag=$ac_save_c_werror_flag
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3351$as_echo "$ac_cv_prog_cc_g" >&6; }
3352if test "$ac_test_CFLAGS" = set; then
3353  CFLAGS=$ac_save_CFLAGS
3354elif test $ac_cv_prog_cc_g = yes; then
3355  if test "$GCC" = yes; then
3356    CFLAGS="-g -O2"
3357  else
3358    CFLAGS="-g"
3359  fi
3360else
3361  if test "$GCC" = yes; then
3362    CFLAGS="-O2"
3363  else
3364    CFLAGS=
3365  fi
3366fi
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3368$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3369if ${ac_cv_prog_cc_c89+:} false; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  ac_cv_prog_cc_c89=no
3373ac_save_CC=$CC
3374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h.  */
3376#include <stdarg.h>
3377#include <stdio.h>
3378struct stat;
3379/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3380struct buf { int x; };
3381FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382static char *e (p, i)
3383     char **p;
3384     int i;
3385{
3386  return p[i];
3387}
3388static char *f (char * (*g) (char **, int), char **p, ...)
3389{
3390  char *s;
3391  va_list v;
3392  va_start (v,p);
3393  s = g (p, va_arg (v,int));
3394  va_end (v);
3395  return s;
3396}
3397
3398/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3399   function prototypes and stuff, but not '\xHH' hex character constants.
3400   These don't provoke an error unfortunately, instead are silently treated
3401   as 'x'.  The following induces an error, until -std is added to get
3402   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3403   array size at least.  It's necessary to write '\x00'==0 to get something
3404   that's true only with -std.  */
3405int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3406
3407/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408   inside strings and character constants.  */
3409#define FOO(x) 'x'
3410int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3411
3412int test (int i, double x);
3413struct s1 {int (*f) (int a);};
3414struct s2 {int (*f) (double a);};
3415int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416int argc;
3417char **argv;
3418int
3419main ()
3420{
3421return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428do
3429  CC="$ac_save_CC $ac_arg"
3430  if ac_fn_c_try_compile "$LINENO"; then :
3431  ac_cv_prog_cc_c89=$ac_arg
3432fi
3433rm -f core conftest.err conftest.$ac_objext
3434  test "x$ac_cv_prog_cc_c89" != "xno" && break
3435done
3436rm -f conftest.$ac_ext
3437CC=$ac_save_CC
3438
3439fi
3440# AC_CACHE_VAL
3441case "x$ac_cv_prog_cc_c89" in
3442  x)
3443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3444$as_echo "none needed" >&6; } ;;
3445  xno)
3446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3447$as_echo "unsupported" >&6; } ;;
3448  *)
3449    CC="$CC $ac_cv_prog_cc_c89"
3450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3451$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3452esac
3453if test "x$ac_cv_prog_cc_c89" != xno; then :
3454
3455fi
3456
3457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3464$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3465if ${ac_cv_prog_cc_c99+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  ac_cv_prog_cc_c99=no
3469ac_save_CC=$CC
3470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471/* end confdefs.h.  */
3472#include <stdarg.h>
3473#include <stdbool.h>
3474#include <stdlib.h>
3475#include <wchar.h>
3476#include <stdio.h>
3477
3478// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3479#define debug(...) fprintf (stderr, __VA_ARGS__)
3480#define showlist(...) puts (#__VA_ARGS__)
3481#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3482static void
3483test_varargs_macros (void)
3484{
3485  int x = 1234;
3486  int y = 5678;
3487  debug ("Flag");
3488  debug ("X = %d\n", x);
3489  showlist (The first, second, and third items.);
3490  report (x>y, "x is %d but y is %d", x, y);
3491}
3492
3493// Check long long types.
3494#define BIG64 18446744073709551615ull
3495#define BIG32 4294967295ul
3496#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3497#if !BIG_OK
3498  your preprocessor is broken;
3499#endif
3500#if BIG_OK
3501#else
3502  your preprocessor is broken;
3503#endif
3504static long long int bignum = -9223372036854775807LL;
3505static unsigned long long int ubignum = BIG64;
3506
3507struct incomplete_array
3508{
3509  int datasize;
3510  double data[];
3511};
3512
3513struct named_init {
3514  int number;
3515  const wchar_t *name;
3516  double average;
3517};
3518
3519typedef const char *ccp;
3520
3521static inline int
3522test_restrict (ccp restrict text)
3523{
3524  // See if C++-style comments work.
3525  // Iterate through items via the restricted pointer.
3526  // Also check for declarations in for loops.
3527  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3528    continue;
3529  return 0;
3530}
3531
3532// Check varargs and va_copy.
3533static void
3534test_varargs (const char *format, ...)
3535{
3536  va_list args;
3537  va_start (args, format);
3538  va_list args_copy;
3539  va_copy (args_copy, args);
3540
3541  const char *str;
3542  int number;
3543  float fnumber;
3544
3545  while (*format)
3546    {
3547      switch (*format++)
3548	{
3549	case 's': // string
3550	  str = va_arg (args_copy, const char *);
3551	  break;
3552	case 'd': // int
3553	  number = va_arg (args_copy, int);
3554	  break;
3555	case 'f': // float
3556	  fnumber = va_arg (args_copy, double);
3557	  break;
3558	default:
3559	  break;
3560	}
3561    }
3562  va_end (args_copy);
3563  va_end (args);
3564}
3565
3566int
3567main ()
3568{
3569
3570  // Check bool.
3571  _Bool success = false;
3572
3573  // Check restrict.
3574  if (test_restrict ("String literal") == 0)
3575    success = true;
3576  char *restrict newvar = "Another string";
3577
3578  // Check varargs.
3579  test_varargs ("s, d' f .", "string", 65, 34.234);
3580  test_varargs_macros ();
3581
3582  // Check flexible array members.
3583  struct incomplete_array *ia =
3584    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3585  ia->datasize = 10;
3586  for (int i = 0; i < ia->datasize; ++i)
3587    ia->data[i] = i * 1.234;
3588
3589  // Check named initializers.
3590  struct named_init ni = {
3591    .number = 34,
3592    .name = L"Test wide string",
3593    .average = 543.34343,
3594  };
3595
3596  ni.number = 58;
3597
3598  int dynamic_array[ni.number];
3599  dynamic_array[ni.number - 1] = 543;
3600
3601  // work around unused variable warnings
3602  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3603	  || dynamic_array[ni.number - 1] != 543);
3604
3605  ;
3606  return 0;
3607}
3608_ACEOF
3609for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3610do
3611  CC="$ac_save_CC $ac_arg"
3612  if ac_fn_c_try_compile "$LINENO"; then :
3613  ac_cv_prog_cc_c99=$ac_arg
3614fi
3615rm -f core conftest.err conftest.$ac_objext
3616  test "x$ac_cv_prog_cc_c99" != "xno" && break
3617done
3618rm -f conftest.$ac_ext
3619CC=$ac_save_CC
3620
3621fi
3622# AC_CACHE_VAL
3623case "x$ac_cv_prog_cc_c99" in
3624  x)
3625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3626$as_echo "none needed" >&6; } ;;
3627  xno)
3628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3629$as_echo "unsupported" >&6; } ;;
3630  *)
3631    CC="$CC $ac_cv_prog_cc_c99"
3632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3633$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3634esac
3635if test "x$ac_cv_prog_cc_c99" != xno; then :
3636
3637fi
3638
3639		ac_ext=c
3640ac_cpp='$CPP $CPPFLAGS'
3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3645$as_echo_n "checking how to run the C preprocessor... " >&6; }
3646# On Suns, sometimes $CPP names a directory.
3647if test -n "$CPP" && test -d "$CPP"; then
3648  CPP=
3649fi
3650if test -z "$CPP"; then
3651  if ${ac_cv_prog_CPP+:} false; then :
3652  $as_echo_n "(cached) " >&6
3653else
3654      # Double quotes because CPP needs to be expanded
3655    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3656    do
3657      ac_preproc_ok=false
3658for ac_c_preproc_warn_flag in '' yes
3659do
3660  # Use a header file that comes with gcc, so configuring glibc
3661  # with a fresh cross-compiler works.
3662  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3663  # <limits.h> exists even on freestanding compilers.
3664  # On the NeXT, cc -E runs the code through the compiler's parser,
3665  # not just through cpp. "Syntax error" is here to catch this case.
3666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h.  */
3668#ifdef __STDC__
3669# include <limits.h>
3670#else
3671# include <assert.h>
3672#endif
3673		     Syntax error
3674_ACEOF
3675if ac_fn_c_try_cpp "$LINENO"; then :
3676
3677else
3678  # Broken: fails on valid input.
3679continue
3680fi
3681rm -f conftest.err conftest.i conftest.$ac_ext
3682
3683  # OK, works on sane cases.  Now check whether nonexistent headers
3684  # can be detected and how.
3685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687#include <ac_nonexistent.h>
3688_ACEOF
3689if ac_fn_c_try_cpp "$LINENO"; then :
3690  # Broken: success on invalid input.
3691continue
3692else
3693  # Passes both tests.
3694ac_preproc_ok=:
3695break
3696fi
3697rm -f conftest.err conftest.i conftest.$ac_ext
3698
3699done
3700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3701rm -f conftest.i conftest.err conftest.$ac_ext
3702if $ac_preproc_ok; then :
3703  break
3704fi
3705
3706    done
3707    ac_cv_prog_CPP=$CPP
3708
3709fi
3710  CPP=$ac_cv_prog_CPP
3711else
3712  ac_cv_prog_CPP=$CPP
3713fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3715$as_echo "$CPP" >&6; }
3716ac_preproc_ok=false
3717for ac_c_preproc_warn_flag in '' yes
3718do
3719  # Use a header file that comes with gcc, so configuring glibc
3720  # with a fresh cross-compiler works.
3721  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722  # <limits.h> exists even on freestanding compilers.
3723  # On the NeXT, cc -E runs the code through the compiler's parser,
3724  # not just through cpp. "Syntax error" is here to catch this case.
3725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726/* end confdefs.h.  */
3727#ifdef __STDC__
3728# include <limits.h>
3729#else
3730# include <assert.h>
3731#endif
3732		     Syntax error
3733_ACEOF
3734if ac_fn_c_try_cpp "$LINENO"; then :
3735
3736else
3737  # Broken: fails on valid input.
3738continue
3739fi
3740rm -f conftest.err conftest.i conftest.$ac_ext
3741
3742  # OK, works on sane cases.  Now check whether nonexistent headers
3743  # can be detected and how.
3744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h.  */
3746#include <ac_nonexistent.h>
3747_ACEOF
3748if ac_fn_c_try_cpp "$LINENO"; then :
3749  # Broken: success on invalid input.
3750continue
3751else
3752  # Passes both tests.
3753ac_preproc_ok=:
3754break
3755fi
3756rm -f conftest.err conftest.i conftest.$ac_ext
3757
3758done
3759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3760rm -f conftest.i conftest.err conftest.$ac_ext
3761if $ac_preproc_ok; then :
3762
3763else
3764  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3767See \`config.log' for more details" "$LINENO" 5; }
3768fi
3769
3770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3778$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3779if ${ac_cv_path_GREP+:} false; then :
3780  $as_echo_n "(cached) " >&6
3781else
3782  if test -z "$GREP"; then
3783  ac_path_GREP_found=false
3784  # Loop through the user's path and test for each of PROGNAME-LIST
3785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787do
3788  IFS=$as_save_IFS
3789  test -z "$as_dir" && as_dir=.
3790    for ac_prog in grep ggrep; do
3791    for ac_exec_ext in '' $ac_executable_extensions; do
3792      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3793      as_fn_executable_p "$ac_path_GREP" || continue
3794# Check for GNU ac_path_GREP and select it if it is found.
3795  # Check for GNU $ac_path_GREP
3796case `"$ac_path_GREP" --version 2>&1` in
3797*GNU*)
3798  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3799*)
3800  ac_count=0
3801  $as_echo_n 0123456789 >"conftest.in"
3802  while :
3803  do
3804    cat "conftest.in" "conftest.in" >"conftest.tmp"
3805    mv "conftest.tmp" "conftest.in"
3806    cp "conftest.in" "conftest.nl"
3807    $as_echo 'GREP' >> "conftest.nl"
3808    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810    as_fn_arith $ac_count + 1 && ac_count=$as_val
3811    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3812      # Best one so far, save it but keep looking for a better one
3813      ac_cv_path_GREP="$ac_path_GREP"
3814      ac_path_GREP_max=$ac_count
3815    fi
3816    # 10*(2^10) chars as input seems more than enough
3817    test $ac_count -gt 10 && break
3818  done
3819  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820esac
3821
3822      $ac_path_GREP_found && break 3
3823    done
3824  done
3825  done
3826IFS=$as_save_IFS
3827  if test -z "$ac_cv_path_GREP"; then
3828    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3829  fi
3830else
3831  ac_cv_path_GREP=$GREP
3832fi
3833
3834fi
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3836$as_echo "$ac_cv_path_GREP" >&6; }
3837 GREP="$ac_cv_path_GREP"
3838
3839
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3841$as_echo_n "checking for egrep... " >&6; }
3842if ${ac_cv_path_EGREP+:} false; then :
3843  $as_echo_n "(cached) " >&6
3844else
3845  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3846   then ac_cv_path_EGREP="$GREP -E"
3847   else
3848     if test -z "$EGREP"; then
3849  ac_path_EGREP_found=false
3850  # Loop through the user's path and test for each of PROGNAME-LIST
3851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853do
3854  IFS=$as_save_IFS
3855  test -z "$as_dir" && as_dir=.
3856    for ac_prog in egrep; do
3857    for ac_exec_ext in '' $ac_executable_extensions; do
3858      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3859      as_fn_executable_p "$ac_path_EGREP" || continue
3860# Check for GNU ac_path_EGREP and select it if it is found.
3861  # Check for GNU $ac_path_EGREP
3862case `"$ac_path_EGREP" --version 2>&1` in
3863*GNU*)
3864  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3865*)
3866  ac_count=0
3867  $as_echo_n 0123456789 >"conftest.in"
3868  while :
3869  do
3870    cat "conftest.in" "conftest.in" >"conftest.tmp"
3871    mv "conftest.tmp" "conftest.in"
3872    cp "conftest.in" "conftest.nl"
3873    $as_echo 'EGREP' >> "conftest.nl"
3874    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876    as_fn_arith $ac_count + 1 && ac_count=$as_val
3877    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3878      # Best one so far, save it but keep looking for a better one
3879      ac_cv_path_EGREP="$ac_path_EGREP"
3880      ac_path_EGREP_max=$ac_count
3881    fi
3882    # 10*(2^10) chars as input seems more than enough
3883    test $ac_count -gt 10 && break
3884  done
3885  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886esac
3887
3888      $ac_path_EGREP_found && break 3
3889    done
3890  done
3891  done
3892IFS=$as_save_IFS
3893  if test -z "$ac_cv_path_EGREP"; then
3894    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3895  fi
3896else
3897  ac_cv_path_EGREP=$EGREP
3898fi
3899
3900   fi
3901fi
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3903$as_echo "$ac_cv_path_EGREP" >&6; }
3904 EGREP="$ac_cv_path_EGREP"
3905
3906
3907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908/* end confdefs.h.  */
3909
3910_ACEOF
3911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912  $EGREP "" >/dev/null 2>&1; then :
3913
3914fi
3915rm -f conftest*
3916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3917$as_echo_n "checking for fgrep... " >&6; }
3918if ${ac_cv_path_FGREP+:} false; then :
3919  $as_echo_n "(cached) " >&6
3920else
3921  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3922   then ac_cv_path_FGREP="$GREP -F"
3923   else
3924     if test -z "$FGREP"; then
3925  ac_path_FGREP_found=false
3926  # Loop through the user's path and test for each of PROGNAME-LIST
3927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3929do
3930  IFS=$as_save_IFS
3931  test -z "$as_dir" && as_dir=.
3932    for ac_prog in fgrep; do
3933    for ac_exec_ext in '' $ac_executable_extensions; do
3934      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3935      as_fn_executable_p "$ac_path_FGREP" || continue
3936# Check for GNU ac_path_FGREP and select it if it is found.
3937  # Check for GNU $ac_path_FGREP
3938case `"$ac_path_FGREP" --version 2>&1` in
3939*GNU*)
3940  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3941*)
3942  ac_count=0
3943  $as_echo_n 0123456789 >"conftest.in"
3944  while :
3945  do
3946    cat "conftest.in" "conftest.in" >"conftest.tmp"
3947    mv "conftest.tmp" "conftest.in"
3948    cp "conftest.in" "conftest.nl"
3949    $as_echo 'FGREP' >> "conftest.nl"
3950    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952    as_fn_arith $ac_count + 1 && ac_count=$as_val
3953    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3954      # Best one so far, save it but keep looking for a better one
3955      ac_cv_path_FGREP="$ac_path_FGREP"
3956      ac_path_FGREP_max=$ac_count
3957    fi
3958    # 10*(2^10) chars as input seems more than enough
3959    test $ac_count -gt 10 && break
3960  done
3961  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962esac
3963
3964      $ac_path_FGREP_found && break 3
3965    done
3966  done
3967  done
3968IFS=$as_save_IFS
3969  if test -z "$ac_cv_path_FGREP"; then
3970    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3971  fi
3972else
3973  ac_cv_path_FGREP=$FGREP
3974fi
3975
3976   fi
3977fi
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3979$as_echo "$ac_cv_path_FGREP" >&6; }
3980 FGREP="$ac_cv_path_FGREP"
3981
3982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3983$as_echo_n "checking for library containing strerror... " >&6; }
3984if ${ac_cv_search_strerror+:} false; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  ac_func_search_save_LIBS=$LIBS
3988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989/* end confdefs.h.  */
3990
3991/* Override any GCC internal prototype to avoid an error.
3992   Use char because int might match the return type of a GCC
3993   builtin and then its argument prototype would still apply.  */
3994#ifdef __cplusplus
3995extern "C"
3996#endif
3997char strerror ();
3998int
3999main ()
4000{
4001return strerror ();
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006for ac_lib in '' cposix; do
4007  if test -z "$ac_lib"; then
4008    ac_res="none required"
4009  else
4010    ac_res=-l$ac_lib
4011    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4012  fi
4013  if ac_fn_c_try_link "$LINENO"; then :
4014  ac_cv_search_strerror=$ac_res
4015fi
4016rm -f core conftest.err conftest.$ac_objext \
4017    conftest$ac_exeext
4018  if ${ac_cv_search_strerror+:} false; then :
4019  break
4020fi
4021done
4022if ${ac_cv_search_strerror+:} false; then :
4023
4024else
4025  ac_cv_search_strerror=no
4026fi
4027rm conftest.$ac_ext
4028LIBS=$ac_func_search_save_LIBS
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4031$as_echo "$ac_cv_search_strerror" >&6; }
4032ac_res=$ac_cv_search_strerror
4033if test "$ac_res" != no; then :
4034  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4035
4036fi
4037		for ac_prog in gawk mawk nawk awk
4038do
4039  # Extract the first word of "$ac_prog", so it can be a program name with args.
4040set dummy $ac_prog; ac_word=$2
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
4043if ${ac_cv_prog_AWK+:} false; then :
4044  $as_echo_n "(cached) " >&6
4045else
4046  if test -n "$AWK"; then
4047  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  test -z "$as_dir" && as_dir=.
4054    for ac_exec_ext in '' $ac_executable_extensions; do
4055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056    ac_cv_prog_AWK="$ac_prog"
4057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058    break 2
4059  fi
4060done
4061  done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066AWK=$ac_cv_prog_AWK
4067if test -n "$AWK"; then
4068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4069$as_echo "$AWK" >&6; }
4070else
4071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072$as_echo "no" >&6; }
4073fi
4074
4075
4076  test -n "$AWK" && break
4077done
4078
4079# Extract the first word of "strip", so it can be a program name with args.
4080set dummy strip; ac_word=$2
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082$as_echo_n "checking for $ac_word... " >&6; }
4083if ${ac_cv_prog_STRIP+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  if test -n "$STRIP"; then
4087  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094    for ac_exec_ext in '' $ac_executable_extensions; do
4095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096    ac_cv_prog_STRIP="strip"
4097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098    break 2
4099  fi
4100done
4101  done
4102IFS=$as_save_IFS
4103
4104  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4105fi
4106fi
4107STRIP=$ac_cv_prog_STRIP
4108if test -n "$STRIP"; then
4109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4110$as_echo "$STRIP" >&6; }
4111else
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113$as_echo "no" >&6; }
4114fi
4115
4116
4117
4118
4119
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4121$as_echo_n "checking for ANSI C header files... " >&6; }
4122if ${ac_cv_header_stdc+:} false; then :
4123  $as_echo_n "(cached) " >&6
4124else
4125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h.  */
4127#include <stdlib.h>
4128#include <stdarg.h>
4129#include <string.h>
4130#include <float.h>
4131
4132int
4133main ()
4134{
4135
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"; then :
4141  ac_cv_header_stdc=yes
4142else
4143  ac_cv_header_stdc=no
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146
4147if test $ac_cv_header_stdc = yes; then
4148  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h.  */
4151#include <string.h>
4152
4153_ACEOF
4154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155  $EGREP "memchr" >/dev/null 2>&1; then :
4156
4157else
4158  ac_cv_header_stdc=no
4159fi
4160rm -f conftest*
4161
4162fi
4163
4164if test $ac_cv_header_stdc = yes; then
4165  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h.  */
4168#include <stdlib.h>
4169
4170_ACEOF
4171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172  $EGREP "free" >/dev/null 2>&1; then :
4173
4174else
4175  ac_cv_header_stdc=no
4176fi
4177rm -f conftest*
4178
4179fi
4180
4181if test $ac_cv_header_stdc = yes; then
4182  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4183  if test "$cross_compiling" = yes; then :
4184  :
4185else
4186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h.  */
4188#include <ctype.h>
4189#include <stdlib.h>
4190#if ((' ' & 0x0FF) == 0x020)
4191# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4192# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4193#else
4194# define ISLOWER(c) \
4195		   (('a' <= (c) && (c) <= 'i') \
4196		     || ('j' <= (c) && (c) <= 'r') \
4197		     || ('s' <= (c) && (c) <= 'z'))
4198# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4199#endif
4200
4201#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4202int
4203main ()
4204{
4205  int i;
4206  for (i = 0; i < 256; i++)
4207    if (XOR (islower (i), ISLOWER (i))
4208	|| toupper (i) != TOUPPER (i))
4209      return 2;
4210  return 0;
4211}
4212_ACEOF
4213if ac_fn_c_try_run "$LINENO"; then :
4214
4215else
4216  ac_cv_header_stdc=no
4217fi
4218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4219  conftest.$ac_objext conftest.beam conftest.$ac_ext
4220fi
4221
4222fi
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4225$as_echo "$ac_cv_header_stdc" >&6; }
4226if test $ac_cv_header_stdc = yes; then
4227
4228$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4229
4230fi
4231
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4233$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4234if ${ac_cv_header_sys_wait_h+:} false; then :
4235  $as_echo_n "(cached) " >&6
4236else
4237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h.  */
4239#include <sys/types.h>
4240#include <sys/wait.h>
4241#ifndef WEXITSTATUS
4242# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4243#endif
4244#ifndef WIFEXITED
4245# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4246#endif
4247
4248int
4249main ()
4250{
4251  int s;
4252  wait (&s);
4253  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4254  ;
4255  return 0;
4256}
4257_ACEOF
4258if ac_fn_c_try_compile "$LINENO"; then :
4259  ac_cv_header_sys_wait_h=yes
4260else
4261  ac_cv_header_sys_wait_h=no
4262fi
4263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4266$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4267if test $ac_cv_header_sys_wait_h = yes; then
4268
4269$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4270
4271fi
4272
4273
4274if test x"$ac_cv_prog_cc_c99" != xno; then
4275
4276
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4278$as_echo_n "checking for unsigned long long int... " >&6; }
4279if ${ac_cv_type_unsigned_long_long_int+:} false; then :
4280  $as_echo_n "(cached) " >&6
4281else
4282  ac_cv_type_unsigned_long_long_int=yes
4283     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4284       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286
4287  /* For now, do not test the preprocessor; as of 2007 there are too many
4288	 implementations with broken preprocessors.  Perhaps this can
4289	 be revisited in 2012.  In the meantime, code should not expect
4290	 #if to work with literals wider than 32 bits.  */
4291      /* Test literals.  */
4292      long long int ll = 9223372036854775807ll;
4293      long long int nll = -9223372036854775807LL;
4294      unsigned long long int ull = 18446744073709551615ULL;
4295      /* Test constant expressions.   */
4296      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4297		     ? 1 : -1)];
4298      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4299		     ? 1 : -1)];
4300      int i = 63;
4301int
4302main ()
4303{
4304/* Test availability of runtime routines for shift and division.  */
4305      long long int llmax = 9223372036854775807ll;
4306      unsigned long long int ullmax = 18446744073709551615ull;
4307      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4308	      | (llmax / ll) | (llmax % ll)
4309	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4310	      | (ullmax / ull) | (ullmax % ull));
4311  ;
4312  return 0;
4313}
4314
4315_ACEOF
4316if ac_fn_c_try_link "$LINENO"; then :
4317
4318else
4319  ac_cv_type_unsigned_long_long_int=no
4320fi
4321rm -f core conftest.err conftest.$ac_objext \
4322    conftest$ac_exeext conftest.$ac_ext
4323     fi
4324fi
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4326$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4327  if test $ac_cv_type_unsigned_long_long_int = yes; then
4328
4329$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4330
4331  fi
4332
4333
4334
4335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4336$as_echo_n "checking for long long int... " >&6; }
4337if ${ac_cv_type_long_long_int+:} false; then :
4338  $as_echo_n "(cached) " >&6
4339else
4340  ac_cv_type_long_long_int=yes
4341      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4342	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
4343	if test $ac_cv_type_long_long_int = yes; then
4344	  	  	  	  if test "$cross_compiling" = yes; then :
4345  :
4346else
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349#include <limits.h>
4350		 #ifndef LLONG_MAX
4351		 # define HALF \
4352			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4353		 # define LLONG_MAX (HALF - 1 + HALF)
4354		 #endif
4355int
4356main ()
4357{
4358long long int n = 1;
4359		 int i;
4360		 for (i = 0; ; i++)
4361		   {
4362		     long long int m = n << i;
4363		     if (m >> i != n)
4364		       return 1;
4365		     if (LLONG_MAX / 2 < m)
4366		       break;
4367		   }
4368		 return 0;
4369  ;
4370  return 0;
4371}
4372_ACEOF
4373if ac_fn_c_try_run "$LINENO"; then :
4374
4375else
4376  ac_cv_type_long_long_int=no
4377fi
4378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4379  conftest.$ac_objext conftest.beam conftest.$ac_ext
4380fi
4381
4382	fi
4383      fi
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4386$as_echo "$ac_cv_type_long_long_int" >&6; }
4387  if test $ac_cv_type_long_long_int = yes; then
4388
4389$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4390
4391  fi
4392
4393  if test "$ac_cv_type_long_long_int" = no; then
4394    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4396as_fn_error $? "Compiler does not support long long int
4397See \`config.log' for more details" "$LINENO" 5; }
4398  fi
4399
4400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5
4401$as_echo_n "checking if the compiler supports trailing commas... " >&6; }
4402  trailing_commas=no
4403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h.  */
4405
4406int
4407main ()
4408{
4409
4410    enum {
4411      one,
4412    };
4413  ;
4414  return 0;
4415}
4416_ACEOF
4417if ac_fn_c_try_compile "$LINENO"; then :
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4419$as_echo "yes" >&6; }; trailing_commas=yes
4420else
4421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422$as_echo "no" >&6; }
4423fi
4424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425  if test "$trailing_commas" = no; then
4426    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428as_fn_error $? "Compiler does not support trailing comma in enum
4429See \`config.log' for more details" "$LINENO" 5; }
4430  fi
4431
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5
4433$as_echo_n "checking if the compiler supports C++ comments... " >&6; }
4434  slash_comments=no
4435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436/* end confdefs.h.  */
4437
4438int
4439main ()
4440{
4441// C++ comments?
4442  ;
4443  return 0;
4444}
4445_ACEOF
4446if ac_fn_c_try_compile "$LINENO"; then :
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4448$as_echo "yes" >&6; }; slash_comments=yes
4449else
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451$as_echo "no" >&6; }
4452fi
4453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454  if test "$slash_comments" = no; then
4455    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4457as_fn_error $? "Compiler does not support C++ comments
4458See \`config.log' for more details" "$LINENO" 5; }
4459  fi
4460fi
4461
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4464$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4465# Check whether --enable-fail_if_missing was given.
4466if test "${enable_fail_if_missing+set}" = set; then :
4467  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4468else
4469  fail_if_missing="no"
4470fi
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4473$as_echo "$fail_if_missing" >&6; }
4474
4475with_x_arg="$with_x"
4476
4477if test -z "$CFLAGS"; then
4478  CFLAGS="-O"
4479  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4480fi
4481if test "$GCC" = yes; then
4482    gccversion=`$CC -dumpversion`
4483  if test "x$gccversion" = "x"; then
4484        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4485  fi
4486    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4487    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4488    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4489  else
4490    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4491      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4492      CFLAGS="$CFLAGS -fno-strength-reduce"
4493    fi
4494  fi
4495fi
4496
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4498$as_echo_n "checking for clang version... " >&6; }
4499CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed  -n -e 's/^.*clang[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'`
4500if test x"$CLANG_VERSION_STRING" != x"" ; then
4501  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4502  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4503  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4504  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4506$as_echo "$CLANG_VERSION" >&6; }
4507          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4508$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4509  if test "$CLANG_VERSION" -ge 500002075 ; then
4510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511$as_echo "no" >&6; }
4512    CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4513  else
4514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4515$as_echo "yes" >&6; }
4516  fi
4517else
4518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4519$as_echo "N/A" >&6; }
4520fi
4521
4522CROSS_COMPILING=
4523if test "$cross_compiling" = yes; then
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4525$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4526  CROSS_COMPILING=1
4527fi
4528
4529
4530test "$GCC" = yes && CPP_MM=M;
4531
4532if test -f ./toolcheck; then
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4534$as_echo "$as_me: checking for buggy tools..." >&6;}
4535  sh ./toolcheck 1>&6
4536fi
4537
4538OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4539
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4541$as_echo_n "checking for BeOS... " >&6; }
4542case `uname` in
4543    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4544		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545$as_echo "yes" >&6; };;
4546    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547$as_echo "no" >&6; };;
4548esac
4549
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4551$as_echo_n "checking for QNX... " >&6; }
4552case `uname` in
4553    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4554		test -z "$with_x" && with_x=no
4555		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4556$as_echo "yes" >&6; };;
4557    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558$as_echo "no" >&6; };;
4559esac
4560
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4562$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4563if test "`(uname) 2>/dev/null`" = Darwin; then
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565$as_echo "yes" >&6; }
4566  MACOS_X=yes
4567  CPPFLAGS="$CPPFLAGS -DMACOS_X"
4568
4569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4570$as_echo_n "checking --disable-darwin argument... " >&6; }
4571  # Check whether --enable-darwin was given.
4572if test "${enable_darwin+set}" = set; then :
4573  enableval=$enable_darwin;
4574else
4575  enable_darwin="yes"
4576fi
4577
4578  if test "$enable_darwin" = "yes"; then
4579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580$as_echo "no" >&6; }
4581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4582$as_echo_n "checking if Darwin files are there... " >&6; }
4583    if test -f os_macosx.m; then
4584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585$as_echo "yes" >&6; }
4586    else
4587      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4588$as_echo "no, Darwin support disabled" >&6; }
4589      enable_darwin=no
4590    fi
4591  else
4592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4593$as_echo "yes, Darwin support excluded" >&6; }
4594  fi
4595
4596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4597$as_echo_n "checking --with-mac-arch argument... " >&6; }
4598
4599# Check whether --with-mac-arch was given.
4600if test "${with_mac_arch+set}" = set; then :
4601  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4602$as_echo "$MACARCH" >&6; }
4603else
4604  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4605$as_echo "defaulting to $MACARCH" >&6; }
4606fi
4607
4608
4609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4610$as_echo_n "checking --with-developer-dir argument... " >&6; }
4611
4612# Check whether --with-developer-dir was given.
4613if test "${with_developer_dir+set}" = set; then :
4614  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4615$as_echo "$DEVELOPER_DIR" >&6; }
4616else
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4618$as_echo "not present" >&6; }
4619fi
4620
4621
4622  if test "x$DEVELOPER_DIR" = "x"; then
4623    # Extract the first word of "xcode-select", so it can be a program name with args.
4624set dummy xcode-select; ac_word=$2
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626$as_echo_n "checking for $ac_word... " >&6; }
4627if ${ac_cv_path_XCODE_SELECT+:} false; then :
4628  $as_echo_n "(cached) " >&6
4629else
4630  case $XCODE_SELECT in
4631  [\\/]* | ?:[\\/]*)
4632  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4633  ;;
4634  *)
4635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638  IFS=$as_save_IFS
4639  test -z "$as_dir" && as_dir=.
4640    for ac_exec_ext in '' $ac_executable_extensions; do
4641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644    break 2
4645  fi
4646done
4647  done
4648IFS=$as_save_IFS
4649
4650  ;;
4651esac
4652fi
4653XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4654if test -n "$XCODE_SELECT"; then
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4656$as_echo "$XCODE_SELECT" >&6; }
4657else
4658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4659$as_echo "no" >&6; }
4660fi
4661
4662
4663    if test "x$XCODE_SELECT" != "x"; then
4664      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4665$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4666      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4667      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4668$as_echo "$DEVELOPER_DIR" >&6; }
4669    else
4670      DEVELOPER_DIR=/Developer
4671    fi
4672  fi
4673
4674  if test "x$MACARCH" = "xboth"; then
4675    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4676$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4677                            save_cppflags="$CPPFLAGS"
4678    save_cflags="$CFLAGS"
4679    save_ldflags="$LDFLAGS"
4680    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4681    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682/* end confdefs.h.  */
4683
4684int
4685main ()
4686{
4687
4688  ;
4689  return 0;
4690}
4691_ACEOF
4692if ac_fn_c_try_link "$LINENO"; then :
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4694$as_echo "found" >&6; }
4695else
4696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4697$as_echo "not found" >&6; }
4698	CFLAGS="$save_cflags"
4699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4700$as_echo_n "checking if Intel architecture is supported... " >&6; }
4701	CPPFLAGS="$CPPFLAGS -arch i386"
4702	LDFLAGS="$save_ldflags -arch i386"
4703	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704/* end confdefs.h.  */
4705
4706int
4707main ()
4708{
4709
4710  ;
4711  return 0;
4712}
4713_ACEOF
4714if ac_fn_c_try_link "$LINENO"; then :
4715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4716$as_echo "yes" >&6; }; MACARCH="intel"
4717else
4718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719$as_echo "no" >&6; }
4720		MACARCH="ppc"
4721		CPPFLAGS="$save_cppflags -arch ppc"
4722		LDFLAGS="$save_ldflags -arch ppc"
4723fi
4724rm -f core conftest.err conftest.$ac_objext \
4725    conftest$ac_exeext conftest.$ac_ext
4726fi
4727rm -f core conftest.err conftest.$ac_objext \
4728    conftest$ac_exeext conftest.$ac_ext
4729  elif test "x$MACARCH" = "xintel"; then
4730    CPPFLAGS="$CPPFLAGS -arch intel"
4731    LDFLAGS="$LDFLAGS -arch intel"
4732  elif test "x$MACARCH" = "xppc"; then
4733    CPPFLAGS="$CPPFLAGS -arch ppc"
4734    LDFLAGS="$LDFLAGS -arch ppc"
4735  fi
4736
4737  if test "$enable_darwin" = "yes"; then
4738    MACOS_X_DARWIN=yes
4739    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4740    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4741            CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
4742
4743                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4744for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4745		  inttypes.h stdint.h unistd.h
4746do :
4747  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4749"
4750if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4751  cat >>confdefs.h <<_ACEOF
4752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4753_ACEOF
4754
4755fi
4756
4757done
4758
4759
4760ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4761if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4762  CARBON=yes
4763fi
4764
4765
4766    if test "x$CARBON" = "xyes"; then
4767      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then
4768	with_x=no
4769      fi
4770    fi
4771  fi
4772
4773        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4774    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4775  fi
4776
4777else
4778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779$as_echo "no" >&6; }
4780fi
4781
4782for ac_header in AvailabilityMacros.h
4783do :
4784  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4785if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4786  cat >>confdefs.h <<_ACEOF
4787#define HAVE_AVAILABILITYMACROS_H 1
4788_ACEOF
4789
4790fi
4791
4792done
4793
4794
4795
4796
4797
4798if test "$cross_compiling" = no; then
4799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4800$as_echo_n "checking --with-local-dir argument... " >&6; }
4801  have_local_include=''
4802  have_local_lib=''
4803
4804# Check whether --with-local-dir was given.
4805if test "${with_local_dir+set}" = set; then :
4806  withval=$with_local_dir;
4807    local_dir="$withval"
4808    case "$withval" in
4809    */*) ;;
4810    no)
4811      # avoid adding local dir to LDFLAGS and CPPFLAGS
4812      have_local_include=yes
4813      have_local_lib=yes
4814      ;;
4815    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4816    esac
4817	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4818$as_echo "$local_dir" >&6; }
4819
4820else
4821
4822    local_dir=/usr/local
4823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4824$as_echo "Defaulting to $local_dir" >&6; }
4825
4826fi
4827
4828  if test "$GCC" = yes -a "$local_dir" != no; then
4829    echo 'void f(){}' > conftest.c
4830        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4831    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4832    rm -f conftest.c conftest.o
4833  fi
4834  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4835    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4836    if test "$tt" = "$LDFLAGS"; then
4837      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4838    fi
4839  fi
4840  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4841    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4842    if test "$tt" = "$CPPFLAGS"; then
4843      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4844    fi
4845  fi
4846fi
4847
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4849$as_echo_n "checking --with-vim-name argument... " >&6; }
4850
4851# Check whether --with-vim-name was given.
4852if test "${with_vim_name+set}" = set; then :
4853  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4854$as_echo "$VIMNAME" >&6; }
4855else
4856  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4857$as_echo "Defaulting to $VIMNAME" >&6; }
4858fi
4859
4860
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4862$as_echo_n "checking --with-ex-name argument... " >&6; }
4863
4864# Check whether --with-ex-name was given.
4865if test "${with_ex_name+set}" = set; then :
4866  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4867$as_echo "$EXNAME" >&6; }
4868else
4869  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4870$as_echo "Defaulting to ex" >&6; }
4871fi
4872
4873
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4875$as_echo_n "checking --with-view-name argument... " >&6; }
4876
4877# Check whether --with-view-name was given.
4878if test "${with_view_name+set}" = set; then :
4879  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4880$as_echo "$VIEWNAME" >&6; }
4881else
4882  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4883$as_echo "Defaulting to view" >&6; }
4884fi
4885
4886
4887
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4889$as_echo_n "checking --with-global-runtime argument... " >&6; }
4890
4891# Check whether --with-global-runtime was given.
4892if test "${with_global_runtime+set}" = set; then :
4893  withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4894$as_echo "$withval" >&6; }
4895else
4896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897$as_echo "no" >&6; }
4898fi
4899
4900
4901if test "X$RUNTIME_GLOBAL" != "X"; then
4902  RUNTIME_GLOBAL_AFTER=$(printf -- "$RUNTIME_GLOBAL\\n" | $AWK -F, 'BEGIN { comma=0 } { for (i = NF; i > 0; i--) { if (comma) { printf ",%s/after", $i } else { printf "%s/after", $i; comma=1 } } } END { printf "\n" }')
4903  cat >>confdefs.h <<_ACEOF
4904#define RUNTIME_GLOBAL "$RUNTIME_GLOBAL"
4905_ACEOF
4906
4907  cat >>confdefs.h <<_ACEOF
4908#define RUNTIME_GLOBAL_AFTER "$RUNTIME_GLOBAL_AFTER"
4909_ACEOF
4910
4911fi
4912
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4914$as_echo_n "checking --with-modified-by argument... " >&6; }
4915
4916# Check whether --with-modified-by was given.
4917if test "${with_modified_by+set}" = set; then :
4918  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4919$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4920#define MODIFIED_BY "$withval"
4921_ACEOF
4922
4923else
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927
4928
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4930$as_echo_n "checking if character set is EBCDIC... " >&6; }
4931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h.  */
4933
4934int
4935main ()
4936{
4937 /* TryCompile function for CharSet.
4938   Treat any failure as ASCII for compatibility with existing art.
4939   Use compile-time rather than run-time tests for cross-compiler
4940   tolerance.  */
4941#if '0'!=240
4942make an error "Character set is not EBCDIC"
4943#endif
4944  ;
4945  return 0;
4946}
4947_ACEOF
4948if ac_fn_c_try_compile "$LINENO"; then :
4949   # TryCompile action if true
4950cf_cv_ebcdic=yes
4951else
4952   # TryCompile action if false
4953cf_cv_ebcdic=no
4954fi
4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956# end of TryCompile ])
4957# end of CacheVal CvEbcdic
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4959$as_echo "$cf_cv_ebcdic" >&6; }
4960case "$cf_cv_ebcdic" in  #(vi
4961    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4962
4963		line_break='"\\n"'
4964		;;
4965    *)		line_break='"\\012"';;
4966esac
4967
4968
4969if test "$cf_cv_ebcdic" = "yes"; then
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4971$as_echo_n "checking for z/OS Unix... " >&6; }
4972case `uname` in
4973    OS/390)	zOSUnix="yes";
4974										if test "$CC" = "cc"; then
4975		  ccm="$_CC_CCMODE"
4976		  ccn="CC"
4977		else
4978		  if test "$CC" = "c89"; then
4979		    ccm="$_CC_C89MODE"
4980		    ccn="C89"
4981		  else
4982		    ccm=1
4983		  fi
4984		fi
4985		if test "$ccm" != "1"; then
4986		  echo ""
4987		  echo "------------------------------------------"
4988		  echo " On z/OS Unix, the environment variable"
4989		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4990		  echo " Do:"
4991		  echo "    export _CC_${ccn}MODE=1"
4992		  echo " and then call configure again."
4993		  echo "------------------------------------------"
4994		  exit 1
4995		fi
4996		# Set CFLAGS for configure process.
4997		# This will be reset later for config.mk.
4998		# Use haltonmsg to force error for missing H files.
4999		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
5000		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
5001		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5002$as_echo "yes" >&6; }
5003		;;
5004    *)		zOSUnix="no";
5005		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006$as_echo "no" >&6; }
5007		;;
5008esac
5009fi
5010
5011if test "$zOSUnix" = "yes"; then
5012    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
5013else
5014    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
5015fi
5016
5017
5018
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
5020$as_echo_n "checking --disable-smack argument... " >&6; }
5021# Check whether --enable-smack was given.
5022if test "${enable_smack+set}" = set; then :
5023  enableval=$enable_smack;
5024else
5025  enable_smack="yes"
5026fi
5027
5028if test "$enable_smack" = "yes"; then
5029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030$as_echo "no" >&6; }
5031  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
5032if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
5033  true
5034else
5035  enable_smack="no"
5036fi
5037
5038
5039else
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5041$as_echo "yes" >&6; }
5042fi
5043if test "$enable_smack" = "yes"; then
5044  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
5045if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
5046  true
5047else
5048  enable_smack="no"
5049fi
5050
5051
5052fi
5053if test "$enable_smack" = "yes"; then
5054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
5055$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
5056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h.  */
5058#include <linux/xattr.h>
5059_ACEOF
5060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5061  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5063$as_echo "yes" >&6; }
5064else
5065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066$as_echo "no" >&6; }; enable_smack="no"
5067fi
5068rm -f conftest*
5069
5070fi
5071if test "$enable_smack" = "yes"; then
5072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
5073$as_echo_n "checking for setxattr in -lattr... " >&6; }
5074if ${ac_cv_lib_attr_setxattr+:} false; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077  ac_check_lib_save_LIBS=$LIBS
5078LIBS="-lattr  $LIBS"
5079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h.  */
5081
5082/* Override any GCC internal prototype to avoid an error.
5083   Use char because int might match the return type of a GCC
5084   builtin and then its argument prototype would still apply.  */
5085#ifdef __cplusplus
5086extern "C"
5087#endif
5088char setxattr ();
5089int
5090main ()
5091{
5092return setxattr ();
5093  ;
5094  return 0;
5095}
5096_ACEOF
5097if ac_fn_c_try_link "$LINENO"; then :
5098  ac_cv_lib_attr_setxattr=yes
5099else
5100  ac_cv_lib_attr_setxattr=no
5101fi
5102rm -f core conftest.err conftest.$ac_objext \
5103    conftest$ac_exeext conftest.$ac_ext
5104LIBS=$ac_check_lib_save_LIBS
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
5107$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
5108if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
5109  LIBS="$LIBS -lattr"
5110	   found_smack="yes"
5111	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
5112
5113fi
5114
5115fi
5116
5117if test "x$found_smack" = "x"; then
5118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
5119$as_echo_n "checking --disable-selinux argument... " >&6; }
5120  # Check whether --enable-selinux was given.
5121if test "${enable_selinux+set}" = set; then :
5122  enableval=$enable_selinux;
5123else
5124  enable_selinux="yes"
5125fi
5126
5127  if test "$enable_selinux" = "yes"; then
5128    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129$as_echo "no" >&6; }
5130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
5131$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
5132if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  ac_check_lib_save_LIBS=$LIBS
5136LIBS="-lselinux  $LIBS"
5137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138/* end confdefs.h.  */
5139
5140/* Override any GCC internal prototype to avoid an error.
5141   Use char because int might match the return type of a GCC
5142   builtin and then its argument prototype would still apply.  */
5143#ifdef __cplusplus
5144extern "C"
5145#endif
5146char is_selinux_enabled ();
5147int
5148main ()
5149{
5150return is_selinux_enabled ();
5151  ;
5152  return 0;
5153}
5154_ACEOF
5155if ac_fn_c_try_link "$LINENO"; then :
5156  ac_cv_lib_selinux_is_selinux_enabled=yes
5157else
5158  ac_cv_lib_selinux_is_selinux_enabled=no
5159fi
5160rm -f core conftest.err conftest.$ac_objext \
5161    conftest$ac_exeext conftest.$ac_ext
5162LIBS=$ac_check_lib_save_LIBS
5163fi
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
5165$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
5166if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
5167  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
5168if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
5169  LIBS="$LIBS -lselinux"
5170	    $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5171
5172fi
5173
5174
5175fi
5176
5177  else
5178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5179$as_echo "yes" >&6; }
5180  fi
5181fi
5182
5183
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
5185$as_echo_n "checking --with-features argument... " >&6; }
5186
5187# Check whether --with-features was given.
5188if test "${with_features+set}" = set; then :
5189  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
5190$as_echo "$features" >&6; }
5191else
5192  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
5193$as_echo "Defaulting to huge" >&6; }
5194fi
5195
5196
5197dovimdiff=""
5198dogvimdiff=""
5199case "$features" in
5200  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
5201 ;;
5202  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
5203 ;;
5204  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
5205 dovimdiff="installvimdiff";
5206			dogvimdiff="installgvimdiff" ;;
5207  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
5208 dovimdiff="installvimdiff";
5209			dogvimdiff="installgvimdiff" ;;
5210  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
5211 dovimdiff="installvimdiff";
5212			dogvimdiff="installgvimdiff" ;;
5213  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
5214$as_echo "Sorry, $features is not supported" >&6; } ;;
5215esac
5216
5217
5218
5219
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
5221$as_echo_n "checking --with-compiledby argument... " >&6; }
5222
5223# Check whether --with-compiledby was given.
5224if test "${with_compiledby+set}" = set; then :
5225  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5226$as_echo "$withval" >&6; }
5227else
5228  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229$as_echo "no" >&6; }
5230fi
5231
5232
5233
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
5235$as_echo_n "checking --disable-xsmp argument... " >&6; }
5236# Check whether --enable-xsmp was given.
5237if test "${enable_xsmp+set}" = set; then :
5238  enableval=$enable_xsmp;
5239else
5240  enable_xsmp="yes"
5241fi
5242
5243
5244if test "$enable_xsmp" = "yes"; then
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246$as_echo "no" >&6; }
5247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
5248$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
5249  # Check whether --enable-xsmp-interact was given.
5250if test "${enable_xsmp_interact+set}" = set; then :
5251  enableval=$enable_xsmp_interact;
5252else
5253  enable_xsmp_interact="yes"
5254fi
5255
5256  if test "$enable_xsmp_interact" = "yes"; then
5257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258$as_echo "no" >&6; }
5259    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
5260
5261  else
5262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5263$as_echo "yes" >&6; }
5264  fi
5265else
5266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5267$as_echo "yes" >&6; }
5268fi
5269
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
5271$as_echo_n "checking --enable-luainterp argument... " >&6; }
5272# Check whether --enable-luainterp was given.
5273if test "${enable_luainterp+set}" = set; then :
5274  enableval=$enable_luainterp;
5275else
5276  enable_luainterp="no"
5277fi
5278
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
5280$as_echo "$enable_luainterp" >&6; }
5281
5282if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
5283  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5284    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
5285  fi
5286
5287
5288
5289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
5290$as_echo_n "checking --with-lua-prefix argument... " >&6; }
5291
5292# Check whether --with-lua_prefix was given.
5293if test "${with_lua_prefix+set}" = set; then :
5294  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
5295$as_echo "$with_lua_prefix" >&6; }
5296else
5297  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298$as_echo "no" >&6; }
5299fi
5300
5301
5302  if test "X$with_lua_prefix" != "X"; then
5303       vi_cv_path_lua_pfx="$with_lua_prefix"
5304  else
5305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
5306$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
5307    if test "X$LUA_PREFIX" != "X"; then
5308	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
5309$as_echo "\"$LUA_PREFIX\"" >&6; }
5310	vi_cv_path_lua_pfx="$LUA_PREFIX"
5311    else
5312	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
5313$as_echo "not set, default to /usr" >&6; }
5314	vi_cv_path_lua_pfx="/usr"
5315    fi
5316  fi
5317
5318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
5319$as_echo_n "checking --with-luajit... " >&6; }
5320
5321# Check whether --with-luajit was given.
5322if test "${with_luajit+set}" = set; then :
5323  withval=$with_luajit; vi_cv_with_luajit="$withval"
5324else
5325  vi_cv_with_luajit="no"
5326fi
5327
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
5329$as_echo "$vi_cv_with_luajit" >&6; }
5330
5331  LUA_INC=
5332  if test "X$vi_cv_path_lua_pfx" != "X"; then
5333    if test "x$vi_cv_with_luajit" != "xno"; then
5334            # Extract the first word of "luajit", so it can be a program name with args.
5335set dummy luajit; ac_word=$2
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337$as_echo_n "checking for $ac_word... " >&6; }
5338if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  case $vi_cv_path_luajit in
5342  [\\/]* | ?:[\\/]*)
5343  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
5344  ;;
5345  *)
5346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349  IFS=$as_save_IFS
5350  test -z "$as_dir" && as_dir=.
5351    for ac_exec_ext in '' $ac_executable_extensions; do
5352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
5354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355    break 2
5356  fi
5357done
5358  done
5359IFS=$as_save_IFS
5360
5361  ;;
5362esac
5363fi
5364vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
5365if test -n "$vi_cv_path_luajit"; then
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
5367$as_echo "$vi_cv_path_luajit" >&6; }
5368else
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370$as_echo "no" >&6; }
5371fi
5372
5373
5374      if test "X$vi_cv_path_luajit" != "X"; then
5375		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
5376$as_echo_n "checking LuaJIT version... " >&6; }
5377if ${vi_cv_version_luajit+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
5383$as_echo "$vi_cv_version_luajit" >&6; }
5384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
5385$as_echo_n "checking Lua version of LuaJIT... " >&6; }
5386if ${vi_cv_version_lua_luajit+:} false; then :
5387  $as_echo_n "(cached) " >&6
5388else
5389   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5392$as_echo "$vi_cv_version_lua_luajit" >&6; }
5393	vi_cv_path_lua="$vi_cv_path_luajit"
5394	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5395      fi
5396    else
5397            # Extract the first word of "lua", so it can be a program name with args.
5398set dummy lua; ac_word=$2
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400$as_echo_n "checking for $ac_word... " >&6; }
5401if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5402  $as_echo_n "(cached) " >&6
5403else
5404  case $vi_cv_path_plain_lua in
5405  [\\/]* | ?:[\\/]*)
5406  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5407  ;;
5408  *)
5409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414    for ac_exec_ext in '' $ac_executable_extensions; do
5415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421  done
5422IFS=$as_save_IFS
5423
5424  ;;
5425esac
5426fi
5427vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5428if test -n "$vi_cv_path_plain_lua"; then
5429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5430$as_echo "$vi_cv_path_plain_lua" >&6; }
5431else
5432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433$as_echo "no" >&6; }
5434fi
5435
5436
5437      if test "X$vi_cv_path_plain_lua" != "X"; then
5438		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5439$as_echo_n "checking Lua version... " >&6; }
5440if ${vi_cv_version_plain_lua+:} false; then :
5441  $as_echo_n "(cached) " >&6
5442else
5443   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5446$as_echo "$vi_cv_version_plain_lua" >&6; }
5447      fi
5448      vi_cv_path_lua="$vi_cv_path_plain_lua"
5449      vi_cv_version_lua="$vi_cv_version_plain_lua"
5450    fi
5451    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5452      { $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
5453$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5454      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5455	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5456$as_echo "yes" >&6; }
5457	LUA_INC=/luajit-$vi_cv_version_luajit
5458      fi
5459    fi
5460    if test "X$LUA_INC" = "X"; then
5461      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5462$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5463      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5464	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5465$as_echo "yes" >&6; }
5466      else
5467	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468$as_echo "no" >&6; }
5469	{ $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
5470$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5471	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5472	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5473$as_echo "yes" >&6; }
5474	  LUA_INC=/lua$vi_cv_version_lua
5475	else
5476	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477$as_echo "no" >&6; }
5478	  vi_cv_path_lua_pfx=
5479	fi
5480      fi
5481    fi
5482  fi
5483
5484  if test "X$vi_cv_path_lua_pfx" != "X"; then
5485    if test "x$vi_cv_with_luajit" != "xno"; then
5486      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5487      if test "X$multiarch" != "X"; then
5488	lib_multiarch="lib/${multiarch}"
5489      else
5490	lib_multiarch="lib"
5491      fi
5492      if test "X$vi_cv_version_lua" = "X"; then
5493	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5494      else
5495	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5496      fi
5497    else
5498      if test "X$LUA_INC" != "X"; then
5499		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5500      else
5501	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5502      fi
5503    fi
5504    if test "$enable_luainterp" = "dynamic"; then
5505      lua_ok="yes"
5506    else
5507      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5508$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5509      libs_save=$LIBS
5510      LIBS="$LIBS $LUA_LIBS"
5511      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h.  */
5513
5514int
5515main ()
5516{
5517
5518  ;
5519  return 0;
5520}
5521_ACEOF
5522if ac_fn_c_try_link "$LINENO"; then :
5523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5524$as_echo "yes" >&6; }; lua_ok="yes"
5525else
5526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5528fi
5529rm -f core conftest.err conftest.$ac_objext \
5530    conftest$ac_exeext conftest.$ac_ext
5531      LIBS=$libs_save
5532    fi
5533    if test "x$lua_ok" = "xyes"; then
5534      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5535      LUA_SRC="if_lua.c"
5536      LUA_OBJ="objects/if_lua.o"
5537      LUA_PRO="if_lua.pro"
5538      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5539
5540    fi
5541    if test "$enable_luainterp" = "dynamic"; then
5542      if test "x$vi_cv_with_luajit" != "xno"; then
5543	luajit="jit"
5544      fi
5545      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5546	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5547      else
5548	if test "x$MACOS_X" = "xyes"; then
5549	  ext="dylib"
5550	  indexes=""
5551	else
5552	  ext="so"
5553	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5554	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5555	  if test "X$multiarch" != "X"; then
5556	    lib_multiarch="lib/${multiarch}"
5557	  fi
5558	fi
5559			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5560$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5561	for subdir in "${lib_multiarch}" lib64 lib; do
5562	  if test -z "$subdir"; then
5563	    continue
5564	  fi
5565	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5566	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5567	    for i in $indexes ""; do
5568	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5569		sover2="$i"
5570		break 3
5571	      fi
5572	    done
5573	  done
5574	  sover=""
5575	done
5576	if test "X$sover" = "X"; then
5577	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }
5579	  lua_ok="no"
5580	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5581	else
5582	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5583$as_echo "yes" >&6; }
5584	  lua_ok="yes"
5585	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5586	fi
5587      fi
5588      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5589
5590      LUA_LIBS=""
5591      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5592    fi
5593    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5594       test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5595       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5596            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5597    fi
5598  fi
5599  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5600    as_fn_error $? "could not configure lua" "$LINENO" 5
5601  fi
5602
5603
5604
5605
5606
5607fi
5608
5609
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5611$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5612# Check whether --enable-mzschemeinterp was given.
5613if test "${enable_mzschemeinterp+set}" = set; then :
5614  enableval=$enable_mzschemeinterp;
5615else
5616  enable_mzschemeinterp="no"
5617fi
5618
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5620$as_echo "$enable_mzschemeinterp" >&6; }
5621
5622if test "$enable_mzschemeinterp" = "yes"; then
5623
5624
5625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5626$as_echo_n "checking --with-plthome argument... " >&6; }
5627
5628# Check whether --with-plthome was given.
5629if test "${with_plthome+set}" = set; then :
5630  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5631$as_echo "$with_plthome" >&6; }
5632else
5633  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5634$as_echo "\"no\"" >&6; }
5635fi
5636
5637
5638  if test "X$with_plthome" != "X"; then
5639       vi_cv_path_mzscheme_pfx="$with_plthome"
5640       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5641  else
5642    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5643$as_echo_n "checking PLTHOME environment var... " >&6; }
5644    if test "X$PLTHOME" != "X"; then
5645	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5646$as_echo "\"$PLTHOME\"" >&6; }
5647	vi_cv_path_mzscheme_pfx="$PLTHOME"
5648	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5649    else
5650	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5651$as_echo "not set" >&6; }
5652		# Extract the first word of "mzscheme", so it can be a program name with args.
5653set dummy mzscheme; ac_word=$2
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655$as_echo_n "checking for $ac_word... " >&6; }
5656if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5657  $as_echo_n "(cached) " >&6
5658else
5659  case $vi_cv_path_mzscheme in
5660  [\\/]* | ?:[\\/]*)
5661  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5662  ;;
5663  *)
5664  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665for as_dir in $PATH
5666do
5667  IFS=$as_save_IFS
5668  test -z "$as_dir" && as_dir=.
5669    for ac_exec_ext in '' $ac_executable_extensions; do
5670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673    break 2
5674  fi
5675done
5676  done
5677IFS=$as_save_IFS
5678
5679  ;;
5680esac
5681fi
5682vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5683if test -n "$vi_cv_path_mzscheme"; then
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5685$as_echo "$vi_cv_path_mzscheme" >&6; }
5686else
5687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688$as_echo "no" >&6; }
5689fi
5690
5691
5692
5693			if test "X$vi_cv_path_mzscheme" != "X"; then
5694	  lsout=`ls -l $vi_cv_path_mzscheme`
5695	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5696	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5697	  fi
5698	fi
5699
5700	if test "X$vi_cv_path_mzscheme" != "X"; then
5701	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5702$as_echo_n "checking MzScheme install prefix... " >&6; }
5703if ${vi_cv_path_mzscheme_pfx+:} false; then :
5704  $as_echo_n "(cached) " >&6
5705else
5706  	    	    echo "(display (simplify-path		\
5707	       (build-path (call-with-values	\
5708		(lambda () (split-path (find-system-path (quote exec-file)))) \
5709		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5710	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5711		sed -e 's+/$++'`
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5714$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5715	    rm -f mzdirs.scm
5716	fi
5717    fi
5718  fi
5719
5720  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5722$as_echo_n "checking for racket include directory... " >&6; }
5723    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5724    if test "X$SCHEME_INC" != "X"; then
5725      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5726$as_echo "${SCHEME_INC}" >&6; }
5727    else
5728      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5729$as_echo "not found" >&6; }
5730      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5731$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5732      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5733	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5734	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735$as_echo "yes" >&6; }
5736      else
5737	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5740$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5741	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5742	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5743$as_echo "yes" >&6; }
5744	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5745	else
5746	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747$as_echo "no" >&6; }
5748	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5749$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5750	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5751	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5752$as_echo "yes" >&6; }
5753	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5754	  else
5755	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756$as_echo "no" >&6; }
5757	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5758$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5759	    if test -f /usr/include/plt/scheme.h; then
5760	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5761$as_echo "yes" >&6; }
5762	      SCHEME_INC=/usr/include/plt
5763	    else
5764	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765$as_echo "no" >&6; }
5766	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5767$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5768	      if test -f /usr/include/racket/scheme.h; then
5769		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5770$as_echo "yes" >&6; }
5771		SCHEME_INC=/usr/include/racket
5772	      else
5773		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774$as_echo "no" >&6; }
5775		vi_cv_path_mzscheme_pfx=
5776	      fi
5777	    fi
5778	  fi
5779	fi
5780      fi
5781    fi
5782  fi
5783
5784  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5785
5786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5787$as_echo_n "checking for racket lib directory... " >&6; }
5788    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5789    if test "X$SCHEME_LIB" != "X"; then
5790      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5791$as_echo "${SCHEME_LIB}" >&6; }
5792    else
5793      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5794$as_echo "not found" >&6; }
5795    fi
5796
5797    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5798      if test "X$path" != "X"; then
5799	if test "x$MACOS_X" = "xyes"; then
5800	  MZSCHEME_LIBS="-framework Racket"
5801	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5802	elif test -f "${path}/libmzscheme3m.a"; then
5803	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5804	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5805	elif test -f "${path}/libracket3m.a"; then
5806	  MZSCHEME_LIBS="${path}/libracket3m.a"
5807	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5808	elif test -f "${path}/libracket.a"; then
5809	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5810	elif test -f "${path}/libmzscheme.a"; then
5811	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5812	else
5813	  	  if test -f "${path}/libmzscheme3m.so"; then
5814	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5815	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5816	  elif test -f "${path}/libracket3m.so"; then
5817	    MZSCHEME_LIBS="-L${path} -lracket3m"
5818	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5819	  elif test -f "${path}/libracket.so"; then
5820	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5821	  else
5822	    	    if test "$path" != "$SCHEME_LIB"; then
5823	      continue
5824	    fi
5825	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5826	  fi
5827	  if test "$GCC" = yes; then
5828	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5829	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5830				   uname -r | grep '^5' >/dev/null; then
5831	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5832	  fi
5833	fi
5834      fi
5835      if test "X$MZSCHEME_LIBS" != "X"; then
5836	break
5837      fi
5838    done
5839
5840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5841$as_echo_n "checking if racket requires -pthread... " >&6; }
5842    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5843      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5844$as_echo "yes" >&6; }
5845      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5846      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5847    else
5848      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849$as_echo "no" >&6; }
5850    fi
5851
5852    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5853$as_echo_n "checking for racket config directory... " >&6; }
5854    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5855    if test "X$SCHEME_CONFIGDIR" != "X"; then
5856      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5857      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5858$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5859    else
5860      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5861$as_echo "not found" >&6; }
5862    fi
5863
5864    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5865$as_echo_n "checking for racket collects directory... " >&6; }
5866    SCHEME_COLLECTS=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-collects-dir))) (when (path? p) (let-values (((base _1 _2) (split-path p))) (display base))))'`
5867    if test "X$SCHEME_COLLECTS" = "X"; then
5868      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5869	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5870      else
5871	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5872	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5873	else
5874	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5875	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5876	  else
5877	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5878	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5879	    fi
5880	  fi
5881	fi
5882      fi
5883    fi
5884    if test "X$SCHEME_COLLECTS" != "X" ; then
5885      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5886$as_echo "${SCHEME_COLLECTS}" >&6; }
5887    else
5888      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5889$as_echo "not found" >&6; }
5890    fi
5891
5892    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5893$as_echo_n "checking for mzscheme_base.c... " >&6; }
5894    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5895      MZSCHEME_EXTRA="mzscheme_base.c"
5896      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5897      MZSCHEME_MOD="++lib scheme/base"
5898    else
5899      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5900	MZSCHEME_EXTRA="mzscheme_base.c"
5901	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5902	MZSCHEME_MOD="++lib scheme/base"
5903      else
5904	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5905	  MZSCHEME_EXTRA="mzscheme_base.c"
5906	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5907	  MZSCHEME_MOD=""
5908	fi
5909      fi
5910    fi
5911    if test "X$MZSCHEME_EXTRA" != "X" ; then
5912            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5913      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5914$as_echo "needed" >&6; }
5915    else
5916      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5917$as_echo "not needed" >&6; }
5918    fi
5919
5920        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5921$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5922if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925  ac_check_lib_save_LIBS=$LIBS
5926LIBS="-lffi  $LIBS"
5927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928/* end confdefs.h.  */
5929
5930/* Override any GCC internal prototype to avoid an error.
5931   Use char because int might match the return type of a GCC
5932   builtin and then its argument prototype would still apply.  */
5933#ifdef __cplusplus
5934extern "C"
5935#endif
5936char ffi_type_void ();
5937int
5938main ()
5939{
5940return ffi_type_void ();
5941  ;
5942  return 0;
5943}
5944_ACEOF
5945if ac_fn_c_try_link "$LINENO"; then :
5946  ac_cv_lib_ffi_ffi_type_void=yes
5947else
5948  ac_cv_lib_ffi_ffi_type_void=no
5949fi
5950rm -f core conftest.err conftest.$ac_objext \
5951    conftest$ac_exeext conftest.$ac_ext
5952LIBS=$ac_check_lib_save_LIBS
5953fi
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5955$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5956if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5957  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5958fi
5959
5960
5961    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5962      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5963
5964        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5965$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5966    cflags_save=$CFLAGS
5967    libs_save=$LIBS
5968    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5969    LIBS="$LIBS $MZSCHEME_LIBS"
5970    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h.  */
5972
5973int
5974main ()
5975{
5976
5977  ;
5978  return 0;
5979}
5980_ACEOF
5981if ac_fn_c_try_link "$LINENO"; then :
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5983$as_echo "yes" >&6; }; mzs_ok=yes
5984else
5985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5986$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5987fi
5988rm -f core conftest.err conftest.$ac_objext \
5989    conftest$ac_exeext conftest.$ac_ext
5990    CFLAGS=$cflags_save
5991    LIBS=$libs_save
5992    if test $mzs_ok = yes; then
5993      MZSCHEME_SRC="if_mzsch.c"
5994      MZSCHEME_OBJ="objects/if_mzsch.o"
5995      MZSCHEME_PRO="if_mzsch.pro"
5996      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
5997
5998    else
5999      MZSCHEME_CFLAGS=
6000      MZSCHEME_LIBS=
6001      MZSCHEME_EXTRA=
6002      MZSCHEME_MZC=
6003    fi
6004  fi
6005
6006
6007
6008
6009
6010
6011
6012fi
6013
6014
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
6016$as_echo_n "checking --enable-perlinterp argument... " >&6; }
6017# Check whether --enable-perlinterp was given.
6018if test "${enable_perlinterp+set}" = set; then :
6019  enableval=$enable_perlinterp;
6020else
6021  enable_perlinterp="no"
6022fi
6023
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
6025$as_echo "$enable_perlinterp" >&6; }
6026if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
6027  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6028    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
6029  fi
6030
6031  # Extract the first word of "perl", so it can be a program name with args.
6032set dummy perl; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
6035if ${ac_cv_path_vi_cv_path_perl+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  case $vi_cv_path_perl in
6039  [\\/]* | ?:[\\/]*)
6040  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
6041  ;;
6042  *)
6043  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044for as_dir in $PATH
6045do
6046  IFS=$as_save_IFS
6047  test -z "$as_dir" && as_dir=.
6048    for ac_exec_ext in '' $ac_executable_extensions; do
6049  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
6051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052    break 2
6053  fi
6054done
6055  done
6056IFS=$as_save_IFS
6057
6058  ;;
6059esac
6060fi
6061vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
6062if test -n "$vi_cv_path_perl"; then
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
6064$as_echo "$vi_cv_path_perl" >&6; }
6065else
6066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067$as_echo "no" >&6; }
6068fi
6069
6070
6071  if test "X$vi_cv_path_perl" != "X"; then
6072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
6073$as_echo_n "checking Perl version... " >&6; }
6074    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
6075     eval `$vi_cv_path_perl -V:usethreads`
6076     eval `$vi_cv_path_perl -V:libperl`
6077     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
6078       badthreads=no
6079     else
6080       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
6081	 eval `$vi_cv_path_perl -V:use5005threads`
6082	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
6083	   badthreads=no
6084	 else
6085	   badthreads=yes
6086	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
6087$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
6088	 fi
6089       else
6090	 badthreads=yes
6091	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
6092$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
6093       fi
6094     fi
6095     if test $badthreads = no; then
6096      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6097$as_echo "OK" >&6; }
6098      eval `$vi_cv_path_perl -V:shrpenv`
6099      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
6100	shrpenv=""
6101      fi
6102      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
6103
6104      vi_cv_perl_extutils=unknown_perl_extutils_path
6105      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
6106	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
6107	if test -f "$xsubpp_path"; then
6108	  vi_cv_perl_xsubpp="$xsubpp_path"
6109	fi
6110      done
6111
6112                              perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
6113		-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
6114		-e 's/-fdebug-prefix-map[^ ]*//g' \
6115		-e 's/-pipe //' \
6116		-e 's/-W[^ ]*//g' \
6117		-e 's/-D_FORTIFY_SOURCE=.//g'`
6118            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
6119		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
6120			-e 's/-bE:perl.exp//' -e 's/-lc //'`
6121                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
6122		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
6123
6124                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
6125$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
6126      cflags_save=$CFLAGS
6127      libs_save=$LIBS
6128      ldflags_save=$LDFLAGS
6129      CFLAGS="$CFLAGS $perlcppflags"
6130      LIBS="$LIBS $perllibs"
6131      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
6132      LDFLAGS="$perlldflags $LDFLAGS"
6133      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134/* end confdefs.h.  */
6135
6136int
6137main ()
6138{
6139
6140  ;
6141  return 0;
6142}
6143_ACEOF
6144if ac_fn_c_try_link "$LINENO"; then :
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6146$as_echo "yes" >&6; }; perl_ok=yes
6147else
6148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
6149$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
6150fi
6151rm -f core conftest.err conftest.$ac_objext \
6152    conftest$ac_exeext conftest.$ac_ext
6153      CFLAGS=$cflags_save
6154      LIBS=$libs_save
6155      LDFLAGS=$ldflags_save
6156      if test $perl_ok = yes; then
6157	if test "X$perlcppflags" != "X"; then
6158	  PERL_CFLAGS=$perlcppflags
6159	fi
6160	if test "X$perlldflags" != "X"; then
6161	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
6162	    LDFLAGS="$perlldflags $LDFLAGS"
6163	  fi
6164	fi
6165	PERL_LIBS=$perllibs
6166	PERL_SRC="auto/if_perl.c if_perlsfio.c"
6167	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
6168	PERL_PRO="if_perl.pro if_perlsfio.pro"
6169	$as_echo "#define FEAT_PERL 1" >>confdefs.h
6170
6171      fi
6172     fi
6173    else
6174      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
6175$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
6176    fi
6177  fi
6178
6179  if test "x$MACOS_X" = "xyes"; then
6180        dir=/System/Library/Perl
6181    darwindir=$dir/darwin
6182    if test -d $darwindir; then
6183      PERL=/usr/bin/perl
6184    else
6185            dir=/System/Library/Perl/5.8.1
6186      darwindir=$dir/darwin-thread-multi-2level
6187      if test -d $darwindir; then
6188	PERL=/usr/bin/perl
6189      fi
6190    fi
6191    if test -n "$PERL"; then
6192      PERL_DIR="$dir"
6193      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
6194      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
6195      PERL_LIBS="-L$darwindir/CORE -lperl"
6196    fi
6197                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6198    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6199  fi
6200  if test "$enable_perlinterp" = "dynamic"; then
6201    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
6202      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
6203
6204      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
6205    fi
6206  fi
6207
6208  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
6209    as_fn_error $? "could not configure perl" "$LINENO" 5
6210  fi
6211fi
6212
6213
6214
6215
6216
6217
6218
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
6220$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
6221# Check whether --enable-pythoninterp was given.
6222if test "${enable_pythoninterp+set}" = set; then :
6223  enableval=$enable_pythoninterp;
6224else
6225  enable_pythoninterp="no"
6226fi
6227
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
6229$as_echo "$enable_pythoninterp" >&6; }
6230if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
6231  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6232    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6233  fi
6234
6235    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5
6236$as_echo_n "checking --with-python-command argument... " >&6; }
6237
6238
6239# Check whether --with-python-command was given.
6240if test "${with_python_command+set}" = set; then :
6241  withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6242$as_echo "$vi_cv_path_python" >&6; }
6243else
6244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245$as_echo "no" >&6; }
6246fi
6247
6248
6249  if test "X$vi_cv_path_python" = "X"; then
6250    for ac_prog in python2 python
6251do
6252  # Extract the first word of "$ac_prog", so it can be a program name with args.
6253set dummy $ac_prog; ac_word=$2
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255$as_echo_n "checking for $ac_word... " >&6; }
6256if ${ac_cv_path_vi_cv_path_python+:} false; then :
6257  $as_echo_n "(cached) " >&6
6258else
6259  case $vi_cv_path_python in
6260  [\\/]* | ?:[\\/]*)
6261  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
6262  ;;
6263  *)
6264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267  IFS=$as_save_IFS
6268  test -z "$as_dir" && as_dir=.
6269    for ac_exec_ext in '' $ac_executable_extensions; do
6270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
6272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273    break 2
6274  fi
6275done
6276  done
6277IFS=$as_save_IFS
6278
6279  ;;
6280esac
6281fi
6282vi_cv_path_python=$ac_cv_path_vi_cv_path_python
6283if test -n "$vi_cv_path_python"; then
6284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6285$as_echo "$vi_cv_path_python" >&6; }
6286else
6287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288$as_echo "no" >&6; }
6289fi
6290
6291
6292  test -n "$vi_cv_path_python" && break
6293done
6294
6295  fi
6296  if test "X$vi_cv_path_python" != "X"; then
6297
6298        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6299$as_echo_n "checking Python version... " >&6; }
6300if ${vi_cv_var_python_version+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303  vi_cv_var_python_version=`
6304	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
6305
6306fi
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
6308$as_echo "$vi_cv_var_python_version" >&6; }
6309
6310        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
6311$as_echo_n "checking Python is 2.3 or better... " >&6; }
6312    if ${vi_cv_path_python} -c \
6313	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
6314    then
6315      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6316$as_echo "yep" >&6; }
6317
6318            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6319$as_echo_n "checking Python's install prefix... " >&6; }
6320if ${vi_cv_path_python_pfx+:} false; then :
6321  $as_echo_n "(cached) " >&6
6322else
6323   vi_cv_path_python_pfx=`
6324	    ${vi_cv_path_python} -c \
6325		"import sys; print sys.prefix"`
6326fi
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
6328$as_echo "$vi_cv_path_python_pfx" >&6; }
6329
6330            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6331$as_echo_n "checking Python's execution prefix... " >&6; }
6332if ${vi_cv_path_python_epfx+:} false; then :
6333  $as_echo_n "(cached) " >&6
6334else
6335   vi_cv_path_python_epfx=`
6336	    ${vi_cv_path_python} -c \
6337		"import sys; print sys.exec_prefix"`
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
6340$as_echo "$vi_cv_path_python_epfx" >&6; }
6341
6342
6343      if ${vi_cv_path_pythonpath+:} false; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346   vi_cv_path_pythonpath=`
6347	    unset PYTHONPATH;
6348	    ${vi_cv_path_python} -c \
6349		"import sys, string; print string.join(sys.path,':')"`
6350fi
6351
6352
6353
6354
6355# Check whether --with-python-config-dir was given.
6356if test "${with_python_config_dir+set}" = set; then :
6357  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"; have_python_config_dir=1
6358fi
6359
6360
6361      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6362$as_echo_n "checking Python's configuration directory... " >&6; }
6363if ${vi_cv_path_python_conf+:} false; then :
6364  $as_echo_n "(cached) " >&6
6365else
6366
6367	vi_cv_path_python_conf=
6368	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
6369	if test -d "$d" && test -f "$d/config.c"; then
6370	  vi_cv_path_python_conf="$d"
6371	else
6372	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
6373	    for subdir in lib64 lib share; do
6374	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
6375	      if test -d "$d" && test -f "$d/config.c"; then
6376		vi_cv_path_python_conf="$d"
6377	      fi
6378	    done
6379	  done
6380	fi
6381
6382fi
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
6384$as_echo "$vi_cv_path_python_conf" >&6; }
6385
6386      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
6387
6388      if test "X$PYTHON_CONFDIR" = "X"; then
6389	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6390$as_echo "can't find it!" >&6; }
6391      else
6392
6393			if ${vi_cv_path_python_plibs+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396
6397	    pwd=`pwd`
6398	    tmp_mkf="$pwd/config-PyMake$$"
6399	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6400__:
6401	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
6402	@echo "python_LIBS='$(LIBS)'"
6403	@echo "python_SYSLIBS='$(SYSLIBS)'"
6404	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
6405	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
6406	@echo "python_INSTSONAME='$(INSTSONAME)'"
6407	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
6408	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
6409	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
6410eof
6411	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6412	    rm -f -- "${tmp_mkf}"
6413	    if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6414		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6415	      vi_cv_path_python_plibs="-framework Python"
6416	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6417		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6418	      fi
6419	    else
6420	      vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6421	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6422	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6423		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6424	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6425	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6426		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6427		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6428	            	            		  fi
6429	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6430	        fi
6431	      fi
6432	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6433	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6434	    fi
6435
6436fi
6437
6438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6439$as_echo_n "checking Python's dll name... " >&6; }
6440if ${vi_cv_dll_name_python+:} false; then :
6441  $as_echo_n "(cached) " >&6
6442else
6443
6444	  if test "X$python_DLLLIBRARY" != "X"; then
6445	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6446	  else
6447	    vi_cv_dll_name_python="$python_INSTSONAME"
6448	  fi
6449
6450fi
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6452$as_echo "$vi_cv_dll_name_python" >&6; }
6453
6454	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6455	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6456	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
6457	else
6458	  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}"
6459	fi
6460	if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then
6461	  	  PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6462
6463	fi
6464	PYTHON_SRC="if_python.c"
6465	PYTHON_OBJ="objects/if_python.o"
6466
6467								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6468$as_echo_n "checking if -pthread should be used... " >&6; }
6469	threadsafe_flag=
6470	thread_lib=
6471	        if test "`(uname) 2>/dev/null`" != Darwin; then
6472	  test "$GCC" = yes && threadsafe_flag="-pthread"
6473	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6474	    threadsafe_flag="-D_THREAD_SAFE"
6475	    thread_lib="-pthread"
6476	  fi
6477	  if test "`(uname) 2>/dev/null`" = SunOS; then
6478	    threadsafe_flag="-pthreads"
6479	  fi
6480	fi
6481	libs_save_old=$LIBS
6482	if test -n "$threadsafe_flag"; then
6483	  cflags_save=$CFLAGS
6484	  CFLAGS="$CFLAGS $threadsafe_flag"
6485	  LIBS="$LIBS $thread_lib"
6486	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487/* end confdefs.h.  */
6488
6489int
6490main ()
6491{
6492
6493  ;
6494  return 0;
6495}
6496_ACEOF
6497if ac_fn_c_try_link "$LINENO"; then :
6498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6499$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6500else
6501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502$as_echo "no" >&6; }; LIBS=$libs_save_old
6503
6504fi
6505rm -f core conftest.err conftest.$ac_objext \
6506    conftest$ac_exeext conftest.$ac_ext
6507	  CFLAGS=$cflags_save
6508	else
6509	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510$as_echo "no" >&6; }
6511	fi
6512
6513			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6514$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6515	cflags_save=$CFLAGS
6516	libs_save=$LIBS
6517	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6518	LIBS="$LIBS $PYTHON_LIBS"
6519	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520/* end confdefs.h.  */
6521
6522int
6523main ()
6524{
6525
6526  ;
6527  return 0;
6528}
6529_ACEOF
6530if ac_fn_c_try_link "$LINENO"; then :
6531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6532$as_echo "yes" >&6; }; python_ok=yes
6533else
6534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6535$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6536fi
6537rm -f core conftest.err conftest.$ac_objext \
6538    conftest$ac_exeext conftest.$ac_ext
6539	CFLAGS=$cflags_save
6540	LIBS=$libs_save
6541	if test $python_ok = yes; then
6542	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6543
6544	else
6545	  LIBS=$libs_save_old
6546	  PYTHON_SRC=
6547	  PYTHON_OBJ=
6548	  PYTHON_LIBS=
6549	  PYTHON_CFLAGS=
6550	fi
6551      fi
6552    else
6553      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6554$as_echo "too old" >&6; }
6555    fi
6556  fi
6557
6558  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6559    as_fn_error $? "could not configure python" "$LINENO" 5
6560  fi
6561fi
6562
6563
6564
6565
6566
6567
6568
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6570$as_echo_n "checking --enable-python3interp argument... " >&6; }
6571# Check whether --enable-python3interp was given.
6572if test "${enable_python3interp+set}" = set; then :
6573  enableval=$enable_python3interp;
6574else
6575  enable_python3interp="no"
6576fi
6577
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6579$as_echo "$enable_python3interp" >&6; }
6580if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6581  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6582    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6583  fi
6584
6585    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5
6586$as_echo_n "checking --with-python3-command argument... " >&6; }
6587
6588
6589# Check whether --with-python3-command was given.
6590if test "${with_python3_command+set}" = set; then :
6591  withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6592$as_echo "$vi_cv_path_python3" >&6; }
6593else
6594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595$as_echo "no" >&6; }
6596fi
6597
6598
6599  if test "X$vi_cv_path_python3" = "X"; then
6600    for ac_prog in python3 python
6601do
6602  # Extract the first word of "$ac_prog", so it can be a program name with args.
6603set dummy $ac_prog; ac_word=$2
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605$as_echo_n "checking for $ac_word... " >&6; }
6606if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  case $vi_cv_path_python3 in
6610  [\\/]* | ?:[\\/]*)
6611  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6612  ;;
6613  *)
6614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617  IFS=$as_save_IFS
6618  test -z "$as_dir" && as_dir=.
6619    for ac_exec_ext in '' $ac_executable_extensions; do
6620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623    break 2
6624  fi
6625done
6626  done
6627IFS=$as_save_IFS
6628
6629  ;;
6630esac
6631fi
6632vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6633if test -n "$vi_cv_path_python3"; then
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6635$as_echo "$vi_cv_path_python3" >&6; }
6636else
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638$as_echo "no" >&6; }
6639fi
6640
6641
6642  test -n "$vi_cv_path_python3" && break
6643done
6644
6645  fi
6646  if test "X$vi_cv_path_python3" != "X"; then
6647
6648        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6649$as_echo_n "checking Python version... " >&6; }
6650if ${vi_cv_var_python3_version+:} false; then :
6651  $as_echo_n "(cached) " >&6
6652else
6653  vi_cv_var_python3_version=`
6654          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6655
6656fi
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6658$as_echo "$vi_cv_var_python3_version" >&6; }
6659
6660        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6661$as_echo_n "checking Python is 3.0 or better... " >&6; }
6662    if ${vi_cv_path_python3} -c \
6663      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6664    then
6665      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6666$as_echo "yep" >&6; }
6667
6668            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6669$as_echo_n "checking Python's abiflags... " >&6; }
6670if ${vi_cv_var_python3_abiflags+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673
6674       vi_cv_var_python3_abiflags=
6675       if ${vi_cv_path_python3} -c \
6676           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6677       then
6678         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6679           "import sys; print(sys.abiflags)"`
6680       fi
6681fi
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6683$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6684
6685            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6686$as_echo_n "checking Python's install prefix... " >&6; }
6687if ${vi_cv_path_python3_pfx+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690   vi_cv_path_python3_pfx=`
6691       ${vi_cv_path_python3} -c \
6692       "import sys; print(sys.prefix)"`
6693fi
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6695$as_echo "$vi_cv_path_python3_pfx" >&6; }
6696
6697            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6698$as_echo_n "checking Python's execution prefix... " >&6; }
6699if ${vi_cv_path_python3_epfx+:} false; then :
6700  $as_echo_n "(cached) " >&6
6701else
6702   vi_cv_path_python3_epfx=`
6703       ${vi_cv_path_python3} -c \
6704       "import sys; print(sys.exec_prefix)"`
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6707$as_echo "$vi_cv_path_python3_epfx" >&6; }
6708
6709
6710      if ${vi_cv_path_python3path+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713   vi_cv_path_python3path=`
6714       unset PYTHONPATH;
6715       ${vi_cv_path_python3} -c \
6716       "import sys, string; print(':'.join(sys.path))"`
6717fi
6718
6719
6720
6721
6722# Check whether --with-python3-config-dir was given.
6723if test "${with_python3_config_dir+set}" = set; then :
6724  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1
6725fi
6726
6727
6728      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6729$as_echo_n "checking Python's configuration directory... " >&6; }
6730if ${vi_cv_path_python3_conf+:} false; then :
6731  $as_echo_n "(cached) " >&6
6732else
6733
6734       vi_cv_path_python3_conf=
6735       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6736       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6737       if test -d "$d" && test -f "$d/config.c"; then
6738         vi_cv_path_python3_conf="$d"
6739       else
6740         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6741	   for subdir in lib64 lib share; do
6742	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6743	     if test -d "$d" && test -f "$d/config.c"; then
6744	       vi_cv_path_python3_conf="$d"
6745	     fi
6746	   done
6747         done
6748       fi
6749
6750fi
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6752$as_echo "$vi_cv_path_python3_conf" >&6; }
6753
6754      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6755
6756      if test "X$PYTHON3_CONFDIR" = "X"; then
6757        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6758$as_echo "can't find it!" >&6; }
6759      else
6760
6761                        if ${vi_cv_path_python3_plibs+:} false; then :
6762  $as_echo_n "(cached) " >&6
6763else
6764
6765            pwd=`pwd`
6766            tmp_mkf="$pwd/config-PyMake$$"
6767            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6768__:
6769	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6770	@echo "python3_LIBS='$(LIBS)'"
6771	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6772	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6773	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6774eof
6775	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6776	    rm -f -- "${tmp_mkf}"
6777	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6778	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6779	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6780	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6781
6782fi
6783
6784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6785$as_echo_n "checking Python3's dll name... " >&6; }
6786if ${vi_cv_dll_name_python3+:} false; then :
6787  $as_echo_n "(cached) " >&6
6788else
6789
6790	  if test "X$python3_DLLLIBRARY" != "X"; then
6791	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6792	  else
6793	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6794	  fi
6795
6796fi
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6798$as_echo "$vi_cv_dll_name_python3" >&6; }
6799
6800        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6801        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6802          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6803        else
6804          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}"
6805        fi
6806	if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then
6807	  	  PYTHON3_CFLAGS="${PYTHON3_CFLAGS}  -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6808	fi
6809        PYTHON3_SRC="if_python3.c"
6810        PYTHON3_OBJ="objects/if_python3.o"
6811
6812                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6813$as_echo_n "checking if -pthread should be used... " >&6; }
6814        threadsafe_flag=
6815        thread_lib=
6816                if test "`(uname) 2>/dev/null`" != Darwin; then
6817          test "$GCC" = yes && threadsafe_flag="-pthread"
6818          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6819            threadsafe_flag="-D_THREAD_SAFE"
6820            thread_lib="-pthread"
6821          fi
6822          if test "`(uname) 2>/dev/null`" = SunOS; then
6823            threadsafe_flag="-pthreads"
6824          fi
6825        fi
6826        libs_save_old=$LIBS
6827        if test -n "$threadsafe_flag"; then
6828          cflags_save=$CFLAGS
6829          CFLAGS="$CFLAGS $threadsafe_flag"
6830          LIBS="$LIBS $thread_lib"
6831          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832/* end confdefs.h.  */
6833
6834int
6835main ()
6836{
6837
6838  ;
6839  return 0;
6840}
6841_ACEOF
6842if ac_fn_c_try_link "$LINENO"; then :
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6844$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6845else
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }; LIBS=$libs_save_old
6848
6849fi
6850rm -f core conftest.err conftest.$ac_objext \
6851    conftest$ac_exeext conftest.$ac_ext
6852          CFLAGS=$cflags_save
6853        else
6854          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856        fi
6857
6858                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6859$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6860        cflags_save=$CFLAGS
6861        libs_save=$LIBS
6862        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6863        LIBS="$LIBS $PYTHON3_LIBS"
6864        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865/* end confdefs.h.  */
6866
6867int
6868main ()
6869{
6870
6871  ;
6872  return 0;
6873}
6874_ACEOF
6875if ac_fn_c_try_link "$LINENO"; then :
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6877$as_echo "yes" >&6; }; python3_ok=yes
6878else
6879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6880$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6881fi
6882rm -f core conftest.err conftest.$ac_objext \
6883    conftest$ac_exeext conftest.$ac_ext
6884        CFLAGS=$cflags_save
6885        LIBS=$libs_save
6886        if test "$python3_ok" = yes; then
6887          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6888
6889        else
6890          LIBS=$libs_save_old
6891          PYTHON3_SRC=
6892          PYTHON3_OBJ=
6893          PYTHON3_LIBS=
6894          PYTHON3_CFLAGS=
6895        fi
6896      fi
6897    else
6898      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6899$as_echo "too old" >&6; }
6900    fi
6901  fi
6902  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6903    as_fn_error $? "could not configure python3" "$LINENO" 5
6904  fi
6905fi
6906
6907
6908
6909
6910
6911
6912if test "$python_ok" = yes && test "$python3_ok" = yes; then
6913  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6914
6915  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6916
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6918$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6919  cflags_save=$CFLAGS
6920  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6921  libs_save=$LIBS
6922    LIBS="-ldl $LIBS"
6923  if test "$cross_compiling" = yes; then :
6924  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6926as_fn_error $? "cannot run test program while cross compiling
6927See \`config.log' for more details" "$LINENO" 5; }
6928else
6929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h.  */
6931
6932    #include <dlfcn.h>
6933    /* If this program fails, then RTLD_GLOBAL is needed.
6934     * RTLD_GLOBAL will be used and then it is not possible to
6935     * have both python versions enabled in the same vim instance.
6936     * Only the first python version used will be switched on.
6937     */
6938
6939    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6940    {
6941      int needed = 0;
6942      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6943      if (pylib != 0)
6944      {
6945          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6946          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6947          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6948          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6949          (*pfx)(prefix);
6950          (*init)();
6951          needed = (*simple)("import termios") == -1;
6952          (*final)();
6953          dlclose(pylib);
6954      }
6955      return !needed;
6956    }
6957
6958    int main(int argc, char** argv)
6959    {
6960      int not_needed = 0;
6961      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6962            not_needed = 1;
6963      return !not_needed;
6964    }
6965_ACEOF
6966if ac_fn_c_try_run "$LINENO"; then :
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6968$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6969
6970else
6971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972$as_echo "no" >&6; }
6973fi
6974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6975  conftest.$ac_objext conftest.beam conftest.$ac_ext
6976fi
6977
6978
6979  CFLAGS=$cflags_save
6980  LIBS=$libs_save
6981
6982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6983$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6984  cflags_save=$CFLAGS
6985  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6986  libs_save=$LIBS
6987    LIBS="-ldl $LIBS"
6988  if test "$cross_compiling" = yes; then :
6989  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6991as_fn_error $? "cannot run test program while cross compiling
6992See \`config.log' for more details" "$LINENO" 5; }
6993else
6994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h.  */
6996
6997    #include <dlfcn.h>
6998    #include <wchar.h>
6999    /* If this program fails, then RTLD_GLOBAL is needed.
7000     * RTLD_GLOBAL will be used and then it is not possible to
7001     * have both python versions enabled in the same vim instance.
7002     * Only the first python version used will be switched on.
7003     */
7004
7005    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
7006    {
7007      int needed = 0;
7008      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
7009      if (pylib != 0)
7010      {
7011          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
7012          void (*init)(void) = dlsym(pylib, "Py_Initialize");
7013          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
7014          void (*final)(void) = dlsym(pylib, "Py_Finalize");
7015          (*pfx)(prefix);
7016          (*init)();
7017          needed = (*simple)("import termios") == -1;
7018          (*final)();
7019          dlclose(pylib);
7020      }
7021      return !needed;
7022    }
7023
7024    int main(int argc, char** argv)
7025    {
7026      int not_needed = 0;
7027      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
7028            not_needed = 1;
7029      return !not_needed;
7030    }
7031_ACEOF
7032if ac_fn_c_try_run "$LINENO"; then :
7033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7034$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
7035
7036else
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038$as_echo "no" >&6; }
7039fi
7040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7041  conftest.$ac_objext conftest.beam conftest.$ac_ext
7042fi
7043
7044
7045  CFLAGS=$cflags_save
7046  LIBS=$libs_save
7047
7048  PYTHON_SRC="if_python.c"
7049  PYTHON_OBJ="objects/if_python.o"
7050  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7051  PYTHON_LIBS=
7052  PYTHON3_SRC="if_python3.c"
7053  PYTHON3_OBJ="objects/if_python3.o"
7054  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7055  PYTHON3_LIBS=
7056elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
7057  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
7058
7059  PYTHON_SRC="if_python.c"
7060  PYTHON_OBJ="objects/if_python.o"
7061  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7062  PYTHON_LIBS=
7063elif test "$python_ok" = yes; then
7064      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
7065$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
7066  cflags_save=$CFLAGS
7067  libs_save=$LIBS
7068  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
7069  LIBS="$LIBS $PYTHON_LIBS"
7070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071/* end confdefs.h.  */
7072
7073int
7074main ()
7075{
7076
7077  ;
7078  return 0;
7079}
7080_ACEOF
7081if ac_fn_c_try_link "$LINENO"; then :
7082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7083$as_echo "yes" >&6; }; fpie_ok=yes
7084else
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }; fpie_ok=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext \
7089    conftest$ac_exeext conftest.$ac_ext
7090  CFLAGS=$cflags_save
7091  LIBS=$libs_save
7092  if test $fpie_ok = yes; then
7093    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
7094  fi
7095elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
7096  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
7097
7098  PYTHON3_SRC="if_python3.c"
7099  PYTHON3_OBJ="objects/if_python3.o"
7100  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7101  PYTHON3_LIBS=
7102elif test "$python3_ok" = yes; then
7103      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
7104$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
7105  cflags_save=$CFLAGS
7106  libs_save=$LIBS
7107  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
7108  LIBS="$LIBS $PYTHON3_LIBS"
7109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110/* end confdefs.h.  */
7111
7112int
7113main ()
7114{
7115
7116  ;
7117  return 0;
7118}
7119_ACEOF
7120if ac_fn_c_try_link "$LINENO"; then :
7121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7122$as_echo "yes" >&6; }; fpie_ok=yes
7123else
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125$as_echo "no" >&6; }; fpie_ok=no
7126fi
7127rm -f core conftest.err conftest.$ac_objext \
7128    conftest$ac_exeext conftest.$ac_ext
7129  CFLAGS=$cflags_save
7130  LIBS=$libs_save
7131  if test $fpie_ok = yes; then
7132    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
7133  fi
7134fi
7135
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
7137$as_echo_n "checking --enable-tclinterp argument... " >&6; }
7138# Check whether --enable-tclinterp was given.
7139if test "${enable_tclinterp+set}" = set; then :
7140  enableval=$enable_tclinterp;
7141else
7142  enable_tclinterp="no"
7143fi
7144
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
7146$as_echo "$enable_tclinterp" >&6; }
7147
7148if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
7149
7150    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
7151$as_echo_n "checking --with-tclsh argument... " >&6; }
7152
7153# Check whether --with-tclsh was given.
7154if test "${with_tclsh+set}" = set; then :
7155  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
7156$as_echo "$tclsh_name" >&6; }
7157else
7158  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159$as_echo "no" >&6; }
7160fi
7161
7162  # Extract the first word of "$tclsh_name", so it can be a program name with args.
7163set dummy $tclsh_name; ac_word=$2
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
7166if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7167  $as_echo_n "(cached) " >&6
7168else
7169  case $vi_cv_path_tcl in
7170  [\\/]* | ?:[\\/]*)
7171  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7172  ;;
7173  *)
7174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177  IFS=$as_save_IFS
7178  test -z "$as_dir" && as_dir=.
7179    for ac_exec_ext in '' $ac_executable_extensions; do
7180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183    break 2
7184  fi
7185done
7186  done
7187IFS=$as_save_IFS
7188
7189  ;;
7190esac
7191fi
7192vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7193if test -n "$vi_cv_path_tcl"; then
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7195$as_echo "$vi_cv_path_tcl" >&6; }
7196else
7197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198$as_echo "no" >&6; }
7199fi
7200
7201
7202
7203
7204    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
7205    tclsh_name="tclsh8.4"
7206    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7207set dummy $tclsh_name; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  case $vi_cv_path_tcl in
7214  [\\/]* | ?:[\\/]*)
7215  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7216  ;;
7217  *)
7218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221  IFS=$as_save_IFS
7222  test -z "$as_dir" && as_dir=.
7223    for ac_exec_ext in '' $ac_executable_extensions; do
7224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227    break 2
7228  fi
7229done
7230  done
7231IFS=$as_save_IFS
7232
7233  ;;
7234esac
7235fi
7236vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7237if test -n "$vi_cv_path_tcl"; then
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7239$as_echo "$vi_cv_path_tcl" >&6; }
7240else
7241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242$as_echo "no" >&6; }
7243fi
7244
7245
7246  fi
7247  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
7248    tclsh_name="tclsh8.2"
7249    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7250set dummy $tclsh_name; ac_word=$2
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252$as_echo_n "checking for $ac_word... " >&6; }
7253if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7254  $as_echo_n "(cached) " >&6
7255else
7256  case $vi_cv_path_tcl in
7257  [\\/]* | ?:[\\/]*)
7258  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7259  ;;
7260  *)
7261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264  IFS=$as_save_IFS
7265  test -z "$as_dir" && as_dir=.
7266    for ac_exec_ext in '' $ac_executable_extensions; do
7267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270    break 2
7271  fi
7272done
7273  done
7274IFS=$as_save_IFS
7275
7276  ;;
7277esac
7278fi
7279vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7280if test -n "$vi_cv_path_tcl"; then
7281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7282$as_echo "$vi_cv_path_tcl" >&6; }
7283else
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285$as_echo "no" >&6; }
7286fi
7287
7288
7289  fi
7290  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
7291    tclsh_name="tclsh8.0"
7292    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7293set dummy $tclsh_name; ac_word=$2
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295$as_echo_n "checking for $ac_word... " >&6; }
7296if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7297  $as_echo_n "(cached) " >&6
7298else
7299  case $vi_cv_path_tcl in
7300  [\\/]* | ?:[\\/]*)
7301  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7302  ;;
7303  *)
7304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307  IFS=$as_save_IFS
7308  test -z "$as_dir" && as_dir=.
7309    for ac_exec_ext in '' $ac_executable_extensions; do
7310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313    break 2
7314  fi
7315done
7316  done
7317IFS=$as_save_IFS
7318
7319  ;;
7320esac
7321fi
7322vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7323if test -n "$vi_cv_path_tcl"; then
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7325$as_echo "$vi_cv_path_tcl" >&6; }
7326else
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328$as_echo "no" >&6; }
7329fi
7330
7331
7332  fi
7333    if test "X$vi_cv_path_tcl" = "X"; then
7334    tclsh_name="tclsh"
7335    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7336set dummy $tclsh_name; ac_word=$2
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338$as_echo_n "checking for $ac_word... " >&6; }
7339if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7340  $as_echo_n "(cached) " >&6
7341else
7342  case $vi_cv_path_tcl in
7343  [\\/]* | ?:[\\/]*)
7344  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7345  ;;
7346  *)
7347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350  IFS=$as_save_IFS
7351  test -z "$as_dir" && as_dir=.
7352    for ac_exec_ext in '' $ac_executable_extensions; do
7353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356    break 2
7357  fi
7358done
7359  done
7360IFS=$as_save_IFS
7361
7362  ;;
7363esac
7364fi
7365vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7366if test -n "$vi_cv_path_tcl"; then
7367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7368$as_echo "$vi_cv_path_tcl" >&6; }
7369else
7370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371$as_echo "no" >&6; }
7372fi
7373
7374
7375  fi
7376  if test "X$vi_cv_path_tcl" != "X"; then
7377    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
7378$as_echo_n "checking Tcl version... " >&6; }
7379    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
7380      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
7381      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
7382$as_echo "$tclver - OK" >&6; };
7383      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 -`
7384      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
7385
7386      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
7387$as_echo_n "checking for location of Tcl include... " >&6; }
7388      if test "x$MACOS_X" != "xyes"; then
7389	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
7390      else
7391		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
7392      fi
7393      TCL_INC=
7394      for try in $tclinc; do
7395	if test -f "$try/tcl.h"; then
7396	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
7397$as_echo "$try/tcl.h" >&6; }
7398	  TCL_INC=$try
7399	  break
7400	fi
7401      done
7402      if test -z "$TCL_INC"; then
7403	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7404$as_echo "<not found>" >&6; }
7405	SKIP_TCL=YES
7406      fi
7407      if test -z "$SKIP_TCL"; then
7408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
7409$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
7410	if test "x$MACOS_X" != "xyes"; then
7411	  tclcnf=`echo $tclinc | sed s/include/lib/g`
7412	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
7413	else
7414	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
7415	fi
7416	for try in $tclcnf; do
7417	  if test -f "$try/tclConfig.sh"; then
7418	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
7419$as_echo "$try/tclConfig.sh" >&6; }
7420	    . "$try/tclConfig.sh"
7421	    	    if test "$enable_tclinterp" = "dynamic"; then
7422	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7423	    else
7424	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7425	    fi
7426	    	    	    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'`
7427	    break
7428	  fi
7429	done
7430	if test -z "$TCL_LIBS"; then
7431	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7432$as_echo "<not found>" >&6; }
7433	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7434$as_echo_n "checking for Tcl library by myself... " >&6; }
7435	  tcllib=`echo $tclinc | sed s/include/lib/g`
7436	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7437	  for ext in .so .a ; do
7438	    for ver in "" $tclver ; do
7439	      for try in $tcllib ; do
7440		trylib=tcl$ver$ext
7441		if test -f "$try/lib$trylib" ; then
7442		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7443$as_echo "$try/lib$trylib" >&6; }
7444		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7445		  if test "`(uname) 2>/dev/null`" = SunOS &&
7446					 uname -r | grep '^5' >/dev/null; then
7447		    TCL_LIBS="$TCL_LIBS -R $try"
7448		  fi
7449		  break 3
7450		fi
7451	      done
7452	    done
7453	  done
7454	  if test -z "$TCL_LIBS"; then
7455	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7456$as_echo "<not found>" >&6; }
7457	    SKIP_TCL=YES
7458	  fi
7459	fi
7460	if test -z "$SKIP_TCL"; then
7461	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7462
7463	  TCL_SRC=if_tcl.c
7464	  TCL_OBJ=objects/if_tcl.o
7465	  TCL_PRO=if_tcl.pro
7466	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7467	fi
7468      fi
7469    else
7470      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7471$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7472    fi
7473  fi
7474  if test "$enable_tclinterp" = "dynamic"; then
7475    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7476      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7477
7478      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7479    fi
7480  fi
7481  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7482    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7483  fi
7484fi
7485
7486
7487
7488
7489
7490
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7492$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7493# Check whether --enable-rubyinterp was given.
7494if test "${enable_rubyinterp+set}" = set; then :
7495  enableval=$enable_rubyinterp;
7496else
7497  enable_rubyinterp="no"
7498fi
7499
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7501$as_echo "$enable_rubyinterp" >&6; }
7502if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7503  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7504    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7505  fi
7506
7507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7508$as_echo_n "checking --with-ruby-command argument... " >&6; }
7509
7510
7511# Check whether --with-ruby-command was given.
7512if test "${with_ruby_command+set}" = set; then :
7513  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7514$as_echo "$RUBY_CMD" >&6; }
7515else
7516  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7517$as_echo "defaulting to $RUBY_CMD" >&6; }
7518fi
7519
7520  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7521set dummy $RUBY_CMD; ac_word=$2
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523$as_echo_n "checking for $ac_word... " >&6; }
7524if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  case $vi_cv_path_ruby in
7528  [\\/]* | ?:[\\/]*)
7529  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7530  ;;
7531  *)
7532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  test -z "$as_dir" && as_dir=.
7537    for ac_exec_ext in '' $ac_executable_extensions; do
7538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541    break 2
7542  fi
7543done
7544  done
7545IFS=$as_save_IFS
7546
7547  ;;
7548esac
7549fi
7550vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7551if test -n "$vi_cv_path_ruby"; then
7552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7553$as_echo "$vi_cv_path_ruby" >&6; }
7554else
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556$as_echo "no" >&6; }
7557fi
7558
7559
7560  if test "X$vi_cv_path_ruby" != "X"; then
7561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7562$as_echo_n "checking Ruby version... " >&6; }
7563    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7564      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7565$as_echo "OK" >&6; }
7566      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7567$as_echo_n "checking Ruby rbconfig... " >&6; }
7568      ruby_rbconfig="RbConfig"
7569      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7570	ruby_rbconfig="Config"
7571      fi
7572      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7573$as_echo "$ruby_rbconfig" >&6; }
7574      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7575$as_echo_n "checking Ruby header files... " >&6; }
7576      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7577      if test "X$rubyhdrdir" != "X"; then
7578	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7579$as_echo "$rubyhdrdir" >&6; }
7580	RUBY_CFLAGS="-I$rubyhdrdir"
7581        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7582        if test -d "$rubyarchdir"; then
7583          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7584        fi
7585        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7586	if test "X$rubyversion" = "X"; then
7587	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7588	fi
7589        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7590	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7591	if test "X$rubylibs" != "X"; then
7592	  RUBY_LIBS="$rubylibs"
7593	fi
7594	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7595	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7596	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7597	if test -f "$rubylibdir/$librubya"; then
7598	  librubyarg="$librubyarg"
7599	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7600	elif test "$librubyarg" = "libruby.a"; then
7601	  	  librubyarg="-lruby"
7602	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7603	fi
7604
7605	if test "X$librubyarg" != "X"; then
7606	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7607	fi
7608	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7609	if test "X$rubyldflags" != "X"; then
7610	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7611	  if test "X$rubyldflags" != "X"; then
7612	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7613	      LDFLAGS="$rubyldflags $LDFLAGS"
7614	    fi
7615	  fi
7616	fi
7617	RUBY_SRC="if_ruby.c"
7618	RUBY_OBJ="objects/if_ruby.o"
7619	RUBY_PRO="if_ruby.pro"
7620	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7621
7622	if test "$enable_rubyinterp" = "dynamic"; then
7623	  libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"`
7624	  if test -z "$libruby_soname"; then
7625	    libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7626	  fi
7627	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7628
7629	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
7630	  RUBY_LIBS=
7631	fi
7632      else
7633	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7634$as_echo "not found; disabling Ruby" >&6; }
7635      fi
7636    else
7637      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7638$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7639    fi
7640  fi
7641
7642  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7643    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7644  fi
7645fi
7646
7647
7648
7649
7650
7651
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7653$as_echo_n "checking --enable-cscope argument... " >&6; }
7654# Check whether --enable-cscope was given.
7655if test "${enable_cscope+set}" = set; then :
7656  enableval=$enable_cscope;
7657else
7658  enable_cscope="no"
7659fi
7660
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7662$as_echo "$enable_cscope" >&6; }
7663if test "$enable_cscope" = "yes"; then
7664  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7665
7666fi
7667
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
7669$as_echo_n "checking --enable-workshop argument... " >&6; }
7670# Check whether --enable-workshop was given.
7671if test "${enable_workshop+set}" = set; then :
7672  enableval=$enable_workshop;
7673else
7674  enable_workshop="no"
7675fi
7676
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
7678$as_echo "$enable_workshop" >&6; }
7679if test "$enable_workshop" = "yes"; then
7680  $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
7681
7682  WORKSHOP_SRC="workshop.c integration.c"
7683
7684  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
7685
7686  if test "${enable_gui-xxx}" = xxx; then
7687    enable_gui=motif
7688  fi
7689fi
7690
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7692$as_echo_n "checking --disable-netbeans argument... " >&6; }
7693# Check whether --enable-netbeans was given.
7694if test "${enable_netbeans+set}" = set; then :
7695  enableval=$enable_netbeans;
7696else
7697  enable_netbeans="yes"
7698fi
7699
7700if test "$enable_netbeans" = "yes"; then
7701  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7703$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7704    enable_netbeans="no"
7705  else
7706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
7708  fi
7709else
7710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7711$as_echo "yes" >&6; }
7712fi
7713
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7715$as_echo_n "checking --disable-channel argument... " >&6; }
7716# Check whether --enable-channel was given.
7717if test "${enable_channel+set}" = set; then :
7718  enableval=$enable_channel;
7719else
7720  enable_channel="yes"
7721fi
7722
7723if test "$enable_channel" = "yes"; then
7724  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7726$as_echo "cannot use channels with tiny or small features" >&6; }
7727    enable_channel="no"
7728  else
7729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731  fi
7732else
7733  if test "$enable_netbeans" = "yes"; then
7734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7735$as_echo "yes, netbeans also disabled" >&6; }
7736    enable_netbeans="no"
7737  else
7738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7739$as_echo "yes" >&6; }
7740  fi
7741fi
7742
7743if test "$enable_channel" = "yes"; then
7744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7745$as_echo_n "checking for socket in -lsocket... " >&6; }
7746if ${ac_cv_lib_socket_socket+:} false; then :
7747  $as_echo_n "(cached) " >&6
7748else
7749  ac_check_lib_save_LIBS=$LIBS
7750LIBS="-lsocket  $LIBS"
7751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h.  */
7753
7754/* Override any GCC internal prototype to avoid an error.
7755   Use char because int might match the return type of a GCC
7756   builtin and then its argument prototype would still apply.  */
7757#ifdef __cplusplus
7758extern "C"
7759#endif
7760char socket ();
7761int
7762main ()
7763{
7764return socket ();
7765  ;
7766  return 0;
7767}
7768_ACEOF
7769if ac_fn_c_try_link "$LINENO"; then :
7770  ac_cv_lib_socket_socket=yes
7771else
7772  ac_cv_lib_socket_socket=no
7773fi
7774rm -f core conftest.err conftest.$ac_objext \
7775    conftest$ac_exeext conftest.$ac_ext
7776LIBS=$ac_check_lib_save_LIBS
7777fi
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7779$as_echo "$ac_cv_lib_socket_socket" >&6; }
7780if test "x$ac_cv_lib_socket_socket" = xyes; then :
7781  cat >>confdefs.h <<_ACEOF
7782#define HAVE_LIBSOCKET 1
7783_ACEOF
7784
7785  LIBS="-lsocket $LIBS"
7786
7787fi
7788
7789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7790$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7791if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7792  $as_echo_n "(cached) " >&6
7793else
7794  ac_check_lib_save_LIBS=$LIBS
7795LIBS="-lnsl  $LIBS"
7796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797/* end confdefs.h.  */
7798
7799/* Override any GCC internal prototype to avoid an error.
7800   Use char because int might match the return type of a GCC
7801   builtin and then its argument prototype would still apply.  */
7802#ifdef __cplusplus
7803extern "C"
7804#endif
7805char gethostbyname ();
7806int
7807main ()
7808{
7809return gethostbyname ();
7810  ;
7811  return 0;
7812}
7813_ACEOF
7814if ac_fn_c_try_link "$LINENO"; then :
7815  ac_cv_lib_nsl_gethostbyname=yes
7816else
7817  ac_cv_lib_nsl_gethostbyname=no
7818fi
7819rm -f core conftest.err conftest.$ac_objext \
7820    conftest$ac_exeext conftest.$ac_ext
7821LIBS=$ac_check_lib_save_LIBS
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7824$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7825if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7826  cat >>confdefs.h <<_ACEOF
7827#define HAVE_LIBNSL 1
7828_ACEOF
7829
7830  LIBS="-lnsl $LIBS"
7831
7832fi
7833
7834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5
7835$as_echo_n "checking whether compiling with process communication is possible... " >&6; }
7836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838
7839#include <stdio.h>
7840#include <stdlib.h>
7841#include <stdarg.h>
7842#include <fcntl.h>
7843#include <netdb.h>
7844#include <netinet/in.h>
7845#include <errno.h>
7846#include <sys/types.h>
7847#include <sys/socket.h>
7848	/* Check bitfields */
7849	struct nbbuf {
7850	unsigned int  initDone:1;
7851	unsigned short signmaplen;
7852	};
7853
7854int
7855main ()
7856{
7857
7858		/* Check creating a socket. */
7859		struct sockaddr_in server;
7860		(void)socket(AF_INET, SOCK_STREAM, 0);
7861		(void)htons(100);
7862		(void)gethostbyname("microsoft.com");
7863		if (errno == ECONNREFUSED)
7864		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7865
7866  ;
7867  return 0;
7868}
7869_ACEOF
7870if ac_fn_c_try_link "$LINENO"; then :
7871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7872$as_echo "yes" >&6; }
7873else
7874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no"
7876fi
7877rm -f core conftest.err conftest.$ac_objext \
7878    conftest$ac_exeext conftest.$ac_ext
7879fi
7880if test "$enable_netbeans" = "yes"; then
7881  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7882
7883  NETBEANS_SRC="netbeans.c"
7884
7885  NETBEANS_OBJ="objects/netbeans.o"
7886
7887fi
7888if test "$enable_channel" = "yes"; then
7889  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
7890
7891  CHANNEL_SRC="channel.c"
7892
7893  CHANNEL_OBJ="objects/channel.o"
7894
7895fi
7896
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
7898$as_echo_n "checking --enable-terminal argument... " >&6; }
7899# Check whether --enable-terminal was given.
7900if test "${enable_terminal+set}" = set; then :
7901  enableval=$enable_terminal;
7902else
7903  enable_terminal="auto"
7904fi
7905
7906if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
7907  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
7909$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
7910    enable_terminal="no"
7911  else
7912    if test "$enable_terminal" = "auto"; then
7913      enable_terminal="yes"
7914      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
7915$as_echo "defaulting to yes" >&6; }
7916    else
7917      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7918$as_echo "yes" >&6; }
7919    fi
7920  fi
7921else
7922  if test "$enable_terminal" = "auto"; then
7923    enable_terminal="no"
7924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
7925$as_echo "defaulting to no" >&6; }
7926  else
7927    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928$as_echo "no" >&6; }
7929  fi
7930fi
7931if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then
7932  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
7933
7934  TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/termscreen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c"
7935
7936  TERM_OBJ="objects/encoding.o objects/keyboard.o objects/mouse.o objects/parser.o objects/pen.o objects/termscreen.o objects/state.o objects/unicode.o objects/vterm.o"
7937
7938fi
7939
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5
7941$as_echo_n "checking --enable-autoservername argument... " >&6; }
7942# Check whether --enable-autoservername was given.
7943if test "${enable_autoservername+set}" = set; then :
7944  enableval=$enable_autoservername;
7945else
7946  enable_autoservername="no"
7947fi
7948
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5
7950$as_echo "$enable_autoservername" >&6; }
7951if test "$enable_autoservername" = "yes"; then
7952  $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h
7953
7954fi
7955
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7957$as_echo_n "checking --enable-multibyte argument... " >&6; }
7958# Check whether --enable-multibyte was given.
7959if test "${enable_multibyte+set}" = set; then :
7960  enableval=$enable_multibyte;
7961else
7962  enable_multibyte="no"
7963fi
7964
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
7966$as_echo "$enable_multibyte" >&6; }
7967if test "$enable_multibyte" = "yes"; then
7968  $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
7969
7970fi
7971
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5
7973$as_echo_n "checking --disable-rightleft argument... " >&6; }
7974# Check whether --enable-rightleft was given.
7975if test "${enable_rightleft+set}" = set; then :
7976  enableval=$enable_rightleft;
7977else
7978  enable_rightleft="yes"
7979fi
7980
7981if test "$enable_rightleft" = "yes"; then
7982	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
7984else
7985	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7986$as_echo "yes" >&6; }
7987	$as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h
7988
7989fi
7990
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5
7992$as_echo_n "checking --disable-arabic argument... " >&6; }
7993# Check whether --enable-arabic was given.
7994if test "${enable_arabic+set}" = set; then :
7995  enableval=$enable_arabic;
7996else
7997  enable_arabic="yes"
7998fi
7999
8000if test "$enable_arabic" = "yes"; then
8001	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002$as_echo "no" >&6; }
8003else
8004	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8005$as_echo "yes" >&6; }
8006	$as_echo "#define DISABLE_ARABIC 1" >>confdefs.h
8007
8008fi
8009
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-farsi argument" >&5
8011$as_echo_n "checking --disable-farsi argument... " >&6; }
8012# Check whether --enable-farsi was given.
8013if test "${enable_farsi+set}" = set; then :
8014  enableval=$enable_farsi;
8015else
8016  enable_farsi="yes"
8017fi
8018
8019if test "$enable_farsi" = "yes"; then
8020	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
8022else
8023	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8024$as_echo "yes" >&6; }
8025	$as_echo "#define DISABLE_FARSI 1" >>confdefs.h
8026
8027fi
8028
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
8030$as_echo_n "checking --enable-hangulinput argument... " >&6; }
8031# Check whether --enable-hangulinput was given.
8032if test "${enable_hangulinput+set}" = set; then :
8033  enableval=$enable_hangulinput;
8034else
8035  enable_hangulinput="no"
8036fi
8037
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
8039$as_echo "$enable_hangulinput" >&6; }
8040
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
8042$as_echo_n "checking --enable-xim argument... " >&6; }
8043# Check whether --enable-xim was given.
8044if test "${enable_xim+set}" = set; then :
8045  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
8046$as_echo "$enable_xim" >&6; }
8047else
8048  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
8049$as_echo "defaulting to auto" >&6; }
8050fi
8051
8052
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
8054$as_echo_n "checking --enable-fontset argument... " >&6; }
8055# Check whether --enable-fontset was given.
8056if test "${enable_fontset+set}" = set; then :
8057  enableval=$enable_fontset;
8058else
8059  enable_fontset="no"
8060fi
8061
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
8063$as_echo "$enable_fontset" >&6; }
8064
8065test -z "$with_x" && with_x=yes
8066test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
8067if test "$with_x" = no; then
8068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
8069$as_echo "defaulting to: don't HAVE_X11" >&6; }
8070else
8071
8072  # Extract the first word of "xmkmf", so it can be a program name with args.
8073set dummy xmkmf; ac_word=$2
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075$as_echo_n "checking for $ac_word... " >&6; }
8076if ${ac_cv_path_xmkmfpath+:} false; then :
8077  $as_echo_n "(cached) " >&6
8078else
8079  case $xmkmfpath in
8080  [\\/]* | ?:[\\/]*)
8081  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
8082  ;;
8083  *)
8084  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087  IFS=$as_save_IFS
8088  test -z "$as_dir" && as_dir=.
8089    for ac_exec_ext in '' $ac_executable_extensions; do
8090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8091    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
8092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093    break 2
8094  fi
8095done
8096  done
8097IFS=$as_save_IFS
8098
8099  ;;
8100esac
8101fi
8102xmkmfpath=$ac_cv_path_xmkmfpath
8103if test -n "$xmkmfpath"; then
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
8105$as_echo "$xmkmfpath" >&6; }
8106else
8107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
8109fi
8110
8111
8112
8113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8114$as_echo_n "checking for X... " >&6; }
8115
8116
8117# Check whether --with-x was given.
8118if test "${with_x+set}" = set; then :
8119  withval=$with_x;
8120fi
8121
8122# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8123if test "x$with_x" = xno; then
8124  # The user explicitly disabled X.
8125  have_x=disabled
8126else
8127  case $x_includes,$x_libraries in #(
8128    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8129    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8130  $as_echo_n "(cached) " >&6
8131else
8132  # One or both of the vars are not set, and there is no cached value.
8133ac_x_includes=no ac_x_libraries=no
8134rm -f -r conftest.dir
8135if mkdir conftest.dir; then
8136  cd conftest.dir
8137  cat >Imakefile <<'_ACEOF'
8138incroot:
8139	@echo incroot='${INCROOT}'
8140usrlibdir:
8141	@echo usrlibdir='${USRLIBDIR}'
8142libdir:
8143	@echo libdir='${LIBDIR}'
8144_ACEOF
8145  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8146    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8147    for ac_var in incroot usrlibdir libdir; do
8148      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8149    done
8150    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8151    for ac_extension in a so sl dylib la dll; do
8152      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8153	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8154	ac_im_usrlibdir=$ac_im_libdir; break
8155      fi
8156    done
8157    # Screen out bogus values from the imake configuration.  They are
8158    # bogus both because they are the default anyway, and because
8159    # using them would break gcc on systems where it needs fixed includes.
8160    case $ac_im_incroot in
8161	/usr/include) ac_x_includes= ;;
8162	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8163    esac
8164    case $ac_im_usrlibdir in
8165	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8166	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8167    esac
8168  fi
8169  cd ..
8170  rm -f -r conftest.dir
8171fi
8172
8173# Standard set of common directories for X headers.
8174# Check X11 before X11Rn because it is often a symlink to the current release.
8175ac_x_header_dirs='
8176/usr/X11/include
8177/usr/X11R7/include
8178/usr/X11R6/include
8179/usr/X11R5/include
8180/usr/X11R4/include
8181
8182/usr/include/X11
8183/usr/include/X11R7
8184/usr/include/X11R6
8185/usr/include/X11R5
8186/usr/include/X11R4
8187
8188/usr/local/X11/include
8189/usr/local/X11R7/include
8190/usr/local/X11R6/include
8191/usr/local/X11R5/include
8192/usr/local/X11R4/include
8193
8194/usr/local/include/X11
8195/usr/local/include/X11R7
8196/usr/local/include/X11R6
8197/usr/local/include/X11R5
8198/usr/local/include/X11R4
8199
8200/usr/X386/include
8201/usr/x386/include
8202/usr/XFree86/include/X11
8203
8204/usr/include
8205/usr/local/include
8206/usr/unsupported/include
8207/usr/athena/include
8208/usr/local/x11r5/include
8209/usr/lpp/Xamples/include
8210
8211/usr/openwin/include
8212/usr/openwin/share/include'
8213
8214if test "$ac_x_includes" = no; then
8215  # Guess where to find include files, by looking for Xlib.h.
8216  # First, try using that file with no special directory specified.
8217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218/* end confdefs.h.  */
8219#include <X11/Xlib.h>
8220_ACEOF
8221if ac_fn_c_try_cpp "$LINENO"; then :
8222  # We can compile using X headers with no special include directory.
8223ac_x_includes=
8224else
8225  for ac_dir in $ac_x_header_dirs; do
8226  if test -r "$ac_dir/X11/Xlib.h"; then
8227    ac_x_includes=$ac_dir
8228    break
8229  fi
8230done
8231fi
8232rm -f conftest.err conftest.i conftest.$ac_ext
8233fi # $ac_x_includes = no
8234
8235if test "$ac_x_libraries" = no; then
8236  # Check for the libraries.
8237  # See if we find them without any special options.
8238  # Don't add to $LIBS permanently.
8239  ac_save_LIBS=$LIBS
8240  LIBS="-lX11 $LIBS"
8241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242/* end confdefs.h.  */
8243#include <X11/Xlib.h>
8244int
8245main ()
8246{
8247XrmInitialize ()
8248  ;
8249  return 0;
8250}
8251_ACEOF
8252if ac_fn_c_try_link "$LINENO"; then :
8253  LIBS=$ac_save_LIBS
8254# We can link X programs with no special library path.
8255ac_x_libraries=
8256else
8257  LIBS=$ac_save_LIBS
8258for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8259do
8260  # Don't even attempt the hair of trying to link an X program!
8261  for ac_extension in a so sl dylib la dll; do
8262    if test -r "$ac_dir/libX11.$ac_extension"; then
8263      ac_x_libraries=$ac_dir
8264      break 2
8265    fi
8266  done
8267done
8268fi
8269rm -f core conftest.err conftest.$ac_objext \
8270    conftest$ac_exeext conftest.$ac_ext
8271fi # $ac_x_libraries = no
8272
8273case $ac_x_includes,$ac_x_libraries in #(
8274  no,* | *,no | *\'*)
8275    # Didn't find X, or a directory has "'" in its name.
8276    ac_cv_have_x="have_x=no";; #(
8277  *)
8278    # Record where we found X for the cache.
8279    ac_cv_have_x="have_x=yes\
8280	ac_x_includes='$ac_x_includes'\
8281	ac_x_libraries='$ac_x_libraries'"
8282esac
8283fi
8284;; #(
8285    *) have_x=yes;;
8286  esac
8287  eval "$ac_cv_have_x"
8288fi # $with_x != no
8289
8290if test "$have_x" != yes; then
8291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8292$as_echo "$have_x" >&6; }
8293  no_x=yes
8294else
8295  # If each of the values was on the command line, it overrides each guess.
8296  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8297  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8298  # Update the cache value to reflect the command line values.
8299  ac_cv_have_x="have_x=yes\
8300	ac_x_includes='$x_includes'\
8301	ac_x_libraries='$x_libraries'"
8302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8303$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8304fi
8305
8306if test "$no_x" = yes; then
8307  # Not all programs may use this symbol, but it does not hurt to define it.
8308
8309$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8310
8311  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8312else
8313  if test -n "$x_includes"; then
8314    X_CFLAGS="$X_CFLAGS -I$x_includes"
8315  fi
8316
8317  # It would also be nice to do this for all -L options, not just this one.
8318  if test -n "$x_libraries"; then
8319    X_LIBS="$X_LIBS -L$x_libraries"
8320    # For Solaris; some versions of Sun CC require a space after -R and
8321    # others require no space.  Words are not sufficient . . . .
8322    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8323$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8324    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8325    ac_xsave_c_werror_flag=$ac_c_werror_flag
8326    ac_c_werror_flag=yes
8327    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328/* end confdefs.h.  */
8329
8330int
8331main ()
8332{
8333
8334  ;
8335  return 0;
8336}
8337_ACEOF
8338if ac_fn_c_try_link "$LINENO"; then :
8339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340$as_echo "no" >&6; }
8341       X_LIBS="$X_LIBS -R$x_libraries"
8342else
8343  LIBS="$ac_xsave_LIBS -R $x_libraries"
8344       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345/* end confdefs.h.  */
8346
8347int
8348main ()
8349{
8350
8351  ;
8352  return 0;
8353}
8354_ACEOF
8355if ac_fn_c_try_link "$LINENO"; then :
8356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8357$as_echo "yes" >&6; }
8358	  X_LIBS="$X_LIBS -R $x_libraries"
8359else
8360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8361$as_echo "neither works" >&6; }
8362fi
8363rm -f core conftest.err conftest.$ac_objext \
8364    conftest$ac_exeext conftest.$ac_ext
8365fi
8366rm -f core conftest.err conftest.$ac_objext \
8367    conftest$ac_exeext conftest.$ac_ext
8368    ac_c_werror_flag=$ac_xsave_c_werror_flag
8369    LIBS=$ac_xsave_LIBS
8370  fi
8371
8372  # Check for system-dependent libraries X programs must link with.
8373  # Do this before checking for the system-independent R6 libraries
8374  # (-lICE), since we may need -lsocket or whatever for X linking.
8375
8376  if test "$ISC" = yes; then
8377    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8378  else
8379    # Martyn Johnson says this is needed for Ultrix, if the X
8380    # libraries were built with DECnet support.  And Karl Berry says
8381    # the Alpha needs dnet_stub (dnet does not exist).
8382    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384/* end confdefs.h.  */
8385
8386/* Override any GCC internal prototype to avoid an error.
8387   Use char because int might match the return type of a GCC
8388   builtin and then its argument prototype would still apply.  */
8389#ifdef __cplusplus
8390extern "C"
8391#endif
8392char XOpenDisplay ();
8393int
8394main ()
8395{
8396return XOpenDisplay ();
8397  ;
8398  return 0;
8399}
8400_ACEOF
8401if ac_fn_c_try_link "$LINENO"; then :
8402
8403else
8404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8405$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8406if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8407  $as_echo_n "(cached) " >&6
8408else
8409  ac_check_lib_save_LIBS=$LIBS
8410LIBS="-ldnet  $LIBS"
8411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412/* end confdefs.h.  */
8413
8414/* Override any GCC internal prototype to avoid an error.
8415   Use char because int might match the return type of a GCC
8416   builtin and then its argument prototype would still apply.  */
8417#ifdef __cplusplus
8418extern "C"
8419#endif
8420char dnet_ntoa ();
8421int
8422main ()
8423{
8424return dnet_ntoa ();
8425  ;
8426  return 0;
8427}
8428_ACEOF
8429if ac_fn_c_try_link "$LINENO"; then :
8430  ac_cv_lib_dnet_dnet_ntoa=yes
8431else
8432  ac_cv_lib_dnet_dnet_ntoa=no
8433fi
8434rm -f core conftest.err conftest.$ac_objext \
8435    conftest$ac_exeext conftest.$ac_ext
8436LIBS=$ac_check_lib_save_LIBS
8437fi
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8439$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8440if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8441  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8442fi
8443
8444    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8445      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8446$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8447if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8448  $as_echo_n "(cached) " >&6
8449else
8450  ac_check_lib_save_LIBS=$LIBS
8451LIBS="-ldnet_stub  $LIBS"
8452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h.  */
8454
8455/* Override any GCC internal prototype to avoid an error.
8456   Use char because int might match the return type of a GCC
8457   builtin and then its argument prototype would still apply.  */
8458#ifdef __cplusplus
8459extern "C"
8460#endif
8461char dnet_ntoa ();
8462int
8463main ()
8464{
8465return dnet_ntoa ();
8466  ;
8467  return 0;
8468}
8469_ACEOF
8470if ac_fn_c_try_link "$LINENO"; then :
8471  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8472else
8473  ac_cv_lib_dnet_stub_dnet_ntoa=no
8474fi
8475rm -f core conftest.err conftest.$ac_objext \
8476    conftest$ac_exeext conftest.$ac_ext
8477LIBS=$ac_check_lib_save_LIBS
8478fi
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8480$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8481if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8482  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8483fi
8484
8485    fi
8486fi
8487rm -f core conftest.err conftest.$ac_objext \
8488    conftest$ac_exeext conftest.$ac_ext
8489    LIBS="$ac_xsave_LIBS"
8490
8491    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
8492    # to get the SysV transport functions.
8493    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8494    # needs -lnsl.
8495    # The nsl library prevents programs from opening the X display
8496    # on Irix 5.2, according to T.E. Dickey.
8497    # The functions gethostbyname, getservbyname, and inet_addr are
8498    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8499    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8500if test "x$ac_cv_func_gethostbyname" = xyes; then :
8501
8502fi
8503
8504    if test $ac_cv_func_gethostbyname = no; then
8505      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8506$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8507if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8508  $as_echo_n "(cached) " >&6
8509else
8510  ac_check_lib_save_LIBS=$LIBS
8511LIBS="-lnsl  $LIBS"
8512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h.  */
8514
8515/* Override any GCC internal prototype to avoid an error.
8516   Use char because int might match the return type of a GCC
8517   builtin and then its argument prototype would still apply.  */
8518#ifdef __cplusplus
8519extern "C"
8520#endif
8521char gethostbyname ();
8522int
8523main ()
8524{
8525return gethostbyname ();
8526  ;
8527  return 0;
8528}
8529_ACEOF
8530if ac_fn_c_try_link "$LINENO"; then :
8531  ac_cv_lib_nsl_gethostbyname=yes
8532else
8533  ac_cv_lib_nsl_gethostbyname=no
8534fi
8535rm -f core conftest.err conftest.$ac_objext \
8536    conftest$ac_exeext conftest.$ac_ext
8537LIBS=$ac_check_lib_save_LIBS
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8540$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8541if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8542  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8543fi
8544
8545      if test $ac_cv_lib_nsl_gethostbyname = no; then
8546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8547$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8548if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8549  $as_echo_n "(cached) " >&6
8550else
8551  ac_check_lib_save_LIBS=$LIBS
8552LIBS="-lbsd  $LIBS"
8553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554/* end confdefs.h.  */
8555
8556/* Override any GCC internal prototype to avoid an error.
8557   Use char because int might match the return type of a GCC
8558   builtin and then its argument prototype would still apply.  */
8559#ifdef __cplusplus
8560extern "C"
8561#endif
8562char gethostbyname ();
8563int
8564main ()
8565{
8566return gethostbyname ();
8567  ;
8568  return 0;
8569}
8570_ACEOF
8571if ac_fn_c_try_link "$LINENO"; then :
8572  ac_cv_lib_bsd_gethostbyname=yes
8573else
8574  ac_cv_lib_bsd_gethostbyname=no
8575fi
8576rm -f core conftest.err conftest.$ac_objext \
8577    conftest$ac_exeext conftest.$ac_ext
8578LIBS=$ac_check_lib_save_LIBS
8579fi
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8581$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8582if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8583  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8584fi
8585
8586      fi
8587    fi
8588
8589    # [email protected] says without -lsocket,
8590    # socket/setsockopt and other routines are undefined under SCO ODT
8591    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8592    # on later versions), says Simon Leinen: it contains gethostby*
8593    # variants that don't use the name server (or something).  -lsocket
8594    # must be given before -lnsl if both are needed.  We assume that
8595    # if connect needs -lnsl, so does gethostbyname.
8596    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8597if test "x$ac_cv_func_connect" = xyes; then :
8598
8599fi
8600
8601    if test $ac_cv_func_connect = no; then
8602      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8603$as_echo_n "checking for connect in -lsocket... " >&6; }
8604if ${ac_cv_lib_socket_connect+:} false; then :
8605  $as_echo_n "(cached) " >&6
8606else
8607  ac_check_lib_save_LIBS=$LIBS
8608LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610/* end confdefs.h.  */
8611
8612/* Override any GCC internal prototype to avoid an error.
8613   Use char because int might match the return type of a GCC
8614   builtin and then its argument prototype would still apply.  */
8615#ifdef __cplusplus
8616extern "C"
8617#endif
8618char connect ();
8619int
8620main ()
8621{
8622return connect ();
8623  ;
8624  return 0;
8625}
8626_ACEOF
8627if ac_fn_c_try_link "$LINENO"; then :
8628  ac_cv_lib_socket_connect=yes
8629else
8630  ac_cv_lib_socket_connect=no
8631fi
8632rm -f core conftest.err conftest.$ac_objext \
8633    conftest$ac_exeext conftest.$ac_ext
8634LIBS=$ac_check_lib_save_LIBS
8635fi
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8637$as_echo "$ac_cv_lib_socket_connect" >&6; }
8638if test "x$ac_cv_lib_socket_connect" = xyes; then :
8639  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8640fi
8641
8642    fi
8643
8644    # Guillermo Gomez says -lposix is necessary on A/UX.
8645    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8646if test "x$ac_cv_func_remove" = xyes; then :
8647
8648fi
8649
8650    if test $ac_cv_func_remove = no; then
8651      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8652$as_echo_n "checking for remove in -lposix... " >&6; }
8653if ${ac_cv_lib_posix_remove+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  ac_check_lib_save_LIBS=$LIBS
8657LIBS="-lposix  $LIBS"
8658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659/* end confdefs.h.  */
8660
8661/* Override any GCC internal prototype to avoid an error.
8662   Use char because int might match the return type of a GCC
8663   builtin and then its argument prototype would still apply.  */
8664#ifdef __cplusplus
8665extern "C"
8666#endif
8667char remove ();
8668int
8669main ()
8670{
8671return remove ();
8672  ;
8673  return 0;
8674}
8675_ACEOF
8676if ac_fn_c_try_link "$LINENO"; then :
8677  ac_cv_lib_posix_remove=yes
8678else
8679  ac_cv_lib_posix_remove=no
8680fi
8681rm -f core conftest.err conftest.$ac_objext \
8682    conftest$ac_exeext conftest.$ac_ext
8683LIBS=$ac_check_lib_save_LIBS
8684fi
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8686$as_echo "$ac_cv_lib_posix_remove" >&6; }
8687if test "x$ac_cv_lib_posix_remove" = xyes; then :
8688  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8689fi
8690
8691    fi
8692
8693    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8694    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8695if test "x$ac_cv_func_shmat" = xyes; then :
8696
8697fi
8698
8699    if test $ac_cv_func_shmat = no; then
8700      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8701$as_echo_n "checking for shmat in -lipc... " >&6; }
8702if ${ac_cv_lib_ipc_shmat+:} false; then :
8703  $as_echo_n "(cached) " >&6
8704else
8705  ac_check_lib_save_LIBS=$LIBS
8706LIBS="-lipc  $LIBS"
8707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h.  */
8709
8710/* Override any GCC internal prototype to avoid an error.
8711   Use char because int might match the return type of a GCC
8712   builtin and then its argument prototype would still apply.  */
8713#ifdef __cplusplus
8714extern "C"
8715#endif
8716char shmat ();
8717int
8718main ()
8719{
8720return shmat ();
8721  ;
8722  return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_link "$LINENO"; then :
8726  ac_cv_lib_ipc_shmat=yes
8727else
8728  ac_cv_lib_ipc_shmat=no
8729fi
8730rm -f core conftest.err conftest.$ac_objext \
8731    conftest$ac_exeext conftest.$ac_ext
8732LIBS=$ac_check_lib_save_LIBS
8733fi
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8735$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8736if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8737  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8738fi
8739
8740    fi
8741  fi
8742
8743  # Check for libraries that X11R6 Xt/Xaw programs need.
8744  ac_save_LDFLAGS=$LDFLAGS
8745  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8746  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8747  # check for ICE first), but we must link in the order -lSM -lICE or
8748  # we get undefined symbols.  So assume we have SM if we have ICE.
8749  # These have to be linked with before -lX11, unlike the other
8750  # libraries we check for below, so use a different variable.
8751  # John Interrante, Karl Berry
8752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8753$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8754if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8755  $as_echo_n "(cached) " >&6
8756else
8757  ac_check_lib_save_LIBS=$LIBS
8758LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760/* end confdefs.h.  */
8761
8762/* Override any GCC internal prototype to avoid an error.
8763   Use char because int might match the return type of a GCC
8764   builtin and then its argument prototype would still apply.  */
8765#ifdef __cplusplus
8766extern "C"
8767#endif
8768char IceConnectionNumber ();
8769int
8770main ()
8771{
8772return IceConnectionNumber ();
8773  ;
8774  return 0;
8775}
8776_ACEOF
8777if ac_fn_c_try_link "$LINENO"; then :
8778  ac_cv_lib_ICE_IceConnectionNumber=yes
8779else
8780  ac_cv_lib_ICE_IceConnectionNumber=no
8781fi
8782rm -f core conftest.err conftest.$ac_objext \
8783    conftest$ac_exeext conftest.$ac_ext
8784LIBS=$ac_check_lib_save_LIBS
8785fi
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8787$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8788if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8789  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8790fi
8791
8792  LDFLAGS=$ac_save_LDFLAGS
8793
8794fi
8795
8796
8797        if test "$zOSUnix" = "yes"; then
8798    CFLAGS="$CFLAGS -W c,dll"
8799    LDFLAGS="$LDFLAGS -W l,dll"
8800    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8801  fi
8802
8803
8804  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8805    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8807$as_echo "Corrected X libraries to $x_libraries" >&6; }
8808    X_LIBS="$X_LIBS -L$x_libraries"
8809    if test "`(uname) 2>/dev/null`" = SunOS &&
8810					 uname -r | grep '^5' >/dev/null; then
8811      X_LIBS="$X_LIBS -R $x_libraries"
8812    fi
8813  fi
8814
8815  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8816    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8818$as_echo "Corrected X includes to $x_includes" >&6; }
8819    X_CFLAGS="$X_CFLAGS -I$x_includes"
8820  fi
8821
8822    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8823    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8824    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8825
8826
8827        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8828$as_echo_n "checking if X11 header files can be found... " >&6; }
8829  cflags_save=$CFLAGS
8830  CFLAGS="$CFLAGS $X_CFLAGS"
8831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832/* end confdefs.h.  */
8833#include <X11/Xlib.h>
8834#include <X11/Intrinsic.h>
8835int
8836main ()
8837{
8838
8839  ;
8840  return 0;
8841}
8842_ACEOF
8843if ac_fn_c_try_compile "$LINENO"; then :
8844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8845$as_echo "yes" >&6; }
8846else
8847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848$as_echo "no" >&6; }; no_x=yes
8849fi
8850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851  CFLAGS=$cflags_save
8852
8853  if test "${no_x-no}" = yes; then
8854    with_x=no
8855  else
8856    $as_echo "#define HAVE_X11 1" >>confdefs.h
8857
8858    X_LIB="-lXt -lX11";
8859
8860
8861    ac_save_LDFLAGS="$LDFLAGS"
8862    LDFLAGS="-L$x_libraries $LDFLAGS"
8863
8864            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8865$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8866if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  ac_check_lib_save_LIBS=$LIBS
8870LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872/* end confdefs.h.  */
8873
8874/* Override any GCC internal prototype to avoid an error.
8875   Use char because int might match the return type of a GCC
8876   builtin and then its argument prototype would still apply.  */
8877#ifdef __cplusplus
8878extern "C"
8879#endif
8880char _XdmcpAuthDoIt ();
8881int
8882main ()
8883{
8884return _XdmcpAuthDoIt ();
8885  ;
8886  return 0;
8887}
8888_ACEOF
8889if ac_fn_c_try_link "$LINENO"; then :
8890  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8891else
8892  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8893fi
8894rm -f core conftest.err conftest.$ac_objext \
8895    conftest$ac_exeext conftest.$ac_ext
8896LIBS=$ac_check_lib_save_LIBS
8897fi
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8899$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8900if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8901  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8902fi
8903
8904
8905                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8906$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8907if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8908  $as_echo_n "(cached) " >&6
8909else
8910  ac_check_lib_save_LIBS=$LIBS
8911LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914
8915/* Override any GCC internal prototype to avoid an error.
8916   Use char because int might match the return type of a GCC
8917   builtin and then its argument prototype would still apply.  */
8918#ifdef __cplusplus
8919extern "C"
8920#endif
8921char IceOpenConnection ();
8922int
8923main ()
8924{
8925return IceOpenConnection ();
8926  ;
8927  return 0;
8928}
8929_ACEOF
8930if ac_fn_c_try_link "$LINENO"; then :
8931  ac_cv_lib_ICE_IceOpenConnection=yes
8932else
8933  ac_cv_lib_ICE_IceOpenConnection=no
8934fi
8935rm -f core conftest.err conftest.$ac_objext \
8936    conftest$ac_exeext conftest.$ac_ext
8937LIBS=$ac_check_lib_save_LIBS
8938fi
8939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8940$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8941if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8942  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8943fi
8944
8945
8946        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8948$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8949if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8950  $as_echo_n "(cached) " >&6
8951else
8952  ac_check_lib_save_LIBS=$LIBS
8953LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955/* end confdefs.h.  */
8956
8957/* Override any GCC internal prototype to avoid an error.
8958   Use char because int might match the return type of a GCC
8959   builtin and then its argument prototype would still apply.  */
8960#ifdef __cplusplus
8961extern "C"
8962#endif
8963char XpmCreatePixmapFromData ();
8964int
8965main ()
8966{
8967return XpmCreatePixmapFromData ();
8968  ;
8969  return 0;
8970}
8971_ACEOF
8972if ac_fn_c_try_link "$LINENO"; then :
8973  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8974else
8975  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8976fi
8977rm -f core conftest.err conftest.$ac_objext \
8978    conftest$ac_exeext conftest.$ac_ext
8979LIBS=$ac_check_lib_save_LIBS
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8982$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8983if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8984  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8985fi
8986
8987
8988        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8989$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8990    cflags_save=$CFLAGS
8991        if test "$GCC" = yes; then
8992      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8993    else
8994      CFLAGS="$CFLAGS $X_CFLAGS"
8995    fi
8996    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997/* end confdefs.h.  */
8998#include <X11/Xlib.h>
8999int
9000main ()
9001{
9002
9003  ;
9004  return 0;
9005}
9006_ACEOF
9007if ac_fn_c_try_compile "$LINENO"; then :
9008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009$as_echo "no" >&6; }
9010else
9011  CFLAGS="$CFLAGS -Wno-implicit-int"
9012	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013/* end confdefs.h.  */
9014#include <X11/Xlib.h>
9015int
9016main ()
9017{
9018
9019  ;
9020  return 0;
9021}
9022_ACEOF
9023if ac_fn_c_try_compile "$LINENO"; then :
9024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9025$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
9026else
9027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
9028$as_echo "test failed" >&6; }
9029
9030fi
9031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9032
9033fi
9034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035    CFLAGS=$cflags_save
9036
9037    LDFLAGS="$ac_save_LDFLAGS"
9038
9039    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
9040$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
9041    if ${ac_cv_small_wchar_t+:} false; then :
9042  $as_echo_n "(cached) " >&6
9043else
9044  if test "$cross_compiling" = yes; then :
9045  as_fn_error $? "failed to compile test program" "$LINENO" 5
9046else
9047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048/* end confdefs.h.  */
9049
9050#include <X11/Xlib.h>
9051#if STDC_HEADERS
9052# include <stdlib.h>
9053# include <stddef.h>
9054#endif
9055		main()
9056		{
9057		  if (sizeof(wchar_t) <= 2)
9058		    exit(1);
9059		  exit(0);
9060		}
9061_ACEOF
9062if ac_fn_c_try_run "$LINENO"; then :
9063  ac_cv_small_wchar_t="no"
9064else
9065  ac_cv_small_wchar_t="yes"
9066fi
9067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9068  conftest.$ac_objext conftest.beam conftest.$ac_ext
9069fi
9070
9071fi
9072
9073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
9074$as_echo "$ac_cv_small_wchar_t" >&6; }
9075    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
9076      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
9077
9078    fi
9079
9080  fi
9081fi
9082
9083if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then
9084    as_fn_error $? "could not configure X" "$LINENO" 5
9085fi
9086
9087test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
9088
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
9090$as_echo_n "checking --enable-gui argument... " >&6; }
9091# Check whether --enable-gui was given.
9092if test "${enable_gui+set}" = set; then :
9093  enableval=$enable_gui;
9094else
9095  enable_gui="auto"
9096fi
9097
9098
9099enable_gui_canon=`echo "_$enable_gui" | \
9100	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
9101
9102SKIP_GTK2=YES
9103SKIP_GTK3=YES
9104SKIP_GNOME=YES
9105SKIP_MOTIF=YES
9106SKIP_ATHENA=YES
9107SKIP_NEXTAW=YES
9108SKIP_PHOTON=YES
9109SKIP_CARBON=YES
9110GUITYPE=NONE
9111
9112if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
9113  SKIP_PHOTON=
9114  case "$enable_gui_canon" in
9115    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9116$as_echo "no GUI support" >&6; }
9117		SKIP_PHOTON=YES ;;
9118    yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5
9119$as_echo "automatic GUI support" >&6; }
9120    		gui_auto=yes ;;
9121    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
9122$as_echo "Photon GUI support" >&6; } ;;
9123    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9124$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9125		SKIP_PHOTON=YES ;;
9126  esac
9127
9128elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
9129  SKIP_CARBON=
9130  case "$enable_gui_canon" in
9131    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9132$as_echo "no GUI support" >&6; }
9133		SKIP_CARBON=YES ;;
9134    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9135$as_echo "yes - automatic GUI support" >&6; }
9136    		gui_auto=yes ;;
9137    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
9138$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
9139		SKIP_CARBON=YES ;;
9140    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
9141$as_echo "Carbon GUI support" >&6; } ;;
9142    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9143$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9144		SKIP_CARBON=YES ;;
9145  esac
9146
9147else
9148
9149  case "$enable_gui_canon" in
9150    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9151$as_echo "no GUI support" >&6; } ;;
9152    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
9153$as_echo "yes/auto - automatic GUI support" >&6; }
9154		gui_auto=yes
9155		SKIP_GTK2=
9156		SKIP_GNOME=
9157		SKIP_MOTIF=
9158		SKIP_ATHENA=
9159		SKIP_NEXTAW=
9160		SKIP_CARBON=;;
9161    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
9162$as_echo "GTK+ 2.x GUI support" >&6; }
9163		SKIP_GTK2=;;
9164    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
9165$as_echo "GNOME 2.x GUI support" >&6; }
9166		SKIP_GNOME=
9167		SKIP_GTK2=;;
9168    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
9169$as_echo "GTK+ 3.x GUI support" >&6; }
9170		SKIP_GTK3=;;
9171    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
9172$as_echo "Motif GUI support" >&6; }
9173		SKIP_MOTIF=;;
9174    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
9175$as_echo "Athena GUI support" >&6; }
9176		SKIP_ATHENA=;;
9177    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
9178$as_echo "neXtaw GUI support" >&6; }
9179		SKIP_NEXTAW=;;
9180    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9181$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
9182  esac
9183
9184fi
9185
9186if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
9187				-a "$enable_gui_canon" != "gnome2"; then
9188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
9189$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
9190  # Check whether --enable-gtk2-check was given.
9191if test "${enable_gtk2_check+set}" = set; then :
9192  enableval=$enable_gtk2_check;
9193else
9194  enable_gtk2_check="yes"
9195fi
9196
9197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
9198$as_echo "$enable_gtk2_check" >&6; }
9199  if test "x$enable_gtk2_check" = "xno"; then
9200    SKIP_GTK2=YES
9201    SKIP_GNOME=YES
9202  fi
9203fi
9204
9205if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
9206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
9207$as_echo_n "checking whether or not to look for GNOME... " >&6; }
9208  # Check whether --enable-gnome-check was given.
9209if test "${enable_gnome_check+set}" = set; then :
9210  enableval=$enable_gnome_check;
9211else
9212  enable_gnome_check="no"
9213fi
9214
9215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
9216$as_echo "$enable_gnome_check" >&6; }
9217  if test "x$enable_gnome_check" = "xno"; then
9218    SKIP_GNOME=YES
9219  fi
9220fi
9221
9222if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
9223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
9224$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
9225  # Check whether --enable-gtk3-check was given.
9226if test "${enable_gtk3_check+set}" = set; then :
9227  enableval=$enable_gtk3_check;
9228else
9229  enable_gtk3_check="yes"
9230fi
9231
9232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
9233$as_echo "$enable_gtk3_check" >&6; }
9234  if test "x$enable_gtk3_check" = "xno"; then
9235    SKIP_GTK3=YES
9236  fi
9237fi
9238
9239if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
9240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
9241$as_echo_n "checking whether or not to look for Motif... " >&6; }
9242  # Check whether --enable-motif-check was given.
9243if test "${enable_motif_check+set}" = set; then :
9244  enableval=$enable_motif_check;
9245else
9246  enable_motif_check="yes"
9247fi
9248
9249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
9250$as_echo "$enable_motif_check" >&6; }
9251  if test "x$enable_motif_check" = "xno"; then
9252    SKIP_MOTIF=YES
9253  fi
9254fi
9255
9256if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
9257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
9258$as_echo_n "checking whether or not to look for Athena... " >&6; }
9259  # Check whether --enable-athena-check was given.
9260if test "${enable_athena_check+set}" = set; then :
9261  enableval=$enable_athena_check;
9262else
9263  enable_athena_check="yes"
9264fi
9265
9266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
9267$as_echo "$enable_athena_check" >&6; }
9268  if test "x$enable_athena_check" = "xno"; then
9269    SKIP_ATHENA=YES
9270  fi
9271fi
9272
9273if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
9274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
9275$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
9276  # Check whether --enable-nextaw-check was given.
9277if test "${enable_nextaw_check+set}" = set; then :
9278  enableval=$enable_nextaw_check;
9279else
9280  enable_nextaw_check="yes"
9281fi
9282
9283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
9284$as_echo "$enable_nextaw_check" >&6; };
9285  if test "x$enable_nextaw_check" = "xno"; then
9286    SKIP_NEXTAW=YES
9287  fi
9288fi
9289
9290if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
9291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
9292$as_echo_n "checking whether or not to look for Carbon... " >&6; }
9293  # Check whether --enable-carbon-check was given.
9294if test "${enable_carbon_check+set}" = set; then :
9295  enableval=$enable_carbon_check;
9296else
9297  enable_carbon_check="yes"
9298fi
9299
9300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
9301$as_echo "$enable_carbon_check" >&6; };
9302  if test "x$enable_carbon_check" = "xno"; then
9303    SKIP_CARBON=YES
9304  fi
9305fi
9306
9307
9308if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
9309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
9310$as_echo_n "checking for Carbon GUI... " >&6; }
9311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9312$as_echo "yes" >&6; };
9313  GUITYPE=CARBONGUI
9314  if test "$VIMNAME" = "vim"; then
9315    VIMNAME=Vim
9316  fi
9317
9318  if test "x$MACARCH" = "xboth"; then
9319    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
9320  else
9321    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
9322  fi
9323
9324    if test x$prefix = xNONE; then
9325    prefix=/Applications
9326  fi
9327
9328    datadir='${prefix}/Vim.app/Contents/Resources'
9329
9330    SKIP_GTK2=YES;
9331  SKIP_GNOME=YES;
9332  SKIP_MOTIF=YES;
9333  SKIP_ATHENA=YES;
9334  SKIP_NEXTAW=YES;
9335  SKIP_PHOTON=YES;
9336  SKIP_CARBON=YES
9337fi
9338
9339
9340
9341
9342
9343
9344
9345
9346if test -z "$SKIP_GTK2"; then
9347
9348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9349$as_echo_n "checking --disable-gtktest argument... " >&6; }
9350  # Check whether --enable-gtktest was given.
9351if test "${enable_gtktest+set}" = set; then :
9352  enableval=$enable_gtktest;
9353else
9354  enable_gtktest=yes
9355fi
9356
9357  if test "x$enable_gtktest" = "xyes" ; then
9358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9359$as_echo "gtk test enabled" >&6; }
9360  else
9361    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9362$as_echo "gtk test disabled" >&6; }
9363  fi
9364
9365  if test "X$PKG_CONFIG" = "X"; then
9366    if test -n "$ac_tool_prefix"; then
9367  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9368set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9370$as_echo_n "checking for $ac_word... " >&6; }
9371if ${ac_cv_path_PKG_CONFIG+:} false; then :
9372  $as_echo_n "(cached) " >&6
9373else
9374  case $PKG_CONFIG in
9375  [\\/]* | ?:[\\/]*)
9376  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9377  ;;
9378  *)
9379  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9380for as_dir in $PATH
9381do
9382  IFS=$as_save_IFS
9383  test -z "$as_dir" && as_dir=.
9384    for ac_exec_ext in '' $ac_executable_extensions; do
9385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9386    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9388    break 2
9389  fi
9390done
9391  done
9392IFS=$as_save_IFS
9393
9394  ;;
9395esac
9396fi
9397PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9398if test -n "$PKG_CONFIG"; then
9399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9400$as_echo "$PKG_CONFIG" >&6; }
9401else
9402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403$as_echo "no" >&6; }
9404fi
9405
9406
9407fi
9408if test -z "$ac_cv_path_PKG_CONFIG"; then
9409  ac_pt_PKG_CONFIG=$PKG_CONFIG
9410  # Extract the first word of "pkg-config", so it can be a program name with args.
9411set dummy pkg-config; ac_word=$2
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413$as_echo_n "checking for $ac_word... " >&6; }
9414if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9415  $as_echo_n "(cached) " >&6
9416else
9417  case $ac_pt_PKG_CONFIG in
9418  [\\/]* | ?:[\\/]*)
9419  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9420  ;;
9421  *)
9422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423for as_dir in $PATH
9424do
9425  IFS=$as_save_IFS
9426  test -z "$as_dir" && as_dir=.
9427    for ac_exec_ext in '' $ac_executable_extensions; do
9428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9429    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431    break 2
9432  fi
9433done
9434  done
9435IFS=$as_save_IFS
9436
9437  ;;
9438esac
9439fi
9440ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9441if test -n "$ac_pt_PKG_CONFIG"; then
9442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9443$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9444else
9445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446$as_echo "no" >&6; }
9447fi
9448
9449  if test "x$ac_pt_PKG_CONFIG" = x; then
9450    PKG_CONFIG="no"
9451  else
9452    case $cross_compiling:$ac_tool_warned in
9453yes:)
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9456ac_tool_warned=yes ;;
9457esac
9458    PKG_CONFIG=$ac_pt_PKG_CONFIG
9459  fi
9460else
9461  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9462fi
9463
9464  fi
9465
9466  if test "x$PKG_CONFIG" != "xno"; then
9467
9468  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9469  {
9470    no_gtk=""
9471    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9472	  && $PKG_CONFIG --exists gtk+-2.0; then
9473    {
9474      min_gtk_version=2.2.0
9475      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9476$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9477                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9478      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9479      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9480      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9481	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9482      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9483	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9484      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9485	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9486    }
9487    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9488	  && $PKG_CONFIG --exists gtk+-3.0; then
9489    {
9490      min_gtk_version=2.2.0
9491      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9492$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9493
9494      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9495      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9496      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9497      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9498	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9499      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9500	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9501      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9502	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9503    }
9504    else
9505      no_gtk=yes
9506    fi
9507
9508    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9509    {
9510      ac_save_CFLAGS="$CFLAGS"
9511      ac_save_LIBS="$LIBS"
9512      CFLAGS="$CFLAGS $GTK_CFLAGS"
9513      LIBS="$LIBS $GTK_LIBS"
9514
9515                        rm -f conf.gtktest
9516      if test "$cross_compiling" = yes; then :
9517  echo $ac_n "cross compiling; assumed OK... $ac_c"
9518else
9519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520/* end confdefs.h.  */
9521
9522#include <gtk/gtk.h>
9523#include <stdio.h>
9524#if STDC_HEADERS
9525# include <stdlib.h>
9526# include <stddef.h>
9527#endif
9528
9529int
9530main ()
9531{
9532int major, minor, micro;
9533char *tmp_version;
9534
9535system ("touch conf.gtktest");
9536
9537/* HP/UX 9 (%@#!) writes to sscanf strings */
9538tmp_version = g_strdup("$min_gtk_version");
9539if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9540   printf("%s, bad version string\n", "$min_gtk_version");
9541   exit(1);
9542 }
9543
9544if ((gtk_major_version > major) ||
9545    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9546    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9547				     (gtk_micro_version >= micro)))
9548{
9549    return 0;
9550}
9551return 1;
9552}
9553
9554_ACEOF
9555if ac_fn_c_try_run "$LINENO"; then :
9556
9557else
9558  no_gtk=yes
9559fi
9560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9561  conftest.$ac_objext conftest.beam conftest.$ac_ext
9562fi
9563
9564      CFLAGS="$ac_save_CFLAGS"
9565      LIBS="$ac_save_LIBS"
9566    }
9567    fi
9568    if test "x$no_gtk" = x ; then
9569      if test "x$enable_gtktest" = "xyes"; then
9570	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9571$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9572      else
9573	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9574$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9575      fi
9576      GUI_LIB_LOC="$GTK_LIBDIR"
9577		 GTK_LIBNAME="$GTK_LIBS"
9578		GUI_INC_LOC="$GTK_CFLAGS"
9579    else
9580    {
9581      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582$as_echo "no" >&6; }
9583      GTK_CFLAGS=""
9584      GTK_LIBS=""
9585      :
9586      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9587	as_fn_error $? "could not configure GTK" "$LINENO" 5
9588      fi
9589    }
9590    fi
9591  }
9592  else
9593    GTK_CFLAGS=""
9594    GTK_LIBS=""
9595    :
9596  fi
9597
9598
9599  rm -f conf.gtktest
9600
9601    if test "x$GTK_CFLAGS" != "x"; then
9602      SKIP_GTK3=YES
9603      SKIP_ATHENA=YES
9604      SKIP_NEXTAW=YES
9605      SKIP_MOTIF=YES
9606      GUITYPE=GTK
9607
9608    fi
9609  fi
9610  if test "x$GUITYPE" = "xGTK"; then
9611                if test -z "$SKIP_GNOME"; then
9612    {
9613
9614
9615
9616
9617
9618
9619# Check whether --with-gnome-includes was given.
9620if test "${with_gnome_includes+set}" = set; then :
9621  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9622
9623fi
9624
9625
9626
9627# Check whether --with-gnome-libs was given.
9628if test "${with_gnome_libs+set}" = set; then :
9629  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9630
9631fi
9632
9633
9634
9635# Check whether --with-gnome was given.
9636if test "${with_gnome+set}" = set; then :
9637  withval=$with_gnome; if test x$withval = xyes; then
9638      want_gnome=yes
9639      have_gnome=yes
9640    else
9641      if test "x$withval" = xno; then
9642	want_gnome=no
9643      else
9644	want_gnome=yes
9645	LDFLAGS="$LDFLAGS -L$withval/lib"
9646	CFLAGS="$CFLAGS -I$withval/include"
9647	gnome_prefix=$withval/lib
9648      fi
9649    fi
9650else
9651  want_gnome=yes
9652fi
9653
9654
9655  if test "x$want_gnome" = xyes; then
9656  {
9657    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9658$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9659    if $PKG_CONFIG --exists libgnomeui-2.0; then
9660      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9661$as_echo "yes" >&6; }
9662      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9663      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9664      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9665
9666                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9667$as_echo_n "checking for FreeBSD... " >&6; }
9668      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9669	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9670$as_echo "yes" >&6; }
9671	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9672	GNOME_LIBS="$GNOME_LIBS -pthread"
9673      else
9674	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675$as_echo "no" >&6; }
9676      fi
9677      have_gnome=yes
9678    else
9679      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9680$as_echo "not found" >&6; }
9681      if test "x" = xfail; then
9682	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9683      fi
9684    fi
9685  }
9686  fi
9687
9688      if test "x$have_gnome" = xyes ; then
9689	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9690
9691	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9692	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9693      fi
9694    }
9695    fi
9696  fi
9697fi
9698
9699
9700if test -z "$SKIP_GTK3"; then
9701
9702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9703$as_echo_n "checking --disable-gtktest argument... " >&6; }
9704  # Check whether --enable-gtktest was given.
9705if test "${enable_gtktest+set}" = set; then :
9706  enableval=$enable_gtktest;
9707else
9708  enable_gtktest=yes
9709fi
9710
9711  if test "x$enable_gtktest" = "xyes" ; then
9712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9713$as_echo "gtk test enabled" >&6; }
9714  else
9715    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9716$as_echo "gtk test disabled" >&6; }
9717  fi
9718
9719  if test "X$PKG_CONFIG" = "X"; then
9720    if test -n "$ac_tool_prefix"; then
9721  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9722set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724$as_echo_n "checking for $ac_word... " >&6; }
9725if ${ac_cv_path_PKG_CONFIG+:} false; then :
9726  $as_echo_n "(cached) " >&6
9727else
9728  case $PKG_CONFIG in
9729  [\\/]* | ?:[\\/]*)
9730  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9731  ;;
9732  *)
9733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734for as_dir in $PATH
9735do
9736  IFS=$as_save_IFS
9737  test -z "$as_dir" && as_dir=.
9738    for ac_exec_ext in '' $ac_executable_extensions; do
9739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9740    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742    break 2
9743  fi
9744done
9745  done
9746IFS=$as_save_IFS
9747
9748  ;;
9749esac
9750fi
9751PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9752if test -n "$PKG_CONFIG"; then
9753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9754$as_echo "$PKG_CONFIG" >&6; }
9755else
9756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757$as_echo "no" >&6; }
9758fi
9759
9760
9761fi
9762if test -z "$ac_cv_path_PKG_CONFIG"; then
9763  ac_pt_PKG_CONFIG=$PKG_CONFIG
9764  # Extract the first word of "pkg-config", so it can be a program name with args.
9765set dummy pkg-config; ac_word=$2
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9767$as_echo_n "checking for $ac_word... " >&6; }
9768if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9769  $as_echo_n "(cached) " >&6
9770else
9771  case $ac_pt_PKG_CONFIG in
9772  [\\/]* | ?:[\\/]*)
9773  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9774  ;;
9775  *)
9776  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777for as_dir in $PATH
9778do
9779  IFS=$as_save_IFS
9780  test -z "$as_dir" && as_dir=.
9781    for ac_exec_ext in '' $ac_executable_extensions; do
9782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9783    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9785    break 2
9786  fi
9787done
9788  done
9789IFS=$as_save_IFS
9790
9791  ;;
9792esac
9793fi
9794ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9795if test -n "$ac_pt_PKG_CONFIG"; then
9796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9797$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9798else
9799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800$as_echo "no" >&6; }
9801fi
9802
9803  if test "x$ac_pt_PKG_CONFIG" = x; then
9804    PKG_CONFIG="no"
9805  else
9806    case $cross_compiling:$ac_tool_warned in
9807yes:)
9808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9810ac_tool_warned=yes ;;
9811esac
9812    PKG_CONFIG=$ac_pt_PKG_CONFIG
9813  fi
9814else
9815  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9816fi
9817
9818  fi
9819
9820  if test "x$PKG_CONFIG" != "xno"; then
9821
9822  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9823  {
9824    no_gtk=""
9825    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9826	  && $PKG_CONFIG --exists gtk+-2.0; then
9827    {
9828      min_gtk_version=3.0.0
9829      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9830$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9831                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9832      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9833      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9834      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9835	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9836      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9837	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9838      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9839	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9840    }
9841    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9842	  && $PKG_CONFIG --exists gtk+-3.0; then
9843    {
9844      min_gtk_version=3.0.0
9845      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9846$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9847
9848      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9849      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9850      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9851      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9852	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9853      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9854	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9855      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9856	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9857    }
9858    else
9859      no_gtk=yes
9860    fi
9861
9862    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9863    {
9864      ac_save_CFLAGS="$CFLAGS"
9865      ac_save_LIBS="$LIBS"
9866      CFLAGS="$CFLAGS $GTK_CFLAGS"
9867      LIBS="$LIBS $GTK_LIBS"
9868
9869                        rm -f conf.gtktest
9870      if test "$cross_compiling" = yes; then :
9871  echo $ac_n "cross compiling; assumed OK... $ac_c"
9872else
9873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h.  */
9875
9876#include <gtk/gtk.h>
9877#include <stdio.h>
9878#if STDC_HEADERS
9879# include <stdlib.h>
9880# include <stddef.h>
9881#endif
9882
9883int
9884main ()
9885{
9886int major, minor, micro;
9887char *tmp_version;
9888
9889system ("touch conf.gtktest");
9890
9891/* HP/UX 9 (%@#!) writes to sscanf strings */
9892tmp_version = g_strdup("$min_gtk_version");
9893if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9894   printf("%s, bad version string\n", "$min_gtk_version");
9895   exit(1);
9896 }
9897
9898if ((gtk_major_version > major) ||
9899    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9900    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9901				     (gtk_micro_version >= micro)))
9902{
9903    return 0;
9904}
9905return 1;
9906}
9907
9908_ACEOF
9909if ac_fn_c_try_run "$LINENO"; then :
9910
9911else
9912  no_gtk=yes
9913fi
9914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9915  conftest.$ac_objext conftest.beam conftest.$ac_ext
9916fi
9917
9918      CFLAGS="$ac_save_CFLAGS"
9919      LIBS="$ac_save_LIBS"
9920    }
9921    fi
9922    if test "x$no_gtk" = x ; then
9923      if test "x$enable_gtktest" = "xyes"; then
9924	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9925$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9926      else
9927	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9928$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9929      fi
9930      GUI_LIB_LOC="$GTK_LIBDIR"
9931		 GTK_LIBNAME="$GTK_LIBS"
9932		GUI_INC_LOC="$GTK_CFLAGS"
9933    else
9934    {
9935      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936$as_echo "no" >&6; }
9937      GTK_CFLAGS=""
9938      GTK_LIBS=""
9939      :
9940      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9941	as_fn_error $? "could not configure GTK" "$LINENO" 5
9942      fi
9943    }
9944    fi
9945  }
9946  else
9947    GTK_CFLAGS=""
9948    GTK_LIBS=""
9949    :
9950  fi
9951
9952
9953  rm -f conf.gtktest
9954
9955    if test "x$GTK_CFLAGS" != "x"; then
9956      SKIP_GTK2=YES
9957      SKIP_GNOME=YES
9958      SKIP_ATHENA=YES
9959      SKIP_NEXTAW=YES
9960      SKIP_MOTIF=YES
9961      GUITYPE=GTK
9962
9963      $as_echo "#define USE_GTK3 1" >>confdefs.h
9964
9965    fi
9966  fi
9967fi
9968
9969if test "x$GUITYPE" = "xGTK"; then
9970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9971$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9972  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9973  if test "x$gdk_pixbuf_version" != x ; then
9974    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9975      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9976    if test "x$gdk_pixbuf_version_minor" != x -a \
9977	$gdk_pixbuf_version_minor -ge 31 ; then
9978      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
9979$as_echo "OK." >&6; }
9980      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
9981set dummy glib-compile-resources; ac_word=$2
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983$as_echo_n "checking for $ac_word... " >&6; }
9984if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
9985  $as_echo_n "(cached) " >&6
9986else
9987  case $GLIB_COMPILE_RESOURCES in
9988  [\\/]* | ?:[\\/]*)
9989  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
9990  ;;
9991  *)
9992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993for as_dir in $PATH
9994do
9995  IFS=$as_save_IFS
9996  test -z "$as_dir" && as_dir=.
9997    for ac_exec_ext in '' $ac_executable_extensions; do
9998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9999    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
10000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10001    break 2
10002  fi
10003done
10004  done
10005IFS=$as_save_IFS
10006
10007  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
10008  ;;
10009esac
10010fi
10011GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
10012if test -n "$GLIB_COMPILE_RESOURCES"; then
10013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
10014$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
10015else
10016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017$as_echo "no" >&6; }
10018fi
10019
10020
10021      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
10022$as_echo_n "checking glib-compile-resources... " >&6; }
10023      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
10024	GLIB_COMPILE_RESOURCES=""
10025	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
10026$as_echo "cannot be found in PATH." >&6; }
10027      else
10028	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
10029$as_echo "usable." >&6; }
10030	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
10031
10032	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
10033	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
10034      fi
10035    else
10036      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
10037$as_echo "not usable." >&6; }
10038    fi
10039  else
10040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
10041$as_echo "cannot obtain from pkg_config." >&6; }
10042  fi
10043
10044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
10045$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
10046  # Check whether --enable-icon_cache_update was given.
10047if test "${enable_icon_cache_update+set}" = set; then :
10048  enableval=$enable_icon_cache_update;
10049else
10050  enable_icon_cache_update="yes"
10051fi
10052
10053  if test "$enable_icon_cache_update" = "yes"; then
10054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10055$as_echo "not set" >&6; }
10056    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
10057set dummy gtk-update-icon-cache; ac_word=$2
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10059$as_echo_n "checking for $ac_word... " >&6; }
10060if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
10061  $as_echo_n "(cached) " >&6
10062else
10063  case $GTK_UPDATE_ICON_CACHE in
10064  [\\/]* | ?:[\\/]*)
10065  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
10066  ;;
10067  *)
10068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069for as_dir in $PATH
10070do
10071  IFS=$as_save_IFS
10072  test -z "$as_dir" && as_dir=.
10073    for ac_exec_ext in '' $ac_executable_extensions; do
10074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10075    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
10076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10077    break 2
10078  fi
10079done
10080  done
10081IFS=$as_save_IFS
10082
10083  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
10084  ;;
10085esac
10086fi
10087GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
10088if test -n "$GTK_UPDATE_ICON_CACHE"; then
10089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
10090$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
10091else
10092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093$as_echo "no" >&6; }
10094fi
10095
10096
10097    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
10098      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10099$as_echo "not found in PATH." >&6; }
10100    fi
10101  else
10102    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10103$as_echo "update disabled" >&6; }
10104  fi
10105
10106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
10107$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
10108  # Check whether --enable-desktop_database_update was given.
10109if test "${enable_desktop_database_update+set}" = set; then :
10110  enableval=$enable_desktop_database_update;
10111else
10112  enable_desktop_database_update="yes"
10113fi
10114
10115  if test "$enable_desktop_database_update" = "yes"; then
10116    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10117$as_echo "not set" >&6; }
10118    # Extract the first word of "update-desktop-database", so it can be a program name with args.
10119set dummy update-desktop-database; ac_word=$2
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121$as_echo_n "checking for $ac_word... " >&6; }
10122if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
10123  $as_echo_n "(cached) " >&6
10124else
10125  case $UPDATE_DESKTOP_DATABASE in
10126  [\\/]* | ?:[\\/]*)
10127  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
10128  ;;
10129  *)
10130  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131for as_dir in $PATH
10132do
10133  IFS=$as_save_IFS
10134  test -z "$as_dir" && as_dir=.
10135    for ac_exec_ext in '' $ac_executable_extensions; do
10136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10137    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
10138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10139    break 2
10140  fi
10141done
10142  done
10143IFS=$as_save_IFS
10144
10145  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
10146  ;;
10147esac
10148fi
10149UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
10150if test -n "$UPDATE_DESKTOP_DATABASE"; then
10151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
10152$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
10153else
10154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155$as_echo "no" >&6; }
10156fi
10157
10158
10159    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
10160      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10161$as_echo "not found in PATH." >&6; }
10162    fi
10163  else
10164    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10165$as_echo "update disabled" >&6; }
10166  fi
10167fi
10168
10169
10170
10171
10172
10173
10174
10175if test -z "$SKIP_MOTIF"; then
10176  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"
10177    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
10178
10179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
10180$as_echo_n "checking for location of Motif GUI includes... " >&6; }
10181  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
10182  GUI_INC_LOC=
10183  for try in $gui_includes; do
10184    if test -f "$try/Xm/Xm.h"; then
10185      GUI_INC_LOC=$try
10186    fi
10187  done
10188  if test -n "$GUI_INC_LOC"; then
10189    if test "$GUI_INC_LOC" = /usr/include; then
10190      GUI_INC_LOC=
10191      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10192$as_echo "in default path" >&6; }
10193    else
10194      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
10195$as_echo "$GUI_INC_LOC" >&6; }
10196    fi
10197  else
10198    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10199$as_echo "<not found>" >&6; }
10200    SKIP_MOTIF=YES
10201  fi
10202fi
10203
10204
10205if test -z "$SKIP_MOTIF"; then
10206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
10207$as_echo_n "checking --with-motif-lib argument... " >&6; }
10208
10209# Check whether --with-motif-lib was given.
10210if test "${with_motif_lib+set}" = set; then :
10211  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
10212fi
10213
10214
10215  if test -n "$MOTIF_LIBNAME"; then
10216    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
10217$as_echo "$MOTIF_LIBNAME" >&6; }
10218    GUI_LIB_LOC=
10219  else
10220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221$as_echo "no" >&6; }
10222
10223        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
10224
10225            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
10226$as_echo_n "checking for location of Motif GUI libs... " >&6; }
10227    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"
10228    GUI_LIB_LOC=
10229    for try in $gui_libs; do
10230      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
10231	if test -f "$libtry"; then
10232	  GUI_LIB_LOC=$try
10233	fi
10234      done
10235    done
10236    if test -n "$GUI_LIB_LOC"; then
10237            if test "$GUI_LIB_LOC" = /usr/lib \
10238	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
10239	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
10240	GUI_LIB_LOC=
10241	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10242$as_echo "in default path" >&6; }
10243      else
10244	if test -n "$GUI_LIB_LOC"; then
10245	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
10246$as_echo "$GUI_LIB_LOC" >&6; }
10247	  if test "`(uname) 2>/dev/null`" = SunOS &&
10248					 uname -r | grep '^5' >/dev/null; then
10249	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
10250	  fi
10251	fi
10252      fi
10253      MOTIF_LIBNAME=-lXm
10254    else
10255      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10256$as_echo "<not found>" >&6; }
10257      SKIP_MOTIF=YES
10258    fi
10259  fi
10260fi
10261
10262if test -z "$SKIP_MOTIF"; then
10263  SKIP_ATHENA=YES
10264  SKIP_NEXTAW=YES
10265  GUITYPE=MOTIF
10266
10267fi
10268
10269
10270GUI_X_LIBS=
10271
10272if test -z "$SKIP_ATHENA"; then
10273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
10274$as_echo_n "checking if Athena header files can be found... " >&6; }
10275  cflags_save=$CFLAGS
10276  CFLAGS="$CFLAGS $X_CFLAGS"
10277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278/* end confdefs.h.  */
10279
10280#include <X11/Intrinsic.h>
10281#include <X11/Xaw/Paned.h>
10282int
10283main ()
10284{
10285
10286  ;
10287  return 0;
10288}
10289_ACEOF
10290if ac_fn_c_try_compile "$LINENO"; then :
10291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10292$as_echo "yes" >&6; }
10293else
10294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295$as_echo "no" >&6; }; SKIP_ATHENA=YES
10296fi
10297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298  CFLAGS=$cflags_save
10299fi
10300
10301if test -z "$SKIP_ATHENA"; then
10302  GUITYPE=ATHENA
10303fi
10304
10305if test -z "$SKIP_NEXTAW"; then
10306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
10307$as_echo_n "checking if neXtaw header files can be found... " >&6; }
10308  cflags_save=$CFLAGS
10309  CFLAGS="$CFLAGS $X_CFLAGS"
10310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311/* end confdefs.h.  */
10312
10313#include <X11/Intrinsic.h>
10314#include <X11/neXtaw/Paned.h>
10315int
10316main ()
10317{
10318
10319  ;
10320  return 0;
10321}
10322_ACEOF
10323if ac_fn_c_try_compile "$LINENO"; then :
10324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10325$as_echo "yes" >&6; }
10326else
10327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328$as_echo "no" >&6; }; SKIP_NEXTAW=YES
10329fi
10330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331  CFLAGS=$cflags_save
10332fi
10333
10334if test -z "$SKIP_NEXTAW"; then
10335  GUITYPE=NEXTAW
10336fi
10337
10338if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10339      if test -n "$GUI_INC_LOC"; then
10340    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
10341  fi
10342  if test -n "$GUI_LIB_LOC"; then
10343    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
10344  fi
10345
10346    ldflags_save=$LDFLAGS
10347  LDFLAGS="$X_LIBS $LDFLAGS"
10348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10349$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10350if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10351  $as_echo_n "(cached) " >&6
10352else
10353  ac_check_lib_save_LIBS=$LIBS
10354LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356/* end confdefs.h.  */
10357
10358/* Override any GCC internal prototype to avoid an error.
10359   Use char because int might match the return type of a GCC
10360   builtin and then its argument prototype would still apply.  */
10361#ifdef __cplusplus
10362extern "C"
10363#endif
10364char XShapeQueryExtension ();
10365int
10366main ()
10367{
10368return XShapeQueryExtension ();
10369  ;
10370  return 0;
10371}
10372_ACEOF
10373if ac_fn_c_try_link "$LINENO"; then :
10374  ac_cv_lib_Xext_XShapeQueryExtension=yes
10375else
10376  ac_cv_lib_Xext_XShapeQueryExtension=no
10377fi
10378rm -f core conftest.err conftest.$ac_objext \
10379    conftest$ac_exeext conftest.$ac_ext
10380LIBS=$ac_check_lib_save_LIBS
10381fi
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10383$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10384if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10385  GUI_X_LIBS="-lXext"
10386fi
10387
10388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
10389$as_echo_n "checking for wslen in -lw... " >&6; }
10390if ${ac_cv_lib_w_wslen+:} false; then :
10391  $as_echo_n "(cached) " >&6
10392else
10393  ac_check_lib_save_LIBS=$LIBS
10394LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396/* end confdefs.h.  */
10397
10398/* Override any GCC internal prototype to avoid an error.
10399   Use char because int might match the return type of a GCC
10400   builtin and then its argument prototype would still apply.  */
10401#ifdef __cplusplus
10402extern "C"
10403#endif
10404char wslen ();
10405int
10406main ()
10407{
10408return wslen ();
10409  ;
10410  return 0;
10411}
10412_ACEOF
10413if ac_fn_c_try_link "$LINENO"; then :
10414  ac_cv_lib_w_wslen=yes
10415else
10416  ac_cv_lib_w_wslen=no
10417fi
10418rm -f core conftest.err conftest.$ac_objext \
10419    conftest$ac_exeext conftest.$ac_ext
10420LIBS=$ac_check_lib_save_LIBS
10421fi
10422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
10423$as_echo "$ac_cv_lib_w_wslen" >&6; }
10424if test "x$ac_cv_lib_w_wslen" = xyes; then :
10425  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
10426fi
10427
10428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10429$as_echo_n "checking for dlsym in -ldl... " >&6; }
10430if ${ac_cv_lib_dl_dlsym+:} false; then :
10431  $as_echo_n "(cached) " >&6
10432else
10433  ac_check_lib_save_LIBS=$LIBS
10434LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h.  */
10437
10438/* Override any GCC internal prototype to avoid an error.
10439   Use char because int might match the return type of a GCC
10440   builtin and then its argument prototype would still apply.  */
10441#ifdef __cplusplus
10442extern "C"
10443#endif
10444char dlsym ();
10445int
10446main ()
10447{
10448return dlsym ();
10449  ;
10450  return 0;
10451}
10452_ACEOF
10453if ac_fn_c_try_link "$LINENO"; then :
10454  ac_cv_lib_dl_dlsym=yes
10455else
10456  ac_cv_lib_dl_dlsym=no
10457fi
10458rm -f core conftest.err conftest.$ac_objext \
10459    conftest$ac_exeext conftest.$ac_ext
10460LIBS=$ac_check_lib_save_LIBS
10461fi
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10463$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10464if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10465  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
10466fi
10467
10468  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
10469$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
10470if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
10471  $as_echo_n "(cached) " >&6
10472else
10473  ac_check_lib_save_LIBS=$LIBS
10474LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476/* end confdefs.h.  */
10477
10478/* Override any GCC internal prototype to avoid an error.
10479   Use char because int might match the return type of a GCC
10480   builtin and then its argument prototype would still apply.  */
10481#ifdef __cplusplus
10482extern "C"
10483#endif
10484char XmuCreateStippledPixmap ();
10485int
10486main ()
10487{
10488return XmuCreateStippledPixmap ();
10489  ;
10490  return 0;
10491}
10492_ACEOF
10493if ac_fn_c_try_link "$LINENO"; then :
10494  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
10495else
10496  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
10497fi
10498rm -f core conftest.err conftest.$ac_objext \
10499    conftest$ac_exeext conftest.$ac_ext
10500LIBS=$ac_check_lib_save_LIBS
10501fi
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
10503$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
10504if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
10505  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
10506fi
10507
10508  if test -z "$SKIP_MOTIF"; then
10509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
10510$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
10511if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
10512  $as_echo_n "(cached) " >&6
10513else
10514  ac_check_lib_save_LIBS=$LIBS
10515LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517/* end confdefs.h.  */
10518
10519/* Override any GCC internal prototype to avoid an error.
10520   Use char because int might match the return type of a GCC
10521   builtin and then its argument prototype would still apply.  */
10522#ifdef __cplusplus
10523extern "C"
10524#endif
10525char XpEndJob ();
10526int
10527main ()
10528{
10529return XpEndJob ();
10530  ;
10531  return 0;
10532}
10533_ACEOF
10534if ac_fn_c_try_link "$LINENO"; then :
10535  ac_cv_lib_Xp_XpEndJob=yes
10536else
10537  ac_cv_lib_Xp_XpEndJob=no
10538fi
10539rm -f core conftest.err conftest.$ac_objext \
10540    conftest$ac_exeext conftest.$ac_ext
10541LIBS=$ac_check_lib_save_LIBS
10542fi
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
10544$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10545if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
10546  GUI_X_LIBS="-lXp $GUI_X_LIBS"
10547fi
10548
10549  fi
10550  LDFLAGS=$ldflags_save
10551
10552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
10553$as_echo_n "checking for extra X11 defines... " >&6; }
10554  NARROW_PROTO=
10555  rm -fr conftestdir
10556  if mkdir conftestdir; then
10557    cd conftestdir
10558    cat > Imakefile <<'EOF'
10559acfindx:
10560	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10561EOF
10562    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10563      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10564    fi
10565    cd ..
10566    rm -fr conftestdir
10567  fi
10568  if test -z "$NARROW_PROTO"; then
10569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570$as_echo "no" >&6; }
10571  else
10572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
10573$as_echo "$NARROW_PROTO" >&6; }
10574  fi
10575
10576fi
10577
10578if test "$enable_xsmp" = "yes"; then
10579  cppflags_save=$CPPFLAGS
10580  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10581  for ac_header in X11/SM/SMlib.h
10582do :
10583  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10584if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
10585  cat >>confdefs.h <<_ACEOF
10586#define HAVE_X11_SM_SMLIB_H 1
10587_ACEOF
10588
10589fi
10590
10591done
10592
10593  CPPFLAGS=$cppflags_save
10594fi
10595
10596
10597if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
10598    cppflags_save=$CPPFLAGS
10599  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10600  for ac_header in X11/xpm.h X11/Sunkeysym.h
10601do :
10602  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10603ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10605  cat >>confdefs.h <<_ACEOF
10606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10607_ACEOF
10608
10609fi
10610
10611done
10612
10613
10614    if test ! "$enable_xim" = "no"; then
10615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
10616$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10617    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618/* end confdefs.h.  */
10619#include <X11/Xlib.h>
10620_ACEOF
10621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10622  $EGREP "XIMText" >/dev/null 2>&1; then :
10623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10624$as_echo "yes" >&6; }
10625else
10626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10627$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10628fi
10629rm -f conftest*
10630
10631  fi
10632  CPPFLAGS=$cppflags_save
10633
10634    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10635		-a "x$GUITYPE" != "xNONE" ; then
10636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10637$as_echo "X GUI selected; xim has been enabled" >&6; }
10638    enable_xim="yes"
10639  fi
10640fi
10641
10642if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10643  cppflags_save=$CPPFLAGS
10644  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10646$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648/* end confdefs.h.  */
10649
10650#include <X11/Intrinsic.h>
10651#include <X11/Xmu/Editres.h>
10652int
10653main ()
10654{
10655int i; i = 0;
10656  ;
10657  return 0;
10658}
10659_ACEOF
10660if ac_fn_c_try_compile "$LINENO"; then :
10661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10662$as_echo "yes" >&6; }
10663		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10664
10665else
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667$as_echo "no" >&6; }
10668fi
10669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670  CPPFLAGS=$cppflags_save
10671fi
10672
10673if test -z "$SKIP_MOTIF"; then
10674  cppflags_save=$CPPFLAGS
10675  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10676  if test "$zOSUnix" = "yes"; then
10677	xmheader="Xm/Xm.h"
10678  else
10679	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10680	   Xm/UnhighlightT.h Xm/Notebook.h"
10681  fi
10682  for ac_header in $xmheader
10683do :
10684  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10685ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10686if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10687  cat >>confdefs.h <<_ACEOF
10688#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10689_ACEOF
10690
10691fi
10692
10693done
10694
10695
10696  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10697        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10698$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10699    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700/* end confdefs.h.  */
10701#include <Xm/XpmP.h>
10702int
10703main ()
10704{
10705XpmAttributes_21 attr;
10706  ;
10707  return 0;
10708}
10709_ACEOF
10710if ac_fn_c_try_compile "$LINENO"; then :
10711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10712$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10713
10714else
10715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10717
10718
10719fi
10720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10721  else
10722    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10723
10724  fi
10725  CPPFLAGS=$cppflags_save
10726fi
10727
10728if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10730$as_echo "no GUI selected; xim has been disabled" >&6; }
10731  enable_xim="no"
10732fi
10733if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10735$as_echo "no GUI selected; fontset has been disabled" >&6; }
10736  enable_fontset="no"
10737fi
10738if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10740$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10741  enable_fontset="no"
10742fi
10743
10744if test -z "$SKIP_PHOTON"; then
10745  GUITYPE=PHOTONGUI
10746fi
10747
10748
10749
10750
10751
10752
10753if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10754  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10755fi
10756
10757if test "$enable_xim" = "yes"; then
10758  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10759
10760fi
10761if test "$enable_fontset" = "yes"; then
10762  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10763
10764fi
10765
10766
10767
10768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10769$as_echo_n "checking for /proc link to executable... " >&6; }
10770if test -L "/proc/self/exe"; then
10771    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10772$as_echo "/proc/self/exe" >&6; }
10773  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10774
10775elif test -L "/proc/self/path/a.out"; then
10776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10777$as_echo "/proc/self/path/a.out" >&6; }
10778  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10779
10780elif test -L "/proc/curproc/file"; then
10781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10782$as_echo "/proc/curproc/file" >&6; }
10783  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10784
10785else
10786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787$as_echo "no" >&6; }
10788fi
10789
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10791$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10792case `uname` in
10793    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10794$as_echo "yes" >&6; }
10795                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10796$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10797                if test "x$with_x" = "xno" ; then
10798                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10799                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10800$as_echo "yes" >&6; }
10801                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10802
10803                else
10804                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10805$as_echo "no - using X11" >&6; }
10806                fi ;;
10807
10808    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809$as_echo "no" >&6; };;
10810esac
10811
10812if test "$enable_hangulinput" = "yes"; then
10813  if test "x$GUITYPE" = "xNONE"; then
10814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
10815$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10816    enable_hangulinput=no
10817  else
10818    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
10819
10820    HANGULIN_SRC=hangulin.c
10821
10822    HANGULIN_OBJ=objects/hangulin.o
10823
10824  fi
10825fi
10826
10827
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10829$as_echo_n "checking whether toupper is broken... " >&6; }
10830if ${vim_cv_toupper_broken+:} false; then :
10831  $as_echo_n "(cached) " >&6
10832else
10833
10834    if test "$cross_compiling" = yes; then :
10835
10836    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10837
10838else
10839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840/* end confdefs.h.  */
10841
10842#include "confdefs.h"
10843#include <ctype.h>
10844#if STDC_HEADERS
10845# include <stdlib.h>
10846# include <stddef.h>
10847#endif
10848main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10849
10850_ACEOF
10851if ac_fn_c_try_run "$LINENO"; then :
10852
10853    vim_cv_toupper_broken=yes
10854
10855else
10856
10857    vim_cv_toupper_broken=no
10858
10859fi
10860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10861  conftest.$ac_objext conftest.beam conftest.$ac_ext
10862fi
10863
10864fi
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10866$as_echo "$vim_cv_toupper_broken" >&6; }
10867
10868if test "x$vim_cv_toupper_broken" = "xyes" ; then
10869  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10870
10871fi
10872
10873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10874$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876/* end confdefs.h.  */
10877#include <stdio.h>
10878int
10879main ()
10880{
10881printf("(" __DATE__ " " __TIME__ ")");
10882  ;
10883  return 0;
10884}
10885_ACEOF
10886if ac_fn_c_try_compile "$LINENO"; then :
10887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10888$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10889
10890else
10891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892$as_echo "no" >&6; }
10893fi
10894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895
10896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10897$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899/* end confdefs.h.  */
10900#include <stdio.h>
10901int
10902main ()
10903{
10904int x __attribute__((unused));
10905  ;
10906  return 0;
10907}
10908_ACEOF
10909if ac_fn_c_try_compile "$LINENO"; then :
10910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10911$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10912
10913else
10914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915$as_echo "no" >&6; }
10916fi
10917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918
10919ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10920if test "x$ac_cv_header_elf_h" = xyes; then :
10921  HAS_ELF=1
10922fi
10923
10924
10925if test "$HAS_ELF" = 1; then
10926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10927$as_echo_n "checking for main in -lelf... " >&6; }
10928if ${ac_cv_lib_elf_main+:} false; then :
10929  $as_echo_n "(cached) " >&6
10930else
10931  ac_check_lib_save_LIBS=$LIBS
10932LIBS="-lelf  $LIBS"
10933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934/* end confdefs.h.  */
10935
10936
10937int
10938main ()
10939{
10940return main ();
10941  ;
10942  return 0;
10943}
10944_ACEOF
10945if ac_fn_c_try_link "$LINENO"; then :
10946  ac_cv_lib_elf_main=yes
10947else
10948  ac_cv_lib_elf_main=no
10949fi
10950rm -f core conftest.err conftest.$ac_objext \
10951    conftest$ac_exeext conftest.$ac_ext
10952LIBS=$ac_check_lib_save_LIBS
10953fi
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10955$as_echo "$ac_cv_lib_elf_main" >&6; }
10956if test "x$ac_cv_lib_elf_main" = xyes; then :
10957  cat >>confdefs.h <<_ACEOF
10958#define HAVE_LIBELF 1
10959_ACEOF
10960
10961  LIBS="-lelf $LIBS"
10962
10963fi
10964
10965fi
10966
10967ac_header_dirent=no
10968for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10969  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10971$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10972if eval \${$as_ac_Header+:} false; then :
10973  $as_echo_n "(cached) " >&6
10974else
10975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976/* end confdefs.h.  */
10977#include <sys/types.h>
10978#include <$ac_hdr>
10979
10980int
10981main ()
10982{
10983if ((DIR *) 0)
10984return 0;
10985  ;
10986  return 0;
10987}
10988_ACEOF
10989if ac_fn_c_try_compile "$LINENO"; then :
10990  eval "$as_ac_Header=yes"
10991else
10992  eval "$as_ac_Header=no"
10993fi
10994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10995fi
10996eval ac_res=\$$as_ac_Header
10997	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10998$as_echo "$ac_res" >&6; }
10999if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11000  cat >>confdefs.h <<_ACEOF
11001#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11002_ACEOF
11003
11004ac_header_dirent=$ac_hdr; break
11005fi
11006
11007done
11008# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11009if test $ac_header_dirent = dirent.h; then
11010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11011$as_echo_n "checking for library containing opendir... " >&6; }
11012if ${ac_cv_search_opendir+:} false; then :
11013  $as_echo_n "(cached) " >&6
11014else
11015  ac_func_search_save_LIBS=$LIBS
11016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017/* end confdefs.h.  */
11018
11019/* Override any GCC internal prototype to avoid an error.
11020   Use char because int might match the return type of a GCC
11021   builtin and then its argument prototype would still apply.  */
11022#ifdef __cplusplus
11023extern "C"
11024#endif
11025char opendir ();
11026int
11027main ()
11028{
11029return opendir ();
11030  ;
11031  return 0;
11032}
11033_ACEOF
11034for ac_lib in '' dir; do
11035  if test -z "$ac_lib"; then
11036    ac_res="none required"
11037  else
11038    ac_res=-l$ac_lib
11039    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11040  fi
11041  if ac_fn_c_try_link "$LINENO"; then :
11042  ac_cv_search_opendir=$ac_res
11043fi
11044rm -f core conftest.err conftest.$ac_objext \
11045    conftest$ac_exeext
11046  if ${ac_cv_search_opendir+:} false; then :
11047  break
11048fi
11049done
11050if ${ac_cv_search_opendir+:} false; then :
11051
11052else
11053  ac_cv_search_opendir=no
11054fi
11055rm conftest.$ac_ext
11056LIBS=$ac_func_search_save_LIBS
11057fi
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11059$as_echo "$ac_cv_search_opendir" >&6; }
11060ac_res=$ac_cv_search_opendir
11061if test "$ac_res" != no; then :
11062  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11063
11064fi
11065
11066else
11067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11068$as_echo_n "checking for library containing opendir... " >&6; }
11069if ${ac_cv_search_opendir+:} false; then :
11070  $as_echo_n "(cached) " >&6
11071else
11072  ac_func_search_save_LIBS=$LIBS
11073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074/* end confdefs.h.  */
11075
11076/* Override any GCC internal prototype to avoid an error.
11077   Use char because int might match the return type of a GCC
11078   builtin and then its argument prototype would still apply.  */
11079#ifdef __cplusplus
11080extern "C"
11081#endif
11082char opendir ();
11083int
11084main ()
11085{
11086return opendir ();
11087  ;
11088  return 0;
11089}
11090_ACEOF
11091for ac_lib in '' x; do
11092  if test -z "$ac_lib"; then
11093    ac_res="none required"
11094  else
11095    ac_res=-l$ac_lib
11096    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11097  fi
11098  if ac_fn_c_try_link "$LINENO"; then :
11099  ac_cv_search_opendir=$ac_res
11100fi
11101rm -f core conftest.err conftest.$ac_objext \
11102    conftest$ac_exeext
11103  if ${ac_cv_search_opendir+:} false; then :
11104  break
11105fi
11106done
11107if ${ac_cv_search_opendir+:} false; then :
11108
11109else
11110  ac_cv_search_opendir=no
11111fi
11112rm conftest.$ac_ext
11113LIBS=$ac_func_search_save_LIBS
11114fi
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11116$as_echo "$ac_cv_search_opendir" >&6; }
11117ac_res=$ac_cv_search_opendir
11118if test "$ac_res" != no; then :
11119  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11120
11121fi
11122
11123fi
11124
11125
11126if test $ac_cv_header_sys_wait_h = no; then
11127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
11128$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130/* end confdefs.h.  */
11131#include <sys/wait.h>
11132int
11133main ()
11134{
11135union wait xx, yy; xx = yy
11136  ;
11137  return 0;
11138}
11139_ACEOF
11140if ac_fn_c_try_compile "$LINENO"; then :
11141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11142$as_echo "yes" >&6; }
11143			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11144
11145			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
11146
11147else
11148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149$as_echo "no" >&6; }
11150fi
11151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152fi
11153
11154for ac_header in stdint.h stdlib.h string.h \
11155	sys/select.h sys/utsname.h termcap.h fcntl.h \
11156	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
11157	termio.h iconv.h inttypes.h langinfo.h math.h \
11158	unistd.h stropts.h errno.h sys/resource.h \
11159	sys/systeminfo.h locale.h sys/stream.h termios.h \
11160	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
11161	utime.h sys/param.h libintl.h libgen.h \
11162	util/debug.h util/msg18n.h frame.h sys/acl.h \
11163	sys/access.h sys/sysinfo.h wchar.h wctype.h
11164do :
11165  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11166ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11167if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11168  cat >>confdefs.h <<_ACEOF
11169#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11170_ACEOF
11171
11172fi
11173
11174done
11175
11176
11177for ac_header in sys/ptem.h
11178do :
11179  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
11180#  include <sys/stream.h>
11181#endif
11182"
11183if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
11184  cat >>confdefs.h <<_ACEOF
11185#define HAVE_SYS_PTEM_H 1
11186_ACEOF
11187
11188fi
11189
11190done
11191
11192
11193for ac_header in sys/sysctl.h
11194do :
11195  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
11196#  include <sys/param.h>
11197#endif
11198"
11199if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
11200  cat >>confdefs.h <<_ACEOF
11201#define HAVE_SYS_SYSCTL_H 1
11202_ACEOF
11203
11204fi
11205
11206done
11207
11208
11209
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
11211$as_echo_n "checking for pthread_np.h... " >&6; }
11212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213/* end confdefs.h.  */
11214
11215#include <pthread.h>
11216#include <pthread_np.h>
11217int
11218main ()
11219{
11220int i; i = 0;
11221  ;
11222  return 0;
11223}
11224_ACEOF
11225if ac_fn_c_try_compile "$LINENO"; then :
11226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11227$as_echo "yes" >&6; }
11228		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
11229
11230else
11231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232$as_echo "no" >&6; }
11233fi
11234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235
11236for ac_header in strings.h
11237do :
11238  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
11239if test "x$ac_cv_header_strings_h" = xyes; then :
11240  cat >>confdefs.h <<_ACEOF
11241#define HAVE_STRINGS_H 1
11242_ACEOF
11243
11244fi
11245
11246done
11247
11248if test "x$MACOS_X" = "xyes"; then
11249    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11250
11251else
11252
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
11254$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11255cppflags_save=$CPPFLAGS
11256CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258/* end confdefs.h.  */
11259
11260#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11261# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11262			/* but don't do it on AIX 5.1 (Uribarri) */
11263#endif
11264#ifdef HAVE_XM_XM_H
11265# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11266#endif
11267#ifdef HAVE_STRING_H
11268# include <string.h>
11269#endif
11270#if defined(HAVE_STRINGS_H)
11271# include <strings.h>
11272#endif
11273
11274int
11275main ()
11276{
11277int i; i = 0;
11278  ;
11279  return 0;
11280}
11281_ACEOF
11282if ac_fn_c_try_compile "$LINENO"; then :
11283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11284$as_echo "yes" >&6; }
11285else
11286  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11287
11288		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289$as_echo "no" >&6; }
11290fi
11291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292CPPFLAGS=$cppflags_save
11293fi
11294
11295if test $ac_cv_c_compiler_gnu = yes; then
11296    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11297$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11298if ${ac_cv_prog_gcc_traditional+:} false; then :
11299  $as_echo_n "(cached) " >&6
11300else
11301    ac_pattern="Autoconf.*'x'"
11302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h.  */
11304#include <sgtty.h>
11305Autoconf TIOCGETP
11306_ACEOF
11307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11308  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11309  ac_cv_prog_gcc_traditional=yes
11310else
11311  ac_cv_prog_gcc_traditional=no
11312fi
11313rm -f conftest*
11314
11315
11316  if test $ac_cv_prog_gcc_traditional = no; then
11317    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318/* end confdefs.h.  */
11319#include <termio.h>
11320Autoconf TCGETA
11321_ACEOF
11322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11323  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11324  ac_cv_prog_gcc_traditional=yes
11325fi
11326rm -f conftest*
11327
11328  fi
11329fi
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11331$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11332  if test $ac_cv_prog_gcc_traditional = yes; then
11333    CC="$CC -traditional"
11334  fi
11335fi
11336
11337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11338$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11339if ${ac_cv_c_const+:} false; then :
11340  $as_echo_n "(cached) " >&6
11341else
11342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343/* end confdefs.h.  */
11344
11345int
11346main ()
11347{
11348
11349#ifndef __cplusplus
11350  /* Ultrix mips cc rejects this sort of thing.  */
11351  typedef int charset[2];
11352  const charset cs = { 0, 0 };
11353  /* SunOS 4.1.1 cc rejects this.  */
11354  char const *const *pcpcc;
11355  char **ppc;
11356  /* NEC SVR4.0.2 mips cc rejects this.  */
11357  struct point {int x, y;};
11358  static struct point const zero = {0,0};
11359  /* AIX XL C 1.02.0.0 rejects this.
11360     It does not let you subtract one const X* pointer from another in
11361     an arm of an if-expression whose if-part is not a constant
11362     expression */
11363  const char *g = "string";
11364  pcpcc = &g + (g ? g-g : 0);
11365  /* HPUX 7.0 cc rejects these. */
11366  ++pcpcc;
11367  ppc = (char**) pcpcc;
11368  pcpcc = (char const *const *) ppc;
11369  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11370    char tx;
11371    char *t = &tx;
11372    char const *s = 0 ? (char *) 0 : (char const *) 0;
11373
11374    *t++ = 0;
11375    if (s) return 0;
11376  }
11377  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11378    int x[] = {25, 17};
11379    const int *foo = &x[0];
11380    ++foo;
11381  }
11382  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11383    typedef const int *iptr;
11384    iptr p = 0;
11385    ++p;
11386  }
11387  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11388       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11389    struct s { int j; const int *ap[3]; } bx;
11390    struct s *b = &bx; b->j = 5;
11391  }
11392  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11393    const int foo = 10;
11394    if (!foo) return 0;
11395  }
11396  return !cs[0] && !zero.x;
11397#endif
11398
11399  ;
11400  return 0;
11401}
11402_ACEOF
11403if ac_fn_c_try_compile "$LINENO"; then :
11404  ac_cv_c_const=yes
11405else
11406  ac_cv_c_const=no
11407fi
11408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409fi
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11411$as_echo "$ac_cv_c_const" >&6; }
11412if test $ac_cv_c_const = no; then
11413
11414$as_echo "#define const /**/" >>confdefs.h
11415
11416fi
11417
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11419$as_echo_n "checking for working volatile... " >&6; }
11420if ${ac_cv_c_volatile+:} false; then :
11421  $as_echo_n "(cached) " >&6
11422else
11423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424/* end confdefs.h.  */
11425
11426int
11427main ()
11428{
11429
11430volatile int x;
11431int * volatile y = (int *) 0;
11432return !x && !y;
11433  ;
11434  return 0;
11435}
11436_ACEOF
11437if ac_fn_c_try_compile "$LINENO"; then :
11438  ac_cv_c_volatile=yes
11439else
11440  ac_cv_c_volatile=no
11441fi
11442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443fi
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11445$as_echo "$ac_cv_c_volatile" >&6; }
11446if test $ac_cv_c_volatile = no; then
11447
11448$as_echo "#define volatile /**/" >>confdefs.h
11449
11450fi
11451
11452ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11453if test "x$ac_cv_type_mode_t" = xyes; then :
11454
11455else
11456
11457cat >>confdefs.h <<_ACEOF
11458#define mode_t int
11459_ACEOF
11460
11461fi
11462
11463ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11464if test "x$ac_cv_type_off_t" = xyes; then :
11465
11466else
11467
11468cat >>confdefs.h <<_ACEOF
11469#define off_t long int
11470_ACEOF
11471
11472fi
11473
11474ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11475if test "x$ac_cv_type_pid_t" = xyes; then :
11476
11477else
11478
11479cat >>confdefs.h <<_ACEOF
11480#define pid_t int
11481_ACEOF
11482
11483fi
11484
11485ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11486if test "x$ac_cv_type_size_t" = xyes; then :
11487
11488else
11489
11490cat >>confdefs.h <<_ACEOF
11491#define size_t unsigned int
11492_ACEOF
11493
11494fi
11495
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11497$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11498if ${ac_cv_type_uid_t+:} false; then :
11499  $as_echo_n "(cached) " >&6
11500else
11501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502/* end confdefs.h.  */
11503#include <sys/types.h>
11504
11505_ACEOF
11506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11507  $EGREP "uid_t" >/dev/null 2>&1; then :
11508  ac_cv_type_uid_t=yes
11509else
11510  ac_cv_type_uid_t=no
11511fi
11512rm -f conftest*
11513
11514fi
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11516$as_echo "$ac_cv_type_uid_t" >&6; }
11517if test $ac_cv_type_uid_t = no; then
11518
11519$as_echo "#define uid_t int" >>confdefs.h
11520
11521
11522$as_echo "#define gid_t int" >>confdefs.h
11523
11524fi
11525
11526ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11527case $ac_cv_c_uint32_t in #(
11528  no|yes) ;; #(
11529  *)
11530
11531$as_echo "#define _UINT32_T 1" >>confdefs.h
11532
11533
11534cat >>confdefs.h <<_ACEOF
11535#define uint32_t $ac_cv_c_uint32_t
11536_ACEOF
11537;;
11538  esac
11539
11540
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11542$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11543if ${ac_cv_header_time+:} false; then :
11544  $as_echo_n "(cached) " >&6
11545else
11546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547/* end confdefs.h.  */
11548#include <sys/types.h>
11549#include <sys/time.h>
11550#include <time.h>
11551
11552int
11553main ()
11554{
11555if ((struct tm *) 0)
11556return 0;
11557  ;
11558  return 0;
11559}
11560_ACEOF
11561if ac_fn_c_try_compile "$LINENO"; then :
11562  ac_cv_header_time=yes
11563else
11564  ac_cv_header_time=no
11565fi
11566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567fi
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11569$as_echo "$ac_cv_header_time" >&6; }
11570if test $ac_cv_header_time = yes; then
11571
11572$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11573
11574fi
11575
11576ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
11577if test "x$ac_cv_type_ino_t" = xyes; then :
11578
11579else
11580
11581cat >>confdefs.h <<_ACEOF
11582#define ino_t long
11583_ACEOF
11584
11585fi
11586
11587ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
11588if test "x$ac_cv_type_dev_t" = xyes; then :
11589
11590else
11591
11592cat >>confdefs.h <<_ACEOF
11593#define dev_t unsigned
11594_ACEOF
11595
11596fi
11597
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11599$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11600if ${ac_cv_c_bigendian+:} false; then :
11601  $as_echo_n "(cached) " >&6
11602else
11603  ac_cv_c_bigendian=unknown
11604    # See if we're dealing with a universal compiler.
11605    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606/* end confdefs.h.  */
11607#ifndef __APPLE_CC__
11608	       not a universal capable compiler
11609	     #endif
11610	     typedef int dummy;
11611
11612_ACEOF
11613if ac_fn_c_try_compile "$LINENO"; then :
11614
11615	# Check for potential -arch flags.  It is not universal unless
11616	# there are at least two -arch flags with different values.
11617	ac_arch=
11618	ac_prev=
11619	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11620	 if test -n "$ac_prev"; then
11621	   case $ac_word in
11622	     i?86 | x86_64 | ppc | ppc64)
11623	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11624		 ac_arch=$ac_word
11625	       else
11626		 ac_cv_c_bigendian=universal
11627		 break
11628	       fi
11629	       ;;
11630	   esac
11631	   ac_prev=
11632	 elif test "x$ac_word" = "x-arch"; then
11633	   ac_prev=arch
11634	 fi
11635       done
11636fi
11637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638    if test $ac_cv_c_bigendian = unknown; then
11639      # See if sys/param.h defines the BYTE_ORDER macro.
11640      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641/* end confdefs.h.  */
11642#include <sys/types.h>
11643	     #include <sys/param.h>
11644
11645int
11646main ()
11647{
11648#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11649		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11650		     && LITTLE_ENDIAN)
11651	      bogus endian macros
11652	     #endif
11653
11654  ;
11655  return 0;
11656}
11657_ACEOF
11658if ac_fn_c_try_compile "$LINENO"; then :
11659  # It does; now see whether it defined to BIG_ENDIAN or not.
11660	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661/* end confdefs.h.  */
11662#include <sys/types.h>
11663		#include <sys/param.h>
11664
11665int
11666main ()
11667{
11668#if BYTE_ORDER != BIG_ENDIAN
11669		 not big endian
11670		#endif
11671
11672  ;
11673  return 0;
11674}
11675_ACEOF
11676if ac_fn_c_try_compile "$LINENO"; then :
11677  ac_cv_c_bigendian=yes
11678else
11679  ac_cv_c_bigendian=no
11680fi
11681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682fi
11683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684    fi
11685    if test $ac_cv_c_bigendian = unknown; then
11686      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11687      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688/* end confdefs.h.  */
11689#include <limits.h>
11690
11691int
11692main ()
11693{
11694#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11695	      bogus endian macros
11696	     #endif
11697
11698  ;
11699  return 0;
11700}
11701_ACEOF
11702if ac_fn_c_try_compile "$LINENO"; then :
11703  # It does; now see whether it defined to _BIG_ENDIAN or not.
11704	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705/* end confdefs.h.  */
11706#include <limits.h>
11707
11708int
11709main ()
11710{
11711#ifndef _BIG_ENDIAN
11712		 not big endian
11713		#endif
11714
11715  ;
11716  return 0;
11717}
11718_ACEOF
11719if ac_fn_c_try_compile "$LINENO"; then :
11720  ac_cv_c_bigendian=yes
11721else
11722  ac_cv_c_bigendian=no
11723fi
11724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725fi
11726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11727    fi
11728    if test $ac_cv_c_bigendian = unknown; then
11729      # Compile a test program.
11730      if test "$cross_compiling" = yes; then :
11731  # Try to guess by grepping values from an object file.
11732	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733/* end confdefs.h.  */
11734short int ascii_mm[] =
11735		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11736		short int ascii_ii[] =
11737		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11738		int use_ascii (int i) {
11739		  return ascii_mm[i] + ascii_ii[i];
11740		}
11741		short int ebcdic_ii[] =
11742		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11743		short int ebcdic_mm[] =
11744		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11745		int use_ebcdic (int i) {
11746		  return ebcdic_mm[i] + ebcdic_ii[i];
11747		}
11748		extern int foo;
11749
11750int
11751main ()
11752{
11753return use_ascii (foo) == use_ebcdic (foo);
11754  ;
11755  return 0;
11756}
11757_ACEOF
11758if ac_fn_c_try_compile "$LINENO"; then :
11759  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11760	      ac_cv_c_bigendian=yes
11761	    fi
11762	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11763	      if test "$ac_cv_c_bigendian" = unknown; then
11764		ac_cv_c_bigendian=no
11765	      else
11766		# finding both strings is unlikely to happen, but who knows?
11767		ac_cv_c_bigendian=unknown
11768	      fi
11769	    fi
11770fi
11771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772else
11773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774/* end confdefs.h.  */
11775$ac_includes_default
11776int
11777main ()
11778{
11779
11780	     /* Are we little or big endian?  From Harbison&Steele.  */
11781	     union
11782	     {
11783	       long int l;
11784	       char c[sizeof (long int)];
11785	     } u;
11786	     u.l = 1;
11787	     return u.c[sizeof (long int) - 1] == 1;
11788
11789  ;
11790  return 0;
11791}
11792_ACEOF
11793if ac_fn_c_try_run "$LINENO"; then :
11794  ac_cv_c_bigendian=no
11795else
11796  ac_cv_c_bigendian=yes
11797fi
11798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11799  conftest.$ac_objext conftest.beam conftest.$ac_ext
11800fi
11801
11802    fi
11803fi
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11805$as_echo "$ac_cv_c_bigendian" >&6; }
11806 case $ac_cv_c_bigendian in #(
11807   yes)
11808     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11809;; #(
11810   no)
11811      ;; #(
11812   universal)
11813
11814$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11815
11816     ;; #(
11817   *)
11818     as_fn_error $? "unknown endianness
11819 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11820 esac
11821
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11823$as_echo_n "checking for inline... " >&6; }
11824if ${ac_cv_c_inline+:} false; then :
11825  $as_echo_n "(cached) " >&6
11826else
11827  ac_cv_c_inline=no
11828for ac_kw in inline __inline__ __inline; do
11829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830/* end confdefs.h.  */
11831#ifndef __cplusplus
11832typedef int foo_t;
11833static $ac_kw foo_t static_foo () {return 0; }
11834$ac_kw foo_t foo () {return 0; }
11835#endif
11836
11837_ACEOF
11838if ac_fn_c_try_compile "$LINENO"; then :
11839  ac_cv_c_inline=$ac_kw
11840fi
11841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11842  test "$ac_cv_c_inline" != no && break
11843done
11844
11845fi
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11847$as_echo "$ac_cv_c_inline" >&6; }
11848
11849case $ac_cv_c_inline in
11850  inline | yes) ;;
11851  *)
11852    case $ac_cv_c_inline in
11853      no) ac_val=;;
11854      *) ac_val=$ac_cv_c_inline;;
11855    esac
11856    cat >>confdefs.h <<_ACEOF
11857#ifndef __cplusplus
11858#define inline $ac_val
11859#endif
11860_ACEOF
11861    ;;
11862esac
11863
11864
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11866$as_echo_n "checking for rlim_t... " >&6; }
11867if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11869$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11870else
11871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872/* end confdefs.h.  */
11873
11874#include <sys/types.h>
11875#if STDC_HEADERS
11876# include <stdlib.h>
11877# include <stddef.h>
11878#endif
11879#ifdef HAVE_SYS_RESOURCE_H
11880# include <sys/resource.h>
11881#endif
11882
11883_ACEOF
11884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11885  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11886  ac_cv_type_rlim_t=yes
11887else
11888  ac_cv_type_rlim_t=no
11889fi
11890rm -f conftest*
11891
11892	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11893$as_echo "$ac_cv_type_rlim_t" >&6; }
11894fi
11895if test $ac_cv_type_rlim_t = no; then
11896  cat >> confdefs.h <<\EOF
11897#define rlim_t unsigned long
11898EOF
11899fi
11900
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11902$as_echo_n "checking for stack_t... " >&6; }
11903if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11905$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11906else
11907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908/* end confdefs.h.  */
11909
11910#include <sys/types.h>
11911#if STDC_HEADERS
11912# include <stdlib.h>
11913# include <stddef.h>
11914#endif
11915#include <signal.h>
11916
11917_ACEOF
11918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11919  $EGREP "stack_t" >/dev/null 2>&1; then :
11920  ac_cv_type_stack_t=yes
11921else
11922  ac_cv_type_stack_t=no
11923fi
11924rm -f conftest*
11925
11926	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11927$as_echo "$ac_cv_type_stack_t" >&6; }
11928fi
11929if test $ac_cv_type_stack_t = no; then
11930  cat >> confdefs.h <<\EOF
11931#define stack_t struct sigaltstack
11932EOF
11933fi
11934
11935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11936$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938/* end confdefs.h.  */
11939
11940#include <sys/types.h>
11941#if STDC_HEADERS
11942# include <stdlib.h>
11943# include <stddef.h>
11944#endif
11945#include <signal.h>
11946#include "confdefs.h"
11947
11948int
11949main ()
11950{
11951stack_t sigstk; sigstk.ss_base = 0;
11952  ;
11953  return 0;
11954}
11955_ACEOF
11956if ac_fn_c_try_compile "$LINENO"; then :
11957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11958$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11959
11960else
11961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962$as_echo "no" >&6; }
11963fi
11964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11965
11966olibs="$LIBS"
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11968$as_echo_n "checking --with-tlib argument... " >&6; }
11969
11970# Check whether --with-tlib was given.
11971if test "${with_tlib+set}" = set; then :
11972  withval=$with_tlib;
11973fi
11974
11975if test -n "$with_tlib"; then
11976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11977$as_echo "$with_tlib" >&6; }
11978  LIBS="$LIBS -l$with_tlib"
11979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11980$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982/* end confdefs.h.  */
11983
11984int
11985main ()
11986{
11987
11988  ;
11989  return 0;
11990}
11991_ACEOF
11992if ac_fn_c_try_link "$LINENO"; then :
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
11994$as_echo "OK" >&6; }
11995else
11996  as_fn_error $? "FAILED" "$LINENO" 5
11997fi
11998rm -f core conftest.err conftest.$ac_objext \
11999    conftest$ac_exeext conftest.$ac_ext
12000    olibs="$LIBS"
12001else
12002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
12003$as_echo "empty: automatic terminal library selection" >&6; }
12004                case "`uname -s 2>/dev/null`" in
12005	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
12006	*)	tlibs="tinfo ncurses termlib termcap curses";;
12007  esac
12008  for libname in $tlibs; do
12009    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
12011$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12012if eval \${$as_ac_Lib+:} false; then :
12013  $as_echo_n "(cached) " >&6
12014else
12015  ac_check_lib_save_LIBS=$LIBS
12016LIBS="-l${libname}  $LIBS"
12017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018/* end confdefs.h.  */
12019
12020/* Override any GCC internal prototype to avoid an error.
12021   Use char because int might match the return type of a GCC
12022   builtin and then its argument prototype would still apply.  */
12023#ifdef __cplusplus
12024extern "C"
12025#endif
12026char tgetent ();
12027int
12028main ()
12029{
12030return tgetent ();
12031  ;
12032  return 0;
12033}
12034_ACEOF
12035if ac_fn_c_try_link "$LINENO"; then :
12036  eval "$as_ac_Lib=yes"
12037else
12038  eval "$as_ac_Lib=no"
12039fi
12040rm -f core conftest.err conftest.$ac_objext \
12041    conftest$ac_exeext conftest.$ac_ext
12042LIBS=$ac_check_lib_save_LIBS
12043fi
12044eval ac_res=\$$as_ac_Lib
12045	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12046$as_echo "$ac_res" >&6; }
12047if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12048  cat >>confdefs.h <<_ACEOF
12049#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12050_ACEOF
12051
12052  LIBS="-l${libname} $LIBS"
12053
12054fi
12055
12056    if test "x$olibs" != "x$LIBS"; then
12057                        if test "$cross_compiling" = yes; then :
12058  res="FAIL"
12059else
12060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061/* end confdefs.h.  */
12062
12063#ifdef HAVE_TERMCAP_H
12064# include <termcap.h>
12065#endif
12066#if STDC_HEADERS
12067# include <stdlib.h>
12068# include <stddef.h>
12069#endif
12070main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12071_ACEOF
12072if ac_fn_c_try_run "$LINENO"; then :
12073  res="OK"
12074else
12075  res="FAIL"
12076fi
12077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12078  conftest.$ac_objext conftest.beam conftest.$ac_ext
12079fi
12080
12081      if test "$res" = "OK"; then
12082	break
12083      fi
12084      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
12085$as_echo "$libname library is not usable" >&6; }
12086      LIBS="$olibs"
12087    fi
12088  done
12089  if test "x$olibs" = "x$LIBS"; then
12090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
12091$as_echo "no terminal library found" >&6; }
12092  fi
12093fi
12094
12095if test "x$olibs" = "x$LIBS"; then
12096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
12097$as_echo_n "checking for tgetent()... " >&6; }
12098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099/* end confdefs.h.  */
12100
12101int
12102main ()
12103{
12104char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12105  ;
12106  return 0;
12107}
12108_ACEOF
12109if ac_fn_c_try_link "$LINENO"; then :
12110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12111$as_echo "yes" >&6; }
12112else
12113  as_fn_error $? "NOT FOUND!
12114      You need to install a terminal library; for example ncurses.
12115      Or specify the name of the library with --with-tlib." "$LINENO" 5
12116fi
12117rm -f core conftest.err conftest.$ac_objext \
12118    conftest$ac_exeext conftest.$ac_ext
12119fi
12120
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
12122$as_echo_n "checking whether we talk terminfo... " >&6; }
12123if ${vim_cv_terminfo+:} false; then :
12124  $as_echo_n "(cached) " >&6
12125else
12126
12127    if test "$cross_compiling" = yes; then :
12128
12129      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
12130
12131else
12132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133/* end confdefs.h.  */
12134
12135#include "confdefs.h"
12136#ifdef HAVE_TERMCAP_H
12137# include <termcap.h>
12138#endif
12139#ifdef HAVE_STRING_H
12140# include <string.h>
12141#endif
12142#if STDC_HEADERS
12143# include <stdlib.h>
12144# include <stddef.h>
12145#endif
12146main()
12147{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12148
12149_ACEOF
12150if ac_fn_c_try_run "$LINENO"; then :
12151
12152      vim_cv_terminfo=no
12153
12154else
12155
12156      vim_cv_terminfo=yes
12157
12158fi
12159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12160  conftest.$ac_objext conftest.beam conftest.$ac_ext
12161fi
12162
12163
12164fi
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
12166$as_echo "$vim_cv_terminfo" >&6; }
12167
12168if test "x$vim_cv_terminfo" = "xyes" ; then
12169  $as_echo "#define TERMINFO 1" >>confdefs.h
12170
12171fi
12172
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
12174$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12175if ${vim_cv_tgetent+:} false; then :
12176  $as_echo_n "(cached) " >&6
12177else
12178
12179    if test "$cross_compiling" = yes; then :
12180
12181      as_fn_error $? "failed to compile test program." "$LINENO" 5
12182
12183else
12184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185/* end confdefs.h.  */
12186
12187#include "confdefs.h"
12188#ifdef HAVE_TERMCAP_H
12189# include <termcap.h>
12190#endif
12191#if STDC_HEADERS
12192# include <stdlib.h>
12193# include <stddef.h>
12194#endif
12195main()
12196{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12197
12198_ACEOF
12199if ac_fn_c_try_run "$LINENO"; then :
12200
12201      vim_cv_tgetent=zero
12202
12203else
12204
12205      vim_cv_tgetent=non-zero
12206
12207fi
12208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12209  conftest.$ac_objext conftest.beam conftest.$ac_ext
12210fi
12211
12212
12213fi
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5
12215$as_echo "$vim_cv_tgetent" >&6; }
12216
12217if test "x$vim_cv_tgetent" = "xzero" ; then
12218  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
12219
12220fi
12221
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
12223$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225/* end confdefs.h.  */
12226
12227#ifdef HAVE_TERMCAP_H
12228# include <termcap.h>
12229#endif
12230
12231int
12232main ()
12233{
12234ospeed = 20000
12235  ;
12236  return 0;
12237}
12238_ACEOF
12239if ac_fn_c_try_link "$LINENO"; then :
12240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12241$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
12242
12243else
12244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245$as_echo "no" >&6; }
12246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
12247$as_echo_n "checking whether ospeed can be extern... " >&6; }
12248	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249/* end confdefs.h.  */
12250
12251#ifdef HAVE_TERMCAP_H
12252# include <termcap.h>
12253#endif
12254extern short ospeed;
12255
12256int
12257main ()
12258{
12259ospeed = 20000
12260  ;
12261  return 0;
12262}
12263_ACEOF
12264if ac_fn_c_try_link "$LINENO"; then :
12265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
12267
12268else
12269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270$as_echo "no" >&6; }
12271fi
12272rm -f core conftest.err conftest.$ac_objext \
12273    conftest$ac_exeext conftest.$ac_ext
12274
12275fi
12276rm -f core conftest.err conftest.$ac_objext \
12277    conftest$ac_exeext conftest.$ac_ext
12278
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
12280$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h.  */
12283
12284#ifdef HAVE_TERMCAP_H
12285# include <termcap.h>
12286#endif
12287
12288int
12289main ()
12290{
12291if (UP == 0 && BC == 0) PC = 1
12292  ;
12293  return 0;
12294}
12295_ACEOF
12296if ac_fn_c_try_link "$LINENO"; then :
12297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12298$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
12299
12300else
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
12303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
12304$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
12305	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306/* end confdefs.h.  */
12307
12308#ifdef HAVE_TERMCAP_H
12309# include <termcap.h>
12310#endif
12311extern char *UP, *BC, PC;
12312
12313int
12314main ()
12315{
12316if (UP == 0 && BC == 0) PC = 1
12317  ;
12318  return 0;
12319}
12320_ACEOF
12321if ac_fn_c_try_link "$LINENO"; then :
12322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12323$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
12324
12325else
12326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327$as_echo "no" >&6; }
12328fi
12329rm -f core conftest.err conftest.$ac_objext \
12330    conftest$ac_exeext conftest.$ac_ext
12331
12332fi
12333rm -f core conftest.err conftest.$ac_objext \
12334    conftest$ac_exeext conftest.$ac_ext
12335
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
12337$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
12338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339/* end confdefs.h.  */
12340
12341#ifdef HAVE_TERMCAP_H
12342# include <termcap.h>
12343#endif
12344
12345int
12346main ()
12347{
12348extern int xx(); tputs("test", 1, (outfuntype)xx)
12349  ;
12350  return 0;
12351}
12352_ACEOF
12353if ac_fn_c_try_compile "$LINENO"; then :
12354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12355$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
12356
12357else
12358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359$as_echo "no" >&6; }
12360fi
12361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12364$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366/* end confdefs.h.  */
12367
12368#include <sys/types.h>
12369#include <sys/time.h>
12370#include <sys/select.h>
12371int
12372main ()
12373{
12374
12375  ;
12376  return 0;
12377}
12378_ACEOF
12379if ac_fn_c_try_compile "$LINENO"; then :
12380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12381$as_echo "yes" >&6; }
12382			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12383
12384else
12385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386$as_echo "no" >&6; }
12387fi
12388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389
12390
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12392$as_echo_n "checking for /dev/ptc... " >&6; }
12393if test -r /dev/ptc; then
12394  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
12395
12396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12397$as_echo "yes" >&6; }
12398else
12399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400$as_echo "no" >&6; }
12401fi
12402
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
12404$as_echo_n "checking for SVR4 ptys... " >&6; }
12405if test -c /dev/ptmx ; then
12406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407/* end confdefs.h.  */
12408
12409int
12410main ()
12411{
12412ptsname(0);grantpt(0);unlockpt(0);
12413  ;
12414  return 0;
12415}
12416_ACEOF
12417if ac_fn_c_try_link "$LINENO"; then :
12418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12419$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
12420
12421else
12422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
12424fi
12425rm -f core conftest.err conftest.$ac_objext \
12426    conftest$ac_exeext conftest.$ac_ext
12427else
12428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429$as_echo "no" >&6; }
12430fi
12431
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
12433$as_echo_n "checking for ptyranges... " >&6; }
12434if test -d /dev/ptym ; then
12435  pdir='/dev/ptym'
12436else
12437  pdir='/dev'
12438fi
12439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440/* end confdefs.h.  */
12441#ifdef M_UNIX
12442   yes;
12443#endif
12444
12445_ACEOF
12446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12447  $EGREP "yes" >/dev/null 2>&1; then :
12448  ptys=`echo /dev/ptyp??`
12449else
12450  ptys=`echo $pdir/pty??`
12451fi
12452rm -f conftest*
12453
12454if test "$ptys" != "$pdir/pty??" ; then
12455  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12456  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12457  cat >>confdefs.h <<_ACEOF
12458#define PTYRANGE0 "$p0"
12459_ACEOF
12460
12461  cat >>confdefs.h <<_ACEOF
12462#define PTYRANGE1 "$p1"
12463_ACEOF
12464
12465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
12466$as_echo "$p0 / $p1" >&6; }
12467else
12468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
12469$as_echo "don't know" >&6; }
12470fi
12471
12472rm -f conftest_grp
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
12474$as_echo_n "checking default tty permissions/group... " >&6; }
12475if ${vim_cv_tty_group+:} false; then :
12476  $as_echo_n "(cached) " >&6
12477else
12478
12479    if test "$cross_compiling" = yes; then :
12480
12481      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
12482
12483else
12484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485/* end confdefs.h.  */
12486
12487#include "confdefs.h"
12488#include <sys/types.h>
12489#if STDC_HEADERS
12490# include <stdlib.h>
12491# include <stddef.h>
12492#endif
12493#ifdef HAVE_UNISTD_H
12494#include <unistd.h>
12495#endif
12496#include <sys/stat.h>
12497#include <stdio.h>
12498main()
12499{
12500  struct stat sb;
12501  char *x,*ttyname();
12502  int om, m;
12503  FILE *fp;
12504
12505  if (!(x = ttyname(0))) exit(1);
12506  if (stat(x, &sb)) exit(1);
12507  om = sb.st_mode;
12508  if (om & 002) exit(0);
12509  m = system("mesg y");
12510  if (m == -1 || m == 127) exit(1);
12511  if (stat(x, &sb)) exit(1);
12512  m = sb.st_mode;
12513  if (chmod(x, om)) exit(1);
12514  if (m & 002) exit(0);
12515  if (sb.st_gid == getgid()) exit(1);
12516  if (!(fp=fopen("conftest_grp", "w")))
12517    exit(1);
12518  fprintf(fp, "%d\n", sb.st_gid);
12519  fclose(fp);
12520  exit(0);
12521}
12522
12523_ACEOF
12524if ac_fn_c_try_run "$LINENO"; then :
12525
12526      if test -f conftest_grp; then
12527	vim_cv_tty_group=`cat conftest_grp`
12528	if test "x$vim_cv_tty_mode" = "x" ; then
12529	  vim_cv_tty_mode=0620
12530	fi
12531	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
12532$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
12533      else
12534	vim_cv_tty_group=world
12535	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
12536$as_echo "ptys are world accessible" >&6; }
12537      fi
12538
12539else
12540
12541      vim_cv_tty_group=world
12542      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
12543$as_echo "can't determine - assume ptys are world accessible" >&6; }
12544
12545fi
12546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12547  conftest.$ac_objext conftest.beam conftest.$ac_ext
12548fi
12549
12550
12551fi
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
12553$as_echo "$vim_cv_tty_group" >&6; }
12554rm -f conftest_grp
12555
12556if test "x$vim_cv_tty_group" != "xworld" ; then
12557  cat >>confdefs.h <<_ACEOF
12558#define PTYGROUP $vim_cv_tty_group
12559_ACEOF
12560
12561  if test "x$vim_cv_tty_mode" = "x" ; then
12562    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
12563  else
12564    $as_echo "#define PTYMODE 0620" >>confdefs.h
12565
12566  fi
12567fi
12568
12569
12570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12571$as_echo_n "checking return type of signal handlers... " >&6; }
12572if ${ac_cv_type_signal+:} false; then :
12573  $as_echo_n "(cached) " >&6
12574else
12575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576/* end confdefs.h.  */
12577#include <sys/types.h>
12578#include <signal.h>
12579
12580int
12581main ()
12582{
12583return *(signal (0, 0)) (0) == 1;
12584  ;
12585  return 0;
12586}
12587_ACEOF
12588if ac_fn_c_try_compile "$LINENO"; then :
12589  ac_cv_type_signal=int
12590else
12591  ac_cv_type_signal=void
12592fi
12593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594fi
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12596$as_echo "$ac_cv_type_signal" >&6; }
12597
12598cat >>confdefs.h <<_ACEOF
12599#define RETSIGTYPE $ac_cv_type_signal
12600_ACEOF
12601
12602
12603
12604if test $ac_cv_type_signal = void; then
12605  $as_echo "#define SIGRETURN return" >>confdefs.h
12606
12607else
12608  $as_echo "#define SIGRETURN return 0" >>confdefs.h
12609
12610fi
12611
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
12613$as_echo_n "checking for struct sigcontext... " >&6; }
12614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615/* end confdefs.h.  */
12616
12617#include <signal.h>
12618test_sig()
12619{
12620    struct sigcontext *scont;
12621    scont = (struct sigcontext *)0;
12622    return 1;
12623}
12624int
12625main ()
12626{
12627
12628  ;
12629  return 0;
12630}
12631_ACEOF
12632if ac_fn_c_try_compile "$LINENO"; then :
12633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12634$as_echo "yes" >&6; }
12635		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12636
12637else
12638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639$as_echo "no" >&6; }
12640fi
12641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642
12643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12644$as_echo_n "checking getcwd implementation is broken... " >&6; }
12645if ${vim_cv_getcwd_broken+:} false; then :
12646  $as_echo_n "(cached) " >&6
12647else
12648
12649    if test "$cross_compiling" = yes; then :
12650
12651      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12652
12653else
12654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655/* end confdefs.h.  */
12656
12657#include "confdefs.h"
12658#ifdef HAVE_UNISTD_H
12659#include <unistd.h>
12660#endif
12661char *dagger[] = { "IFS=pwd", 0 };
12662main()
12663{
12664  char buffer[500];
12665  extern char **environ;
12666  environ = dagger;
12667  return getcwd(buffer, 500) ? 0 : 1;
12668}
12669
12670_ACEOF
12671if ac_fn_c_try_run "$LINENO"; then :
12672
12673      vim_cv_getcwd_broken=no
12674
12675else
12676
12677      vim_cv_getcwd_broken=yes
12678
12679fi
12680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12681  conftest.$ac_objext conftest.beam conftest.$ac_ext
12682fi
12683
12684
12685fi
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12687$as_echo "$vim_cv_getcwd_broken" >&6; }
12688
12689if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12690  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12691
12692fi
12693
12694for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \
12695	getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \
12696	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12697	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12698	sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
12699	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12700	usleep utime utimes mblen ftruncate unsetenv
12701do :
12702  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12703ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12704if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12705  cat >>confdefs.h <<_ACEOF
12706#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12707_ACEOF
12708
12709fi
12710done
12711
12712for ac_header in sys/select.h sys/socket.h
12713do :
12714  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12715ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12716if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12717  cat >>confdefs.h <<_ACEOF
12718#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12719_ACEOF
12720
12721fi
12722
12723done
12724
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12726$as_echo_n "checking types of arguments for select... " >&6; }
12727if ${ac_cv_func_select_args+:} false; then :
12728  $as_echo_n "(cached) " >&6
12729else
12730  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12731 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12732  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734/* end confdefs.h.  */
12735$ac_includes_default
12736#ifdef HAVE_SYS_SELECT_H
12737# include <sys/select.h>
12738#endif
12739#ifdef HAVE_SYS_SOCKET_H
12740# include <sys/socket.h>
12741#endif
12742
12743int
12744main ()
12745{
12746extern int select ($ac_arg1,
12747					    $ac_arg234, $ac_arg234, $ac_arg234,
12748					    $ac_arg5);
12749  ;
12750  return 0;
12751}
12752_ACEOF
12753if ac_fn_c_try_compile "$LINENO"; then :
12754  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12755fi
12756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757  done
12758 done
12759done
12760# Provide a safe default value.
12761: "${ac_cv_func_select_args=int,int *,struct timeval *}"
12762
12763fi
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12765$as_echo "$ac_cv_func_select_args" >&6; }
12766ac_save_IFS=$IFS; IFS=','
12767set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12768IFS=$ac_save_IFS
12769shift
12770
12771cat >>confdefs.h <<_ACEOF
12772#define SELECT_TYPE_ARG1 $1
12773_ACEOF
12774
12775
12776cat >>confdefs.h <<_ACEOF
12777#define SELECT_TYPE_ARG234 ($2)
12778_ACEOF
12779
12780
12781cat >>confdefs.h <<_ACEOF
12782#define SELECT_TYPE_ARG5 ($3)
12783_ACEOF
12784
12785rm -f conftest*
12786
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12788$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12789if ${ac_cv_sys_largefile_source+:} false; then :
12790  $as_echo_n "(cached) " >&6
12791else
12792  while :; do
12793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794/* end confdefs.h.  */
12795#include <sys/types.h> /* for off_t */
12796     #include <stdio.h>
12797int
12798main ()
12799{
12800int (*fp) (FILE *, off_t, int) = fseeko;
12801     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12802  ;
12803  return 0;
12804}
12805_ACEOF
12806if ac_fn_c_try_link "$LINENO"; then :
12807  ac_cv_sys_largefile_source=no; break
12808fi
12809rm -f core conftest.err conftest.$ac_objext \
12810    conftest$ac_exeext conftest.$ac_ext
12811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812/* end confdefs.h.  */
12813#define _LARGEFILE_SOURCE 1
12814#include <sys/types.h> /* for off_t */
12815     #include <stdio.h>
12816int
12817main ()
12818{
12819int (*fp) (FILE *, off_t, int) = fseeko;
12820     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12821  ;
12822  return 0;
12823}
12824_ACEOF
12825if ac_fn_c_try_link "$LINENO"; then :
12826  ac_cv_sys_largefile_source=1; break
12827fi
12828rm -f core conftest.err conftest.$ac_objext \
12829    conftest$ac_exeext conftest.$ac_ext
12830  ac_cv_sys_largefile_source=unknown
12831  break
12832done
12833fi
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12835$as_echo "$ac_cv_sys_largefile_source" >&6; }
12836case $ac_cv_sys_largefile_source in #(
12837  no | unknown) ;;
12838  *)
12839cat >>confdefs.h <<_ACEOF
12840#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12841_ACEOF
12842;;
12843esac
12844rm -rf conftest*
12845
12846# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12847# in glibc 2.1.3, but that breaks too many other things.
12848# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12849if test $ac_cv_sys_largefile_source != unknown; then
12850
12851$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12852
12853fi
12854
12855
12856# Check whether --enable-largefile was given.
12857if test "${enable_largefile+set}" = set; then :
12858  enableval=$enable_largefile;
12859fi
12860
12861if test "$enable_largefile" != no; then
12862
12863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12864$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12865if ${ac_cv_sys_largefile_CC+:} false; then :
12866  $as_echo_n "(cached) " >&6
12867else
12868  ac_cv_sys_largefile_CC=no
12869     if test "$GCC" != yes; then
12870       ac_save_CC=$CC
12871       while :; do
12872	 # IRIX 6.2 and later do not support large files by default,
12873	 # so use the C compiler's -n32 option if that helps.
12874	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875/* end confdefs.h.  */
12876#include <sys/types.h>
12877 /* Check that off_t can represent 2**63 - 1 correctly.
12878    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12879    since some C++ compilers masquerading as C compilers
12880    incorrectly reject 9223372036854775807.  */
12881#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12882  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12883		       && LARGE_OFF_T % 2147483647 == 1)
12884		      ? 1 : -1];
12885int
12886main ()
12887{
12888
12889  ;
12890  return 0;
12891}
12892_ACEOF
12893	 if ac_fn_c_try_compile "$LINENO"; then :
12894  break
12895fi
12896rm -f core conftest.err conftest.$ac_objext
12897	 CC="$CC -n32"
12898	 if ac_fn_c_try_compile "$LINENO"; then :
12899  ac_cv_sys_largefile_CC=' -n32'; break
12900fi
12901rm -f core conftest.err conftest.$ac_objext
12902	 break
12903       done
12904       CC=$ac_save_CC
12905       rm -f conftest.$ac_ext
12906    fi
12907fi
12908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12909$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12910  if test "$ac_cv_sys_largefile_CC" != no; then
12911    CC=$CC$ac_cv_sys_largefile_CC
12912  fi
12913
12914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12915$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12916if ${ac_cv_sys_file_offset_bits+:} false; then :
12917  $as_echo_n "(cached) " >&6
12918else
12919  while :; do
12920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921/* end confdefs.h.  */
12922#include <sys/types.h>
12923 /* Check that off_t can represent 2**63 - 1 correctly.
12924    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12925    since some C++ compilers masquerading as C compilers
12926    incorrectly reject 9223372036854775807.  */
12927#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12928  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12929		       && LARGE_OFF_T % 2147483647 == 1)
12930		      ? 1 : -1];
12931int
12932main ()
12933{
12934
12935  ;
12936  return 0;
12937}
12938_ACEOF
12939if ac_fn_c_try_compile "$LINENO"; then :
12940  ac_cv_sys_file_offset_bits=no; break
12941fi
12942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944/* end confdefs.h.  */
12945#define _FILE_OFFSET_BITS 64
12946#include <sys/types.h>
12947 /* Check that off_t can represent 2**63 - 1 correctly.
12948    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12949    since some C++ compilers masquerading as C compilers
12950    incorrectly reject 9223372036854775807.  */
12951#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12952  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12953		       && LARGE_OFF_T % 2147483647 == 1)
12954		      ? 1 : -1];
12955int
12956main ()
12957{
12958
12959  ;
12960  return 0;
12961}
12962_ACEOF
12963if ac_fn_c_try_compile "$LINENO"; then :
12964  ac_cv_sys_file_offset_bits=64; break
12965fi
12966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967  ac_cv_sys_file_offset_bits=unknown
12968  break
12969done
12970fi
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12972$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12973case $ac_cv_sys_file_offset_bits in #(
12974  no | unknown) ;;
12975  *)
12976cat >>confdefs.h <<_ACEOF
12977#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12978_ACEOF
12979;;
12980esac
12981rm -rf conftest*
12982  if test $ac_cv_sys_file_offset_bits = unknown; then
12983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12984$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12985if ${ac_cv_sys_large_files+:} false; then :
12986  $as_echo_n "(cached) " >&6
12987else
12988  while :; do
12989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990/* end confdefs.h.  */
12991#include <sys/types.h>
12992 /* Check that off_t can represent 2**63 - 1 correctly.
12993    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12994    since some C++ compilers masquerading as C compilers
12995    incorrectly reject 9223372036854775807.  */
12996#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12997  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12998		       && LARGE_OFF_T % 2147483647 == 1)
12999		      ? 1 : -1];
13000int
13001main ()
13002{
13003
13004  ;
13005  return 0;
13006}
13007_ACEOF
13008if ac_fn_c_try_compile "$LINENO"; then :
13009  ac_cv_sys_large_files=no; break
13010fi
13011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013/* end confdefs.h.  */
13014#define _LARGE_FILES 1
13015#include <sys/types.h>
13016 /* Check that off_t can represent 2**63 - 1 correctly.
13017    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13018    since some C++ compilers masquerading as C compilers
13019    incorrectly reject 9223372036854775807.  */
13020#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13021  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13022		       && LARGE_OFF_T % 2147483647 == 1)
13023		      ? 1 : -1];
13024int
13025main ()
13026{
13027
13028  ;
13029  return 0;
13030}
13031_ACEOF
13032if ac_fn_c_try_compile "$LINENO"; then :
13033  ac_cv_sys_large_files=1; break
13034fi
13035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036  ac_cv_sys_large_files=unknown
13037  break
13038done
13039fi
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13041$as_echo "$ac_cv_sys_large_files" >&6; }
13042case $ac_cv_sys_large_files in #(
13043  no | unknown) ;;
13044  *)
13045cat >>confdefs.h <<_ACEOF
13046#define _LARGE_FILES $ac_cv_sys_large_files
13047_ACEOF
13048;;
13049esac
13050rm -rf conftest*
13051  fi
13052
13053
13054fi
13055
13056
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
13058$as_echo_n "checking for st_blksize... " >&6; }
13059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060/* end confdefs.h.  */
13061#include <sys/types.h>
13062#include <sys/stat.h>
13063int
13064main ()
13065{
13066	struct stat st;
13067	int n;
13068
13069	stat("/", &st);
13070	n = (int)st.st_blksize;
13071  ;
13072  return 0;
13073}
13074_ACEOF
13075if ac_fn_c_try_compile "$LINENO"; then :
13076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13077$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
13078
13079else
13080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081$as_echo "no" >&6; }
13082fi
13083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084
13085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
13086$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13087if ${vim_cv_stat_ignores_slash+:} false; then :
13088  $as_echo_n "(cached) " >&6
13089else
13090
13091    if test "$cross_compiling" = yes; then :
13092
13093      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
13094
13095else
13096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097/* end confdefs.h.  */
13098
13099#include "confdefs.h"
13100#if STDC_HEADERS
13101# include <stdlib.h>
13102# include <stddef.h>
13103#endif
13104#include <sys/types.h>
13105#include <sys/stat.h>
13106main() {struct stat st;  exit(stat("configure/", &st) != 0); }
13107
13108_ACEOF
13109if ac_fn_c_try_run "$LINENO"; then :
13110
13111      vim_cv_stat_ignores_slash=yes
13112
13113else
13114
13115      vim_cv_stat_ignores_slash=no
13116
13117fi
13118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13119  conftest.$ac_objext conftest.beam conftest.$ac_ext
13120fi
13121
13122
13123fi
13124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
13125$as_echo "$vim_cv_stat_ignores_slash" >&6; }
13126
13127if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13128  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
13129
13130fi
13131
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
13133$as_echo_n "checking for iconv_open()... " >&6; }
13134save_LIBS="$LIBS"
13135LIBS="$LIBS -liconv"
13136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137/* end confdefs.h.  */
13138
13139#ifdef HAVE_ICONV_H
13140# include <iconv.h>
13141#endif
13142
13143int
13144main ()
13145{
13146iconv_open("fr", "to");
13147  ;
13148  return 0;
13149}
13150_ACEOF
13151if ac_fn_c_try_link "$LINENO"; then :
13152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
13153$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13154
13155else
13156  LIBS="$save_LIBS"
13157    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158/* end confdefs.h.  */
13159
13160#ifdef HAVE_ICONV_H
13161# include <iconv.h>
13162#endif
13163
13164int
13165main ()
13166{
13167iconv_open("fr", "to");
13168  ;
13169  return 0;
13170}
13171_ACEOF
13172if ac_fn_c_try_link "$LINENO"; then :
13173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13174$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13175
13176else
13177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178$as_echo "no" >&6; }
13179fi
13180rm -f core conftest.err conftest.$ac_objext \
13181    conftest$ac_exeext conftest.$ac_ext
13182fi
13183rm -f core conftest.err conftest.$ac_objext \
13184    conftest$ac_exeext conftest.$ac_ext
13185
13186
13187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
13188$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
13189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190/* end confdefs.h.  */
13191
13192#ifdef HAVE_LANGINFO_H
13193# include <langinfo.h>
13194#endif
13195
13196int
13197main ()
13198{
13199char *cs = nl_langinfo(CODESET);
13200  ;
13201  return 0;
13202}
13203_ACEOF
13204if ac_fn_c_try_link "$LINENO"; then :
13205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13206$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
13207
13208else
13209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210$as_echo "no" >&6; }
13211fi
13212rm -f core conftest.err conftest.$ac_objext \
13213    conftest$ac_exeext conftest.$ac_ext
13214
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
13216$as_echo_n "checking for strtod in -lm... " >&6; }
13217if ${ac_cv_lib_m_strtod+:} false; then :
13218  $as_echo_n "(cached) " >&6
13219else
13220  ac_check_lib_save_LIBS=$LIBS
13221LIBS="-lm  $LIBS"
13222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223/* end confdefs.h.  */
13224
13225/* Override any GCC internal prototype to avoid an error.
13226   Use char because int might match the return type of a GCC
13227   builtin and then its argument prototype would still apply.  */
13228#ifdef __cplusplus
13229extern "C"
13230#endif
13231char strtod ();
13232int
13233main ()
13234{
13235return strtod ();
13236  ;
13237  return 0;
13238}
13239_ACEOF
13240if ac_fn_c_try_link "$LINENO"; then :
13241  ac_cv_lib_m_strtod=yes
13242else
13243  ac_cv_lib_m_strtod=no
13244fi
13245rm -f core conftest.err conftest.$ac_objext \
13246    conftest$ac_exeext conftest.$ac_ext
13247LIBS=$ac_check_lib_save_LIBS
13248fi
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
13250$as_echo "$ac_cv_lib_m_strtod" >&6; }
13251if test "x$ac_cv_lib_m_strtod" = xyes; then :
13252  cat >>confdefs.h <<_ACEOF
13253#define HAVE_LIBM 1
13254_ACEOF
13255
13256  LIBS="-lm $LIBS"
13257
13258fi
13259
13260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
13261$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
13262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263/* end confdefs.h.  */
13264
13265#ifdef HAVE_MATH_H
13266# include <math.h>
13267#endif
13268#if STDC_HEADERS
13269# include <stdlib.h>
13270# include <stddef.h>
13271#endif
13272
13273int
13274main ()
13275{
13276char *s; double d;
13277    d = strtod("1.1", &s);
13278    d = fabs(1.11);
13279    d = ceil(1.11);
13280    d = floor(1.11);
13281    d = log10(1.11);
13282    d = pow(1.11, 2.22);
13283    d = sqrt(1.11);
13284    d = sin(1.11);
13285    d = cos(1.11);
13286    d = atan(1.11);
13287
13288  ;
13289  return 0;
13290}
13291_ACEOF
13292if ac_fn_c_try_link "$LINENO"; then :
13293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13294$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
13295
13296else
13297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298$as_echo "no" >&6; }
13299fi
13300rm -f core conftest.err conftest.$ac_objext \
13301    conftest$ac_exeext conftest.$ac_ext
13302
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
13304$as_echo_n "checking for isinf()... " >&6; }
13305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306/* end confdefs.h.  */
13307
13308#ifdef HAVE_MATH_H
13309# include <math.h>
13310#endif
13311#if STDC_HEADERS
13312# include <stdlib.h>
13313# include <stddef.h>
13314#endif
13315
13316int
13317main ()
13318{
13319int r = isinf(1.11);
13320  ;
13321  return 0;
13322}
13323_ACEOF
13324if ac_fn_c_try_link "$LINENO"; then :
13325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13326$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13327
13328else
13329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330$as_echo "no" >&6; }
13331fi
13332rm -f core conftest.err conftest.$ac_objext \
13333    conftest$ac_exeext conftest.$ac_ext
13334
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
13336$as_echo_n "checking for isnan()... " >&6; }
13337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338/* end confdefs.h.  */
13339
13340#ifdef HAVE_MATH_H
13341# include <math.h>
13342#endif
13343#if STDC_HEADERS
13344# include <stdlib.h>
13345# include <stddef.h>
13346#endif
13347
13348int
13349main ()
13350{
13351int r = isnan(1.11);
13352  ;
13353  return 0;
13354}
13355_ACEOF
13356if ac_fn_c_try_link "$LINENO"; then :
13357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13358$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13359
13360else
13361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362$as_echo "no" >&6; }
13363fi
13364rm -f core conftest.err conftest.$ac_objext \
13365    conftest$ac_exeext conftest.$ac_ext
13366
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
13368$as_echo_n "checking --disable-acl argument... " >&6; }
13369# Check whether --enable-acl was given.
13370if test "${enable_acl+set}" = set; then :
13371  enableval=$enable_acl;
13372else
13373  enable_acl="yes"
13374fi
13375
13376if test "$enable_acl" = "yes"; then
13377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378$as_echo "no" >&6; }
13379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
13380$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
13381if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
13382  $as_echo_n "(cached) " >&6
13383else
13384  ac_check_lib_save_LIBS=$LIBS
13385LIBS="-lposix1e  $LIBS"
13386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387/* end confdefs.h.  */
13388
13389/* Override any GCC internal prototype to avoid an error.
13390   Use char because int might match the return type of a GCC
13391   builtin and then its argument prototype would still apply.  */
13392#ifdef __cplusplus
13393extern "C"
13394#endif
13395char acl_get_file ();
13396int
13397main ()
13398{
13399return acl_get_file ();
13400  ;
13401  return 0;
13402}
13403_ACEOF
13404if ac_fn_c_try_link "$LINENO"; then :
13405  ac_cv_lib_posix1e_acl_get_file=yes
13406else
13407  ac_cv_lib_posix1e_acl_get_file=no
13408fi
13409rm -f core conftest.err conftest.$ac_objext \
13410    conftest$ac_exeext conftest.$ac_ext
13411LIBS=$ac_check_lib_save_LIBS
13412fi
13413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13414$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
13415if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
13416  LIBS="$LIBS -lposix1e"
13417else
13418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
13419$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
13420if ${ac_cv_lib_acl_acl_get_file+:} false; then :
13421  $as_echo_n "(cached) " >&6
13422else
13423  ac_check_lib_save_LIBS=$LIBS
13424LIBS="-lacl  $LIBS"
13425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426/* end confdefs.h.  */
13427
13428/* Override any GCC internal prototype to avoid an error.
13429   Use char because int might match the return type of a GCC
13430   builtin and then its argument prototype would still apply.  */
13431#ifdef __cplusplus
13432extern "C"
13433#endif
13434char acl_get_file ();
13435int
13436main ()
13437{
13438return acl_get_file ();
13439  ;
13440  return 0;
13441}
13442_ACEOF
13443if ac_fn_c_try_link "$LINENO"; then :
13444  ac_cv_lib_acl_acl_get_file=yes
13445else
13446  ac_cv_lib_acl_acl_get_file=no
13447fi
13448rm -f core conftest.err conftest.$ac_objext \
13449    conftest$ac_exeext conftest.$ac_ext
13450LIBS=$ac_check_lib_save_LIBS
13451fi
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
13453$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
13454if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
13455  LIBS="$LIBS -lacl"
13456		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
13457$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
13458if ${ac_cv_lib_attr_fgetxattr+:} false; then :
13459  $as_echo_n "(cached) " >&6
13460else
13461  ac_check_lib_save_LIBS=$LIBS
13462LIBS="-lattr  $LIBS"
13463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464/* end confdefs.h.  */
13465
13466/* Override any GCC internal prototype to avoid an error.
13467   Use char because int might match the return type of a GCC
13468   builtin and then its argument prototype would still apply.  */
13469#ifdef __cplusplus
13470extern "C"
13471#endif
13472char fgetxattr ();
13473int
13474main ()
13475{
13476return fgetxattr ();
13477  ;
13478  return 0;
13479}
13480_ACEOF
13481if ac_fn_c_try_link "$LINENO"; then :
13482  ac_cv_lib_attr_fgetxattr=yes
13483else
13484  ac_cv_lib_attr_fgetxattr=no
13485fi
13486rm -f core conftest.err conftest.$ac_objext \
13487    conftest$ac_exeext conftest.$ac_ext
13488LIBS=$ac_check_lib_save_LIBS
13489fi
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
13491$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
13492if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
13493  LIBS="$LIBS -lattr"
13494fi
13495
13496fi
13497
13498fi
13499
13500
13501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
13502$as_echo_n "checking for POSIX ACL support... " >&6; }
13503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504/* end confdefs.h.  */
13505
13506#include <sys/types.h>
13507#ifdef HAVE_SYS_ACL_H
13508# include <sys/acl.h>
13509#endif
13510acl_t acl;
13511int
13512main ()
13513{
13514acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13515	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13516	acl_free(acl);
13517  ;
13518  return 0;
13519}
13520_ACEOF
13521if ac_fn_c_try_link "$LINENO"; then :
13522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13523$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
13524
13525else
13526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527$as_echo "no" >&6; }
13528fi
13529rm -f core conftest.err conftest.$ac_objext \
13530    conftest$ac_exeext conftest.$ac_ext
13531
13532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
13533$as_echo_n "checking for acl_get in -lsec... " >&6; }
13534if ${ac_cv_lib_sec_acl_get+:} false; then :
13535  $as_echo_n "(cached) " >&6
13536else
13537  ac_check_lib_save_LIBS=$LIBS
13538LIBS="-lsec  $LIBS"
13539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540/* end confdefs.h.  */
13541
13542/* Override any GCC internal prototype to avoid an error.
13543   Use char because int might match the return type of a GCC
13544   builtin and then its argument prototype would still apply.  */
13545#ifdef __cplusplus
13546extern "C"
13547#endif
13548char acl_get ();
13549int
13550main ()
13551{
13552return acl_get ();
13553  ;
13554  return 0;
13555}
13556_ACEOF
13557if ac_fn_c_try_link "$LINENO"; then :
13558  ac_cv_lib_sec_acl_get=yes
13559else
13560  ac_cv_lib_sec_acl_get=no
13561fi
13562rm -f core conftest.err conftest.$ac_objext \
13563    conftest$ac_exeext conftest.$ac_ext
13564LIBS=$ac_check_lib_save_LIBS
13565fi
13566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
13567$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
13568if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
13569  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
13570
13571else
13572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
13573$as_echo_n "checking for Solaris ACL support... " >&6; }
13574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575/* end confdefs.h.  */
13576
13577#ifdef HAVE_SYS_ACL_H
13578# include <sys/acl.h>
13579#endif
13580int
13581main ()
13582{
13583acl("foo", GETACLCNT, 0, NULL);
13584
13585  ;
13586  return 0;
13587}
13588_ACEOF
13589if ac_fn_c_try_link "$LINENO"; then :
13590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
13592
13593else
13594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595$as_echo "no" >&6; }
13596fi
13597rm -f core conftest.err conftest.$ac_objext \
13598    conftest$ac_exeext conftest.$ac_ext
13599fi
13600
13601
13602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
13603$as_echo_n "checking for AIX ACL support... " >&6; }
13604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605/* end confdefs.h.  */
13606
13607#if STDC_HEADERS
13608# include <stdlib.h>
13609# include <stddef.h>
13610#endif
13611#ifdef HAVE_SYS_ACL_H
13612# include <sys/acl.h>
13613#endif
13614#ifdef HAVE_SYS_ACCESS_H
13615# include <sys/access.h>
13616#endif
13617#define _ALL_SOURCE
13618
13619#include <sys/stat.h>
13620
13621int aclsize;
13622struct acl *aclent;
13623int
13624main ()
13625{
13626aclsize = sizeof(struct acl);
13627	aclent = (void *)malloc(aclsize);
13628	statacl("foo", STX_NORMAL, aclent, aclsize);
13629
13630  ;
13631  return 0;
13632}
13633_ACEOF
13634if ac_fn_c_try_link "$LINENO"; then :
13635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
13637
13638else
13639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640$as_echo "no" >&6; }
13641fi
13642rm -f core conftest.err conftest.$ac_objext \
13643    conftest$ac_exeext conftest.$ac_ext
13644else
13645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13646$as_echo "yes" >&6; }
13647fi
13648
13649if test "x$GTK_CFLAGS" != "x"; then
13650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
13651$as_echo_n "checking for pango_shape_full... " >&6; }
13652  ac_save_CFLAGS="$CFLAGS"
13653  ac_save_LIBS="$LIBS"
13654  CFLAGS="$CFLAGS $GTK_CFLAGS"
13655  LIBS="$LIBS $GTK_LIBS"
13656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657/* end confdefs.h.  */
13658#include <gtk/gtk.h>
13659int
13660main ()
13661{
13662 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
13663  ;
13664  return 0;
13665}
13666_ACEOF
13667if ac_fn_c_try_link "$LINENO"; then :
13668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13669$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
13670
13671else
13672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673$as_echo "no" >&6; }
13674fi
13675rm -f core conftest.err conftest.$ac_objext \
13676    conftest$ac_exeext conftest.$ac_ext
13677  CFLAGS="$ac_save_CFLAGS"
13678  LIBS="$ac_save_LIBS"
13679fi
13680
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
13682$as_echo_n "checking --disable-gpm argument... " >&6; }
13683# Check whether --enable-gpm was given.
13684if test "${enable_gpm+set}" = set; then :
13685  enableval=$enable_gpm;
13686else
13687  enable_gpm="yes"
13688fi
13689
13690
13691if test "$enable_gpm" = "yes"; then
13692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693$as_echo "no" >&6; }
13694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
13695$as_echo_n "checking for gpm... " >&6; }
13696if ${vi_cv_have_gpm+:} false; then :
13697  $as_echo_n "(cached) " >&6
13698else
13699  olibs="$LIBS" ; LIBS="-lgpm"
13700	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701/* end confdefs.h.  */
13702#include <gpm.h>
13703	    #include <linux/keyboard.h>
13704int
13705main ()
13706{
13707Gpm_GetLibVersion(NULL);
13708  ;
13709  return 0;
13710}
13711_ACEOF
13712if ac_fn_c_try_link "$LINENO"; then :
13713  	    	    vi_cv_have_gpm=yes
13714else
13715  vi_cv_have_gpm=no
13716fi
13717rm -f core conftest.err conftest.$ac_objext \
13718    conftest$ac_exeext conftest.$ac_ext
13719	LIBS="$olibs"
13720
13721fi
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13723$as_echo "$vi_cv_have_gpm" >&6; }
13724  if test $vi_cv_have_gpm = yes; then
13725    LIBS="$LIBS -lgpm"
13726    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13727
13728  fi
13729else
13730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13731$as_echo "yes" >&6; }
13732fi
13733
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13735$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13736# Check whether --enable-sysmouse was given.
13737if test "${enable_sysmouse+set}" = set; then :
13738  enableval=$enable_sysmouse;
13739else
13740  enable_sysmouse="yes"
13741fi
13742
13743
13744if test "$enable_sysmouse" = "yes"; then
13745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746$as_echo "no" >&6; }
13747        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13748$as_echo_n "checking for sysmouse... " >&6; }
13749if ${vi_cv_have_sysmouse+:} false; then :
13750  $as_echo_n "(cached) " >&6
13751else
13752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753/* end confdefs.h.  */
13754#include <sys/consio.h>
13755	     #include <signal.h>
13756	     #include <sys/fbio.h>
13757int
13758main ()
13759{
13760struct mouse_info   mouse;
13761	     mouse.operation = MOUSE_MODE;
13762	     mouse.operation = MOUSE_SHOW;
13763	     mouse.u.mode.mode = 0;
13764	     mouse.u.mode.signal = SIGUSR2;
13765  ;
13766  return 0;
13767}
13768_ACEOF
13769if ac_fn_c_try_link "$LINENO"; then :
13770  vi_cv_have_sysmouse=yes
13771else
13772  vi_cv_have_sysmouse=no
13773fi
13774rm -f core conftest.err conftest.$ac_objext \
13775    conftest$ac_exeext conftest.$ac_ext
13776
13777fi
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13779$as_echo "$vi_cv_have_sysmouse" >&6; }
13780  if test $vi_cv_have_sysmouse = yes; then
13781    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13782
13783  fi
13784else
13785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13786$as_echo "yes" >&6; }
13787fi
13788
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13790$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792/* end confdefs.h.  */
13793#if HAVE_FCNTL_H
13794# include <fcntl.h>
13795#endif
13796int
13797main ()
13798{
13799	int flag = FD_CLOEXEC;
13800  ;
13801  return 0;
13802}
13803_ACEOF
13804if ac_fn_c_try_compile "$LINENO"; then :
13805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13806$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13807
13808else
13809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13810$as_echo "not usable" >&6; }
13811fi
13812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13813
13814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13815$as_echo_n "checking for rename... " >&6; }
13816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817/* end confdefs.h.  */
13818#include <stdio.h>
13819int
13820main ()
13821{
13822rename("this", "that")
13823  ;
13824  return 0;
13825}
13826_ACEOF
13827if ac_fn_c_try_link "$LINENO"; then :
13828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13829$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13830
13831else
13832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833$as_echo "no" >&6; }
13834fi
13835rm -f core conftest.err conftest.$ac_objext \
13836    conftest$ac_exeext conftest.$ac_ext
13837
13838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13839$as_echo_n "checking for sysctl... " >&6; }
13840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841/* end confdefs.h.  */
13842#include <sys/types.h>
13843#include <sys/sysctl.h>
13844int
13845main ()
13846{
13847	int mib[2], r;
13848	size_t len;
13849
13850	mib[0] = CTL_HW;
13851	mib[1] = HW_USERMEM;
13852	len = sizeof(r);
13853	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13854
13855  ;
13856  return 0;
13857}
13858_ACEOF
13859if ac_fn_c_try_compile "$LINENO"; then :
13860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13861$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13862
13863else
13864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13865$as_echo "not usable" >&6; }
13866fi
13867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13868
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13870$as_echo_n "checking for sysinfo... " >&6; }
13871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872/* end confdefs.h.  */
13873#include <sys/types.h>
13874#include <sys/sysinfo.h>
13875int
13876main ()
13877{
13878	struct sysinfo sinfo;
13879	int t;
13880
13881	(void)sysinfo(&sinfo);
13882	t = sinfo.totalram;
13883
13884  ;
13885  return 0;
13886}
13887_ACEOF
13888if ac_fn_c_try_compile "$LINENO"; then :
13889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13890$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13891
13892else
13893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13894$as_echo "not usable" >&6; }
13895fi
13896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13897
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13899$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901/* end confdefs.h.  */
13902#include <sys/types.h>
13903#include <sys/sysinfo.h>
13904int
13905main ()
13906{
13907	struct sysinfo sinfo;
13908	sinfo.mem_unit = 1;
13909
13910  ;
13911  return 0;
13912}
13913_ACEOF
13914if ac_fn_c_try_compile "$LINENO"; then :
13915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13916$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13917
13918else
13919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13920$as_echo "no" >&6; }
13921fi
13922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13925$as_echo_n "checking for sysconf... " >&6; }
13926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927/* end confdefs.h.  */
13928#include <unistd.h>
13929int
13930main ()
13931{
13932	(void)sysconf(_SC_PAGESIZE);
13933	(void)sysconf(_SC_PHYS_PAGES);
13934
13935  ;
13936  return 0;
13937}
13938_ACEOF
13939if ac_fn_c_try_compile "$LINENO"; then :
13940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13942
13943else
13944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13945$as_echo "not usable" >&6; }
13946fi
13947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948
13949# The cast to long int works around a bug in the HP C Compiler
13950# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13951# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13952# This bug is HP SR number 8606223364.
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13954$as_echo_n "checking size of int... " >&6; }
13955if ${ac_cv_sizeof_int+:} false; then :
13956  $as_echo_n "(cached) " >&6
13957else
13958  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13959
13960else
13961  if test "$ac_cv_type_int" = yes; then
13962     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13964as_fn_error 77 "cannot compute sizeof (int)
13965See \`config.log' for more details" "$LINENO" 5; }
13966   else
13967     ac_cv_sizeof_int=0
13968   fi
13969fi
13970
13971fi
13972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13973$as_echo "$ac_cv_sizeof_int" >&6; }
13974
13975
13976
13977cat >>confdefs.h <<_ACEOF
13978#define SIZEOF_INT $ac_cv_sizeof_int
13979_ACEOF
13980
13981
13982# The cast to long int works around a bug in the HP C Compiler
13983# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13984# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13985# This bug is HP SR number 8606223364.
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13987$as_echo_n "checking size of long... " >&6; }
13988if ${ac_cv_sizeof_long+:} false; then :
13989  $as_echo_n "(cached) " >&6
13990else
13991  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13992
13993else
13994  if test "$ac_cv_type_long" = yes; then
13995     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13997as_fn_error 77 "cannot compute sizeof (long)
13998See \`config.log' for more details" "$LINENO" 5; }
13999   else
14000     ac_cv_sizeof_long=0
14001   fi
14002fi
14003
14004fi
14005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14006$as_echo "$ac_cv_sizeof_long" >&6; }
14007
14008
14009
14010cat >>confdefs.h <<_ACEOF
14011#define SIZEOF_LONG $ac_cv_sizeof_long
14012_ACEOF
14013
14014
14015# The cast to long int works around a bug in the HP C Compiler
14016# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14017# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14018# This bug is HP SR number 8606223364.
14019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14020$as_echo_n "checking size of time_t... " >&6; }
14021if ${ac_cv_sizeof_time_t+:} false; then :
14022  $as_echo_n "(cached) " >&6
14023else
14024  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
14025
14026else
14027  if test "$ac_cv_type_time_t" = yes; then
14028     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14030as_fn_error 77 "cannot compute sizeof (time_t)
14031See \`config.log' for more details" "$LINENO" 5; }
14032   else
14033     ac_cv_sizeof_time_t=0
14034   fi
14035fi
14036
14037fi
14038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14039$as_echo "$ac_cv_sizeof_time_t" >&6; }
14040
14041
14042
14043cat >>confdefs.h <<_ACEOF
14044#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14045_ACEOF
14046
14047
14048# The cast to long int works around a bug in the HP C Compiler
14049# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14050# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14051# This bug is HP SR number 8606223364.
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14053$as_echo_n "checking size of off_t... " >&6; }
14054if ${ac_cv_sizeof_off_t+:} false; then :
14055  $as_echo_n "(cached) " >&6
14056else
14057  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14058
14059else
14060  if test "$ac_cv_type_off_t" = yes; then
14061     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14063as_fn_error 77 "cannot compute sizeof (off_t)
14064See \`config.log' for more details" "$LINENO" 5; }
14065   else
14066     ac_cv_sizeof_off_t=0
14067   fi
14068fi
14069
14070fi
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14072$as_echo "$ac_cv_sizeof_off_t" >&6; }
14073
14074
14075
14076cat >>confdefs.h <<_ACEOF
14077#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14078_ACEOF
14079
14080
14081
14082cat >>confdefs.h <<_ACEOF
14083#define VIM_SIZEOF_INT $ac_cv_sizeof_int
14084_ACEOF
14085
14086cat >>confdefs.h <<_ACEOF
14087#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
14088_ACEOF
14089
14090
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
14092$as_echo_n "checking uint32_t is 32 bits... " >&6; }
14093if test "$cross_compiling" = yes; then :
14094  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
14095$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
14096else
14097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098/* end confdefs.h.  */
14099
14100#ifdef HAVE_STDINT_H
14101# include <stdint.h>
14102#endif
14103#ifdef HAVE_INTTYPES_H
14104# include <inttypes.h>
14105#endif
14106main() {
14107  uint32_t nr1 = (uint32_t)-1;
14108  uint32_t nr2 = (uint32_t)0xffffffffUL;
14109  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
14110  exit(0);
14111}
14112_ACEOF
14113if ac_fn_c_try_run "$LINENO"; then :
14114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14115$as_echo "ok" >&6; }
14116else
14117  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
14118fi
14119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14120  conftest.$ac_objext conftest.beam conftest.$ac_ext
14121fi
14122
14123
14124
14125bcopy_test_prog='
14126#include "confdefs.h"
14127#ifdef HAVE_STRING_H
14128# include <string.h>
14129#endif
14130#if STDC_HEADERS
14131# include <stdlib.h>
14132# include <stddef.h>
14133#endif
14134main() {
14135  char buf[10];
14136  strcpy(buf, "abcdefghi");
14137  mch_memmove(buf, buf + 2, 3);
14138  if (strncmp(buf, "ababcf", 6))
14139    exit(1);
14140  strcpy(buf, "abcdefghi");
14141  mch_memmove(buf + 2, buf, 3);
14142  if (strncmp(buf, "cdedef", 6))
14143    exit(1);
14144  exit(0); /* libc version works properly.  */
14145}'
14146
14147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
14148$as_echo_n "checking whether memmove handles overlaps... " >&6; }
14149if ${vim_cv_memmove_handles_overlap+:} false; then :
14150  $as_echo_n "(cached) " >&6
14151else
14152
14153    if test "$cross_compiling" = yes; then :
14154
14155	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
14156
14157else
14158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159/* end confdefs.h.  */
14160#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14161_ACEOF
14162if ac_fn_c_try_run "$LINENO"; then :
14163
14164	vim_cv_memmove_handles_overlap=yes
14165
14166else
14167
14168	vim_cv_memmove_handles_overlap=no
14169
14170fi
14171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14172  conftest.$ac_objext conftest.beam conftest.$ac_ext
14173fi
14174
14175
14176fi
14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
14178$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
14179
14180if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
14181  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
14182
14183else
14184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
14185$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
14186if ${vim_cv_bcopy_handles_overlap+:} false; then :
14187  $as_echo_n "(cached) " >&6
14188else
14189
14190      if test "$cross_compiling" = yes; then :
14191
14192	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
14193
14194else
14195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196/* end confdefs.h.  */
14197#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14198_ACEOF
14199if ac_fn_c_try_run "$LINENO"; then :
14200
14201	vim_cv_bcopy_handles_overlap=yes
14202
14203else
14204
14205	vim_cv_bcopy_handles_overlap=no
14206
14207fi
14208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14209  conftest.$ac_objext conftest.beam conftest.$ac_ext
14210fi
14211
14212
14213fi
14214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
14215$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
14216
14217  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
14218    $as_echo "#define USEBCOPY 1" >>confdefs.h
14219
14220  else
14221    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
14222$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
14223if ${vim_cv_memcpy_handles_overlap+:} false; then :
14224  $as_echo_n "(cached) " >&6
14225else
14226
14227	if test "$cross_compiling" = yes; then :
14228
14229	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
14230
14231else
14232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233/* end confdefs.h.  */
14234#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14235_ACEOF
14236if ac_fn_c_try_run "$LINENO"; then :
14237
14238	    vim_cv_memcpy_handles_overlap=yes
14239
14240else
14241
14242	    vim_cv_memcpy_handles_overlap=no
14243
14244fi
14245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14246  conftest.$ac_objext conftest.beam conftest.$ac_ext
14247fi
14248
14249
14250fi
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
14252$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
14253
14254    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
14255      $as_echo "#define USEMEMCPY 1" >>confdefs.h
14256
14257    fi
14258  fi
14259fi
14260
14261
14262if test "x$with_x" = "xyes"; then
14263  cflags_save=$CFLAGS
14264  libs_save=$LIBS
14265  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
14266  CFLAGS="$CFLAGS $X_CFLAGS"
14267
14268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
14269$as_echo_n "checking whether X_LOCALE needed... " >&6; }
14270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271/* end confdefs.h.  */
14272#include <X11/Xlocale.h>
14273int
14274main ()
14275{
14276
14277  ;
14278  return 0;
14279}
14280_ACEOF
14281if ac_fn_c_try_compile "$LINENO"; then :
14282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283/* end confdefs.h.  */
14284
14285/* Override any GCC internal prototype to avoid an error.
14286   Use char because int might match the return type of a GCC
14287   builtin and then its argument prototype would still apply.  */
14288#ifdef __cplusplus
14289extern "C"
14290#endif
14291char _Xsetlocale ();
14292int
14293main ()
14294{
14295return _Xsetlocale ();
14296  ;
14297  return 0;
14298}
14299_ACEOF
14300if ac_fn_c_try_link "$LINENO"; then :
14301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14302$as_echo "yes" >&6; }
14303	      $as_echo "#define X_LOCALE 1" >>confdefs.h
14304
14305else
14306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14307$as_echo "no" >&6; }
14308fi
14309rm -f core conftest.err conftest.$ac_objext \
14310    conftest$ac_exeext conftest.$ac_ext
14311else
14312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313$as_echo "no" >&6; }
14314fi
14315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316
14317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
14318$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
14319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320/* end confdefs.h.  */
14321
14322/* Override any GCC internal prototype to avoid an error.
14323   Use char because int might match the return type of a GCC
14324   builtin and then its argument prototype would still apply.  */
14325#ifdef __cplusplus
14326extern "C"
14327#endif
14328char Xutf8SetWMProperties ();
14329int
14330main ()
14331{
14332return Xutf8SetWMProperties ();
14333  ;
14334  return 0;
14335}
14336_ACEOF
14337if ac_fn_c_try_link "$LINENO"; then :
14338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14339$as_echo "yes" >&6; }
14340	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
14341
14342else
14343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14344$as_echo "no" >&6; }
14345fi
14346rm -f core conftest.err conftest.$ac_objext \
14347    conftest$ac_exeext conftest.$ac_ext
14348
14349  CFLAGS=$cflags_save
14350  LIBS=$libs_save
14351fi
14352
14353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
14354$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
14355if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
14356  $as_echo_n "(cached) " >&6
14357else
14358  ac_check_lib_save_LIBS=$LIBS
14359LIBS="-lxpg4  $LIBS"
14360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361/* end confdefs.h.  */
14362
14363/* Override any GCC internal prototype to avoid an error.
14364   Use char because int might match the return type of a GCC
14365   builtin and then its argument prototype would still apply.  */
14366#ifdef __cplusplus
14367extern "C"
14368#endif
14369char _xpg4_setrunelocale ();
14370int
14371main ()
14372{
14373return _xpg4_setrunelocale ();
14374  ;
14375  return 0;
14376}
14377_ACEOF
14378if ac_fn_c_try_link "$LINENO"; then :
14379  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14380else
14381  ac_cv_lib_xpg4__xpg4_setrunelocale=no
14382fi
14383rm -f core conftest.err conftest.$ac_objext \
14384    conftest$ac_exeext conftest.$ac_ext
14385LIBS=$ac_check_lib_save_LIBS
14386fi
14387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14388$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
14389if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
14390  LIBS="$LIBS -lxpg4"
14391fi
14392
14393
14394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
14395$as_echo_n "checking how to create tags... " >&6; }
14396test -f tags && mv tags tags.save
14397if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14398  TAGPRG="ctags -I INIT+ --fields=+S"
14399elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14400  TAGPRG="exctags -I INIT+ --fields=+S"
14401elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14402  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
14403else
14404  TAGPRG="ctags"
14405  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14406  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14407  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14408  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14409  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14410  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14411  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14412fi
14413test -f tags.save && mv tags.save tags
14414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
14415$as_echo "$TAGPRG" >&6; }
14416
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
14418$as_echo_n "checking how to run man with a section nr... " >&6; }
14419MANDEF="man"
14420(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
14422$as_echo "$MANDEF" >&6; }
14423if test "$MANDEF" = "man -s"; then
14424  $as_echo "#define USEMAN_S 1" >>confdefs.h
14425
14426fi
14427
14428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
14429$as_echo_n "checking --disable-nls argument... " >&6; }
14430# Check whether --enable-nls was given.
14431if test "${enable_nls+set}" = set; then :
14432  enableval=$enable_nls;
14433else
14434  enable_nls="yes"
14435fi
14436
14437
14438if test "$enable_nls" = "yes"; then
14439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440$as_echo "no" >&6; }
14441
14442  INSTALL_LANGS=install-languages
14443
14444  INSTALL_TOOL_LANGS=install-tool-languages
14445
14446
14447  # Extract the first word of "msgfmt", so it can be a program name with args.
14448set dummy msgfmt; ac_word=$2
14449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14450$as_echo_n "checking for $ac_word... " >&6; }
14451if ${ac_cv_prog_MSGFMT+:} false; then :
14452  $as_echo_n "(cached) " >&6
14453else
14454  if test -n "$MSGFMT"; then
14455  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14456else
14457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14458for as_dir in $PATH
14459do
14460  IFS=$as_save_IFS
14461  test -z "$as_dir" && as_dir=.
14462    for ac_exec_ext in '' $ac_executable_extensions; do
14463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14464    ac_cv_prog_MSGFMT="msgfmt"
14465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14466    break 2
14467  fi
14468done
14469  done
14470IFS=$as_save_IFS
14471
14472fi
14473fi
14474MSGFMT=$ac_cv_prog_MSGFMT
14475if test -n "$MSGFMT"; then
14476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14477$as_echo "$MSGFMT" >&6; }
14478else
14479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14480$as_echo "no" >&6; }
14481fi
14482
14483
14484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
14485$as_echo_n "checking for NLS... " >&6; }
14486  if test -f po/Makefile; then
14487    have_gettext="no"
14488    if test -n "$MSGFMT"; then
14489      olibs=$LIBS
14490      LIBS=""
14491      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492/* end confdefs.h.  */
14493#include <libintl.h>
14494int
14495main ()
14496{
14497gettext("Test");
14498  ;
14499  return 0;
14500}
14501_ACEOF
14502if ac_fn_c_try_link "$LINENO"; then :
14503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
14504$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
14505else
14506  LIBS="-lintl"
14507	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508/* end confdefs.h.  */
14509#include <libintl.h>
14510int
14511main ()
14512{
14513gettext("Test");
14514  ;
14515  return 0;
14516}
14517_ACEOF
14518if ac_fn_c_try_link "$LINENO"; then :
14519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
14520$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
14521	      LIBS="$olibs -lintl"
14522else
14523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
14524$as_echo "gettext() doesn't work" >&6; };
14525	      LIBS=$olibs
14526fi
14527rm -f core conftest.err conftest.$ac_objext \
14528    conftest$ac_exeext conftest.$ac_ext
14529fi
14530rm -f core conftest.err conftest.$ac_objext \
14531    conftest$ac_exeext conftest.$ac_ext
14532    else
14533      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
14534$as_echo "msgfmt not found - disabled" >&6; };
14535    fi
14536    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
14537      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14538
14539      MAKEMO=yes
14540
14541            for ac_func in bind_textdomain_codeset
14542do :
14543  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14544if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14545  cat >>confdefs.h <<_ACEOF
14546#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14547_ACEOF
14548
14549fi
14550done
14551
14552            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
14553$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
14554      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555/* end confdefs.h.  */
14556#include <libintl.h>
14557		extern int _nl_msg_cat_cntr;
14558int
14559main ()
14560{
14561++_nl_msg_cat_cntr;
14562  ;
14563  return 0;
14564}
14565_ACEOF
14566if ac_fn_c_try_link "$LINENO"; then :
14567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14568$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
14569
14570else
14571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14572$as_echo "no" >&6; }
14573fi
14574rm -f core conftest.err conftest.$ac_objext \
14575    conftest$ac_exeext conftest.$ac_ext
14576    fi
14577  else
14578    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
14579$as_echo "no \"po/Makefile\" - disabled" >&6; };
14580  fi
14581else
14582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14583$as_echo "yes" >&6; }
14584fi
14585
14586ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14587if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14588  DLL=dlfcn.h
14589else
14590  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14591if test "x$ac_cv_header_dl_h" = xyes; then :
14592  DLL=dl.h
14593fi
14594
14595
14596fi
14597
14598
14599if test x${DLL} = xdlfcn.h; then
14600
14601$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14602
14603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
14604$as_echo_n "checking for dlopen()... " >&6; }
14605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606/* end confdefs.h.  */
14607
14608int
14609main ()
14610{
14611
14612		extern void* dlopen();
14613		dlopen();
14614
14615  ;
14616  return 0;
14617}
14618_ACEOF
14619if ac_fn_c_try_link "$LINENO"; then :
14620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14621$as_echo "yes" >&6; };
14622
14623$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14624
14625else
14626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627$as_echo "no" >&6; };
14628	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
14629$as_echo_n "checking for dlopen() in -ldl... " >&6; }
14630	      olibs=$LIBS
14631	      LIBS="$LIBS -ldl"
14632	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633/* end confdefs.h.  */
14634
14635int
14636main ()
14637{
14638
14639				extern void* dlopen();
14640				dlopen();
14641
14642  ;
14643  return 0;
14644}
14645_ACEOF
14646if ac_fn_c_try_link "$LINENO"; then :
14647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14648$as_echo "yes" >&6; };
14649
14650$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14651
14652else
14653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654$as_echo "no" >&6; };
14655			  LIBS=$olibs
14656fi
14657rm -f core conftest.err conftest.$ac_objext \
14658    conftest$ac_exeext conftest.$ac_ext
14659fi
14660rm -f core conftest.err conftest.$ac_objext \
14661    conftest$ac_exeext conftest.$ac_ext
14662      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
14663$as_echo_n "checking for dlsym()... " >&6; }
14664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665/* end confdefs.h.  */
14666
14667int
14668main ()
14669{
14670
14671		extern void* dlsym();
14672		dlsym();
14673
14674  ;
14675  return 0;
14676}
14677_ACEOF
14678if ac_fn_c_try_link "$LINENO"; then :
14679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14680$as_echo "yes" >&6; };
14681
14682$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14683
14684else
14685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14686$as_echo "no" >&6; };
14687	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
14688$as_echo_n "checking for dlsym() in -ldl... " >&6; }
14689	      olibs=$LIBS
14690	      LIBS="$LIBS -ldl"
14691	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692/* end confdefs.h.  */
14693
14694int
14695main ()
14696{
14697
14698				extern void* dlsym();
14699				dlsym();
14700
14701  ;
14702  return 0;
14703}
14704_ACEOF
14705if ac_fn_c_try_link "$LINENO"; then :
14706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14707$as_echo "yes" >&6; };
14708
14709$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14710
14711else
14712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713$as_echo "no" >&6; };
14714			  LIBS=$olibs
14715fi
14716rm -f core conftest.err conftest.$ac_objext \
14717    conftest$ac_exeext conftest.$ac_ext
14718fi
14719rm -f core conftest.err conftest.$ac_objext \
14720    conftest$ac_exeext conftest.$ac_ext
14721elif test x${DLL} = xdl.h; then
14722
14723$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14724
14725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14726$as_echo_n "checking for shl_load()... " >&6; }
14727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728/* end confdefs.h.  */
14729
14730int
14731main ()
14732{
14733
14734		extern void* shl_load();
14735		shl_load();
14736
14737  ;
14738  return 0;
14739}
14740_ACEOF
14741if ac_fn_c_try_link "$LINENO"; then :
14742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14743$as_echo "yes" >&6; };
14744
14745$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14746
14747else
14748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749$as_echo "no" >&6; };
14750	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14751$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14752	  olibs=$LIBS
14753	  LIBS="$LIBS -ldld"
14754	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755/* end confdefs.h.  */
14756
14757int
14758main ()
14759{
14760
14761			extern void* shl_load();
14762			shl_load();
14763
14764  ;
14765  return 0;
14766}
14767_ACEOF
14768if ac_fn_c_try_link "$LINENO"; then :
14769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14770$as_echo "yes" >&6; };
14771
14772$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14773
14774else
14775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14776$as_echo "no" >&6; };
14777		  LIBS=$olibs
14778fi
14779rm -f core conftest.err conftest.$ac_objext \
14780    conftest$ac_exeext conftest.$ac_ext
14781fi
14782rm -f core conftest.err conftest.$ac_objext \
14783    conftest$ac_exeext conftest.$ac_ext
14784fi
14785for ac_header in setjmp.h
14786do :
14787  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14788if test "x$ac_cv_header_setjmp_h" = xyes; then :
14789  cat >>confdefs.h <<_ACEOF
14790#define HAVE_SETJMP_H 1
14791_ACEOF
14792
14793fi
14794
14795done
14796
14797
14798if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then
14799    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14800    LIBS=`echo $LIBS | sed s/-ldl//`
14801    PERL_LIBS="$PERL_LIBS -ldl"
14802  fi
14803fi
14804
14805if test "$MACOS_X" = "yes"; then
14806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5
14807$as_echo_n "checking whether we need macOS frameworks... " >&6; }
14808  if test "$GUITYPE" = "CARBONGUI"; then
14809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5
14810$as_echo "yes, we need Carbon" >&6; }
14811    LIBS="$LIBS -framework Carbon"
14812  elif test "$MACOS_X_DARWIN" = "yes"; then
14813    if test "$features" = "tiny"; then
14814            OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14815      OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14816      if test "$enable_multibyte" = "yes"; then
14817        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
14818$as_echo "yes, we need CoreServices" >&6; }
14819        LIBS="$LIBS -framework CoreServices"
14820      else
14821                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14822$as_echo "no" >&6; }
14823        OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_mac_conv.c++'`
14824        OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_mac_conv.o++'`
14825        CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's+-DMACOS_X_DARWIN++'`
14826      fi
14827    else
14828      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
14829$as_echo "yes, we need AppKit" >&6; }
14830      LIBS="$LIBS -framework AppKit"
14831      if test "$features" = "small" -a "$enable_multibyte" = "no"; then
14832                                { $as_echo "$as_me:${as_lineno-$LINENO}: +multi_byte will be set in favor of +clipboard" >&5
14833$as_echo "$as_me: +multi_byte will be set in favor of +clipboard" >&6;}
14834        enable_multibyte=yes
14835        $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
14836
14837      fi
14838    fi
14839  else
14840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14841$as_echo "no" >&6; }
14842  fi
14843fi
14844if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14845  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14846fi
14847
14848DEPEND_CFLAGS_FILTER=
14849if test "$GCC" = yes; then
14850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14851$as_echo_n "checking for GCC 3 or later... " >&6; }
14852  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
14853  if test "$gccmajor" -gt "2"; then
14854    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14855    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14856$as_echo "yes" >&6; }
14857  else
14858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14859$as_echo "no" >&6; }
14860  fi
14861          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14862$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14863  if test "$gccmajor" -gt "3"; then
14864    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/'`
14865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14866$as_echo "yes" >&6; }
14867  else
14868    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869$as_echo "no" >&6; }
14870  fi
14871fi
14872
14873
14874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5
14875$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; }
14876if echo "$CFLAGS $LUA_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $PYTHON3_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $GTK_CFLAGS" | grep -q D_FILE_OFFSET_BITS 2>/dev/null; then
14877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14878$as_echo "yes" >&6; }
14879  $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14880
14881else
14882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883$as_echo "no" >&6; }
14884fi
14885
14886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14887$as_echo_n "checking linker --as-needed support... " >&6; }
14888LINK_AS_NEEDED=
14889# Check if linker supports --as-needed and --no-as-needed options
14890if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14891  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14892  LINK_AS_NEEDED=yes
14893fi
14894if test "$LINK_AS_NEEDED" = yes; then
14895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14896$as_echo "yes" >&6; }
14897else
14898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14899$as_echo "no" >&6; }
14900fi
14901
14902
14903# IBM z/OS reset CFLAGS for config.mk
14904if test "$zOSUnix" = "yes"; then
14905	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14906fi
14907
14908ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14909
14910cat >confcache <<\_ACEOF
14911# This file is a shell script that caches the results of configure
14912# tests run on this system so they can be shared between configure
14913# scripts and configure runs, see configure's option --config-cache.
14914# It is not useful on other systems.  If it contains results you don't
14915# want to keep, you may remove or edit it.
14916#
14917# config.status only pays attention to the cache file if you give it
14918# the --recheck option to rerun configure.
14919#
14920# `ac_cv_env_foo' variables (set or unset) will be overridden when
14921# loading this file, other *unset* `ac_cv_foo' will be assigned the
14922# following values.
14923
14924_ACEOF
14925
14926# The following way of writing the cache mishandles newlines in values,
14927# but we know of no workaround that is simple, portable, and efficient.
14928# So, we kill variables containing newlines.
14929# Ultrix sh set writes to stderr and can't be redirected directly,
14930# and sets the high bit in the cache file unless we assign to the vars.
14931(
14932  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14933    eval ac_val=\$$ac_var
14934    case $ac_val in #(
14935    *${as_nl}*)
14936      case $ac_var in #(
14937      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14938$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14939      esac
14940      case $ac_var in #(
14941      _ | IFS | as_nl) ;; #(
14942      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14943      *) { eval $ac_var=; unset $ac_var;} ;;
14944      esac ;;
14945    esac
14946  done
14947
14948  (set) 2>&1 |
14949    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14950    *${as_nl}ac_space=\ *)
14951      # `set' does not quote correctly, so add quotes: double-quote
14952      # substitution turns \\\\ into \\, and sed turns \\ into \.
14953      sed -n \
14954	"s/'/'\\\\''/g;
14955	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14956      ;; #(
14957    *)
14958      # `set' quotes correctly as required by POSIX, so do not add quotes.
14959      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14960      ;;
14961    esac |
14962    sort
14963) |
14964  sed '
14965     /^ac_cv_env_/b end
14966     t clear
14967     :clear
14968     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14969     t end
14970     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14971     :end' >>confcache
14972if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14973  if test -w "$cache_file"; then
14974    if test "x$cache_file" != "x/dev/null"; then
14975      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14976$as_echo "$as_me: updating cache $cache_file" >&6;}
14977      if test ! -f "$cache_file" || test -h "$cache_file"; then
14978	cat confcache >"$cache_file"
14979      else
14980        case $cache_file in #(
14981        */* | ?:*)
14982	  mv -f confcache "$cache_file"$$ &&
14983	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14984        *)
14985	  mv -f confcache "$cache_file" ;;
14986	esac
14987      fi
14988    fi
14989  else
14990    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14991$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14992  fi
14993fi
14994rm -f confcache
14995
14996test "x$prefix" = xNONE && prefix=$ac_default_prefix
14997# Let make expand exec_prefix.
14998test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14999
15000DEFS=-DHAVE_CONFIG_H
15001
15002ac_libobjs=
15003ac_ltlibobjs=
15004U=
15005for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15006  # 1. Remove the extension, and $U if already installed.
15007  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15008  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15009  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15010  #    will be set to the directory where LIBOBJS objects are built.
15011  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15012  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15013done
15014LIBOBJS=$ac_libobjs
15015
15016LTLIBOBJS=$ac_ltlibobjs
15017
15018
15019
15020
15021: "${CONFIG_STATUS=./config.status}"
15022ac_write_fail=0
15023ac_clean_files_save=$ac_clean_files
15024ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15025{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15026$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15027as_write_fail=0
15028cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15029#! $SHELL
15030# Generated by $as_me.
15031# Run this file to recreate the current configuration.
15032# Compiler output produced by configure, useful for debugging
15033# configure, is in config.log if it exists.
15034
15035debug=false
15036ac_cs_recheck=false
15037ac_cs_silent=false
15038
15039SHELL=\${CONFIG_SHELL-$SHELL}
15040export SHELL
15041_ASEOF
15042cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15043## -------------------- ##
15044## M4sh Initialization. ##
15045## -------------------- ##
15046
15047# Be more Bourne compatible
15048DUALCASE=1; export DUALCASE # for MKS sh
15049if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15050  emulate sh
15051  NULLCMD=:
15052  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15053  # is contrary to our usage.  Disable this feature.
15054  alias -g '${1+"$@"}'='"$@"'
15055  setopt NO_GLOB_SUBST
15056else
15057  case `(set -o) 2>/dev/null` in #(
15058  *posix*) :
15059    set -o posix ;; #(
15060  *) :
15061     ;;
15062esac
15063fi
15064
15065
15066as_nl='
15067'
15068export as_nl
15069# Printing a long string crashes Solaris 7 /usr/bin/printf.
15070as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15071as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15072as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15073# Prefer a ksh shell builtin over an external printf program on Solaris,
15074# but without wasting forks for bash or zsh.
15075if test -z "$BASH_VERSION$ZSH_VERSION" \
15076    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15077  as_echo='print -r --'
15078  as_echo_n='print -rn --'
15079elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15080  as_echo='printf %s\n'
15081  as_echo_n='printf %s'
15082else
15083  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15084    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15085    as_echo_n='/usr/ucb/echo -n'
15086  else
15087    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15088    as_echo_n_body='eval
15089      arg=$1;
15090      case $arg in #(
15091      *"$as_nl"*)
15092	expr "X$arg" : "X\\(.*\\)$as_nl";
15093	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15094      esac;
15095      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15096    '
15097    export as_echo_n_body
15098    as_echo_n='sh -c $as_echo_n_body as_echo'
15099  fi
15100  export as_echo_body
15101  as_echo='sh -c $as_echo_body as_echo'
15102fi
15103
15104# The user is always right.
15105if test "${PATH_SEPARATOR+set}" != set; then
15106  PATH_SEPARATOR=:
15107  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15108    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15109      PATH_SEPARATOR=';'
15110  }
15111fi
15112
15113
15114# IFS
15115# We need space, tab and new line, in precisely that order.  Quoting is
15116# there to prevent editors from complaining about space-tab.
15117# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15118# splitting by setting IFS to empty value.)
15119IFS=" ""	$as_nl"
15120
15121# Find who we are.  Look in the path if we contain no directory separator.
15122as_myself=
15123case $0 in #((
15124  *[\\/]* ) as_myself=$0 ;;
15125  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15126for as_dir in $PATH
15127do
15128  IFS=$as_save_IFS
15129  test -z "$as_dir" && as_dir=.
15130    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15131  done
15132IFS=$as_save_IFS
15133
15134     ;;
15135esac
15136# We did not find ourselves, most probably we were run as `sh COMMAND'
15137# in which case we are not to be found in the path.
15138if test "x$as_myself" = x; then
15139  as_myself=$0
15140fi
15141if test ! -f "$as_myself"; then
15142  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15143  exit 1
15144fi
15145
15146# Unset variables that we do not need and which cause bugs (e.g. in
15147# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15148# suppresses any "Segmentation fault" message there.  '((' could
15149# trigger a bug in pdksh 5.2.14.
15150for as_var in BASH_ENV ENV MAIL MAILPATH
15151do eval test x\${$as_var+set} = xset \
15152  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15153done
15154PS1='$ '
15155PS2='> '
15156PS4='+ '
15157
15158# NLS nuisances.
15159LC_ALL=C
15160export LC_ALL
15161LANGUAGE=C
15162export LANGUAGE
15163
15164# CDPATH.
15165(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15166
15167
15168# as_fn_error STATUS ERROR [LINENO LOG_FD]
15169# ----------------------------------------
15170# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15171# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15172# script with STATUS, using 1 if that was 0.
15173as_fn_error ()
15174{
15175  as_status=$1; test $as_status -eq 0 && as_status=1
15176  if test "$4"; then
15177    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15178    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15179  fi
15180  $as_echo "$as_me: error: $2" >&2
15181  as_fn_exit $as_status
15182} # as_fn_error
15183
15184
15185# as_fn_set_status STATUS
15186# -----------------------
15187# Set $? to STATUS, without forking.
15188as_fn_set_status ()
15189{
15190  return $1
15191} # as_fn_set_status
15192
15193# as_fn_exit STATUS
15194# -----------------
15195# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15196as_fn_exit ()
15197{
15198  set +e
15199  as_fn_set_status $1
15200  exit $1
15201} # as_fn_exit
15202
15203# as_fn_unset VAR
15204# ---------------
15205# Portably unset VAR.
15206as_fn_unset ()
15207{
15208  { eval $1=; unset $1;}
15209}
15210as_unset=as_fn_unset
15211# as_fn_append VAR VALUE
15212# ----------------------
15213# Append the text in VALUE to the end of the definition contained in VAR. Take
15214# advantage of any shell optimizations that allow amortized linear growth over
15215# repeated appends, instead of the typical quadratic growth present in naive
15216# implementations.
15217if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15218  eval 'as_fn_append ()
15219  {
15220    eval $1+=\$2
15221  }'
15222else
15223  as_fn_append ()
15224  {
15225    eval $1=\$$1\$2
15226  }
15227fi # as_fn_append
15228
15229# as_fn_arith ARG...
15230# ------------------
15231# Perform arithmetic evaluation on the ARGs, and store the result in the
15232# global $as_val. Take advantage of shells that can avoid forks. The arguments
15233# must be portable across $(()) and expr.
15234if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15235  eval 'as_fn_arith ()
15236  {
15237    as_val=$(( $* ))
15238  }'
15239else
15240  as_fn_arith ()
15241  {
15242    as_val=`expr "$@" || test $? -eq 1`
15243  }
15244fi # as_fn_arith
15245
15246
15247if expr a : '\(a\)' >/dev/null 2>&1 &&
15248   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15249  as_expr=expr
15250else
15251  as_expr=false
15252fi
15253
15254if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15255  as_basename=basename
15256else
15257  as_basename=false
15258fi
15259
15260if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15261  as_dirname=dirname
15262else
15263  as_dirname=false
15264fi
15265
15266as_me=`$as_basename -- "$0" ||
15267$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15268	 X"$0" : 'X\(//\)$' \| \
15269	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15270$as_echo X/"$0" |
15271    sed '/^.*\/\([^/][^/]*\)\/*$/{
15272	    s//\1/
15273	    q
15274	  }
15275	  /^X\/\(\/\/\)$/{
15276	    s//\1/
15277	    q
15278	  }
15279	  /^X\/\(\/\).*/{
15280	    s//\1/
15281	    q
15282	  }
15283	  s/.*/./; q'`
15284
15285# Avoid depending upon Character Ranges.
15286as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15287as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15288as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15289as_cr_digits='0123456789'
15290as_cr_alnum=$as_cr_Letters$as_cr_digits
15291
15292ECHO_C= ECHO_N= ECHO_T=
15293case `echo -n x` in #(((((
15294-n*)
15295  case `echo 'xy\c'` in
15296  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15297  xy)  ECHO_C='\c';;
15298  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15299       ECHO_T='	';;
15300  esac;;
15301*)
15302  ECHO_N='-n';;
15303esac
15304
15305rm -f conf$$ conf$$.exe conf$$.file
15306if test -d conf$$.dir; then
15307  rm -f conf$$.dir/conf$$.file
15308else
15309  rm -f conf$$.dir
15310  mkdir conf$$.dir 2>/dev/null
15311fi
15312if (echo >conf$$.file) 2>/dev/null; then
15313  if ln -s conf$$.file conf$$ 2>/dev/null; then
15314    as_ln_s='ln -s'
15315    # ... but there are two gotchas:
15316    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15317    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15318    # In both cases, we have to default to `cp -pR'.
15319    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15320      as_ln_s='cp -pR'
15321  elif ln conf$$.file conf$$ 2>/dev/null; then
15322    as_ln_s=ln
15323  else
15324    as_ln_s='cp -pR'
15325  fi
15326else
15327  as_ln_s='cp -pR'
15328fi
15329rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15330rmdir conf$$.dir 2>/dev/null
15331
15332
15333# as_fn_mkdir_p
15334# -------------
15335# Create "$as_dir" as a directory, including parents if necessary.
15336as_fn_mkdir_p ()
15337{
15338
15339  case $as_dir in #(
15340  -*) as_dir=./$as_dir;;
15341  esac
15342  test -d "$as_dir" || eval $as_mkdir_p || {
15343    as_dirs=
15344    while :; do
15345      case $as_dir in #(
15346      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15347      *) as_qdir=$as_dir;;
15348      esac
15349      as_dirs="'$as_qdir' $as_dirs"
15350      as_dir=`$as_dirname -- "$as_dir" ||
15351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15352	 X"$as_dir" : 'X\(//\)[^/]' \| \
15353	 X"$as_dir" : 'X\(//\)$' \| \
15354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15355$as_echo X"$as_dir" |
15356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15357	    s//\1/
15358	    q
15359	  }
15360	  /^X\(\/\/\)[^/].*/{
15361	    s//\1/
15362	    q
15363	  }
15364	  /^X\(\/\/\)$/{
15365	    s//\1/
15366	    q
15367	  }
15368	  /^X\(\/\).*/{
15369	    s//\1/
15370	    q
15371	  }
15372	  s/.*/./; q'`
15373      test -d "$as_dir" && break
15374    done
15375    test -z "$as_dirs" || eval "mkdir $as_dirs"
15376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15377
15378
15379} # as_fn_mkdir_p
15380if mkdir -p . 2>/dev/null; then
15381  as_mkdir_p='mkdir -p "$as_dir"'
15382else
15383  test -d ./-p && rmdir ./-p
15384  as_mkdir_p=false
15385fi
15386
15387
15388# as_fn_executable_p FILE
15389# -----------------------
15390# Test if FILE is an executable regular file.
15391as_fn_executable_p ()
15392{
15393  test -f "$1" && test -x "$1"
15394} # as_fn_executable_p
15395as_test_x='test -x'
15396as_executable_p=as_fn_executable_p
15397
15398# Sed expression to map a string onto a valid CPP name.
15399as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15400
15401# Sed expression to map a string onto a valid variable name.
15402as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15403
15404
15405exec 6>&1
15406## ----------------------------------- ##
15407## Main body of $CONFIG_STATUS script. ##
15408## ----------------------------------- ##
15409_ASEOF
15410test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15411
15412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15413# Save the log message, to keep $0 and so on meaningful, and to
15414# report actual input values of CONFIG_FILES etc. instead of their
15415# values after options handling.
15416ac_log="
15417This file was extended by $as_me, which was
15418generated by GNU Autoconf 2.69.  Invocation command line was
15419
15420  CONFIG_FILES    = $CONFIG_FILES
15421  CONFIG_HEADERS  = $CONFIG_HEADERS
15422  CONFIG_LINKS    = $CONFIG_LINKS
15423  CONFIG_COMMANDS = $CONFIG_COMMANDS
15424  $ $0 $@
15425
15426on `(hostname || uname -n) 2>/dev/null | sed 1q`
15427"
15428
15429_ACEOF
15430
15431case $ac_config_files in *"
15432"*) set x $ac_config_files; shift; ac_config_files=$*;;
15433esac
15434
15435case $ac_config_headers in *"
15436"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15437esac
15438
15439
15440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15441# Files that config.status was made for.
15442config_files="$ac_config_files"
15443config_headers="$ac_config_headers"
15444
15445_ACEOF
15446
15447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15448ac_cs_usage="\
15449\`$as_me' instantiates files and other configuration actions
15450from templates according to the current configuration.  Unless the files
15451and actions are specified as TAGs, all are instantiated by default.
15452
15453Usage: $0 [OPTION]... [TAG]...
15454
15455  -h, --help       print this help, then exit
15456  -V, --version    print version number and configuration settings, then exit
15457      --config     print configuration, then exit
15458  -q, --quiet, --silent
15459                   do not print progress messages
15460  -d, --debug      don't remove temporary files
15461      --recheck    update $as_me by reconfiguring in the same conditions
15462      --file=FILE[:TEMPLATE]
15463                   instantiate the configuration file FILE
15464      --header=FILE[:TEMPLATE]
15465                   instantiate the configuration header FILE
15466
15467Configuration files:
15468$config_files
15469
15470Configuration headers:
15471$config_headers
15472
15473Report bugs to the package provider."
15474
15475_ACEOF
15476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15477ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15478ac_cs_version="\\
15479config.status
15480configured by $0, generated by GNU Autoconf 2.69,
15481  with options \\"\$ac_cs_config\\"
15482
15483Copyright (C) 2012 Free Software Foundation, Inc.
15484This config.status script is free software; the Free Software Foundation
15485gives unlimited permission to copy, distribute and modify it."
15486
15487ac_pwd='$ac_pwd'
15488srcdir='$srcdir'
15489AWK='$AWK'
15490test -n "\$AWK" || AWK=awk
15491_ACEOF
15492
15493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15494# The default lists apply if the user does not specify any file.
15495ac_need_defaults=:
15496while test $# != 0
15497do
15498  case $1 in
15499  --*=?*)
15500    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15501    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15502    ac_shift=:
15503    ;;
15504  --*=)
15505    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15506    ac_optarg=
15507    ac_shift=:
15508    ;;
15509  *)
15510    ac_option=$1
15511    ac_optarg=$2
15512    ac_shift=shift
15513    ;;
15514  esac
15515
15516  case $ac_option in
15517  # Handling of the options.
15518  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15519    ac_cs_recheck=: ;;
15520  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15521    $as_echo "$ac_cs_version"; exit ;;
15522  --config | --confi | --conf | --con | --co | --c )
15523    $as_echo "$ac_cs_config"; exit ;;
15524  --debug | --debu | --deb | --de | --d | -d )
15525    debug=: ;;
15526  --file | --fil | --fi | --f )
15527    $ac_shift
15528    case $ac_optarg in
15529    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15530    '') as_fn_error $? "missing file argument" ;;
15531    esac
15532    as_fn_append CONFIG_FILES " '$ac_optarg'"
15533    ac_need_defaults=false;;
15534  --header | --heade | --head | --hea )
15535    $ac_shift
15536    case $ac_optarg in
15537    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15538    esac
15539    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15540    ac_need_defaults=false;;
15541  --he | --h)
15542    # Conflict between --help and --header
15543    as_fn_error $? "ambiguous option: \`$1'
15544Try \`$0 --help' for more information.";;
15545  --help | --hel | -h )
15546    $as_echo "$ac_cs_usage"; exit ;;
15547  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15548  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15549    ac_cs_silent=: ;;
15550
15551  # This is an error.
15552  -*) as_fn_error $? "unrecognized option: \`$1'
15553Try \`$0 --help' for more information." ;;
15554
15555  *) as_fn_append ac_config_targets " $1"
15556     ac_need_defaults=false ;;
15557
15558  esac
15559  shift
15560done
15561
15562ac_configure_extra_args=
15563
15564if $ac_cs_silent; then
15565  exec 6>/dev/null
15566  ac_configure_extra_args="$ac_configure_extra_args --silent"
15567fi
15568
15569_ACEOF
15570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15571if \$ac_cs_recheck; then
15572  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15573  shift
15574  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15575  CONFIG_SHELL='$SHELL'
15576  export CONFIG_SHELL
15577  exec "\$@"
15578fi
15579
15580_ACEOF
15581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15582exec 5>>auto/config.log
15583{
15584  echo
15585  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15586## Running $as_me. ##
15587_ASBOX
15588  $as_echo "$ac_log"
15589} >&5
15590
15591_ACEOF
15592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15593_ACEOF
15594
15595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15596
15597# Handling of arguments.
15598for ac_config_target in $ac_config_targets
15599do
15600  case $ac_config_target in
15601    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15602    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15603
15604  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15605  esac
15606done
15607
15608
15609# If the user did not use the arguments to specify the items to instantiate,
15610# then the envvar interface is used.  Set only those that are not.
15611# We use the long form for the default assignment because of an extremely
15612# bizarre bug on SunOS 4.1.3.
15613if $ac_need_defaults; then
15614  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15615  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15616fi
15617
15618# Have a temporary directory for convenience.  Make it in the build tree
15619# simply because there is no reason against having it here, and in addition,
15620# creating and moving files from /tmp can sometimes cause problems.
15621# Hook for its removal unless debugging.
15622# Note that there is a small window in which the directory will not be cleaned:
15623# after its creation but before its name has been assigned to `$tmp'.
15624$debug ||
15625{
15626  tmp= ac_tmp=
15627  trap 'exit_status=$?
15628  : "${ac_tmp:=$tmp}"
15629  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15630' 0
15631  trap 'as_fn_exit 1' 1 2 13 15
15632}
15633# Create a (secure) tmp directory for tmp files.
15634
15635{
15636  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15637  test -d "$tmp"
15638}  ||
15639{
15640  tmp=./conf$$-$RANDOM
15641  (umask 077 && mkdir "$tmp")
15642} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15643ac_tmp=$tmp
15644
15645# Set up the scripts for CONFIG_FILES section.
15646# No need to generate them if there are no CONFIG_FILES.
15647# This happens for instance with `./config.status config.h'.
15648if test -n "$CONFIG_FILES"; then
15649
15650
15651ac_cr=`echo X | tr X '\015'`
15652# On cygwin, bash can eat \r inside `` if the user requested igncr.
15653# But we know of no other shell where ac_cr would be empty at this
15654# point, so we can use a bashism as a fallback.
15655if test "x$ac_cr" = x; then
15656  eval ac_cr=\$\'\\r\'
15657fi
15658ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15659if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15660  ac_cs_awk_cr='\\r'
15661else
15662  ac_cs_awk_cr=$ac_cr
15663fi
15664
15665echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15666_ACEOF
15667
15668
15669{
15670  echo "cat >conf$$subs.awk <<_ACEOF" &&
15671  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15672  echo "_ACEOF"
15673} >conf$$subs.sh ||
15674  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15675ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15676ac_delim='%!_!# '
15677for ac_last_try in false false false false false :; do
15678  . ./conf$$subs.sh ||
15679    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15680
15681  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15682  if test $ac_delim_n = $ac_delim_num; then
15683    break
15684  elif $ac_last_try; then
15685    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15686  else
15687    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15688  fi
15689done
15690rm -f conf$$subs.sh
15691
15692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15693cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15694_ACEOF
15695sed -n '
15696h
15697s/^/S["/; s/!.*/"]=/
15698p
15699g
15700s/^[^!]*!//
15701:repl
15702t repl
15703s/'"$ac_delim"'$//
15704t delim
15705:nl
15706h
15707s/\(.\{148\}\)..*/\1/
15708t more1
15709s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15710p
15711n
15712b repl
15713:more1
15714s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15715p
15716g
15717s/.\{148\}//
15718t nl
15719:delim
15720h
15721s/\(.\{148\}\)..*/\1/
15722t more2
15723s/["\\]/\\&/g; s/^/"/; s/$/"/
15724p
15725b
15726:more2
15727s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15728p
15729g
15730s/.\{148\}//
15731t delim
15732' <conf$$subs.awk | sed '
15733/^[^""]/{
15734  N
15735  s/\n//
15736}
15737' >>$CONFIG_STATUS || ac_write_fail=1
15738rm -f conf$$subs.awk
15739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15740_ACAWK
15741cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15742  for (key in S) S_is_set[key] = 1
15743  FS = ""
15744
15745}
15746{
15747  line = $ 0
15748  nfields = split(line, field, "@")
15749  substed = 0
15750  len = length(field[1])
15751  for (i = 2; i < nfields; i++) {
15752    key = field[i]
15753    keylen = length(key)
15754    if (S_is_set[key]) {
15755      value = S[key]
15756      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15757      len += length(value) + length(field[++i])
15758      substed = 1
15759    } else
15760      len += 1 + keylen
15761  }
15762
15763  print line
15764}
15765
15766_ACAWK
15767_ACEOF
15768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15769if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15770  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15771else
15772  cat
15773fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15774  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15775_ACEOF
15776
15777# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15778# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15779# trailing colons and then remove the whole line if VPATH becomes empty
15780# (actually we leave an empty line to preserve line numbers).
15781if test "x$srcdir" = x.; then
15782  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15783h
15784s///
15785s/^/:/
15786s/[	 ]*$/:/
15787s/:\$(srcdir):/:/g
15788s/:\${srcdir}:/:/g
15789s/:@srcdir@:/:/g
15790s/^:*//
15791s/:*$//
15792x
15793s/\(=[	 ]*\).*/\1/
15794G
15795s/\n//
15796s/^[^=]*=[	 ]*$//
15797}'
15798fi
15799
15800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15801fi # test -n "$CONFIG_FILES"
15802
15803# Set up the scripts for CONFIG_HEADERS section.
15804# No need to generate them if there are no CONFIG_HEADERS.
15805# This happens for instance with `./config.status Makefile'.
15806if test -n "$CONFIG_HEADERS"; then
15807cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15808BEGIN {
15809_ACEOF
15810
15811# Transform confdefs.h into an awk script `defines.awk', embedded as
15812# here-document in config.status, that substitutes the proper values into
15813# config.h.in to produce config.h.
15814
15815# Create a delimiter string that does not exist in confdefs.h, to ease
15816# handling of long lines.
15817ac_delim='%!_!# '
15818for ac_last_try in false false :; do
15819  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15820  if test -z "$ac_tt"; then
15821    break
15822  elif $ac_last_try; then
15823    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15824  else
15825    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15826  fi
15827done
15828
15829# For the awk script, D is an array of macro values keyed by name,
15830# likewise P contains macro parameters if any.  Preserve backslash
15831# newline sequences.
15832
15833ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15834sed -n '
15835s/.\{148\}/&'"$ac_delim"'/g
15836t rset
15837:rset
15838s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15839t def
15840d
15841:def
15842s/\\$//
15843t bsnl
15844s/["\\]/\\&/g
15845s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15846D["\1"]=" \3"/p
15847s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15848d
15849:bsnl
15850s/["\\]/\\&/g
15851s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15852D["\1"]=" \3\\\\\\n"\\/p
15853t cont
15854s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15855t cont
15856d
15857:cont
15858n
15859s/.\{148\}/&'"$ac_delim"'/g
15860t clear
15861:clear
15862s/\\$//
15863t bsnlc
15864s/["\\]/\\&/g; s/^/"/; s/$/"/p
15865d
15866:bsnlc
15867s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15868b cont
15869' <confdefs.h | sed '
15870s/'"$ac_delim"'/"\\\
15871"/g' >>$CONFIG_STATUS || ac_write_fail=1
15872
15873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15874  for (key in D) D_is_set[key] = 1
15875  FS = ""
15876}
15877/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15878  line = \$ 0
15879  split(line, arg, " ")
15880  if (arg[1] == "#") {
15881    defundef = arg[2]
15882    mac1 = arg[3]
15883  } else {
15884    defundef = substr(arg[1], 2)
15885    mac1 = arg[2]
15886  }
15887  split(mac1, mac2, "(") #)
15888  macro = mac2[1]
15889  prefix = substr(line, 1, index(line, defundef) - 1)
15890  if (D_is_set[macro]) {
15891    # Preserve the white space surrounding the "#".
15892    print prefix "define", macro P[macro] D[macro]
15893    next
15894  } else {
15895    # Replace #undef with comments.  This is necessary, for example,
15896    # in the case of _POSIX_SOURCE, which is predefined and required
15897    # on some systems where configure will not decide to define it.
15898    if (defundef == "undef") {
15899      print "/*", prefix defundef, macro, "*/"
15900      next
15901    }
15902  }
15903}
15904{ print }
15905_ACAWK
15906_ACEOF
15907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15908  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15909fi # test -n "$CONFIG_HEADERS"
15910
15911
15912eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15913shift
15914for ac_tag
15915do
15916  case $ac_tag in
15917  :[FHLC]) ac_mode=$ac_tag; continue;;
15918  esac
15919  case $ac_mode$ac_tag in
15920  :[FHL]*:*);;
15921  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15922  :[FH]-) ac_tag=-:-;;
15923  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15924  esac
15925  ac_save_IFS=$IFS
15926  IFS=:
15927  set x $ac_tag
15928  IFS=$ac_save_IFS
15929  shift
15930  ac_file=$1
15931  shift
15932
15933  case $ac_mode in
15934  :L) ac_source=$1;;
15935  :[FH])
15936    ac_file_inputs=
15937    for ac_f
15938    do
15939      case $ac_f in
15940      -) ac_f="$ac_tmp/stdin";;
15941      *) # Look for the file first in the build tree, then in the source tree
15942	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15943	 # because $ac_f cannot contain `:'.
15944	 test -f "$ac_f" ||
15945	   case $ac_f in
15946	   [\\/$]*) false;;
15947	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15948	   esac ||
15949	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15950      esac
15951      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15952      as_fn_append ac_file_inputs " '$ac_f'"
15953    done
15954
15955    # Let's still pretend it is `configure' which instantiates (i.e., don't
15956    # use $as_me), people would be surprised to read:
15957    #    /* config.h.  Generated by config.status.  */
15958    configure_input='Generated from '`
15959	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15960	`' by configure.'
15961    if test x"$ac_file" != x-; then
15962      configure_input="$ac_file.  $configure_input"
15963      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15964$as_echo "$as_me: creating $ac_file" >&6;}
15965    fi
15966    # Neutralize special characters interpreted by sed in replacement strings.
15967    case $configure_input in #(
15968    *\&* | *\|* | *\\* )
15969       ac_sed_conf_input=`$as_echo "$configure_input" |
15970       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15971    *) ac_sed_conf_input=$configure_input;;
15972    esac
15973
15974    case $ac_tag in
15975    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15976      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15977    esac
15978    ;;
15979  esac
15980
15981  ac_dir=`$as_dirname -- "$ac_file" ||
15982$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15983	 X"$ac_file" : 'X\(//\)[^/]' \| \
15984	 X"$ac_file" : 'X\(//\)$' \| \
15985	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15986$as_echo X"$ac_file" |
15987    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15988	    s//\1/
15989	    q
15990	  }
15991	  /^X\(\/\/\)[^/].*/{
15992	    s//\1/
15993	    q
15994	  }
15995	  /^X\(\/\/\)$/{
15996	    s//\1/
15997	    q
15998	  }
15999	  /^X\(\/\).*/{
16000	    s//\1/
16001	    q
16002	  }
16003	  s/.*/./; q'`
16004  as_dir="$ac_dir"; as_fn_mkdir_p
16005  ac_builddir=.
16006
16007case "$ac_dir" in
16008.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16009*)
16010  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16011  # A ".." for each directory in $ac_dir_suffix.
16012  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16013  case $ac_top_builddir_sub in
16014  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16015  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16016  esac ;;
16017esac
16018ac_abs_top_builddir=$ac_pwd
16019ac_abs_builddir=$ac_pwd$ac_dir_suffix
16020# for backward compatibility:
16021ac_top_builddir=$ac_top_build_prefix
16022
16023case $srcdir in
16024  .)  # We are building in place.
16025    ac_srcdir=.
16026    ac_top_srcdir=$ac_top_builddir_sub
16027    ac_abs_top_srcdir=$ac_pwd ;;
16028  [\\/]* | ?:[\\/]* )  # Absolute name.
16029    ac_srcdir=$srcdir$ac_dir_suffix;
16030    ac_top_srcdir=$srcdir
16031    ac_abs_top_srcdir=$srcdir ;;
16032  *) # Relative name.
16033    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16034    ac_top_srcdir=$ac_top_build_prefix$srcdir
16035    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16036esac
16037ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16038
16039
16040  case $ac_mode in
16041  :F)
16042  #
16043  # CONFIG_FILE
16044  #
16045
16046_ACEOF
16047
16048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16049# If the template does not know about datarootdir, expand it.
16050# FIXME: This hack should be removed a few years after 2.60.
16051ac_datarootdir_hack=; ac_datarootdir_seen=
16052ac_sed_dataroot='
16053/datarootdir/ {
16054  p
16055  q
16056}
16057/@datadir@/p
16058/@docdir@/p
16059/@infodir@/p
16060/@localedir@/p
16061/@mandir@/p'
16062case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16063*datarootdir*) ac_datarootdir_seen=yes;;
16064*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16065  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16066$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16067_ACEOF
16068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16069  ac_datarootdir_hack='
16070  s&@datadir@&$datadir&g
16071  s&@docdir@&$docdir&g
16072  s&@infodir@&$infodir&g
16073  s&@localedir@&$localedir&g
16074  s&@mandir@&$mandir&g
16075  s&\\\${datarootdir}&$datarootdir&g' ;;
16076esac
16077_ACEOF
16078
16079# Neutralize VPATH when `$srcdir' = `.'.
16080# Shell code in configure.ac might set extrasub.
16081# FIXME: do we really want to maintain this feature?
16082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16083ac_sed_extra="$ac_vpsub
16084$extrasub
16085_ACEOF
16086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16087:t
16088/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16089s|@configure_input@|$ac_sed_conf_input|;t t
16090s&@top_builddir@&$ac_top_builddir_sub&;t t
16091s&@top_build_prefix@&$ac_top_build_prefix&;t t
16092s&@srcdir@&$ac_srcdir&;t t
16093s&@abs_srcdir@&$ac_abs_srcdir&;t t
16094s&@top_srcdir@&$ac_top_srcdir&;t t
16095s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16096s&@builddir@&$ac_builddir&;t t
16097s&@abs_builddir@&$ac_abs_builddir&;t t
16098s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16099$ac_datarootdir_hack
16100"
16101eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16102  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16103
16104test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16105  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16106  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16107      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16108  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16109which seems to be undefined.  Please make sure it is defined" >&5
16110$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16111which seems to be undefined.  Please make sure it is defined" >&2;}
16112
16113  rm -f "$ac_tmp/stdin"
16114  case $ac_file in
16115  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16116  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16117  esac \
16118  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16119 ;;
16120  :H)
16121  #
16122  # CONFIG_HEADER
16123  #
16124  if test x"$ac_file" != x-; then
16125    {
16126      $as_echo "/* $configure_input  */" \
16127      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16128    } >"$ac_tmp/config.h" \
16129      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16130    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16131      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16132$as_echo "$as_me: $ac_file is unchanged" >&6;}
16133    else
16134      rm -f "$ac_file"
16135      mv "$ac_tmp/config.h" "$ac_file" \
16136	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16137    fi
16138  else
16139    $as_echo "/* $configure_input  */" \
16140      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16141      || as_fn_error $? "could not create -" "$LINENO" 5
16142  fi
16143 ;;
16144
16145
16146  esac
16147
16148done # for ac_tag
16149
16150
16151as_fn_exit 0
16152_ACEOF
16153ac_clean_files=$ac_clean_files_save
16154
16155test $ac_write_fail = 0 ||
16156  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16157
16158
16159# configure is writing to config.log, and then calls config.status.
16160# config.status does its own redirection, appending to config.log.
16161# Unfortunately, on DOS this fails, as config.log is still kept open
16162# by configure, so config.status won't be able to write to it; its
16163# output is simply discarded.  So we exec the FD to /dev/null,
16164# effectively closing config.log, so it can be properly (re)opened and
16165# appended to by config.status.  When coming back to configure, we
16166# need to make the FD available again.
16167if test "$no_create" != yes; then
16168  ac_cs_success=:
16169  ac_config_status_args=
16170  test "$silent" = yes &&
16171    ac_config_status_args="$ac_config_status_args --quiet"
16172  exec 5>/dev/null
16173  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16174  exec 5>>auto/config.log
16175  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16176  # would make configure fail if this is the last instruction.
16177  $ac_cs_success || as_fn_exit 1
16178fi
16179if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16181$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16182fi
16183
16184
16185